Benutzer-Werkzeuge

Webseiten-Werkzeuge


hardware:bizhub_scan

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
hardware:bizhub_scan [2011/10/03 14:23] reinholdhardware:bizhub_scan [2013/03/13 11:42] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 10: Zeile 10:
 Other devices might also use this type of scanning protocol, but I have not had access to them so far. Other devices might also use this type of scanning protocol, but I have not had access to them so far.
  
-The different devices have a similar command set, but slight differences. +The different devices have a similar command set, but slight differences exist.
  
 ^ Device      ^ Series ^ ^ Device      ^ Series ^
Zeile 127: Zeile 127:
 Each function call and each response has the following form (byte-wise, where the spaces between the actual bytes are not part of the communication): Each function call and each response has the following form (byte-wise, where the spaces between the actual bytes are not part of the communication):
  
-^ ESC * func ##1 param1 ##2 param2 ... ##n Paramn [opional_binary_data] ^^^^^+^ ESC * func ##1 param1 ##2 param2 ... ##n Paramn [opional_binary_data] ^^^^
 |\ \ \ | byte 1: | ESC (0x1b) | Escape sequence | |\ \ \ | byte 1: | ESC (0x1b) | Escape sequence |
 |\ \ \ | byte 2: | * (0x2a)   | fixed parameterized character | |\ \ \ | byte 2: | * (0x2a)   | fixed parameterized character |
