[Risolto] Problemi chiavetta ONDA Network Manager

Buongiorno a tutti, sto’ cercando di far funzionare la chiavetta ONDA MT503HSA seguendo anche la guida http://www.fedoraonline.it/modules/smartsection/item.php?itemid=322&keywords=onda

Sembra funzionare tutto correttamente:

[root@laptop ~]# lsusb | grep -i onda
Bus 002 Device 007: ID 19d2:0037 ONDA Communication S.p.A.
[root@laptop ~]# modprobe usbserial vendor=0x19d2 product=0x0002
[root@laptop ~]# usb_modeswitch -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0002 -d 1

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode or class found. Nothing to do. Bye.

[root@laptop ~]# eject /dev/sr1
eject: unable to find or open device for: `/dev/sr1’
[root@laptop ~]# lsusb | grep -i onda
Bus 002 Device 007: ID 19d2:0037 ONDA Communication S.p.A.

ma il problema e’ che non riesco a configurare tramite Network manager perche’ non compare nessun wizard di creazione connessione per la chiavetta.
Qualcuno saprebbe aiutarmi ?

Grazie

mi sembra che stai seguendo la guida in maniera passiva.

togli e metti la pennetta e posta l’output di:

$ dmesg|tail

Cosa ho fatto che non va ? :-?
Perche’ dici che sto’ seguendo la guida in modo passivo ?

[root@laptop ]# dmesg|tail
option 2-1.3:1.3: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
option 2-1.3:1.4: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 16:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 16:0:0:0: Attached scsi generic sg3 type 0
sd 16:0:0:0: [sdc] Attached SCSI removable disk

perché stai dando comandi che non corrispondono alla tua situazione.

dai il comando:

# eject /dev/sdc

aspetta un paio di minuti e posta

# dmesg|tail

[root@laptop ~]# date
ven 29 ott 2010, 10.08.46, CEST
[root@laptop ~]# eject /dev/sdc
[root@laptop ~]# date
ven 29 ott 2010, 10.11.18, CEST
[root@laptop ~]# dmesg|tail
option 2-1.3:1.3: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
option 2-1.3:1.4: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 16:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 16:0:0:0: Attached scsi generic sg3 type 0
sd 16:0:0:0: [sdc] Attached SCSI removable disk

spegni la macchina. togli la chiavetta.
riaccendi.
inserisci la chiavetta cambiando la porta usb a cui la colleghi.

dai:

# eject /dev/sdc

posta:

# dmesg|tail

[root@laptop ~]# dmesg|tail
option 2-1.2:1.4: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 7:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk
[root@laptop ~]# eject /dev/sdb
[root@laptop ~]# dmesg |tail
option 2-1.2:1.4: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 7:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk

Ho rilanciato e adesso si e’ aggiunta una riga in fondo:

[root@laptop ~]# dmesg |tail
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 7:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk
TCP lp registered

ridai più volte il comando:

# eject /dev/sdb

fino a quando il comando :

# dmesg|tail

cambia l’output.

Ho provato fino adesso ma questo e’ il risultato:

[root@laptop ~]# eject -v /dev/sdb
eject: device name is /dev/sdb' eject: expanded name is /dev/sdb’
eject: /dev/sdb' is not mounted eject: /dev/sdb’ is not a mount point
eject: checking if device “/dev/sdb” has a removable or hotpluggable flag
eject: /dev/sdb' is a multipartition device eject: trying to eject /dev/sdb’ using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdb’ using SCSI commands
eject: SCSI eject succeeded

[root@laptop ~]# dmesg |tail
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.2: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 7:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk
TCP lp registered

Se puo’ servire:

tail -50 /var/log/messages

[root@laptop ~]# tail -50 /var/log/messages
Oct 29 11:01:02 laptop kernel: usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Oct 29 11:01:02 laptop kernel: usb 2-1.3: Product: ONDA CDMA Technologies MSM
Oct 29 11:01:02 laptop kernel: usb 2-1.3: Manufacturer: ONDA,Incorporated
Oct 29 11:01:02 laptop kernel: usb 2-1.3: SerialNumber: 1234567890ABCDEF
Oct 29 11:01:02 laptop kernel: scsi10 : usb-storage 2-1.3:1.0
Oct 29 11:01:03 laptop usb_modeswitch: switching 19d2:2000 (ONDA,Incorporated: ONDA CDMA Technologies MSM)
Oct 29 11:01:03 laptop kernel: usb 2-1.3: USB disconnect, address 7
Oct 29 11:01:08 laptop kernel: usb 2-1.3: new high speed USB device using ehci_hcd and address 8
Oct 29 11:01:08 laptop kernel: usb 2-1.3: New USB device found, idVendor=19d2, idProduct=0037
Oct 29 11:01:08 laptop kernel: usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Oct 29 11:01:08 laptop kernel: usb 2-1.3: Product: ONDA CDMA Technologies MSM
Oct 29 11:01:08 laptop kernel: usb 2-1.3: Manufacturer: ONDA,Incorporated
Oct 29 11:01:08 laptop kernel: usb 2-1.3: SerialNumber: 1234567890ABCDEF
Oct 29 11:01:08 laptop kernel: option 2-1.3:1.0: GSM modem (1-port) converter detected
Oct 29 11:01:08 laptop kernel: usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
Oct 29 11:01:08 laptop kernel: option 2-1.3:1.1: GSM modem (1-port) converter detected
Oct 29 11:01:08 laptop kernel: usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
Oct 29 11:01:08 laptop kernel: scsi11 : usb-storage 2-1.3:1.2
Oct 29 11:01:08 laptop kernel: option 2-1.3:1.3: GSM modem (1-port) converter detected
Oct 29 11:01:08 laptop kernel: usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
Oct 29 11:01:08 laptop kernel: option 2-1.3:1.4: GSM modem (1-port) converter detected
Oct 29 11:01:08 laptop kernel: usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
Oct 29 11:01:08 laptop modem-manager: (ttyUSB2) opening serial device…
Oct 29 11:01:08 laptop modem-manager: (ttyUSB0) opening serial device…
Oct 29 11:01:12 laptop usb_modeswitch: switched to 19d2:0037 (: )
Oct 29 11:01:13 laptop kernel: scsi 11:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
Oct 29 11:01:13 laptop kernel: sd 11:0:0:0: Attached scsi generic sg2 type 0
Oct 29 11:01:13 laptop kernel: sd 11:0:0:0: [sdb] Attached SCSI removable disk
Oct 29 11:01:28 laptop modem-manager: (ttyUSB1) opening serial device…
Oct 29 11:01:58 laptop modem-manager: (ttyUSB3) opening serial device…
Oct 29 11:02:05 laptop modem-manager: (ttyUSB2) closing serial device…
Oct 29 11:02:05 laptop modem-manager: (ttyUSB1) closing serial device…
Oct 29 11:02:10 laptop modem-manager: (ttyUSB2) opening serial device…
Oct 29 11:02:10 laptop modem-manager: (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3 claimed port ttyUSB2
Oct 29 11:02:10 laptop modem-manager: (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3 claimed port ttyUSB1
Oct 29 11:02:13 laptop modem-manager: (ttyUSB2) closing serial device…
Oct 29 11:02:31 laptop modem-manager: (ttyUSB0) closing serial device…
Oct 29 11:02:36 laptop modem-manager: (ttyUSB0) opening serial device…
Oct 29 11:02:52 laptop modem-manager: (ttyUSB3) closing serial device…
Oct 29 11:02:52 laptop modem-manager: (ttyUSB3) opening serial device…
Oct 29 11:02:55 laptop modem-manager: (ttyUSB0) closing serial device…
Oct 29 11:03:00 laptop modem-manager: (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3 claimed port ttyUSB0
Oct 29 11:03:00 laptop modem-manager: (ttyUSB3) closing serial device…
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): failed to look up interface index
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): new GSM device (driver: ‘option1’ ifindex: -1)
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): exported as /org/freedesktop/NetworkManager/Devices/5
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): now managed
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): device state change: 1 -> 2 (reason 2)
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): deactivating device (reason: 2).
Oct 29 11:03:00 laptop NetworkManager[1234]: (ttyUSB2): device state change: 2 -> 3 (reason 0)

output di:

$ rpm -qa|grep vodafone

[root@laptop ~]# rpm -qa|grep -i vodafone
[root@laptop ~]#

[root@laptop ~]# yum search vodafone
Plugin abilitati:presto, refresh-packagekit
====================================================================== Trovato: vodafone ======================================================================
usb_modeswitch.x86_64 : USB Modeswitch gets 4G cards in operational mode
usb_modeswitch-data.noarch : USB Modeswitch gets 4G cards in operational mode

[root@laptop ~]# yum install usb_modeswitch.x86_64
Plugin abilitati:presto, refresh-packagekit
Impostazione processo di installazione
Il pacchetto usb_modeswitch-1.1.4-1.fc13.x86_64 è già aggiornato all’ultima versione
Niente da fare

[root@laptop ~]# yum install usb_modeswitch-data.noarch
Plugin abilitati:presto, refresh-packagekit
Impostazione processo di installazione
Il pacchetto usb_modeswitch-data-20100817-1.fc13.noarch è già aggiornato all’ultima versione
Niente da fare

:-?

dai un:

# modprobe usbserial vendor=0x19d2 product=0x0037

posta l’output di:

# dmesg|tail

[root@laptop ~]# modprobe usbserial vendor=0x19d2 product=0x0037
[root@laptop ~]# dmesg |tail
option 2-1.3:1.4: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
usb 2-1.3: usbfs: USBDEVFS_CONTROL failed cmd usb_modeswitch rqt 128 rq 6 len 255 ret -110
scsi 7:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk

installa questo:

rpm -ivh https://forge.betavine.net/frs/download.php/563/vodafone-mobile-connect-svn20090719.noarch.rpm

dai un reboot.
vedi ora come si comporta.

[root@laptop ~]# dmesg |tail
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
option 2-1.3:1.3: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
option 2-1.3:1.4: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
scsi 6:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Attached SCSI removable disk

[root@laptop ~]# eject /dev/sdb

[root@laptop ~]# eject -v /dev/sdb
eject: device name is /dev/sdb' eject: expanded name is /dev/sdb’
eject: /dev/sdb' is not mounted eject: /dev/sdb’ is not a mount point
eject: checking if device “/dev/sdb” has a removable or hotpluggable flag
eject: /dev/sdb' is a multipartition device eject: trying to eject /dev/sdb’ using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdb’ using SCSI commands
eject: SCSI eject succeeded

[root@laptop ~]# dmesg |tail
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
option 2-1.3:1.3: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
option 2-1.3:1.4: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
scsi 6:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Attached SCSI removable disk
[root@laptop ~]#

output di:

# iwconfig

[root@laptop ~]# modprobe usbserial vendor=0x19d2 product=0x0037
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-vmc, it will be ignored in a future release.
[root@laptop ~]# dmesg |tail
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
option 2-1.3:1.3: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
option 2-1.3:1.4: GSM modem (1-port) converter detected
usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
scsi 6:0:0:0: Direct-Access ONDA MMC Storage MMC PQ: 0 ANSI: 2
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Attached SCSI removable disk

[root@laptop ~]# eject -v /dev/sdb
eject: device name is /dev/sdb' eject: expanded name is /dev/sdb’
eject: /dev/sdb' is not mounted eject: /dev/sdb’ is not a mount point
eject: checking if device “/dev/sdb” has a removable or hotpluggable flag
eject: /dev/sdb' is a multipartition device eject: trying to eject /dev/sdb’ using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdb’ using SCSI commands
eject: SCSI eject succeeded

[root@laptop ~]# iwconfig
lo no wireless extensions.

wwan0 no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11abgn Mode:Managed Access Point: Not-Associated
Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

vmnet1 no wireless extensions.

vmnet8 no wireless extensions.

Devo segnalare che la lucina della chiavetta da blu che è sempre stata adesso è diventata verde.
Abbiamo fatto un passo avanti…forse con un po’ di aiuto ancora ci riusciamo.

:woho: