Replace a printer with a pc using serial port

298 views Asked by At

I have to update my question (May 4th). The male db25 connector misled me to the parallel port so I rephrased it.

I have an old computer system that sends live data (temperature from some external devices) to a parallel dot printer. This computer must not be changed. Instead of printing I would like to connect the printer cable in an (ubuntu os) pc serial port in order to receive those data and redirecting them in stdout.

Checking the db25 pins I discovered that it is used as RS232 serial cable. There are only three pin connected:

  • pin 2 (TXD)
  • pin 3 (RXD)
  • pin 7 (GND)

So my intentions are firstly to connect those pins to a db9 serial connector in order to plug it in a pc serial port and secondly to open and read the input data using:

chmod o+rw /dev/ttyS0
cat -v < /dev/ttyS0

I believe that it is a simple solution and it is going to work.

0

There are 0 answers