You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-61Lines changed: 81 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,10 @@ Frontend's main features are:
9
9
10
10
+ View the satellites signal levels
11
11
+ View the base location on a map
12
-
+ Start/stop various services (Sending data to a Ntrip caster, Ntrip caster, Rtcm server, Sending Rtcm stream on a radio link, Log raw data to files)
12
+
+ Detect and configure the Gnss receiver (F9P)
13
+
+ Start/stop various services (Sending data to a Ntrip caster, internal Ntrip caster, Rtcm server, Sending Rtcm stream on a radio link, Log raw data to files)
13
14
+ Edit the services settings
15
+
+ Convert raw data to Rinex
14
16
+ Download/delete raw data
15
17
16
18
## Base example:
@@ -34,12 +36,12 @@ If you use a Raspberry Pi, thanks to [jancelin](https://github.com/jancelin), yo
+ Go grab a coffee, it's gonna take a while. The script will install the needed software, and if you use a Usb-connected U-Blox ZED-F9P receiver, it'll be detected and set to work as a base station. If you don't use a F9P, you will have to configure your receiver manually (see step 7 in manual installation), and choose the correct port from the settings page.
45
47
@@ -54,8 +56,8 @@ If you use a Raspberry Pi, thanks to [jancelin](https://github.com/jancelin), yo
54
56
55
57
## Manual installation:
56
58
The `install.sh` script can be used without the `--all` option to split the installation process into several different steps:
57
-
```bash
58
-
$ ./install.sh --help
59
+
```
60
+
./install.sh --help
59
61
################################
60
62
RTKBASE INSTALLATION HELP
61
63
################################
@@ -69,64 +71,81 @@ The `install.sh` script can be used without the `--all` option to split the inst
69
71
sudo ./install.sh
70
72
71
73
Options:
72
-
--all
73
-
Install all dependencies, Rtklib, last release of Rtkbase, gpsd, chrony, services,
74
+
-a | --all
75
+
Install all you need to run RTKBase : dependencies, RTKlib, last release of Rtkbase, services,
74
76
crontab jobs, detect your GNSS receiver and configure it.
75
77
76
-
--dependencies
78
+
-v | --alldev <branch>
79
+
Install all as --all option, but use the rtkbase github repo instead of the release
80
+
You have to select the git branch you want to install.
81
+
82
+
-u | --user
83
+
Use this username as User= inside service unit and for path to rtkbase:
84
+
--user=john will install rtkbase in /home/john/rtkbase
85
+
86
+
-d | --dependencies
77
87
Install all dependencies like git build-essential python3-pip ...
1. Install the systemd services with `sudo ./install.sh --unit-files`, or do it manually with:
158
177
+ Edit them (`rtkbase/unit/`) to replace `{user}` with your username.
159
178
+ If you log the raw data inside the base station, you may want to compress these data and delete the too old archives. `archive_and_clean.sh` will do it for you. The default settings compress the previous day data and delete all archives older than 90 days. To automate these 2 tasks, enable the `rtkbase_archive.timer`. The default value runs the script every day at 04H00.
160
179
+ Copy these services to `/etc/systemd/system/`thenenable the web server, str2str_tcp and rtkbase_archive.timer:
161
180
```bash
162
-
$ sudo systemctl daemon-reload
163
-
$ sudo systemctl enable rtkbase_web
164
-
$ sudo systemctl enable str2str_tcp
165
-
$ sudo systemctl enable rtkbase_archive.timer
181
+
sudo systemctl daemon-reload
182
+
sudo systemctl enable rtkbase_web
183
+
sudo systemctl enable str2str_tcp
184
+
sudo systemctl enable rtkbase_archive.timer
166
185
```
167
186
1. Install and configure chrony and gpsd with `sudo ./install.sh --gpsd-chrony`, or:
168
187
+ Install chrony with `sudo apt install chrony` then add this parameter in the chrony conf file (/etc/chrony/chrony.conf):
@@ -174,7 +193,7 @@ So, if you really want it, let's go for a manual installation with some explanat
174
193
```
175
194
# Devices gpsd should connect to at boot time.
176
195
# They need to be read/writeable, either by user gpsd or the group dialout.
177
-
DEVICES="tcp://127.0.0.1:5015"
196
+
DEVICES="tcp://localhost:5015"
178
197
179
198
# Other options you want to pass to gpsd
180
199
GPSD_OPTIONS="-n -b"
@@ -190,9 +209,9 @@ So, if you really want it, let's go for a manual installation with some explanat
190
209
```
191
210
+ Reload the services and enable them:
192
211
```bash
193
-
$ sudo systemctl daemon-reload
194
-
$ sudo systemctl enable chrony
195
-
$ sudo systemctl enable gpsd
212
+
sudo systemctl daemon-reload
213
+
sudo systemctl enable chrony
214
+
sudo systemctl enable gpsd
196
215
```
197
216
198
217
1. Connect your gnss receiver to raspberry pi/orange pi/.... with usb or uart, and check which com port it uses (ttyS1, ttyAMA0, something else...). If it's a U-Blox usb receiver, you can use `sudo ./install.sh --detect-usb-gnss`. Write down the result, you may need it later.
@@ -201,37 +220,38 @@ So, if you really want it, let's go for a manual installation with some explanat
Change the ttyS1 and 115200 value if needed. Then you can use a network connection in U-center with the base station ip address and the port n°128.
219
238
220
239
1. Now you can start the services with `sudo ./install.sh --start-services`, or:
221
240
```bash
222
-
$ sudo systemctl start rtkbase_web
223
-
$ sudo systemctl start str2str_tcp
224
-
$ sudo systemctl start gpsd
225
-
$ sudo systemctl start chrony
226
-
$ sudo systemctl start rtkbase_archive.timer
241
+
sudo systemctl start rtkbase_web
242
+
sudo systemctl start str2str_tcp
243
+
sudo systemctl start gpsd
244
+
sudo systemctl start chrony
245
+
sudo systemctl start rtkbase_archive.timer
227
246
```
228
247
229
248
Everything should be ready, now you can open a web browser to your base station ip address.
230
249
231
250
## How it works:
232
251
RTKBase use several RTKLIB `str2str` instances started with `run_cast.sh` as systemd services. `run_cast.sh` gets its settings from `settings.conf`
233
252
+`str2str_tcp.service` is the main instance. It is connected to the gnss receiver and broadcast the raw data on TCP for all the others services.
234
-
+`str2str_ntrip.service` get the data from the main instance, convert the data to rtcm and stream them to a Ntrip caster.
253
+
+`str2str_ntrip_A.service` get the data from the main instance, convert the data to rtcm and stream them to a Ntrip caster.
254
+
+`str2str_ntrip_B.service` get the data from the main instance, convert the data to rtcm and stream them to another Ntrip caster.
235
255
+`str2str_local_ntrip_caster.service` get the data from the main instance, convert the data to rtcm, and act as a local Ntrip caster.
236
256
+`str2str_rtcm_svr.service` get the data from the main instance, convert the data to rtcm and stream them to clients
237
257
+`str2str_rtcm_serial.service` get the data from the main instance, convert the data to rtcm and stream them to a serial port (radio link, or other peripherals)
@@ -251,10 +271,10 @@ The default map background is OpenStreetMap, but you can switch to a worldwide a
251
271
## Development release:
252
272
If you want to install RTKBase from the dev branch, you can do it with these commands:
0 commit comments