Automatic Activation, Hotplug and UDEV, Configuration
Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 28 Jan 2010, 09:45

OK, I had a look at the manual of this phone. It seems there is no direct way on the phone to switch modes. But it does mention that you get a popup on the phone if you have a microSD card inserted and then plug your USB cable. They talk about a "PC Option" application. It might be interesting what choices you get.

Apart from that, you need to sniff on the Windows driver. See the links on the doc page in the "Contribute" paragraph. Remember to run the sniffer with "administrator" privileges.

The "inf" file you posted shows that the USB ID in modem mode will be "VID_12d1&PID_101D". But you need to install the sniffing filter on "VID_12d1&PID_101E".

After switching in Linux (we'll get there!) you'll see 12d1:101d. But first things first.

Be proud to be a pioneer ! :wink:


isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 30 Jan 2010, 00:32

ok now im not following.....

have sniff installed....
then opened it and get this

USB//VID_12d1&PID_101e&Rev_0000------- Usb Composite Device
USB//VID_12d1&PID_101e&Rev_0000&Ml_00---Mobile Adapter Modem
USB//VID_12d1&PID_101e&Rev_0000&Ml_01---Mobile Adapter PC UI
USB//VID_12d1&PID_101e&Rev_0000&Ml_02--USBMassStorageDevice

Installed filter on all of em (cause all are 101e)

and now what??? when i restarted windows to see what happened now i just get this

USB//VID_12d1&PID_101e&Rev_0000------- Usb Composite Device
USB//VID_12d1&PID_101e&Rev_0000&Ml_00---Mobile Adapter Modem

and no cd rom mounted... on windows.... linux has no changes....

isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 30 Jan 2010, 03:28

false alarm

i did uninstall all filters and again got all 4 lines

USB//VID_12d1&PID_101e&Rev_0000------- Usb Composite Device
USB//VID_12d1&PID_101e&Rev_0000&Ml_00---Mobile Adapter Modem
USB//VID_12d1&PID_101e&Rev_0000&Ml_01---Mobile Adapter PC UI
USB//VID_12d1&PID_101e&Rev_0000&Ml_02--USBMassStorageDevice

now what???

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

Post by Josh » 30 Jan 2010, 12:20

This is with the phone software installed?

If yes, deinstall it, replug, and refuse to install. Then the sniffer should show you the oiginal install drive and you can see the content in a Windows folder (explorer).

If there are more devices just like the list you posted, choose only the mass storage device for filtering. Then close the sniffer, install the software (replugging is OK). Unplug and open the sniffer again (always with admin rights). Delete the log if it has grown, then start logging and plug in again.

Usually the log stops growing when the switch has occured.

Have a look at the log; if the switching went as expected there should be a line containing "SURPRISE_REMOVAL" in the end.

Please don't post the log here; use "pastebin.com" or something similar.


isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 31 Jan 2010, 19:35

ok.... we are getting closer.... i did this

plug it in linux... got the same dmesg... errors and stuff... same than the first post... so I do nothing there

then i go to virtualbox... started winXP... it recognizes OK... and mounts de CD rom... i manually ejected it... tried to connect using dial up and worked (was sniffing while doing that)... closed winXP

back in linux i got this dmesg

[ 2231.173045] usb 1-6: reset high speed USB device using ehci_hcd and address 7
[ 2231.290107] scsi14 : SCSI emulation for USB Mass Storage devices
[ 2231.312797] usb-storage: device found at 7
[ 2231.312801] usb-storage: waiting for device to settle before scanning
[ 2232.315140] scsi 14:0:0:0: CD-ROM Huawei T Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2232.333806] sr1: scsi-1 drive
[ 2232.334023] sr 14:0:0:0: Attached scsi CD-ROM sr1
[ 2232.334155] sr 14:0:0:0: Attached scsi generic sg2 type 5
[ 2232.334594] usb-storage: device scan complete


as you see i got no errors..... so it did
# modprobe -v
# echo "12d1 101e" > /sys/bus/usb-serial/drivers/option1/new_id

and got this (almost cried lol)

[ 2265.198587] usbcore: registered new interface driver usbserial
[ 2265.198806] USB Serial support registered for generic
[ 2265.202637] usbcore: registered new interface driver usbserial_generic
[ 2265.202653] usbserial: USB Serial Driver core
[ 2265.214594] USB Serial support registered for GSM modem (1-port)
[ 2265.214853] usbcore: registered new interface driver option
[ 2265.214862] option: v0.7.2:USB Driver for GSM modems
[ 2268.810563] option 1-6:1.0: GSM modem (1-port) converter detected
[ 2268.810701] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0
[ 2268.810735] option 1-6:1.1: GSM modem (1-port) converter detected
[ 2268.810797] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1

