Rx error while using OTAA devics

I understand that Disable frame-counter validation box (on ABP activation).
I am getting rx session error while using OTAA devices.

I referred below link
https://forum.loraserver.io/t/relax-frame-counter/485/5

Seem it could be some issue in the devices.
Can you please comment that in what condition we may get rx session error in lora server in case of OTAA devices

A network-server will reject a frame:

  • when the FCnt did not increment (re-transmission or replay attack)
  • Invalid MIC (signed with a different NwkSKey?)
  • DevAddr can’t be resolved used NwkSKey and MIC pair (e.g. device is not activated, activation expired).

Hi @brocaar,

Its my first time trying to build LoraServer. I have two nodes transmitting every 15 seconds.

as you mention in the above answer,
“A network-server will reject a frame, when the FCnt did not increment (re-transmission or replay attack).”

In my case I have this kind of problem. I check the packet-forwarder logs and I notice that for some reason the Fcnt stops the increment. This means that stays for some transmissions the same. I understand why the packets are rejected but I don not the reason why the frame counter stops.

I would really appreciate if someone could guide me where to search for the solution. If it is a matter of the server or the problem comes from the node.

If needed I have all the log files for a period of time that shows reaction of the server and the packet-forwarder.

Thank you in advance

For uplink the FCnt is set by your devices.

@brocaar you are right, this is also what I knew from theory.

But searching to the packet-forwarders log I found that during that period of time that the node is sending the same frame count is changing the communication options. Please take a look below:

`Jul 10 12:51:30 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=423)
Jul 10 12:51:30 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3641289651,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.2,“rssi”:-72,“size”:30,“data”:“gP3viAaApwFjmHbji2idmIdh8kfHBNcjYxh6DLQl”}]}
Jul 10 12:51:30 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:51:30 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3656305867,“chan”:0,“rfch”:1,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:10.8,“rssi”:-75,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:52:00 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:52:00 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3663518571,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:11.0,“rssi”:-75,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:52:00 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:52:00 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3670782740,“chan”:0,“rfch”:1,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF8BW125”,“codr”:“4/5”,“lsnr”:12.0,“rssi”:-75,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:52:00 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:52:00 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3683196476,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF8BW125”,“codr”:“4/5”,“lsnr”:11.5,“rssi”:-73,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:52:50 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:52:50 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3695713140,“chan”:0,“rfch”:1,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF9BW125”,“codr”:“4/5”,“lsnr”:12.2,“rssi”:-73,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:53:30 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:53:30 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3741362116,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“lsnr”:13.2,“rssi”:-72,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:54:21 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=424)
Jul 10 12:54:21 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3786675412,“chan”:2,“rfch”:1,“freq”:868.500000,“stat”:1,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“lsnr”:8.5,“rssi”:-72,“size”:30,“data”:“gP3viAaAqAFjH6OP0VvxIC0Vae0/bOD/HX7VUhET”}]}
Jul 10 12:55:00 raspberrypi start.sh[277]: INFO: Received pkt from mote: 0688EFFD (fcnt=425)
Jul 10 12:55:00 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3836725900,“chan”:0,“rfch”:1,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“lsnr”:9.0,“rssi”:-70,“size”:30,“data”:“gP3viAaAqQFjwU7LcarZ/zGZBSsnCJq1WlKeSQfY”}]}

Jul 10 15:17:16 raspberrypi start.sh[277]: INFO: Received pkt from mote: 07B0AFED (fcnt=41)
Jul 10 15:17:16 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3803711323,“chan”:0,“rfch”:1,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:10.0,“rssi”:-77,“size”:30,“data”:“gO2vsAeAKQBjLht1sNQiKhZkVNJqfwFiwRJ7GUdO”}]}
Jul 10 15:17:16 raspberrypi start.sh[277]: INFO: Received pkt from mote: 07B0AFED (fcnt=41)
Jul 10 15:17:16 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3810924035,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.8,“rssi”:-73,“size”:30,“data”:“gO2vsAeAKQBjLht1sNQiKhZkVNJqfwFiwRJ7GUdO”}]}
Jul 10 15:18:00 raspberrypi start.sh[277]: INFO: Received pkt from mote: 07B0AFED (fcnt=41)
Jul 10 15:18:00 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3818188196,“chan”:2,“rfch”:1,“freq”:868.500000,“stat”:1,“modu”:“LORA”,“datr”:“SF8BW125”,“codr”:“4/5”,“lsnr”:8.8,“rssi”:-69,“size”:30,“data”:“gO2vsAeAKQBjLht1sNQiKhZkVNJqfwFiwRJ7GUdO”}]}
Jul 10 15:18:30 raspberrypi start.sh[277]: INFO: Received pkt from mote: 07B0AFED (fcnt=41)
Jul 10 15:18:30 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3865828964,“chan”:2,“rfch”:1,“freq”:868.500000,“stat”:1,“modu”:“LORA”,“datr”:“SF9BW125”,“codr”:“4/5”,“lsnr”:8.8,“rssi”:-75,“size”:30,“data”:“gO2vsAeAKQBjLht1sNQiKhZkVNJqfwFiwRJ7GUdO”}]}
Jul 10 15:19:30 raspberrypi start.sh[277]: INFO: Received pkt from mote: 07B0AFED (fcnt=41)
Jul 10 15:19:30 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3934079908,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“lsnr”:11.2,“rssi”:-72,“size”:30,“data”:“gO2vsAeAKQBjLht1sNQiKhZkVNJqfwFiwRJ7GUdO”}]}
Jul 10 15:21:00 raspberrypi start.sh[277]: INFO: Received pkt from mote: 07B0AFED (fcnt=42)
Jul 10 15:21:00 raspberrypi start.sh[277]: JSON up: {“rxpk”:[{“tmst”:3984131372,“chan”:1,“rfch”:1,“freq”:868.300000,“stat”:1,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“lsnr”:11.5,“rssi”:-75,“size”:30,“data”:“gO2vsAeAKgBjLbC4tSBiyFtMCVEeNOs0Y3EEtZU6”}]}
`
These are two examples where the Fcnt is not being incremented. I collected from the log the mesages where as it seems is changing the SF.

What causes this change? Please take into account that the nodes and the antenna are not changing their location.

I am wondering If I can reduce these stops.

Any advice will be appreciated.