Changes

1,176 bytes added ,  11:20, 12 April 2021
no edit summary
Line 66: Line 66:  
Since Prefix 2 does not match incoming 2nd byte, data will not be accepted.
 
Since Prefix 2 does not match incoming 2nd byte, data will not be accepted.
   −
===RS232 POS printer===
+
====RS232 POS printer====
 +
[[Image:RS-232 POS Printer.png]]
 +
 
 +
The '''5803 Bluetooth printer''' tested & confirmed working command set is provided in Command table paragraph.
 +
 
 +
Before every print, a status command byte request is sent. If the device returns the byte within a specific time frame, it means that the device is present. If cleanup task is not running “Get real-time status” command is sent every second to check if printer was connected to MSP500 device. Upon successful detection of a connected printer MSP500 starts printing all the records generated within the last hour.
 +
 
 +
Commands are sent in this format:
 +
 
 +
    1 byte - Beginning of the command (ESC, GS or similar type byte from ASCII table)
 +
    1-2 byte(-s) - (optional) Command identifier
 +
    (x) bytes - (optional) Command arguments
 +
 
 +
Text printing is accomplished by just sending plain ASCII without any commands. If the buffer for the whole print line fills up (>32 chars), it prints the text automatically and feeds one line. If there’s less text, than it only prints and feeds line when linefeed (carriage is not needed) char is sent. Very few commands give back an answer (only status commands from all the tested ones).
 +
 
    
==Garmin protocols==
 
==Garmin protocols==

Navigation menu