output di:
# lsusb
con la chiavetta inserita.
output di:
# lsusb
con la chiavetta inserita.
[root@pedro ~]# tail -f /var/log/messages
Sep 9 14:40:32 pedro kernel: usb 1-1: new high speed USB device using ehci_hcd and address 3
Sep 9 14:40:33 pedro kernel: usb 1-1: New USB device found, idVendor=19d2, idProduct=2000
Sep 9 14:40:33 pedro kernel: usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Sep 9 14:40:33 pedro kernel: usb 1-1: Product: ONDA CDMA Technologies MSM
Sep 9 14:40:33 pedro kernel: usb 1-1: Manufacturer: ONDA,Incorporated
Sep 9 14:40:33 pedro kernel: usb 1-1: SerialNumber: 1234567890ABCDEF
Sep 9 14:40:33 pedro kernel: usb 1-1: configuration #1 chosen from 1 choice
Sep 9 14:40:33 pedro kernel: Initializing USB Mass Storage driver…
Sep 9 14:40:33 pedro kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Sep 9 14:40:33 pedro kernel: usbcore: registered new interface driver usb-storage
Sep 9 14:40:33 pedro kernel: USB Mass Storage support registered.
Sep 9 14:40:33 pedro kernel: usbcore: registered new interface driver usbserial
Sep 9 14:40:33 pedro kernel: USB Serial support registered for generic
Sep 9 14:40:33 pedro kernel: usbcore: registered new interface driver usbserial_generic
Sep 9 14:40:33 pedro kernel: usbserial: USB Serial Driver core
Sep 9 14:40:33 pedro kernel: USB Serial support registered for GSM modem (1-port)
Sep 9 14:40:33 pedro kernel: usbcore: registered new interface driver option
Sep 9 14:40:33 pedro kernel: option: v0.7.2:USB Driver for GSM modems
Sep 9 14:40:38 pedro kernel: scsi 4:0:0:0: CD-ROM ONDA USB SCSI CD-ROM USB PQ: 0 ANSI: 2
Sep 9 14:40:38 pedro kernel: sr1: scsi-1 drive
Sep 9 14:40:38 pedro kernel: sr 4:0:0:0: Attached scsi generic sg2 type 5
…
[root@pedro ~]# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 19d2:2000 ONDA Communication S.p.A.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a5c:2145 Broadcom Corp.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@pedro ~]#
[root@pedro ~]# usb_modeswitch -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0002 -d 1
Looking for target devices
No target device found
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found (“usb-storage”)
OK, Driver “usb-storage” successfully detached
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
[root@pedro ~]#
[root@pedro ~]# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 19d2:2000 ONDA Communication S.p.A.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a5c:2145 Broadcom Corp.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@pedro ~]#
Come si nota la chiavetta rimane attaccata al product 2000.
Unica cosa che ho notato è che in effetti non vedo più la chiavetta tra i device montati.
Facendo alcune prove con il software onda il product dovrebbe essere 0x0037 per questa chiavetta ma anche se uso questo ottengo lo stesso riusltato
Grazie mille per la collaborazione
sei sicuro di aver eseguito correttamente la procedura indicata ?
altri utenti hanno lo stesso hardware e non hanno avuto problemi.
Sicurissimo … sigh
ho riprovato più e più volte per esserne certo
ovviamente la “chiavichetta” funziona bene dato che l’ho provata su un pc con win$
arieccomi qui
allora … ho installato fedora 10 su un portatile e installato il software in dotazione della chiavichetta e funziona tutto bene.
Problema … vorrei evitare di stare con F10 dato che:
sul portatile di lavoro ho F11 e sto facendo delle prove li
ho provato mille e più volte con usb_modeswitch e options ma la chiavichetta rimane appesa sempre al product 0x2000.
allora ho deciso di provare a compilare il driver su F11.
Premetto che su F10 compila correttamente mentre su F11 mi da questo errore:
make -C /lib/modules/2.6.30.9-96.fc11.i686.PAE/build M=/home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810 modules
make[1]: Entering directory /usr/src/kernels/2.6.30.9-96.fc11.i686.PAE' CC [M] /home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810/onda.o /home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810/onda.c:211: error: unknown field ‘shutdown’ specified in initializer /home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810/onda.c:211: warning: initialization from incompatible pointer type /home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810/onda.c: In function ‘onda_init’: /home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810/onda.c:255: error: implicit declaration of function ‘info’ make[2]: *** [/home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810/onda.o] Error 1 make[1]: *** [_module_/home/ranzo/tmp/ODTIM_Linux_UI/Alice_MOBILE/driver810] Error 2 make[1]: Leaving directory
/usr/src/kernels/2.6.30.9-96.fc11.i686.PAE’
make: *** [modules] Error 2
consigli ?
io la chiavetta onda la uso senza driver suo ( uso proprio quello del kernel) e funziona bene. C’è un piccolo programma per windows che setta la chiavetta a modem invece che a memoria di massa, prova quella via.
Ciao.
hem… il “problema” è che non ho più widows
l’ultima installazione sopravvissuta che avevo l’ho brasata con F10 per fare i test in oggetto
tanto il SP3 aveva reso inutilizzabile il sistema e non potevo reinstallare fino al SP2 dato che con il SP2 non mi funziona la chiave … ma questo a noi non ci interessa
sono ad una svolta
ho messo questi parametri in /etc/usb_modswitch.conf
[code]
DefaultVendor= 0x19d2
DefaultProduct= 0x2000
TargetVendor= 0x19d2
TargetProduct= 0x0053
MessageEndpoint=0x01
MessageContent=“55534243123456782000000080000c85010101180101010101000000000000”[/code]
e nonostante il target sia specificato in 53 la chiavetta si aggancia al product 37
# lsusb
Bus 001 Device 003: ID 19d2:0037 ONDA Communication S.p.A.
quindi deduco che siano i parametri
MessageEndpoint
MessageContent
a pilotare lo switch piuttosto che i TargetVendor e Targetproduct
quindi basterebbe “indovinare” questi maledetti valori
NOTA:
la chiavetta ha una memoria interna dove risiede il software di installazione ed una memoria microsd
quindi
product=2000 - memoria interna
product=0037 - micro sd
product=0053 - UMTS
Ciao Ranzo
…non so se basta questo , comunque , prova a dare :
# lsusb -s 001:003 -vv
E guarda se riesci a trovare quei dati
Edit:
Ovviamente ho inserito 001:003 in lsusb , riferendomi al tuo post precedente:
Ciao geno …
normale che devo aggiungere un 2 al device ?
mi spiego
[root@ranzo noarch]# 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 006 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 014: ID 19d2:0037 ONDA Communication S.p.A.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@ranzo noarch]# lsusb -s 001:014 -vv
[root@ranzo noarch]#
mentre
[code][root@ranzo noarch]# lsusb -s 001:016 -vv
Bus 001 Device 014: ID 19d2:0037 ONDA Communication S.p.A.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x19d2 ONDA Communication S.p.A.
idProduct 0x0037
bcdDevice 0.00
iManufacturer 3 ONDA,Incorporated
iProduct 2 ONDA CDMA Technologies MSM
iSerial 4 1234567890ABCDEF
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 138
bNumInterfaces 5
bConfigurationValue 1
iConfiguration 1 ZTE Configuration
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 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 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
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 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 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
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 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 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 3
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 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 0x04 EP 4 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 4
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
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 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 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
[root@ranzo noarch]#[/code]
cmq non vedo nulla che mi possa servire
non credo, non mi è mai capitato
se dai :
# lsusb
e subito dopo :
# cat /proc/bus/usb/devices
il numero del device risulta essere diverso da quello ottenuto con lsusb ?
No il device è lo stesso ma se non aggiungo il 2 non listo nulla … mah
comunque tra una prova e l’altra sono riuscito a compilare il modulo onda.c e a far partire, su F11, il programma della tim
se funziona posto i dettagli
se poi qualcuno vuole aiutarmi a limare le modifche … io sto qua
Btw: geno ovviamente grazie
se gli spari un:
# modprobe usbserial vendor=0x19d2 product=0x0037
il :
$ dmesg|tail
che dice ?
non dice nulla
[quote]
il :
$ dmesg|tail
che dice ?[/quote]
non logga nulla
il fatto è che adesso ho copilato il modulo onda e se faccio un usb_modeswitch riesce a commutare e crea i device ttyUSB0 … ttyUSB3
(invece prima, senza modulo onda, non crea i device)
tant’è che adesso dopo lo switch
[root@ranzo ~]# lsmod | grep onda
onda 13516 0
usbserial 27556 2 onda,option
[root@ranzo ~]#
quindi credo, ma non ci giurerei, che il modulo onda serva per forza.
Una volta caricato dovrei riuscire ad usare wvdial o kppp tanto il programma della tim usa di fatto wvdial
se ti crea i device ttyUSB il più è fatto.
[quote=virus]
se ti crea i device ttyUSB il più è fatto.[/quote]
beh non la vedrei così scontata
la mia situazione è:
1 - creo i device ttyUSB SOLO se carico il modulo onda
2 - il file onda.c l’ho modificato col metodo della clava
ciò che adesso mi preoccupa sono i danni che ho fatto in onda.c
se hai modificato il file onda in maniera non ortodossa il problema potrebbe esserci.
a proposito sui kernel attuali il modulo non si chiama più “onda” bensi “option”
[quote=virus]
a proposito sui kernel attuali il modulo non si chiama più “onda” bensi “option”[/quote]
:-o e io dove ho vissuto fino ad ora ??
Scusate, starò pure invecchiando
ma dove cavolo sta il file option.c ?
package ?
…scusate, errore…