summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2016-10-10 19:43:19 -0400
committerSolomon Peachy <pizza@shaftnet.org>2016-10-10 19:43:19 -0400
commit4095928c8bf88ef25c12d6ad6779c2d035398899 (patch)
tree7c34c6fd254534ec9cc27ddc682e5768ff6ec100
parent5fe917386914701cbba00595e1ee0efa0686f3ae (diff)
downloadselphy_go-4095928c8bf88ef25c12d6ad6779c2d035398899.tar.gz
selphy_go-4095928c8bf88ef25c12d6ad6779c2d035398899.tar.bz2
selphy_go-4095928c8bf88ef25c12d6ad6779c2d035398899.zip
more updates.
-rw-r--r--PROTOCOL34
1 files changed, 32 insertions, 2 deletions
diff --git a/PROTOCOL b/PROTOCOL
index 17fd27c..f7f4cc5 100644
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -231,10 +231,10 @@ DATA (0x0121)
43 50 4e 50 CPNP
01 21 DATA
00 00 00 00 SEQUENCE
-00 00 00 00 (args)
+00 01 00 00 (args)
00 40 (payload len)
-Two variations. First one is flags:
+Three variations. First one is flags:
00 00 00 00 XX XX XX XX 00 00 00 00 YY YY YY YY XX == msg len (64) YY == unknown, always 0x01
00 00 QQ 00 00 00 00 00 00 00 00 00 00 00 00 00 QQ: 03 border, 02 none
@@ -243,6 +243,36 @@ Two variations. First one is flags:
Second one is pure payload. payload len is actual bytes. (Max 4096 bytes?)
+Third one is the end of job stuff:
+
+00 00 03 00 XX XX XX XX 00 00 00 00 00 00 00 00 XX == msg len (64)
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+
+DATA_RESP (0x8121)
+--------------------
+43 50 4e 50 CPNP
+81 21 DATA
+00 00 00 00 SEQUENCE
+00 01 00 00 (args)
+00 04 (payload len)
+
+Payload is always 4 bytes:
+
+00 00 XX 00
+00 00 LL LL
+
+ LL == bytes received
+ XX == printer state.
+ 00: Wait [ busy? ]
+ 01: Send flags [ ready for job ]
+ 02: Send data [ ready for image data ]
+ 03: Done [ print complete, send final packet ]
+ 04: Error [ reported error ]
+
+ Not sure how to tell the difference which one is in use?
+
END_JOB_REQ (0x0111)
--------------------
43 50 4e 50 CPNP