Да в последнем топике файлы последние. Да вот вчера без этого пинка ничего и не получалось.Лог после старта modemdial.
Уточни мне всё, что надо показать сейчас сделать, когда Ш@ра работает или перегрузить рес и модем заново прицепить?
Да про проблемы mgcamd в связке с 3G видел на форуме, а можно ссылку про настройку оскам?
Вот на первых два пункта
А далее перегружу рес и команду с ключом и отчёт. Но ведь модем коннектится и по команде без того ключа см. выше оранжевым.
Вот после команд
/etc/ppp/usb_modeswitch -W
-I -c /etc/ppp/switch/12d1:155
/etc/ppp/switch/12d1:155b
/root/spark/modules/option.ko | grep 1506
Спойлер :
STMicroelectronics Base Distribution version 2.2 Linux/sh4 2.6.32.42_stm24_V4.1-SAT7111_7111-STSDK stlinux login: root Password: Welcome to STMicroelectronics Base Distribution. BusyBox v1.18.2 (2011-07-13 20:52:52 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. [root@stlinux]#/etc/ppp/usb_modeswitch -W -I -c /etc/ppp/switch/12d1:155b Reading config file: /etc/ppp/switch/12d1:155b * usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above) ! PLEASE REPORT NEW CONFIGURATIONS ! DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 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="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set InquireDevice disabled Success check disabled System integration mode disabled usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 002 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found device in default mode, class or configuration (1) Accessing device 002 on bus 001 ... Getting the current device configuration ... OK, got current device configuration (1) Using interface number 0 Using endpoints 0x01 (out) and 0x81 (in) USB description data (for identification) ------------------------- Manufacturer: Product: Mobile Connect Serial No.: not provided ------------------------- Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached 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 USB error: could not clear/halt ep 129: No such device Could not reset endpoint (probably harmless): -19 Resetting message endpoint 0x01 USB error: could not clear/halt ep 1: No such device Could not reset endpoint (probably harmless): -19 USB error: could not release intf 0: No such device Device is gone, skipping any further commands -> Run lsusb to note any changes. Bye. [root@stlinux]#/etc/ppp/switch/12d1:155b /etc/ppp/switch/12d1:155b: line 2: 0x12d1: not found /etc/ppp/switch/12d1:155b: line 4: 0x12d1: not found /etc/ppp/switch/12d1:155b: line 5: 0x1506: not found /etc/ppp/switch/12d1:155b: line 6: 0: not found [root@stlinux]#/root/spark/modules/option.ko | grep 1506 -sh: /root/spark/modules/option.ko: Permission denied [root@stlinux]# [root@stlinux]#
А вот после команд:
echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
/etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b
cat /proc/tty/driver/usbserial
Спойлер :
[root@stlinux]#echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id [root@stlinux]#/etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b Reading config file: /etc/ppp/switch/12d1:155b * usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above) ! PLEASE REPORT NEW CONFIGURATIONS ! DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 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="55534243000000000000000000000011060000000100000000000000000000" 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 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 002 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found device in default mode, class or configuration (1) Accessing device 002 on bus 001 ... Getting the current device configuration ... OK, got current device configuration (1) Using interface number 0 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: Model String: Mass Storage Revision String: 2.31 ------------------------- USB description data (for identification) ------------------------- Manufacturer: Product: Mobile Connect Serial No.: not provided ------------------------- Setting up communication with interface 0 Using endpoint 0x01 for message sending ... Trying to send message 1 to endpoint 0x01 ... USB error: error reaping URB: No such device Device seems to have vanished right after sending. Good. Device is gone, skipping any further commands -> Run lsusb to note any changes. Bye. [root@stlinux]#cat /proc/tty/driver/usbserial usbserinfo:1.0 driver:2.0 0: module:option name:"GSM modem (1-port)" vendor:12d1 product:1506 num_ports:1 port:1 path:usb-stm-ehci.0-1 1: module:option name:"GSM modem (1-port)" vendor:12d1 product:1506 num_ports:1 port:1 path:usb-stm-ehci.0-1 [root@stlinux]#
Modemdial и там и здесь срабатывает.