Automatic Activation, Hotplug and UDEV, Configuration
lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

HELP: Still can't get ec169 work via usb_modeswitch .

Post by lili87 » 29 Oct 2010, 16:11

 I am sorry to say that i am a newbie to Linux.javascript:emoticon(':cry:').
My HUAWEI EC169 works quite well on Linux with the help of Mobile Partner. Info says that most 3G cards can work well with the help of usb_modeswitch and wvdial. But when i try to use EC169 this way ,i got problems .I tried many solutions ,still can’t do. Anybody help? Many ,many thanks!

My environment is :
Kernel: 2.6.24-19-generic Ubuntu 8.04
Usb_modeswitch: usb-modeswitch-1.1.4 usb-modeswitch-data-20100826
When i first plug in ,it runs as a CD-ROM,and pop up a auto-run dialog,i shut it ,and run follows.



lee1@lee1-desktop:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 002: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000

It seems that EC169 has only one address, 12d1:1001.
then i check the info in the log messages:


Oct 29 09:40:42 lee1-desktop kernel: [ 4261.011259] usb 1-1: new full speed USB device using uhci_hcd and address 5
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.573638] usb 1-1: configuration #1 chosen from 1 choice
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.626068] option 1-1:1.0: GSM modem (1-port) converter detected
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.626272] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.720286] usbcore: registered new interface driver libusual
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.727035] Initializing USB Mass Storage driver...
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.727100] usbcore: registered new interface driver usb-storage
Oct 29 09:40:43 lee1-desktop kernel: [ 4261.727103] USB Mass Storage support registered.
Oct 29 09:40:54 lee1-desktop kernel: [ 4282.139883] usb 1-1: USB disconnect, address 5
Oct 29 09:40:54 lee1-desktop kernel: [ 4282.263714] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Oct 29 09:40:54 lee1-desktop kernel: [ 4282.263728] option 1-1:1.0: device disconnected
Oct 29 09:41:04 lee1-desktop kernel: [ 4291.707779] usb 1-1: new full speed USB device using uhci_hcd and address 6
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.458634] usb 1-1: configuration #1 chosen from 1 choice
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.628065] option 1-1:1.0: GSM modem (1-port) converter detected
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.628169] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.634117] option 1-1:1.1: GSM modem (1-port) converter detected
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.634229] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.641952] option 1-1:1.2: GSM modem (1-port) converter detected
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.642081] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.651243] option 1-1:1.3: GSM modem (1-port) converter detected
Oct 29 09:41:05 lee1-desktop kernel: [ 4292.651372] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3

It seems that sth like ttyUSB* has already come into being, Then i tried this:

lee1@lee1-desktop:~$ dmesg | grep -e "modem" -e "tty"
[ 6.678459] console [tty0] enabled
[ 8.423191] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.423743] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 8.424558] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.425176] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 56.267489] audit(1288018969.154:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5461 profile="/usr/sbin/cupsd" namespace="default"
[ 424.369470] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 424.369710] option 1-1:1.0: GSM modem (1-port) converter detected
[ 424.370021] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 424.370156] option 1-1:1.1: GSM modem (1-port) converter detected
[ 424.370318] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 424.370442] option 1-1:1.2: GSM modem (1-port) converter detected
[ 424.370607] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 424.370739] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
[ 656.470024] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 656.470399] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 656.596217] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 660.244778] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial deregistering driver GSM modem (1-port)
[ 660.269181] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 660.269490] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
[ 670.397873] option 1-1:1.0: GSM modem (1-port) converter detected
[ 670.397980] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 670.405878] option 1-1:1.1: GSM modem (1-port) converter detected
[ 670.405987] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 670.418661] option 1-1:1.2: GSM modem (1-port) converter detected
[ 670.418774] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

Also ,It seems that there are already info of related ttyUSB*. but when i check in the /dev .

root@lee1-desktop:~# ls /dev/ttyU*
/dev/ttyUSB3 /dev/ttyUSB_utps_modem
/dev/ttyUSB_utps_diag /dev/ttyUSB_utps_pcui

This time there is a ttyUSB3. I remember last time it is a ttyUSB0 and sometime there is just none except the other three. That's so odd!
The other three are the automatically products of  HUAWEI  Mobile Partner,cause it runs automatically when it detects ec 169. Then I test whether ttyUSB3 is a modem like this:


