wiki:Docs/825gen2/Dev/Devices/USB/Printers

USB Printers - Text Printing

EPSON LQ-590IIN is our replacement for discontinued Okidata 320

Plugged in USB

card825gen2:~$ dmesg


[    6.576755] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04B8 pid 0x009B



card825gen2:~$ ls /dev
autofs           gpiochip4     mmcblk0p2    ptypc        tty20  tty43  tty9                urandom  vcsu6
block            hugepages     mmcblk0p3    ptypd        tty21  tty44  ttyS0               usb      vcsu7
btrfs-control    hwrng         mmcblk0rpmb  ptype        tty22  tty45  ttyS1               v4l      vfio
bus              i2c-0         mnbd         ptypf        tty23  tty46  ttyS2               vcs      vga_arbiter
caam-keygen      i2c-3         mqueue       random       tty24  tty47  ttyS3               vcs1     vhci
cardbeep         initctl       mxc_hantro   rpmsg_ctrl0  tty25  tty48  ttymxc1             vcs2     video0
cardctl          input         net          shm          tty26  tty49  ttymxc2             vcs3     video1
cec0             kmsg          null         snd          tty27  tty5   ttyp0               vcs4     vsi_daemon_ctrl
char             kvm           port         stderr       tty28  tty50  ttyp1               vcs5     watchdog
console          log           pps0         stdin        tty29  tty51  ttyp2               vcs6     watchdog0
cpu_dma_latency  loop-control  ptmx         stdout       tty3   tty52  ttyp3               vcs7     wt1
cuse             loop0         ptp0         tty          tty30  tty53  ttyp4               vcsa     wt10
disk             loop1         pts          tty0         tty31  tty54  ttyp5               vcsa1    wt2
dma_heap         loop2         ptyp0        tty1         tty32  tty55  ttyp6               vcsa2    wt3
dri              loop3         ptyp1        tty10        tty33  tty56  ttyp7               vcsa3    wt4
fb               loop4         ptyp2        tty11        tty34  tty57  ttyp8               vcsa4    wt5
fb0              loop5         ptyp3        tty12        tty35  tty58  ttyp9               vcsa5    wt6
fd               loop6         ptyp4        tty13        tty36  tty59  ttypa               vcsa6    wt7
full             loop7         ptyp5        tty14        tty37  tty6   ttypb               vcsa7    wt8
fuse             mapper        ptyp6        tty15        tty38  tty60  ttypc               vcsu     wt9
galcore          mem           ptyp7        tty16        tty39  tty61  ttypd               vcsu1    wttot
gpiochip0        mmcblk0       ptyp8        tty17        tty4   tty62  ttype               vcsu2    zero
gpiochip1        mmcblk0boot0  ptyp9        tty18        tty40  tty63  ttypf               vcsu3
gpiochip2        mmcblk0boot1  ptypa        tty19        tty41  tty7   ubi_ctrl            vcsu4
gpiochip3        mmcblk0p1     ptypb        tty2         tty42  tty8   udev_network_queue  vcsu5

card825gen2:~$ ls /dev/usb
lp0

Print "Hello world" to the printer:

card825gen2:~$ echo "Hello world" > /dev/usb/lp0

Print file to the printer:

card825gen2:~$ cat /usr/sbin/diag/filemgr.sh > /dev/usb/lp0

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

The CCommSerial class in lib825ev is updated to allow for USB printer support for text printing. CCommSerial

Last modified 3 months ago Last modified on 01/23/24 11:16:23
Note: See TracWiki for help on using the wiki.