-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Fcnt while testing with multiple devices #287
Comments
Could you please indicate which branch of this repository are you using? Last week we solved a similar issue on the develop branch. We don't know if the issue you are observing is the same but, just in case please find below the commit message and fix that we will push on GitHub as soon as we have fully validated it.
The fix is the following: LoRaMacStatus_t LoRaMacMcpsRequest( McpsReq_t *mcpsRequest )
{
...
//************************Fix begin***************************
// AckTimeoutRetriesCounter must be reset every time a new request (unconfirmed or confirmed) is performed.
AckTimeoutRetriesCounter = 1;
//************************Fix end ***************************
switch( mcpsRequest->Type )
{
case MCPS_UNCONFIRMED:
{
readyToSend = true;
AckTimeoutRetries = 1;
macHdr.Bits.MType = FRAME_TYPE_DATA_UNCONFIRMED_UP;
fPort = mcpsRequest->Req.Unconfirmed.fPort;
fBuffer = mcpsRequest->Req.Unconfirmed.fBuffer;
fBufferSize = mcpsRequest->Req.Unconfirmed.fBufferSize;
datarate = mcpsRequest->Req.Unconfirmed.Datarate;
break;
}
case MCPS_CONFIRMED:
{
readyToSend = true;
//************************Fix begin***************************
//AckTimeoutRetriesCounter = 1;
//************************Fix end***************************
AckTimeoutRetries = mcpsRequest->Req.Confirmed.NbTrials;
macHdr.Bits.MType = FRAME_TYPE_DATA_CONFIRMED_UP;
...
} |
I am using latest version v4.3.2 released in April |
Thanks for the info. Could you please try the proposed fix by modifying your source code? As you may be aware of the 4.3.2 release was the last one based on 1.0.1 version of the LoRaWAN specification. |
Thanks for quick reply, Now working fine. |
Hi, I am using same code but now Rx window 2 selected from server side(Frequency 8665500000 SF 10 India ISM Band). |
Have you been able to solve your issue? |
No feedback we close the issue. |
Hi,
I am testing with 5 End Devices and observation is :
Some times Fcnt missed the sequence.
Suppose Send frame with Fcnt=10 and next frame will be with Fcnt=12 hence Fcnt=11 droped.
Lora Gateway(Hardware) = iC880A with raspberry Pi3
Lora Packet Forwarder version v4.0.1
Lora Gateway version v5.0.1
As per Attached Log
Fcnt=3 send after Fcnt=1 , Fcnt=2 droped.
The text was updated successfully, but these errors were encountered: