Hello everyone. I have some troubles with understanding one thing. Can someone help. The thing is, when receiving the Unconfirmed Data Up, from LoRa sensor, the Network server generates response, the Unconfirmed Data Down. The picture shows it after the base64 conversion with comments.
The message doesn’t have Fport and FRMPayload as seems, meaning only MHDR with piggybacked FOpts. Then my question is how the MIC is calculated ? If according lorawan specification document, to calculate MIC need to have also Fport and FRMPayload.
Last confusing thing, is how the values in FOpts field are assigned ? Need to use CID, however the massage shown above doesnt have only 0x02 - 0x0A, 0x0D, 0x80 - 0xFF values, like in lorawan specification document. Could someone explain how MAC commands are assigned ?