Page 1 of 1
Huawei E3531 (0x12d1:0x15d2) not switching in Raspberry Pi B+
Posted: 12 Sep 2015, 01:27
by dmy
Dear all,
I do not want to hijack this thread, but I am having a problem with the same stick. Raspberry Pi B+ and Huawei E3531 3G Modem. If I enter lsusb in the terminal it acts as an usb stick. So I downloaded usb-modeswitch (sudo apt-get install usb-modeswitch), but nothing changed after reboot.
Code: Select all
Bus 001 Device 004: ID 12d1:15d2 Huawei Technologies Co., Ltd.
If I use the following command used earlier in this thread, also nothing happens
Code: Select all
sudo usb_modeswitch -v 12d1 -p 15d2 -M '55534243123456780000000000000011062000000100000000000000000000'
lsusb still gives
Code: Select all
Bus 001 Device 004: ID 12d1:15d2 Huawei Technologies Co., Ltd.
Any clue why my device does not switch at all?
Thank you very much
Roberto
Re: Huawei E3531 (0x12d1:0x15d2) not switching in Raspberry
Posted: 12 Sep 2015, 05:33
by LOM
I assume that you posted in that thread by mistake seeing that you didn't want to hijack it so I have moved your post into a separate thread.
Add the -W switch to your manual usb_modewitch cmd line and paste the output from the cmd in your next post.
Re: Huawei E3531 (0x12d1:0x15d2) not switching in Raspberry
Posted: 12 Sep 2015, 13:27
by dmy
First of all, yes I did want to start a new thread, sorry for that.
Just a note, I am accessing the Raspberry Pi via SSH from my desktop computer. The Raspberry Pi is connected via Ethernet to my router, headless. I have a fix IP running on the Raspberry, tightvncserver and ppp installed.
Here is the output of the cmd line command with -W
Code: Select all
pi@raspberrypi ~ $ sudo usb_modeswitch -v 12d1 -p 15d2 -M '55534243123456780000000000000011062000000100000000000000000000' -W
Taking all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x15d2
TargetVendor= not set
TargetProduct= not set
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
InquireDevice enabled (default)
Success check disabled
System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 004 on 001
skipping descriptor 0xB
skipped 1 class/vendor specific endpoint descriptors
skipped 4 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
Looking for default devices ...
searching devices, found USB ID 12d1:15d2
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 0424:ec00
searching devices, found USB ID 0424:9514
searching devices, found USB ID 1d6b:0002
Found device in default mode, class or configuration (1)
Accessing device 004 on bus 001 ...
Getting the current device configuration ...
OK, got current device 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: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: FFFFFFFFFFFFFFFF
-------------------------
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
-> Run lsusb to note any changes. Bye.
Thank you so much for your support!
Re: Huawei E3531 (0x12d1:0x15d2) not switching in Raspberry
Posted: 12 Sep 2015, 23:11
by Josh
Unfortunately, the default Raspbian version of usb_modeswitch is rather dated.
Try adding the -I parameter to your commandline. This may result in an improvement.
Re: Huawei E3531 (0x12d1:0x15d2) not switching in Raspberry
Posted: 13 Sep 2015, 21:24
by dmy
I'm completely new to Linux, but I have a bit of programming knowledge. That is why I used apt-get, should I have used another version?
The hint with -I looks like it helped:
[Edit]Here's the command used
Code: Select all
sudo usb_modeswitch -v 12d1 -p 15d2 -I -M '55534243123456780000000000000011062000000100000000000000000000'
[/Edit]
lsusb now gives
Code: Select all
Bus 001 Device 005: ID 12d1:15d3 Huawei Technologies Co., Ltd.
ifconfig -a now newly gives
Code: Select all
wwan0 Link encap:Ethernet HWaddr 00:1e:10:1f:00:00
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Now I wanted to get the modem to aquire an IP address, so I have added the following lines at the end of the file /etc/network/interfaces
Code: Select all
allow-hotplug wwan0
iface wwan0 inet dhcp
according to this link:
http://garethhowell.com/wp/connect-rasp ... g-network/
Problem is, after
the modem is back in the USB state (12d1:
15d2). Therefore also no success when running ifconfig -a and the ip address. I guess I need to add my usb-modeswitch command to the boot sequence? How would I do that? Many thanks.