ricardoaraujo00
Posts: 3
Joined: Tue Dec 10, 2019 5:47 pm

Connecting a USB serial printer does not result in a TTY device in /dev

Wed Jul 01, 2020 8:53 am

Hi, 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?
Thanks

Paul Hutch
Posts: 528
Joined: Fri Aug 25, 2017 2:58 pm
Location: Blackstone River Valley, MA, USA
Contact: Website

Re: Connecting a USB serial printer does not result in a TTY device in /dev

Wed Jul 01, 2020 3:14 pm

When I don't get a /dev/ttyUSBxx or a /dev/ttyyACMxx device showing up I follow these steps.
  1. Disconnect the USB-Serial adapter
  2. Disconnect the printer from the USB-Serial adapter
  3. Wait about 30 seconds
  4. Run lsusb and ls /dev/tty* to see the normal lists
  5. Plug in only the USB-Serial adapter (without the printer attached)
  6. Run lsusb to see if it was detected and if detected run ls /dev/tty* to see what ID it has been assigned
When a device is not detected I assume it is defective. If it's detected but no /dev/tty* device is created then I assume that no driver is available for the device.

gbafamily
Posts: 6
Joined: Sun Jun 07, 2020 9:55 am

Re: Connecting a USB serial printer does not result in a TTY device in /dev

Thu Jul 02, 2020 1:26 am

Run dmesg after plugging the printer. It may be in /dev/usb/lp1 or something similar.

Code: Select all

usb 1-4.4: New USB device found, idVendor=xxxx, idProduct=xxxx
usb 1-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-4.4: Product: USB Portable Printer    
usb 1-4.4: Manufacturer: XXXXXXXelectronics
usb 1-4.4: SerialNumber: Printer
usblp 1-4.4:1.0: usblp1: USB Bidirectional printer dev 14 if 0 alt 0 proto 2 vid 0x0416 pid 0x5011
usbcore: registered new interface driver usblp
If nothing new appears in the dmesg output, try different USB cables and/or ports.

Return to “Advanced users”