Hi
I couldn't get the cash drawer opening when using a TM81. Based on this
documentation
http://nicholas.piasecki.name/blog/wp-content/uploads/2009/12/ESC-POS-Command-Gu
ide.pdf
a pulse duration is required which is not included in the current code.
The docs say ASCII DLE DC4 n m t
This outputs a signal specified by t to the connector pin specified by m.
m = 0: #2 Pin of the drawer kick connector
m = 1: #5 Pin of the drawer kick connector
On time is set to t x 100 msec; Off time is set to t x 100 msec
The current code has
CD_KICK_2 = '\x1b\x70\x00' # Sends a pulse to pin 2 []
CD_KICK_5 = '\x1b\x70\x01' # Sends a pulse to pin 5 []
Which didn't work.
I changed the constants to
CD_KICK_2 = '\x1b\x70\x00\x50\x50'
CD_KICK_5 = '\x1b\x70\x01\x50\x50'
Which works reliably on the TM81
Original issue reported on code.google.com by zutes...@gmail.com on 31 May 2013 at 3:12
Original issue reported on code.google.com by
zutes...@gmail.com
on 31 May 2013 at 3:12