2.
Configuration setting and related command
ABP mode:
In ABP mode, the user needs to configure 3 parameters, which are
device address, network session key, application session key
.
The following AT commands are for end user to set the 3 parameters on
WMDD-209A.
AT+ECHO=1 /*show the characters user
input*/
AT+CMODE=1 /*set node to ABP mode*/
AT+CDEVADDR=<
device address
> /*set device address*/
AT+CNWKSKEY=<
network session key
> /*set network session key*/
AT+CAPPSKEY=<
application session key
> /*set application session
key*/
AT&W /*save the configuration*/
ATZ /*reboot the node*/
If the gateway is set well too, users can follow the instruction to send
packets.
AT+DTTX /*quick send, the message is device
address*/
AT+DTX=<msgLength>,<shot msg>
AT+DTX=2,"Hi"
AT+DTX=11,"Hello World"
If for testing the LoRa function, you can use the following configuration.
AT+CDEVADDR=0D000016
AT+CNWKSKEY=933C5ACB0D941ED1EC32DA7D9174C452
AT+CAPPSKEY=933C5ACB0D941ED1EC32DA7D9174C452