packet_forwarder icon indicating copy to clipboard operation
packet_forwarder copied to clipboard

time field empty when no GPS present

Open jpmeijers opened this issue 3 years ago • 1 comments

Looking at the PROTOCOL https://github.com/Lora-net/packet_forwarder/blob/d0226eae6e7b6bbaec6117d0d2372bf17819c438/PROTOCOL.TXT#L133-L135

And then at the code https://github.com/Lora-net/packet_forwarder/blob/d0226eae6e7b6bbaec6117d0d2372bf17819c438/lora_pkt_fwd/src/lora_pkt_fwd.c#L1609-L1637

time should contain an ISO time, irrelevant if the gateway is GPS synced or not. Maybe it's NTP synced, and the should be good enough to indicate at what time a packet was received.

tmms should contain the GPS timestamp in case a GPS is present.

tmst contains the concentrator clock counter value used to schedule downlinks accurately.

My opinion is that this line https://github.com/Lora-net/packet_forwarder/blob/d0226eae6e7b6bbaec6117d0d2372bf17819c438/lora_pkt_fwd/src/lora_pkt_fwd.c#L1613 should be removed.

jpmeijers avatar Apr 28 '21 12:04 jpmeijers

I was expecting to see the time field being added when fake_gps is enabled, but that does not seem to work.

Fake GPS off (metadata from TTN):

{
   "gtw_id":"eui-60c5a8fffeXXXXXX",
   "timestamp":11257844,
   "time":"",
   "channel":5,
   "rssi":-38,
   "snr":9.5,
   "rf_chain":0
}

Fake GPS on:

{
   "gtw_id":"eui-60c5a8fffeXXXXXX",
   "timestamp":600364156,
   "time":"",
   "channel":5,
   "rssi":-38,
   "snr":9,
   "rf_chain":0,
   "latitude":"<REDACTED>",
   "longitude":"<REDACTED>",
   "altitude":190
}

jpmeijers avatar Apr 28 '21 12:04 jpmeijers

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!

smtc-bot avatar Sep 30 '22 12:09 smtc-bot