<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I would like to write a backend for this range of 
all in one printers. (I have Kodak ESP 5250)</FONT></DIV>
<DIV><FONT size=2 face=Arial>I have made some progress with the protocol and 
can&nbsp;aquire a scan.</FONT></DIV>
<DIV><FONT size=2 face=Arial>But It's not obvious how the data in the scan is 
organised.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Does anyone recognise it?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>The protocol has 8 byte commands, for example a 
scan request starts like this</FONT></DIV>
<DIV><FONT size=2 face=Arial>scanner is 192.168.1.2 port 9101</FONT></DIV>
<DIV><FONT size=2 face=Arial><BR>00000000&nbsp; 1b 53 4c 00 00 00 00 
00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
.SL.....&nbsp; //command L lock? from PC</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000000&nbsp; 1b 53 53 00 02 00 00 
00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
.SS.....&nbsp; //acknowledge S 00 02&nbsp; from scanner</DIV>
<DIV>00000008&nbsp; 1b 53 46 00 00 00 00 
00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
.SF.....&nbsp;&nbsp; //command F&nbsp; from PC</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000008&nbsp; 1b 53 53 00 02 00 00 
00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
.SS.....&nbsp;&nbsp; //acknowledge S 00 02&nbsp;&nbsp; from scanner</DIV>
<DIV>&nbsp;</DIV>
<DIV>after&nbsp;some more command / acknowledge exchanges the data starts</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000058&nbsp; ff ff fc d7 f2 bf c8 f3&nbsp; 44 46 96 19 
11 b6 a1 34 ........ DF.....4 //data starts&nbsp; (it always seems to start ff 
ff)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000068&nbsp; f2 53 a6 73 7a 99 96 e7&nbsp; 24 ea e2 a3 
44 c4 8c ce .S.sz... $...D...</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000078&nbsp; 6d cd e4 89 2b 6b b2 67&nbsp; 2d f7 e8 5d 
30 b9 f3 8e m...+k.g -..]0...</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000088&nbsp; 7a 82 7a 03 1c 26 34 d7&nbsp; 67 9a 7a 2c 
31 8b 12 b5 z.z..&amp;4. g.z,1...</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 00000098&nbsp; ad 56 58 69 86 a7 5c 39&nbsp; a8 df 4c f9 
f9 f7 75 96 .VXi..\9 ..L...u.</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 000000A8&nbsp; 80 3d 33 59 56 55 96 b3&nbsp; d3 a5 e7 84 
63 a4 5b da .=3YVU.. ....c.[.</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 000000B8&nbsp; ae 6e 72 c3 9c ae 8a ad&nbsp; cc b9 9b d7 
7e 87 cb 9c .nr..... ....~...</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have tried scanning white paper, red paper,&nbsp; and black paper with no 
obvious pattern in the data.</DIV>
<DIV>It's possible that lines end with several 00 00 00 bytes and start with 
several ff ff bytes.</DIV>
<DIV>Since there seems to be enough data for 4 bits per colour per pixel, and 
I'd expect to see at least 8 bits per colour per pixel, I wonder if the data is 
compressed slightly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone have an idea what format this data could be in?</DIV>
<DIV>What compression algorithms might have been used for scanner data?</DIV>
<DIV>Should I try to scan a particular pattern to help identify the format? 
(maybe narrow vertical stripes?)</DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT>&nbsp;</DIV></BODY></HTML>