-=Rob=-
Posts: 2
Joined: Mon Mar 11, 2019 9:43 pm

Convert RS232 ascii print to ethernet or USB

Mon Mar 11, 2019 9:58 pm

Hi,

I did search for a solution but did not found the answer.

I need a program for a raspberry that can receive RS232 ascii prints from a couple of legacy "computers" and convert these prints so they can be printed using the USB or ethernet output of the raspberry. I am able to read code and can do some adapting/writing of the code but starting from scatch might be beyond my capabilities :-(

Anyone who knows if there is a adaptable project I can use to start with?

Many thanks in advance,
Rob.

Andyroo
Posts: 1571
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Convert RS232 ascii print to ethernet or USB

Tue Mar 12, 2019 1:08 am

I know this is not a Pi solution but you may want to try https://www.aggsoft.com/serial-printer-logger.htm or https://magsys.co.uk/comcap/. These folk http://www.printrecorder.com/home.htm have hardware to capture the stream and it may be worth dropping an email to see if they know of any device for the translation.

Having tried this (not on a Pi) before the issues I had to solve where:

1) Conversion of voltage levels - max3232 series of chips help here
2) Handling of control lines - the Pi standard serial ports do not have any hardware control lines so a converter HAT may be better
3) Understanding the data stream - do you just capture everything and how do you know the page or the job has finished
4) Print control in the data stream - underline / bold etc needs to be handled and graphics are a nightmare!

You may be able to get your print driver to output to PDF that can be printed via the LAN but I’ve not tried it under Linux.

Good luck.
Need Pi spray - these things are breeding in my house...

-=Rob=-
Posts: 2
Joined: Mon Mar 11, 2019 9:43 pm

Re: Convert RS232 ascii print to ethernet or USB

Tue Mar 12, 2019 8:06 pm

Andy,

Thanks for your reply, I will investigate the links you provided.

Rob.

Return to “General programming discussion”