Vodafone ZTE K3806-Z

Tornata in Italia per le ferie e mi sono procurata una chiavetta per la connessione internet. Mi hanno rifilato la ZTE K3806-Z.
Fedora 13 la riconosce come modem (yuppie), predispone la connessione con NetworkManager, ma quando provo a collegarmi non ci sono segni di vita, cioè NetworkManager non inizia a “far roteare” i pallini e la chiavetta continua a lampeggiare allegramente …

Grazie!

P.S. Sono collegata con un altro computer quindi gli output saranno un po’ lenti …

EDIT: Output lsusb. Ho notato che compare una connessione wired al dispositivo ZTE. Forse e’ quella che “impedisce” la connessione al mobile …

$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:219c Broadcom Corp. 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 013: ID 19d2:1015 ONDA Communication S.p.A. 
Bus 001 Device 003: ID 2232:1001  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Ciao, stacca e riattacca la chiavetta, poi mostra:

[code]

lsusb -v -d 19d2:1015

$ dmesg | tail
$ nmcli dev status && nmcli con status && nmcli nm status[/code]


# lsusb -v -d 19d2:1015

Bus 001 Device 023: ID 19d2:1015 ONDA Communication S.p.A. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ONDA Communication S.p.A.
  idProduct          0x1015 
  bcdDevice            0.01
  iManufacturer           3 Vodafone (ZTE)
  iProduct                2 K3806-Z
  iSerial                 4 58255B38C4429DAB10EAC8E18A0A7AB68EC4FC50
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          315
    bNumInterfaces         10
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         2 Communications
      bInterfaceSubClass      8 Wireless Handset Control
      bInterfaceProtocol      0 
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC WHCM:
        bcdVersion           1.00
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 2 3 4 5 6 8 9 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           0
      bInterfaceClass         2 Communications
      bInterfaceSubClass      8 Wireless Handset Control
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC ACM:
        bmCapabilities       0x07
          sends break
          line coding and serial state
          get/set/clear comm features
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          2
      CDC Union:
        bMasterInterface        1
        bSlaveInterface         2 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC ACM:
        bmCapabilities       0x07
          sends break
          line coding and serial state
          get/set/clear comm features
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          4
      CDC Union:
        bMasterInterface        3
        bSlaveInterface         4 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        5
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0 
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC Ethernet:
        iMacAddress                      1 02429dab10ea
        bmEthernetStatistics    0x0000000f
        wMaxSegmentSize               1536
        wNumberMCFilters            0x0003
        bNumberPowerFilters              1
      CDC Union:
        bMasterInterface        5
        bSlaveInterface         6 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        6
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        6
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        7
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        8
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         2 Communications
      bInterfaceSubClass     11 OBEX
      bInterfaceProtocol      0 
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC OBEX:
        bcdVersion           1.00
      CDC Union:
        bMasterInterface        8
        bSlaveInterface         9 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        9
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        9
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)


$ dmesg | tail 
scsi 13:0:0:1: Direct-Access     Vodafone Storage          0001 PQ: 0 ANSI: 0
sr0: scsi3-mmc drive: 0x/0x caddy
sr 13:0:0:0: Attached scsi CD-ROM sr0
sr 13:0:0:0: Attached scsi generic sg1 type 5
sd 13:0:0:1: Attached scsi generic sg2 type 0
sd 13:0:0:1: [sdb] Attached SCSI removable disk
sr0: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00
sr: Sense Key : Hardware Error [current] 
sr: Add. Sense: No additional sense information
usb0: no IPv6 routers present


$ nmcli dev status && nmcli con status && nmcli nm status
DEVICE     TYPE              STATE       
eth2       802-11-wireless   disconnected
eth1       802-3-ethernet    unavailable 
usb0       802-3-ethernet    unavailable 
ttyACM0    gsm               disconnected
NAME                      UUID                                   DEVICES    SCOPE    DEFAULT  VPN  
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN      
running         disconnected    enabled         enabled    enabled         disabled  

Hai impostato la connessione con NetworkManager ?

