Specifications
P25 Development Guide
www.bluebamboo.com
56
3.6 P25i/P25i-M Communication Protocol (Applies only to P25
Made for iPhone version)
P25i/P25i-M is a special Printer that can working with iPhone/iPod Touch through serial cable. It
has two operations, Print receipt and read MSR read
protocolString "com.bluebamboo.p25i", protocolIndex 1
Default bundleSeedIDString is "YT79N447RD", in fact, we would custom it to our customer's App
ID that is assigned by Apple.
3.6.1 Operation Commands Format
There are four types of data in the frame: Operation flag, Operation Type, Parameters and Data.
yOperation Flag: Operation Flag is a constant four-byte array. For example:”55 66 77 88”.
yOperation Type: There are four kinds of operation type: 44-print, 03-print result, 48-MSR, 84-
MSR read result.
yParameters and Data: Parameters and Data are operational frame, they would be changed by
different operation types
3.6.1.1 Print command
Direction: iPhone--to-->P25i/P25i-M printer(s):
One print command consists of Operation Flag, Operation Type and Data.
For example:
Operation Type (One byte only)
55 66 77 88 44 30 31 32
Data
Operation Flag
(Four bytes)
The printer will print “123” on the receipt according to above print command. In the Command,“55
66 77 88” is Operation Flag, “44” is print command and “30 31 32” is the Data that would be
printed.
3.6.1.2 Print Result Command
Direction: P25i/P25i-M printer(s)--to-->iPhone
If the print command has been already processed, P25i/P25i-M printer(s) will send a print
response message to iPhone with process result.
For example:
Operation Type (One byte only)
55 66 77 88 03 00
Data (One byte only)
Operation Flag
(Four bytes)