Debian Codegraph @

camlibs/polaroid/pdc320.html

raw symbols SCIP
1 <html>
2 <head><title>PDC320 protocol description</title></head>
3 <body>
4 <h1>Polaroid PDC320 protocol description</h1>
5 <hr>
6 Commands are prefixed with 4 E6.<br>
7 The commands return 1 reply code byte.
8 All commands return an addition 2 byte checksum.
9 <hr>
10 <table border=1>
11 <tr>
12 <td>Name</td>
13 <td>Byte code</td>
14 <td>Arguments</td>
15 <td>Reply code</td>
16 <td>reply length</td>
17 <td>reply desc</td>
18 </tr>
19 <tr>
20 <td>Init</td>
21 <td>0x00</td>
22 <td>None.</td>
23 <td>0x05</td>
24 <td>None.</td>
25 <td>Nothing.</td>
26 </tr>
27 <tr>
28 <td>Id</td>
29 <td>0x01</td>
30 <td>None.</td>
31 <td>0x00</td>
32 <td>11 bytes</td>
33 <td> Returns 11 byte. Byte 0-8 are the string "XIRLINK",
34 these are followed by a 0x02, 0x01 and 2 unknown additional bytes.
35 </td>
36 </tr>
37 <tr>
38 <td>State</td>
39 <td>0x02</td>
40 <td>None.</td>
41 <td>0x02</td>
42 <td>21</td>
43 <td>Returns 21 bytes. First byte is 0x3f, the following 9 byte
44 are big endian 16bit values:<br>
45 320,240,5,320,240,5,80,80,0 on the pdc320.
46 </td>
47 </tr>
48 <tr>
49 <td>Num</td>
50 <td>0x03</td>
51 <td>None.</td>
52 <td>0x03</td>
53 <td>1 Byte</td>
54 <td>Returns 1 bytes, the number of images.</td>
55 </tr>
56 <tr>
57 <td>Size</td>
58 <td>0x04</td>
59 <td>Imagenr.(starting with 1)</td>
60 <td>0x06</td>
61 <td>4 Bytes</td>
62 <td>Returns 4 bytes, the big endian size of the image.</td>
63 </tr>
64 <tr>
65 <td>Pic</td>
66 <td>0x05</td>
67 <td>Imagenr.(starting with 1)</td>
68 <td>0x04</td>
69 <td>4 Bytes, then data.</td>
70 <td> Returns 4 bytes, 2 byte part offset, 2 byte part offset,
71 then data, then 2 byte checksum. Then again a reply until
72 the end of the image.
73 </td>
74 </tr>
75 <tr>
76 <td>Delete All</td>
77 <td>0x07</td>
78 <td>None.</td>
79 <td>0x08</td>
80 <td>None.</td>
81 <td>Nothing.</td>
82 </tr>
83 <tr>
84 <td>End Init</td>
85 <td>0x0a</td>
86 <td>None.</td>
87 <td>0x09</td>
88 <td>None.</td>
89 <td>Nothing.</td>
90 </tr>
91 <tr>
92 <td>Get Image Params</td>
93 <td>0x0c</td>
94 <td>Imagenr. (starting with 1)</td>
95 <td>0x07</td>
96 <td>2 byte bigendian size, then data of this size</td>
97 <td>The data is expected to be 6 byte, which seems to be picture
98 parameters. Unclear what they mean. The checksum is appended
99 after the data.</td>
100 </tr>
101 </table>
102 For checksum calculation see the sourcecode (for now).
103 <p>
104 The image data return starts with:<br>
105 0xff,0xc0,16 bit bigendian height, 16 bit bigendian width, raw JPEG data.
106
107 </body></html>