Страница 1 из 1

e173 chan_dongle error

Добавлено: 02 апр 2012, 16:41
jjoloka
Имеем:
FreePBX-Distro-Net-32bit-1.89.210.57:
- CentOS release 5.7 (Final) - 2.6.18-274.3.1.el5 с установленными VMware Tools;
- VMware 8.0.2 build-591240;
- 3 модема huawei e173;
- usb_modeswitch
****
-bash-3.2# ls -l /dev/ttyUSB*
crw-rw---- 1 root uucp 188, 0 Mar 31 11:44 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Mar 31 11:44 /dev/ttyUSB1
crw-rw---- 1 root uucp 188, 10 Mar 31 11:44 /dev/ttyUSB10
crw-rw---- 1 root uucp 188, 11 Mar 31 11:44 /dev/ttyUSB11
crw-rw---- 1 root uucp 188, 2 Mar 31 11:44 /dev/ttyUSB2
crw-rw---- 1 root uucp 188, 3 Mar 31 11:44 /dev/ttyUSB3
crw-rw---- 1 root uucp 188, 4 Mar 31 11:44 /dev/ttyUSB4
crw-rw---- 1 root uucp 188, 5 Mar 31 11:44 /dev/ttyUSB5
crw-rw---- 1 root uucp 188, 6 Mar 31 11:44 /dev/ttyUSB6
crw-rw---- 1 root uucp 188, 7 Mar 31 11:44 /dev/ttyUSB7
crw-rw---- 1 root uucp 188, 8 Mar 31 11:44 /dev/ttyUSB8
crw-rw---- 1 root uucp 188, 9 Mar 31 11:44 /dev/ttyUSB9

****
-bash-3.2# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 002: ID 12d1:140c Huawei Technologies Co., Ltd.
Bus 001 Device 003: ID 12d1:140c Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 004: ID 12d1:140c Huawei Technologies Co., Ltd.
****
dongle.conf
; dongle required settings
[e173_1]
audio=/dev/ttyUSB0 ; tty port for audio connection; no default value
data=/dev/ttyUSB1 ; tty port for AT commands; no default value
[e173_2]
audio=/dev/ttyUSB2 ; tty port for audio connection; no default value
data=/dev/ttyUSB3 ; tty port for AT commands; no default value
[e173_3]
audio=/dev/ttyUSB4 ; tty port for audio connection; no default value
data=/dev/ttyUSB5 ; tty port for AT commands; no default value
****
Получаем ошибку:
-- [e173_1] Trying to connect on /dev/ttyUSB1...
[2012-04-02 15:21:51] WARNING[4973]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB1: Permission denied
-- [e173_2] Trying to connect on /dev/ttyUSB3...
[2012-04-02 15:21:51] WARNING[4973]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB3: Permission denied
-- [e173_3] Trying to connect on /dev/ttyUSB5...
[2012-04-02 15:21:51] WARNING[4973]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB5: Permission denied

Re: e173 chan_dongle error

Добавлено: 02 апр 2012, 17:00
jjoloka
Решил эту проблему она была с правами появилась другая:

[2012-04-02 15:59:10] ERROR[9181]: at_response.c:364 at_response_error: [e173_2] Getting IMSI number failed
-- [e173_2] Error initializing Dongle
-- [e173_2] Dongle has disconnected
[2012-04-02 15:59:12] ERROR[9180]: chan_dongle.c:433 do_monitor_phone: [e173_1] timedout while waiting 'OK' in response to 'AT'
-- [e173_1] Error initializing Dongle
-- [e173_1] Dongle has disconnected
[2012-04-02 15:59:12] ERROR[9182]: chan_dongle.c:433 do_monitor_phone: [e173_3] timedout while waiting 'OK' in response to 'AT'
-- [e173_3] Error initializing Dongle
-- [e173_3] Dongle has disconnected
-- [e173_1] Trying to connect on /dev/ttyUSB1...
-- [e173_1] Dongle has connected, initializing...
-- [e173_2] Trying to connect on /dev/ttyUSB3...
-- [e173_2] Dongle has connected, initializing...
-- [e173_3] Trying to connect on /dev/ttyUSB5...
-- [e173_3] Dongle has connected, initializing...

Re: e173 chan_dongle error

Добавлено: 20 окт 2012, 20:21
starplus
вот неужели трудно написать как сменить права?
у многих одинаковые проблемы.
причем ставишь один раз - проблемы одни, второй раз - другие.
всё одинаковое, комп, ПО, но результат разный.

у кого подобный гемор -попробуйте
chmod 666 /dev/ttyUSB*

долго курил разные форумы и нашел.
и совсем не надо ставить usb_modeswitch никакой...
астер 1.8.17, chan_dongle 1.14 и все работает.

Re: e173 chan_dongle error

Добавлено: 20 окт 2012, 21:34
awsswa
Модем по USB давно уже никто не опознает

[e173_3]
audio=/dev/ttyUSB4 ; tty port for audio connection; no default value
data=/dev/ttyUSB5 ; tty port for AT commands; no default value

[e173_3]
#audio=/dev/ttyUSB4 ; tty port for audio connection; no default value
#data=/dev/ttyUSB5 ; tty port for AT commands; no default value
imei=232131231312323 ; списать с модема