network manager recognizes it automatically and just activated it and voilá!... writing this post in linux using my 3G connection... even uploaded the sniff log file using it... here is it... (hope i did it ok)

http://www.gigasize.com/get.php?d=1z15c7w3d3b

Bad thing is that once I unplugged it and plugged it back... same errors and no /dev created...

hope this helps
isak

isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 07 Feb 2010, 02:06

did i do it wrong???

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

Post by Josh » 07 Feb 2010, 18:29

I have had a look at the log. You got the right device, but it looks as if the driver or the software was not installed. And that "eject" did not seem to do anything. I found it in the log, but nothing happened afterwards.

Do the sniffing again with the software installed. This time, install the sniffing filter on all devices that are listed before the software is installed. I suspect the switching command does probably not go to the pseudo CD-ROM device.

Before posting the log it helps to compress it with gzip or bzip. It will shrink considerably. Just say "gzip usbsnoop.log".


isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 16 Feb 2010, 03:35

this is sooooooooo frustrating

sniff log again... to all 12d1 101e devices listed

http://www.gigasize.com/get.php?d=kh3of7450cb

(by the way i bought a bluetooth dongle and didnt work either...)

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

Post by Josh » 16 Feb 2010, 11:54

Good material in that log, but still a bit unclear. There are long waits between some steps. Did you plug/unplug manually during logging? Or did you operate the software during logging?

Anyway, there is clearly the point where the serial devices are activated. See the lines at [282337 ms].
But between this and the SURPRISE_REMOVAL further up, there are almost two minutes (see [175548 ms]) ...

???

Does the installed software start automatically on plugging in?

Again, you don't need to log the software install itself, just the plugging after the software has been installed (and is sitting on the hard disk).
And before logging that, delete the log to start with a fresh (empty) log file.


isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 16 Feb 2010, 20:07

thats what i did...

again... windows does everything automatically

i just uninstalled drivers and installed back, and get cd rom and everything... but even with cd rom mounted windows recognize modem and let me connect...

i just found out that in the windows task bar... where i unmount usb devices i have 2 devices... cd rom and modem... as usb devices

so if i dont eject cd rom in windows, back in linux, i get both cd rom and modem and im able to connect even with cd rom mounted

a new log here... (to be honest i really dont know what im doing here)

http://www.gigasize.com/get.php?d=5t58k4homrc

isaac

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

Post by Josh » 16 Feb 2010, 21:22

I'm not sure if you had a look at the log. The bracket values which say "ms" at the end are the milliseconds after the logging started.

Now, the end of the log, near the part where the modem interfaces are activated, the time marker says something over 280000 ms. Are you telling me that it takes 280 seconds or almost 5 minutes to connect with this thing?

If it doesn't, then your log contains something else, probably the software installation.

Will have a look at the new log in a moment.


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

Post by Josh » 16 Feb 2010, 22:03

Had a look at the new log. This time the modem device showed up right at the beginning. Whatever did enable it must have happened before the logging started.

I'm still not sure we have the right device included in the log.
To check for that, open the sniffer in Windows again (after the phone software is installed) and check the box "List devices Not Present".

See if there are more devices with "Vid_12d1" than before. If so, install filters on all of them.


isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 17 Feb 2010, 01:20

dude... really... im doing EXACTLY what ur telling me... sniffer is installed in ALL devices present, 4 of the phone (usb composite, modem, PC UI interface and mass storage)

the first log shows when windows install drivers
the second shows after i plug device back... with drivers installed...

dont know what else to do...

giving up here...

thanks anyway

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

Post by Josh » 17 Feb 2010, 09:13

isak.sr wrote:dude... really... im doing EXACTLY what ur telling me... sniffer is installed in ALL devices present, 4 of the phone (usb composite, modem, PC UI interface and mass storage)
The point was to make sure that the sniffer is also installed on all devices NOT present at the moment of preparation but known to the computer. These are the ones that vanish after switching of most modems.

And I should probably have told you to stop the logging as soon as the modem device is ready to use.

But my suspicion grows that there is no ID switch with this phone. If you prepare in Windows and then are able to connect in Linux, what does "lsusb" say about the device? Same ID? If so, can you post a "lsusb -v -d 12d1:101e" in the usable state and the freshly plugged unusable state?

Don't dispair - yet ...


isak.sr
Posts: 20
Joined: 24 Jan 2010, 19:39

Post by isak.sr » 18 Feb 2010, 04:36


Post Reply