Skip to main content

How to Use License

What is a license

The license is generated by the chip ID through a special algorithm and used for the LoRa code related to HelTec.

note

Once the device is activated, it will not need to be activated again unless you erase the Flash.

During the factory test, we have written the corresponding license to FLASH. Generally, we do not need to write the license again. When you use LoRa code, if the following occurs, you need to write the license again. When the LoRa code is downloaded, the code does not run successfully, and the chip ID appears on the serial port and stops here.

How to Obtain License

  • Save the 32-bit license in the figure.

Write the License to FLSAH

There are two ways to write a license, you just have to choose one of them.

Via AT commands on Arduino

Please enter AT+CDKEY=License on the Arduino serial port. Note that the license only requires numbers and does not include spaces or 0X.

Via AT command

In some LoRa codes, the license interface is not reserved. You can send corresponding instructions through the serial port. After the serial port prints the chip ID, send the command "AT+CDKEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" through the serial port to activate the gateway.

note

"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" is a 32-bit license. For example, if the license is "0x12345678, 0x12345678, 0x12345678, 0x12345678", the activation command is "AT+CDKEY=12345678123456781234567812345678".

When the serial port prints "The board is active", it indicates that the development board is activated successfully.