Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Unreleased Color Pocket Printer, as mentioned in DMPJ and DMBJ.
- Packet structure identical to Pocket Printer. Not worth reprinting here.
- Heartbeat value is 0x82, not 0x81.
- A dead print command (x = 0) must preceed actual printing instead of an empty packet instead of an empty data packet. Probably.
- Printer Commands:
- 1 byte
- 01 Init clears RAM buffer; reply of 00
- 02 Settings
- FFFF RR GG BB
- F flags?
- 8000 ???; set as a default print value
- 0100 "fast mode"; set when output is half resolution (src 320x240 -> out 160x120), meaning you can print two lines per data transfer.
- 0008 ???; set as a default print value
- 0001 ???; set as a default print value
- 00?? there were two more values OR'd in, but both set to zero and no reference yet
- 00??
- R red level; default 0x80
- G green level; default 0x80
- B blue level; default 0x80
- 04 Data sends up to 320 15bit color pixels to printer per command, little-endian (0x280 bytes)
- Little-endian, so actual order is gggrrrrr 0bbbbbgg.
- 7C00 blue
- 03E0 green
- 001F red
- 06 Print
- cc ?? ?? ??
- c number of lines printed. probably prints two at a time in "fast mode"
- *other values were always set to zero
- 08 Cancel
- Apparently used to reset any activities, not just printing. Pocket Printer should also have this command.
- 0F Status a NOP used to recieve one byte status
- 00 is presumed "it's all right!"
- 80 low battery
- 40 currently printing
- 20 ???, maybe unused
- 10 ???, maybe unused
- 08 error detected
- 07 error code (0-7)
- 0 feed error? specifics unknown
- 1 feed error? specifics unknown
- 2 outside operating temperature limit; specifics unknown, though one's obvious overheat and one may be too cool
- 3 outside operating temperature limit; specifics unknown
- 4 out of paper
- 5 cover is open
- 6 paper jam
- 7 feed error? specifics unknown
- responds 00
- Usage is pretty much the same a Pocket Printer. Responses are 82,xx instead of 81,xx.
- Settings (2) can be set at any time before print. Replace the empty data packet with a "print 0 lines" packet.
- Typical use: (tentative)
- send cmd 1; response 82,00
- send cmd 2 with settings; response 82,00.
- For 320px lines (probably the default) the default is 8009808080
- send cmd 4 w/ 0x280 of graphics; response 82,??
- All formatting is done on your end, not the printer's!
- optional: send cmd F; response 82,00
- send cmd 6 w/ 0 lines; response 82,00 # this empty packet is required or the thing will not print!
- send cmd 6 w/ one or more lines; response 82,??
- send cmd F looped until response 82,00
- repeat cmds 4, 6, F until image complete
- -Zoinkity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement