Community discussions

MikroTik App
 
User avatar
intelfx
just joined
Topic Author
Posts: 20
Joined: Sun Nov 06, 2016 10:30 am
Location: Moscow, Russia
Contact:

How to execute custom AT commands on a connected modem?

Sun Jan 01, 2017 7:04 pm

Hello,

it is well-known that RouterOS is able to query a running modem for certain predefined readings and information via the `/interface ppp-client info` command. These readings include "signal-strength" (RSSI) and "frame-error-rate" (BER, I guess, but I do not know of any 3G modem that would really report it). I suppose that these readings come as a response to the "AT+CSQ" command.

However, in 3G (WCDMA) networks, RSCP and Ec/Io readings are much more representative of a connection quality than the RSSI reading. In Huawei 3G modems, these readings can be retrieved by executing an "AT^CSNR?" command on the modem, and I would like to do that automatically. There is a way in RouterOS to have an arbitrary conversation with the modem via `/system serial-terminal`, but it is of course impossible to use the serial terminal on a connected modem.

Alternatively, the `/interface ppp info` command has a "user-command" parameter which seems to do what I want, but 1) it messes up output (the response appears in "manufacturer" line) and 2) the whole info command does not work in "once" mode.

Hence, the question: is there a way to execute an arbitrary AT command on a connected modem and receive a response in a scriptable manner?
 
User avatar
intelfx
just joined
Topic Author
Posts: 20
Joined: Sun Nov 06, 2016 10:30 am
Location: Moscow, Russia
Contact:

Re: How to execute custom AT commands on a connected modem?

Sun Jan 15, 2017 7:51 am

So, I've been told in a conversation with Mikrotik support that this feature is planned for inclusion.