GSMOPEN dongle port changes randomly
Hi, I am using gsmopen on ubuntu 12.04LTS. With E169 dongle connected as ttyUSB0, ttyUSB1 and ttyUSB2. It runs well at first. But after days, all call failed. Checked the tty files, the ports on system is somehow changed to ttyUSB0, ttyUSB1 and ttyUSB3. ttyUSB2 just disappeared. Does anyone meet the same problem? How can I make it stable? Thanks. Regards, Eric
unfortunately this seems to be a problem with some USB bus adapter. Best I can counseil is: 1) use an external powered (eg: with a power supply in the wall socket) USB hub, instead of connecting directly the dongle to the computer 2) ask ubuntu support or developers how to obtain predictable devices (maybe rules in udev?) On 10/31/12, Yihui Li <xyangni@gmail.com> wrote:
Hi,
I am using gsmopen on ubuntu 12.04LTS. With E169 dongle connected as ttyUSB0, ttyUSB1 and ttyUSB2. It runs well at first. But after days, all call failed. Checked the tty files, the ports on system is somehow changed to ttyUSB0, ttyUSB1 and ttyUSB3. ttyUSB2 just disappeared. Does anyone meet the same problem? How can I make it stable? Thanks.
Regards, Eric
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Some USB dongles with some firmware versions can sometimes spontaneously reboot or even freeze. In case of reboot, for host system it looks like modem has been unplugged and then plugged back. You can check kernel log (usually /var/log/kern.log in ubuntu) for related messages from USB subsystem. Device files /dev/ttyUSB* doesn't have any stable numbering scheme, especially when multiple USB-Serial adapters (or modems) connected to system. You can use symlinks from /dev/serial/by-id or /dev/serial/by-path if you wish stable device paths. Unfortunately, most vendors doesn't assign serial numbers to their dongles, so by-id/ not usable when you have more than one dongle from one vendor with same model name. Symlinks in by-path/ should be stable when connecting devices directly to motherboard USB ports without any USB hubs, but I'm not quite sure in that... Also, mod_gsmopen from 1.2.3 doesn't work with long device names, here is the bugreport with patch: http://jira.freeswitch.org/browse/FS-4691. 31.10.2012 19:46, Yihui Li пишет:
Hi,
I am using gsmopen on ubuntu 12.04LTS. With E169 dongle connected as ttyUSB0, ttyUSB1 and ttyUSB2. It runs well at first. But after days, all call failed. Checked the tty files, the ports on system is somehow changed to ttyUSB0, ttyUSB1 and ttyUSB3. ttyUSB2 just disappeared. Does anyone meet the same problem? How can I make it stable? Thanks.
Regards, Eric
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- С уважением, Иван Миронов <ivan.mironov@infra-it.ru>, ООО "Инфра-АйТи". Мобильный телефон: +7-912-479-2263
On Wed, Oct 31, 2012 at 3:47 PM, Ivan Mironov <ivan.mironov@infra-it.ru> wrote:
Some USB dongles with some firmware versions can sometimes spontaneously reboot or even freeze. In case of reboot, for host system it looks like modem has been unplugged and then plugged back. You can check kernel log (usually /var/log/kern.log in ubuntu) for related messages from USB subsystem.
Device files /dev/ttyUSB* doesn't have any stable numbering scheme, especially when multiple USB-Serial adapters (or modems) connected to system. You can use symlinks from /dev/serial/by-id or /dev/serial/by-path if you wish stable device paths. Unfortunately, most vendors doesn't assign serial numbers to their dongles, so by-id/ not usable when you have more than one dongle from one vendor with same model name. Symlinks in by-path/ should be stable when connecting devices directly to motherboard USB ports without any USB hubs, but I'm not quite sure in that... Also, mod_gsmopen from 1.2.3 doesn't work with long device names, here is the bugreport with patch: http://jira.freeswitch.org/browse/FS-4691.
Hello Ivan, patch integrated in mainline. Can you please share your udev by-path technique? would be very very useful! -giovanni
31.10.2012 19:46, Yihui Li пишет:
Hi,
I am using gsmopen on ubuntu 12.04LTS. With E169 dongle connected as ttyUSB0, ttyUSB1 and ttyUSB2. It runs well at first. But after days, all call failed. Checked the tty files, the ports on system is somehow changed to ttyUSB0, ttyUSB1 and ttyUSB3. ttyUSB2 just disappeared. Does anyone meet the same problem? How can I make it stable? Thanks.
Regards, Eric
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- С уважением, Иван Миронов <ivan.mironov@infra-it.ru>, ООО "Инфра-АйТи". Мобильный телефон: +7-912-479-2263
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
participants (3)
-
Giovanni Maruzzelli
-
Ivan Mironov
-
Yihui Li