Lora network-server received messages : timestamps
Home › Forums › Conduit: mLinux Model › Lora network-server received messages : timestamps
- This topic has 13 replies, 2 voices, and was last updated 8 years, 9 months ago by Brian Wyld.
-
AuthorPosts
-
January 4, 2016 at 8:02 am #10748Brian WyldParticipant
Hi,
I’m using the UDP messages sent by the lora network server (AppPortUp=1784), and would like to know exactly when the lora frame was received.
There are 2 timestamps in the JSON.
The first one:
“timestamp”:”2015-12-28T17:25:16Z”
is “real” formatted clock time, but only accurate to the nearest second. The other one:
“tmst”:3173772811
is more accurate (ms?) and exactly what I want (ts of the end of the reception of the frame). But as it’s not the usual ‘ms since epoch’, I can’t see how to relate it to the “real” time….Is there a way to get ‘timestamp’ to be ms accuracy? Or to relate ‘tmst’ to clock time?
thanks in advance
Brian
January 4, 2016 at 8:43 am #10750Jason ReissKeymasterThe “tmst” value is a timestamp internal to the packet-forwarder processes. The network server uses this value to schedule the downlink packets.
The “timestamp” value is added by the network server when it receives the UDP packet from the forwarder.
We could include the ms in the timestamp but the would not accurately represent the exact received time of the frame at the radio.
The “tmst” value is a clock from the start of packet-forwarder, you could reference the process start time. But this time is in second resolution so not accurate to ms.
> ps -eo pid,comm,lstart
January 4, 2016 at 11:16 am #10753Brian WyldParticipantHi,
Ok… Any reason why the tmst value is not just ms since epoch? Any chance it could be?
Brian
January 5, 2016 at 10:10 am #10762Brian WyldParticipantHi Jason,
I’m trying to use the tmst value : what units is it? ms? uS?
The ‘info’ for the lora rx object in nodeRED says just
“Internal timestamp of “RX finished” event (32b unsigned)”thanks for any info on this…
Brian
January 5, 2016 at 10:48 am #10763Jason ReissKeymasterIt is in micro-seconds.
January 6, 2016 at 2:50 am #10764Brian WyldParticipantOk, thanks.
Looking at the code of the pkt_forwarder, it seems that it creates a timestamp to ms precision (‘time’) in the packet it forwards. However, the lora-network-server doesn’t pass this data on after it has processed the packet?thanks
Brian
January 11, 2016 at 9:12 am #11013Brian WyldParticipantHi Jason,
It’d be much nicer if the network-server just passed on the ‘time’ attribute from the pkt-forwarder as the rx time : more accurate and closer to the radio reception…
I’ve been trying to use the tmst value together with the timestamp to get a more accurate timestamp, but now I’ve discovered that the drift in the tmst value is very high : something like 15-25ms per minute! I was trying to use this to sync my objects to 1-2ms precision, but this kind of drift makes that impossible…
Any ideas on how to get a 1 or 2ms precision rx timestamp on these packets?
thanks
Brian
January 11, 2016 at 9:37 am #11016Jason ReissKeymasterWe can pass the full value from the packet forwarder in a future version. Not sure on a time table at the moment however.
January 11, 2016 at 10:05 am #11017Brian WyldParticipantOk.. Added to the requests about the management of the tx queue I guess I can make a list…
I’d like to update to 0.0.9. I see the release notes,but I can’t see the package (latest referenced on the downloads page is 0.0.8). Can you give me the good url for the package please?
thanks
Brian
January 11, 2016 at 10:16 am #11021Jason ReissKeymasterThe downloads page has been updated.
January 11, 2016 at 10:33 am #11024Brian WyldParticipantOk thanks! I’ll see if that fixes my ‘delayed downlink’ issue…
A+
brian
January 11, 2016 at 11:46 am #11025Brian WyldParticipantHi Jason,
I’ve upgraded to 0.0.9, no particular issues, but no fixes for my problem of ‘no tx’….
My main problem is that I’m really stuck here without having the ‘time’ attribute coming through from the pkt-forwarder into the decoded /up stream. I can’t get my application to sync up its objects without this….
Is there a way to get a fast-tracked build of lora-network-server with this feature?
thanks!
Brian
January 11, 2016 at 11:58 am #11028Jason ReissKeymasterPlease open a case at https://support.multitech.com/ to share more info of your ‘no tx’ issue and see about getting dev build.
January 12, 2016 at 2:40 am #11038Brian WyldParticipantHi Jason,
I opened 5067328 and 5067329 for the ‘tx’ and ‘timestamp’ issues.
Thanks
Brian
-
AuthorPosts
- You must be logged in to reply to this topic.