MaxSok / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

прошивки 21.xxx... #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Если использовать авторежим привязки 
имени устройства к imei модема в dongle.conf 
модемы с новой прошивкой (21.156.00.00.143) не 
работают. 
Проблема в том, что в новых прошивках 
расположение портов изменилось. 
Раньше было так (11.126.85.01.143): 
ttyUSB0 - управляющий устройства 
audio=/dev/ttyUSB1 
data=/dev/ttyUSB2 
В новых: 
audio=/dev/ttyUSB2 
data=/dev/ttyUSB1 
Возможно ли сделать задание портов 
относительным смещением от дата порта. 
Дата порт определяется автоматом, а 
голосовой задается например -1 или +1

Original issue reported on code.google.com by siv...@gmail.com on 4 Apr 2012 at 8:49

GoogleCodeExporter commented 9 years ago
patch pdiscovery.c

Original comment by bg_...@mail.ru on 13 May 2012 at 7:59

GoogleCodeExporter commented 9 years ago
В блок
static const struct pdiscovery_device device_ids[] = {
        { 0x12d1, 0x1001, { 2, 1, /* 0 */ } },          /* E1550 and generic */
//      { 0x12d1, 0x1465, { 2, 1, /* 0 */ } },          /* K3520 */
        { 0x12d1, 0x140c, { 3, 2, /* 0 */ } },          /* E17xx */
// Добавил
        { 0x12d1, 0x1506, { 1, 2, /* 0 */ } },          /* E171 firmware 21.x*/
};
Заработало автоопределение как новых так и 
старых модемов установленных совместно.
Прошу добавить в svn

Original comment by siv...@gmail.com on 16 May 2012 at 7:17

GoogleCodeExporter commented 9 years ago
May be this is job of usb-modeswitch ?

Original comment by bg_...@mail.ru on 20 May 2012 at 5:32

GoogleCodeExporter commented 9 years ago
после usb-modeswitch версии 1.2.3 разбирает именно в 
такой последовательности, имхо лучше 
подстроиться.

Original comment by siv...@gmail.com on 20 May 2012 at 9:42

GoogleCodeExporter commented 9 years ago
fixed in r16

Original comment by bg_...@mail.ru on 28 Dec 2012 at 6:00