Cannot send multiple Txpk in same PULL_RESP
j0sete opened this issue · 2 comments
I tried to send two txpk, one for RX1 and the other in the RX2 in the same JSON, I see how packet forwarded do it in the rxpk context and replicate it in my txpk using a list of txpk, but packet forwarded is rejecting my PULL_RESP.
More information:
/*
This is a trace from the console:
JSON down: {"txpk": [{"imme": false, "tmst": 1080854876, "rfch": 0, "powe": 14, "ipol": true, "datr": "SF12BW125", "freq": 868.3, "modu": "LORA", "codr": "4/5", "prea": 8, "size": 17, "data": "YAAAAAAAAgDg6k9OFSZbm2E="}, {"imme": false, "tmst": 1081854876, "rfch": 0, "powe": 14, "ipol": true, "datr": "SF12BW125", "freq": 869.525, "modu": "LORA", "codr": "4/5", "prea": 8, "size": 17, "data": "YAAAAAAAAwDgHhputEMfnCU="}]}
WARNING: [down] no "txpk" object in JSON, TX aborted
*/
/*TXPK for RX1 and RX2 in same txpk*/
{"txpk": [
{
"imme": false,
"tmst": 1080854876,
"rfch": 0,
"powe": 14,
"ipol": true,
"datr": "SF12BW125",
"freq": 868.3,
"modu": "LORA",
"codr": "4/5",
"prea": 8,
"size": 17,
"data": "YAAAAAAAAgDg6k9OFSZbm2E="
},
{
"imme": false,
"tmst": 1081854876,
"rfch": 0,
"powe": 14,
"ipol": true,
"datr": "SF12BW125",
"freq": 869.525,
"modu": "LORA",
"codr": "4/5",
"prea": 8,
"size": 17,
"data": "YAAAAAAAAwDgHhputEMfnCU="
}
]}
/* Normal TXPK */
{"txpk":
{
"imme": false,
"tmst": 1070971668,
"rfch": 0,
"powe": 14,
"ipol": true,
"datr": "SF12BW125",
"freq": 868.5,
"modu": "LORA",
"codr": "4/5",
"prea": 8,
"size": 17,
"data": "YAAAAAAAAQDg+HMRKC0Uusg="
}}
/*
Seems like packet forwarder is waiting just for one TXPK at a time:
[line 2231 of lora_pkt_fwd.c -> https://github.com/Lora-net/packet_forwarder/blob/d0226eae6e7b6bbaec6117d0d2372bf17819c438/lora_pkt_fwd/src/lora_pkt_fwd.c]
============================================================================================================================================
memset(&txpkt, 0, sizeof txpkt);
root_val = json_parse_string_with_comments((const char *)(buff_down + 4));
if (root_val == NULL) {
MSG("WARNING: [down] invalid JSON, TX aborted\n");
continue;
}
=============================================================================================================================================
*/
The defined protocol does not support sending an array of packets in a txpk message.
https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT
In an effort to improve our customer support experience and in recognition that our support backlog on GitHub has historically exceeded the capacity of our engineering team, we have taken the difficult decision to focus on the most contemporary issues reported and to close all others without confirmation of resolution.
Our belief is that issues which have remained unresolved and unaltered for extended periods of time are less likely to continue to pose a significant problem to the user than when they were originally filed. More contemporary issues however may still be relevant and hence are more appropriate to prioritize.
For those users who remain interested in resolution of a reported issue that was closed, we are encouraging usage of our developer portal forums [https://forum.lora-developers.semtech.com/] and commercial support portal [https://semtech.force.com/ldp/ldp_support] as the preferred avenues to receive support. We will continue to monitor the GitHub issue trackers as well, but want to encourage all users to take advantage of the increased community presence on the developer portal. For commercial customers, we highly recommend using the commercial support portal which is uniquely tailored to service such support requests.