Posts: 1
Joined: Mon Jan 15, 2018 7:56 pm

Capturing Print Data from (Serial>>Parallel Port) - Citizen POS Printer

Mon Jan 15, 2018 8:33 pm

Okay I'll try to keep this as concise as possible. Also keep in mind I'm somewhat new to Linux but I built a little raspberry pi to run Retropie and I work in a pretty traditional sysadmin (Windows) role so I think I can pull this off. Also, if there is somewhere else this post would be more relevant please point me in the right direction and I'll move/delete/re-post over there.

Essentially I would like to automate a ticket printing process - its an industrial waste oil measurement system (of sorts) and the device outputs the data to this little Citizen printer via a Serial to Parallel port cable. The industrial device side of the cable is a female Serial port connection and the printer side is a male Parallel port connection. When I saw the connection between the devices I figured.... well it can't be that hard can it? I mean no matter what the device is that's sending it, if its sending it to a common printer we should be able to read that somehow yeah?

So the idea is, we'll insert a little raspberry pi in-between the printer and the machine. Or really.... stop printing analog, just capture the data and send it to some server or email it or literally anything else once the raspberry pi has it. The question is - is there an easy way to read this data? I know the Citizen printer supports CUPS so there's already a general driver that sends data to that printer correctly so..... just a matter of reverse engineering that somehow I'm guessing? Sorry, just spitballing here. I googled around reading data on the pi from a parallel port and it nothing really jumped off the page whereas reading from Serial port seemed more straight forward like here ... pberry-Pi/

I guess I also need help understanding the serial >> parallel connection. I sort of read through some electrical diagrams as far as how that conversion works but i didn't understand it. Should I just buy a new cable and read data from a serial connection to the raspberry pi?

Secondarily, once i have the data captured somewhere I need to store it easily and send it. What do you think is the easiest way? Is it possible to setup some sort of cellular device and have it texted or something like that? Or make sure the raspberry pi has wifi and trigger and email or something like that? I need more info from my friend on what he wants exactly but any kind of ideas or direction would be helpful on this front as well.

Thanks much!

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 2 guests