Hello there,
As anyone successfully ran a zed-f9p via usb on a raspberry pi4? I’ve managed to get u-centre running via wine and am working on getting rtk lib to also work. (If you know how please share) My problem is that I don’t see the zed-f9p on the pi. I’m not very experienced with the pi os is there a option similar to the device manager from windows? I understand a mini pc would probably be the better option but I’m looking for lower power consumption do to my setup being Solar/battery powered.
Thank you!
Sixthsantos
You’d need a linux driver if you’re connecting via USB but you should be able to wire the GPS’s serial UART pins directly to the Pi’s UART pins and have it work. (UART = RX/TX/GND)
Hi sixthsantos,
I’ve recently been building RTK Basestations with RPI4s, and have it working super well. Here’s a light description of what I’m doing, and if you’re interested I might do a more thorough write-up somewhere.
The F9P Setup is done separately on Windows 10 PC using U-Center and following Sparkfun Tutorials on DIY RTK Basestation setup
The Pi4 is running Ubuntu Server 20.04 and has RTKLIB installed. I’m using str2str to send RTCM3 corrections data to my NTRIP caster running on AWS. str2str is just started on boot up by crontab
The Pi4 has a PiJuice UPS Hat for battery backup.
The F9P (GPS-RTK-SMA) has its UART1 port directly wired to a UART (Pins 12 & 13) on the Pi4. (Also gets 3.3v from the Pi)
The F9P has its UART2/RTCM3 Corrections wired directly to a RFD 900x radio for serial telemetry corrections (Radio also gets 5v from the Pi)
This is a really bad explanation, so I apologize in advance for that. But this setup allows us to have RTK corrections via NTRIP or radio with really low power draw and UPS/Battery Backup
**
Clarification: The Pi4 was chosen over the ESP32 because we can’t rely on WiFi for NTRIP
**
Hello originaldev!
Thank you for the reply, I actually ended up going with a Mele mini stick pc as I would like to remote access the unit and and change settings from anywhere. That being said how did you get rtk lib and str running? I also tried pygpsclient but do to the program setting it won’t fully show on my 800x400 screen.
Thank you!
Sixthsantos
For windows pcs I just followed the SparkFun tutorial here: https://learn.sparkfun.com/tutorials/ho … ce-station following the Mini-Computer Setup (Option 1) section using STRSVR and my own remote Caster. You’ll want to download the .exe from their GitHub Releases page: https://github.com/rtklibexplorer/RTKLIB/releases. (I used demo5_b34f1.zip) Then you can open strsvr and get it working, then set it to auto-start using task scheduler
I will say that I’ve tried windows pcs for base stations, and I have had nothing but issues. If your only issue with the pi is remote access, you could set it up with teamviewer/anydesk/etc or ssh and be able to remote in to configure settings. If you did decide to use the Pi, this is how to get str2str working. (I used Ubuntu Server but you could just use Ubuntu or probably raspbian but I haven’t tried it out)
To get str2str running, I just cloned thertklibexplorer/RTKLIB Github repository using the command
git clone [https://github.com/rtklibexplorer/RTKLIB.git](https://github.com/rtklibexplorer/RTKLIB.git)
Then the build/install instructions are in the readme. But for just str2str you can do
cd RTKLIB/app/consapp/str2str/gcc
make
(you might need to run sudo apt install build-essential
to build)
sudo chmod +x str2str
Then you can run this command or add it to crontab to automatically run at each reboot:
cd [path_to_RTKLIB]/app/consapp/str2str/gcc/ && ./str2str -in serial://[serial_device]:[uart_baud_rate]:8:n:1:off -out ntrips://[password]@[ntrip_caster_ip]:[port]/[base_name]
Let me know if any of this help!
originaldev
Hello!
I tried on Debian and it didn’t work going to try Ubuntu tonight! When you run the git hub repo is it running in the terminal or can you make a desktop application as well? I should have stated why I wanted rtk lib running over remote access. The reason is I want to be able to set up the unit and take the 24 hr of data and then remotely program the unit (u-centre/ rtk lib/strsvr) so I then don’t have to go back to the rooftop unit every time. I have a esp32 unit running now and had some bugs on first time around. My neighbours must of thought I was crazy always on my roof! The remote unit is going to be on a family member’s house on the other side of town and don’t always wanna be on there roof!
You also mentioned that you can’t rely on on your wifi have you tried a 4g hat? I have one that I want to set up!
Thank you!
Sixthsantos
I only use the CLI str2str since I have a completely headless installation. However, that same GitHub repo includes Qt GUI version of rtkconv, rtkplot, strsvr, etc. You can build and use the Qt applications with these commands:
git clone [https://github.com/rtklibexplorer/RTKLIB.git](https://github.com/rtklibexplorer/RTKLIB.git)
cd RTKLIB/app/qtapp
qmake
make
(I ran into an issue where the QT serialport module wasn’t installed. That can be fixed with sudo apt-get install libqt5serialport5-dev
)
./install_qtapp
cd ../../../RTKLIB_bin
./rtk[desired app]
I haven’t had that issue since I have antennas mounted outside with a cable running inside to the unit meaning I have easy physical access. I’ve just been using windows to log the RAW data and convert to .obs for PPP, but I like the idea of doing it all on the pi with remote access. I’ll have to try that out and see if I can get everything working directly on the pi!
And for networking, luckily in our current and planned installs we always have access to ethernet, and the network has a 4G backup. But we’re mostly using serial radio telemetry for getting corrections to rovers and the NTRIP side of things is for building up a network of stations for later use