[sane-devel] Re: Problems with Microtek 3600 USB

Magnus Schmidt yog at post1.com
Sun Sep 23 21:45:29 BST 2001


Hi,

 I don't know if my first message made it to the list ... in case it didn't 
see below.
Meanwhile I was able to get something from the scanner, compiling the 
sane-backends with --disable-shared solved one problem.
Now the scanner starts to scan, but stops after a random time: 

root at atropos:/home/magnus > scanimage
[sanei_debug] Setting debug level of sm3600 to 255.
[sm3600] SM3600 init
[sm3600] SM3600 version: 1000004
[sm3600] starting bus scan
[sm3600] scanning bus 001
[sm3600] found dev 05DA/40B8
[sm3600] found dev 0000/0000
[umax_pp_low] EPPRegisterRead, found 0xB expected 0xC7 (umax_pp_low.c:2991)
[umax_pp_low] Error! expected STATUS=0x38, found 0x7F! (umax_pp_low.c:4911)
[umax_pp_low] SendWord610P failed, expected tmp=0xC8 , found 0x7F 
(umax_pp_low.c:2035)
[umax_pp_low] SendWord(zero) failed (umax_pp_low.c:3374)
[umax_pp_mid] sanei_umax_pp_InitTransport() failed (umax_pp_mid.c:130)
[sm3600] opening bus1;dev1
scanimage: rounded value of br-x from 50 to 49.9954
scanimage: rounded value of br-y from 80 to 79.9927
[sm3600] starting scan...
[sm3600] mode=0, res=75, BC=[0,0], xywh=[1039,1417,1323,2362]
[sm3600] DoOriginate()
[sm3600] lt1=1
....
[sm3600] lt2=1
[sm3600] lt2=1
[sm3600] lt2=9
scanimage: sane_start: Error during device I/O
[sm3600] cancel called...
[sm3600] closing scanner
[sm3600] Error status: 9, Timeout while waiting for CTL

I've upgraded the kernel to 2.4.9, and I tried to use a non SMP-Kernel to 
rule out problems with the usb-implementation, but the results are always the 
same.
Also I'm not sure about the debug-messages from [umax_pp_low] ... are they 
used by the sm3600 frontend ?

Anyone any suggestions ?

Thanks,
Magnus Schmidt



> Hi there,
>
>  I'm really stuck with installing a Mikrotek 3600 USB scanner:
>
> I compiled and installed a usb-capable kernel (2.4.2) with hotpluggin,
> installed the sourceforge hotplug scripts, and libusb 0.1.3b.
> When the scanner is connected it correctly shows up in /proc/bus/usb/*, so
> from the kernel-side everything should be ok.
>
> However when I compile the sane-backends-1.0.5, scanimage -L states that no
> sane devices have been found, although the sm3600-lib is correctly
> installed. During configure I get:
> ...
> checking for usb.h... (cached) yes
> ...
> checking for usb_open in -lusb... (cached) no
> ...
> but it compiles and links correctly.
>
> I only have some basic C knowledge ... I tried to put an fprintf()
> immediately before usb_init() in backends/sm3600.c (Line 367), but it seems
> that this statement is never reached (I don't know how to enable debugging
> sane-backends).
> However an strace scanimage -L shows:
> ...
> open("/usr/local/lib/sane/libsane-sm3600.so.1", O_RDONLY) = 3
> close(3)                                = 0
> open("/usr/local/lib/sane/libsane-sm3600.so.1", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\31\0"..., 1024)
> = 1024
> fstat64(3, {st_mode=S_IFREG|0755, st_size=134747, ...}) = 0
> old_mmap(NULL, 35412, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000
> mprotect(0x40026000, 2644, PROT_NONE)   = 0
> old_mmap(0x40026000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0x7000) = 0x40026000
> close(3)                                = 0
> munmap(0x4001e000, 35412)               = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x4001e000
> ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> write(1, "\n", 1
> )                       = 1
> write(1, "No scanners were identified. If "..., 72No scanners were
> identified. If you were expecting something different,
> ) = 72
> ...
>
> Does anyone have any suggestions or hints what I'm doing wrong ???
>
> Thanks,
> Magnus Schmidt




More information about the sane-devel mailing list