fabioprado / asterisk-chan-dongle

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

E173z-1 Discovery on wrong tty #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have E173z-1 with this vendor and product ids
0x12d1, 0x1506
In file pdiscovery.c I've found, that this model is supported but with wrong 
order of ports in struct device_ids.

Original 
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, 0x1436, { 4, 3, /* 0 */ } },          /* E1750 */
        { 0x12d1, 0x1506, { 1, 2, /* 0 */ } },          /* E171 firmware 21.x : thanks Sergey Ivanov */
};

When I changed last line to 
{ 0x12d1, 0x1506, { 2, 1, /* 0 */ } },
discovery works correctly. 

Original issue reported on code.google.com by nameta...@gmail.com on 22 Oct 2013 at 11:10

GoogleCodeExporter commented 9 years ago
It was me from wrong google account

Original comment by MKa...@gmail.com on 22 Oct 2013 at 11:13

GoogleCodeExporter commented 9 years ago
Thanks.

modeswitch  can assign same IDs for differ models, and and then not possible to 
distinguish.

also AT^U2DIAG (or other device control command) may can change the order of 
ttys

Better way - resolve tty by USB interface #, but this require additional 
library for supporting.

Original comment by bg_...@mail.ru on 30 Dec 2013 at 9:38