Hi,
We are facing a strange issue with downlink message :
- We create using GRPC interface a new OTAA device
- The device joins and sends a confirmed uplink message
- Ack is received on device
- We create using GRPC a enqueued downlink message
- The device send a new confirmed uplink message
- The downlink ack is sent with enqueued downlinik payload
This behaviour works from a long time on our test chirpstack installation.
We upgraded to the last version from today and we are facing a strange issue with the second downlink message (with payload) having a fcount equals 0. So our device discard the message.
We didn’t see this issue before with previous versions and it worked very well.
Here is some frame logs from web interface with a correct case and a bad one.
[
{
"type": "txack",
"payload": {
"applicationID": "1",
"applicationName": "RAK2245",
"deviceName": "DUT-2C522B3424A397D0",
"devEUI": "LFIrNCSjl9A=",
"fCnt": 0,
"tags": {},
"gatewayID": "q83v//6rze8=",
"txInfo": {
"gatewayID": null,
"frequency": 868100000,
"power": 14,
"modulation": "LORA",
"loRaModulationInfo": {
"bandwidth": 125,
"spreadingFactor": 7,
"codeRate": "4/5",
"polarizationInversion": true
},
"board": 0,
"antenna": 0,
"timing": "DELAY",
"delayTimingInfo": {
"delay": "1s"
},
"context": "BMXmWw=="
},
"publishedAt": "2021-09-01T11:45:42.426440922Z"
}
},
{
"type": "up",
"payload": {
"applicationID": "1",
"applicationName": "RAK2245",
"deviceName": "DUT-2C522B3424A397D0",
"devEUI": "LFIrNCSjl9A=",
"rxInfo": [
{
"gatewayID": "q83v//6rze8=",
"time": null,
"timeSinceGPSEpoch": null,
"rssi": -11,
"loRaSNR": 10.8,
"channel": 0,
"rfChain": 1,
"board": 0,
"antenna": 0,
"location": {
"latitude": 0,
"longitude": 0,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
},
"fineTimestampType": "NONE",
"context": "BMXmWw==",
"uplinkID": "3V4sVDTtQUKQS4Dhs3f/Dg==",
"crcStatus": "CRC_OK"
}
],
"txInfo": {
"frequency": 868100000,
"modulation": "LORA",
"loRaModulationInfo": {
"bandwidth": 125,
"spreadingFactor": 7,
"codeRate": "4/5",
"polarizationInversion": false
}
},
"adr": false,
"dr": 5,
"fCnt": 2,
"fPort": 223,
"data": "+////+wA/P///+0A/P///+0A",
"objectJSON": "",
"tags": {},
"confirmedUplink": true,
"devAddr": "B41yaQ==",
"publishedAt": "2021-09-01T11:45:42.312992136Z"
}
},
{
"type": "up",
"payload": {
"applicationID": "1",
"applicationName": "RAK2245",
"deviceName": "DUT-2C522B3424A397D0",
"devEUI": "LFIrNCSjl9A=",
"rxInfo": [
{
"gatewayID": "q83v//6rze8=",
"time": null,
"timeSinceGPSEpoch": null,
"rssi": -11,
"loRaSNR": 10,
"channel": 0,
"rfChain": 1,
"board": 0,
"antenna": 0,
"location": {
"latitude": 0,
"longitude": 0,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
},
"fineTimestampType": "NONE",
"context": "BJHxAw==",
"uplinkID": "Iw81epXpSdy0rFjl4oL3NA==",
"crcStatus": "CRC_OK"
}
],
"txInfo": {
"frequency": 868100000,
"modulation": "LORA",
"loRaModulationInfo": {
"bandwidth": 125,
"spreadingFactor": 7,
"codeRate": "4/5",
"polarizationInversion": false
}
},
"adr": false,
"dr": 5,
"fCnt": 1,
"fPort": 223,
"data": "/f/+/+0A/P///+wA/P///+wA",
"objectJSON": "",
"tags": {},
"confirmedUplink": true,
"devAddr": "B41yaQ==",
"publishedAt": "2021-09-01T11:45:38.925019720Z"
}
},
{
"type": "join",
"payload": {
"applicationID": "1",
"applicationName": "RAK2245",
"deviceName": "DUT-2C522B3424A397D0",
"devEUI": "LFIrNCSjl9A=",
"devAddr": "B41yaQ==",
"rxInfo": [
{
"gatewayID": "q83v//6rze8=",
"time": null,
"timeSinceGPSEpoch": null,
"rssi": -11,
"loRaSNR": 10,
"channel": 0,
"rfChain": 1,
"board": 0,
"antenna": 0,
"location": {
"latitude": 0,
"longitude": 0,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
},
"fineTimestampType": "NONE",
"context": "BJHxAw==",
"uplinkID": "Iw81epXpSdy0rFjl4oL3NA==",
"crcStatus": "CRC_OK"
}
],
"txInfo": {
"frequency": 868100000,
"modulation": "LORA",
"loRaModulationInfo": {
"bandwidth": 125,
"spreadingFactor": 7,
"codeRate": "4/5",
"polarizationInversion": false
}
},
"dr": 5,
"tags": {},
"publishedAt": "2021-09-01T11:45:38.919582439Z"
}
}
]