|
Activation Codes and Methods, Hardware Details, Sniffing
-
cerr
- Posts: 22
- Joined: 04 Apr 2012, 01:12
- Location: Vancouver, BC
Post
by cerr » 10 May 2012, 22:07
Hi,
I just received four Hawei UMG1831 and have been trying to get them going, not succesful so far.
I've tried them with this config file:
Code: Select all # ########################
# Huawei UMG1831
#
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1404
HuaweiMode=1
But I still get only Code: Select all SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Sending Huawei control message ...
Error: sending Huawei control message failed (error -32). Aborting.
#
On the shell. Does anyone have experience with these sticks? Help would be appreciated!
Thank you!
Ron
-
Josh
- Site Admin
- Posts: 6584
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 14 May 2012, 22:54
I would not use the HuaweiMode parameter. It's only for older devices.
Try the MessageContent from the original "12d1:1446" config file.
-
cerr
- Posts: 22
- Joined: 04 Apr 2012, 01:12
- Location: Vancouver, BC
Post
by cerr » 15 May 2012, 00:55
Josh wrote:I would not use the HuaweiMode parameter. It's only for older devices.
Try the MessageContent from the original "12d1:1446" config file.
No, doesn't work either when I have it like this
Code: Select all
# ########################
# Huawei UMG1831
#
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
I just get something like
[code]
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.
#
TargetProduct= 0x1404
[/code]
-
Josh
- Site Admin
- Posts: 6584
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 15 May 2012, 08:19
You seem to have misunderstood. This is how the original config file looks like: Code: Select all ########################################################
# Huawei, newer modems
DefaultVendor= 0x12d1
DefaultProduct=0x1446
TargetVendor= 0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,1433,14ac,1506"
CheckSuccess=20
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
Use the line with the MessageContent parameter in your file - or just add "1404" to the TargetProductList and then use this file.
-
cerr
- Posts: 22
- Joined: 04 Apr 2012, 01:12
- Location: Vancouver, BC
Post
by cerr » 15 May 2012, 19:41
Hmm, doesn't seem to work, what I get:
I plug the stick into the usb port:
Code: Select all # lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem)
#
and I do a # usb_modeswitch -c /etc/huawei_modeswitch.conf
in the file huawei_modeswitch.conf I have:
Code: Select all # cat /etc/huawei_modeswitch.conf
########################################################
# Huawei, newer modems
DefaultVendor= 0x12d1
DefaultProduct=0x1446
TargetVendor= 0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,1433,14ac,1506"
CheckSuccess=20
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
#
Ok, and when I do the modeswitch I see a bunch of messages flashing over my screen and I get a few Searching for target devices ... before it says Code: Select all No new devices in target mode or class found
Mode switch has failed. Bye.
# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 12d1:1404 Huawei Technologies Co., Ltd.
but as you see, the device ID has changed from 1446 to 1404, so something has happened but not the thing we want
Thanks for your help! 
-
Josh
- Site Admin
- Posts: 6584
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 15 May 2012, 21:43
Yes, that's exactly the thing we want!
USB ID has changed, so the mode switch was successful.
Now, if you have installed both the "usb-modeswitch" and the "usb-modeswitch-data" package, you can put your edited config file into "/etc/usb_modeswitch.d" which is the folder for custom/local configurations. Rename it to "12d1:1446" - and from then on everything should run automatically, including the binding of the serial driver which is the last step to make the modem work.
Edit: I just saw that your target ID, "1404" is still not in the TargetProductList. Please add it.
-
cerr
- Posts: 22
- Joined: 04 Apr 2012, 01:12
- Location: Vancouver, BC
Post
by cerr » 15 May 2012, 22:24
hm, okay, i've never used_modeswitch_data and see that it is compiled into my builddroot distro but for some reason i can't find the binary. So I guess i'll need to follow up on that first.... or is there an alternative way to get it going, without usb_modeswitch_data?
Where can I add my TargetProcutID to the list?
I didn't find anything on the main page...
Thanks,
Ron
-
Josh
- Site Admin
- Posts: 6584
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 16 May 2012, 19:40
Edit the config file with the long "TargetProductList" line. Add "1404" to the other IDs in the list.
The parameters in the config files are described in the device_reference.txt
I don't know your distribution at all, sorry. Where did you install usb_modeswitch from - was it a ready-made package or did you use the source code from here?
-
cerr
- Posts: 22
- Joined: 04 Apr 2012, 01:12
- Location: Vancouver, BC
Post
by cerr » 16 May 2012, 22:09
Josh wrote:Edit the config file with the long "TargetProductList" line. Add "1404" to the other IDs in the list.
The parameters in the config files are described in the device_reference.txt
I don't know your distribution at all, sorry. Where did you install usb_modeswitch from - was it a ready-made package or did you use the source code from here?
Yep, got it all working fine now, Thanks a lot!
Ron
|
|