LoRoWan persistance - OTAA and ABP #1505
Closed
markGilchrist
started this conversation in
General
Replies: 1 comment 5 replies
-
We will need to see some logs here. For ArduinoIDE, you can navigate to your libraries folder to find RadioLib (probably use Google for common file paths if you don't know where they are). Then find BuildOptUser.h in the src folder and uncomment the DEBUG_PROTOCOL flag. Then reupload your code :) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two questions but I am putting them together incase I have failed do something for both of scripts.
I have a LoRoWan end device that I am running on a Xaio board for testing. I copied very closely the persistance example in the examples page (https://github.com/radiolib-org/radiolib-persistence/blob/main/examples/LoRaWAN_ESP32/LoRaWAN_ESP32.ino).
Everything worked fine but after a few weeks the device would not connect to the network. I have managed to recreate the problem, but I am sorry to say I can not offer a solution or understand what part it is at fault (hopefully me)
if you run
OTAA
I then Switched to ABP but every up message had fCntUp = 0, this meant that I had to disable frame validations in order to get this to work more than once. Is there a way to store the fCntUp and reset if a new session is started?
Here are the logs for ABP
15:44:17.177 -> [ 125][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Dein=========== Before Setup Start ===========
15:44:17.177 -> Chip Info:
15:44:17.177 -> ------------------------------------------
15:44:17.177 -> Model : ESP32-S3
15:44:17.177 -> Package : 0
15:44:17.177 -> Revision : 0.02
15:44:17.177 -> Cores : 2
15:44:17.177 -> CPU Frequency : 240 MHz
15:44:17.204 -> XTAL Frequency : 40 MHz
15:44:17.204 -> Features Bitfield : 0x00000012
15:44:17.204 -> Embedded Flash : No
15:44:17.204 -> Embedded PSRAM : No
15:44:17.204 -> 2.4GHz WiFi : Yes
15:44:17.204 -> Classic BT : No
15:44:17.204 -> BT Low Energy : Yes
15:44:17.204 -> IEEE 802.15.4 : No
15:44:17.204 -> ------------------------------------------
15:44:17.204 -> INTERNAL Memory Info:
15:44:17.204 -> ------------------------------------------
15:44:17.237 -> Total Size : 386996 B ( 377.9 KB)
15:44:17.237 -> Free Bytes : 352588 B ( 344.3 KB)
15:44:17.237 -> Allocated Bytes : 29296 B ( 28.6 KB)
15:44:17.237 -> Minimum Free Bytes: 348668 B ( 340.5 KB)
15:44:17.237 -> Largest Free Block: 286708 B ( 280.0 KB)
15:44:17.237 -> ------------------------------------------
15:44:17.237 -> Flash Info:
15:44:17.237 -> ------------------------------------------
15:44:17.237 -> Chip Size : 8388608 B (8 MB)
15:44:17.237 -> Block Size : 65536 B ( 64.0 KB)
15:44:17.271 -> Sector Size : 4096 B ( 4.0 KB)
15:44:17.271 -> Page Size : 256 B ( 0.2 KB)
15:44:17.271 -> Bus Speed : 80 MHz
15:44:17.271 -> Bus Mode : QIO
15:44:17.271 -> ------------------------------------------
15:44:17.271 -> Partitions Info:
15:44:17.271 -> ------------------------------------------
15:44:17.271 -> nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
15:44:17.302 -> otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
15:44:17.302 -> app0 : addr: 0x00010000, size: 3264.0 KB, type: APP, subtype: OTA_0
15:44:17.302 -> app1 : addr: 0x00340000, size: 3264.0 KB, type: APP, subtype: OTA_1
15:44:17.302 -> spiffs : addr: 0x00670000, size: 1536.0 KB, type: DATA, subtype: SPIFFS
15:44:17.302 -> coredump : addr: 0x007F0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
15:44:17.335 -> ------------------------------------------
15:44:17.335 -> Software Info:
15:44:17.335 -> ------------------------------------------
15:44:17.335 -> Compile Date/Time : May 15 2025 14:54:35
15:44:17.335 -> Compile Host OS : macosx
15:44:17.335 -> ESP-IDF Version : v5.4.1-1-g2f7dcd862a-dirty
15:44:17.335 -> Compile Host OS : macosx
15:44:17.335 -> ESP-IDF Version : v5.4.1-1-g2f7dcd862a-dirty
15:44:17.335 -> Arduino Version : 3.2.0
15:44:17.335 -> ------------------------------------------
15:44:17.335 -> Board Info:
15:44:17.368 -> ------------------------------------------
15:44:17.368 -> Arduino Board : XIAO_ESP32S3
15:44:17.368 -> Arduino Variant : XIAO_ESP32S3
15:44:17.368 -> Arduino FQBN : esp32:esp32:XIAO_ESP32S3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=dfu,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=8M,PartitionScheme=default_8MB,DebugLevel=verbose,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default
15:44:17.400 -> ============ Before Setup End ============
15:44:17.499 -> [ 1011][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:17.499 -> [ 1011][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 1 successfully set to type GPIO (1) with bus 0x2
15:44:17.499 -> [ 1020][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:17.499 -> [ 1031][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 5 successfully set to type GPIO (1) with bus 0x6
15:44:17.531 -> [ 1041][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:17.531 -> [ 1052][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 6 successfully set to type GPIO (1) with bus 0x7
15:44:17.531 -> [ 1062][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:17.563 -> [ 1072][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 4 successfully set to type GPIO (1) with bus 0x5
15:44:17.563 -> Change Red LED state
15:44:17.563 -> [ 1082][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 19 already has type USB_DM (45) with bus 0x3fc98654
15:44:17.563 -> [ 1092][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 20 already has type USB_DP (46) with bus 0x3fc98654
15:44:19.595 ->
15:44:19.595 -> Setup
15:44:19.595 -> ESP OK
15:44:19.595 -> [ 3102][D][Xiao-lorawan-1.1.ino:73] setup(): [EXAMPLE] This doesn't show
15:44:19.595 -> Wake from state change
15:44:19.595 -> Boot count: 3
15:44:19.595 -> Change Red LED state
15:44:19.595 -> trap state HIGH
15:44:19.595 -> trap is NC
15:44:19.595 -> Trap is set [false]
15:44:19.595 -> Initalise the radio
15:44:19.595 -> [ 3102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_SCK (34) successfully set to 0x4200d5b0
15:44:19.595 -> [ 3109][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_MISO (35) successfully set to 0x4200d4d8
15:44:19.595 -> [ 3121][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_MOSI (36) successfully set to 0x4200d3fc
15:44:19.626 -> [ 3133][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_SS (37) successfully set to 0x4200d2f4
15:44:19.626 -> [ 3145][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.626 -> [ 3156][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 7 successfully set to type GPIO (1) with bus 0x8
15:44:19.659 -> [ 3166][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 7 successfully set to type SPI_MASTER_SCK (34) with bus 0x1
15:44:19.659 -> [ 3176][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.659 -> [ 3187][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type GPIO (1) with bus 0x9
15:44:19.692 -> [ 3197][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type SPI_MASTER_MISO (35) with bus 0x1
15:44:19.692 -> [ 3207][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.692 -> [ 3218][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
15:44:19.725 -> [ 3228][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type SPI_MASTER_MOSI (36) with bus 0x1
15:44:19.725 -> [ 3239][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.725 -> [ 3228][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type SPI_MASTER_MOSI (36) with bus 0x1
15:44:19.725 -> [ 3239][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.725 -> [ 3250][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 41 successfully set to type GPIO (1) with bus 0x2a
15:44:19.757 -> [ 3259][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.757 -> [ 3270][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 39 successfully set to type GPIO (1) with bus 0x28
15:44:19.757 -> [ 3280][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.790 -> [ 3291][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 40 successfully set to type GPIO (1) with bus 0x29
15:44:19.790 -> [ 3301][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:19.790 -> [ 3312][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 42 successfully set to type GPIO (1) with bus 0x2b
15:44:19.853 -> Change Red LED state
15:44:19.853 -> Join ('login') to the LoRaWAN Network
15:44:19.853 -> RLB_PRO: Setting up dynamic channels
15:44:19.853 -> RLB_PRO: UL: 0 1 868.100 (0 - 5) | DL: 0 1 868.100 (0 - 5)
15:44:19.853 -> RLB_PRO: UL: 1 1 868.300 (0 - 5) | DL: 1 1 868.300 (0 - 5)
15:44:19.853 -> RLB_PRO: UL: 2 1 868.500 (0 - 5) | DL: 2 1 868.500 (0 - 5)
15:44:19.853 -> RLB_PRO: [MAC] 0x03
15:44:19.853 -> RLB_PRO: 00000000: 30 0
15:44:19.853 -> RLB_PRO: LinkAdrReq: dataRate = 3, txSteps = 0, nbTrans = 0
15:44:19.853 -> RLB_PRO: LinkAdrAns: 07
15:44:19.853 -> RLB_PRO: [MAC] 0x04
15:44:19.853 -> RLB_PRO: 00000000: 07 .
15:44:19.853 -> RLB_PRO: DutyCycleReq: max duty cycle = 1/2^7
15:44:19.853 -> RLB_PRO: [MAC] 0x05
15:44:19.853 -> RLB_PRO: 00000000: 00 d2 ad 84 ....
15:44:19.853 -> RLB_PRO: RXParamSetupReq: Rx1DrOffset = 0, rx2DataRate = 0, freq = 869.525
15:44:19.853 -> RLB_PRO: [MAC] 0x08
15:44:19.853 -> RLB_PRO: 00000000: 01 .
15:44:19.853 -> RLB_PRO: RXTimingSetupReq: delay = 1 sec
15:44:19.853 -> RLB_PRO: [MAC] 0x09
15:44:19.853 -> RLB_PRO: 00000000: 05 .
15:44:19.853 -> RLB_PRO: [MAC] 0x0c
15:44:19.853 -> RLB_PRO: 00000000: 65 e
15:44:19.853 -> RLB_PRO: ADRParamSetupReq: limitExp = 6, delayExp = 5
15:44:19.853 -> RLB_PRO: [MAC] 0x0f
15:44:19.853 -> RLB_PRO: 00000000: fa .
15:44:19.853 -> RLB_PRO: RejoinParamSetupReq: maxTime = 15, maxCount = 10
15:44:19.853 -> Joined
15:44:20.869 -> Change Red LED state
15:44:20.869 -> Sending uplink
15:44:20.933 -> RLB_PRO: Uplink (FCntUp = 0) decoded:
15:44:20.933 -> RLB_PRO: 00000000: 30 30 30 30 30 30 30 30 3a 20 66 61 20 20 20 20 00000000: fa
15:44:20.933 -> RLB_PRO: 00000010: 40 1e 44 e2 00 80 00 00 01 0a c4 20 20 20 20 @.D........
15:44:20.933 -> RLB_PRO:
15:44:20.933 -> RLB_PRO: PHY: Frequency = 868.100 MHz, TX = 16 dBm
15:44:20.933 -> RLB_PRO: LoRa: SF = 9, BW = 125.0 kHz, CR = 4/5, IQ: U
15:44:21.098 -> RLB_PRO: Uplink sent <-- Rx Delay start
15:44:21.098 -> RLB_PRO:
15:44:21.098 -> RLB_PRO: PHY: Frequency = 868.100 MHz, TX = 16 dBm
15:44:21.098 -> RLB_PRO: LoRa: SF = 9, BW = 125.0 kHz, CR = 4/5, IQ: D
15:44:22.109 -> RLB_PRO: Opening Rx1 window (128 ms timeout)... <-- Rx Delay end
15:44:22.240 -> RLB_PRO: Closing Rx1 window
15:44:22.240 -> RLB_PRO:
15:44:22.240 -> RLB_PRO: PHY: Frequency = 869.525 MHz, TX = 16 dBm
15:44:22.240 -> RLB_PRO: LoRa: SF = 12, BW = 125.0 kHz, CR = 4/5, IQ: D
15:44:23.116 -> RLB_PRO: Opening Rx2 window (688 ms timeout)... <-- Rx Delay end
15:44:23.799 -> RLB_PRO: Closing Rx2 window
15:44:23.799 -> Green led On for 3000 milli seconds
15:44:26.782 -> FCntUp: 0
15:44:26.782 -> trap state HIGH
15:44:26.782 -> Setting wakup pin -> LOW
15:44:26.782 -> Sleeping for : 3600
15:44:40.082 -> [ 125][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Dein=========== Before Setup Start ===========
15:44:40.082 -> Chip Info:
15:44:40.082 -> ------------------------------------------
15:44:40.082 -> Model : ESP32-S3
15:44:40.082 -> Package : 0
15:44:40.082 -> Revision : 0.02
15:44:40.082 -> Cores : 2
15:44:40.082 -> CPU Frequency : 240 MHz
15:44:40.082 -> XTAL Frequency : 40 MHz
15:44:40.082 -> Features Bitfield : 0x00000012
15:44:40.082 -> Embedded Flash : No
15:44:40.082 -> Embedded PSRAM : No
15:44:40.082 -> 2.4GHz WiFi : Yes
15:44:40.082 -> Classic BT : No
15:44:40.082 -> BT Low Energy : Yes
15:44:40.082 -> IEEE 802.15.4 : No
15:44:40.115 -> ------------------------------------------
15:44:40.115 -> INTERNAL Memory Info:
15:44:40.115 -> ------------------------------------------
15:44:40.115 -> Total Size : 386996 B ( 377.9 KB)
15:44:40.115 -> Free Bytes : 352588 B ( 344.3 KB)
15:44:40.115 -> Allocated Bytes : 29296 B ( 28.6 KB)
15:44:40.115 -> Minimum Free Bytes: 348668 B ( 340.5 KB)
15:44:40.115 -> Largest Free Block: 286708 B ( 280.0 KB)
15:44:40.115 -> ------------------------------------------
15:44:40.115 -> Flash Info:
15:44:40.147 -> ------------------------------------------
15:44:40.147 -> Chip Size : 8388608 B (8 MB)
15:44:40.147 -> Block Size : 65536 B ( 64.0 KB)
15:44:40.147 -> Sector Size : 4096 B ( 4.0 KB)
15:44:40.147 -> Page Size : 256 B ( 0.2 KB)
15:44:40.147 -> Bus Speed : 80 MHz
15:44:40.147 -> Bus Mode : QIO
15:44:40.147 -> ------------------------------------------
15:44:40.147 -> Partitions Info:
15:44:40.179 -> ------------------------------------------
15:44:40.179 -> nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
15:44:40.179 -> otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
15:44:40.179 -> app0 : addr: 0x00010000, size: 3264.0 KB, type: APP, subtype: OTA_0
15:44:40.179 -> app1 : addr: 0x00340000, size: 3264.0 KB, type: APP, subtype: OTA_1
15:44:40.212 -> spiffs : addr: 0x00670000, size: 1536.0 KB, type: DATA, subtype: SPIFFS
15:44:40.212 -> coredump : addr: 0x007F0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
15:44:40.212 -> ------------------------------------------
15:44:40.212 -> Software Info:
15:44:40.212 -> ------------------------------------------
15:44:40.212 -> Compile Date/Time : May 15 2025 14:54:35
15:44:40.212 -> Compile Host OS : macosx
15:44:40.244 -> ESP-IDF Version : v5.4.1-1-g2f7dcd862a-dirty
15:44:40.244 -> Arduino Version : 3.2.0
15:44:40.244 -> ------------------------------------------
15:44:40.244 -> Board Info:
15:44:40.244 -> ------------------------------------------
15:44:40.244 -> Arduino Board : XIAO_ESP32S3
15:44:40.244 -> Arduino Variant : XIAO_ESP32S3
15:44:40.244 -> Arduino FQBN : esp32:esp32:XIAO_ESP32S3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=dfu,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=8M,PartitionScheme=default_8MB,DebugLevel=verbose,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default
15:44:40.277 -> ============ Before Setup End ============
15:44:40.374 -> [ 981][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:40.374 -> [ 981][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 1 successfully set to type GPIO (1) with bus 0x2
15:44:40.406 -> [ 990][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:40.406 -> [ 1001][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 5 successfully set to type GPIO (1) with bus 0x6
15:44:40.406 -> [ 1011][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:40.438 -> [ 1022][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 6 successfully set to type GPIO (1) with bus 0x7
15:44:40.438 -> [ 1032][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:40.438 -> [ 1042][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 4 successfully set to type GPIO (1) with bus 0x5
15:44:40.438 -> Change Red LED state
15:44:40.470 -> [ 1052][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 19 already has type USB_DM (45) with bus 0x3fc98654
15:44:40.470 -> [ 1062][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 20 already has type USB_DP (46) with bus 0x3fc98654
15:44:42.453 ->
15:44:42.453 -> Setup
15:44:42.453 -> ESP OK
15:44:42.453 -> [ 3072][D][Xiao-lorawan-1.1.ino:73] setup(): [EXAMPLE] This doesn't show
15:44:42.453 -> Wake from state change
15:44:42.453 -> Boot count: 4
15:44:42.453 -> Change Red LED state
15:44:42.453 -> trap state HIGH
15:44:42.453 -> trap is NC
15:44:42.453 -> Trap is set [false]
15:44:42.453 -> Initalise the radio
15:44:42.453 -> [ 3073][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_SCK (34) successfully set to 0x4200d5b0
15:44:42.486 -> [ 3079][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_MISO (35) successfully set to 0x4200d4d8
15:44:42.486 -> [ 3091][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_MOSI (36) successfully set to 0x4200d3fc
15:44:42.519 -> [ 3103][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_SS (37) successfully set to 0x4200d2f4
15:44:42.519 -> [ 3115][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.519 -> [ 3126][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 7 successfully set to type GPIO (1) with bus 0x8
15:44:42.551 -> [ 3136][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 7 successfully set to type SPI_MASTER_SCK (34) with bus 0x1
15:44:42.551 -> [ 3146][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.551 -> [ 3157][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type GPIO (1) with bus 0x9
15:44:42.583 -> [ 3167][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type SPI_MASTER_MISO (35) with bus 0x1
15:44:42.583 -> [ 3177][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.583 -> [ 3188][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
15:44:42.615 -> [ 3198][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type SPI_MASTER_MOSI (36) with bus 0x1
15:44:42.615 -> [ 3209][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.615 -> [ 3220][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 41 successfully set to type GPIO (1) with bus 0x2a
15:44:42.647 -> [ 3229][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.647 -> [ 3240][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 39 successfully set to type GPIO (1) with bus 0x28
15:44:42.647 -> [ 3250][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.680 -> [ 3261][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 40 successfully set to type GPIO (1) with bus 0x29
15:44:42.680 -> [ 3271][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4203171c
15:44:42.680 -> [ 3282][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 42 successfully set to type GPIO (1) with bus 0x2b
15:44:42.745 -> Change Red LED state
15:44:42.745 -> Join ('login') to the LoRaWAN Network
15:44:42.745 -> RLB_PRO: Setting up dynamic channels
15:44:42.745 -> RLB_PRO: UL: 0 1 868.100 (0 - 5) | DL: 0 1 868.100 (0 - 5)
15:44:42.745 -> RLB_PRO: UL: 1 1 868.300 (0 - 5) | DL: 1 1 868.300 (0 - 5)
15:44:42.745 -> RLB_PRO: UL: 2 1 868.500 (0 - 5) | DL: 2 1 868.500 (0 - 5)
15:44:42.745 -> RLB_PRO: [MAC] 0x03
15:44:42.745 -> RLB_PRO: 00000000: 30 0
15:44:42.745 -> RLB_PRO: LinkAdrReq: dataRate = 3, txSteps = 0, nbTrans = 0
15:44:42.745 -> RLB_PRO: LinkAdrAns: 07
15:44:42.745 -> RLB_PRO: [MAC] 0x04
15:44:42.745 -> RLB_PRO: 00000000: 07 .
15:44:42.745 -> RLB_PRO: DutyCycleReq: max duty cycle = 1/2^7
15:44:42.745 -> RLB_PRO: [MAC] 0x05
15:44:42.745 -> RLB_PRO: 00000000: 00 d2 ad 84 ....
15:44:42.745 -> RLB_PRO: RXParamSetupReq: Rx1DrOffset = 0, rx2DataRate = 0, freq = 869.525
15:44:42.745 -> RLB_PRO: [MAC] 0x08
15:44:42.745 -> RLB_PRO: 00000000: 01 .
15:44:42.745 -> RLB_PRO: RXTimingSetupReq: delay = 1 sec
15:44:42.745 -> RLB_PRO: [MAC] 0x09
15:44:42.745 -> RLB_PRO: 00000000: 05 .
15:44:42.745 -> RLB_PRO: [MAC] 0x0c
15:44:42.745 -> RLB_PRO: 00000000: 65 e
15:44:42.745 -> RLB_PRO: ADRParamSetupReq: limitExp = 6, delayExp = 5
15:44:42.745 -> RLB_PRO: [MAC] 0x0f
15:44:42.745 -> RLB_PRO: 00000000: fa .
15:44:42.745 -> RLB_PRO: RejoinParamSetupReq: maxTime = 15, maxCount = 10
15:44:42.745 -> Joined
15:44:43.755 -> Change Red LED state
15:44:43.755 -> Sending uplink
15:44:43.821 -> RLB_PRO: Uplink (FCntUp = 0) decoded:
15:44:43.821 -> RLB_PRO: 00000000: 30 30 30 30 30 30 30 30 3a 20 66 61 20 20 20 20 00000000: fa
15:44:43.821 -> RLB_PRO: 00000010: 40 1e 44 e2 00 80 00 00 01 0a c4 20 20 20 20 @.D........
15:44:43.821 -> RLB_PRO:
15:44:43.821 -> RLB_PRO: PHY: Frequency = 868.300 MHz, TX = 16 dBm
15:44:43.821 -> RLB_PRO: LoRa: SF = 9, BW = 125.0 kHz, CR = 4/5, IQ: U
15:44:43.984 -> RLB_PRO: Uplink sent <-- Rx Delay start
15:44:43.984 -> RLB_PRO:
15:44:43.984 -> RLB_PRO: PHY: Frequency = 868.300 MHz, TX = 16 dBm
15:44:43.984 -> RLB_PRO: LoRa: SF = 9, BW = 125.0 kHz, CR = 4/5, IQ: D
15:44:44.992 -> RLB_PRO: Opening Rx1 window (128 ms timeout)... <-- Rx Delay end
15:44:45.122 -> RLB_PRO: Closing Rx1 window
15:44:45.122 -> RLB_PRO:
15:44:45.122 -> RLB_PRO: PHY: Frequency = 869.525 MHz, TX = 16 dBm
15:44:45.122 -> RLB_PRO: LoRa: SF = 12, BW = 125.0 kHz, CR = 4/5, IQ: D
15:44:45.999 -> RLB_PRO: Opening Rx2 window (688 ms timeout)... <-- Rx Delay end
15:44:46.687 -> RLB_PRO: Closing Rx2 window
15:44:46.687 -> Green led On for 3000 milli seconds
15:44:49.681 -> FCntUp: 0
15:44:49.681 -> trap state HIGH
15:44:49.681 -> Setting wakup pin -> LOW
15:44:49.681 -> Sleeping for : 3600
Note this is one upload, followed by a sleep, then another upload
I am sure that I am missing many things that are needed to answer this question fully, please let me know what they are and I will added them in.
I am running my code in the arduino IDE on and ESP32, I dont seem to be able to get logs as complete as the other people who have posted question have, I would happily share them if I knew how to get them.
Beta Was this translation helpful? Give feedback.
All reactions