
P25 Development Guide
www.bluebamboo.com
Table of Contents
1Introduction ............................................................................................................................. 1
1.1 Purpose.......................................................................................................................... 1
1.2 Scope ............................................................................................................................. 1
2ESC commands...................................................................................................................... 2
2.1 Print Commands............................................................................................................. 3
2.2 Line Space Commands.................................................................................................. 6
2.3 Character Commands.................................................................................................... 7
2.4 Keypad Button Commands .......................................................................................... 13
2.5 Print Position Commands............................................................................................. 14
2.6 Bit-Image Commands .................................................................................................. 18
2.7 Miscellaneous Function Commands............................................................................ 24
2.8 Control Device Commands .......................................................................................... 25
2.9 ESC/GS Commands with Respond Info ...................................................................... 28
2.10 Enter/Quit Bridge Mode Commands............................................................................ 29
2.11 Realtime Commands.................................................................................................... 30
3Introduction of Communication Protocol............................................................................... 34
3.1 Plain Text Protocol....................................................................................................... 34
3.2 Framing Protocol.......................................................................................................... 35
3.3 Process of Getting the Printer Status........................................................................... 36
3.4 Printing Data................................................................................................................. 37
3.4.1 Format of Printing Data Frame(Update flash also use this command) ................... 38
3.4.2 Format of ENQ Frame ............................................................................................. 39
3.4.3 ACK Frame Format.................................................................................................. 39
3.4.4 NACK Frame Format............................................................................................... 39
3.4.5 ETX Frame Format.................................................................................................. 39
3.4.6 Format of EOT Frame.............................................................................................. 39
3.5 Downloading Data for Updating Flash ......................................................................... 40
3.5.1 Process of Software Update.................................................................................... 40
3.5.2 Resource Files and Their Format ............................................................................ 41
3.5.3 Packages of Downloading ....................................................................................... 42
3.5.4 A Complete Log of Update Process ........................................................................ 43
3.6 MSR Not Encrypted...................................................................................................... 44
3.6.1 Format of Frame of Request to MSR....................................................................... 44
3.6.2 MSR Response Frame Format................................................................................ 45
3.7 MSR DUKPT................................................................................................................ 46
3.7.1 Format of Set DUKPT KSN and Initial Key (Request)............................................. 46
3.7.2 Format of Set DUKPT KSN and Initial Key (Response).......................................... 47
3.7.3 MSR TriDes PIN Encryption Request...................................................................... 47
3.7.4 MSR TriDes PIN Encryption Respond..................................................................... 47
3.7.5 MSR TriDes Data Encryption Request .................................................................... 49
3.7.6 MSR TriDes Data Encryption Respond ................................................................... 49
3.7.7 MSR AES Data Encryption Request........................................................................ 49
3.7.8 MSR AES Data Encryption Respond....................................................................... 49
3.8 MK/SK Encrypted......................................................................................................... 50
3.8.1 Encrypt Algorism...................................................................................................... 50
3.8.2 Reference Application Example............................................................................... 50
3.8.3 Download Master Key.............................................................................................. 50
3.8.4 Sync Session key..................................................................................................... 52
3.8.5 Print Encrypted Information by Session Key ........................................................... 54