Ho appena notato (http://www.draisberghof.de/usb_modeswitch/#usage) che la tua chiavetta è uno dei dispositvi che necessitano di ulteriori impostazioni.

Mi sa che devi usare usb-modeswitch.

La http://www.fedoraonline.it/modules/smartsection/item.php?itemid=334 del grande Virus fa sicuramente al caso tuo.

usb mode switch e’installato e aggiornato. La chiavetta e’riconosciuta come modem. La connessione e’stata impostata da Network Manager.
Il problema e´ che compare una connessione wired allo stesso dispositivo e quindi non riesco ad accedere come mobile …

Grazie per la guida ma le impostazioni sono gia’come indicate nella guida (headbang)!

da root:

# eject /dev/sr0
# modprobe usbserial vendor=0x19d2 product=0x1015

aspetta 20 secondi poi posta:

[code]

dmesg|tail[/code]

# dmesg | tail
sr: Add. Sense: No additional sense information
sr0: CDROM (ioctl) error, command: Get event status notification 4a 01 00 00 10 00 00 00 08 00
sr: Sense Key : Hardware Error [current] 
sr: Add. Sense: No additional sense information
sr0: CDROM (ioctl) error, command: Get event status notification 4a 01 00 00 10 00 00 00 08 00
sr: Sense Key : Hardware Error [current] 
sr: Add. Sense: No additional sense information
sr0: CDROM (ioctl) error, command: Get event status notification 4a 01 00 00 10 00 00 00 08 00
sr: Sense Key : Hardware Error [current] 
sr: Add. Sense: No additional sense information

togli la chiavetta, rimettila, poi di nuovo, solo:

# modprobe usbserial vendor=0x19d2 product=0x1015 

poi

# dmesg|tail -n 30

posta l’output.

# dmesg | tail -n 30
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, 02:42:9d:ab:10:ea
usbcore: registered new interface driver cdc_ether
scsi 5:0:0:0: CD-ROM            Vodafone USB SCSI CD-ROM  0001 PQ: 0 ANSI: 0
scsi 5:0:0:1: Direct-Access     Vodafone Storage          0001 PQ: 0 ANSI: 0
sr0: scsi3-mmc drive: 0x/0x caddy
Uniform CD-ROM driver Revision: 3.20
sr 5:0:0:0: Attached scsi CD-ROM sr0
sr 5:0:0:0: Attached scsi generic sg1 type 5
sd 5:0:0:1: Attached scsi generic sg2 type 0
sd 5:0:0:1: [sdb] Attached SCSI removable disk
sr0: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00
sr: Sense Key : Hardware Error [current] 
sr: Add. Sense: No additional sense information
usb0: no IPv6 routers present
Monitor-Mwait will be used to enter C-2 state
Monitor-Mwait will be used to enter C-3 state
Marking TSC unstable due to TSC halts in idle
Switching to clocksource hpet
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbserial_generic 1-1:1.0: Generic device with no bulk out, not allowed.
usbserial_generic: probe of 1-1:1.0 failed with error -5
usbserial_generic 1-1:1.8: Generic device with no bulk out, not allowed.
usbserial_generic: probe of 1-1:1.8 failed with error -5
usbserial_generic 1-1:1.9: Generic device with no bulk out, not allowed.
usbserial_generic: probe of 1-1:1.9 failed with error -5
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core

Grazie e scusate per le assenze prolungate …

anche a te non apre le porte seriali ttyUSB, proviamo a forzare con una regola udev:

# gedit /etc/udev/rules.d/99-ZTE.rules

inserisci:
**
ATTRS{idVendor}==“19d2”,ATTRS{idProduct}==“1015”,RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x1015"
KERNEL==“ttyUSB[0123]”,ACTION==“add”,ATTRS{idVendor}==“19d2”,ATTRS{idProduct}==“1015”,RUN+="/bin/sleep 20"
**

salva chiudi dai un restart alla macchina.
alla ripartenza togli e metti la chiavetta, posta:

$ dmesg|tail
# dmesg | tail -n 30
usbserial_generic: probe of 1-1:1.5 failed with error -5
usbserial_generic 1-1:1.6: Generic device with no bulk out, not allowed.
usbserial_generic: probe of 1-1:1.6 failed with error -5
usbserial_generic 1-1:1.8: Generic device with no bulk out, not allowed.
usbserial_generic: probe of 1-1:1.8 failed with error -5
usbserial_generic 1-1:1.9: Generic device with no bulk out, not allowed.
usbserial_generic: probe of 1-1:1.9 failed with error -5
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
cdc_acm: probe of 1-1:1.1 failed with error -16
cdc_acm: probe of 1-1:1.3 failed with error -16
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, 02:42:9d:ab:10:ea
usbcore: registered new interface driver cdc_ether
scsi 5:0:0:0: CD-ROM            Vodafone USB SCSI CD-ROM  0001 PQ: 0 ANSI: 0
scsi 5:0:0:1: Direct-Access     Vodafone Storage          0001 PQ: 0 ANSI: 0
sr0: scsi3-mmc drive: 0x/0x caddy
Uniform CD-ROM driver Revision: 3.20
sr 5:0:0:0: Attached scsi CD-ROM sr0
sr 5:0:0:0: Attached scsi generic sg1 type 5
sd 5:0:0:1: Attached scsi generic sg2 type 0
sd 5:0:0:1: [sdb] Attached SCSI removable disk
sr0: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00
sr: Sense Key : Hardware Error [current] 
sr: Add. Sense: No additional sense information
usb0: no IPv6 routers present
Monitor-Mwait will be used to enter C-2 state
Marking TSC unstable due to TSC halts in idle
Switching to clocksource hpet

Con questa regola la situazione mi sembra peggiore:
quando inserisco la chiavetta non mi chiede piu’ il PIN e non compare la possibilita’ di selezionare la connessione mobile da NetworkManager. Invece anche con questa regola compare una connessione wired al dispositivo.

Grazie

molto strano. continua ostinatamente a non aprire le porte ttyUSB.
cancella quel file che abbiamo creato e poi:

# eject /dev/sdb
aspetta qualche secondo poi dai:

# modprobe usbserial vendor=0x19d2 product=0x1015
aspetta 10 secondi poi posta:

[code]

dmesg|tail[/code]

Perche’

# eject /dev/sdb

e non

# eject /dev/sr0

?

Nel secondo caso comunque non lo espelle: ls continua a trovarlo anche dopo eject.

Grazie

perché dice il dmesg:

anche usando /dev/sdb l’eject non funziona, nel senso che rimane nell’elenco.

nessuna variazione sul dmesg ?

immagino di no.
scaricati questo:
http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20101202.tar.bz2

scompattalo ed installalo con un :

# make install

No nessuna novita’ adesso provo con il file del link.
Pero’quello che mi inquieta e’ che dopo l’eject il dispositivo continua a rimanere in elenco.
Altra cosa c’é un dispositivo CD che compare da interfaccia grafica del file manager. Posso fare eject con quello sempre da interfaccia grafica, scompare ma lélecon in /dev/sdb o /dev/sr0 non e’ modificato.

non ti inquetare.
non sono mai riuscito a fare l’eject di un cdrom…
:slight_smile:

vai col link.

Sempre uguale :frowning:

Ho fatto eject /dev/sdb poi il modprobe come da messaggio precedente, ma il dmesg e’sempre uguale.

Facendo eject, sdb rimane in elenco e la stessa cosa capita con sr0.

:wall: