Hi there!
I’m a university student from Furtwangen, Germany, and I’m currently writing my Master’s Thesis about evaluating options for localization in LoRaWAN.
At the moment, I’m looking into Time of Arrival (ToA) data to be able to multilaterate end device locations using the timestamps the gateways get when they receive LoRa packets from said end devices.
However, when looking at the device event details in my TTN console (specifically, the keys data.uplink_message.rx_metadata.received_at
), there seems to be a massive difference in timestamps there.
Sometimes, this difference can reach one or around one second, which makes estimating device distance to said gateways with ToA (and speed of light) calculations impossible.
Can this be a setup issue with the gateways (as in, they’re not time-synced accurately enough) or what am I doing wrong?
Example rx_metadata
:
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "68068734-f17f-4ec2-ac0d-5ec7332d5e4e",
"eui": "3436323825005F00"
},
"time": "2023-05-14T17:58:42.907916Z",
"timestamp": 3837405089,
"rssi": -114,
"channel_rssi": -114,
"snr": -6.75,
"location": {
"latitude": 48.0474728410219,
"longitude": 8.21604073047638,
},
"channel_index": 5,
"received_at": "2023-05-14T18:00:11.311072430Z"
},
{
"gateway_ids": {
"gateway_id": "hfu-lr8-001",
"eui": "503035414A154750"
},
"time": "2023-05-14T18:00:01.415399Z",
"timestamp": 3106550092,
"rssi": -97,
"channel_rssi": -97,
"snr": 7.5,
"location": {
"latitude": 48.04827624596974,
"longitude": 8.208827033494345,
},
"channel_index": 5,
"received_at": "2023-05-14T18:00:11.313968629Z"
},
{
"gateway_ids": {
"gateway_id": "eui-a840411fcbc04150",
"eui": "A840411FCBC04150"
},
"time": "2023-05-14T18:00:10.828676939Z",
"timestamp": 3411843324,
"rssi": -129,
"channel_rssi": -129,
"snr": -9,
"location": {
"latitude": 48.0510773011533,
"longitude": 8.20900770884946,
},
"received_at": "2023-05-14T18:00:11.320176521Z"
},
{
"gateway_ids": {
"gateway_id": "eui-a84041203275aeac",
"eui": "A840412032751337"
},
"time": "2023-05-14T18:00:11.189132928Z",
"timestamp": 2468010284,
"rssi": -101,
"channel_rssi": -101,
"snr": 8,
"received_at": "2023-05-14T18:00:11.313311649Z"
}
],
Greetings
Bastian