Zeile 160: Zeile 160:
 ^ Box handling ^^^^^ ^ Box handling ^^^^^
 | Esc*h$B        (1)              |  21100    | Select/Lock Box $ (unlock if $=-1)                    (423/? | | Esc*h$B        (1)              |  21100    | Select/Lock Box $ (unlock if $=-1)                    (423/? |
-| Esc*h$$F      |  (1)              |  21100    | ???? TODO                                             (423/? |+| Esc*h$$F      |  (1)              |  21100    | ???? FIXME                                             (423/? |
 | Esc*h$$K      |  (2)              |  21111    | Retrieve preview image ($$ bytes of arguments)        (423/? | | Esc*h$$K      |  (2)              |  21111    | Retrieve preview image ($$ bytes of arguments)        (423/? |
-| Esc*h$$L      |  (2)              |  21116    | TODO: Image settings/select image; Return: image size in bytes | (423/? |+| Esc*h$$L      |  (2)              |  21116    | FIXME: Image settings/select image; Return: image size in bytes | (423/? |
 ^ Error handling ^^^^^ ^ Error handling ^^^^^
 | Esc*oE        |  -                |           | Clear error stack                                    |  all  | | Esc*oE        |  -                |           | Clear error stack                                    |  all  |
Zeile 285: Zeile 285:
  
  
-===== Esc*z##G ... Setting image parameters on C202 =====+===== Esc*z##G ... Setting image parameters on C353series =====
  
 Image parameters for the scan. All values are sent in little endian, but in the table they are shown as human-readable hex numbers Image parameters for the scan. All values are sent in little endian, but in the table they are shown as human-readable hex numbers
Zeile 292: Zeile 292:
 |\ \ \ | ##G | Parameter G: Size of image data parameters (24 bytes), always ''24G'' ||| |\ \ \ | ##G | Parameter G: Size of image data parameters (24 bytes), always ''24G'' |||
 |\ \ \ | 24 bytes binary data |||| |\ \ \ | 24 bytes binary data ||||
-|  |  | Byte 1-2:  | xResolution (little endian, e.g. 0x00c8=200dpi) |+|  |  | Byte 1-2:  | x Resolution (little endian) | 0x00c8=200dpi, 0x012c=300dpi; 100dpi uses 200dpi! 
-|  |  | Byte 3-4:  | yResolution (little endian, e.g. 0x00c8=200dpi) |+|  |  | Byte 3-4:  | y Resolution (little endian) | 0x00c8=200dpi, 0x012c=300dpi; 100dpi uses 200dpi! 
-|  |  | Byte 5-6:  | Color mode: Unknown, FIXME | 0=BW, 1=Gray, ??=Color |  +|  |  | Byte 5-6:  | Color mode: Unknown, FIXME | 0=BW, 1=Gray, ??=Color (Preview: 0x00 for BW, 0x04 for Gray, 0x05 for Color; Scan: ???) |  
-|  |  | Byte 7-8:  | Bits per pixel, FIXME | BW: 1, Gray: 8, Color: FIXME +|  |  | Byte 7-8:  | Bits per pixel | BW: 0x0001, Gray: 0x008, Color: 0x0018 (=24) 
-|  |  | Byte 9-10: | Unknown, FIXME | 0x0082 | +|  |  | Byte 9-10: | Unknown, FIXME | 0x0082  for BW preview 0x0000 for all other previews; 0x0081 for Grayscale JPEG compression 
-|  |  | Byte 11-12:Unknown, FIXME | 0x0000 or 0x0001 | +|  |  | Byte 11-12:Duplex | 0x0000=simplex, 0x0001=duplex 
-|  |  | Byte 13:| Contrast?, FIXME 0xfa=-6 to 0x02=+2 | +|  |  | Byte 13-14:| Remove Background range -6... 2 (''fa ff''=0xfffa to ''02 00''=0x0002)0x0100 (''00 01'') for Auto 
-|  |  | Byte 14:| UnknownFIXME | 01, 00 or ff +|  |  | Byte 15-16:| Rotation | 0x0000=no rotation, 0x0001=rotate 180, 0x0002=counter-clockwise (270), 0x0003=clockwise (90) | 
-|  |  | Byte 15:| Rotation | 0x00=no rotation, 0x01=rotate 180, 0x02=counter-clockwise (270), 0x03=clockwise (90) +|  |  | Byte 17-18:| Duplex binding | 0x0000=simplex, 0x0001=left binding, 0x0002=top binding, 0x0003=right binding, 0x00ff=autodetect binding 
-|  |  | Byte 16:| Unknown, FIXME | always 00 +|  |  | Byte 19-20:| Preview/Final scan 0x0000=Preview, 0x0001=Normal scan |  
-|  |  | Byte 17-18:| Duplex? FIXME | 0x0000=simplex, 0x0001=duplex +|  |  | Byte 21-22:Image type see below for image types 
-|  |  | Byte 19-20:| Preview scan0x0000=Preview, 0x000=Normal scan |  +|  |  | Byte 23-24:| Paper size / Image area? | First half-byte: 0x0=portrait,0x1=landscape; see below (''ESC*z##H'') for the paper formats  |
-|  |  | Byte 21-22:Unknown, FIXME 02 00 or 06 00 +
-|  |  | Byte 23-24:| Paper size?  See tabe for ESC*z##below |+
 ^ Return data: ESC*s20116r1V ^^^^^ ^ Return data: ESC*s20116r1V ^^^^^
 |\ \ \ | 20116r | Variable 20116: See below ||| |\ \ \ | 20116r | Variable 20116: See below |||
Zeile 319: Zeile 317:
  
  
-===== Esc*z##H ... Setting image parameters on 363 =====+===== Esc*z##H ... Setting image parameters on 423series =====
  
 Image parameters for the scan. All values are sent in little endian, but in the table they are shown as human-readable hex numbers Image parameters for the scan. All values are sent in little endian, but in the table they are shown as human-readable hex numbers
Zeile 328: Zeile 326:
 |  |  | Byte 1-2:  | x Resolution (little endian) | 0x00c8=200dpi, 0x012c=300dpi; 100dpi uses 200dpi! | |  |  | Byte 1-2:  | x Resolution (little endian) | 0x00c8=200dpi, 0x012c=300dpi; 100dpi uses 200dpi! |
 |  |  | Byte 3-4:  | y Resolution (little endian) | 0x00c8=200dpi, 0x012c=300dpi; 100dpi uses 200dpi! | |  |  | Byte 3-4:  | y Resolution (little endian) | 0x00c8=200dpi, 0x012c=300dpi; 100dpi uses 200dpi! |
-|  |  | Byte 5-6:  | Color mode: Unknown, FIXME 0=BW1=Gray??=Color (Preview: 0x00 for BW, 0x04 for Gray, 0x05 for Color; Scan: ???) +|  |  | Byte 5-6:  | Color mode | 0x0000=B/W0x0004=Grayscale0x0005=Color | 
 |  |  | Byte 7-8:  | Bits per pixel | BW: 0x0001, Gray: 0x008, Color: 0x0018 (=24) | |  |  | Byte 7-8:  | Bits per pixel | BW: 0x0001, Gray: 0x008, Color: 0x0018 (=24) |
-|  |  | Byte 9-10: | Unknown, FIXME 0x0082  for BW preview 0x0000 for all other previews; 0x0081 for Grayscale JPEG compression |+|  |  | Byte 9-10: | Data compression format | 0x0000=No compression, 0x0081=JPEG compression, 0x0082=BW pixelwise (1 byte contains 8 pixel values) |
 |  |  | Byte 11-12:| Duplex | 0x0000=simplex, 0x0001=duplex | |  |  | Byte 11-12:| Duplex | 0x0000=simplex, 0x0001=duplex |
 |  |  | Byte 13-14:| Remove Background | range -6... 2 (''fa ff''=0xfffa to ''02 00''=0x0002), 0x0100 (''00 01'') for Auto | |  |  | Byte 13-14:| Remove Background | range -6... 2 (''fa ff''=0xfffa to ''02 00''=0x0002), 0x0100 (''00 01'') for Auto |
Zeile 337: Zeile 335:
 |  |  | Byte 19-20:| Preview/Final scan | 0x0000=Preview, 0x0001=Normal scan |  |  |  | Byte 19-20:| Preview/Final scan | 0x0000=Preview, 0x0001=Normal scan | 
 |  |  | Byte 21-22:| Image type | see below for image types | |  |  | Byte 21-22:| Image type | see below for image types |
-|  |  | Byte 23-24:| Paper size / Image area| First half-byte: 0x0=portrait,0x1=landscape; see table below for the paper formats |+|  |  | Byte 23-24:| Paper size / Image area | First half-byte: 0x0=portrait,0x1=landscape; Rest: Paper format (see table below for a list) |
 |  |  | Byte 25-26:| Paper discoloration | range -6... 2 (''fa ff''=0xfffa to ''02 00''=0x0002), 0x0100 (''00 01'') for Auto  | |  |  | Byte 25-26:| Paper discoloration | range -6... 2 (''fa ff''=0xfffa to ''02 00''=0x0002), 0x0100 (''00 01'') for Auto  |
-|  |  | Byte 27:| Unknown, FIXME | 0x00 |+|  |  | Byte 27:   | Unknown | 0x00 |
 ^ Return data: ESC*s20122r1V ^^^^^ ^ Return data: ESC*s20122r1V ^^^^^
 |\ \ \ | 20122r | Variable 20122: See below ||| |\ \ \ | 20122r | Variable 20122: See below |||
Zeile 348: Zeile 346:
     1b 2a 7a 32 37 48 c8 00  c8 00 00 00 01 00 82 00        ESC*z27H     1b 2a 7a 32 37 48 c8 00  c8 00 00 00 01 00 82 00        ESC*z27H
     00 00 02 00 00 00 00 00  00 00 06 00 63 0e 00 01 00     00 00 02 00 00 00 00 00  00 00 06 00 63 0e 00 01 00
-    02 00 00 00 10 00 00  00 02 00 00 00 00 01 00 00                                               .+    02 00 00 00 10 00 00  00 02 00 00 00 00 01 00 00
         02 00 00 00 17 00 00 00  01 00 00 80         02 00 00 00 17 00 00 00  01 00 00 80
         1b 2a 73 32 30 31 32 32  72 31 56                   ESC*s20122 r1V         1b 2a 73 32 30 31 32 32  72 31 56                   ESC*s20122 r1V
  
-^ Paper size id ^ Paper size ^  
-| 0x0000 (00 00)  | Auto size | 
-| 0x1550 (50 15)  | whole area | 
-| 0x1103 (03 11)  | A3 SEF | 
-| 0x1104 (04 11)  | A4 SEF (landscape) | 
-| 0x0104 (04 01)  | **A4 LEF(portrait)** | 
-| 0x1105 (05 11)  | A5 SEF | 
-| 0x0105 (05 01)  | A5 LEF | 
-| 0x1106 (06 11)  | A6 SEF | 
-| 0x1204 (04 12)  | JIS B4 SEF | 
-| 0x1205 (05 12)  | JIS B5 SEF | 
-| 0x0205 (05 02)  | JIS B5 LEF | 
-| 0x1206 (06 12)  | JIS B6 SEF | 
-| 0x1605 (05 16)  | 11x17 SEF | 
-| 0x160b (0b 16)  | 8 1/2 x 14 SEF | 
-| 0x160f (0f 16)  | 8 1/2 x 11 SEF | 
-| 0x060f (0f 06)  | 8 1/2 x 11 LEF | 
-| 0x1618 (18 16)  | 5 1/2 x 8 1/2 SEF | 
-| 0x0618 (18 06)  | 5 1/2 x 8 1/2 LEF | 
-| 0x1617 (17 16)  | 7 1/4 x 10 1/2 SEF | 
-| 0x0617 (17 06)  | 7 1/4 x 10 1/2 LEF | 
-| 0x1e63 (63 1e)  | 9 x 13cm SEF | 
-| 0x0e63 (63 )e)  | 9 x 13cm LEF | 
-| 0x1e62 (62 1e)  | 10 x 15cm SEF | 
-| 0x0e62 (62 0e)  | 10 x 15cm LEF | 
-| 0x1e61 (61 1e)  | 13 x 18cm SEF | 
-| 0x0e61 (61 0e)  | 13 x 18cm LEF | 
-| 0x1614 (14 16)  | Foolscap SEF | 
-| 0x1803 (03 18)  | 8K SEF | 
-| 0x0804 (04 08)  | 16K LEF | 
-| 0x1804 (04 18)  | 16K SEF | 
  
-Custom formats use the smallest size that encloses the custom format (e.g. 33x21mm and 85x99mm both use A6 SEF (0x1106 = ''06 11'')+^ ^ ^  **Pixel @ 200dpi**  ^^  **Pixel @ 200dpi**  ^^  **Inch**  ^^  **mm**  ^^ 
 +^ Paper size ^  **ID**  ^  **Width**  ^  **Height**  ^  **Width (dec)**  ^  **Height (dec)**  ^  **Width (dec)**  ^  **Height (dec)**  ^  **Width**  ^  **Height** 
 +^ **Auto size**|  0x0000  | ||  || || || 
 +^ **whole area**|  0x1550  |  0x0d48  |  0x0922  |  3400  |  2338  |  17  |  11,69  |  431,8  |  296,9  | 
 +^ **A3 SEF**|  0x1103  |  0x0ceb  |  0x0922  |  3307  |  2338  |  16,535  |  11,69  |  420,0  |  296,9  | 
 +^ **A4 SEF (landscape)**|  0x1104  |  0x0922  |  0x0675  |  2338  |  1653  |  11,69  |  8,265  |  296,9  |  209,9  | 
 +^ **A4 LEF(portrait)**|  0x0104  |  0x0675  |  0x0922  |  1653  |  2338  |  8,265  |  11,69  |  209,9  |  296,9  | 
 +^ **A5 SEF**|  0x1105  |  0x0675  |  0x04d8  |  1653  |  1240  |  8,265  |  6,2  |  209,9  |  157,5  | 
 +^ **A5 LEF**|  0x0105  |  0x04d8  |  0x0675  |  1240  |  1653  |  6,2  |  8,265  |  157,5  |  209,9  | 
 +^ **A6 SEF**|  0x1106  |  0x04d8  |  0x033a  |  1240  |  826  |  6,2  |  4,13  |  157,5  |  104,9  | 
 +^ **JIS B4 SEF**|  0x1204  |  0x0b32  |  0x07e7  |  2866  |  2023  |  14,33  |  10,115  |  364,0  |  256,9  | 
 +^ **JIS B5 SEF**|  0x1205  |  0x07e7  |  0x0599  |  2023  |  1433  |  10,115  |  7,165  |  256,9  |  182,0  | 
 +^ **JIS B5 LEF**|  0x0205  |  0x0599  |  0x07e7  |  1433  |  2023  |  7,165  |  10,115  |  182,0  |  256,9  | 
 +^ **JIS B6 SEF**|  0x1206  |  0x0599  |  0x03ef  |  1433  |  1007  |  7,165  |  5,035  |  182,0  |  127,9  | 
 +^ **11×17 SEF**|  0x1605  |  0x0d48  |  0x0898  |  3400  |  2200  |  17  |  11  |  431,8  |  279,4  | 
 +^ **8 1/2 x 14 SEF**|  0x160b  |  0x0af0  |  0x06a4  |  2800  |  1700  |  14  |  8,5  |  355,6  |  215,9  | 
 +^ **8 1/2 x 11 SEF**|  0x160f  |  0x0898  |  0x06a4  |  2200  |  1700  |  11  |  8,5  |  279,4  |  215,9  | 
 +^ **8 1/2 x 11 LEF**|  0x060f  |  0x06a4  |  0x0898  |  1700  |  2200  |  8,5  |  11  |  215,9  |  279,4  | 
 +^ **5 1/2 x 8 1/2 SEF**|  0x1618  |  0x06a4  |  0x044c  |  1700  |  1100  |  8,5  |  5,5  |  215,9  |  139,7  | 
 +^ **5 1/2 x 8 1/2 LEF**|  0x0618  |  0x044c  |  0x06a4  |  1100  |  1700  |  5,5  |  8,5  |  139,7  |  215,9  | 
 +^ **7 1/4 x 10 1/2 SEF**|  0x1617  |  0x0834  |  0x05aa  |  2100  |  1450  |  10,5  |  7,25  |  266,7  |  184,2  | 
 +^ **7 1/4 x 10 1/2 LEF**|  0x0617  |  0x05aa  |  0x0834  |  1450  |  2100  |  7,25  |  10,5  |  184,2  |  266,7  | 
 +^ **9 x 13cm SEF**|  0x1e63  |  0x03ff  |  0x02c4  |  1023  |  708  |  5,115  |  3,54  |  129,9  |  89,9  | 
 +^ **9 x 13cm LEF**|  0x0e63  |  0x02c4  |  0x03ff  |  708  |  1023  |  3,54  |  5,115  |  89,9  |  129,9  | 
 +^ **10 x 15cm SEF**|  0x1e62  |  0x04d9  |  0x0313  |  1241  |  787  |  6,205  |  3,935  |  157,6  |  99,9  | 
 +^ **10 x 15cm LEF**|  0x0e62  |  0x0313  |  0x04d9  |  787  |  1241  |  3,935  |  6,205  |  99,9  |  157,6  | 
 +^ **13 x 18cm SEF**|  0x1e61  |  0x0589  |  0x03ff  |  1417  |  1023  |  7,085  |  5,115  |  180,0  |  129,9  | 
 +^ **13 x 18cm LEF**|  0x0e61  |  0x03ff  |  0x0589  |  1023  |  1417  |  5,115  |  7,085  |  129,9  |  180,0  | 
 +^ **Foolscap SEF**|  0x1614  |  0x0a28  |  0x0640  |  2600  |  1600  |  13  |  8  |  330,2  |  203,2  | 
 +^ **8K SEF**|  0x1803  |  0x0bfe  |  0x084d  |  3070  |  2125  |  15,35  |  10,625  |  389,9  |  269,9  | 
 +^ **16K LEF**|  0x0804  |  0x05ff  |  0x084d  |  1535  |  2125  |  7,675  |  10,625  |  194,9  |  269,9  | 
 +^ **16K SEF**|  0x1804  |  0x084d  |  0x05ff  |  2125  |  1535  |  10,625  |  7,675  |  269,9  |  194,9  |
  
 +Custom formats use the smallest size that encloses the custom format. e.g. 33x21mm and 85x99mm both use A6 SEF (0x1106 = ''06 11'')
  
  
Zeile 425: Zeile 424:
 ^ Escape sequence: ESC*f0S ^^^ ^ Escape sequence: ESC*f0S ^^^
 |\ \ \ | 0S | Parameter S: Start scan | |\ \ \ | 0S | Parameter S: Start scan |
-^ Return data: ESC*s20113r1V ^^^^^+^ Return data: ESC*s20113r1V ^^^
 |\ \ \ | 20116r | Variable 20113: See below | |\ \ \ | 20116r | Variable 20113: See below |
 |\ \ \ | 1V | Return value: 1..success, 0..failure | |\ \ \ | 1V | Return value: 1..success, 0..failure |
Zeile 581: Zeile 580:
 |  25     | ADF loaded | bool | 0=NO, 1=YES |  |  25     | ADF loaded | bool | 0=NO, 1=YES | 
 |  257    | Current error stack size | int | 0 or 1 (for ERROR) | | |  257    | Current error stack size | int | 0 or 1 (for ERROR) | |
-|  258    | Scanner capabilities | binary | 30 bytes | [[#scanner_capabilities|see below]] |+|  258    | Scanner capabilities (C353 series) | binary | 30 bytes | [[#scanner_capabilities|see below]] |
 |  259    | Current Error Code | int |  | return value: >0 for ERROR ([[#error_codes_259_variable|see below]]); ''ESC8s259dN''(empty) for no error | |  259    | Current Error Code | int |  | return value: >0 for ERROR ([[#error_codes_259_variable|see below]]); ''ESC8s259dN''(empty) for no error |
-|  261    | FIXME | binary | 16 bytes | Unknown, requested during HDD open; FIXME, ''15 b6 e2 96 1d 70 50 e3 e5 e1 6a 4f 9b fd bd a9'' |+|  261    | 128-bit encryption key | binary | 16 bytes | encryption key for password encryption |
 |  264    | SNMP Device identification | binary | 129 bytes | first 42 byte: SNMP sysObjectID OID, then name, then MAC, see below | |  264    | SNMP Device identification | binary | 129 bytes | first 42 byte: SNMP sysObjectID OID, then name, then MAC, see below |
 |  265    | Image extent | binary | 8 bytes | see below | |  265    | Image extent | binary | 8 bytes | see below |
-|  270    | FIXME | binary | 11 bytes | Unknown, FIXME  | +|  270    | hardware capabilities? (C353 series) | binary | 11 bytes | Unknown, FIXME  | 
-|  273   FIXME: Scanner capabilities| binary | 36 bytes | format: [[#scanner_capabilities_273|see below]], ''58 02 c8 00 58 02 c8 00 01 00 01 00 07 00 02 00 fa ff 01 00 01 00 ff 00 03 00 01 00 02 00 fa ff 01 00 01 00''  |+|  273    | Scanner capabilities (423 series) | binary | 36 bytes | format: [[#scanner_capabilities_273|see below]]  |
 |  274    | List of data boxes on the scanner | binary | 378 bytes | format: ''ESC*274t378:1/1W[...data(name, creation date)...]''  | |  274    | List of data boxes on the scanner | binary | 378 bytes | format: ''ESC*274t378:1/1W[...data(name, creation date)...]''  |
 |  275    | FIXME | binary | 0 bytes | Unknown, called after list of data boxes, format: ''ESC*275t0:0/0W''  | |  275    | FIXME | binary | 0 bytes | Unknown, called after list of data boxes, format: ''ESC*275t0:0/0W''  |
 |  277    | List of images in selected box | binary | ?? bytes | list images, [[#format_of_box_image_list|format see below]], format: ''ESC*277t762:2/2W[...]''  | |  277    | List of images in selected box | binary | ?? bytes | list images, [[#format_of_box_image_list|format see below]], format: ''ESC*277t762:2/2W[...]''  |
-|  280    | FIXME | binary | 12 bytes | Unknown, requested HDD during open; FIXME, ''01 00 00 00 00 02 01 00 00 00 00 00'' |+|  280    | hardware capabilities? (423 series) | binary | 12 bytes | Unknown, requested during open; FIXME, ''01 00 00 00 00 02 01 00 00 00 00 00'' |
 ^ Function success/failure return values ^^^^^ ^ Function success/failure return values ^^^^^
 |  20100  | Lock/Unlock success | bool | 1=success, 0=failure | Returned to ESC*w$J commands | |  20100  | Lock/Unlock success | bool | 1=success, 0=failure | Returned to ESC*w$J commands |
Zeile 615: Zeile 614:
  
 ^  Value    Error  ^ ^  Value    Error  ^
 +| 1024     | Paper misfeed |
 | 10001    | FIXME: Unknown | | 10001    | FIXME: Unknown |
 | 10005    | Authentication error (wrong user/password)  | | 10005    | Authentication error (wrong user/password)  |
 +| 10501    | FIXME: Unknown |
 | 10503    | Device busy | | 10503    | Device busy |
 | 12003    | ADF error (wrong paper format, paper jam, )  | | 12003    | ADF error (wrong paper format, paper jam, )  |
Zeile 685: Zeile 686:
  
 Possible Entries: Possible Entries:
 +  - Protocol version
 +  - Authentication needed
 +  - public access allowed
   - ADF installed   - ADF installed
   - ADF duplex   - ADF duplex
-  - Color or B/W+  - Color or only B/W 
 +  - Compression available 
 +  - HDD installed (i.e. scan to/from box)
  
-22 byte length ^^ C353 ^ 423 ^+11 byte length ^^ C353 ^ 423 ^
 | byte 1  | Unknown | 00 | 01 | | byte 1  | Unknown | 00 | 01 |
 | byte 2  | Unknown | 00 | 00 | | byte 2  | Unknown | 00 | 00 |
Zeile 708: Zeile 714:
  
 ^  Param  ^  Type       ^ Description ^ Comments / returned value ^ ^  Param  ^  Type       ^ Description ^ Comments / returned value ^
-|  24       int       ? (*s24d1V) |  +|  24       int       ADF present |*s24d1V | 
-|  25       int       ? (*s25d0V) |  |+|  25       int       ADF loaded  |*s25d0V |
 |  257    |   int       | error stack size |  | |  257    |   int       | error stack size |  |
 |  258    |  bin (30)   | capabilities |  | |  258    |  bin (30)   | capabilities |  |
 |  259    |   int       | current error  | ''*s259dN'' or ''*s259d0V'' for no error  | |  259    |   int       | current error  | ''*s259dN'' or ''*s259d0V'' for no error  |
-|  261    |  bin (16)   | ? | one-time random encryption key|+|  261    |  bin (16)   | one-time random encryption key (128 bit) |  |
 |  264    |  bin (129)  | SNMP identification |  | |  264    |  bin (129)  | SNMP identification |  |
 |  265    |  bin (8)    | Image extent |  | |  265    |  bin (8)    | Image extent |  |
 |  267    |  bin (?)    | ? |  | |  267    |  bin (?)    | ? |  |
 |  269    |  bin (?)    | ? |  | |  269    |  bin (?)    | ? |  |
-|  270    |  bin (11)   | ''01 00 00 00 04 02 01 00 00 00 00'' |+|  270    |  bin (11)   Installed hardware (like 280) | ''01 00 00 00 04 02 01 00 00 00 00'' |
 |  271    |  bin (70)   | ? | all ''00'' | |  271    |  bin (70)   | ? | all ''00'' |
 |  272    |  bin (226)  | ? | all ''00'' | |  272    |  bin (226)  | ? | all ''00'' |
 |  273    |  bin (36)   | capabilities | 423 series | |  273    |  bin (36)   | capabilities | 423 series |
-|  274    |  bin (?)    | List of data boxes for HDD TWAIN || +|  274    |  bin (?)    | List of public boxes for HDD TWAIN || 
-|  275    |  bin (?)    | ? (for HDD TWAIN||+|  275    |  bin (?)    | FIXME: List of user boxes for HDD TWAIN ||
 |  276    |  bin (?)    | ? |  | |  276    |  bin (?)    | ? |  |
-|  277    |  bin (?)    | Images in selected box (HDD TWAIN) || +|  277    |  bin (?)    | List of images in selected box (HDD TWAIN) || 
-|  280    |  bin (12)   ? | like 270bit 5 ''00'' or ''04'', additional ''00'' |+|  280    |  bin (12)   Installed hardware (like 270)  | bit 5 ''00'' or ''04'', additional ''00'' |
 |  301    |  bin (32)   | ? | ''01 04 11 01 00 00 00 64 02 03 11 01 00 00 00 64 14 04 01 01 00 00 00 64 15 04 01 01 00 00  00 00'' | |  301    |  bin (32)   | ? | ''01 04 11 01 00 00 00 64 02 03 11 01 00 00 00 64 14 04 01 01 00 00 00 64 15 04 01 01 00 00  00 00'' |
 |  307    |  bin (?)    | ? | ''*s307t0:0/0W'' | |  307    |  bin (?)    | ? | ''*s307t0:0/0W'' |
Zeile 789: Zeile 795:
 '⇒' indicates data/command sent to scanner, '⇐' indicated data returned by the scanner (request data packet omitted here!): '⇒' indicates data/command sent to scanner, '⇐' indicated data returned by the scanner (request data packet omitted here!):
  
-==== Handshake / Opening connection ==== +==== Connecting to the device ==== 
-  ⇒ ESCE                              Reset/Init device +  ⇒ EscE                              Reset/Init device 
-  ⇐     ESC*s20112r1V                 Success +  ⇐     Esc*s20112r1V                 Success 
-  ⇒ ESC*21004E                        Request variable 21004 +  ⇒ Esc*s21004E                       Request variable 21004 
-  ⇐     ESC*s21004d3V                 Variable 21004 has value 3 +  ⇐     Esc*s21004d3V                 Variable 21004 has value 3 
-  ⇒ ESC*21005E                        Request variable 21005 +  ⇒ Esc*s21005E                       Request variable 21005 
-  ⇐     ESC*s21005d1V                 Variable 21005 has value 1 +  ⇐     Esc*s21005d1V                 Variable 21005 has value 1 
-  ⇒ ESC*264U                          Request binary data of variable 264 (device identification) +  ⇒ Esc*s264U                         Request binary data of variable 264 (device identification) 
-  ⇐     ESC*s264t129W1.3.6.1.4.[....] 129 bytes of SNMP device id. (sysObjectID, sysDescr, ifPhysAddress) +  ⇐     Esc*s264t129W1.3.6.1.4.[....] 129 bytes of SNMP device id. (sysObjectID, sysDescr, ifPhysAddress) 
-  ⇒ ESC*270U                          Request binary data of variable 270 +C353series: 
-  ⇐     ESC*s270t11W[.....]           11 bytes of binary data in variable 270 +  ⇒ Esc*s270U                         Request binary data of variable 270 (C353series) 
-  ⇒ ESC*258U                          Request binary data of variable 258 (scanner capabilities) +  ⇐     Esc*s270t11W[.....]           11 bytes of binary data in variable 270 
-  ⇐     ESC*s258t30W[.....]           30 bytes of binary scanner capabilities data in variable 258+423series: 
 +  ⇒ Esc*s280U                         Request binary data of variable 280 (423series) 
 +  ⇐     Esc*s280t12W[.....]           12 bytes of binary data in variable 280 
 + 
 +==== Opening the device ==== 
 +  [OPTIONAL: If login desired/required (see 270/280 variable): 
 +      ⇒ Esc*s261U                         Request encryption key 
 +      ⇐     Esc*s261t16W[...]             16 bytes (128-bit) encryption key 
 +      ⇒ Esc*w100U[public...]              Sending login data 
 +      ⇐     Esc*s20119r1V                 Login successful 
 +  ] 
 +C353series: 
 +  ⇒ Esc*s258U                         Request binary data of variable 258 (scanner capabilities) 
 +  ⇐     Esc*s258t30W[.....]           30 bytes of binary scanner capabilities data in variable 258 
 +423series: 
 +  ⇒ Esc*s20005E                       Request variable 20005 
 +  ⇐     Esc*s20005d8V                 Variable 20005 has value 8 
 +  ⇒ Esc*s20008E                       Request variable 20008 
 +  ⇐     Esc*s20008d0V                 Variable 20008 has value 0 
 +  ⇒ Esc*s273U                         Request binary data of variable 273 (scanner capabilities) 
 +  ⇐     Esc*s273t36W[.....]           36 bytes of binary scanner capabilities data in variable 273 
  
 ==== Scanning operation ==== ==== Scanning operation ====
  
-  ⇒ ESC*w0J                           Lock scanner +  ⇒ Esc*w0J                           Lock scanner 
-  ⇐     ESC*s20100r1V                 Success +  ⇐     Esc*s20100r1V                 Success 
-  ⇒ ESC*s25E                          Request variable 25 (ADF loaded) +  ⇒ Esc*s25E                          Request variable 25 (ADF loaded) 
-  ⇐     ESC*s25d1V                    Variable 25 has value 1 (ADF is loaded) +  ⇐     Esc*s25d1V                    Variable 25 has value 1 (ADF is loaded) 
-  ⇒ ESC*z24G[...]                     Set image parameters (24 bytes of binary data sent) +C353series: 
-  ⇐     ESC*s20116r1V                 Success+  ⇒ Esc*z24G[...]                     Set image parameters (24 bytes of binary data sent) 
 +  ⇐     Esc*s20116r1V                 Success 
 +423series: 
 +  ⇒ Esc*z27H[...]                     Set image parameters (27 bytes of binary data sent) 
 +  ⇐     Esc*s20122r1V                 Success 
 +all series:
   [OPTIONAL:   [OPTIONAL:
-      ⇒ ESC*w0W                           Wait for button+      ⇒ Esc*w0W                           Wait for button
       ⇐                                 Empty packet, indicating still waiting for button       ⇐                                 Empty packet, indicating still waiting for button
       ⇐                                 Empty packet, indicating still waiting for button       ⇐                                 Empty packet, indicating still waiting for button
-      ⇐     ESC*s20101r1V                 Button pressed → start scan now allowed+      ⇐     Esc*s20101r1V                 Button pressed → start scan now allowed
   ]   ]
-  ⇒ ESC*f0S                           Start scan +  ⇒ Esc*f0S                           Start scan 
-  ⇐     ESC*s20113r1V                 Success +  ⇐     Esc*s20113r1V                 Success 
-  ⇒ ESC*s265U                         Request binary data of variable 265 (image extent) +  ⇒ Esc*s265U                         Request binary data of variable 265 (image extent) 
-  ⇐     ESC*s265t8W[...]              8 bytes of image extent information in variable 265 +  ⇐     Esc*s265t8W[...]              8 bytes of image extent information in variable 265 
-  ⇒ ESC*w0S                           Request image data+  ⇒ Esc*w0S                           Request image data
   ⇐     [binary data]                 Image data returned by scanner   ⇐     [binary data]                 Image data returned by scanner
   ⇐     '00 00 00 00'                 Empty packet with type 'no data available' indicates end of scan data   ⇐     '00 00 00 00'                 Empty packet with type 'no data available' indicates end of scan data
   [OPTIONAL: for scan from ADF   [OPTIONAL: for scan from ADF
-      ⇒ ESC*s20201E                   Request variable 25 (ADF state / more pages available) +      ⇒ Esc*s20201E                   Request variable 25 (ADF state / more pages available) 
-      ⇐     ESC*s20201d1V             ADF still loaded / more pages available (d0V would be unloaded)+      ⇐     Esc*s20201d1V             ADF still loaded / more pages available (d0V would be unloaded)
       [if d1V:        [if d1V: 
-        REPEAT from ESC*s265U above+        REPEAT from Esc*s265U above
       ]       ]
   ]   ]
-  ⇒ ESC*w1J                           Unlock scanner + 
-  ⇐     ESC*s20100r1V                 Success+==== Closing the session / device ==== 
 + 
 +  ⇒ Esc*w1J                           Unlock scanner 
 +  ⇐     Esc*s20100r1V                 Success 
 +  ⇒ Esc*w-1U                          Logout 
 +  ⇐     Esc*s20119r1V                 Success
  
  
 ==== Error handling ==== ==== Error handling ====
  
-  ⇒ ESC*w1J                           Unlock device (e.g. after not enough data could be read) +  ⇒ Esc*w1J                           Unlock device (e.g. after not enough data could be read) 
-  ⇐     ESC*s20100r0V                 r0V indicating FAILURE of a function +  ⇐     Esc*s20100r0V                 r0V indicating FAILURE of a function 
-  ⇒ ESC*s257E                         Request error status (variable 257) +  ⇒ Esc*s257E                         Request error status (variable 257) 
-  ⇐     ESC*s257d1V                   Error available in queue +  ⇐     Esc*s257d1V                   Error available in queue 
-  ⇒ ESC*s259E                         Request error code (variable 259) +  ⇒ Esc*s259E                         Request error code (variable 259) 
-  ⇐     ESC*s259d10001V               Last error code is 10001 +  ⇐     Esc*s259d10001V               Last error code is 10001 
-  ⇒ ESC*oE                            Reset / cleanup error+  ⇒ Esc*oE                            Reset / cleanup error
  
  
hardware/bizhub_scan.1317644584.txt.gz · Zuletzt geändert: 2013/03/13 11:42 (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki