UNopenGIS / 7

UN Smart Maps - keep web maps open for a better world
https://unopengis.github.io/smartmaps/
Creative Commons Zero v1.0 Universal
12 stars 2 forks source link

GUI-Based GNSS Receiver Demo on Raspberry Pi Using PyGPSClient #514

Open hfu opened 2 weeks ago

hfu commented 2 weeks ago

Description

I aim to share the basics of GNSS receivers using the most affordable USB-connected GNSS antenna, demonstrating this setup on a Raspberry Pi. However, the u-blox u-center software only operates on Windows, making it unsuitable for this project. For a more casual and accessible demo on Raspberry Pi, a GUI-based approach would be ideal.

最安価のUSB接続GNSSアンテナを使用してGNSSレシーバーの基礎を共有し、Raspberry Pi上でこのセットアップをデモしたいと考えています。しかし、u-blox u-centerソフトウェアはWindowsでしか動作せず、このプロジェクトには適していません。Raspberry Pi上でよりカジュアルでアクセスしやすいデモを行うためには、GUIベースのアプローチが理想的です。

Proposed Solution

PyGPSClient appears to be a promising solution for creating a GUI-based demo on Raspberry Pi. It offers a user-friendly interface and is compatible with Python, making it a good fit for our needs.

PyGPSClientは、Raspberry Pi上でGUIベースのデモを作成するための有望なソリューションのように見えます。これは、ユーザーフレンドリーなインターフェースを提供し、Pythonと互換性があるため、私たちのニーズに適しています。

Challenges

While PyGPSClient seems suitable for Raspberry Pi, I encountered difficulties running it natively on macOS due to issues related to Python and Tkinter. This incompatibility prevented successful execution on my macOS setup.

PyGPSClientはRaspberry Piに適しているようですが、macOS上でネイティブに動作させる際にPythonやTkinterに関連する問題が発生し、私のmacOS環境では正常に実行できませんでした。

TODO

Feel free to adjust any details as needed!

必要に応じて詳細を調整してください!

See also

https://github.com/semuconsulting/PyGPSClient

hfu commented 1 week ago

Raspberry Pi での実験記録

やはり Raspberry Pi 4B で実験していく方が正しいと思ったので、少し作業してみました。その結果です。

シリアル通信で確認

pygpsclient

python3 -m venv gnss
source gnss/bin/activate
  pip install --upgrade pip
  pip install pygpsclient
  ./gnss/bin/pygpsclient
  ...
  deactivate