Is there any way to send data to USB port like echo "hello world!" > /dev/usb/lp1
?
Edit
I've been using label printers from different brands by only issuing some simple EPL commands:
sR
q455
Q479,010
D8
S3
JF
ZB
OD
TDdd.mn.y4
N
GG15,40,"LOGO1"
A180,181,0,3,1,1,N,TT
A165,321,0,3,1,1,N,TD
P1
I can print a label from printer by sending this string to /dev/usb/lp1
.
I can also use continuous printers by issuing echo "hello world!" > /dev/usb/lp1
in order to print a line.
https://github.com/tessel/node-usb seems very complex to me. There is no example in their home page either.
I need to send data like I can use serial port, by only a few additional parameters like manufacturer id/serial number or physical port number, like I would find out with lsusb
.
Is there any library that meets these simplicity requirements?