2025-08-27 1:33 AM
1. Context
I'm working with an STM32WLE5JCI6 board and STM32CubeIDE to connect a LoRaWAN device to The Things Network (TTN) in Japan. The gateway I'm using is a SenseCAP M2, and its frequency plan on TTN is configured for Japan 920-923 MHz with LBT (channels 31-38) and (channels 24-31).
2. The Problem
The firmware compiles successfully, and the debug console shows the following logs:
Join Request started.
Join Request finished.
However, I'm not seeing any Join Request data appear in the gateway's Live Data tab on the TTN console.
3. Steps Taken
I have carefully configured the project based on the documentation and have attempted the following to troubleshoot the issue:
Frequency Plan: In lorawan_conf.h, I changed the default channel plan from CHANNEL_PLAN_GROUP_AS923_1 to CHANNEL_PLAN_GROUP_AS923_1_JP.
Key Configuration: I've confirmed that the DevEUI, JoinEUI, and AppKey in se-identity.h exactly match the values configured in the TTN application.
Compilation Fix: The channel plan change resulted in a compilation error in RegionAS923.c due to undefined frequency constants. I resolved this by manually adding the following definitions to lorawan_conf.h:
#define AS923_MIN_RF_FREQUENCY 920600000 #define AS923_MAX_RF_FREQUENCY 923400000 #define REGION_AS923_FREQ_OFFSET 0
Physical Checks: The antenna is securely connected to the board. Both the board and the gateway are online and positioned with a clear line of sight, separated by a distance of several meters.
4. My Question
Given that all software configurations appear to be correct and the hardware seems to be in order, what other common pitfalls or configurations in the STM32 LoRaWAN stack could prevent the Join Request from being successfully sent to the gateway?
Any guidance on how to further debug this issue, or specific configurations I might be missing for the AS923-JP region, would be greatly appreciated.
I am using an AI to formulate this question.
Thank you.
R_JPstudent
2025-08-27 1:53 AM
Does your gateway work with any other devices?
Have you tried contacting TTN?
https://www.thethingsnetwork.org/forum/
https://www.thethingsnetwork.org/country/japan/