[sane-devel] USB2 4 port hub and write_scanner(0): funky result: -32

Alexander Kempshall member@aikempshall.freeserve.co.uk
Wed, 20 Apr 2005 16:29:47 +0200 (CEST)


------=_Part_40547_1979241.1114007387342
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

I've recently bought the Trust 420A 4 Port Compact USB2 Hub. On the http://www.qbik.ch/usb/devices/ there is a suggestion that it is Linux compatible.

In Slackware 10.1 when the hub is connected to my Canon N670U scanner, start Kooka, the scanner is recognised but when I try to scan nothing happens. Close Kooka down and start again the scanner is no longer recognised. Unplug the USB cable the machine crashes. In dmesg I get the following 

scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
ppdev: user-space parallel port driver
ppdev0: registered pardevice
ppdev0: unregistered pardevice
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.

At start up the relevant section of /var/log/messages file looks like -

Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: Intel Corp. 82801EB USB2
Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: irq 3, pci mem e0baf000
Apr 19 22:18:19 LINUX kernel: usb.c: new USB bus registered, assigned bus number 5
Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: enabled 64bit PCI DMA
Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-D
ec-29/2.4
Apr 19 22:18:19 LINUX kernel: usb.c: USB disconnect on device 00:1d.1-1 address 2
Apr 19 22:18:19 LINUX kernel: usb.c: USB disconnect on device 00:1d.1-1.4 address 3
Apr 19 22:18:19 LINUX kernel: hub.c: USB hub found
Apr 19 22:18:19 LINUX kernel: hub.c: 8 ports detected
Apr 19 22:18:19 LINUX kernel: hub.c: new USB device 00:1d.7-3, assigned address 2
Apr 19 22:18:19 LINUX kernel: hub.c: USB hub found
Apr 19 22:18:19 LINUX kernel: hub.c: 4 ports detected
Apr 19 22:18:19 LINUX kernel: hub.c: new USB device 00:1d.7-3.4, assigned address 3
Apr 19 22:18:19 LINUX kernel: usb.c: registered new driver usbscanner
Apr 19 22:18:19 LINUX kernel: scanner.c: USB scanner device (0x04a9/0x220d) now attached to scanner0
Apr 19 22:18:19 LINUX kernel: scanner.c: 0.4.16:USB Scanner Driver

lsmod looks like -

Module Size Used by Not tainted
snd-pcm-oss 37220 0 (unused)
snd-mixer-oss 12248 0 [snd-pcm-oss]
parport_pc 15044 1 (autoclean)
lp 6404 0 (autoclean)
parport 22824 1 (autoclean) [parport_pc lp]
ipt_state 536 33 (autoclean)
ipt_REJECT 3128 4 (autoclean)
ipt_limit 888 6 (autoclean)
ipt_LOG 3448 6 (autoclean)
ip_conntrack_ftp 3632 0 (unused)
ip_conntrack 18440 1 [ipt_state ip_conntrack_ftp]
iptable_filter 1676 1 (autoclean)
ip_tables 11968 5 [ipt_state ipt_REJECT ipt_limit ipt_LOG iptable_filter]
scanner 10720 0 (unused)
ehci-hcd 17516 0 (unused)
ata_piix 3784 0 (unused)
libata 27732 0 [ata_piix]
snd-intel8x0 18440 0
snd-ac97-codec 43228 0 [snd-intel8x0]
gameport 1404 0 [snd-intel8x0]
snd-pcm 56072 0 [snd-pcm-oss snd-intel8x0]
snd-timer 13316 0 [snd-pcm]
snd-page-alloc 5972 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3200 0 [snd-intel8x0]
snd-rawmidi 12256 0 [snd-mpu401-uart]
snd-seq-device 3680 0 [snd-rawmidi]
snd 29668 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart
snd-rawmidi snd-seq-device]
soundcore 3396 4 [snd]
ohci1394 23888 0 (unused)
ieee1394 41604 0 [ohci1394]
8139too 13928 1
mii 2272 0 [8139too]
crc32 2880 0 [8139too]
ide-scsi 9392 0
scsi_mod 59208 2 [ata_piix libata ide-scsi]
usb-uhci 21936 0 (unused)
usbcore 58828 1 [scanner ehci-hcd usb-uhci]
agpgart 45092 0 (unused)



lspci looks like -

00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]
02:01.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:09.0 Unknown mass storage controller: CMD Technology Inc PCI0680 (rev 02)


