I used the proper formats for the euiâs
my DevEUI: 70B3D57ED004C725
my AppEUI: 0000000000000000
my AppKEY: 005CC09F5D714FE10DAC217DC4B34340
This is what it looks like in my lorawan-keys.h file
// Optional: If DEVICEID is defined it will be used instead of the default defined in the BSF.
// #define DEVICEID "<deviceid>"
// Keys required for OTAA activation:
// End-device Identifier (u1_t[8]) in lsb format
#define OTAA_DEVEUI 0x25, 0xC7, 0x04, 0xD0, 0x7E, 0xD5, 0xB3, 0x70
// Application Identifier (u1_t[8]) in lsb format
#define OTAA_APPEUI 0x25, 0xC7, 0x04, 0xD0, 0x7E, 0xD5, 0xB3, 0x70
// Application Key (u1_t[16]) in msb format
#define OTAA_APPKEY 0x00, 0x5C, 0xC0, 0x9F, 0x5D, 0x71, 0x4F, 0xE1, 0x0D, 0xAC, 0x21, 0x7D, 0xC4, 0xB3, 0x43, 0x40
Note that I changed my AppEUI to the same value as the DevEUI as recommended earlier in this thread.
I even created a new end device with a join EUI I created myself and matched it in the lorawan-keys.h file
my DevEUI: 70B3D57ED0056236
my AppEUI: 5623463463373575
my AppKEY: EB43468B61CDCAE2B7A12A751D09B416
// Optional: If DEVICEID is defined it will be used instead of the default defined in the BSF.
// #define DEVICEID "<deviceid>"
// Keys required for OTAA activation:
// End-device Identifier (u1_t[8]) in lsb format
#define OTAA_DEVEUI 0x36, 0x62, 0x05, 0xD0, 0x7E, 0xD5, 0xB3, 0x70
// Application Identifier (u1_t[8]) in lsb format
#define OTAA_APPEUI 0x75, 0x35, 0x37, 0x63, 0x34, 0x46, 0x23, 0x56
// Application Key (u1_t[16]) in msb format
#define OTAA_APPKEY 0xEB, 0x43, 0x46, 0x8B, 0x61, 0xCD, 0xCA, 0xE2, 0xB7, 0xA1, 0x2A, 0x75, 0x1D, 0x09, 0xB4, 0x16
I did change the region to the United States (-D CFG_us915=1) in my platformio.ini file as well as changing to the correct board I am using.
[platformio]
default_envs =
;<platformio.ini board selector guard> Comment this line and uncomment one board-id below:
; LoRa development boards with integrated LoRa support:
; Board-id Board name
;--------- ----------
; adafruit_feather_m0_lora ; Adafruit Feather M0 LoRa
; disco_l072cz_lrwan1 ; Discovery B-L072Z-LRWAN1
heltec_wifi_lora_32_v2 ; Heltec Wifi LoRa 32 V2
; heltec_wifi_lora_32 ; Heltec Wifi LoRa 32
; heltec_wireless_stick_lite ; Heltec Wireless Stick Lite
; heltec_wireless_stick ; Heltec Wireless Stick
; lopy4 ; Pycom Lopy4
; lora32u4II ; BSFrance LoRa32u4 II v1.0, v1.1, v1.2, v1.3
; ttgo_lora32_v1 ; TTGO LoRa32 v1.3
; ttgo_lora32_v2 ; TTGO LoRa32 v2.0
; ttgo_lora32_v21 ; TTGO LoRa32 v2.1.6
; ttgo_t_beam ; TTGO T-Beam v0.5, v0.6, v0.7
; ttgo_t_beam_v1 ; TTGO T-Beam v1.0, v1.1
; Development boards that require an external SPI LoRa module:
; Board-id Board name
;--------- ----------
; adafruit_qt_py_m0 ; Adafruit QT Py
; blackpill_f103c8_128k ; Black Pill 128k
; blackpill_f103c8 ; Black Pill 64k
; bluepill_f103c8_128k ; Blue Pill 128k
; bluepill_f103c8 ; Blue Pill 64k
; lolin_d32_pro ; Lolin D32 Pro
; lolin_d32 ; Lolin D32
; lolin32 ; Lolin32
; nodemcu_32s ; NodeMCU-32S
; nodemcuv2 ; NodeMCU V2
; pico ; Raspberry Pi Pico
; pro8mhzatmega328 ; Arduino Pro Mini 3.3V 8Mhz
; samd21_m0_mini ; SAMD21 M0-Mini
; teensylc ; Teensy LC
; ------------------------------------------------------------------------------
; | Common Settings |
; | |
; | These settings are shared by all board configurations except for |
; | nodemcuv2 which uses its own monitor_speed setting. |
; ------------------------------------------------------------------------------
[common]
monitor_speed = 115200 ; No need to change this.
build_flags =
-D DO_WORK_INTERVAL_SECONDS=60
; -D ABP_ACTIVATION ; Use ABP instead of OTAA activation.
;
; -D WAITFOR_SERIAL_SECONDS=10 ; Can be used to override the default value (10).
; Is used only for boards with default set to != 0 in BSF.
;
; -D LMIC_CLOCK_ERROR_PPM=0 ; If not defined defines, otherwise overrides value defined in BSF.
; Is for testing purposes only.
; Do not enable this unless you explicitly know what you are doing.
;
; -D STM32_POST_INITSERIAL_DELAY_MS=1500 ; Workaround for STM32 boards. Can be used
; to override value (milliseconds) in BSF.
lib_deps =
olikraus/U8g2 ; OLED display library
lnlp/EasyLed ; LED library
; âââ Add additional libraries for User Code below this line âââ
; -------------------------------
; | Shortcuts and Workarounds |
; -------------------------------
[esp32]
build_flags =
-D hal_init=LMICHAL_init ; Workaround for naming conflict of function hal_init
; introduced by newer versions (> 3.5.0) of
; PlatformIO Espressif 32 platform (ESP32 Arduino core).
; See https://github.com/lnlp/LMIC-node/issues/41 for more information.
[pico]
upload_port = E: ; Shortcut for Raspberry Pi Pico.
; Operating system and hardware dependent.
; Placed here so it can be easily changed.
; See section [env:pico] below for more information.
; --------------------------------------------------
; | MCCI LoRaWAN LMIC library specific settings |
; --------------------------------------------------
[mcci_lmic]
; LMIC-node was tested with MCCI LoRaWAN LMIC library v3.3.0 and v4.0.0.
; Some changes have been announced for future versions of the MCCI library
; which may be incompatible with LMIC-node. In case of problems just
; use mcci-catena/MCCI LoRaWAN LMIC library@4.0.0 below which will
; explicitly use v4.0.0 of the library.
; Perform 'PlatformIO: Clean' after changing library version and
; in case of issues remove the old version from .pio/libdeps/*.
; Note: LMIC_PRINTF_TO is defined for each board separately
; in the board specific sections. Don't define it in this section.
lib_deps =
; Only ONE of below LMIC libraries should be enabled.
mcci-catena/MCCI LoRaWAN LMIC library ; MCCI LMIC library (latest release)
; mcci-catena/MCCI LoRaWAN LMIC library@4.0.0 ; MCCI LMIC library v4.0.0
build_flags =
; Use platformio.ini for settings instead lmic_project_config.h.
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
; Ping and beacons not supported for class A, disable to save memory.
-D DISABLE_PING
-D DISABLE_BEACONS
; -D LMIC_DEBUG_LEVEL=1 ; 0, 1 or 2
; -D CFG_sx1272_radio=1 ; Use for SX1272 radio
-D CFG_sx1276_radio=1 ; Use for SX1276 radio
-D USE_ORIGINAL_AES ; Faster but larger, see docs
; -D LMIC_USE_INTERRUPTS ; Not tested or supported on many platforms
; -D LMIC_ENABLE_DeviceTimeReq=1 ; Network time support
; --- Regional settings -----
; Enable only one of the following regions:
; -D CFG_as923=1
; -D CFG_as923jp=1
; -D CFG_au915=1
; -D CFG_cn490=1 ; Not yet supported
; -D CFG_cn783=1 ; Not yet supported
; -D CFG_eu433=1 ; Not yet supported
;-D CFG_eu868=1
; -D CFG_in866=1
; -D CFG_kr920=1
-D CFG_us915=1
I am currently getting an error that states âJoin-request to cluster-local Join Server failedâ