LoginSignup
0
0

More than 1 year has passed since last update.

LTEモバイルルータGL-XE300(Puli)をRTK基地局にする

Last updated at Posted at 2021-12-08

GL-XE300(Puli)

概要

USB接続があるLTEモバイルルータを見つけたのでRTK基地局にしてみました。

他に必要な材料

・u-blox F9Pなど。RTCM3が出せる&UBX-CFG-TMODE3でMODE 1-Survery-inで適度な設定(300s,3m程度?)を入れてセットアップ済み。/dev/ttyACM0でマウントするものとします。
・固定IPのSIM契約(あったほうが楽)

初期設定

何はともあれネット繋げてsshでログインしないと作業出来ないので、GUIでインターネットに繋ぐ設定やSIMカード周りの設定をして、その他設定→高級機能→Luciをインストールする。

OSXからssh接続する際


設定

なんかエラー出て繋げないので、ググったらこの設定で繋がった。

~/.ssh/config
host 192.168.8.1
    #HostName gl-xe300.local
    HostName 192.168.8.1
    User root
    HostKeyAlgorithms +ssh-rsa

opkg

必要なパッケージを入れる。

opkg update
opkg install str2str screen

mDNS教徒の場合


mDNS教徒の場合
$ opkg find avahi-utils
avahi-utils - 0.8-1 - Avahi is an mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf)
 implementation (library). It facilitates
 service discovery on a local network -- this means that
 you can plug your laptop or computer into a network and
 instantly be able to view other people who you can chat with,
 find printers to print to or find files being shared.
 This kind of technology is already found in MacOS X
 (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf')
 and is very convenient.
 .
 This packages installs the following avahi utility programs:
 avahi-browse, avahi-publish, avahi-resolve, avahi-set-host-name.
 It also automatically adds the required libavahi-client package.
 For more information please see the avahi documentation.```
$ opkg install libavahi-client

ntrip caster

ntripcasterパッケージはあるけれども、他のマシンの設定をコピペで持ってきてもなぜかkickしちゃうため、str2strで代用。スクリプトをよしなに作る。
ログ取りをしたいとかいう人は-hで詳細ヘルプ確認推奨。

/root/ntripcaster.sh
screen  -AmdS ntrip str2str -in ntripc_s://:pass@:2100 -
out ntripc_c://user@pass@:2101/base

server側はこんな感じ

/root/ntripserver.sh
str2str -in serial://ttyACM0:115200 -out ntrips://user:p
ass@localhost:2101/base

実行権限付与

chmod +x /root/ntripcaster.sh
chmod +x /root/ntripserver.sh

毎回sshで接続するのは大変なので、自動起動するようにする。

/etc/rc.localの末尾

screen -AmdS caster /root/ntripcaster.sh &
screen -AmdS server /root/ntripserver.sh &
sleep 10

ROVERとして運用したい場合

str2str \
-in ntrip://[user[:passwd]@]addr[:port][/mntpnt] \
-out serial://ttyACM0:115200

Port開放

今回の場合だとルータの設定画面から、2101をルータに開放するのを忘れずに。

Inject RTCM 1008

そのうち書く

ログ取りしたい場合

作ってないけどOpen Loggerどうでしょうか
https://www.switch-science.com/catalog/2716/

気づいたこと

・バッテリー残量0だとUSB認識しない。
・FTDI等のUSBシリアルに送信するとバグる?
・面倒くさがらずに公式の電源アダプター使おう。

0
0
1

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