Keyboard Shortcuts
Likes
- Direwolf
- Messages
Search
Re: Please help with udev rules - non-root GPIO for PTT
Each GPIO has properties and member of groups. Check the properties of
toggle quoted message
Show quoted text
the particular GPIO you are using and either set it so everyone has write access or that you are a member of whatever group it belongs to. Michael WA7SKG Dr. Sergey Ievkov wrote on 9/22/24 8:48 AM: Hello, OMs. |
Re: Working systemd config direwolf.service systemctl
¿ªÔÆÌåÓýThank you for that. The nice thing about Linux is that there several ways to accomplish a goal.E.g., I use cron to both start and restart direwolf (if necessary) as user "repeater". Adjust arguments as needed: # start at boot ... @reboot sleep 10 && /usr/bin/screen -S direwolf -d -m /usr/local/bin/direwolf -c /home/repeater/direwolf.conf -L /home/repeater/direwolf.log -T "\%H:\%M:\%S \%d\%b\%Y" # check every minute to see if it's running, restart if needed ... * * * * * if [ x$(pidof direwolf) = "x" ]; then /usr/bin/screen -S direwolf -d -m /usr/local/bin/direwolf -c /home/repeater/direwolf.conf -L /home/repeater/direwolf.log -T "\%H:\%M:\%S \%d\%b\%Y"; fi This again allows one to ssh from any device, type "screen -r direwolf" to observe activity, and Ctl-a Ctl-d to detach the screen session. On 9/19/24 23:31, Adam K4SPB via
groups.io wrote:
|
Please help with udev rules - non-root GPIO for PTT
Hello, OMs. On NanoPi I try to use GPIO ¡í200 (from ) for PTT in DireWolf. When running direwolf requires root rights. If I enter the root password, then PTT via GPIO works. How can I make it so that when the system starts automatically without root-password? Below is part of my config and the udev rule. What am I missing? direwolf.conf: ... PTT GPIO 200 ... /etc/udev/rules.d/50-gpiod.rules: KERNEL=="gpiochip*", SUBSYSTEM=="gpio", MODE="0666", GROUP="gpiod" rn1m@nanopineo:/etc/udev/rules.d$ id rn1m uid=1000(rn1m) gid=1000(rn1m) groups=1000(rn1m),0(root),5(tty),6(disk),20(dialout),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),999(systemd-journal),996(input),993(render),108(netdev),1001(gpiod) |
Re: Working systemd config direwolf.service systemctl
¿ªÔÆÌåÓýThank you for this, Adam. I changed the systemd service on my pi to your configuration and it's nice to be able to use screen in an SSH session to monitor my digipeater's activity. I want to add that Control A followed by D (case-insensitive) detaches screen from monitoring Direwolf and returns you to the command prompt. 73. |
Working systemd config direwolf.service systemctl
Since I just spent an hour messing with systemd files to get a direwolf.service working I wanted to post an operational one that may help some people.
?
?$ cat /etc/systemd/system/direwolf.service
[Unit] Description=direwolf After=network.target [Service] Type=forking Restart=always RestartSec=90 StartLimitInterval=400 StartLimitBurst=3 User=<USERNAME> Group=<USERNAME> ExecStart=/usr/bin/screen -S dw -d -m /usr/local/bin/direwolf SyslogIdentifier=Direwolf [Install] WantedBy=multi-user.target ?
this assumes you built from source and have screen installed. check file destinations. after systemctl enable/start just run "screen -r dw"
? |
Re: Good volume level to start with?
Hi David,
?
The audio problem has been solved in another message. Thanks.
I have the levels around 50 now. Radio output level is set to '2' on the Retevis and around 50% on the slider in the soundcard properties.
These are the two images after I made all changes.
?
?
?
This is the content of the Direwilf config file after cleaning up the things I don't use or need:
?
############################################################# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? FIRST AUDIO DEVICE PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? (Channel 0 + 1 if in stereo)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# ADEVICE0 4
ARATE 48000 #############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? CHANNEL 0 PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# CHANNEL 0
MYCALL ON4VP-10 MODEM 1200 #MODEM 9600 PTT COM14 RTS AGWPORT 8000 KISSPORT 8001 #############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? FIXED POSIION BEACONING PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# PBEACON delay=1 every=10 overlay=D symbol="digi" lat=51^04.92N long=005^00.99E power=14 height=60 gain=6 comment="Digipeater & Igate Laakdal" via=WIDE1-1,WIDE2-1
#############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? APRS DIGIPEATER PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$
#############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? INTERNET GATEWAY? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# IGSERVER belgium.aprs2.net
IGLOGIN ON4VP-10 22778 IGTXVIA 0 WIDE1-1,WIDE2-1 IGTXLIMIT 6 10 #PBEACON sendto=IG delay=0:30 every=15:00 symbol="igate" overlay=I lat=51^04.92N long=005^00.99E power=14 height=60 gain=6 comment="Digipeater & Igate Laakdal"
#############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? EXTRA COMMANDS PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# FX25TX 1
PERSIST 63 SLOTTIME 12 RETRY 5 FRACK 5 MAXFRAME 4 #Set MAXFRAME to 1 for HF Packet #MAXFRAME 1 PACLEN 128 #PACLEN 64 FOR HF DWAIT 0 TXDELAY 40 TXTAIL 10 ?
?
73 Phil ON4VP |
Re: Direwolf 1.7 "plughw:" doesn't match any of the input devices
Hi David,
?
After adjusting the ADEVICE command for use with Windows all devices where listed with the asterix for the Digirig for both rx and tx as you can see in the picture I've added.
?
?
I put this line in de config file:
?
ADEVICE0 4
?
Before using Windows 11 I had a raspberry pi 4B running Direwolf and took that config file not knowing some commands differ so the line said:
?
ADEVICE plughw: 4,4
?
?
73 Phil ON4VP
? |
Re: Frequently setting when starting
¿ªÔÆÌåÓýHi Mike My APRS system startup bash script on the vehicle Debian laptop starts rigctld then direwolf and puts them in background, then sleeps a seconds before running some rigctl commands to save/set opfreq. As I am only using it to TX posn on 30m every 10 minutes I have the transceiver toggle between the APRS and voice frequencies. The second delay is about the rig setting VFO mode
(inadvertently) on dw start, when I am actually using a rig
memory. (which also covers mode and bandpass. I have also used it
to "auto" QSY to the 2m APRS frequency then back to HF for voice) Not within the direwolf conf file but works reliably. The base script steps then; In my case the above is within a timed process kill loop, the end
of which has; Hope this is helpful. Cheers Bob VK2YQA On 8/9/24 06:08, Michael Durkin wrote:
|
Re: Frequently setting when starting
I have a ft-897 that I also use on psk31, hence the desire to set frequency apon start of direwolf .... Or when choosing another radio setting for hf packet ... 300 baud at another favorite hf frequency? But would still be the same radio On Sat, Sep 7, 2024, 2:53 PM Dominic OE7DRT via <tidy.wing5149=[email protected]> wrote: Michael Durkin <Kc7noa@...> wrote: |
Re: Good volume level to start with?
¿ªÔÆÌåÓýHello Phil, If I was to guess, you have the input mixer level on your digirig set to 100% listening to your Retevis radio.? Bring that input mixer level down to say 50-60% and then increase the radio's output audio level up to have Direwolf's heard audio level average around "50".? Beyond that.. when you start Direwolf, send us the output of that window to see how it's starting up.? Also send us your direwolf.conf file to see if there are any other possible optimizations. --David KI6ZHD On 09/09/2024 03:08 AM, Phil, ON4VP via
groups.io wrote:
|
Re: Direwolf 1.7 "plughw:" doesn't match any of the input devices
¿ªÔÆÌåÓýHello Phil, When you start Direwolf up for Window, it should list all the available sound devices.? You need to pick from that list and but the correct one in your direwolf.conf file. --David KI6ZHD On 09/09/2024 03:02 AM, Phil, ON4VP via
groups.io wrote:
|
Re: Direwolf 1.7 "plughw:" doesn't match any of the input devices
Hi Phil,
?
The plughw device name is specific to Linux. For Windows you will use different naming. See the section in the user guide titled? "Audio Device selection - Windows". Should be found around Pg. 52 in the user guide. That will walk you through setting the ADEVICE name for your system. Hope that helps. -Brent WG0A ? |
Direwolf 1.7 "plughw:" doesn't match any of the input devices
Hello.
?
Recently I bought a Digirig mobile and the cable for my Anytone radio.
After a succesfull installation of the usb audio drivers and virtual comport I configured Direwolf.conf according to my settings.
I'm using Windows 11 Pro.
?
Direwolf is sending packets to my radio and to the aprs Igate. But it's not receiving any packets.
Everytime I run Direwolf the program tells me that "plughw" is not listening on any of the available ports (Digirig sits on 4 both for RX and TX).
I get an asterix on the TX side but nothing on the RX side. What could be the problem?
?
Thanks for any help and sorry if this question has already been posted. I'm just new to this group.
73 Phil ON4VP |
Re: Good volume level to start with?
Hello,
?
I'm using the same radio on VHF for APRS and WINLINK.
If you are using the correct Digirig cable for this radio, I set my volume to 2 on the Retevis. (VOL 1 is bearly hearable). I split the audio to the Digirig and a small Kenwood speaker. I'm using Windows 11 right now and my setting for the input is set to -3,5 dB. My packets are around 50% when received by Direwolf 1.7. But sometimes the RX is not working (other question asked here in this group). So I'm not receiving packets. It has worked before. It does work perfect with Soundmodem.
?
73 Phil ON4VP |
Re: Transmitting 100hz tone with dire for voice alert.
I understand your intent, but I recommend against it. I was strongly admonished for using a Morse ID on my digipeater. If APRS users in your area are more tolerant, I suggest using an external tone encoder and some method to enable it during speech output. (I'm a hardware guy, the coding for this project is beyond my skill set). Patrick (N3TSZ)
On Saturday, September 7, 2024 at 05:45:59 PM EDT, Ray Wells via groups.io <aprs@...> wrote:
This is not directed at any particular operator! There seems to be differences of opinion on the intended purpose/application of Voice Alert. This page may clarify the function ... Ray vk2tv On 8/9/24 00:52, KC5L via groups.io
wrote:
The idea behind Voice Alert is to only transmit PL when
transmitting voice. No PL when transmitting data. Transmitting
PL all the time (by using PL on the radio) would defeat the
point of Voice Alert and annoy listeners using Voice Alert to
filter out the data transmissions.
?
The following command will synthesize a 100Hz tone:
?
ffplay
-hide_banner -nodisp -autoexit -f lavfi -i 'sine=f=100'
There is likely a way to use ffmpeg/ffplay to mix this synthesized tone with the output of espeak but I haven't been able to figure it out. ?
|
Re: How to change APRS-IS connection port?
¿ªÔÆÌåÓýThis isn't mentioned in the User documentation but in the sources, this is mentioned.? Give this syntax a try in the direwolf.conf file: direwolf/src/config.c -- /* ?* IGSERVER???????????? - Name of IGate server. ?* ?* IGSERVER? hostname [ port ]????????????????????????? -- original implementation. ?* ?* IGSERVER? hostname:port????????????????????????????? -- more in line with usual conventions. ?*/ -- --David KI6ZHD On 09/08/2024 04:48 AM, Douglas
Pervine, N1OBU wrote:
|
Re: How to change APRS-IS connection port?
I'm working with Javaprssrvr application.? Pete AE5PL the author of the software suggested all clients use port 10152.
?
My DW clients are feeding the local server, but regardless of the server-side filtering I try, no traffic coming out of the server except on port 10152.
?
My testing is using a local server to allow multiple RF clients (LoRa, IL2P, etc) to feed a local/rural server in case the Internet isn't available.? The server can be ran on a RPi with AREDN. |
Re: How to change APRS-IS connection port?
The first question is, why were you advised to do that? That port number is for when you want unfiltered full-planet feeds from the APRS-IS. Do you really need that much traffic flooding into your DireWolf instance? Remember, DireWolf's purpose is to be an RF TNC; it supports I-gate connections primarily so you can _contribute_ to the APRS-IS by forwarding received RF traffic to the Internet, and optionally re-transmit Internet traffic specifically addressed to RF stations you have heard. You really don't need to hear any other Internet traffic in DireWolf. Make a connection like that in an APRS display client like APRSIS32 or YAAC if you want to see planet-level traffic, but DireWolf won't present that data in a usable form.
Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of Douglas Pervine, N1OBU <douglas.pervine@...> Sent: Sunday, September 8, 2024 7:48 AM To: [email protected] Subject: [direwolf] How to change APRS-IS connection port? I'm testing a local (non upstream) APRS-IS server and was advised to switch all my client connections to port 10152. How do I configure/change that in Direwolf? I am using 1.8D. Thanks Doug |