Which services are using /dev/ttyUSB1 /dev/ttyUSB2

i have a phone alarm system running on a RUT241.
It uses serial port for starting a call and sending sms.
I know, there is the sms api, but i also need to start calls, so i need to use serial ports.
The problem is that there is constantly communication on the two AT tty ports to the modem.
Can i stop the services, do my call stuff, and start the services again?

BR, Andreas


Stopping the related services will also disable the internet connection on the device.
We do have a command to initiate a phone call from the router:

ubus call gsm.modem0 send_voice_call '{"number":"00<country_code><phone_number>"}'

Make sure you’re running the latest firmware version.
Alternatively, AT commands can be sent to the modem using the gsmctl service with -A argument. Command to make a call looks like so:

gsmctl -A 'ATD00<country_code><phone_number>;'

Hope this helps!

Best regards,

Thanks, this may help. Is there also possibility to check if the voice call gets answered/denied? As far i know this modem, there is a signal via serial to get this information. But its hard to find when the serial is already in use.
If this is not possible via API, it would be no problem if the internet connection disappears for a few minutes, as the service will get started again after the call.


If you are using a device with Quectel modem, the command to check call status is this:

gsmctl -A 'AT+CLCC'

And the response contains the following information:

Best regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.