RTK base with a Raspberry pi4 and SimpleRTK2B

Hi François,

Thanks for these details. I did manage to make it work, but I had to modify slightly your line.

  1. There was a space missing between the two first stars. I added one.
  2. Because It still didn’t work, I tried to remove the end of your line and just added a & instead.
    Now it works just fine. If str2str crashes, or if the raspi reboots (after a power outage for example), the str2str process restarts automatically.

To sum it up, I executed crontab -e (no sudo needed) and added this line at the end :
* * * * * pidof str2str > /dev/null || /home/pi/RTKLIB-rtklib_2.4.3/app/str2str/gcc/str2str -in serial://ttyACM0:115200:8:n:1:off -out 'ntrips://:PASSWORD@rtk2go.com:2101/lefricheduval' $
Exit with ctrl+X, and it starts after a minute.

To make it work, I found useful information here :

and here :
https://www.cyberciti.biz/faq/how-to-restart-a-process-out-of-crontab-on-a-linuxunix/

2 Likes