lorabasics / basicstation

LoRa Basics™ Station - The LoRaWAN Gateway Software
https://doc.sm.tc/station
Other
358 stars 183 forks source link

gpsd support #136

Open adriansmares opened 2 years ago

adriansmares commented 2 years ago

References https://github.com/lorabasics/basicstation/issues/105#issuecomment-878389400

It would be nice if BasicStation would have the capacity to talk directly to a local gpsd instance, instead of requiring a background script that pushes the NMEA sentences via a FIFO. Most of the logic in gps.c would be virtually the same, as gpsd can output directly NMEA senteces (minus 3 initial sentences of garbage).

A minimal implementation could just use gpspipe -r in order to connect to the local gpsd instance and read to NMEA sentences, while a more robust implementation most likely would prefer to just open a pipe/local socket.

jpmeijers commented 2 years ago

I second this. It would definitely make the most sense to use gpsd, as that is the standard way of sharing a hardware GPS device on Linux.

Also gpsd has the ability to configure GPS receivers into the correct mode, and do some calculations like accuracy in meters.

smtc-bot commented 2 years ago

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!