The mDot is pre-loaded with custom AT Command firmware, which turns the serial interface into a command port for configuring the mDot. You can use this firmware to test LoRa connections and to develop production applications where a host processor issues AT commands to the mDot.
This article shows how you can configure an mDot to connect to AS923 Network.
You need a serial program. The mDot accepts serial commands via the USB port, and you need to set the correct baud rate.
Here are some of the popular serial terminal program.
- screen - Linux and Mac based terminal program
- coolterm - Windows, Mac and Linux
- puttY - Windows, Mac and Linux
- goSerial - Mac
- serial - Mac
- zterm - Mac
- realterm - Windows
In this article, we will use screen terminal program to configure the mDot. You can install screen by opening a terminal and running
brew install screen
|The screen program normally comes pre-loaded into your mac. You only need to run the command above if its not installed.|
Configuration by AT Commands
On a mac, open a terminal and type.
screen /dev/tty.usbmodem141221 115200
The highlighted number may vary in your machine. But always choose the one ending with 2x.
|You may see another port e.g. /dev/tty.usbmodem141213 but this port is for debugging.|
# Set to Public Network
# Set the Frequency Sub-Band
# Set Adaptive Data Rate ON
# Turn ON verbose mode
# Set the current Data Rate to DR2 (51 bytes No dwell time)
#Set debugging Level to TRACE
# save changes
|The default JOIN settings for mDot is set to OTAA. If you want to change the settings, you can do so with AT+NJM=(0 ABP, 1 OTAA, 2 Peer to Peer)|
For a complete set of AT Commands available to mDot, refer to this documentation.
Your mDot is now ready to connect to the network. The next step is to add the mDot to our network.