Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Struggling to Run rtl_fm and direwolf as a service, or startup, or something -- tried all the things from previous posts
Well, here I am after going through all the existing threads, unable to get this working on my Pi3 / SDR dongle setup.
I can run from a command prompt as the pi user all day long, but I'll be damned if I can't figure out how to run this on startup. I see references to screens, tmux, crontab, shell scripts, etc. I hope not to waste everyone's time but I really some hand-holding here. My shell script won't do anything from a command prompt except return to a command prompt. Using ps or top, I don't see direwolf or rtl_fm running. Any help would be fantastic. Thanks, Paul KK7BIZ |
Hi Paul, I followed these instructions: I had no problems and everything fired up fine. Accessing Direwolf after that requires using tmux as I recall. If this does not work for you, maybe it has something to do with the SDR. I am not familiar with that. I am running a RPi (2?), the first version anyway with a super cheap sound dongle from China by way of Ebay and using the GPIO from the Pi for PTT (details not included, but I have posted my hand drawn schematic here somewhere). I hope this helps you out. On Wed, Mar 15, 2023 at 4:21?PM Paul Singleton -- KK7BIZ <reachpauldarin@...> wrote: Well, here I am after going through all the existing threads, unable to get this working on my Pi3 / SDR dongle setup. |
Thanks for the reply, Gil! That is the writeup I found to be the "nicest." That implementation only launches direwolf, NOT rtl_fm piping output to direwolf. My limited Linux command line experience is what is holding me up here. If I had some direction on how to use the following command line with the systemd approach: rtl_fm -f 144.39M -o 4 - | direwolf -n 1 -r 24000 -b 16 - Maybe the execstart command would support the piping syntax, but for now I can not get it to work. Thanks, Paul |
开云体育Hello Paul, I can run from a command prompt as the pi user all day long, but I'll be damned if I can't figure out how to run this on startup. When you say you can run things ok from a command prompt, can you say explicitly what command you're running? I see references to screens, tmux, crontab, shell scripts, etc. I hope not to waste everyone's time but I really some hand-holding here. My shell script won't do anything from a command prompt except return to a command prompt. Using ps or top, I don't see direwolf or rtl_fm running. What shell script are you running?? Is this something you wrote or are you talking about the dw-start.sh script??? To troubleshoot a shell script, try opening two terminal windows.? In window #1, open an editor and load in the shell script you're trying to run.? In window #2, copy and paste each line from the shell script line by line into this window and see where things break.? Once you have an error, send us the details on this list and we'll help you out. --David KI6ZHD |
having the same trouble with a dongle not behaving in the script
it will run for forever with this rtl_fm -f 144.39M -g 30 -p 75 -o 4 - | direwolf -c sdr.conf -n 1 -a 30 -T %H:%M:%S -r 24000 -D 1 -b 16 - but if I stick that into dw-start.sh, or just the stock SDR example it appears to bomb with no errors screen sees its PID but it bombs after digiremote@orangepione:~$ ./dw-start.sh
Direwolf in GUI mode start up
DISPLAY=:0
Did not find an X terminal emulator.? Reverting to CLI mode
-----------------------
Direwolf in CLI mode start up
There is a screen on:
12244.direwolf (03/16/2023 12:37:22 PM) (Detached)
1 Socket in /run/screen/S-digiremote.
-----------------------
digiremote@orangepione:~$ screen -list
No Sockets found in /run/screen/S-digiremote. I dont know if this behavior is new or not but I have been using the dw-start.sh script for several years on our digi it just calls the direwolf.conf? and it works perfect de k9wkj |
开云体育Hello K9WKJ, having the same trouble with a dongle not behaving in the script Ok.. that's good.
If you look in the dw-start.sh script, all additional details go to the LOG file set as /var/tmp/dw-start.log .?? Do you see any errors in there? --David |
David,
Thanks for your reply. The shell script I refer to is one I wrote that simply runs: bash -c 'rtl_fm -f 144.39M - | direwolf -c igate.conf -r 24000 -D 1 -' & And that is the corrected version of the shell script, which now runs great from a command prompt. I still have to get it set up to run at startup or using crontab. I'm somewhat happy for now, and it looks like other users jumped in here for help with a similar issue, so that's great! Thanks everyone for your replies and help. |
David,
here is the tail of /var/tmp/dw-start.log Thu Mar 16 12:36:52 PM CDT 2023
Direwolf in GUI mode start up
DISPLAY=:0
-----------------------
Direwolf in CLI mode start up
No Sockets found in /run/screen/S-digiremote. for a bit more background digiremote@orangepione:~$ uname -a
Linux orangepione 5.15.80-sunxi #22.11.1 SMP Wed Nov 30 11:13:48 UTC 2022 armv7l armv7l armv7l GNU/Linux
response from dpkg direwolf is already the newest version (1.6+dfsg-2) |
开云体育Hello k9wkj, Sorry for the delay but I've been researching your issue and needed to setup an RTL SDR to do actual testing.? During that testing, I remember this issue was brought up some time ago: ?? I can confirm this specific post/approach within this Github issue works for me where as the other posts/approaches don't work.? I think the root issue here is the multiple levels of abstraction using variables when trying to be user friendly actually makes the Bash shell script break.? I've attached a copy of the modified script here and we'll see if groups.io posts it or not.? If it does, review it and give it a try and let us know if it works or not. --David KI6ZHD On 03/16/2023 01:56 PM, k9wkj wrote:
David, |
to navigate to use esc to dismiss