AT Commands: Difference between revisions

From Teltonika Networks Wiki
(Created page with "'''AT commands''' ("AT" meaning 'attention') are instructions used to control a modem. ==Summary== The command set consists of a series of short text strings which can be co...")
 
No edit summary
Line 1: Line 1:
'''AT commands''' ("AT" meaning 'attention') are instructions used to control a modem.
'''AT commands''' ("AT" meaning 'attention') are instructions used to control a modem.
 
__TOC__
==Summary==
==Summary==


Line 6: Line 6:


==gsmctl commands==
==gsmctl commands==
'''gsmctl''' is a set of shell commands that can request information from or perform operations on a modem. In other words, gsmctl is a way to use AT commands in shell form.


   -p, --ip <INTERFACE> Get IP of logical interface
   -p, --ip <INTERFACE> Get IP of logical interface
Line 11: Line 13:
   -r, --brecv <INTERFACE> Get number of bytes recieved
   -r, --brecv <INTERFACE> Get number of bytes recieved
   -j, --connstate Get 3G connection state
   -j, --connstate Get 3G connection state
==AT command usage==
To use a specific AT command via SSH, you can use the ''gsmctl -H''. After this your console will enter shell mode where you can then just type AT commands in their regular format. Or you can use ''gsmctl -A <AT_COMMAND>'' to execute AT commands one at a time.

Revision as of 08:48, 21 February 2018

Main Page > General Information > Configuration Examples > Modem control > AT Commands

AT commands ("AT" meaning 'attention') are instructions used to control a modem.

Summary

The command set consists of a series of short text strings which can be combined to produce commands for operations such as dialing, managing SMS functions, and changing the parameters of the connection. Many of the commands that are used to control wired dial-up modems, such as ATD (Dial), ATA (Answer), ATH (Hook control) and ATO (Return to online data state), are also supported by GSM/GPRS modems and mobile phones. This section is an overview of some AT commands that can be used with RUT routers.

gsmctl commands

gsmctl is a set of shell commands that can request information from or perform operations on a modem. In other words, gsmctl is a way to use AT commands in shell form.

 -p, --ip <INTERFACE>		Get IP of logical interface
 -e, --bsent <INTERFACE>	Get number of bytes sent
 -r, --brecv <INTERFACE>	Get number of bytes recieved
 -j, --connstate		Get 3G connection state

AT command usage

To use a specific AT command via SSH, you can use the gsmctl -H. After this your console will enter shell mode where you can then just type AT commands in their regular format. Or you can use gsmctl -A <AT_COMMAND> to execute AT commands one at a time.