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

  • Refer to this document to get the chip ID.

  • Enter“ https://resource.heltec.cn/search “, enter your 12-digit chip ID in the box, and click” Confirm “.

  • 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 source code

In some LoRa codes, the interface of license is reserved. Please copy the license into the code in the following format and upload the code to the development board.

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.