Link to home
Start Free TrialLog in
Avatar of ltpitt
ltpitt

asked on

Read data from serial port using Python

Hello everyone!

I would like to intercept data going to a serial printer using Python and read it...

If this is possible which kind of tools / resources you suggest me to use / learn?
Avatar of gelonida
gelonida
Flag of France image

Please answer / clarify each question so that it will be easier to help:

1.) you have a serial printer connected to a PC?
2.) What is your operating system?
3.) You have an application, that can print to your printer?
4.) printing is successful with that application?
5.) you want to print from that application and monitor what is going on the serial port, while the printer is connected and printing?
Avatar of ltpitt
ltpitt

ASKER

1) Yes, the serial printer is connected to a pc
2) The pc connected to the printer is linux, the other pc I'd want to use will be probably a Raspberry Pi with Linux too
3 & 4) The pc connected to the printer can print without problems
5) No: I simply want to connect the Raspberry Pi instead of the printer and get the data instead of the printer
ASKER CERTIFIED SOLUTION
Avatar of gelonida
gelonida
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ltpitt

ASKER

It looks clear and straightforward!

Thanks