开发者

get GPS coordinates via bluetooth with python on OSX

开发者 https://www.devze.com 2023-01-15 19:00 出处:网络
I jus开发者_运维技巧t bought a GPS bluetooth receiver, which has been correctly paired with my OSX machine. Now I would like to query the device for my position with python. How do I do it?I assume yo

I jus开发者_运维技巧t bought a GPS bluetooth receiver, which has been correctly paired with my OSX machine. Now I would like to query the device for my position with python. How do I do it?


I assume your GPS receiver works over a virtual COM port, so it's independent of bluetooth.

Probably these libraries will help you:

  • Python bindings for gpsd (which is available for Mac too)
  • PyGPS, untested


with a virtual COM port you can use this script with the NMEA 0183 protocol http://miguellopes.net/bluetooth-gps-python/ (it's in portuguese but google translator can give you a help there)

0

精彩评论

暂无评论...
验证码 换一张
取 消