2023-08-01 02:38 AM - edited 2023-08-01 02:39 AM
Hello everyone,
I am using a custom board for LoRa operations, where I have used RAK3172 which is based on STM32WLE5CCU6, the Official LoRa SDK from ST is working fine , now I want to develop the same program from scratch,
Issue: The module is joining the network server joining continuously(with an interval of 10s) after powering up, how can I program the module to send the join request for 5 or 10 times(just for example) and after joining it will send data to the server with particular time interval.
Solved! Go to Solution.
2023-12-30 01:44 AM
Actually the issue was in gateway setup, after setting up the gateway properly, everything worked perfectly,
2023-08-01 05:59 AM
Hello @pho3nix,
Include a loop in the Lorawan stack to send requests multiple times that should look something like this :
uint8_t join_attempts = 0;
while (join_attempts <10)
{
//join();
//wait for join response or timeout
}
join_attempts++;
delay(5000);
if (join_attempts == 10) {
// join failed after 10 attempts, handle error...
to send data to the server with a fixed time interval, I recommend using a timer interrupt to trigger the data transmission
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-08-02 05:35 AM - edited 2023-08-02 05:35 AM
Hello @Sarra.S ,
Thanks for replying, yes I understood your suggestion, but I should elaborate the scenario.
The module is joining successfully to the network server, as it can be seen
So, I guess the Sub_Ghz / RF section is working fine, but the MCU section is not receiving any successful Tx return status from the RF sectiono, so it is trying to join again and again
What could be the possible issue?
2023-12-29 05:38 AM
Can you explain in details.
2023-12-30 01:44 AM
Actually the issue was in gateway setup, after setting up the gateway properly, everything worked perfectly,
2023-12-30 01:49 AM
Can you help me for my doubt??
Look at below link.
Than you in advance.
2024-05-21 10:55 AM
Could you elaborate what was the issue, because i am having the same problem that you have, only every 40 seconds