How do LoRa devices connect to Tencent Cloud?

table of Contents

Preface

1. New LoRa equipment on Tencent Cloud

2. LoRa equipment goes online

Three, online debugging

Conclusion


Preface

Earlier we have introduced " How to parse LoRa node data on Tencent Cloud ", that is to say, we already know how to create data analysis scripts for LoRa products on Tencent Cloud, so that all LoRa belonging to the type of node product All devices can use this script for data analysis.

For example, if we set up multiple identical LoRa temperature and humidity sensors in a farm, we can create a product for these multiple identical temperature and humidity sensors. This product can be associated with multiple LoRa devices, that is, it can be associated with multiple same. The LoRa temperature and humidity sensor, so that the data uploaded to the server by these temperature and humidity sensors can be analyzed in accordance with the data analysis rules set by the product.

This article introduces how to add LoRa devices (LoRa nodes) on Tencent Cloud server and go online.

 

1. New LoRa equipment on Tencent Cloud

As shown in Figure 1, on the Tencent Cloud Internet of Things development platform, in the fourth step "device debugging" page, click [New Device], then enter the device name, DevEUI, AppKey, and then click Save, you can Complete the addition of LoRa equipment.

 

Schematic diagram of Tencent Cloud's new LoRa device
Figure 1 Schematic diagram of Tencent Cloud's new LoRa device

 

Among them, in the DevEUI column, fill in the specific "identity information" of the LoRa device. Each device has a unique identification address DEVEUI.

AppKey refers to the key of the device. In this example, fill in 6fbdbb37b8c0dbd82af4e93f74c64177, the user can fill in other values.

It should be noted that on the Tencent Cloud platform, DevEUI and AppKey should use lowercase letters uniformly.

How to obtain DevEUI and AppKey:

If it is the node RAK7205 produced by RAK Huilian, its DevEUI is printed on the device, as shown in Figure 2, you can see that the DevEUI is 60c5a8fffe75fefe on the device.

 

Schematic diagram of LoRa node of RAK Huilian
Figure 2 Schematic diagram of LoRa node of RAK Huilian

 

If the outer surface of the LoRa node does not carry DevEUI information, or the information carried cannot be seen clearly, you can use the AT command to obtain the specific DevEUI information of the LoRa device. The at command for the existing LoRa node module to obtain the triplet information is : At+get_config=lora:status.

This command can also get AppKey information.

 

On the interface shown in Figure 1, after clicking "Save", you can see the newly created device in the device list shown in Figure 3.

 

Schematic diagram of the device display page of Tencent Cloud Platform
Figure 3 Schematic diagram of the device display page of Tencent Cloud Platform

 

2. LoRa equipment goes online

After the first step, we have built a new LoRa device corresponding to the actual LoRa node on the Tencent Cloud IoT development platform.

Next, we also need to put the LoRa device online so that it can send data to Tencent Cloud server.

 

We still take the node product RAK7205 of RAK Huilian as an example to introduce how to put the node online.

We connect RAK7205 to the computer through the usb port, open the com tool provided by RAK RAK Huilian to set the device triples and start join:

at+set_config=lora:dev_eui:60c5a8fffe75fefe

at+set_config=lora:app_eui:800000000000001b

at+set_config=lora:app_key:6fbdbb37b8c0dbd82af4e93f74c64177

at+join

 

Schematic diagram of LoRa node join launched by RAK's com tool
Figure 4 Schematic diagram of LoRa node join initiated by RAK's com tool

 

As shown in Figure 4, seeing "Join Success" means that the LoRa device has been online and successfully connected.

 

Three, online debugging

After we successfully put the LoRa device online, we can click "Online Debugging" on the interface shown in Figure 3 on the Tencent Cloud Internet of Things development platform, as shown in Figure 5, and you will be able to see it after a while The parsed data.

 

Figure 5 LoRa device online debugging on Tencent Cloud IoT platform
Figure 5 LoRa device online debugging on Tencent Cloud IoT platform

 

As can be seen from Figure 5, the data reported by LoRa devices to Tencent Cloud includes multiple types, because RAK7205 includes more sensor types.

 

Conclusion

This article describes how to add LoRa devices (LoRa nodes) on Tencent Cloud servers and go online. So far, we have learned how to add LoRa devices to Tencent Cloud and view data. Regarding Tencent Cloud and LoRa products, we will have other articles in the future, so stay tuned.

Guess you like

Origin blog.csdn.net/RAKwireless/article/details/107341408