LINUX.ORG.RU

История изменений

Исправление zzdnx, (текущая версия) :

root@DD-WRT:~# usb_modeswitch -I -v 0x12d1 -p 0x1446 -M "55534243123456780000000000000011060000000000000000000000000000"

Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.

root@DD-WRT:~# usb_modeswitch -I -v 0x12d1 -p 0x1001

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 ...
 OK, got current device configuration (1)
Using interface number 0

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

root@DD-WRT:~# lsusb 
Bus 001 Device 002: ID 058f:6254
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 004: ID 12d1:1001
Bus 001 Device 005: ID 0781:5571

При всех действиях у меня не появились устройства /dev/tty/USB№. В dmesg ничего нового. Даже если устройства будут называться не так, мне всё равно нужно указать адрес модема для gnokii и asterisk.

Исходная версия zzdnx, :

Немного кода...

root@DD-WRT:~# usb_modeswitch -I -v 0x12d1 -p 0x1446 -M "55534243123456780000000000000011060000000000000000000000000000"

Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.

root@DD-WRT:~# usb_modeswitch -I -v 0x12d1 -p 0x1001

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 ...
 OK, got current device configuration (1)
Using interface number 0

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

root@DD-WRT:~# lsusb 
Bus 001 Device 002: ID 058f:6254
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 004: ID 12d1:1001
Bus 001 Device 005: ID 0781:5571

При всех действиях у меня не появились устройства /dev/tty/USB№. В dmesg ничего нового.