Cellular modules can be controlled using special AT commands provided by the module manufacturer. There are several serial monitor tools that can be used to send AT commands to the cellular module. The most common is the minicom application on Linux. One can use Cutecom as GUI supported tool.
As long as the right configurations such as the device port, baud rate are selected right; any tool can be used.
Minicom is a text-based serial port communications program.
Using minicom, AT commands can be sent to Shield/HATs available on Sixfab.
Install the program with:
sudo apt install minicom
Use the built-in logs to identify the different serial ports on your system. In order to find the name of your port(s) enter this command in the terminal:
There are two ways to send AT commands to the cellular module, USB and UART ports.
Type the following to send AT command to HAT via device: ttyUSBx at baudrate 115200
sudo minicom -b 115200 -D /dev/ttyUSB2
To use the UART follow the steps mentioned in the UART Configuration guide first.
Type the following to send AT command to HAT via device: ttyS0 at baudrate 115200
sudo minicom -b 115200 -D /dev/ttyS0
It should result in an OK reply if successfully received by the module or an ERROR if not interpreted correctly.
If the configurations are not selected from the command line as mentioned before, the following command can be used to select the detailed configuration.
We can get help with the CTRL+A, Z like below.
To exit Minicom when in terminal mode press CTRL+A to get a message bar at the bottom of the terminal window and then press X.
For details on how to use minicom, refer to the following webpage:
To know about the supported AT commands by the module, check the following links.