Impresora requiere DTR/DSR, pero el argumento 'crtscts' activa otro tipo de handshaking. Info sobre DTR/DSR vs RTS/CTS: http://linux.about.com/od/srl_howto/a/hwtsrl21t04.htm
Segun 'http://unixhelp.ed.ac.uk/CGI/man-cgi?stty' existe la opcion 'cdtrdsr': "enable DTR/DSR handshaking", pero la version stty de ubuntu no la reconoce, por lo tanto, probando:
4) You may need to loopback 4&5 and 6&20. These are hardware control signals for DSR, DTR, CTS and RTS (not respectively). It is possible that your PC is waiting for a CTS before it transmits and the printer is not raising the signal. Check your mode command. Does it have an odsr option? Try playing with odsr, octs, dtr, idsr and rts if it does. Your printer may magically come to life.
https://www.linuxquestions.org/questions/linux-general-1/setserial-178924/
ReplyDelete## Para ver configuracion actual
$ setserial -G /dev/ttyS0
## Para pasar a 9600 baudios
$ setserial /dev/ttyS0 baud_base 9600
http://www.tldp.org/LDP/nag2/x-087-2-serial-configuration.html
ReplyDelete# 9600 8N1
$ stty 9600 cs8 -parenb crtscts -echo -parenb -cstopb -F /dev/ttyS0
Ahora con clocal:
ReplyDelete$ stty 9600 cs8 -parenb crtscts -echo -parenb -cstopb clocal -F /dev/ttyS0
Impresora requiere DTR/DSR, pero el argumento 'crtscts' activa otro tipo de handshaking. Info sobre DTR/DSR vs RTS/CTS: http://linux.about.com/od/srl_howto/a/hwtsrl21t04.htm
ReplyDeleteSegun 'http://unixhelp.ed.ac.uk/CGI/man-cgi?stty' existe la opcion 'cdtrdsr': "enable DTR/DSR handshaking", pero la version stty de ubuntu no la reconoce, por lo tanto, probando:
$ stty 9600 cs8 -parenb -crtscts -echo -parenb -cstopb clocal -F /dev/ttyS0
no da error, pero la impresora sigue sin funcionar
La embozadora: http://www.datacard.com/plastic-card-embossers/280p-embosser
ReplyDeleteProblema de ArchLinux: https://bugs.archlinux.org/task/20396
ReplyDeleteComo configurar serial desde CUPS
ReplyDeletehttp://dorset.lug.org.uk/wiki/doku.php?id=articles:cupsprinting
Para ver seteo actual con stty
ReplyDelete$ stty -F /dev/ttyS0 -a
Bug de stty
ReplyDeletehttps://bugzilla.redhat.com/show_bug.cgi?id=598631
Testeando en https://pos.epson.com/products/TM-U950
ReplyDeletehttp://www.computing.net/answers/dos/printing-to-epson-tmu950-in-com12/10622.html
ReplyDelete4) You may need to loopback 4&5 and 6&20. These are hardware control signals for DSR, DTR, CTS and RTS (not respectively). It is possible that your PC is waiting for a CTS before it transmits and the printer is not raising the signal. Check your mode command. Does it have an odsr option? Try playing with odsr, octs, dtr, idsr and rts if it does. Your printer may magically come to life.