Hi,
I have my own linux distribution build by "buildroot". I would like to connect a modem (Huawei E173s) but unfortunately it is read as sda. (device 12d1:1c0b)
Code:
# lsusb
Bus 001 Device 002: ID 05e3:0608
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 1307:0330
Bus 001 Device 004: ID 12d1:1c0b
I would like the device to be detected as a modem so I added in the file "/etc/usb_modeswitch.conf" I added the following lines
Code:
DefaultVendor= 0x12d1
DefaultProduct= 0x1c0b
TargetVendor= 0x12d1
TargetProduct= 0x1c05
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
CheckSuccess=20
When I run "sudo usb_modeswitch -c /etc/usb_modeswitch.conf" i got this messege
Code:
# sudo usb_modeswitch -c /etc/usb_modeswitch.conf
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 004 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x0f (out) and 0x8f (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x0f for message sending ...
Trying to send message 1 to endpoint 0x0f ...
OK, message successfully sent
Reset response endpoint 0x8f
Could not reset endpoint (probably harmless): -99
Reset message endpoint 0x0f
Could not reset endpoint (probably harmless): -99
Check for mode switch (max. 20 times, once per second) ...
Search for target devices ...
Search for target devices ...
Search for target devices ...
product ID matched
Found target device, open it
Found correct target device
Mode switch succeeded. Bye!
the name device has changed, but usb is still not detected as modem
Code:
# lsusb
Bus 001 Device 002: ID 05e3:0608
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 1307:0330
Bus 001 Device 005: ID 12d1:1c05
Code:
# dmesg
[ 6257.864859] usb 1-1.4: new high-speed USB device number 5 using musb-hdrc
[ 6257.966307] usb 1-1.4: New USB device found, idVendor=12d1, idProduct=1c05
[ 6257.973502] usb 1-1.4: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 6257.981189] usb 1-1.4: Product: HUAWEI Mobile
[ 6257.985761] usb 1-1.4: Manufacturer: HUAWEI
[ 6257.999821] usb-storage 1-1.4:1.3: USB Mass Storage device detected
[ 6258.007745] scsi host3: usb-storage 1-1.4:1.3
[ 6258.014284] usb-storage 1-1.4:1.4: USB Mass Storage device detected
[ 6258.022770] scsi host4: usb-storage 1-1.4:1.4
[ 6259.008267] scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 6259.029054] scsi 4:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 6259.045629] sd 4:0:0:0: [sde] Attached SCSI removable disk
[ 6428.889608] usb 1-1.4: USB disconnect, device number 5
What could I do?