In the previous topic, we have covered the quick start of Sufficient IoT Hub and made a fun little game. Next, we will cover one of its core functions: IoT (Internet of things).
Sufficient IoT Hub supports LoRaWAN, which is one of the most widely used iot protocols today. In this topic we will demonstrate how to use Sufficient IoT Hub as a node and connect to LoRaWAN Server through HT-M7603.
Configure the Sufficient IoT ApplicationConfiguration
Go to the /home/lora/linux_lora/build
directory and execute the following statement, which will generate the executable demo under the /home/lora/linux_lora/bin
path, the executable file demowill be created.
cmake ..
make clean
make
License Validation
When running for the first time, or change a TF card running system, you may need a license to activate the device.
cd /home/lora/linux_lora/bin/
Execution ./demo
Certificate verification failed
Please provide a correct license! For more information:
http://www.heltec.cn/search/
ChipID=303030303337
Open the address connection to obtain the license, enter the ChipID of the product obtained in the previous step, and you can obtain the required license.
Use the shell command make menuconfig
to open the configuration interface, find the license input option, and enter the aforementioned license. Save and exit.
When the Sufficient IoT Application is correctly compiled and lincese actived, use the following statement to enter the configuration interface, you can configure the parameters of LoRaWAN.
cd /home/lora/linux_lora/build
make menuconfig
Then you will see a menu like this:
In this case, we set the
class
to class A
region
to US915 region
network access method
choose OTAA (Over The Air Activation), go to this option and set some basic information of LoRaWAN communication. This configuration information will be used later
LoRaWAN upload data selection
, it can set some custom data to be sent in LoRaWAN format as test, here we set it to: 11223366
The other parameters to the default settings, the explanation of each parameter can be found in the operation documentation: https://docs.heltec.org/en/dev_kits/sufficient_iot_hub/sufficient_iot_application.html#lorawan-parameter-configuration
Node configuration is complete, press ESC to save and exit, type in the next command:
cd ..
cd bin
./demo
Press Enter and the node starts to work.
if you run into any difficulties, please refer to the documentation: Sufficient IoT Application
Configure the LoRaWAN GatewayHT-M7603 is positioned as a low-cost standard gateway for indoor use.
After the gateway is powered on, find the WiFi named “HT_M7603_xxxx”, password “heltec.org”. connect to this WiFi, and enter “192.168.8.1” through the browser, and log in to the gateway configuration page with the user name “HT-M7603” and password “heltec.org”.
Configure the HT-M7603 gateway information on the page shown in the figure above. Gateway Mode
choose LoRaWAN, Region
choose US915, Server Addess
enter our Official test server "lora.heltec.org". Click Set Gateway
to finish.
Connect To Network
- Using Ethernet: insert the cable directly into the interface, after a successful connection, the device LED will change from blue to green.
- Using WiFi: Click the “Status “option at the top left, click “WiFi”. Select the WiFi you want to connect to in “WIFI list”, enter password of this WiFi, click “connect”. It usually takes 10-30 seconds for the HT-M7603 to connect to the WiFi, and the device LED will change from blue to green.
We set up a dedicated server for testing LoRaWAN devices:lora.heltec.org.Please make an account at this website.
Fill in the HT-M7603 information as shown below and complete the addition.
Gateway EUI – The unique ID of HT-M7603 gateway, view from configuration page.
Gateway ID – Generated by default.
Gateway name – Filled in by the user, can be filled in arbitrarily.
Frequency Plan – Matches the LoRa band configuration in HT-M7603.
View gateway status, it is running:
If your gateway cannot be configured successfully, please refer to the official documentation :HT-M7603 User Manual
Register Node- Register a new Application
- Register a new node, Fill in according to the configuration of the previous Sufficient IoT Hub
DevEUI
==Set devEUI to be 8 bytes long
joinApp
==Set appEUI to be 8 bytes long
AppKey
==Set appEUI to be 16 bytes long
After the configuration is completed, you can view the data sent by Sufficient IoT Hub in the red box below.
Comments
Please log in or sign up to comment.