I would like to expose a problem I have observed with the LoRaWAN stack. My stack was downloaded from the LoRaMac-Node github (version 4.4.5 of 14/10/2020).
The problem I have is the apparition of return code LORAMAC_STATUS_DUTYCYCLE_RESTRICTED when trying to join the network. This error always appears when sending the 13th Join request message (no Join Accept message transmitted from the network). This message is sent around 4 hours after the last successfully transmitted Join message. Duty cycle restriction should not appears at that stage.
Did someone has ever seen this kind of issue ?
Here is the code to transmit Join request :
static Mlmereq_t mlmeReq ;
mlmeReq.Type = MLME_JOIN;
mlmeReq.Req.Join.Datarate = 0; // SF12
mac_status = LoRaMacMlmeRequest(&mlmeReq);
Thank you for helping