I've looking at the wiki and other forums, but maybe the info I'm reading is for old OpenWrt versions. I'm running a custom-built 19.07.3 (on which I installed USB, 3G, and 910d)
I'm trying to setup an old Axesstel MU130 3G Modem. dmesg report it's being detected as an storage device:
[ 1293.054850] usb 1-1: USB disconnect, device number 3
[ 2651.871474] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 2652.095823] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 2652.123737] scsi host0: usb-storage 1-1:1.0
[ 2653.250792] scsi 0:0:0:0: CD-ROM UsbModem Storage Disk 2.31 PQ: 0 ANSI: 2
[ 2653.268852] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[ 2661.950804] usb 1-1: USB disconnect, device number 4
[ 2662.431573] usb 1-1: new high-speed USB device number 5 using ehci-platform
[ 2662.698291] usb-storage 1-1:1.4: USB Mass Storage device detected
[ 2662.762334] scsi host0: usb-storage 1-1:1.4
[ 2663.813847] scsi 0:0:0:0: CD-ROM UsbModem Storage Disk 2.31 PQ: 0 ANSI: 2
[ 2663.832213] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[ 2663.921583] scsi 0:0:0:1: Direct-Access UsbModem Storage Disk 2.31 PQ: 0 ANSI: 2
[ 2663.940027] sd 0:0:0:1: Attached scsi generic sg1 type 0
[ 2663.965767] sd 0:0:0:1: [sda] Attached SCSI removable disk
And this is how the kernel detects it:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1726 ProdID=a000 Rev= 0.00
S: Manufacturer=USB Modem
S: Product=Modem
I think I have to manually mode-switch it. I first ran:
# usbmode -l
but shows nothing, Then I tried:
{
"messages" : [ ],
"devices" : {
"1726:a000": {
"*": {
"mode": "StandardEject",
"msg": [ ]
}
}
}
}
But it fails to load the .json script:
# usbmode -v -s -c /tmp/MU130.json
Failed to load config file
And:
{
"messages": [ ],
"devices": {
"1726:a000": {
"*": {
"mode": "StandardEject",
"msg": [ ]
}
}
}
}
# usbmode -v -s -c /tmp/MU130.json
Failed to send switch message
Failed to send switch message
Failed to send switch message
Failed to send switch message
I also tried something similar to what worked for dd-wrt in the past
(Note: before that usb_modeswitch, it was 1726:f00e):
{
"messages": [
"5553424312345678000000000000061b000000020000000000000000000000"
],
"devices": {
"1726:a000": {
"*": {
"t_vendor": "1726",
"t_product": "a000",
"msg": [0]
}
}
}
}
But it fails to send the command:
# usbmode -v -s -c /tmp/MU130.json
Failed to send switch message
Any ideas of what I'm doing wrong?