[sane-devel] fujitsu 5120c problem with usb address
no, its mandriva 2008.0 with kernel 2.6.22.12 On Tue, Mar 25, 2008 at 10:52 PM, m. allan noah kitno455 at gmail.com wrote: are you running fedora? allan On 3/25/08, tobias alarcon extobias at gmail.com wrote: Hi all, Me again, this time its really strange problem When i connect the usb, and run scanimage -L fujitsu:libusb:005:002 but when i run my front-end i get this message from /var/log/syslog Mar 25 15:36:33 localhost kernel: usb 3-3: USB disconnect, address 2 Mar 25 15:36:48 localhost kernel: usb 3-3: new high speed USB device using ehci_hcd and address 3 Mar 25 15:36:48 localhost kernel: usb 3-3: configuration #1 chosen from 1 choice Mar 25 15:37:10 localhost kernel: ppdev0: no associated port! so my program it never able to find the scanner. And every time i run happen the same, with a diferent usb address. It happen on two diferent computer with the same version of sane-backend (1.0.18) with two diferent scanner (same model obviously) i really don't know what could be. I read on the internet and some people say it can be the firmware? i really don't know. Please any help will be apreciated. thanks Tobias -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] fujitsu 5120c problem with usb address
are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? allan On 3/25/08, tobias alarcon extobias at gmail.com wrote: no, its mandriva 2008.0 with kernel 2.6.22.12 On Tue, Mar 25, 2008 at 10:52 PM, m. allan noah kitno455 at gmail.com wrote: are you running fedora? allan On 3/25/08, tobias alarcon extobias at gmail.com wrote: Hi all, Me again, this time its really strange problem When i connect the usb, and run scanimage -L fujitsu:libusb:005:002 but when i run my front-end i get this message from /var/log/syslog Mar 25 15:36:33 localhost kernel: usb 3-3: USB disconnect, address 2 Mar 25 15:36:48 localhost kernel: usb 3-3: new high speed USB device using ehci_hcd and address 3 Mar 25 15:36:48 localhost kernel: usb 3-3: configuration #1 chosen from 1 choice Mar 25 15:37:10 localhost kernel: ppdev0: no associated port! so my program it never able to find the scanner. And every time i run happen the same, with a diferent usb address. It happen on two diferent computer with the same version of sane-backend (1.0.18) with two diferent scanner (same model obviously) i really don't know what could be. I read on the internet and some people say it can be the firmware? i really don't know. Please any help will be apreciated. thanks Tobias -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin -- The truth is an offense, but not a sin
[sane-devel] Canon LiDE 90
Hello, Yesterday I added CCD_CANONLIDE90 in genesys.c. I did two successive scans (result on http://ggastebois.free.fr/lide90_snoop/25_test1.zip). The first one gives a bright image (1_test1.txt), the second a dark image (3_test1.txt). Which log seeems to be the best for calibration ? (in 3_test1.txt, I see device I/O errors !!!) What are good values for offset_calibration: black/white pixels ? Another thing : Pierre, you send me few weeks ago a code named entropy2D.c. I compile it with : gcc -c entropy2D.c, gcc -lm -o entropy2D entropy2D.o. No errors. I call it with entropy2D ./offset1_1.pnm and it makes nothing and newer gives hand back !!! What did I wrong ??? (I want to test common nibbles). For scanner locks up writing 0x41=0xf4, It signify that scanner things he's not hat home position. (home position : 0x41=0xfc). I thing it will be interessting to move a little bit head. How to do that ? My explanation is that on previous scan, the head has pressed home switch, but if head after that moves (less than a millimeter is enought) switch can no more be pressed. So moving back head may be usefull (but Isn't still made ?) I did another ant work : comparing all regs from windows snoop to sane and I find these differences : addr |sane |windows|comments _|___|___|__ 09 |10 |21 |MCNTSET[1:0] CLKSET[1:0] BACKSCAN ENHANCE SHORTTG NWAIT 16 |20 |02 |CTRLHI TOSHIBA TGINV CK1INV CK2INV CTRLINV CKDIS CTRLDIS 19 |50 |ff |EXPDMY[7:0] 1a |00 |24 |X X MANUAL3 MANUAL1 CK4INV CK3INV LINECLP X 1d |02 |04 |CK4LOW CK3LOW CK1LOW TGSHLD[4:0] 52 |02 |02 |RHI[4:0] 53 |07 |04 |RLOW[4:0] 54 |00 |02 |GHI[4:0] 55 |00 |04 |GLOW[4:0] 56 |00 |02 |BHI[4:0] 57 |00 |04 |BLOW[4:0] 5d |00 |20 |HISPD[7:0] 5e |02 |41 |DECSEL[2:0] STOPTIM[4:0] 5f |00 |40 |FMOVDEC[7:0] 67 |00 |40 |STEPSEL[1:0] MTRPWM[5:0] 68 |00 |40 |FSTPSEL[1:0] FASTPWM[5:0] 69 |00 |08 |FSHDEC[7:0] 6a |00 |04 |FMOVNO[7:0] 70 |21 |05 |X X X RSH[4:0] 72 |00 |07 |X X X CPH[4:0] 73 |00 |09 |X X X CPL[4:0] 75 |00 |01 |CK1MAP[15:8] 76 |00 |ff |CK1MAP[7:0] 79 |00 |3f |CK3MAP[7:0] 7c |00 |1e |CK4MAP[7:0] 7d |00 |11 |CK1NEG CK3NEG CK4NEG RSNEG CPNEG BSMPNEG VSMPNEG DLYSET 7f |00 |50 |BSMPDLY[1:0] VSMPDLY[1:0] LEDCNT[3:0] 82 |00 |0f |ROFFSET[7:0] 84 |00 |0e |GOFFSET[7:0] 86 |00 |0d |BOFFSET[7:0] I think regs 09, 16, 19, 1a, 1d, 52, 53, 54, 55, 56, 57, 70, 72, 73, 75, 76, 79, 7c, 7d, 7f may be interessting, but I'll try to modify all. My next work will be analysing windows snoop for gpio transaction. Regards Guillaume
[sane-devel] fujitsu 5120c problem with usb address
On Wed, Mar 26, 2008 at 9:00 AM, m. allan noah kitno455 at gmail.com wrote: are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? yes, its 1.0.18. I install 1.0.18 and 1.0.19 from source and the problem remains thanks allan
[sane-devel] fujitsu 5120c problem with usb address
if you run scanimage repeatedly, this does not happen, but if you run 'your frontend' it does? allan On Wed, Mar 26, 2008 at 10:48 AM, tobias alarcon extobias at gmail.com wrote: On Wed, Mar 26, 2008 at 9:00 AM, m. allan noah kitno455 at gmail.com wrote: are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? yes, its 1.0.18. I install 1.0.18 and 1.0.19 from source and the problem remains thanks allan -- The truth is an offense, but not a sin
[sane-devel] Canon Lide 25
Xscanimage works only as root. Scanner doesn't actually scan. The reading head doesn't move, just gives a nasty sound. Scan that comes to preview window is white with some black in it.
[sane-devel] Canon Lide 25
On Wednesday 26 March 2008 16:17:14 Jarmo Outinen wrote: Xscanimage works only as root. Scanner doesn't actually scan. The reading head doesn't move, just gives a nasty sound. Scan that comes to preview window is white with some black in it. Update SANE, latest version should work okay. - Gerhard
[sane-devel] fujitsu 5120c problem with usb address
nop, still happen with scanimage or another frontend. I update the kernel but nothing change. I unplugged the scanner for a few minutes, and works fine for a while. but then the usb address change always i try to scan. i just don?t know what to do. tobias. On Wed, Mar 26, 2008 at 12:08 PM, m. allan noah kitno455 at gmail.com wrote: if you run scanimage repeatedly, this does not happen, but if you run 'your frontend' it does? allan On Wed, Mar 26, 2008 at 10:48 AM, tobias alarcon extobias at gmail.com wrote: On Wed, Mar 26, 2008 at 9:00 AM, m. allan noah kitno455 at gmail.com wrote: are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? yes, its 1.0.18. I install 1.0.18 and 1.0.19 from source and the problem remains thanks allan -- The truth is an offense, but not a sin
[sane-devel] fujitsu 5120c problem with usb address
i have never seen such a thing. does your OS turn on usb suspend? allan On Wed, Mar 26, 2008 at 1:03 PM, tobias alarcon extobias at gmail.com wrote: nop, still happen with scanimage or another frontend. I update the kernel but nothing change. I unplugged the scanner for a few minutes, and works fine for a while. but then the usb address change always i try to scan. i just don?t know what to do. tobias. On Wed, Mar 26, 2008 at 12:08 PM, m. allan noah kitno455 at gmail.com wrote: if you run scanimage repeatedly, this does not happen, but if you run 'your frontend' it does? allan On Wed, Mar 26, 2008 at 10:48 AM, tobias alarcon extobias at gmail.com wrote: On Wed, Mar 26, 2008 at 9:00 AM, m. allan noah kitno455 at gmail.com wrote: are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? yes, its 1.0.18. I install 1.0.18 and 1.0.19 from source and the problem remains thanks allan -- The truth is an offense, but not a sin -- The truth is an offense, but not a sin
[sane-devel] fujitsu 5120c problem with usb address
nop I will give you more details, so if you can help i will really apreciated When i stop the power cycle of the scanner, everything goes fine for about 15 min then also if i don?t stop to scan pages still works So the problem begin when stop scaning. The usb address change with no reason (i don?t disconnect the cable) and don't have any suspend mode on usb devices. if i call scanimage or my application why the address does not update if both call sane_init() at start? So if a repeatedly call sane_open() this way the scanner belive is been used for some application? do you thing this could work? well thanks in advance. Tobias. pd: also have a fujitsu 4110cu. i thing going to write my first backend lol. On Wed, Mar 26, 2008 at 2:20 PM, m. allan noah kitno455 at gmail.com wrote: i have never seen such a thing. does your OS turn on usb suspend? allan On Wed, Mar 26, 2008 at 1:03 PM, tobias alarcon extobias at gmail.com wrote: nop, still happen with scanimage or another frontend. I update the kernel but nothing change. I unplugged the scanner for a few minutes, and works fine for a while. but then the usb address change always i try to scan. i just don?t know what to do. tobias. On Wed, Mar 26, 2008 at 12:08 PM, m. allan noah kitno455 at gmail.com wrote: if you run scanimage repeatedly, this does not happen, but if you run 'your frontend' it does? allan On Wed, Mar 26, 2008 at 10:48 AM, tobias alarcon extobias at gmail.com wrote: On Wed, Mar 26, 2008 at 9:00 AM, m. allan noah kitno455 at gmail.com wrote: are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? yes, its 1.0.18. I install 1.0.18 and 1.0.19 from source and the problem remains thanks allan -- The truth is an offense, but not a sin -- The truth is an offense, but not a sin
[sane-devel] fujitsu 5120c problem with usb address
On Wed, Mar 26, 2008 at 3:48 PM, tobias alarcon extobias at gmail.com wrote: nop I will give you more details, so if you can help i will really apreciated When i stop the power cycle of the scanner, everything goes fine for about 15 min then also if i don?t stop to scan pages still works So the problem begin when stop scaning. The usb address change with no reason (i don?t disconnect the cable) and don't have any suspend mode on usb devices. odd. the behavior you describe sounds like usb suspend problem, or like some piece of code is calling usb_reset. i know fedora had a patch in sane which did this recently. if i call scanimage or my application why the address does not update if both call sane_init() at start? when exactly does the renumeration happen- when you first use scanimage after a long wait, or has it already happened. Does scanimage -L cause the problem, or only actual scans? So if a repeatedly call sane_open() this way the scanner belive is been used for some application? do you thing this could work? should not be required. lets leave your frontend out of the mix for now, and just verify that a plain scanimage session will reproduce the error. pd: also have a fujitsu 4110cu. i thing going to write my first backend lol. i have a 4110eox2, which uses the mustek ma1509 chipset. what is in the 4110cu? allan On Wed, Mar 26, 2008 at 2:20 PM, m. allan noah kitno455 at gmail.com wrote: i have never seen such a thing. does your OS turn on usb suspend? allan On Wed, Mar 26, 2008 at 1:03 PM, tobias alarcon extobias at gmail.com wrote: nop, still happen with scanimage or another frontend. I update the kernel but nothing change. I unplugged the scanner for a few minutes, and works fine for a while. but then the usb address change always i try to scan. i just don?t know what to do. tobias. On Wed, Mar 26, 2008 at 12:08 PM, m. allan noah kitno455 at gmail.com wrote: if you run scanimage repeatedly, this does not happen, but if you run 'your frontend' it does? allan On Wed, Mar 26, 2008 at 10:48 AM, tobias alarcon extobias at gmail.com wrote: On Wed, Mar 26, 2008 at 9:00 AM, m. allan noah kitno455 at gmail.com wrote: are you using mandriva's sane package? what version? do you get the same problem if you install sane from our source instead? yes, its 1.0.18. I install 1.0.18 and 1.0.19 from source and the problem remains thanks allan -- The truth is an offense, but not a sin -- The truth is an offense, but not a sin -- The truth is an offense, but not a sin
[sane-devel] [PATCH] make scanimage work with HP ScanJet (HP 6250C), finally
I have no problem if the usleep(1000) is added. If it helps, it's ok. For a typical scan about 200 inquiries are done. So setting up the scanner is slowed down by 0.2 seconds in total. That is far less than the scan will need. I don't know if it is possible with libusb to check if an answer of the scanner is available or not. But if you tried increasing the value and it still did not work every second run I would say there are still some other problems with USB. My ScanJet 6250 is working without problems for years using USB. Who will apply the patch to the official SANE-backends ? Kind regards Peter Kirchgessner m. allan noah schrieb: i can confirm that this does help problems i have seen with the 6200C. now the device is very consistent- it shows up and works the first, third, fifth, etc times that i use it. but every 'even' call to Xsane produces the following: [hp] hp_AddOpenDevice: added device libusb:002:003 with fd=1 [hp] scl_inq: read failed (End of file reached) [hp] scl_errcheck: Can't read SCL error stack: End of file reached [hp] hp_nonscsi_device_new: SCL reset failed [hp] scsi_close: closing fd 1 [hp] scsi_close: really closed and xsane gives the 'no devices found' dialog. i have tried increasing the sleep, but to no avail. i have cc'd the backend author for comments. thanks for your efforts Jim! allan On 3/17/08, Jim Meyering jim at meyering.net wrote: This bug has been reported before, e.g., http://bugzilla.redhat.com/413471 http://bugs.debian.org/116962 https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/119819 For years, scanimage/xsane has worked only sporadically with my USB-connected HP 6250C. I'd have to run it 3 or 4 times (sometimes changing USB plug, when one would get stuck) in order to get a single scan. That was frustrating. Often, it'd fail like this: $ scanimage scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x tl_y br_x br_y' failed. zsh: abort scanimage [Exit 134 (ABRT)] [debug output attached below] I get the same behavior with fedora rawhide and debian unstable. Debugging showed that the primary problem lies in detecting supported options. During one run, it would fail to detect an option that I knew to be valid and essential, like the one corresponding to tl_x above), and during the next run, it *would* detect that same option. The problematic code is in hp-scl.c's _hp_scl_inq function. The issue-command call there is followed immediately by the read result call: RETURN_IF_FAIL( hp_scsi_scl(scsi, inq_cmnd, SCL_INQ_ID(scl)) ); status = hp_scsi_read(scsi, buf, bufsize, 1); It looks like sometimes the device responds quickly enough, and the attribute is detected. Other times, is too slow and sane reports that the attribute is not supported. I found that inserting a 1ms delay between those two lines made everything just-work. FYI, a .5ms delay appeared to work just as well (I ran only 2 or 3 trials, and all succeeded), but my single trial with a .1ms delay provoked the usual failed assertion. There is probably a much cleaner way to wait until the data is ready, but I'll let someone else investigate that. Here's my patch: Index: backend/hp-scl.c === RCS file: /cvsroot/sane/sane-backends/backend/hp-scl.c,v retrieving revision 1.14 diff -u -p -r1.14 hp-scl.c --- backend/hp-scl.c4 Oct 2004 18:09:05 - 1.14 +++ backend/hp-scl.c17 Mar 2008 09:29:30 - @@ -1763,6 +1763,7 @@ _hp_scl_inq (HpScsi scsi, HpScl scl, HpS RETURN_IF_FAIL( hp_scsi_flush (scsi)) ; RETURN_IF_FAIL( hp_scsi_scl(scsi, inq_cmnd, SCL_INQ_ID(scl)) ); + usleep (1000); /* 500 works, too, but not 100 */ status = hp_scsi_read(scsi, buf, bufsize, 1); if (FAILED(status)) When debugging, I ran the tool like this (built from checked-out upstream CVS sources): SANE_HP_RDREDO=3 SANE_DEBUG_HP=255 SANE_DEBUG_SANEI_SCSI=255 \ libtool --mode=execute gdb frontend/scanimage -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net
[sane-devel] Canon LiDE 90
Guillaume Gastebois schrieb: Hello, Yesterday I added CCD_CANONLIDE90 in genesys.c. I did two successive scans (result on http://ggastebois.free.fr/lide90_snoop/25_test1.zip). The first one gives a bright image (1_test1.txt), the second a dark image (3_test1.txt). Which log seeems to be the best for calibration ? (in 3_test1.txt, I see device I/O errors !!!) What are good values for offset_calibration: black/white pixels ? Another thing : Pierre, you send me few weeks ago a code named entropy2D.c. I compile it with : gcc -c entropy2D.c, gcc -lm -o entropy2D entropy2D.o. No errors. I call it with entropy2D ./offset1_1.pnm and it makes nothing and newer gives hand back !!! What did I wrong ??? (I want to test common nibbles). it accepts data on stdin, and outputs a pgm on stdout: ./entropy2D ./offset1_1.pnm histogram.pgm For scanner locks up writing 0x41=0xf4, It signify that scanner things he's not hat home position. (home position : 0x41=0xfc). I thing it will be interessting to move a little bit head. How to do that ? My explanation is that on previous scan, the head has pressed home switch, but if head after that moves (less than a millimeter is enought) switch can no more be pressed. So moving back head may be usefull (but Isn't still made ?) To my knowledge, if the backend tests register 0x41, it thinks the scanning head should be moving, but it apparently is not. I did another ant work : comparing all regs from windows snoop to sane and I find these differences : addr |sane |windows|comments _|___|___|__ 09 |10 |21 |MCNTSET[1:0] CLKSET[1:0] BACKSCAN ENHANCE SHORTTG NWAIT 16 |20 |02 |CTRLHI TOSHIBA TGINV CK1INV CK2INV CTRLINV CKDIS CTRLDIS 19 |50 |ff |EXPDMY[7:0] 1a |00 |24 |X X MANUAL3 MANUAL1 CK4INV CK3INV LINECLP X 1d |02 |04 |CK4LOW CK3LOW CK1LOW TGSHLD[4:0] 52 |02 |02 |RHI[4:0] 53 |07 |04 |RLOW[4:0] 54 |00 |02 |GHI[4:0] 55 |00 |04 |GLOW[4:0] 56 |00 |02 |BHI[4:0] 57 |00 |04 |BLOW[4:0] 5d |00 |20 |HISPD[7:0] 5e |02 |41 |DECSEL[2:0] STOPTIM[4:0] 5f |00 |40 |FMOVDEC[7:0] 67 |00 |40 |STEPSEL[1:0] MTRPWM[5:0] 68 |00 |40 |FSTPSEL[1:0] FASTPWM[5:0] 69 |00 |08 |FSHDEC[7:0] 6a |00 |04 |FMOVNO[7:0] 70 |21 |05 |X X X RSH[4:0] 72 |00 |07 |X X X CPH[4:0] 73 |00 |09 |X X X CPL[4:0] 75 |00 |01 |CK1MAP[15:8] 76 |00 |ff |CK1MAP[7:0] 79 |00 |3f |CK3MAP[7:0] 7c |00 |1e |CK4MAP[7:0] 7d |00 |11 |CK1NEG CK3NEG CK4NEG RSNEG CPNEG BSMPNEG VSMPNEG DLYSET 7f |00 |50 |BSMPDLY[1:0] VSMPDLY[1:0] LEDCNT[3:0] 82 |00 |0f |ROFFSET[7:0] 84 |00 |0e |GOFFSET[7:0] 86 |00 |0d |BOFFSET[7:0] I think regs 09, 16, 19, 1a, 1d, 52, 53, 54, 55, 56, 57, 70, 72, 73, 75, 76, 79, 7c, 7d, 7f may be interessting, but I'll try to modify all. My next work will be analysing windows snoop for gpio transaction. Regards Guillaume
[sane-devel] SANE Evolution
Hello SANE devs, after months of trying to build some consensus around a common direction for the SANE future development, I decided to fork SANE. The new project is called SANE Evolution and aims to introduce new features in small steps while keeping compatibilty. The backends code base will be kept in sync with SANE whenever possible. Interested developers and users will find documentation, code, svn, mailing lists and a wiki at http://code.google.com/p/sane-evolution/ Your voice will be heard. -- Best regards, Alessandro Zummo, Tower Technologies - Torino, Italy http://www.towertech.it