root@lee1-desktop:~# wvdialconf /etc/wvdialconf
Editing `/etc/wvdialconf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB_utps_diag<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB_utps_diag<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB_utps_diag<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 -- OK
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB_utps_modem<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB_utps_modem<*1>: Speed 9600: AT -- OK
ttyUSB_utps_modem<*1>: Max speed is 9600; that should be safe.
ttyUSB_utps_modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 -- OK
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB_utps_pcui<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB_utps_pcui<*1>: Speed 9600: AT -- OK
ttyUSB_utps_pcui<*1>: Max speed is 9600; that should be safe.
ttyUSB_utps_pcui<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB_utps_modem.
Modem configuration written to /etc/wvdialconf.
ttyUSB_utps_modem<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB_utps_pcui<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Obiviously it was not, Only the product of MP was seen as a modem.
Then I try usb_modeswitch.. I write the file usb_modeswitch.conf.
I tried HuaweiMode and later DetachStorageOnly,both has the same result.


# Huawei E169
# Contributor: Dale Lane
DefaultVendor= 0x12d1
DefaultProduct=0x1001
TargetClass=0xff
CheckSuccess=20
DetachStorageOnly=1
#HuaweiMode=1
EnableLogging=1

and run follows :

root@lee1-desktop:~# usb_modeswitch -W
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= not set
DefaultProduct= not set
TargetVendor= not set
TargetProduct= not set
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
No default vendor/product ID given. Aborting.

I am confused , why it doesn't read the config file,cause i see others running the command and the first output is:Reading config file:*****(filename).Then i tried this :

root@lee1-desktop:~# usb_modeswitch -W -c /etc/usb_modeswitch.conf
Reading config file: /etc/usb_modeswitch.conf
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""

DetachStorageOnly=1
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check enabled, max. wait time 20 seconds
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
target class ff matching
adding device
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
Found devices in target mode or class (1)
Looking for default devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
target class ff matching
not adding device as default
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in default mode or class found. Nothing to do. Bye.

Still can't do ,though it got the configurations, my PC is UBUNTU 8.04 under a VMare.Caould anybody help?
Another strange thing is that I turn on logging in /etc/usb_modeswitch.conf; plug again and after a while have a look in /var/log. There is no file named "usb_modeswitch_<something>.log".
Info from google says that it maybe due to the lack of tcl, so I test as follows:


root@lee1-desktop:~# tclsh
%
It seems I have already got tcl. And I found that there are two in /usr/bin: tcl and tcl8.4, I wonder if they would conflict which may causes they don’t work well.
Also info can be seen from the next code ? I just put them here.


root@lee1-desktop:~# lsmod
Module Size Used by
ppp_async 13312 0
crc_ccitt 3072 1 ppp_async
ppp_generic 29588 1 ppp_async
slhc 7040 1 ppp_generic
usb_storage 73664 0
libusual 19108 1 usb_storage
option 11520 0
usbserial 35816 1 option
ipv6 267780 8
af_packet 23812 2
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
vmblock 17956 3
vsock 42656 0
vmmemctl 12988 0
acpiphp 26128 0
cpufreq_ondemand 9740 0
cpufreq_powersave 2688 0
cpufreq_userspace 5284 0
cpufreq_stats 7104 0
freq_table 5536 2 cpufreq_ondemand,cpufreq_stats
cpufreq_conservative 8712 0
video 19856 0
output 4736 1 video
dock 11280 1 acpiphp
sbs 15112 0
sbshc 7680 1 sbs
battery 14212 0
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
vmhgfs 45312 1
lp 12324 0
evdev 13056 3
parport_pc 36260 1
parport 37832 3 ppdev,lp,parport_pc
serio_raw 7940 0
psmouse 40336 0
pcspkr 4224 0
snd_ens1371 27168 3
gameport 16008 1 snd_ens1371
snd_ac97_codec 101028 1 snd_ens1371
ac97_bus 3072 1 snd_ac97_codec
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
snd_pcm 78596 3 snd_ens1371,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy 4868 0
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 2 snd_ens1371,snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_mid i_event
snd_timer 24836 2 snd_pcm,snd_seq
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi ,snd_seq
snd 56996 17 snd_ens1371,snd_ac97_codec,snd_pcm_oss,snd_mixer_o ss,snd_pcm,snd_seq_dummy,snd_seq_oss,snd_rawmidi,s nd_seq,snd_timer,snd_seq_device
soundcore 8800 1 snd
snd_page_alloc 11400 1 snd_pcm
container 5632 0
ac 6916 0
i2c_piix4 9612 0
button 9232 0
vmci 33828 1 vsock
i2c_core 24832 1 i2c_piix4
shpchp 34452 0
intel_agp 25492 1
pci_hotplug 30880 2 acpiphp,shpchp
agpgart 34760 1 intel_agp
ext3 136712 1
jbd 48404 1 ext3
mbcache 9600 1 ext3
sd_mod 30720 3
sg 36880 0
sr_mod 17956 0
cdrom 37408 1 sr_mod
floppy 59588 0
pcnet32 34820 0
ehci_hcd 37900 0
uhci_hcd 27024 0
mii 6400 1 pcnet32
usbcore 146028 7 usb_storage,libusual,option,usbserial,ehci_hcd,uhc i_hcd
mptspi 22280 2
mptscsih 37376 1 mptspi
mptbase 78308 2 mptspi,mptscsih
scsi_transport_spi 25472 1 mptspi
ata_piix 19588 0
pata_acpi 8320 0
ata_generic 8324 0
libata 159344 3 ata_piix,pata_acpi,ata_generic
scsi_mod 151436 8 usb_storage,sd_mod,sg,sr_mod,mptspi,mptscsih,scsi_ transport_spi,libata
thermal 16796 0
processor 36872 1 thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50708 3
vmxnet 19972 0



root@lee1-desktop:~# lsusb -v

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.24-19-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:02:03.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled

Bus 001 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1001 E620 USB Modem
bcdDevice 0.00
iManufacturer 1 HUA�WEI TECHNOLOGIES
iProduct 2 HUAWEI Mobile
iSerial 4 �������������������
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 108
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 128
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
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 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)

Bus 001 Device 002: ID 0e0f:0002
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 8
idVendor 0x0e0f
idProduct 0x0002
bcdDevice 1.00
iManufacturer 0
iProduct 1 VMware Virtual USB Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 1 VMware Virtual USB Hub
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 1 VMware Virtual USB Hub
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 7
wHubCharacteristic 0x0009
Per-port power switching
Per-port overcurrent protection
bPwrOn2PwrGood 50 * 2 milli seconds
bHubContrCurrent 100 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xfe
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Port 7: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.24-19-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:02:00.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0103 power enable connect
Port 2: 0000.0103 power enable connect
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled

When it was unpluged,the info in the /var/log/messages is follows:

Oct 29 11:27:44 lee1-desktop kernel: [10677.136699] usb 1-1: USB disconnect, address 6
Oct 29 11:27:44 lee1-desktop kernel: [10677.139687] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Oct 29 11:27:44 lee1-desktop kernel: [10677.139708] option 1-1:1.0: device disconnected
Oct 29 11:27:44 lee1-desktop kernel: [10677.139975] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Oct 29 11:27:44 lee1-desktop kernel: [10677.139992] option 1-1:1.1: device disconnected
Oct 29 11:27:44 lee1-desktop kernel: [10677.140229] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Oct 29 11:27:44 lee1-desktop kernel: [10677.140243] option 1-1:1.2: device disconnected
Oct 29 11:27:44 lee1-desktop kernel: [10677.161445] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Oct 29 11:27:44 lee1-desktop kernel: [10677.161493] option 1-1:1.3: device disconnected
Oct 29 11:27:47 lee1-desktop kernel: [10680.138166] usbcore: deregistering interface driver option
Oct 29 11:27:47 lee1-desktop kernel: [10680.138216] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial deregistering driver GSM modem (1-port)
Oct 29 11:27:47 lee1-desktop kernel: [10680.175899] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
Oct 29 11:27:47 lee1-desktop kernel: [10680.488759] usbcore: registered new interface driver option
Oct 29 11:27:47 lee1-desktop kernel: [10680.488765] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM

root@lee1-desktop:~# modprobe -v -r usbserial
FATAL: Module usbserial is in use.
root@lee1-desktop:~# modprobe -v -r option
rmmod /lib/modules/2.6.24-19-generic/kernel/drivers/usb/serial/option.ko
rmmod /lib/modules/2.6.24-19-generic/kernel/drivers/usb/serial/usbserial.ko
root@lee1-desktop:~# modprobe -v option
insmod /lib/modules/2.6.24-19-generic/kernel/drivers/usb/serial/usbserial.ko
insmod /lib/modules/2.6.24-19-generic/kernel/drivers/usb/serial/option.ko :oops: :oops: :oops: :oops: :oops: :oops: :oops:

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 29 Oct 2010, 21:55

This Huawei Linux package is quite new. It installs all kind of things and I guess they do switching too. So if you have it installed you might be able to uninstall usb_modeswitch completely.

I know there is a udev rule installed which will rename the serial ports upon creation. Even if you don't use the Huawei program for connection, you can use /dev/ttyUSB_utps_modem, which is really ttyUSB0 with a different name.

Don't trust "wvdialconf" too much, run it once and then edit /etc/wvdial.conf according to your access data. There are plenty of examples around how to set it up. You can start with this one:

Code: Select all

Phone = *99***1#
Username = <your_username>
Password = <your_password>
Modem Type = Analog Modem
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB_utps_modem
Baud = 460800
Init1 = ATZ
Init2 = ATE0V1&D2&C1S0=0
Init3 = AT+CGDCONT=1,"IP","<your_access_point>"
ISDN = 0

lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 30 Oct 2010, 07:34

Hi
Josh


Thanks for your reply. I did try wvdial with the /dev/ttyUSB_utps_modem, and it worked.
But the problem is ttyUSB_utps_modem is the production of Mobile Partner. Before the setup of MP, it didn't show up on Linux. I still can't use EC169 through usb_modeswitch.

And later ,i tried to use usb_modeswitch in another vmare without MP. I followd the steps doing switching again, butl no ttyUSB* showed up in /dev. ,which means the switching is still unsuccessful.

I wonder whether ec169 can be switched into a modem with the help of usb_modeswitch. Later i will post the running code of the other vmare without MP. Could you check it for me? Many ,many ,thanks.

Also, is it true for ec169 that a lower version of usb_modeswitch is better for the switching ? easier?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 30 Oct 2010, 08:46

lili87 wrote:I followd the steps doing switching again, butl no ttyUSB* showed up in /dev. ,which means the switching is still unsuccessful.
Which steps do you mean? Usually, just install the usb-modeswitch package and the data package, and everything should work right away if you plug your modem in afterwards.

You have a rather old kernel version running, where the serial driver binding for new and unknown devices will not work as easily as with later kernels.
But for your device this is no problem because it is known to the driver and it will be bound right away.

Please note that if you see the device as "12d1:1001" it is already switched. You don't have to use usb_modeswitch with it. If something is not working right, switch on logging in /etc/usb_modeswitch.conf.

Otherwise, don't edit or use /etc/usb_modeswitch.conf !

Everybody who is telling you to do so is referring to long outdated versions of this program.
lili87 wrote:I wonder whether ec169 can be switched into a modem with the help of usb_modeswitch.
I'm sure it can be.
If you try to make it work without the Huawei software, check if there is a file named "/lib/udev/rules.d/61-modem-modeswitch.rules" or similar. This might interfere with usb_modeswitch and it is not needed, so move it away (e.g. into your home directory).
lili87 wrote:Also, is it true for ec169 that a lower version of usb_modeswitch is better for the switching ? easier?
No. Whoever told you that is wrong. I worked on making the switching fully automatic and it's now easier and mor reliable than ever before.


lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 30 Oct 2010, 11:44

Thanks very much for your reply. My kernel version is old indeed. At first ,I did think ec169 was switched cause When i plugged in, it showed up as "12d1:1001" with the code "lsusb", and also the /var/log/messages says there are ttyUSB*. But they just didn't show up in the /dev,so i suspect that the switching of it was unsuccessful.

"The steps" means the install and use steps in "http://www.draisberghof.de/usb_modeswitch/"
I am not sure whether i followed the steps correctly. Tomorrow i'll try again as follows:

1. On the vmare without MP
Remove usb_modeswitch completely and install again following the correct steps. and try ec 169 ,see whether it can work.

2.On the vmare with MP
Move the /lib/udev/rules.d/61-modem-modeswitch.rule or similar anywhere else to see whether
ec 169 can work.

"Also, is it true for ec169 that a lower version of usb_modeswitch is better for the switching ? easier?"
I am sorry to say that i got this view just because i am told others use ec169 well via early version of usb_modeswitch. I can't wait to see the results tomorrow. Thanks again.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 30 Oct 2010, 21:42

Actually, your step 2. is meant for the system without MP also.
This "61-modem-modeswitch.rule" may be part of the Ubuntu system. If you find it (on either system, MP or not MP) just move it away. It is just a nuisance.

lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 31 Oct 2010, 08:58

Josh wrote:Actually, your step 2. is meant for the system without MP also.
This "61-modem-modeswitch.rule" may be part of the Ubuntu system. If you find it (on either system, MP or not MP) just move it away. It is just a nuisance.

Thanks a lot for your reply. I found there are no other rules except 40-usb-modeswitch.rule (it was gone when i uninstall the usb_modeswitch) under /lib/udev/rules.d/ .
And a "61-persistent-storage-edd.rules" was found in /etc/udev/rules.d,there are some other rules too.

Oh , another problem of my language understanding of the the texts in "http://www.draisberghof.de/usb_modeswitch/":
Since my system is Ubuntu 8.04, besides the three packages (usb-modeswitch-1.1.4.tar.bz2; usb-modeswitch-data; device_reference.txt ), should i download sth else from "http://packages.debian.org/search?keywo ... modeswitch" (Debian Repository.)

I saw that there are no makefiles in the software "usb-modeswitch_1.1.4-1_amd64" or" usb-modeswitch_1.1.4-1_ia64" downloaded from "Debian Repository" and i just thought that ithey has little to do with the installation. So i didn't use anything from "http://packages.debian.org/search?keywo ... modeswitch".(Debian Repository)

The steps taken before are on the base of just downloading all the other three packages(usb-modeswitch-1.1.4.tar.bz2; usb-modeswitch-data; device_reference.tx) from "http://www.draisberghof.de/usb_modeswit ... .4.tar.bz2" and "http://www.draisberghof.de/usb_modeswit ... 26.tar.bz2" and "http://www.draisberghof.de/usb_modeswit ... nce.txt.gz".
Nothing was downloaded from the "Debian Repository".

I am wondering whether i had downloaded the wrong version of usb_modewitch not fit for the Ubuntu system, which was indeed a original, fatal, and huge mistake .

Also ,i am confused when i uninstall the usb_modeswitch completely and plug in ec169 ,the info in the /var/log/messages
still says that there are ttyUSB*, code are post following:


Oct 31 14:16:24 lee1-desktop kernel: [37325.622023] usb 1-1: new full speed USB device using uhci_hcd and address 14
Oct 31 14:16:24 lee1-desktop kernel: [37326.111250] usb 1-1: configuration #1 chosen from 1 choice
Oct 31 14:16:24 lee1-desktop kernel: [37326.172060] scsi13 : SCSI emulation for USB Mass Storage devices
Oct 31 14:16:29 lee1-desktop kernel: [37331.213645] scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Oct 31 14:16:29 lee1-desktop kernel: [37331.286318] sr1: scsi-1 drive
Oct 31 14:16:29 lee1-desktop kernel: [37331.286501] sr 13:0:0:0: Attached scsi generic sg2 type 5
Oct 31 14:16:35 lee1-desktop kernel: [37336.516610] usb 1-1: reset full speed USB device using uhci_hcd and address 14
Oct 31 14:16:35 lee1-desktop kernel: [37336.696494] usb 1-1: USB disconnect, address 14
Oct 31 14:17:50 lee1-desktop kernel: [37463.531745] usb 1-1: new full speed USB device using uhci_hcd and address 15
Oct 31 14:17:51 lee1-desktop kernel: [37464.155483] usb 1-1: configuration #1 chosen from 1 choice
Oct 31 14:17:51 lee1-desktop kernel: [37464.323930] usbserial_generic 1-1:1.0: GSM modem (1-port) converter detected
Oct 31 14:17:51 lee1-desktop kernel: [37464.324261] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 31 14:17:51 lee1-desktop kernel: [37464.331604] usbserial_generic 1-1:1.1: GSM modem (1-port) converter detected
Oct 31 14:17:51 lee1-desktop kernel: [37464.331725] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct 31 14:17:51 lee1-desktop kernel: [37464.338637] usbserial_generic 1-1:1.2: GSM modem (1-port) converter detected
Oct 31 14:17:51 lee1-desktop kernel: [37464.338841] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct 31 14:17:51 lee1-desktop kernel: [37464.388701] scsi14 : SCSI emulation for USB Mass Storage devices
Oct 31 14:17:56 lee1-desktop kernel: [37469.539920] scsi 14:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Oct 31 14:17:56 lee1-desktop kernel: [37469.550889] scsi 14:0:0:1: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Oct 31 14:17:57 lee1-desktop kernel: [37469.677832] sr2: scsi-1 drive
Oct 31 14:17:57 lee1-desktop kernel: [37469.678008] sr 14:0:0:0: Attached scsi generic sg2 type 5
Oct 31 14:17:57 lee1-desktop kernel: [37469.698314] sd 14:0:0:1: [sdb] Attached SCSI removable disk
Oct 31 14:17:57 lee1-desktop kernel: [37469.698363] sd 14:0:0:1: Attached scsi generic sg3 type 0

lee1@lee1-desktop:~/deskstop/usb-modeswitch/debian$ dmesg | grep ttyUSB*
[37464.324261] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[37464.331725] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[37464.338841] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
lee1@lee1-desktop:~/deskstop/usb-modeswitch/debian$ dmesg | grep modem
[37464.323930] usbserial_generic 1-1:1.0: GSM modem (1-port) converter detected
[37464.324261] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[37464.331604] usbserial_generic 1-1:1.1: GSM modem (1-port) converter detected
[37464.331725] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[37464.338637] usbserial_generic 1-1:1.2: GSM modem (1-port) converter detected
[37464.338841] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

Is it due to the reason that it has been switched before and the kernel just recognize it as a modem or that the HUAWEI MP did the work? Hope also the code bellow has sth to do with the ttyUSB* showed up without usb_modeswitch.

root@lee1-desktop:~/deskstop/usb-modeswitch/debian# lsmod | grep usb_storage
usb_storage 73664 1
libusual 19108 1 usb_storage
usbcore 146028 7 option,usbserial,usb_storage,libusual,ehci_hcd,uhci_hcd
scsi_mod 151436 8 usb_storage,sd_mod,sg,sr_mod,mptspi,mptscsih,scsi_transport_spi,libata
root@lee1-desktop:~/deskstop/usb-modeswitch/debian# lsmod | grep usbserial
usbserial 35816 1 option
usbcore 146028 7 option,usbserial,usb_storage,libusual,ehci_hcd,uhci_hcd

root@lee1-desktop:~/deskstop/usb-modeswitch/debian# modprobe -r -v usb-storage
FATAL: Module usb_storage is in use.
root@lee1-desktop:~/deskstop/usb-modeswitch/debian# modprobe -r -v usbserial
FATAL: Module usbserial is in use.
root@lee1-desktop:~/deskstop/usb-modeswitch/debian# ls /dev/ttyU*
/dev/ttyUSB_utps_diag /dev/ttyUSB_utps_modem /dev/ttyUSB_utps_pcui

lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 31 Oct 2010, 11:20

Stange enough ! I didn't uninstall and reinstall the usb_modeswitch in the ubuntu without huawei MP.but When i just plug in ec 169, then there the modem just appears! :P I didn't change anything! Does that means that the installation before was correct? But the same steps were taken in Ubuntu with huawei MP, and no positive results showed up.
The code are bellow:


root@lee-desktop:~/桌面/usb-modeswitch# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 010: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 002: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000
root@lee-desktop:~/桌面/usb-modeswitch# ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
root@lee-desktop:~/桌面/usb-modeswitch# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

And the “lsmod” results are follows ,it seems that nothing differ from the code result in the ubuntu with huawei MP.

root@lee-desktop:~# lsmod | grep usb_storage
usb_storage 73664 1
libusual 19108 1 usb_storage
usbcore 146028 7 usb_storage,libusual,option,usbserial,ehci_hcd,uhci_hcd
scsi_mod 151436 8 usb_storage,sd_mod,sg,sr_mod,mptspi,mptscsih,scsi_transport_spi,libata
root@lee-desktop:~# lsmod | grep usbserial
usbserial 35816 3 option
usbcore 146028 7 usb_storage,libusual,option,usbserial,ehci_hcd,uhci_hcd


ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 31 Oct 2010, 11:51

Josh wrote:Actually, your step 2. is meant for the system without MP also.
This "61-modem-modeswitch.rule" may be part of the Ubuntu system. If you find it (on either system, MP or not MP) just move it away. It is just a nuisance.
But in the ubuntu with MP, i uninstall and reinstall the usb_modeswitch, reboot and plug in ec169. still no ttyUSB* appears in /dev besides the production of huawei MP. The code can be seen below.

root@lee1-desktop:~# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 003: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000
root@lee1-desktop:~# ls /dev/ttyU*
/dev/ttyUSB_utps_diag /dev/ttyUSB_utps_modem /dev/ttyUSB_utps_pcui

Does it means that ec 169 has been switched by usb_modeswitch, but with MP the ttyUSB* has been renamed or just cleaned (since there are no ttyUSB1/2/3 too)?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 31 Oct 2010, 15:04

Since I don't know what exactly the MP package is changing on the system, I can't say for sure what makes the device switch. I suppose there is a different switching program installed.

What I know is that the mode they (Huawei) would be switching to is slightly different from what usb_modeswitch does at the moment. But this does not change the fact that the first port can be used as a normal modem port.

And I know for sure that they are just renaming the serial ports. As I said, ttyUSB_utps_modem is identical to ttyUSB0, and I'm sure the other "utps" names are ttyUSB1 and 2.

You should be able to follow what they are doing if you look into the folders /etc/udev/rules.d and /libudev/rules.d. You will find a find a file "10-datacard.rules" or similar. This is what MP is installing and there the renaming will happen.

If you want to get rid of the MP components, look for something like an "uninstall" function for the package.

BTW, if you have the opportunity to send me a copy of the software coming with the modem I'd appreciate that - I would really like to analyze that package.


lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 31 Oct 2010, 17:21

Since I don't know what exactly the MP package is changing on the system, I can't say for sure what makes the device switch. I suppose there is a different switching program installed.
I am not sure whether there is a different switching program installed before, but i did intall only usb_modeswitch and MP. And the ttyUSB* just can be seen from /var/log/messages when i unintalll usb_modeswitch. I suppose it was due the work of MP.
You should be able to follow what they are doing if you look into the folders /etc/udev/rules.d and /libudev/rules.d. You will find a find a file "10-datacard.rules" or similar. This is what MP is installing and there the renaming will happen.
Yes, I found a "10-huawei-datacard.rules" there and i check the install package of MP, there is one too. And then i unintall the MP completely,(usb_modeswitch is still there ) ,plug in ec 169 and see that there are ttyUSB0/1/2 in /dev!!!! And ec169 works. Obviously that MP interfere with the work of usb_modeswitch.

BTW, if you have the opportunity to send me a copy of the software coming with the modem I'd appreciate that - I would really like to analyze that package.
OK, i will send it to you later ,should the mailbox "usb_admin at draisberghof de" be good for receiving? The huawei software MP fits a serial huawei cards for different systems. I got the install package but no code source files.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 31 Oct 2010, 21:20

lili87 wrote: Yes, I found a "10-huawei-datacard.rules" there and i check the install package of MP, there is one too. And then i unintall the MP completely,(usb_modeswitch is still there ) ,plug in ec 169 and see that there are ttyUSB0/1/2 in /dev!!!! And ec169 works. Obviously that MP interfere with the work of usb_modeswitch.
That's what I suspected.
lili87 wrote:should the mailbox "usb_admin at draisberghof de" be good for receiving? The huawei software MP fits a serial huawei cards for different systems. I got the install package but no code source files.
The install package is fine, and the address is good.

Thanks in advance!


lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 01 Nov 2010, 03:57

Strange things happened! the next day i opened my PC, plug in EC169 ,the PC doesn't recognize it !!!!

But yesterday i did nothing except for the uninstallation of huawei MP and eEC169 just work when plugged in. Is it because the switching is unstable? when i use "lsusb", the address of EC169 turns to 12d1:1446!!! So weird!!
It went back!!!! AND i really don,t know why, So i try switching again following the steps. (The usb_modeswitch and data package were already there) .But there is no success. :( Could you check the code bellow for me ? I can't thank you too much!!


root@lee1-desktop:~# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 008: ID 12d1:1446 Huawei Technologies Co., Ltd.
Bus 001 Device 003: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000

rlee1@lee1-desktop:~$ dmesg | grep -e "modem" -e "tty"
[ 6.534195] console [tty0] enabled
[ 8.261932] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.262486] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 8.263292] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.263908] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 50.775698] audit(1288606326.188:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5453 profile="/usr/sbin/cupsd" namespace="default"


There should be ttyUSB* in the /dev when i just plug in ec169 cause yesterday it was so ,but situation seems different today!! So i switch it mannually, but still no ttyUSB* showed up in /dev.


root@lee1-desktop:~# usb_modeswitch -W -c /etc/usb_modeswitch.setup~
Reading config file: /etc/usb_modeswitch.setup~
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 008 on 001
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in default mode or class found. Nothing to do. Bye.

I edit the usb_modeswitch.setup and change the "1001" to "1446",run the code again :


root@lee1-desktop:~/deskstop/usb# usb_modeswitch -W -c /etc/usb_modeswitch.setup~
Reading config file: /etc/usb_modeswitch.setup~
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1446
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1446
found matching vendor ID
found matching product ID
target class ff not matching
adding device as default
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
Found devices in default mode or class (1)
Accessing device 005 on bus 001 ...
Using endpoints 0x08 (out) and 0x87 (in)
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached



I suspect that sth has blocked the switching of ec 169 and there are no ttyUSB* generates since that after reboot the system just can't recognize ec169.
These are the info from /var/log/messages.when plugged in. /color]

Nov 1 10:15:29 lee1-desktop kernel: [ 252.251804] usb 1-1: new full speed USB device using uhci_hcd and address 3
Nov 1 10:15:30 lee1-desktop kernel: [ 252.909621] usb 1-1: configuration #1 chosen from 1 choice
Nov 1 10:15:30 lee1-desktop kernel: [ 253.075293] usbcore: registered new interface driver libusual
Nov 1 10:15:30 lee1-desktop kernel: [ 253.123494] Initializing USB Mass Storage driver...
Nov 1 10:15:30 lee1-desktop kernel: [ 253.149706] scsi3 : SCSI emulation for USB Mass Storage devices
Nov 1 10:15:30 lee1-desktop kernel: [ 253.152519] usbcore: registered new interface driver usb-storage
Nov 1 10:15:30 lee1-desktop kernel: [ 253.152525] USB Mass Storage support registered.
Nov 1 10:15:38 lee1-desktop kernel: [ 261.111563] scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Nov 1 10:15:38 lee1-desktop kernel: [ 261.231154] sr1: scsi-1 drive
Nov 1 10:15:38 lee1-desktop kernel: [ 261.231235] sr 3:0:0:0: Attached scsi generic sg2 type 5
Nov 1 10:15:40 lee1-desktop kernel: [ 262.746734] UDF-fs: No VRS found
Nov 1 10:20:43 lee1-desktop kernel: [ 565.240306] usb 1-1: USB disconnect, address 3
Nov 1 10:21:10 lee1-desktop kernel: [ 592.103923] usb 1-1: new full speed USB device using uhci_hcd and address 4
Nov 1 10:21:11 lee1-desktop kernel: [ 592.632198] usb 1-1: configuration #1 chosen from 1 choice
Nov 1 10:21:11 lee1-desktop kernel: [ 592.681876] scsi4 : SCSI emulation for USB Mass Storage devices
Nov 1 10:21:16 lee1-desktop kernel: [ 597.775241] scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Nov 1 10:21:16 lee1-desktop kernel: [ 597.908694] sr1: scsi-1 drive
Nov 1 10:21:16 lee1-desktop kernel: [ 597.908806] sr 4:0:0:0: Attached scsi generic sg2 type 5

lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 01 Nov 2010, 05:15

I try another ec 169 since i got two cards of the same type.Still no success but the address this time is "12d1:1001" .A bit different also can be seen in the /var/log/messages.

Nov 1 10:54:47 lee1-desktop kernel: [ 2020.706382] usb 1-1: new full speed USB device using uhci_hcd and address 6
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.252850] usb 1-1: configuration #1 chosen from 1 choice
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.315315] scsi6 : SCSI emulation for USB Mass Storage devices
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.436848] usbcore: registered new interface driver usbserial
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.439197] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.440586] usbcore: registered new interface driver usbserial_generic
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.440593] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.459254] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.459273] usbcore: registered new interface driver option
Nov 1 10:54:47 lee1-desktop kernel: [ 2021.459275] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
Nov 1 10:54:52 lee1-desktop kernel: [ 2026.342332] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Nov 1 10:54:52 lee1-desktop kernel: [ 2026.445976] sr2: scsi-1 drive
Nov 1 10:54:52 lee1-desktop kernel: [ 2026.446093] sr 6:0:0:0: Attached scsi generic sg2 type 5

root@lee1-desktop:~/deskstop/usb# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 002: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000

lee1@lee1-desktop:~$ dmesg | grep -e "modem" -e "tty"
[ 6.534195] console [tty0] enabled
[ 8.261932] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.262486] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 8.263292] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.263908] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 50.775698] audit(1288606326.188:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5453 profile="/usr/sbin/cupsd" namespace="default"
[ 2021.459254] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 2021.459275] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1

Since this time still no modems showed up when plugged in ,i began switch it manually ,The results are a bit different from the first card .(usb_modeswitch.conf is the DetachOnly mode and .setup is the huawei mode)

root@lee1-desktop:~/deskstop/usb# usb_modeswitch -W
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= not set
DefaultProduct= not set
TargetVendor= not set
TargetProduct= not set
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 007 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
No default vendor/product ID given. Aborting.

root@lee1-desktop:~/deskstop/usb# usb_modeswitch -W -c /etc/usb_modeswitch.setup~
Reading config file: /etc/usb_modeswitch.setup~
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
target class ff not matching
adding device as default
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
Found devices in default mode or class (1)
Accessing device 006 on bus 001 ...
Using endpoints 0x08 (out) and 0x87 (in)
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUA�WEI TECHNOLOGIES
Product: HUAWEI Mobile
Serial No.: �������������������
-------------------------
Sending Huawei control message ...
USB error: error sending control message: Invalid or incomplete multibyte or wide character
Error: sending Huawei control message failed (error -84). Aborting. :cry:

root@lee1-desktop:~/deskstop/usb# usb_modeswitch -W -c /etc/usb_modeswitch.conf

Reading config file: /etc/usb_modeswitch.conf
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check enabled, max. wait time 20 seconds
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002

usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001

Looking for target devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 0000:0000
No devices in default mode or class found. Nothing to do. Bye.


Then i check in the /dev,there is no ttyUSB* . (Another time i try those same steps again and ttyUSB0/1/2 showed up but no ttyUSB3. So odd.!! It seems the switching depends on luck!!!) But unfortunately no chance of dialing success through wvdial with ttyUSB0 !!! Has it got sth to do with the weird switching of ec169?
Since ec 169 nwork well in Windows.:


root@lee1-desktop:~/deskstop/usb# dmesg | grep -e "tty" -e "modem"
[ 6.534195] console [tty0] enabled
[ 8.261932] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.262486] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 8.263292] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.263908] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 50.775698] audit(1288606326.188:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5453 profile="/usr/sbin/cupsd" namespace="default"
[ 2021.459254] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 2021.459275] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
[ 2923.519236] option 1-1:1.0: GSM modem (1-port) converter detected
[ 2923.534371] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 2923.545778] option 1-1:1.1: GSM modem (1-port) converter detected
[ 2923.545973] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 2923.553837] option 1-1:1.2: GSM modem (1-port) converter detected
[ 2923.553947] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

So odd! The two cards both fail to generate modem. but the first one is "12d1:1446" and the second is "12d1:1001" . I suppose that the first one has been blocked when switching and second has been switched but the ttyUSB* just don't show up .
May it be due to the device differences between the two same ec 169 cards or the switching work of usb_modeswitch?
After all ,both of them didn't work in ubuntu 8.04
:?: :cry:
Last edited by lili87 on 01 Nov 2010, 09:19, edited 3 times in total.

lili87
Posts: 21
Joined: 29 Oct 2010, 15:50

Post by lili87 » 01 Nov 2010, 07:31

Hello, Josh, the install package have already been mailed to you. Please check for receiving.

I put it into two mails in case that the enclosure is to big for uploading.

Post Reply