Output Options

As the Retro-Printer Software has continued to be developed and our customer base has reached different branches of industry, not only have we been asked to emulate a wide range of printers emulations, we have also been asked to provide multiple output options which can be used to incorporate an older piece of stand-alone equipment into the overall sub-systems of a factory, making it an IoT (Internet of Things) connected machine. We do this by developing new output options, which permit the Retro-Printer module to process the captured data differently and broadcast it to a network device. So far, we support several output formats and output options – some are customer specific, but can be adapted for other customers and industries. The various output formats can be stored on the Retro-Printer’s built in SD card, which can be downloaded from a network connected PC.  The files can also be stored on a USB memory stick for easier access if you need to remove the files and do not have a network. When using an electronic format for storing the captured output, you will need to consider whether the Retro-Printer will be connected to an internet enabled network, or whether you will need one of our USB-RTC modules to get the correct date and time when the Retro-Printer is started up. If your printout includes a date, custom code can also address any Y2K issues, such as the date showing as 25 June 1925 (instead of 25 June 2025).

Output Formats

– Raw File

The captured data is simply echoed to a raw file.  We do not process the raw file in any way and it includes any printer control codes from the original data, which can allow for external processing by a POS printer emulator, or PCL printer emulator.

– Plain Text File

The captured data is processed to remove any printer control codes and text formatting, so that it can be viewed easily in a text viewer.   We can also change the character set used for the file, which can be useful if the original printer did not use a Windows equivalent character set.

– Adobe Acrobat PDF

The captured data is processed to recreate a PDF file which replicates the original printed output (albeit with our own character fonts).

– PNG Image

The captured data is converted to a standard PNG image file, again replicating the original printed output.

– CSV (Comma Separated File) (Customisation Needed)

This is a relatively new output format, which has been designed for specific customers.  Whilst the original printed output may look to contain columns of data, it is often just made up of text and spaces (or tabs if you are lucky).  We have therefore implemented methods of allowing customers to define the columns for each line of data, so that it can be split into a CSV file.  This has to be done on a case by case basis, as there are so many different options to determine where the columns start and end and we may have to take account of double width text for example, or lines of plain text interspersed with the columnar data.  

Output Options

– File

This is the standard output option, where data and the chosen output format is stored on the Retro-Printer’s SD card, or on a USB memory stick.  A network location could also be used if you have granted sufficient rights to the Retro-Printer.

– Database (Customisation Needed)

We created this output option for a specific customer, who wanted to take the data, and create a CSV file for the data.  As each line of data was nicely formatted into the same columns, we then worked closely with the client to allow each line of data to be written to a database, using the columns to identify field names withing a table.  This proved very useful for logging of data.

– TCP/IP (Customisation Needed)

Another customer asked about whether we could send each line of data, which appeared as a status line from the machine, to a TCP/IP connection.  This was implemented to allow raw, text or csv data to be written line by line directly to a TCP/IP Address.

– HTTPS (Curl) (Customisation Needed)

Having implemented the TCP/IP option, we were asked if we could send the raw data, or indeed, any of the output formats over HTTPS to a server, using the built-in CURL feature.  This allows for both statuses to be sent line by line as they are printed by the original equipment, or for the overall report to be sent at the end of each print run.

– Email (Customisation Needed)

Again, another customer asked us to set up an email server on the Retro-Printer, so that finalised reports could be emailed.  Supporting multiple email addresses for each line of text (or overall report), this allows for urgent status updates to be immediately sent by email to maintenance engineers, or similar.  We can even parse each status to allocate an urgency level which may affect which people get a copy of the email.  

Overall

As you can see, we are building a unique set of tools to handle the incoming data captured by a Retro-Printer, which can assist with automation and integration of older equipment, extending the working life of that equipment and allowing industrial customers to monitor machines in real-time remotely. If you want to discuss options as to how the Retro-Printer can help to automate your business, please contact us with details of your project. Continue reading – Supported Printers