SX1262 LoRa Node Module for Raspberry Pi Pico, LoRaWAN (CE08628)

Hi David

Unless you are some sort of super genius I would guess quite a few.
Don’t let it put you off though.
Cheers Bob

2 Likes

This forum link and library uses micropython:

Forum Link to Micropython library

How to determine the EUI number of the device ? Given there is no QR Code and it is not on the device/ and or packing.

The Waveshare Wiki (https://www.waveshare.com/wiki/Pico-LoRa-SX1262 ) Has
There are two methods for Raspberry Pico and Pico-LoRa-SX1262 to connect to the network via LoRaWAN: OTAA (Over-The-Air-Activation) and ABP (Activation By Personalization). Here we use OTAA, as shown below. Also you can refer to link 1, link 2 and source code. {Note these links do not work}

AND
" The Join-Request message is combined by the following field, AppEUI, and DevEUI are generated by the server end".

However this is not the case for my LoRaWAN Network.

Thanks in advance

Hey Elliott,

From what I can see you can use one of the example codes to print the default_dev_eui. Check it out via the library provided here. It should help get this value for you to use in your project.

Cheers,
Blayden

Thank you, however I need micropython.
After researching I have written this script to determine the DevEUI number, using micropython

import machine

DevEUI = machine.unique_id() # returns EUI as a binary value
DevEUI_h = DevEUI.hex() # as hex value
DevEUI_s = str(DevEUI) # as string

print(f"| DevEUI as byte: {DevEUI}“)
print(f”| DevEUI as Hex: {DevEUI_h}“)
print(f”| DevEUI as string: {DevEUI_s}")

Hi @Elliott254134,

Thanks for sharing :slight_smile: