Author Message

<  Device Information  ~  Calling for help for the Huawei E5830

PostPosted: Sun Feb 28, 2010 7:17 am Reply with quote
Posts: 2Joined: Sun Feb 28, 2010 6:59 am
I struggle with the Huawei E5830 and usb_modeswitch - actually I am not sure whether I struggle more with the Huawei device or modeswitch.

What I found out so far:
Under Linux the device has (before modeswitch) the vendor id 12d1 and the product id 1446.

Under Windows the device has (after it is recognized as UMTS modem) the vendor id 12d1 and the product id 1401


I tried the following command for modeswitch in Linux:
'usb_modeswitch -v 0x12d1 -p 0x1446 -V 0x 12d1 -P 0x1401'

modeswitch gives me the following result:
'Looking for target devices ...
Found devices in target mode or class (1)
Looking for default devices ...
No default device found. Is it connected? Bye.'

What am I doing wrong and does anybody have any suggestions. Do I need additional information for the Huawei E5830 and how can I get the information? Or am I using usb_modeswitch the wrong way?


I also tried to use the usb_modeswitch.con file as following:

########################################
# Huawei E5830

DefaultVendor= 0x12d1
DefaultProduct= 0x1446

TargetVendor= 0x12d1
TargetProduct= 0x1401


Still no success. I think some parameter is missing and I do not know how to identify it.


Any hint that could help me is welcome. Thank you in advance

Sven


Offline Profile
PostPosted: Sun Feb 28, 2010 3:59 pm Reply with quote
Posts: 48Location: Athens, GreeceJoined: Tue Jan 05, 2010 3:31 am
Hi Sven,

Indeed seems like there is no entry for your modem within latest usb-modeswitch device database.

Message 'Found devices in target mode or class (1)' indicates that device has already switched. If it was not you or usb-modeswitch who did the switch, it is possible that device has switched on its own:
- There are devices who switch on their own after some minutes of inactivity.
- There are devices who switch on their own if plugged during computer start (if this is the case, "usb_modeswitch -v 0x12d1 -p 0x1446 -d" may be able to switch your device)

Closest match candidate existing, is file "12d1:1446":

Code:
########################################################
# Huawei E270+  (HSPA+ modem)

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList="1001,1406,140c,14ac"

CheckSuccess=20

MessageContent="55534243123456780000000000000011060000000000000000000000000000"


1. Check if this message content can switch your device (from this point on, I suppose you have installed latest version):
Code:
usb_modeswitch -W -c "/etc/usb_modeswitch.d/12d1:1446"
lsusb

If it did work, modify "/etc/usb_modeswitch.d/12d1:1446" to add "1401" to TargetProductList, for success checking to happen from now on.

2. If it didn't work, you have to go through sniffing USB traffic of Windows Driver to discover appropriate MessageContent.

Instructions for installing latest version are here. (Before installing, any previous version must be uninstalled: "make uninstall")
For a guide on how to sniff USB traffic, check here.

Sakis


Offline Profile WWW
PostPosted: Mon Mar 01, 2010 2:38 pm Reply with quote
Posts: 2Joined: Sun Feb 28, 2010 6:59 am
Hi Sakis,

Thank you very much for your help. Today I retested the device and it seems you are right, the device changes the mode itself. When I connect the device it has the ids 12d1:1446 and after a minute it has 12d1:1401 using my Ubuntu 9.10 KK. I did not realise yesterday that it changes itself and it seems I was trying to change something that already changed itself.

Now I will try to access the modem of the device with my Ubuntu.

Best regards

Sven


Offline Profile
PostPosted: Tue Mar 09, 2010 12:21 am Reply with quote
Site AdminPosts: 6170Joined: Sat Nov 03, 2007 12:30 am
On Ubuntu and some other distros, there is an entry for 12d1:1446 in "/lib/udev/rules.d/xx-modem-modeswitch.rules". It is by pure accident if it switches these modems correctly. Unfortunately it doesn't do driver binding, so the switched device is not really useful.

If I were you I would comment out the 12d1:1446 line in that file (IIRC it's the last one) and reinstall the usb_modeswitch package. Add the target product ID like Sakis advised, and you should get fully working serial ports when you plug your device.



Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
4 posts
Users browsing this forum: No registered users and 3 guests
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum