RAK RAK7431 Quick Start Manual Download Page 27

Documentation Center

Figure 35: Publish reset the default LoRa configuration

Open the MQTT subscription bar to see the upstream message for successful execution: "9D00010000".

Figure 36: Received Data

LORA configuration default values:

Read the DTU Configuration

Downlink instruction message format:

DATARATE

TXPOWER

CONFIRM

RETRY

ADR_ENABlE

DUTYCYCLE_ENABLE

0 – DR_0

19 -19dBm

1 – open

3 times

1 – open

0 – close

{

"comfirmed"

:true,  

"fPort"

:129,  

"data"

:

"1D00010000"

}

 

sh

Summary of Contents for RAK7431

Page 1: ...t Tool MQTTfx Tool Product Configuration Typical Network Application RAK7431 converts data from the RS485 protocol into LPWAN wireless messages and delivers it to a cloud server through an LPWAN gatew...

Page 2: ...he RS485 network Figure 2 RAK7431 bridge with connected sensor and power supply Data Interface Configuration The RAK7431 RS485 serial interface can support up to 16 RS485 devices VOUT on the data inte...

Page 3: ...e WEB Management Platform documentation 2 Setup the RAK7249 WisGate Edge Max using its Built in Network Server by following this guide Adding Application 1 To enter the application configuration inter...

Page 4: ...which press Save Apply 5 You will be returned to the Application page Select Edit on the created application Figure 6 Application list 6 Enter the Device EUI and press Add NOTE The RAK7431 Device EUI...

Page 5: ...the RAK7431 to the Built In Server RAK7431 Configuration Connect the RAK7431 to your Network 1 Connect the RAK7431 to a computer using the Micro USB cable 2 Open the RAK Serial Tool and select the co...

Page 6: ...run the command To check the previously configured Application EUI and Key run the commands Figure 10 Configuring the RAK7431 Set the Frequency Region The node supports the following Regional Frequenc...

Page 7: ...needs to be consistent with the baud rate of the sensor which is 9600 The AT command for execution is Operating and Activation Mode Settings 1 Supported operating modes are two Class A and Class C To...

Page 8: ...mat can be divided into two types transparent mode and non transparent mode In transparent mode the Modbus execution instruction response data data received by the node will be directly forwarded thro...

Page 9: ...d the corresponding response data through the LoRaWAN network The device turns on the scheduled polling by default The AT command for this is NOTE The modification takes effect after restart Figure 12...

Page 10: ...ture and humidity sensor in the example and the RS485 address the polling instruction should be Example If you have added multiple RS485 temperature and humidity sensors continue to increase the polli...

Page 11: ...tion sent to the Sensors over RS485 Data Interface DTU Rx The sensor data received LoRa Tx Send the received data through a LoRaWAN network Figure 13 Data in transparent mode Figure 14 Data in non tra...

Page 12: ...ter installation the MQTT Client must be configured Select local mosquitto from the drop down list and click the edit connection profiles icon marked in the image below to open the settings page Figur...

Page 13: ...o the MQTT Broker Figure 18 MQTT fx connected successfully If we want to receive all data from the MQTT Bridge we can use the wildcard character 5 Choose the Subscribe tab enter the wildcard and press...

Page 14: ...s in base64 format which has to be converted to hex string to be useful We can change the data format from the built in server settings 6 This is done by going to Gateway Application Integrations Data...

Page 15: ...Documentation Center Figure 21 Change the Data Encode Decode Type Now all received data will be in HEX String...

Page 16: ...eld in HEX format RAK7431 Remote Control and Configuration via MQTT fx To remotely control the RAK7431 you need to publish messages to the Gateway s Network Server MQTT TX topic Add a Scheduled Pollin...

Page 17: ...igure 23 Data arrangement 1 DTU command word DTU_CMD MSER MDATA_LEN MDATA 0x03 2Byte 2Byte TASK_ID DATA 1Byte nByte Parameter Description confirmed true This indicates that the downlink to the RAK7431...

Page 18: ...pic After publishing the data we can see the downlink instruction and uplink answer from the RAK Serial Tool Figure 25 Received data and sent an answer Message format when execution is successful The...

Page 19: ...of the task Remove the Scheduled Polling Task List Downlink instruction message format Example Removal of timed polling temperature and humidity sensor task order on a node Publish the topic DTU_CMD...

Page 20: ...gure 27 Remove poll downlink message Message format when execution is successful DTU_CMD MSER MDATA_LEN MDATA 0x84 2Byte 2Byte TASK_ID 1Byte Application 1 device 60c5a8fffe75404b tx confirmed true fPo...

Page 21: ...ar sees the upstream message 84000100010101 which means the task was successfully removed Read the Scheduled Polling Task List Downlink instruction message format Publish topic Content DTU_CMD MSER MD...

Page 22: ...T subscription column that is to see to the performance of the above line 8500010009010103000000002C40B is the query to the task the order ID is 1 the task order content is 010300000002C40B example re...

Page 23: ...age from the node Read the LoRa Configuration Downlink instruction message format Publish topic Content DTU_CMD MSER MDATA_LEN MDATA 0x06 2Byte 2Byte 0Byte Application 1 device 60c5a8fffe75404b tx con...

Page 24: ...nsmit power level 0 20 CONFIRM Whether to turn on ACK 0 off 1 on RETRY Maximum re transmission times when ACK is on 0 15 ADR Whether to turn on the dynamic rate adjustment 0 off 1 on DUTY CYCLE Whethe...

Page 25: ...ge format for the successful execution above Change the LoRa Configuration Downlink instruction message format Publish topic Content The above command changes the data rate to 1 and the transmit power...

Page 26: ...sage format Open the MQTT subscription bar to see the upstream message for successful execution 8700010000 Figure 34 Received confirmation message Reset the default LoRa Configuration Publish topic Co...

Page 27: ...stream message for successful execution 9D00010000 Figure 36 Received Data LORA configuration default values Read the DTU Configuration Downlink instruction message format DATARATE TXPOWER CONFIRM RET...

Page 28: ...s after bus timeout 0 turn off retry function RS485 485 bus parameters Open the MQTT subscription bar to see the upstream message 8800010000800000003C010050 to read the DTU configuration according to...

Page 29: ...tion message format Publish topic Content The above command changes the polling period to only 1 hour DTU_CMD MSER MDATA_LEN MDATA 0x09 2Byte 2Byte POLL ENABLE POLL PERIOD BUS TIMEOUT RETRY RS485 1Byt...

Page 30: ...execution successful Open the MQTT subscription bar to see the upstream message for successful execution 8900010000 Figure 40 Received confirmation message Reset the default DTU Configuration Publish...

Page 31: ...subscription bar to see the upstream message for successful execution 9E00010000 Figure 42 Received Data DTU Configure the initial value Last Updated 9 13 2020 2 53 36 PM POLL_ENABLE POLL_PERIOD BUS_T...

Reviews: