|
Activation Codes and Methods, Hardware Details, Sniffing
-
polow
- Posts: 5
- Joined: 08 Jan 2016, 17:31
Post
by polow » 08 Jan 2016, 17:49
Hello ,
I am trying to figure out how to run my USB Wimax Echolife BM325 on my Raspberry pi B+
So far i found these information about my Device on the forum posted by user "Xander" :
Code: Select all Code:
# Huawei EchoLife BM325 WiMAX USB Modem
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="3808", RUN+="usb_modeswitch '%b/%k'"
Config file :
Code: Select all Code:
########################################################
# Huawei EchoLife BM325 WiMAX USB Modem
DefaultVendor= 0x12d1
DefaultProduct=0x3808
TargetClass=0x02
CheckSuccess=20
HuaweiMode=1
I have installed USB modeswitch used the above code to switch my Wimax from CD mode to Modem mode but with no luck , i tried to use USBSniff but i didn't know how it works .
These all the information i gathered from my Raspberry\Wimax Dongle :
Code: Select all pi@raspberrypi ~ $: sudo usb_modeswitch -v 0X12d1 -p 0X3808
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 004 on bus 001 ...
Getting the current device configuration ...
Error getting the current configuration (error -32). Assuming configuration 1.
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (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: 1.00
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Communications
Product: EchoLife BM325 WiMAX USB Modem
Serial No.: 1.0.0
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.
File in : /lib/udev/rules.d/40_usb_modeswitch.rules
Code: Select all # Huawei EchoLife BM325 WiMAX USB Modem
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="3808", RUN+="usb_modeswitch '%b/%k'"
lsusb :
Code: Select all Bus 001 Device 017: ID 12d1:3808 Huawei Technologies Co., Ltd.
lsusb -v :
Code: Select all Bus 001 Device 017: ID 12d1:3808 Huawei Technologies Co., Ltd.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x3808
bcdDevice 0.01
iManufacturer 1
iProduct 3
iSerial 2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 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 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
dmesg :
Code: Select all [ 266.675548] usb 1-1.3: Product: EchoLife BM325 WiMAX USB Modem
[ 266.675562] usb 1-1.3: Manufacturer: HUAWEI Communications
[ 266.675576] usb 1-1.3: SerialNumber: 1.0.0
[ 266.684102] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 266.694459] scsi13 : usb-storage 1-1.3:1.0
[ 267.834438] usb 1-1.3: reset high-speed USB device number 17 using dwc_otg
[ 267.935001] usb 1-1.3: can't restore configuration #1 (error=-71)
[ 267.935591] usb 1-1.3: USB disconnect, device number 17
[ 281.935078] usb 1-1.3: new high-speed USB device number 18 using dwc_otg
[ 282.035385] usb 1-1.3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 h as invalid maxpacket 64
[ 282.035426] usb 1-1.3: config 1 interface 0 altsetting 0 bulk endpoint 0x1 ha s invalid maxpacket 64
[ 282.036099] usb 1-1.3: New USB device found, idVendor=12d1, idProduct=3808
[ 282.036125] usb 1-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber =2
[ 282.036140] usb 1-1.3: Product: EchoLife BM325 WiMAX USB Modem
[ 282.036154] usb 1-1.3: Manufacturer: HUAWEI Communications
[ 282.036168] usb 1-1.3: SerialNumber: 1.0.0
[ 282.044689] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 282.055107] scsi14 : usb-storage 1-1.3:1.0
[ 283.195037] usb 1-1.3: reset high-speed USB device number 18 using dwc_otg
[ 283.295601] usb 1-1.3: can't restore configuration #1 (error=-71)
[ 283.296165] usb 1-1.3: USB disconnect, device number 18
[ 297.295493] usb 1-1.3: new high-speed USB device number 19 using dwc_otg
[ 297.395987] usb 1-1.3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 h as invalid maxpacket 64
[ 297.396027] usb 1-1.3: config 1 interface 0 altsetting 0 bulk endpoint 0x1 ha s invalid maxpacket 64
[ 297.396695] usb 1-1.3: New USB device found, idVendor=12d1, idProduct=3808
[ 297.396720] usb 1-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber =2
[ 297.396735] usb 1-1.3: Product: EchoLife BM325 WiMAX USB Modem
[ 297.396750] usb 1-1.3: Manufacturer: HUAWEI Communications
[ 297.396794] usb 1-1.3: SerialNumber: 1.0.0
[ 297.406723] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 297.407121] scsi15 : usb-storage 1-1.3:1.0
[ 298.545572] usb 1-1.3: reset high-speed USB device number 19 using dwc_otg
[ 298.646160] usb 1-1.3: can't restore configuration #1 (error=-71)
[ 298.646736] usb 1-1.3: USB disconnect, device number 19
USB modeswitch Doesn't support my Device and i don't really know how to manually configure it .
Another important note i gathered while making a research is the modem has three modes i quote :
" I've just made it work!
This device is very tricky actually. It can be in three states:
* 12d1:3808 mass storage
* 12d1:3809 mass storage
* 12d1:3808 cdc."
Rest of the information can be found here http://permalink.gmane.org/gmane.linux. ... eral/28113
I didn't know what does that means but i am sure he mentioned a Patch for USB mode that can make Huawei BM325 switch to modem mode .
Any help is appreciated
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 09 Jan 2016, 05:46
Try the cmd:
sudo usb_modeswitch -v 12d1 -p 3808 -H -W
then check if a verbose lsusb shows more interfaces than the storage interface.
-
polow
- Posts: 5
- Joined: 08 Jan 2016, 17:31
Post
by polow » 09 Jan 2016, 16:23
LOM wrote:Try the cmd:
sudo usb_modeswitch -v 12d1 -p 3808 -H -W
then check if a verbose lsusb shows more interfaces than the storage interface.
Thank you so much i really appreciate your Help
Installed Fresh copy of Noobs OS on my PI , tried the code you mentioned but unfortunately same result :
lsusb -v
Code: Select all Bus 001 Device 033: ID 12d1:3808 Huawei Technologies Co., Ltd.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x3808
bcdDevice 0.01
iManufacturer 1
iProduct 3
iSerial 2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 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 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
dmesg :
Code: Select all [ 689.664961] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 689.676815] scsi16 : usb-storage 1-1.2:1.0
[ 690.816835] usb 1-1.2: reset high-speed USB device number 32 using dwc_otg
[ 690.937242] scsi 16:0:0:0: CD-ROM HUAWEI Mass Storage 1.00 PQ: 0 ANSI: 2
[ 690.939202] sr0: scsi3-mmc drive: 0x/0x caddy
[ 690.939898] sr 16:0:0:0: Attached scsi CD-ROM sr0
[ 690.940329] sr 16:0:0:0: Attached scsi generic sg0 type 5
[ 694.217652] usb 1-1.2: USB disconnect, device number 32
[ 707.726848] usb 1-1.2: new high-speed USB device number 33 using dwc_otg
[ 707.827229] usb 1-1.2: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 707.827268] usb 1-1.2: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
[ 707.827947] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=3808
[ 707.827973] usb 1-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 707.827991] usb 1-1.2: Product: EchoLife BM325 WiMAX USB Modem
[ 707.828006] usb 1-1.2: Manufacturer: HUAWEI Communications
[ 707.828020] usb 1-1.2: SerialNumber: 1.0.0
[ 707.834933] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 707.846816] scsi17 : usb-storage 1-1.2:1.0
[ 708.986856] usb 1-1.2: reset high-speed USB device number 33 using dwc_otg
[ 709.107234] scsi 17:0:0:0: CD-ROM HUAWEI Mass Storage 1.00 PQ: 0 ANSI: 2
[ 709.110618] sr0: scsi3-mmc drive: 0x/0x caddy
[ 709.111314] sr 17:0:0:0: Attached scsi CD-ROM sr0
[ 709.111730] sr 17:0:0:0: Attached scsi generic sg0 type 5
[ 739.246825] usb 1-1.2: reset high-speed USB device number 33 using dwc_otg
[ 770.306844] usb 1-1.2: reset high-speed USB device number 33 using dwc_otg
lsusb
Code: Select all Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 033: ID 12d1:3808 Huawei Technologies Co., Ltd.
My device is not in the List of USB Modeswtich even though a user mentioned the Configuration file , why didn't they included the new configuration in the new update ?
I installed USB modeswitch from the command "sudo apt-get install usb_modeswitch" is this right ?
should i install it manually using this bz2 file http://www.draisberghof.de/usb_modeswit ... .6.tar.bz2 ?
thank you
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 09 Jan 2016, 20:19
polow wrote:
My device is not in the List of USB Modeswtich even though a user mentioned the Configuration file , why didn't they included the new configuration in the new update ?
You have used that configuration file yourself without success and the user who provided it said that the switching was unreliable.
Why should that be included in an update when it doesn't work?
The hardware you use, the Raspberry Pi, is known for having an unreliable usb controller so I don't trust the results.
It looks like the usb port can not provide enough current for your wimax device which therefore resets itself.
What does your dmesg look like if you plug in the device but don't run usb_modeswitch, does it repeatedly disappear and comes back with a new device number on the bus like it did here:
dmesg wrote:
[ 267.834438] usb 1-1.3: reset high-speed USB device number 17 using dwc_otg
[ 267.935001] usb 1-1.3: can't restore configuration #1 (error=-71)
[ 267.935591] usb 1-1.3: USB disconnect, device number 17
[ 281.935078] usb 1-1.3: new high-speed USB device number 18 using dwc_otg
[ 283.296165] usb 1-1.3: USB disconnect, device number 18
[ 297.295493] usb 1-1.3: new high-speed USB device number 19 using dwc_otg
-
polow
- Posts: 5
- Joined: 08 Jan 2016, 17:31
Post
by polow » 09 Jan 2016, 21:36
LOM wrote:
You have used that configuration file yourself without success and the user who provided it said that the switching was unreliable.
Why should that be included in an update when it doesn't work?
You're totally right
LOM wrote:
The hardware you use, the Raspberry Pi, is known for having an unreliable usb controller so I don't trust the results.
It looks like the usb port can not provide enough current for your wimax device which therefore resets itself.
What does your dmesg look like if you plug in the device but don't run usb_modeswitch, does it repeatedly disappear and comes back with a new device number on the bus like it did here:
dmesg wrote:
[ 267.834438] usb 1-1.3: reset high-speed USB device number 17 using dwc_otg
[ 267.935001] usb 1-1.3: can't restore configuration #1 (error=-71)
[ 267.935591] usb 1-1.3: USB disconnect, device number 17
[ 281.935078] usb 1-1.3: new high-speed USB device number 18 using dwc_otg
[ 283.296165] usb 1-1.3: USB disconnect, device number 18
[ 297.295493] usb 1-1.3: new high-speed USB device number 19 using dwc_otg
After Installing Fresh Noobs OS this "dwc_otg" disappeared so i think i did something wrong obviously.
Just restarted my PI then attached the Wimax dongle and seems like it's attached as a CD-ROM and not restarting like it did before .
dmesg :
Code: Select all [ 207.446860] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 207.547238] usb 1-1.2: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 207.547276] usb 1-1.2: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
[ 207.547934] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=3808
[ 207.547960] usb 1-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 207.547976] usb 1-1.2: Product: EchoLife BM325 WiMAX USB Modem
[ 207.547991] usb 1-1.2: Manufacturer: HUAWEI Communications
[ 207.548004] usb 1-1.2: SerialNumber: 1.0.0
[ 207.555988] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 207.560927] scsi0 : usb-storage 1-1.2:1.0
[ 208.696808] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[ 208.817218] scsi 0:0:0:0: CD-ROM HUAWEI Mass Storage 1.00 PQ: 0 ANSI: 2
[ 208.877648] sr0: scsi3-mmc drive: 0x/0x caddy
[ 208.877686] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 208.881550] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 208.945585] sr 0:0:0:0: Attached scsi generic sg0 type 5
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 09 Jan 2016, 22:42
It's hard to say what is and what is not the problem.
If I see such an erratic behaviour of a USB device, I always try again using an externally powered USB hub. That often helps not only with tablets but also with embedded PCs like my Intel NUC machine. I also use it when testing on my Pi2.
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 09 Jan 2016, 22:53
Also, you can try some different switching sequences that are known to work on other Huawei devices (one at a time):
Code: Select all ########################################################
# Huawei EchoLife BM325 WiMAX USB Modem
DefaultVendor= 0x12d1
DefaultProduct=0x3808
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
#MessageContent="55534243123456780000000000000011063000000100010000000000000000"
#MessageContent="55534243123456780000000000000011060000000000000000000000000000"
Call the file manually with the " -c" parameter:
Code: Select all # usb_modeswitch -W -c <yourconfigfile>
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 10 Jan 2016, 05:40
This ought to switch the device:
sudo usb_modeswitch -v 12d1 -p 3808 -W -M 55534243123456780600000080000601000000000000000000000000000000
it is the last msg (and only msg of interest) in the usbsnoop log from the thread in the linux-usb mailing list you linked to.
-
polow
- Posts: 5
- Joined: 08 Jan 2016, 17:31
Post
by polow » 10 Jan 2016, 23:50
LOM wrote:This ought to switch the device:
sudo usb_modeswitch -v 12d1 -p 3808 -W -M 55534243123456780600000080000601000000000000000000000000000000
it is the last msg (and only msg of interest) in the usbsnoop log from the thread in the linux-usb mailing list you linked to.
Thank you
but looks like the code didn't switch the Modem , here's the output :
Code: Select all ~ $ sudo usb_modeswitch -v 12d1 -p 3808 -W -M 5553424312345678060 0000080000601000000000000000000000000000000
Take all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x3808
MessageContent="55534243123456780600000080000601000000000000000000000000000000"
NeedResponse=0
Look for default devices ...
found USB ID 0424:9514
found USB ID 1d6b:0002
found USB ID 0424:ec00
found USB ID 12d1:3808
vendor ID matched
product ID matched
Found devices in default mode (1)
Access device 005 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
Error: could not get description string "manufacturer"
USB description data (for identification)
-------------------------
Manufacturer:
Product: EchoLife BM325 WiMAX USB Modem
Serial No.: 1.0.0
-------------------------
Looking for active driver ...
No active driver found. Detached before or never attached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reset response endpoint 0x81
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [00000b10] libusbx: error [op_clear_halt] clear_halt failed error -1 errno 71
Could not reset endpoint (probably harmless): -99
Reset message endpoint 0x01
[ 0.001597] [00000b10] libusbx: error [op_clear_halt] clear_halt failed error -1 errno 71
Could not reset endpoint (probably harmless): -99
[b]Device is gone[/b], skip any further commands
-> Run lsusb to note any changes. Bye!
Device is still connected , i didn't disconnect it at all
dmesg :
Code: Select all [ 7435.578470] usb 1-1.3: USB disconnect, device number 5
[ 7449.124476] usb 1-1.3: new high-speed USB device number 6 using dwc_otg
[ 7449.224859] usb 1-1.3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 [b]has invalid maxpacket 64[/b]
[ 7449.224897] usb 1-1.3: config 1 interface 0 altsetting 0 bulk endpoint 0x1 [b]has invalid maxpacket 64[/b]
[ 7449.225563] usb 1-1.3: New USB device found, idVendor=12d1, idProduct=3808
[ 7449.225589] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7449.225605] usb 1-1.3: Product: EchoLife BM325 WiMAX USB Modem
[ 7449.225619] usb 1-1.3: Manufacturer: HUAWEI Communications
[ 7449.225632] usb 1-1.3: SerialNumber: 1.0.0
[ 7449.233103] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 7449.237518] scsi2 : usb-storage 1-1.3:1.0
[ 7450.374780] usb 1-1.3: reset high-speed USB device number 6 using dwc_otg
[ 7450.495128] scsi 2:0:0:0: CD-ROM HUAWEI Mass Storage 1.00 PQ: 0 ANSI: 2
[ 7450.496434] sr0: scsi3-mmc drive: 0x/0x caddy
[ 7450.497222] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 7450.497677] sr 2:0:0:0: Attached scsi generic sg0 type 5
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 11 Jan 2016, 06:04
ok, it looks like we are back at square one where user xander gave up 6 years ago and where I give up now.
I consider it a waste of time to continue because Wimax support in linux is extremely limited and there is nothing indicating that BM325 would be easy to support if the switching issue was solved.
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 11 Jan 2016, 09:54
polow wrote:Device is still connected , i didn't disconnect it at all
When trying out mode-switching methods manually, make sure you unplug and re-plug the stick before every new attempt. Otherwise it may be in an undefined state.
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 11 Jan 2016, 22:59
Try the command again, but this time add the following parameters:
Code: Select all sudo usb_modeswitch -v 12d1 -p 3808 -W -n -w 500 -M 55534243123456780600000080000601000000000000000000000000000000
Don't forget to re-plug the modem before.
Any changes?
|
|