Huawei E583C not switching - heeelllppp (Fedora15 Gnome3)
Posted: 21 Jul 2011, 03:54
Hi,
I am a total newbie to linux - my husband runs a dual boot system and mainly works on linux. He handed this prob off to me 4 days ago and at first I thought it was a prob with sakid3g. But have found out from logs and stuff that my device is still being seen as a mass storage device so over 35 hrs and alot of frustration here is where I am at. I hope someone can help!
Update - day 4 I did the following
3- Switch mode from storage to modem
Why was I wrong about thinking that my USB modem was already recognized?
Because if at this point I issue a "lsusb -vvv | less" command and scroll down to the line where "Huawei" appears, I see that after all its "Interface Descriptor" sections the entry "bInterfaceClass" shows "Mass Storage" which is what I don't want. I want to see a modem!
To make it switch from the "storage" to "modem" mode you need the utility "usb_modeswitch".
After that you "emerged"/installed it, edit the file "/etc/usb_modeswitch.conf" and add the following:
#CUSTOMIZED
########################################################
;DefaultVendor= 0x12d1
;DefaultProduct= 0x1446
MessageEndpoint = 0x01
MessageContent = "55534243000000000000000000000011060000000000000000000000000000"
########################################################
Check that you don't have already any other sections for "0x1446" (there weren't any as of now - if you already find such a section, that one might actually be better that the one I state).
I have no clue what the last two lines do, but without them it the switch did not work (or it did not work because of some other reason which I wrongly associated to this change ;o) ).
So, now that you know 1) your "vendor" ID, 2) your "product" ID and 3) have edited "/etc/usb_modeswitch.conf" you can try to switch to the modem mode:
usb_modeswitch -v 0x12d1 -p 0x1446 -H -s 5 -c /etc/usb_modeswitch.conf
The "-v" defines the vendor, the "-p" the product, "-H" is for "Huawei"-stuff, the "-s" is a sleep timer and the "-c" defines the configuration file we just edited.
____________________________________________________
The only diff was my device is sjowing as 142d not 1446 so I replaced 142d with all the 1446 - in cnfg and in run line - after first fail I changed time from 5 to 20 and unplugged and replugged my device in the following is what I got -
[root@David-Linux david]# usb_modeswitch -v 0x12d1 -p 0x142d -H -s 20 -c /etc/usb_modeswitch.conf
Note: target parameter missing; success check limited
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 012 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Not a storage device, skipping SCSI inquiry
USB description data (for identification)
-------------------------
Manufacturer: Huawei Incorporated
Product: HUAWEI Mobile Connect
Serial No.: 1234567890ABCDEF
-------------------------
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device still present after the timeout
Mode switch most likely failed. Bye.
___________________________________________
ARRRRRRRRRRRRRRRG
PS - Before I changed cnfg and when I ran usb_modeswitch -v 0x12d1 -p 0x142d -H -s 5 -c /etc/usb_modeswitch.conf - it said the modeswich should be sucessfull not a fail like now. Have no clue if that makes any diff.
I am a total newbie to linux - my husband runs a dual boot system and mainly works on linux. He handed this prob off to me 4 days ago and at first I thought it was a prob with sakid3g. But have found out from logs and stuff that my device is still being seen as a mass storage device so over 35 hrs and alot of frustration here is where I am at. I hope someone can help!
Update - day 4 I did the following
3- Switch mode from storage to modem
Why was I wrong about thinking that my USB modem was already recognized?
Because if at this point I issue a "lsusb -vvv | less" command and scroll down to the line where "Huawei" appears, I see that after all its "Interface Descriptor" sections the entry "bInterfaceClass" shows "Mass Storage" which is what I don't want. I want to see a modem!
To make it switch from the "storage" to "modem" mode you need the utility "usb_modeswitch".
After that you "emerged"/installed it, edit the file "/etc/usb_modeswitch.conf" and add the following:
#CUSTOMIZED
########################################################
;DefaultVendor= 0x12d1
;DefaultProduct= 0x1446
MessageEndpoint = 0x01
MessageContent = "55534243000000000000000000000011060000000000000000000000000000"
########################################################
Check that you don't have already any other sections for "0x1446" (there weren't any as of now - if you already find such a section, that one might actually be better that the one I state).
I have no clue what the last two lines do, but without them it the switch did not work (or it did not work because of some other reason which I wrongly associated to this change ;o) ).
So, now that you know 1) your "vendor" ID, 2) your "product" ID and 3) have edited "/etc/usb_modeswitch.conf" you can try to switch to the modem mode:
usb_modeswitch -v 0x12d1 -p 0x1446 -H -s 5 -c /etc/usb_modeswitch.conf
The "-v" defines the vendor, the "-p" the product, "-H" is for "Huawei"-stuff, the "-s" is a sleep timer and the "-c" defines the configuration file we just edited.
____________________________________________________
The only diff was my device is sjowing as 142d not 1446 so I replaced 142d with all the 1446 - in cnfg and in run line - after first fail I changed time from 5 to 20 and unplugged and replugged my device in the following is what I got -
[root@David-Linux david]# usb_modeswitch -v 0x12d1 -p 0x142d -H -s 20 -c /etc/usb_modeswitch.conf
Note: target parameter missing; success check limited
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 012 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Not a storage device, skipping SCSI inquiry
USB description data (for identification)
-------------------------
Manufacturer: Huawei Incorporated
Product: HUAWEI Mobile Connect
Serial No.: 1234567890ABCDEF
-------------------------
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device still present after the timeout
Mode switch most likely failed. Bye.
___________________________________________
ARRRRRRRRRRRRRRRG
PS - Before I changed cnfg and when I ran usb_modeswitch -v 0x12d1 -p 0x142d -H -s 5 -c /etc/usb_modeswitch.conf - it said the modeswich should be sucessfull not a fail like now. Have no clue if that makes any diff.