Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp #20

Open
guy426 opened this issue Sep 26, 2023 · 4 comments
Open

Timestamp #20

guy426 opened this issue Sep 26, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@guy426
Copy link

guy426 commented Sep 26, 2023

Time of messages is always year 1980..

@fedyfausto
Copy link
Member

Can you give more details about the environment? to reproduce the situation

@guy426
Copy link
Author

guy426 commented Sep 27, 2023

My network server is Chirpstack
This is an example of decoded packet:
{"tst":"2023-09-27T10:57:15.161510+0200","topic":"application/9e548d1d-37cb-43fc-8231-25bfe45508f3/device/685b00ff4c1f9511/event/up","qos":0,"retain":0,"payloadlen":1436,"payload":{"deduplicationId":"a7fed1c4-6243-44af-9310-f3f4e3e3eb00","time":"1980-01-21T23:17:20.234+00:00","deviceInfo":{"tenantId":"52f14cd4-c6f1-4fbd-8f87-4025e1d49242","tenantName":"ChirpStack","applicationId":"9e548d1d-37cb-43fc-8231-25bfe45508f3","applicationName":"counter","deviceProfileId":"408f84b7-f359-4995-8fb7-1a70f0f12f85","deviceProfileName":"device_profile","deviceName":"dev3","devEui":"685b00ff4c1f9511","deviceClassEnabled":"CLASS_A","tags":{}},"devAddr":"010da236","adr":true,"dr":0,"fCnt":183,"fPort":1,"confirmed":false,"data":"dGVzdDMgMjAgc2Vjb25kaQ==","object":{"cmd":"test3 20 secondi"},"rxInfo":[{"gatewayId":"285bd82c7d76e7e1","uplinkId":50925,"time":"2023-09-27T08:57:14+00:00","timeSinceGpsEpoch":"1379840.234s","rssi":-60,"snr":7,"channel":1,"location":{"latitude":43.735555660125584,"longitude":10.95216751098633,"source":"GPS"},"context":"ZRPuag==","metadata":{"region_config_id":"eu868","region_common_name":"EU868"},"crcStatus":"CRC_OK"},{"gatewayId":"4645c2a5de7dfb99","uplinkId":58674,"time":"2023-09-27T08:57:14+00:00","timeSinceGpsEpoch":"1379840.234s","rssi":-60,"snr":7,"channel":1,"location":{"latitude":43.724019581115016,"longitude":10.949935913085939,"source":"GPS"},"context":"ZRPuag==","metadata":{"region_config_id":"eu868","region_common_name":"EU868"},"crcStatus":"CRC_OK"}],"txInfo":{"frequency":868300000,"modulation":{"lora":{"bandwidth":125000,"spreadingFactor":12,"codeRate":"CR_4_5"}}}}}

@fedyfausto
Copy link
Member

ok the problem could be the forwarder because the new protocol requires a valid GPS to bring the timestamp, I will investigate on this

@itarozzi
Copy link

itarozzi commented Oct 3, 2023

I can confirm this issue.
The field timeSinceGpsEpoch contains a bad value, not corresponding to the time field

@fedyfausto fedyfausto added the help wanted Extra attention is needed label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants