Hi everyone,
after some debug and test I think I nailed the problem.
I’m using the CubeCell connected to a ChirpStack gateway, monitoring all the transactions.
This gateway is stable, running from more than 1y with other LoraWAN devices not based on cubecell.
on my cubecell sensor I’m sending one frame every 3h and after few days everything is stuck as I mentioned.
But using an RF scanner I noticed that I was still sending frames over the air, so looking at the logs I got the message:
Dec 01 18:01:56 ttn-gateway chirpstack-network-server[511]: time=“2020-12-01T18:01:56+01:00” level=error msg=“uplink: processing uplink frame error” ctx_id=e4f4aa1c-5fa4-44ff-93f4-4e03c6936497 error=“get device-session error: frame-counter did not increment”
It seems that the problem is on the FRAME COUNTER number of the frames sent by the cubecell.
somehow it is not incrementing anymore (did double check) and so it is failing the FCN check and discarding the new data.
and this explains why if I reset the board everything works fine.
===
I’m sending data to the gateway with ACK and indeed the gateway is responding on each transmission, but then the packet is dropped because of the wrong frame number…
===
where is the code that handles the fame number increment on each transmission?
thanks