Make AppEUI = DevEUI
Always worth reading the more recent posts, particularly the one above:
As @Johan_Scheepers suggests, the simplest thing is to make the Dev & App/Join EUI’s the same.
I recreated the end device and used the same value as my DevEUI and my AppEUI, I am still seeing attempts to join but no uplink.
What is the RSSI getting reported in the Gateway live data. (you should have 5-10 and a brick wall between the gateway and the node, you want <-50…<-60)
You should see the EUI, compare them?
In the gateway, it’s showing the RSSI as -101, and the EUI I’m seeing is B827EBFFFE4914B7 while my end device EUI is 70B3D57ED0056309
Well I would say if what is the Gateway live data and the EUI suppose to be on the devise is not equal, I will check the code on the device.
My apologies everyone, it seems that I did mistook the messages in my gateway console for actual uplink for my end device. It would seem that I am not getting uplink whatsoever. I think I may have read the set-up instructions wrong. I copied the lorawan-keys_example.h file, changed the name of the copied file to lorawan-keys.h and edited it so that the devEUI is in lsb format, and the appEUI is asl in lsb format. Im using the same value for both. I copied my appkey in msb format like it says. for the platformio.ini file I changed the region to my region of the United States by uncommenting the line -D CFG_us915=1. In the instructions in the platformio.ini file it says to just uncomment the board ID and that’s what I’ve been doing as well as uncommenting the board selector guard. However, in the instruction for the LMIC-node on github it says to uncomment the board id and the name. When I do this I get this error below
* Executing task: C:\Users\demet\.platformio\penv\Scripts\platformio.exe run
Error: Unknown environment names 'heltec_wifi_lora_32_v2 Heltec Wifi LoRa 32 V2'. Valid names are 'heltec_wireless_stick_lite, heltec_wifi_lora_32_v2, bluepill_f103c8, lolin32, adafruit_feather_m0_lora, adafruit_qt_py_m0, nodemcuv2, lolin_d32_pro, lopy4, samd21_m0_mini, blackpill_f103c8_128k, ttgo_lora32_v2, teensylc, ttgo_t_beam_v1, nodemcu_32s, disco_l072cz_lrwan1, lolin_d32, ttgo_t_beam, lora32u4II, bluepill_f103c8_128k, heltec_wireless_stick, pro8mhzatmega328, ttgo_lora32_v1, blackpill_f103c8, pico, ttgo_lora32_v21, heltec_wifi_lora_32'
and here are the instruction from the platformio.ini file - LMIC-node/platformio.ini at main · lnlp/LMIC-node · GitHub
[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
Fix your board selection and try again.
[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_32u4_lora ; Adafruit Feather 32u4 LoRa
; 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
It ships with the line uncommented, so you can’t have uncommented it
And it says on the line itself to comment it.
And it says a few lines above “Select your board by uncommenting EXACTLY ONE board-id below.”
Over to you …
my apologies before, I meant to say that I follow the instructions and comment that line.
Look carefully how to uncomment, I showed exactly how to in my post above
So here’s my platfromin.ini file
;-------------------------------------------------------------------------------
;
; File: platformio.ini
;
; Function: Project configuration file for LMIC-node.
;
; Copyright: Copyright (c) 2021 Leonel Lopes Parente
;
; License: MIT License. See accompanying LICENSE file.
;
; Author: Leonel Lopes Parente
;
; Description: This is the main configuration file. It contains:
; - Board selector to select your board type
; - Common settings used for all boards
; - Board specific settings that can be altered per board.
;
; For a description of all settings see README.md
;
;-------------------------------------------------------------------------------
; ------------------------------------------------------------------------------
; | Board Selector |
; | |
; | Select your board by uncommenting EXACTLY ONE board-id below. |
; ------------------------------------------------------------------------------
[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
And here are my values for my end device.
image of the overview:
values transcribed:
End device ID- lmic-node
Frequency plan- United States 902-928 MHz, FSB 2 (used by TTN)
LoRaWAN version- LoRaWAN Specification 1.0.3
Regional Parameters version- RP001 Regional Parameters 1.0.3 revision A
AppEUI- 70B3D57ED0056768 (LSB format: 0x68, 0x67, 0x05, 0xD0, 0x7E, 0xD5, 0xB3, 0x70)
DevEUI- 70B3D57ED0056768 (LSB format: 0x68, 0x67, 0x05, 0xD0, 0x7E, 0xD5, 0xB3, 0x70)
AppKey- 01B75FF1ECE811DFE5FD480700364A80 (MSB format: 0x01, 0xB7, 0x5F, 0xF1, 0xEC, 0xE8, 0x11, 0xDF, 0xE5, 0xFD, 0x48, 0x07, 0x00, 0x36, 0x4A, 0x80)
what my lorawan-keys.h file looks like
/*******************************************************************************
*
* File: lorawan-keys_example.h
*
* Function: Example for lorawan-keys.h required by LMIC-node.
*
* Copyright: Copyright (c) 2021 Leonel Lopes Parente
*
* Important ██ DO NOT EDIT THIS EXAMPLE FILE (see instructions below) ██
*
* Decription: lorawan-keys.h defines LoRaWAN keys needed by the LMIC library.
* It can contain keys for both OTAA and for ABP activation.
* Only the keys for the used activation type need to be specified.
*
* It is essential that each key is specified in the correct format.
* lsb: least-significant-byte first, msb: most-significant-byte first.
*
* For security reasons all files in the keyfiles folder (except file
* lorawan-keys_example.h) are excluded from the Git(Hub) repository.
* Also excluded are all files matching the pattern *lorawan-keys.h.
* This way they cannot be accidentally committed to a public repository.
*
* Instructions: 1. Copy this file lorawan-keys_example.h to file lorawan-keys.h
* in the same folder (keyfiles).
* 2. Place/edit required LoRaWAN keys in the new lorawan-keys.h file.
*
******************************************************************************/
#pragma once
#ifndef LORAWAN_KEYS_H_
#define LORAWAN_KEYS_H_
// 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 0x68, 0x67, 0x05, 0xD0, 0x7E, 0xD5, 0xB3, 0x70
// Application Identifier (u1_t[8]) in lsb format
#define OTAA_APPEUI 0x68, 0x67, 0x05, 0xD0, 0x7E, 0xD5, 0xB3, 0x70
// Application Key (u1_t[16]) in msb format
#define OTAA_APPKEY 0x01, 0xB7, 0x5F, 0xF1, 0xEC, 0xE8, 0x11, 0xDF, 0xE5, 0xFD, 0x48, 0x07, 0x00, 0x36, 0x4A, 0x80
// -----------------------------------------------------------------------------
// Optional: If ABP_DEVICEID is defined it will be used for ABP instead of the default defined in the BSF.
// #define ABP_DEVICEID "<deviceid>"
// Keys required for ABP activation:
// End-device Address (u4_t) in uint32_t format.
// Note: The value must start with 0x (current version of TTN Console does not provide this).
#define ABP_DEVADDR 0x00000000
// Network Session Key (u1_t[16]) in msb format
#define ABP_NWKSKEY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
// Application Session K (u1_t[16]) in msb format
#define ABP_APPSKEY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
#endif // LORAWAN_KEYS_H_
The gateway itself has two walls in between it and the node. If I am following the instructions correctly, then I have no idea why my node isn’t connecting.
Can you post the serial log from the device - ensuring you use the </> on the toolbar in this entry box.
Have you powered the device down, waited 10sec and re-powered?
What do you see in the gateway live console and application live console and the serial debug.
000745142995: doWork job started
000745308033: Event: EV_JOIN_TXCOMPLETE
000745434923: Event: EV_TXSTART
000745838827: Event: EV_JOIN_TXCOMPLETE
000745850526: Event: EV_TXSTART
000746233027: Event: EV_JOIN_TXCOMPLETE
000747051494: Event: EV_TXSTART
000747455395: Event: EV_JOIN_TXCOMPLETE
000747496461: Event: EV_TXSTART
000747878965: Event: EV_JOIN_TXCOMPLETE
000748372361: Event: EV_TXSTART
000748776262: Event: EV_JOIN_TXCOMPLETE
000748805566: Event: EV_TXSTART
000748892995: doWork job started
000749188069: Event: EV_JOIN_TXCOMPLETE
000749190629: Event: EV_JOIN_FAILED
000749547696: Event: EV_TXSTART
000749951598: Event: EV_JOIN_TXCOMPLETE
000749963248: Event: EV_TXSTART
000750345750: Event: EV_JOIN_TXCOMPLETE
000751326451: Event: EV_TXSTART
000751730353: Event: EV_JOIN_TXCOMPLETE
000751776802: Event: EV_TXSTART
000752159305: Event: EV_JOIN_TXCOMPLETE
000752642995: doWork job started
000752752281: Event: EV_TXSTART
000753156183: Event: EV_JOIN_TXCOMPLETE
000753193803: Event: EV_TXSTART
000753576308: Event: EV_JOIN_TXCOMPLETE
000754078859: Event: EV_TXSTART
000754482759: Event: EV_JOIN_TXCOMPLETE
000754513687: Event: EV_TXSTART
000754896188: Event: EV_JOIN_TXCOMPLETE
000755593316: Event: EV_TXSTART
000755997221: Event: EV_JOIN_TXCOMPLETE
000756033958: Event: EV_TXSTART
000756392995: doWork job started
000756416462: Event: EV_JOIN_TXCOMPLETE
000757169790: Event: EV_TXSTART
000757573692: Event: EV_JOIN_TXCOMPLETE
000757593790: Event: EV_TXSTART
000757976292: Event: EV_JOIN_TXCOMPLETE
000758272313: Event: EV_TXSTART
000758676214: Event: EV_JOIN_TXCOMPLETE
000758688732: Event: EV_TXSTART
000759071234: Event: EV_JOIN_TXCOMPLETE
000759967991: Event: EV_TXSTART
000760142995: doWork job started
000760371894: Event: EV_JOIN_TXCOMPLETE
000760387855: Event: EV_TXSTART
000760770357: Event: EV_JOIN_TXCOMPLETE
000760772918: Event: EV_JOIN_FAILED
000761157814: Event: EV_TXSTART
000761561715: Event: EV_JOIN_TXCOMPLETE
000761605723: Event: EV_TXSTART
000761988227: Event: EV_JOIN_TXCOMPLETE
000762651797: Event: EV_TXSTART
000763055700: Event: EV_JOIN_TXCOMPLETE
000763060034: Event: EV_TXSTART
000763442536: Event: EV_JOIN_TXCOMPLETE
000763892995: doWork job started
000764425812: Event: EV_TXSTART
000764829712: Event: EV_JOIN_TXCOMPLETE
000764848597: Event: EV_TXSTART
000765231099: Event: EV_JOIN_TXCOMPLETE
000765378791: Event: EV_TXSTART
000765782694: Event: EV_JOIN_TXCOMPLETE
000765827215: Event: EV_TXSTART
000766209717: Event: EV_JOIN_TXCOMPLETE
000767030230: Event: EV_TXSTART
000767434130: Event: EV_JOIN_TXCOMPLETE
000767444847: Event: EV_TXSTART
000767642995: doWork job started
000767827352: Event: EV_JOIN_TXCOMPLETE
000768767668: Event: EV_TXSTART
000769171569: Event: EV_JOIN_TXCOMPLETE
000769192933: Event: EV_TXSTART
000769575437: Event: EV_JOIN_TXCOMPLETE
000769747754: Event: EV_TXSTART
000770151657: Event: EV_JOIN_TXCOMPLETE
000770174424: Event: EV_TXSTART
000770556927: Event: EV_JOIN_TXCOMPLETE
000770996837: Event: EV_TXSTART
000771392995: doWork job started
000771400738: Event: EV_JOIN_TXCOMPLETE
000771433801: Event: EV_TXSTART
000771816304: Event: EV_JOIN_TXCOMPLETE
000771818866: Event: EV_JOIN_FAILED
000771980925: Event: EV_TXSTART
000772384824: Event: EV_JOIN_TXCOMPLETE
000772401997: Event: EV_TXSTART
000772784499: Event: EV_JOIN_TXCOMPLETE
000773398642: Event: EV_TXSTART
000773802543: Event: EV_JOIN_TXCOMPLETE
000773865657: Event: EV_TXSTART
000774248161: Event: EV_JOIN_TXCOMPLETE
000774600746: Event: EV_TXSTART
000775004648: Event: EV_JOIN_TXCOMPLETE
000775035858: Event: EV_TXSTART
000775142995: doWork job started
000775418362: Event: EV_JOIN_TXCOMPLETE
000775920690: Event: EV_TXSTART
000776324592: Event: EV_JOIN_TXCOMPLETE
000776351571: Event: EV_TXSTART
000776734074: Event: EV_JOIN_TXCOMPLETE
000777296147: Event: EV_TXSTART
000777700051: Event: EV_JOIN_TXCOMPLETE
000777740811: Event: EV_TXSTART
000778123313: Event: EV_JOIN_TXCOMPLETE
000778892995: doWork job started
000779067482: Event: EV_TXSTART
000779471384: Event: EV_JOIN_TXCOMPLETE
000779473949: Event: EV_TXSTART
000779856453: Event: EV_JOIN_TXCOMPLETE
000780624753: Event: EV_TXSTART
000781028653: Event: EV_JOIN_TXCOMPLETE
000781085577: Event: EV_TXSTART
000781468080: Event: EV_JOIN_TXCOMPLETE
000781651707: Event: EV_TXSTART
000782055609: Event: EV_JOIN_TXCOMPLETE
000782063127: Event: EV_TXSTART
000782445630: Event: EV_JOIN_TXCOMPLETE
000782448190: Event: EV_JOIN_FAILED
000782642995: doWork job started
000783150822: Event: EV_TXSTART
000783554724: Event: EV_JOIN_TXCOMPLETE
000783560021: Event: EV_TXSTART
000783942524: Event: EV_JOIN_TXCOMPLETE
000784664854: Event: EV_TXSTART
000785068755: Event: EV_JOIN_TXCOMPLETE
000785114617: Event: EV_TXSTART
000785497120: Event: EV_JOIN_TXCOMPLETE
000785869882: Event: EV_TXSTART
000786273783: Event: EV_JOIN_TXCOMPLETE
000786333899: Event: EV_TXSTART
I see no activity in the live consoles for either the gateway or the application, I have powered the end device down for 10 seconds and re-powered it.
Have you checked that your antennas are connected, gateway and device?
everything is connected just fine.