AT Modem Firmware
AT Modem is a LoRaWAN AT command module integrating the Acklio FullSDK library and used in the UDP Client and DLMS Demo examples.
DTG and NET API are both supported in the same binary, knowing that:
- Use Case 1 uses AT Modem with DTG API (datagram interface)
- Use Case 3 uses AT Modem with NET API (network interface)
Prerequisites
- Ubuntu 20.04 (at least 18.04) ⬇️
- A serial port terminal such as minicom ⬇️
- One of the supported targets listed hereinafter
Supported Targets
A firmware is available in this repository for the following targets:
- B-L072Z-LRWAN1 board
- STM32WL55JC board
- STM32L476RG-Nucleo with LR1110 extension shield
- STM32L476RG-Nucleo with sx1261 extension shield
Build and Flash the Firmware
The firmware integrates Acklio FullSDK.
- Click here to access the "AT Modem Firmware" project on Acklio's GitLab.
- Click here to access the "WL55 Reference Design with AT Modem" project on Acklio's GitLab.
Connect the development kit to the computer, go to the root directory then execute the command below depending on your board and shield:
B-L072Z-LRWAN1 board
make flash-B-L072Z-LRWAN1
STM32WL55JC board
make flash-NUCLEO-WL55JC1
STM32L476RG-Nucleo board with LR1110 shield
make flash-STM32L476-lr1110
STM32L476RG-Nucleo board with sx1261 shield
make flash-STM32L476-sx1261
Check that the firmware has been correctly flashed on the board, by connecting in serial using minicom:
minicom -D /dev/ttyACM0 -b 9600 -w
When the user types AT
in the terminal, it should return OK
.
Serial Configuration (Using Minicom)
Run the following command:
minicom -D /dev/<interface_name> -b 9600 -w
<interface_name>
is usuallyttyACM0
but it can be a different interface name.
Once the serial connection is opened, you have to change some settings in Minicom:
- Access the Minicom command summary (by default the key combination is
CTRL + A Z
). - Press
O
to access the Minicom configuration panel. - Go to "Screen and keyboard".
- Set "Local echo" to "Yes".
- Set "Add carriage return" to "Yes".
- Press
ESC
to exit then save the settings. - Close the serial connection then open it again to make configuration changes operational.
Now that the minicom is configured, open the Minicom terminal to check the serial connection. If the connection is fine, the AT command returns the following:
AT
OK
You are now able to send AT commands to the board through the minicom terminal.
- AT Modem is only supporting OTAA mode
- LoRa confirmed mode is not supported
- Class B is not supported