Millisecond accuracy in IoT Core LoRaWan message timestamps

0

Is there any way to enforce millisecond accurate timestamps in the metadata of messages from LoRaWan devices?

I have verified that the timestamp generated by my gateway is a unix timestamp in millisecond (eg 1667406503931), but the JSON timestamp in the metadata I am getting from IoT Core is a string timestamp that only goes to seconds (eg. 2022-11-02T16:23:15Z).

The example with gateway metadata off on this page of the documentation has an example of a message with milliseconds in the timestamp, and I am curious how accurate that example is. Currently if I disable gateway metadata in the service profile it will remove the timestamp all-together (the only metadata I get is fcount and fport) so I am wondering if I am missing something or if that example is just wrong.

Truncating the milliseconds like this also makes it unclear if the timestamp in the metadata is the time that the Gateway received the message, or if it is the time that the LNS server received the message, is this information also available anywhere?

I poked around in the settings and documentation for the Devices, Gateways, Device profiles and Service profiles and was unable to find much regarding timestamps or metadata formatting.

Is anyone able to provide any insight into this, or otherwise point me in the right direction?

질문됨 일 년 전346회 조회
1개 답변
0

Hi Joseph. I checked with the service team. The documentation should not be showing the milliseconds part. The timestamp is the time that the LNS received the message. We'll get the documentation changed to clarify this. Apologies for the confusion.

profile pictureAWS
전문가
Greg_B
답변함 일 년 전
  • Hey Greg, I was under the impression that the timestamp field in the metadata was the timestamp from gateway (on the edge). Can you confirm that this timestamp is actually the time that AWS LNS receives the message?

  • This is a follow-up to my last question. In a separate AWS Support ticket, we've confirmed that the timestamp field is the time AWS LNS receives the message and not the timestamp from the edge

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