printing - Setting up USB-serial Receipt Printer (epson tm-t88ii/iii compatible) on Debian Wheezy -
i'm trying receipt printer working on debian wheezy.
on being plugged computer, usb-serial receipt printer (epson tm-t88ii/ii compatible) tics question marks every few seconds, , not respond commands.
the output printer is:
˥ ?????????????????£???≡█
attempting print echo fails error:
/dev/ttyusb0: permission denied
even root.
attempting open cash drawer fails error:
/dev/ttyusb0: no such device
how stop tic , print?
here's how got working:
after sending:
# echo "test" > /dev/ttyusb0
returns permission denied,
# dmesg | tail
returns:
[92780.658576] ftdi_sio 2-3:1.0: ftdi usb serial device converter detected [92780.658624] usb 2-3: detected ft232bm [92780.658626] usb 2-3: number of endpoints 2 [92780.658628] usb 2-3: endpoint 1 maxpacketsize 64 [92780.658630] usb 2-3: endpoint 2 maxpacketsize 64 [92780.658632] usb 2-3: setting maxpacketsize 64 [92780.664556] usb 2-3: ftdi usb serial device converter attached ttyusb0 [92782.102904] usb 2-3: usbfs: interface 0 claimed ftdi_sio while 'brltty' sets config #1 [92782.104874] ftdi_sio ttyusb0: ftdi usb serial device converter disconnected ttyusb0 [92782.104891] ftdi_sio 2-3:1.0: device disconnected
this indicates there conflict package 'brltty', (braille device), installed default.
# apt-get remove brltty
stops tic
set baud with
# stty -f /dev/ttyusb0 9600
try echo
$ echo "test" > /dev/ttyusb0
it prints!
what cash drawer?
$ echo -e "\033\0160\0\031\372" >> /dev/ttyusb0
it opens!
problem solved. unless need braille display well.
Comments
Post a Comment