Version 2 (modified by 11 months ago) ( diff ) | ,
---|
USB Printers - CUPS Printing
Plugged in Star SK1-311 roll tape printer used in Satellite enclosures
dmesg response
[ 7953.117705] usb 1-1.4: new full-speed USB device number 8 using xhci-hcd [ 7953.326192] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x0519 pid 0x004D [ 7953.326307] usbcore: registered new interface driver usblp
Verified it does work to print text to /dev/usb/lp0
825gen2 has CUPS (Common Unix Printing System)
lpinfo does show it
card825gen2:/mnt/nfs/arm825_nand/bin$ /usr/sbin/lpinfo -v network socket network lpd network ipp network http direct usb://SANEI/SK1-311%20Presenter%20(STR-001) network dnssd://Canon%20TX-3000._ipp._tcp.local/?uuid=00000000-0000-1000-8000-001832104e5a network dnssd://Canon%20iPR%20Svr%20G250%20V2.1%20US(64%3A59%3AA5)._printer._tcp.local/ network dnssd://HP%20Designjet%20T520%2024in%20%5BD50233%5D._ipp._tcp.local/?uuid=abcd9e8e-4886-85c2-2167-b143d1c2344a network dnssd://HP%20LaserJet%20P2055dn%20%5B82FCF4%5D._pdl-datastream._tcp.local/ network dnssd://Lexmark%20C2240._ipp._tcp.local/?uuid=584bdd81-d230-49f3-a210-d39ac56492d0
To just show any usb printers
card825gen2:/mnt/nfs/arm825_nand/bin$ /usr/sbin/lpinfo --include-schemes usb -v direct usb://SANEI/SK1-311%20Presenter%20(STR-001)
Some research showed that Star printer requires a CUPS driver. The 1/5/2023 CUPS driver was compiled for the 825gen2 and will be added to the next OS image.
card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -v "usb://SANEI/SK1-311%20Presenter%20(STR-001)" -m sk1-311_presenter.ppd lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
card825gen2:/usr/libexec/cups/filter$ lpstat -a STARSK311 not accepting requests since Wed Jan 10 16:06:30 2024 - reason unknown
card825gen2:/usr/libexec/cups/filter$ /usr/sbin/cupsaccept STARSK311 card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt request id is STARSK311-1 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/kytare.bmp request id is STARSK311-2 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/startup.png request id is STARSK311-3 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK1_311 -v usb://SANEI/SK1-311%20Presenter%20\(STR-001\) -m sk1-311_presenter.ppd lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png lp: Destination "STARSK1_311" is not accepting jobs. card825gen2:/usr/libexec/cups/filter$ /usr/sbin/cupsaccept STARSK1_311 card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png request id is STARSK1_311-4 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ lpstat -W not-completed STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 card825gen2:/usr/libexec/cups/filter$ lpstat -t scheduler is running no system default destination device for STARSK1_311: usb://SANEI/SK1-311%20Presenter%20(STR-001) device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) STARSK1_311 accepting requests since Wed Jan 10 16:29:32 2024 STARSK311 accepting requests since Wed Jan 10 16:06:30 2024 printer STARSK1_311 disabled since Wed Jan 10 16:29:32 2024 - reason unknown printer STARSK311 disabled since Wed Jan 10 16:06:30 2024 - reason unknown STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK1_311 -E card825gen2:/usr/libexec/cups/filter$ lpstat -t scheduler is running no system default destination device for STARSK1_311: usb://SANEI/SK1-311%20Presenter%20(STR-001) device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) STARSK1_311 accepting requests since Wed Jan 10 16:34:59 2024 STARSK311 accepting requests since Wed Jan 10 16:06:30 2024 printer STARSK1_311 is idle. enabled since Wed Jan 10 16:34:59 2024 Sending data to printer. printer STARSK311 disabled since Wed Jan 10 16:06:30 2024 - reason unknown STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /home/admin/test.txt request id is STARSK1_311-5 (1 file(s)) Printed successfully - "test 123" card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/icon_keyboard.bmp request id is STARSK1_311-6 (1 file(s)) Printed successfully but rotated and enlarged card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png request id is STARSK1_311-7 (1 file(s)) Small blank ticket printed card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/cardinal_logo.bmp request id is STARSK1_311-9 (1 file(s)) cardinal_logo.bmp
Attachments (1)
- tkt.bmp (29.4 KB ) - added by 10 months ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.