cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32 + LoRaWAN] Join requests issue

Waneock
Associate

Hello guys,

I'm new in LoRaWAN so if my question is dumb - sorry guys. 

Context:
Initial info:

  • custom board with STM32WLE5CCUX family MCU on it;
  • LoRa gateway from P-NUCLEO-LRWAN3 pack;
  • private network gateway;
  • activation type OTAA;

What is done:

  • gateway from P-NUCLEO-LRWAN3 has been configured on TTN;
  • End Node is configured on TTN (no problem with traffic monitoring: uplinks/downlinks);

I'm having some problems with Join requests to private network gateway. When I'm connecting through gateway from P-NUCLEO-LRWAN3 pack which is in the same room as end node everything works perfectly. But when I'm trying to connect to private network gateway something goes wrong (I have configured different DevEUI for local/private gateways and when I want to switch between them I just change DevEUI). Sometimes End Node is connected after 20 minutes, sometimes after 1h the end node is still not connected to the private network gateway.

I know that network coverage is very bad, but other devices somehow connects (up to 30 mins) but connects.

Join Procedure:

  • Duty cycle is enabled (LoRaWAN-EU868 region);
  • I send first 6 join requests with a recurrence of 1 min, after that increase the recurrence to remain compliant with duty cycle restrictions;
  • After each join request I'm waiting for OnJoinRequest event. In case when join fails (joinParams->Status != LORAMAC_HANDLER_SUCCESS)  go to standby mode, until the next join request must be transmitted.

Question:
What can be done to fix that? I thinking to disable duty cycle until end node is not joined but this is not the best solution.

P.S The application was started from End Node skeleton. 

0 REPLIES 0