Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites". Attention, le forum rencontre actuellement quelques difficultés. En cas d'erreur 502, il ne faut pas re-valider l'envoi d'un message ou l'ouverture d'une discussion, au risque de créer un doublon.

La section divers se réorganise ! De nouvelles sous-sections à venir. (plus d'infos + donner son avis)

#1 Le 23/05/2005, à 21:35

Lacsap

Plug and pray...

Bonjour, à tous.
Voila un étrange comportement...


Pour faire court:
Si je branche mon modem (fast800E2) sur un port usb du poste, no problemo. Si je branche mon modem sur un port usb d'un petit hub usb, problemo!


Pour faire long:
J'utilise Hoary (2.6.10-5-386) sur un portable HP compaq-nw8000 doté de deux ports usb (c'est peu). J'ai récupéré les paquets eagle-usb-date/utils sur le site de Ubuntu que j'ai installé avec dpkg.

Que le modem soit branché directement ou indirectement (derrière le hub), il est correctement détecté par hotplug. Lorsqu'il est branché de façon indirecte, eaglectrl -d retourne une erreur.

J'ai désinstallé les paquets Ubuntu puis compilé la version 2.3.1 de eagle-usb. Cet étrange comportement se reproduit!

J'ai un second poste sous Warty et le modem fonctionne à merveille avec le hub usb!

Une piste...



** DIRECTEMENT **

8<---dmesg-------------------------------
usb 1-2: new full speed USB device using uhci_hcd and address 3
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
[eagle-usb] driver V2.0.0 loaded
[eagle-usb] New pre-firmware modem detected
[eagle-usb] Uploading firmware..
[eagle-usb] Binding eu_instance_t to USB 001/003
usbcore: registered new driver eagle-usb
usb 1-2: USB disconnect, address 3
[eagle-usb] Pre-firmware modem removed
usb 1-2: new full speed USB device using uhci_hcd and address 4
[eagle-usb] New USB ADSL device detected, waiting for DSP code...
[eagle-usb] Interface 0 accepted.
[eagle-usb] created proc entry at : /proc/driver/eagle-usb/001-004

8<---eaglectrl -d-------------------------------
Unknown option on line 27
Unknown option on line 28
Unknown option on line 29
Unknown option on line 30
Unknown option on line 31
Unknown option on line 32
Options successfully sent to driver.
Using DSP code for POTS line
DSP code successfully loaded.

8<---eaglestat-------------------------------
Driver version 2.0.0     Chipset: Eagle2
Vendor ID : 0x1110     Product ID : 0x9021   Rev: 0x500b
USB Bus : 001    USB Device : 004        Dbg mask: 0x0
Ethernet Interface : eth1
MAC: 00:61:40:26:6f:61
Tx Rate         160  Rx Rate        1248
FEC               0  Margin           24  Atten            47 dB
VID-CPE          28  VID-CO           28  HEC               0
VPI               8  VCI              35  Delin          GOOD
Cells Tx          0  Cells Rx          0
Pkts Tx           0  Pkts Rx           0
OAM               0  Bad VPI           0  Bad CRC           0
Oversiz.          0

Modem is operational


** INDIRECTEMENT **

8<---dmesg-------------------------------
usb 4-1.3: new full speed USB device using ehci_hcd and address 5
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
[eagle-usb] driver V2.0.0 loaded
[eagle-usb] New pre-firmware modem detected
[eagle-usb] Uploading firmware..
[eagle-usb] Binding eu_instance_t to USB 004/005
usbcore: registered new driver eagle-usb
usb 4-1.3: USB disconnect, address 5
[eagle-usb] Pre-firmware modem removed
usb 4-1.3: new full speed USB device using ehci_hcd and address 6
[eagle-usb] New USB ADSL device detected, waiting for DSP code...
[eagle-usb] Interface 0 accepted.
[eagle-usb] created proc entry at : /proc/driver/eagle-usb/004-006

8<---eaglectrl -d-------------------------------
Unknown option on line 27
Unknown option on line 28
Unknown option on line 29
Unknown option on line 30
Unknown option on line 31
Unknown option on line 32
Options successfully sent to driver.
Using DSP code for POTS line
Unable to send DSP code to the modem: Input/output error

8<---eaglestat-------------------------------
Driver version 2.0.0     Chipset: Eagle2
Vendor ID : 0x1110     Product ID : 0x9021   Rev: 0x500b
USB Bus : 004    USB Device : 006        Dbg mask: 0x0
Ethernet Interface : none
MAC: 00:61:40:26:6f:61
Tx Rate           0  Rx Rate           0
FEC               0  Margin            0  Atten             0 dB
VID-CPE           0  VID-CO            0  HEC               0
VPI               8  VCI              35  Delin          GOOD
Cells Tx          0  Cells Rx          0
Pkts Tx           0  Pkts Rx           0
OAM               0  Bad VPI           0  Bad CRC           0
Oversiz.          0

Modem waiting for driver response.
Please send DSP (eaglectrl -d)

