Specifications
P25 Development Guide
www.bluebamboo.com
48
3.5.1 Query Status
C0 51 C1 is deprecated, it return fixed result.
C0 53 C1 could be used to query status.
1 [00006329] IRP_MJ_WRITE Length: 0003, Data: C0 53 C1
2 [00006342] IRP_MJ_READ Length: 0008, Data: 00 C0 53 00 C1 C1 0D 0A
3 [00007332] IRP_MJ_WRITE Length: 0003, Data: C0 53 C1
4 [00007346] IRP_MJ_READ Length: 0008, Data: 00 C0 53 01 C1 C1 0D 0A
Note: Step 1. Query P25 Status
Step 2. P25 report no error, The 00 Byte indicates no error
Step 4. P25 report no paper, The 01 Byte indicates no paper or cover open
Error Indicate Byte Meaning:
00 ----------- No error
01 ----------- No paper or cover open
04 ----------- Printer header’s temperature too high
08 ----------- Low battery
3.5.2 Print
1 [00001440]IRP_MJ_WRITE Length: 0013, Data: C0 44 30 30 30 30 33 61 62 63 02 62 C1
2 [00001444]IRP_MJ_READ Length: 0006, Data: 00 C0 04 C1 0D 0A
3 [00001459]IRP_MJ_READ Length: 0007, Data: 00 C0 03 30 C1 0D 0A
Note: Step 1. Send Print Command
Step 2. P25 report received command OK
Step 3. P25 report print finished
Print protocol:
Mobile phone P25M
Write ENQ(C0 05 C1) Read
Read ACK(C0 06 C1) Write
Write Print Data(C0 44 30 30 30 31 Read
38 48 65 6C 6C 6F 2C 20 42
6C 75 65 42 61 6D 62 6F 6F
21 0E 73 C1)
Read EOT(C0 04 C1) Write
Read ETX(C0 03 30 C1) Write
Write EOT(C0 04 C1) Read
Read ACK(C0 C1) Write
a) print 1D barcode
Barcode content: 6901234567892
Frame content: c0 44 32 30 30 31 37 1d 6b 02 0d 36 39 30 31 32
33 34 35 36 37 38 39 32 23 66 c1
Description:
C0: start tag
44: print command
32: frame sequence
30 30 31 37: 17 bytes data
1d 6b 02 0d: barcode format
36..32: barcode data
23: odd check
66: even check
C1: end tag