Ricardo Araújo
Ricardo Araújo

Reputation: 379

Linux communication through usb serial port

i was trying to send data to a citizen pos printer trough usb serial but when i plug or unplug the device i don't see any difference on the /dev directory. No file is created corresponding to the printer. Does anyone knows what is the problem? In windows i install a virtual com driver and send data in hexadecima to the printer. I can print in linux, via cups, sending a file in hexadecimal, but i would like to do it via the port directly as in windows. I'm working on a raspberry pi. Thanks

Upvotes: 1

Views: 2608

Answers (1)

Andrej Zacharevicz
Andrej Zacharevicz

Reputation: 397

If you can use CUPS, then the printer is accesible in Linux. If you want to manipulate the port directly, you can do it. You can check the dmesg | tail after plugging in usb serial adapter to identify which port device it uses. Or try to ls /dev/tty* and look which device will appear. After that you can manupulate the port directly, regardless to what is connected to it.

Upvotes: 1

Related Questions