Hello, On 12/28/05, Pierre Willenbrock <pie...@pirsoft.dnsalias.org> wrote: > Hi > > Parag N(????) schrieb: > > I modified genesys_devices.c, genesys.c , genesys_gl646.c and also > > applied patch given in other thread on sane-devel archive > > http://lists.alioth.debian.org/pipermail/sane-devel/2005-December/015586.html > > then i use scanimage but i got black image only also head stopped > > at other end and i have to manually disconnect it. i made head to stop > > after 1755 lines and its stopped exactly at other end of scanner. > > I am attaching modified files diff file from genesys backend. > > Your frontend description looks strange. Please send the register setup > of the frontend, and which frontend registers are played with during > calibration. Genesys_Frontend structure is defined in genesys_low.h typedef struct { u_int8_t reg[4]; u_int8_t sign[3]; u_int8_t offset[3]; u_int8_t gain[3]; u_int8_t reg2[3]; } Genesys_Frontend;
In version 1.0.17 Genesys_Frontend for HP 2400 was written as - {{0x00, 0x03, 0x05, 0x02} - , {0x00, 0x00, 0x00} - , {0xc0, 0xc0, 0xc0} - , {0x07, 0x07, 0x07} - , {0x00, 0x00, 0x00} which i replaced with + {{0x00, 0x31, 0x1f, 0x13} + , {0x08, 0x02, 0x16} + , {0x20, 0x80, 0x10} + , {0x80, 0x00, 0x00} + , {0x01, 0xff, 0x00} by taking corresponding values of following registers mentioned by you with help of Windows usb log AFE |Genesys_Frontend Register| member --------+---------------- 0x00 |.reg[0] 0x01 |.reg[1] 0x02 |.reg[2] 0x03 |.reg[3] 0x04 |(reset) 0x06 |.reg2[0] 0x08 |.reg2[1] 0x09 |.reg2[2] 0x20 |.offset[0] 0x21 |.offset[1] 0x22 |.offset[2] 0x24 |.sign[0] 0x25 |.sign[1] 0x26 |.sign[2] 0x28 |.gain[0] 0x29 |.gain[1] 0x2a |.gain[2] Also i found you mentioned reset register which is not present in structure declaration. But i am not getting what to send for which frontend registers are played with during calibration? > > Regards, > Pierre > > -- > sane-devel mailing list: sane-devel@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-requ...@lists.alioth.debian.org > From panem...@gmail.com Wed Dec 28 15:22:48 2005 From: panem...@gmail.com (=?UTF-8?Q?Parag_N=28=E0=A4=AA=E0=A4=B0=E0=A4=BE=E0=A5=9A=29?=) Date: Wed Dec 28 15:22:53 2005 Subject: [sane-devel] scanning problem for HP 2400 In-Reply-To: <f4586a2e0512280711n4905601et8024d56114a24...@mail.gmail.com> References: <f4586a2e0512280600x10e8163fqbef269f84f5b5...@mail.gmail.com> <43b2a745.3050...@pirsoft.dnsalias.org> <f4586a2e0512280711n4905601et8024d56114a24...@mail.gmail.com> Message-ID: <f4586a2e0512280722y49d55409ve654df7745648...@mail.gmail.com> Hello, Adding to my previous reply-> For Calibration i got some deug statements from genesys [genesys_gl646] gl646_init_regs_for_coarse_calibration [genesys_gl646] gl646_init_register_for_coarse_calibration: left pos: 15 CCD pixels, right pos: 1215 CCD pixels [genesys_gl646] gl646_init_register_for_coarse_calibration: dummy pixels: 15 CCD pixels [genesys_gl646] gl646_init_register_for_coarse_calibration: optical sensor res: 1200 dpi, actual res: 300 [genesys_gl646] gl646_init_register_for_coarse_calibration: bytes_per_line=2400, words_per_line=1201 [genesys] sanei_genesys_create_slope_table: 32 steps, step_type = 0, exposure_time = 11000, same_speed =0 [genesys] sanei_genesys_create_slope_table: yres = 1200.00 Regards, Parag. On 12/28/05, Parag N(????) <panem...@gmail.com> wrote: > Hello, > > On 12/28/05, Pierre Willenbrock <pie...@pirsoft.dnsalias.org> wrote: > > Hi > > > > Parag N(????) schrieb: > > > I modified genesys_devices.c, genesys.c , genesys_gl646.c and also > > > applied patch given in other thread on sane-devel archive > > > http://lists.alioth.debian.org/pipermail/sane-devel/2005-December/015586.html > > > then i use scanimage but i got black image only also head stopped > > > at other end and i have to manually disconnect it. i made head to stop > > > after 1755 lines and its stopped exactly at other end of scanner. > > > I am attaching modified files diff file from genesys backend. > > > > Your frontend description looks strange. Please send the register setup > > of the frontend, and which frontend registers are played with during > > calibration. > Genesys_Frontend structure is defined in genesys_low.h > typedef struct > { > u_int8_t reg[4]; > u_int8_t sign[3]; > u_int8_t offset[3]; > u_int8_t gain[3]; > u_int8_t reg2[3]; > } Genesys_Frontend; > > In version 1.0.17 Genesys_Frontend for HP 2400 was written as > - {{0x00, 0x03, 0x05, 0x02} > - , {0x00, 0x00, 0x00} > - , {0xc0, 0xc0, 0xc0} > - , {0x07, 0x07, 0x07} > - , {0x00, 0x00, 0x00} > which i replaced with > + {{0x00, 0x31, 0x1f, 0x13} > + , {0x08, 0x02, 0x16} > + , {0x20, 0x80, 0x10} > + , {0x80, 0x00, 0x00} > + , {0x01, 0xff, 0x00} > > by taking corresponding values of following registers mentioned by you > with help of Windows usb log > AFE |Genesys_Frontend > Register| member > --------+---------------- > 0x00 |.reg[0] > 0x01 |.reg[1] > 0x02 |.reg[2] > 0x03 |.reg[3] > 0x04 |(reset) > 0x06 |.reg2[0] > 0x08 |.reg2[1] > 0x09 |.reg2[2] > 0x20 |.offset[0] > 0x21 |.offset[1] > 0x22 |.offset[2] > 0x24 |.sign[0] > 0x25 |.sign[1] > 0x26 |.sign[2] > 0x28 |.gain[0] > 0x29 |.gain[1] > 0x2a |.gain[2] > Also i found you mentioned reset register which is not present in > structure declaration. > But i am not getting what to send for which frontend registers are > played with during > calibration? > > > > > Regards, > > Pierre > > > > -- > > sane-devel mailing list: sane-devel@lists.alioth.debian.org > > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > > Unsubscribe: Send mail with subject "unsubscribe your_password" > > to sane-devel-requ...@lists.alioth.debian.org > > > From pie...@pirsoft.dnsalias.org Wed Dec 28 15:33:42 2005 From: pie...@pirsoft.dnsalias.org (Pierre Willenbrock) Date: Wed Dec 28 15:33:11 2005 Subject: [sane-devel] scanning problem for HP 2400 In-Reply-To: <f4586a2e0512280711n4905601et8024d56114a24...@mail.gmail.com> References: <f4586a2e0512280600x10e8163fqbef269f84f5b5...@mail.gmail.com> <43b2a745.3050...@pirsoft.dnsalias.org> <f4586a2e0512280711n4905601et8024d56114a24...@mail.gmail.com> Message-ID: <43b2b056.8060...@pirsoft.dnsalias.org> Parag N(????) schrieb: > Hello, > > > In version 1.0.17 Genesys_Frontend for HP 2400 was written as > - {{0x00, 0x03, 0x05, 0x02} > - , {0x00, 0x00, 0x00} > - , {0xc0, 0xc0, 0xc0} > - , {0x07, 0x07, 0x07} > - , {0x00, 0x00, 0x00} > which i replaced with > + {{0x00, 0x31, 0x1f, 0x13} > + , {0x08, 0x02, 0x16} > + , {0x20, 0x80, 0x10} > + , {0x80, 0x00, 0x00} > + , {0x01, 0xff, 0x00} > Typically the .sign part is identical for all color channels. > Also i found you mentioned reset register which is not present in > structure declaration. Writes to the reset register lead to a reset of the frontend. > But i am not getting what to send for which frontend registers are > played with during > calibration? Sorry, i was not very clear. I wanted to know which frontend registers are written to in your windows log. Some registers always get the same values, while others are set to varying values during calibration. I am guessing this frontend is incompatible with the current implementation. I get these information for my scanner: [0x01] = 0x03d [0x02] = 0x008 [0x03] = 0x000 [0x05] = 0x005 [0x06] = 0x000 [0x08] = 0x019 [0x09] = 0x006 [0x20] = 0x0e1 [0x21] = 0x0e1 [0x22] = 0x0e1 [0x24] = 0x000 [0x25] = 0x000 [0x26] = 0x000 [0x28] = 0x093 [0x29] = 0x093 [0x2a] = 0x093 Actually, the windows driver keeps the gain and offset constant for my scanner. Regards, Pierre