The Scanner works perfectly if plugged directly into a usb port on the mother board. Also the scanned works perfectly plugged into the external hub using knoppix.

Originally Slackware was loading the uhci module whereas Knoppix was loading the usb-uhci module. I've changed slack to use usb-uhci module, still crashes.

Any suggestions?

Thanks in anticipation.

-- 

Whatever you Wanadoo:
http://www.wanadoo.co.uk/time/

This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm
------=_Part_40547_1979241.1114007387342
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<P><FONT face=3D"verdana, arial, helvetica" size=3D2>I've recently bought t=
he Trust 420A 4 Port Compact USB2 Hub. On the <A href=3D"http://www.qbik.ch=
/usb/devices/" target=3D_blank>http://www.qbik.ch/usb/devices/</A> there is=
 a suggestion that it is Linux compatible.<BR><BR>In Slackware 10.1 when th=
e hub is connected to my Canon N670U scanner, start Kooka, the scanner is r=
ecognised but when I try to scan nothing happens. Close Kooka down and star=
t again the scanner is no longer recognised. Unplug the USB cable the machi=
ne crashes. In dmesg I get the following <BR><BR>scanner.c: write_scanner(0=
): funky result: -32. Consult Documentataion/usb/scanner.txt.<BR>scanner.c:=
 write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.tx=
t.<BR>scanner.c: write_scanner(0): funky result: -32. Consult Documentataio=
n/usb/scanner.txt.<BR>scanner.c: write_scanner(0): funky result: -32. Consu=
lt Documentataion/usb/scanner.txt.<BR>scanner.c: write_scanner(0): funky re=
sult: -32. Consult Documentataion/usb/scanner.txt.<BR>scanner.c: write_scan=
ner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.<BR>scann=
er.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scann=
er.txt.<BR>scanner.c: write_scanner(0): funky result: -32. Consult Document=
ataion/usb/scanner.txt.<BR>scanner.c: write_scanner(0): funky result: -32. =
Consult Documentataion/usb/scanner.txt.<BR>ppdev: user-space parallel port =
driver<BR>ppdev0: registered pardevice<BR>ppdev0: unregistered pardevice<BR=
>scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb=
/scanner.txt.<BR><BR>At start up the relevant section of /var/log/messages =
file looks like -<BR><BR>Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: In=
tel Corp. 82801EB USB2<BR>Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: i=
rq 3, pci mem e0baf000<BR>Apr 19 22:18:19 LINUX kernel: usb.c: new USB bus =
registered, assigned bus number 5<BR>Apr 19 22:18:19 LINUX kernel: ehci_hcd=
 00:1d.7: enabled 64bit PCI DMA<BR>Apr 19 22:18:19 LINUX kernel: ehci_hcd 0=
0:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-D<BR>ec-29/2.4<BR>Apr 19 22=
:18:19 LINUX kernel: usb.c: USB disconnect on device 00:1d.1-1 address 2<BR=
>Apr 19 22:18:19 LINUX kernel: usb.c: USB disconnect on device 00:1d.1-1.4 =
address 3<BR>Apr 19 22:18:19 LINUX kernel: hub.c: USB hub found<BR>Apr 19 2=
2:18:19 LINUX kernel: hub.c: 8 ports detected<BR>Apr 19 22:18:19 LINUX kern=
el: hub.c: new USB device 00:1d.7-3, assigned address 2<BR>Apr 19 22:18:19 =
LINUX kernel: hub.c: USB hub found<BR>Apr 19 22:18:19 LINUX kernel: hub.c: =
4 ports detected<BR>Apr 19 22:18:19 LINUX kernel: hub.c: new USB device 00:=
1d.7-3.4, assigned address 3<BR>Apr 19 22:18:19 LINUX kernel: usb.c: regist=
ered new driver usbscanner<BR>Apr 19 22:18:19 LINUX kernel: scanner.c: USB =
scanner device (0x04a9/0x220d) now attached to scanner0<BR>Apr 19 22:18:19 =
LINUX kernel: scanner.c: 0.4.16:USB Scanner Driver<BR><BR>lsmod looks like =
-<BR><BR>Module Size Used by Not tainted<BR>snd-pcm-oss 37220 0 (unused)<BR=
>snd-mixer-oss 12248 0 [snd-pcm-oss]<BR>parport_pc 15044 1 (autoclean)<BR>l=
p 6404 0 (autoclean)<BR>parport 22824 1 (autoclean) [parport_pc lp]<BR>ipt_=
state 536 33 (autoclean)<BR>ipt_REJECT 3128 4 (autoclean)<BR>ipt_limit 888 =
6 (autoclean)<BR>ipt_LOG 3448 6 (autoclean)<BR>ip_conntrack_ftp 3632 0 (unu=
sed)<BR>ip_conntrack 18440 1 [ipt_state ip_conntrack_ftp]<BR>iptable_filter=
 1676 1 (autoclean)<BR>ip_tables 11968 5 [ipt_state ipt_REJECT ipt_limit ip=
t_LOG iptable_filter]<BR>scanner 10720 0 (unused)<BR>ehci-hcd 17516 0 (unus=
ed)<BR>ata_piix 3784 0 (unused)<BR>libata 27732 0 [ata_piix]<BR>snd-intel8x=
0 18440 0<BR>snd-ac97-codec 43228 0 [snd-intel8x0]<BR>gameport 1404 0 [snd-=
intel8x0]<BR>snd-pcm 56072 0 [snd-pcm-oss snd-intel8x0]<BR>snd-timer 13316 =
0 [snd-pcm]<BR>snd-page-alloc 5972 0 [snd-intel8x0 snd-pcm]<BR>snd-mpu401-u=
art 3200 0 [snd-intel8x0]<BR>snd-rawmidi 12256 0 [snd-mpu401-uart]<BR>snd-s=
eq-device 3680 0 [snd-rawmidi]<BR>snd 29668 0 [snd-pcm-oss snd-mixer-oss sn=
d-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart<BR>snd-rawmidi =
snd-seq-device]<BR>soundcore 3396 4 [snd]<BR>ohci1394 23888 0 (unused)<BR>i=
eee1394 41604 0 [ohci1394]<BR>8139too 13928 1<BR>mii 2272 0 [8139too]<BR>cr=
c32 2880 0 [8139too]<BR>ide-scsi 9392 0<BR>scsi_mod 59208 2 [ata_piix libat=
a ide-scsi]<BR>usb-uhci 21936 0 (unused)<BR>usbcore 58828 1 [scanner ehci-h=
cd usb-uhci]<BR>agpgart 45092 0 (unused)<BR><BR><BR><BR>lspci looks like -<=
BR><BR>00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hu=
b Interface (rev 02)<BR>00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to =
AGP Controller (rev 02)<BR>00:1d.0 USB Controller: Intel Corp. 82801EB/ER (=
ICH5/ICH5R) USB UHCI #1 (rev 02)<BR>00:1d.1 USB Controller: Intel Corp. 828=
01EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)<BR>00:1d.2 USB Controller: Intel =
Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)<BR>00:1d.3 USB Controlle=
r: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)<BR>00:1d.7 USB =
Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 0=
2)<BR>00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to =
PCI Bridge (rev c2)<BR>00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH=
5R) LPC Bridge (rev 02)<BR>00:1f.1 IDE interface: Intel Corp. 82801EB/ER (I=
CH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)<BR>00:1f.2 IDE interfa=
ce: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)<B=
R>00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev =
02)<BR>00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/IC=
H5R) AC'97 Audio Controller (rev 02)<BR>01:00.0 VGA compatible controller: =
ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]<BR>02:01.0 FireWire (=
IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Lin=
k)<BR>02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139=
/8139C/8139C+ (rev 10)<BR>02:09.0 Unknown mass storage controller: CMD Tech=
nology Inc PCI0680 (rev 02)<BR><BR><BR>The Scanner works perfectly if plugg=
ed directly into a usb port on the mother board. Also the scanned works per=
fectly plugged into the external hub using knoppix.<BR><BR>Originally Slack=
ware was loading the uhci module whereas Knoppix was loading the usb-uhci m=
odule. I've changed slack to use usb-uhci module, still crashes.<BR><BR>Any=
 suggestions?<BR><BR>Thanks in anticipation.</FONT></P><BR><BR><hr size=3D"=
1">Whatever you <a href=3D"http://www.wanadoo.co.uk/time/" target=3D"_blank=
">Wanadoo</a><br><br>This email has been checked for most known viruses - f=
ind out more <a href=3D"http://www.wanadoo.co.uk/help/id/7098.htm" target=
=3D"_blank">here</a>
------=_Part_40547_1979241.1114007387342--