-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct identification of ttyUSB #171
Comments
|
In any case, i will have to call a third-party utility to access the ttyUSB device to pull out information about the modem from there, because this can only be found out through the AT command. Therefore, I am looking for a more correct and at the same time simple way. |
Guys, I have found a solution to this problem. Alas, we will have to use third-party mechanisms. I am currently writing a utility in C that will work as a daemon and, when connecting devices, will create symbolic links to devices in the form of identifiers unique to the modem (for example, IMEI). Thus, regardless of the sequence in which the devices are connected, links will be created with a static name, and thus you will not have to reconnect modems in the right order for correct identification inside Asterisk. I will notify you about further work. |
Guys, I'm sharing my development. I checked and tested the calls at home - everything is OK. If you have any suggestions for improvement or participation, please welcome. |
Looks nice. I would suggest placing the IMEI links in a subpath though, e.g.: ( See |
|
I still have ideas for creating a |
udev rules in /dev/serial are always the same
|
Try turning off the PC, swap the USB modems and turn it back on. Draw conclusions. It is necessary to bind not to the PC ports, but to the modem IDs. |
I have several
ttyUSB*
devices that I use in Dongle. The bottom line is that after the system is rebooted, they switch places, and they connect incorrectly in Asterisk. The whole dial plan does not work correctly because of this. Is there a way to correctly identify the devices according to thedongle.conf
file? Or at least by the specifiedIMEI
or serial number to connect this or thatttyUSB*
device correctly?P.S. If possible, provide a link to the code snippet when the connection occurs. I'll try to check something in the interval before connecting, is the specified device in the
dongle.conf
file the one we attached in/dev/ttyUSB*
?UPD1:
I understand that reading the installed devices is here?
UPD2:
Hmm, would it be correct to make an AT request to check the IMEI, does it correspond to what is specified in the configuration file? How correct is it to use this way?
The text was updated successfully, but these errors were encountered: