cancel
Showing results for 
Search instead for 
Did you mean: 

Does STM32WL comes with a unique DevEUI or we have to create one?

BTsuc.1
Associate

Hello everyone,

Recently I started to develop some LoRAWAN applications using the STM32WL. While studying the Lora technology I came across a information call devEUI, which, if i understood it correctly, is the identication of the end device on the network. This ID is assigned by the manufacturer, or the owner, of the end-device so my question is if we have to create a DevEUI number or we can use the devEUI that comes with the STM32WL

7 REPLIES 7
Andrew Neil
Evangelist III

The STM32WL has a specific register for this (“UID64�?).

Other STM32 have a unique ID, and you can use that to create a devEUI - eg, this is what the I-CUBE-LRWAN software does for B-L072Z-LRWAN1.

see this video series for getting the STM32WL set-up and working on TTN (The Things Network):

  1. https://www.youtube.com/watch?v=vuc6914B0KM
  2. https://www.youtube.com/watch?v=uJU3YM1MWN4
  3. https://www.youtube.com/watch?v=8KNfrWoa1fw
Louis AUDOLY
ST Employee

Hello @BTsuc.1​ ,

If you use End_Node example provided in the STM32Cube_FW_WL_V1.2.0, in the file se-identity.h, you have a define STATIC_DEVICE_EUI.

With this variable you can choose to set your own devEUI by setting STATIC_DEVICE_EUI to 1, or to use the value provided by MCU platform by setting STATIC_DEVICE_EUI to 0.

Regards

This option seems to be removed when I updated the firmware to latest version. Is there a special reason that the old solution should not be used? What is the proposed way of doing it now?

Best Regards Arvid 

IIRHO.1
ST Employee

Hello @arvidblaser  and welcome to ST Community.

For the new version of the firmware, if   LORAWAN_DEVICE_EUI is set to   00,00,00,00,000,00,00,00  then DevEui is automatically set with the value provided by MCU platform. Else, you can choose to set your own DevEui by  setting LORAWAN_DEVICE_EUI to the value of DevEui you want.

I hope this is helpful for you.

Issam 

 

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

SamZaid
Associate

I've also started delving into LoRaWAN applications using the STM32WL and have been learning about the fascinating world of LoRa technology. One concept that caught my attention is the devEUI (Device EUI), which seems to serve as the unique identifier for end devices on a LoRaWAN network. From what I understand, this ID is assigned by the manufacturer or device owner. Now, I'm a bit curious about https://laptopspapa.com/ site whether we should create our own devEUI numbers or if we can utilize the one that comes pre-assigned with the STM32WL module. 

Hello @SamZaid and welcome to ST community.

devEUI number is unique for each STM32WL device. You don't have to create your own devEUI. 

Hope this answers your questions. 

Issam

 

MSantos30
Associate

I've stumbled upon a question regarding DevEUI. It's my understanding that DevEUI is crucial for device identification on the network. I noticed that the STM32WL devices come with pre-assigned DevEUI values, but I'm uncertain about whether I should use these or create custom DevEUI values. The documentation doesn't provide clear guidance on the advantages and disadvantages of each approach.