8<---dmesg-------------------------------
[eagle-usb] ioctl EU_IO_OPTIONS received
[eagle-usb] ioctl EU_IO_DSP received
[eagle-usb] Loading DSP code to device...
[EAGLE-USB] Unable to submit interrupt URB!

Un sujet a également été lancé sur le forum de eagle-usb.

#2 Le 23/05/2005, à 21:42

cep

Re : Plug and pray...

** DIRECTEMENT **

8<---dmesg-------------------------------
usb 1-2: new full speed USB device using uhci_hcd and address 3

Alors que :

** INDIRECTEMENT **

8<---dmesg-------------------------------
usb 4-1.3: new full speed USB device using ehci_hcd and address 5

Il n'y aurait pas une piste là ?

Hors ligne

#3 Le 01/06/2005, à 18:20

Lacsap

Re : Plug and pray...

Est-ce à dire que:
- indirectement (hub), le modem est vu en usb2 (ehci) et cela est problématique,
- directement, le modem est vu en usb1 (uhci) et cela convient?

En fouillant sur Google à propos de uhci/ehci, je suis tombé sur un excellent didacticiel:
http://www.trustonme.net/didactels/297.html

Pour les développeurs, les curieux, etc... voici mon film usb.
lspci:
0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller (rev 03)

lsusb:
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000 


**** Insertion du hub usb ****

dmesg:
usb 4-1: new high speed USB device using ehci_hcd and address 2
hub 4-1:1.0: USB hub found
hub 4-1:1.0: 4 ports detected

lsusb:
Bus 004 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000


**** Insertion souris usb ****

dmesg:
usb 4-1.2: new low speed USB device using ehci_hcd and address 3
usbcore: registered new driver hiddev
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.7-1.2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver

lsusb:
Bus 004 Device 003: ID 046d:c00e Logitech, Inc. Optical Mouse
Bus 004 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000


**** Insertion clé usb ****

dmesg:
usb 4-1.4: new high speed USB device using ehci_hcd and address 4
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
  Vendor: Generic   Model: STORAGE DEVICE    Rev: 1.25
  Type:   Direct-Access                      ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
usb 4-1.4: reset high speed USB device using ehci_hcd and address 4
sda: Write Protect is off
sda: Mode Sense: 55 53 02 00
sda: assuming drive cache: write through
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
usb 4-1.4: reset high speed USB device using ehci_hcd and address 4
usb 4-1.4: reset high speed USB device using ehci_hcd and address 4
sda: Write Protect is off
sda: Mode Sense: 55 53 02 00
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

lsusb:
Bus 004 Device 004: ID 05dc:a300 Lexar Media, Inc.
Bus 004 Device 003: ID 046d:c00e Logitech, Inc. Optical Mouse
Bus 004 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000
 


**** Retrait clé usb ****

dmesg:
usb 4-1.4: USB disconnect, address 4
scsi0 (0:0): rejecting I/O to device being removed
FAT bread failed in fat_clusters_flush

lsusb:
Bus 004 Device 003: ID 046d:c00e Logitech, Inc. Optical Mouse
Bus 004 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000


**** Insertion modem usb eagle ****

dmesg:
usb 4-1.3: new full speed USB device using ehci_hcd and address 5
[eagle-usb] driver V2.3.0 loaded
[eagle-usb] New pre-firmware modem detected
[eagle-usb] Uploading firmware..
[eagle-usb] Binding eu_instance_t to USB 004/005
usbcore: registered new driver eagle-usb
usb 4-1.3: USB disconnect, address 5
[eagle-usb] Pre-firmware modem removed
usb 4-1.3: new full speed USB device using ehci_hcd and address 6
[eagle-usb] New USB ADSL device detected, waiting for DSP code...
[eagle-usb] Interface 0 accepted.
[eagle-usb] created proc entry at : /proc/driver/eagle-usb/004-006
[eagle-usb] ioctl EU_IO_CMVS received and treated.
[eagle-usb] ioctl EU_IO_OPTIONS received
[eagle-usb] ioctl EU_IO_DSP received
[eagle-usb] Loading DSP code to device...
[EAGLE-USB] Unable to submit interrupt URB!

lsusb:
Bus 004 Device 006: ID 1110:9021 Analog Devices Canada, Ltd (Allied Telesyn)
Bus 004 Device 003: ID 046d:c00e Logitech, Inc. Optical Mouse
Bus 004 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000 


**** Insertion clé usb ****

dmesg:
usb 4-1.4: new high speed USB device using ehci_hcd and address 7
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
  Vendor: Generic   Model: STORAGE DEVICE    Rev: 1.25
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
sda: Mode Sense: 02 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
usb 4-1.4: reset high speed USB device using ehci_hcd and address 7
sda: Write Protect is off
sda: Mode Sense: 55 53 02 00
sda: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete

#4 Le 01/06/2005, à 18:28

Lacsap

Re : Plug and pray...

J'ai oublié de préciser que dans le film, la souris et la clé ne meurent pas! Ces deux périphériques usb/ehci fonctionnent sans encombre.

Haut de page ↑