Sending Cut paper command to ESC POS printer

2,409 views
Skip to first unread message

Lawrence Gould

unread,
Mar 18, 2015, 5:40:18 PM3/18/15
to mitappinv...@googlegroups.com
I am trying to send commands to an ESC/POS printer over bluetooth. The printer in question is an Epson TM-T88II which is not a bluetooth enabled printer but with the aid of an HC-05 bluetooth module and MAX232 chip I am able to send both text and Line Feed commands, however I am struggling to send a paper cut command which is GS,V or decimal 29,86 (Hex 1D,56). In order to Line Feed I am sending a 1byte number to the printer, the number 10 which works fine but I seem unable to format the Paper Cut?

Abraham Getzler

unread,
Mar 18, 2015, 9:40:37 PM3/18/15
to mitappinv...@googlegroups.com
You have two different ways to try...

Send a list of decimal bytes or

Use the Web component blocks to encode the decimal values into text, and send the text.

See attached.

ABG

decimal codes.jpg

Lawrence Gould

unread,
Mar 19, 2015, 6:56:41 PM3/19/15
to mitappinv...@googlegroups.com
Thank you! I tried the 1st example which worked when I eventually realised that I was missing the last parameter so I added another item to the list to define whether the cut was full or partial and the printer executed a paper cut. Then I noticed something peculiar, I had sent a line of text, 2 line feeds and then the paper cut to the printer but it seems to be executing them in reverse order cutting though the last printed line, feeding 2 lines then printing the text again?

Lawrence Gould

unread,
Mar 19, 2015, 7:20:42 PM3/19/15
to mitappinv...@googlegroups.com
Sorry my mistake, print head is a lot lower than the cutter and I just didn't put enough line feeds in to clear the printed text before cutting.

Reply all
Reply to author
Forward
0 new messages