Пробую подружить huawei k3715 с астериском. Проблема похоже что больше на стороне линукса, но , возможно, кто-то на форуме сталкивался с подобным.
в консоле астериска
[2016-07-14 22:17:48] WARNING[1839]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB1: No such file or directory
[2016-07-14 22:18:28] WARNING[1839]: chan_dongle.c:235 opentty: tcgetattr() failed for /dev/ttyUSB2: Input/output error
ttyUSB устройства появляются:
| Код: |
| root@raspbx:~# ls -ls /dev/ttyUSB* 0 crwxrwxrwx 1 asterisk uucp 188, 0 Jul 14 22:15 /dev/ttyUSB0 0 crwxrwxrwx 1 asterisk uucp 188, 1 Jul 14 22:15 /dev/ttyUSB1 0 crwxrwxrwx 1 asterisk uucp 188, 2 Jul 14 22:15 /dev/ttyUSB2 |
но похоже что эти устройства нестабильны в dmesg каждые 20 секунд отпадают:
| Код: |
| [ 8006.429865] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2 [ 8006.429903] option 1-1.3:1.2: device disconnected [ 8006.509003] usb 1-1.3: reset high-speed USB device number 11 using dwc_otg [ 8006.615773] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 8006.616027] option 1-1.3:1.0: GSM modem (1-port) converter detected [ 8006.616235] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0 [ 8006.616288] usb-storage 1-1.3:1.1: USB Mass Storage device detected [ 8006.616479] option 1-1.3:1.1: GSM modem (1-port) converter detected [ 8006.616636] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1 [ 8006.616682] usb-storage 1-1.3:1.2: USB Mass Storage device detected [ 8006.616863] option 1-1.3:1.2: GSM modem (1-port) converter detected [ 8006.617032] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2 [ 8025.629323] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0 [ 8025.629360] option 1-1.3:1.0: device disconnected [ 8025.630359] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1 [ 8025.630406] option 1-1.3:1.1: device disconnected [ 8025.630456] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-2) [ 8025.630474] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-2) [ 8025.630488] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-2) [ 8025.630499] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-2) [ 8026.429836] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2 |
Не похоже что это питание , там USB3.0 (raspberry pi 3) + 2500mA блок питания и
| Код: |
| root@raspbx:/# lsusb -v |grep 'Bus\|MaxPower' Bus 001 Device 011: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem MaxPower 500mA |
Так же в самом начале распознается disk /dev/sr0 где хранится Mobile Partner и еще какие-то вещи.
Это устройство стабильно и не отпадает.
Я поискал на счет usb_modeswitch, но ничего определенного не нашлось, вроде как все прописано правильно да и устройства /dev/ttyUSB0,1,2 появляются.
Спасибо за любые советы.