sudomesh / disaster-radio

A (paused) work-in-progress long-range, low-bandwidth wireless disaster recovery mesh network powered by the sun.
https://disaster.radio
1.05k stars 109 forks source link

GPS coordinates either not sent correctly or not interpreted correctly. #95

Closed deafboy closed 4 years ago

deafboy commented 4 years ago

GPS beacons as seen by sender using telnet console: Platform: ttgo t-beam V07

/set gps 60000 GPS beacons enabled, interval of GPS beacon messages set to 60000ms Sent GPS reading [48.1XX,17.1XX] Sent GPS reading [48.1XX,17.1XX] Sent GPS reading [48.1XX,17.1XX] Sent GPS reading [48.1XX,17.1XX] Sent GPS reading [48.1XX,17.1XX] Sent GPS reading [48.1XX,17.1XX]

GPS beacons as seen by receiver using BLE console: Platform: ttgo v2

image

paidforby commented 4 years ago

I bet that it is sending correctly, but it just isn't being printed correctly upon being received. Can you try building the firmware for the sender (and maybe the receiver also) with the build flag -DLL2_DEBUG? That should show the contents of the packet as it is passed along through the LL2 library functions.

I will try to reproduce with my t-beam.

paidforby commented 4 years ago

I remember the problem. I'm missing a +5 to the length. Need to account for the five byte datagram header, that's what's causing the message to be truncated. I'll fix this and resolve this issue with my next commit.