LoginSignup
0
0

More than 3 years have passed since last update.

ubuntuでusb接続のGPSを読み取り

Last updated at Posted at 2019-12-27

一般ユーザーでもusb出力を読み取れるようグループに追加

sudo adduser $USER dialout

GPS + rt rx なusb端末をパソコンに接続する。

gpsdのインストール

sudo apt-get install gpsd gpsd-clients python-gps

usbから読み取るよう設定ファイルの変更

sudo emacs /etc/default/gpsd

下記のように修正。DEVICESの部分は人によってことなるので注意

START_DAEMON="true"
USBAUTO="true"
DEVICES="/dev/ttyUSB0"
GPSD_OPTIONS="-n"

gpsdサービスの開始とログの読み取り

sudo service gpsd stop
sudo service gpsd start
gpsmon

参考リンク
GPSDのインストール | Ys Homepage https://www.yslabannex.net/?p=1163
GPS電波をRaspberry Piで読み取り、時間と位置把握する https://www.rs-online.com/designspark/add-gps-time-and-location-to-a-raspberry-pi-project-jp
Ubuntu 18.04でシリアル通信をする - メモ置き場 https://okchan08.hateblo.jp/entry/2019/01/27/234303

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0