* 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 ... 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.
Запустил плагин modemdial и модем приконектился к МТС.Ш@ра работает, но только при перезапуске mgcam.
Вот лог
PPPD is offline. Trying to start ... Trying to switch: Can't find USB modem for switching Trying find port:[ OK ] Starting pppd: Serial connection established. Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 Could not determine remote IP address: defaulting to 10.64.64.64 local IP address 172.28.92.177 remote IP address 10.64.64.64 primary DNS address 213.87.0.1 secondary DNS address 213.87.1.1 [ OK ]
Включая и выключая плагин модем исправно включается и выключается.
После выполнения последовательно этих команд
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
модем стабильно управляется плагином, до перезагрузки реса.
Уважаемый linky, как бы теперь это всё приладить, чтобы можно было запустить на другом ресе простому пользователю, т.к. мой рес выступал в качестве подопытного?
artems, Это последнии файлы? опять смортю лог InquireDevice enabled (default) /etc/ppp/switch/12d1:155b В файле InquireDevice= 0 есть? Покажи мне cat /root/spark/modules/option.ko | grep 1506 Покажи еще все тоже самое но /etc/ppp/usb_modeswitch -W -I -c /etc/ppp/switch/12d1:155b я пока не понял этот ключ нужен или нет твоему модему. Работать будет?
Исправлю все завтра выложу... Получается что хоть в драйверах все есть но нужен пинок echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id По mgcamd это его проблемы что он не умеет инет поднимать (ранее тут выкладывал скрипт на отсрочку его старта пока инета нет) это можно настроить... или лучше его удалить и настроить нормальный оскам, с ним проблем нет
Да в последнем топике файлы последние. Да вот вчера без этого пинка ничего и не получалось.Лог после старта modemdial. Уточни мне всё, что надо показать сейчас сделать, когда Ш@ра работает или перегрузить рес и модем заново прицепить? Да про проблемы mgcamd в связке с 3G видел на форуме, а можно ссылку про настройку оскам?
Вот на первых два пункта
Спойлер:
[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]#
* 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]#
* 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.
может кто то поделится готовым modemdial отредактированным для модема novatel u760 если это можно я не могу заходить по ftp в тюнер а сбросить с флешки готовый плагин в тюнер научился если это возможно скиньте пожайлуста
artems, Обновил 1 пост, все переустанови и попробуй запустить из меню Modemdial и лог покажи /tmp/log
Переустановил плагин. Перегрузил рес с воткнутым модемом. При перезагрузке пишет устанавливает соединение, но модем только мигает. Включил плагин, модем вроде законектился, но потом замигал.Лога небыло. Перезапустил плагин модем приципился на этот раз без пинков.И вот лог.
Спойлер:
PPPD is offline. Trying to start ... Trying to switch: Can't find USB modem for switching Trying find port:[ OK ] Starting pppd: Serial connection established. Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 Could not determine remote IP address: defaulting to 10.64.64.64 local IP address 172.28.215.64 remote IP address 10.64.64.64 primary DNS address 213.87.0.1 secondary DNS address 213.87.1.1 [ OK ]
При перезаагрузке реса с воткнутым модемом и вкл. плагином и с выкл. плагином пишет устанавливается соединение, но модем не реагирут. Перезапуск плагина вручную тот же эффект. Только когда модем выдернуть и вставить и запустить плагин он коннектится и работает.
artems, Там основные грабли это сам СПАРК !!! он убивает мой скрипт, т.к жесткая проверка по марке Хайвей 12d1 Как обойти не знаю... попробуй так 1. В меню реса 3Г убрать все строки APN телефон лог и пас (или попробовать заполнить фигней)
2. Если не пройдет, тогда удалить файлы все из папки /etc/ppp потом установить мой плагин. И опять меню реса 3Г убрать все строки APN телефон лог и пас (или попробовать заполнить фигней)
После удаления настроек 3Г подождите подключаюсь быстро проскакивает и всё.Вроде как не зависает на непонятной загрузке. Что через хаб что напрямую одинаково.
2. Если не пройдет, тогда удалить файлы все из папки /etc/ppp потом установить мой плагин. И опять меню реса 3Г убрать все строки APN телефон лог и пас (или попробовать заполнить фигней)
В PPP много папок и файлов, удалить только файлы или и папки?
Удалил всё в PPP. переустановил плагин. При перезагрузке реса и вкл. плагине modemdial модем сам не подключается а сообщение идёт соединение быстренько проскакивает. При перезапуске плагина модем как бы сначала соединяется, но потом сбрасывается.При повторном запуске плагина модем устойчиво соединяется. Разницы после очистки папки PPP и до впринципе нет. Сообщение подождите соединение проскакивет быстро как и до очистки папки PPP. Это сообщение перестало висеть после того как убрал настройки в меню 3Г. Ну и зависон мгкама как у всех.А что за скрипт задержки запуска этого мгкама, где то на форуме видел, но тогда неактуально было и не помню где видел. Впринципе это уже можно пользовать с этим новым модемом пока спарк под него не обновят. А вот обновят или нет, откуда там узнают про заморочки с этим новым модемом?
linky, как бы теперь это систематизировать, чтобы на другом ресе запустить также такой модем. А то какието файлы добовляли вручную, достаточно ли только плагин modemdial установить?
linky, как бы теперь это систематизировать, чтобы на другом ресе запустить также такой модем. А то какието файлы добовляли вручную, достаточно ли только плагин modemdial установить?
При перезапуске плагина модем как бы сначала соединяется, но потом сбрасывается.При повторном запуске плагина модем устойчиво соединяется.
В GUI Spark есть команда при запуске kill pppd и вот он и прибивает скрипт все это сидит в ywapp.exe, можно поробовать его поправить (но при неверном исправлении прийдется образ лить) Скрипт попробую найти скину тебе
Сделай так, 1. Переустанови стандартное ПО 1,2,58 (или какое было) 2. Установи плагин из 1 поста 3. Раскрой архив и скопируй его через МС (его прийдется тоже переустановить)в /root/spark/etc/ppp заменит файлы Подключи модем и с ним перегрузи рес и покажи мне что в файле /tmp/log2 ? Модема хайвей у меня нет и сам я отловить не могу что и как там происходит
/bin/sh /etc/ppp/usb3gdial судя по этому спарк видет твой модем и начинает выполнять этот скрипт открой этот файл в МС и сотри все что в нем есть попробуй опять как ранее и посмотри Modemdial работать будет?