开云体育


Re: Options for starting direwolf

 

Unfortunately, the Linux audio "card" number can change when devices are added or removed.
It is possible to assign a device name, of your choice, which will not change.
This is covered in the , page 39.
?
73,
John WB2OSZ


Re: Options for starting direwolf

 

开云体育

Hi Joe,


You can use audio device names rather than numbers, the names won't change between reboots.
If you run "aplay -L | grep -A1 plughw" you'll see a list of devices and their descriptions, example:


# aplay -L | grep -A1 plughw


plughw:CARD=Device,DEV=0
??? USB PnP Sound Device, USB Audio
--
plughw:CARD=PCH,DEV=0
??? HDA Intel PCH, ALC221 Analog
--
plughw:CARD=NVidia,DEV=3
??? HDA NVidia, HDMI 0

--
plughw:CARD=NVidia,DEV=7
??? HDA NVidia, HDMI 1

This shows I have 4 audio devices. If I wanted to use the USB Audio device with direwolf I would configure it as:
ADEVICE plughw:CARD=Device

If I had more than one of the same types of devices (e.g. I have two NVidia HDMI ports that use the same CARD identifier) then I'd have to include the ",DEV=x" to specify which one I want, e.g.
ADEVICE plughw:CARD=Device,DEV=0
But as you only have one of those USB devices, you don't need to specify which one.


BTW the 'Device' name comes from the last word in the card's product identifier string set by the manufacturer, the word itself has no significance.
My USB card calls itself a "USB PnP Sound Device" and yours is a "USB Audio Device".


Josh VK2HFF



On 7/02/2025 8:23 am, Joseph LaFerla wrote:

Hi David

I apologize but I should have mentioned this before..

I am using a pi400 with one ugreen usb sound card.? I have a usb serial port in? the second usb port for ptt

Now that I think of it, when I enter aplay -l this is my output.? My valid device is card 1

List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
? Subdevices: 1/1
? Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

The valid card is 1 and my ADEVICE is plughw:1,0.

When I enter arecord-l i get this

List of CAPTURE Hardware Devices ****
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

I haven't reviewed the links you sent yet but wanted to get this out to?you.

I assumed that the other cards in aplay were related to the pi400.? Obviously I need to make changes....
Thanks.

Joe





From:?[email protected] <[email protected]> on behalf of David Ranch via groups.io <direwolf-groupsio@...>
Sent:?February 6, 2025 15:11
To:?[email protected] <[email protected]>
Subject:?Re: [direwolf] Options for starting direwolf
?

Hello Joseph,

I have dw 1.8 on my raspberry pi3b+.which has been working well.? I would like to investigate how I can better start dw.? As the manual suggests, I first find the input and output parameters using arecord and aplay .? I enter those values in direwolf.conf under ADEVICE.? The values I put in ADEVICE are subject to change with every reboot and do.

Unless you have multiple sound devices connected to your Rpi, this shouldn't be happening.? If you do have multiple devices, you can tune Udev to make the device to names predictable.? Here are two links you should check out

??

????? or

??

--David
KI6ZHD



? The manual mentions that the values in direwolf.conf can be overwritten by using command line options when starting dw.? This would avoid me having to edit the direwolf.conf file each time I need to change the parameters.? I have tried several options but dw fails to start every time.? Can someone point out my mistake or point me to the page in the manual where I can find this?
?
Thanks.
?
?


Re: Options for starting direwolf

 

开云体育

Hello Joseph,


I am using a pi400 with one ugreen usb sound card.? I have a usb serial port in? the second usb port for ptt

Ok..


List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
? Subdevices: 1/1
? Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

The valid card is 1 and my ADEVICE is plughw:1,0.

When I enter arecord-l i get this

List of CAPTURE Hardware Devices ****
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

Ok... what I'm seeing here is two audio playback devices through to HDMI monitors. ? Is this one HDMI monitor or two?? Across reboots, do these card0, card1, card2 assignments really move around?? Do you actively use this HDMI monitor based audio?? If not, consider disabling it which should solve your issue.? If you do want it, you probably only need audio on ONE monitor.? Here is a URL to investigate how to disable it one one/both:

? ?


--David
KI6ZHD


Re: Options for starting direwolf

 

开云体育

David

I just noticed in my earlier post I said I had a rpi3b+.? Wrong.? ?I said it correctly in my followup post it is an pi400.

Joe



From: [email protected] <[email protected]> on behalf of David Ranch via groups.io <direwolf-groupsio@...>
Sent: February 6, 2025 15:11
To: [email protected] <[email protected]>
Subject: Re: [direwolf] Options for starting direwolf
?

Hello Joseph,

I have dw 1.8 on my raspberry pi3b+.which has been working well.? I would like to investigate how I can better start dw.? As the manual suggests, I first find the input and output parameters using arecord and aplay .? I enter those values in direwolf.conf under ADEVICE.? The values I put in ADEVICE are subject to change with every reboot and do.

Unless you have multiple sound devices connected to your Rpi, this shouldn't be happening.? If you do have multiple devices, you can tune Udev to make the device to names predictable.? Here are two links you should check out

??

????? or

??

--David
KI6ZHD



? The manual mentions that the values in direwolf.conf can be overwritten by using command line options when starting dw.? This would avoid me having to edit the direwolf.conf file each time I need to change the parameters.? I have tried several options but dw fails to start every time.? Can someone point out my mistake or point me to the page in the manual where I can find this?
?
Thanks.
?
?


Re: Options for starting direwolf

 

开云体育

Hi David

I apologize but I should have mentioned this before..

I am using a pi400 with one ugreen usb sound card.? I have a usb serial port in? the second usb port for ptt

Now that I think of it, when I enter aplay -l this is my output.? My valid device is card 1

List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
? Subdevices: 1/1
? Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

The valid card is 1 and my ADEVICE is plughw:1,0.

When I enter arecord-l i get this

List of CAPTURE Hardware Devices ****
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

I haven't reviewed the links you sent yet but wanted to get this out to?you.

I assumed that the other cards in aplay were related to the pi400.? Obviously I need to make changes....
Thanks.

Joe





From:[email protected] <[email protected]> on behalf of David Ranch via groups.io <direwolf-groupsio@...>
Sent:?February 6, 2025 15:11
To:[email protected] <[email protected]>
Subject:?Re: [direwolf] Options for starting direwolf
?

Hello Joseph,

I have dw 1.8 on my raspberry pi3b+.which has been working well.? I would like to investigate how I can better start dw.? As the manual suggests, I first find the input and output parameters using arecord and aplay .? I enter those values in direwolf.conf under ADEVICE.? The values I put in ADEVICE are subject to change with every reboot and do.

Unless you have multiple sound devices connected to your Rpi, this shouldn't be happening.? If you do have multiple devices, you can tune Udev to make the device to names predictable.? Here are two links you should check out

??

????? or

??

--David
KI6ZHD



? The manual mentions that the values in direwolf.conf can be overwritten by using command line options when starting dw.? This would avoid me having to edit the direwolf.conf file each time I need to change the parameters.? I have tried several options but dw fails to start every time.? Can someone point out my mistake or point me to the page in the manual where I can find this?
?
Thanks.
?
?


Re: Options for starting direwolf

 

开云体育


Hello Joseph,

I have dw 1.8 on my raspberry pi3b+.which has been working well.? I would like to investigate how I can better start dw.? As the manual suggests, I first find the input and output parameters using arecord and aplay .? I enter those values in direwolf.conf under ADEVICE.? The values I put in ADEVICE are subject to change with every reboot and do.

Unless you have multiple sound devices connected to your Rpi, this shouldn't be happening.? If you do have multiple devices, you can tune Udev to make the device to names predictable.? Here are two links you should check out

??

????? or

??

--David
KI6ZHD



? The manual mentions that the values in direwolf.conf can be overwritten by using command line options when starting dw.? This would avoid me having to edit the direwolf.conf file each time I need to change the parameters.? I have tried several options but dw fails to start every time.? Can someone point out my mistake or point me to the page in the manual where I can find this?
?
Thanks.
?
?


Re: Options for starting direwolf

 

What're you using for soundcard?

You could parse the output of aplay and arecord with grep and awk at runtime to then edit the direwolf conf file with those values with sed

In my case this is what I see
? ?~ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
? Subdevices: 1/1
? Subdevice #0: subdevice #0

so if I want my usb device, I'm going to run something like

? ?~ echo "plughw:$(aplay -l | grep USB | awk -F '[ :]' '{print $2}'),$(aplay -l | grep USB | awk -F '[ :]' ?'{print $9}')"
plughw:2,0

then use sed to replace the active field


Options for starting direwolf

 

Hi
?
I have dw 1.8 on my raspberry pi3b+.which has been working well.? I would like to investigate how I can better start dw.? As the manual suggests, I first find the input and output parameters using arecord and aplay .? I enter those values in direwolf.conf under ADEVICE.? The values I put in ADEVICE are subject to change with every reboot and do.? The manual mentions that the values in direwolf.conf can be overwritten by using command line options when starting dw.? This would avoid me having to edit the direwolf.conf file each time I need to change the parameters.? I have tried several options but dw fails to start every time.? Can someone point out my mistake or point me to the page in the manual where I can find this?
?
Thanks.
?
?


Re: JSON Output from Direwolf

 

The direwolf source code directory has a utility, called log2gpx.c, which provides half of the solution.
It reads the logfile format and generates GPX which can be used to place icons on a map.
Take out the GPX part and generate JSON instead.
See section 14.8 in the User Guide.
?
73,
John WB2OSZ


Re: JSON Output from Direwolf

 

I just wrote an APRS chat script using the KISS interface of direwolf to pull out the aprs messages.
?
You could easily do the same.?

just ask ChatGPT o1-mini-high to read the KISS docs, direwolf docs and then ask it to build a script to dump the output to a json stream or what you need.?

should be pretty straightforward.?

cheers
phil


JSON Output from Direwolf

 

Does anyone know if it is possible to add a JSON Post output to Direwolf. In addition to saving the GPS data to a logfile I would like to also send the data to a website. The preferred delivery to the website is JSON POST.
?
Jakob
?


ISOTIME in Logfile

 

Where is ISOTIME derived from in the Direwolf logfile? Is this time info received from APRS messages or is it a timestamp added to the log derived from the local time on the PC running Direwolf??


Re: I need help!

 

开云体育

David,
I made your recommended changes.

John,
I am running gpsd version 3.23

Thanks,
Doug

On Feb 1, 2025, at 4:59?PM, WB2OSZ via groups.io <wb2osz@...> wrote:

?
?
What gpsd? version are you using?
?
73,
John WB2OSZ
?


Re: I need help!

 

?
What gpsd? version are you using?
?
73,
John WB2OSZ
?


Re: I need help!

 

开云体育


Hello Doug,

1. Your direwolf.conf config looks ok but I have some ideas:

?? 1.a. There is trash in there like the following.? It's recommended to clean that up

? ? ? ? \xe0\xb8\xa7\xe0\xb8\xb4\xe0\xb8\x97\xe0\xb8\xa2\xe0\xb8\xb8\xe0\xb8\xaa\xe0\xb8\xa1\xe0\xb8\xb1\xe0\xb8\x84\xe0\xb8\xa3\xe0\xb9\x80\xe0\xb8\xa5\xe0\xb9\x88\xe0\xb8\x99"

?? 1.b.Your TBEACON line is sending both too often (every minute) and also sending to WIDE2-1.

?????? TBEACON DELAY=0:05 EVERY=1:00 VIA=WIDE1-1,WIDE2-1 SYMBOL=/k

? ? ???? - To transmit less with your APRS tracker, simply add the term "SMARTBEACONING" without any other options to the direwolf.conf file

? ? ???? - If your in a urban area with a lot of APRS digipeaters around, WIDE1-1 should be more than enough

?? 1.c, At the bottom of your file, you have other items that need tuning:

?????? FX25TX 1?? - remove this, APRS generally does NOT use FX25, really only HF packet uses this
?????? PERSIST 63 - don't configure this, leave it to direwolf to set the defaults
?????? SLOTTIME 12 - don't configure this, leave it to direwolf to set the defaults
?????? RETRY 5???? - don't configure this, as this is mostly only for classic packet.. not APRS.? leave it to direwolf to set the defaults
?????? FRACK 5???? - don't configure this, leave it to direwolf to set the defaults
?????? MAXFRAME 4 - don't configure this, as this is mostly only for classic packet.. not APRS.? leave it to direwolf to set the defaults
?????? PACLEN 128? - don't configure this, as this is mostly only for classic packet.. not APRS.? leave it to direwolf to set the defaultsDWAIT 5

?????? TXDELAY 50? - this is excessively high.? What radio do you have?? Set this to "25" to start and depending on which radio you have, this might come down to 12 (aka 120ms)

?????? TXTAIL 35??? - this is excessively high.? Per your orignal post "APRS\ Tracker.docx" file, you using an Rpi4, What OS (version and is the GUI running)?? What sound card?? Set this to "10" to start and depending on your setup you have, this might come down to 1, 5, or not needed at all



2. Your DIrewolf startup screen-capture but it's clear at least your RX mixer level needs to come down to a rough "50" average.? Since this is way out of whack, I have to assume your TX level is also wrong.? If that's wrong, no remote station will be able to decode your signals.? How confident are you that your sound mixer levels are correct?? Check out for some ideas.? Also see my commend below where you're NOT restoring your saved alsamixer levels.? This is bad!


3. Per your orignal post "APRS\ Tracker.docx" file, few thoughts:
??? - Do NOT remove PulseAudio.? This isn't nessisary and will most likely screw up the OS install

??? - this doc mentions the user "pi" which has been deprecated for a very long time.? You really should only be using Raspberry Pi OS Bookworm (Debian 12) these days

??? - While you are saving the alsamixer levels, you are NOT restoring them before you start direwolf.? You need to run "alsactl restore" before you run direwolf.? You can add this into the dw-start.sh script if you wish.

??? - Under your persistent storage section, all the hwclock stuff is actually for the GPS section and/or adding a RTC (highly recommended for any Raspberry Pi aprs node -


--David
KI6ZHD


Re: I need help!

 

I've attached a screen print of my Direwolf startup, using -dgt.


Re: I need help!

 

A lot of useful troubleshooting information is spewed out on the screen.
What does it say on the screen?
?
73,
John WB2OSZ


Re: I need help!

 

Hi David, et.al.,
I've attached my direwolf.conf file. I verified I'm using TBEACON. Also will be using SmartBeaconing, once I get this figured out.
Again, thank you for your assistance!
Doug


Re: I need help!

 

开云体育


Hello Doug,

I need help getting Direwolf connected to the “live” gps location.

Just to reset, please post your direwolf.conf file.? In reviewing this old email thread, it's key that you're using a TBEACON setting (aka APRS SmartBeacon) if you want to have "live" position reports.

Also, consider starting Direwolf with "-d t" to print out tracker beacon details on the terminal where you start Direwolf to learn more.

--David
KI6ZHD


?????? -d x?? Debug options.? Specify one or more of the following in place of x.
???????????????????? a = AGWPE network protocol client.
???????????????????? k = KISS serial port client.
???????????????????? n = Network KISS client.
???????????????????? u = Display non-ASCII text in hexadecimal.
???????????????????? p = Packet dump in hexadecimal.
???????????????????? g = GPS interface.
???????????????????? W = Waypoints for position or object reports.
???????????????????? t = Tracker beacon.
???????????????????? o = Output controls such as PTT and DCD.
???????????????????? i = IGate
???????????????????? h = Hamlib verbose level.? Repeat for more.
???????????????????? m = Monitor heard station list.
???????????????????? f = Packet filtering.
???????????????????? x = FX.25 increase verbose level.
???????????????????? d = APRStt (DTMF to APRS object conversion).




Re: I need help!

 

Hello again!
I had to back burner my APRS project for a few months, but now I’m able to work on it again.
?
Replying to the last message, I used alsamixer to adjust the volume, and stored the settings.
?
I’m still not getting position to update in Direwolf. If I go for a drive and monitor cgps, the position changes as expected, however Direwolf remains static with the first position (at power on).
?
I can force a position update by restarting my Pi, and Direwolf will send out a position report, verified by aprs.fi.
?
I need help getting Direwolf connected to the “live” gps location.
?
ANY assistance is greatly appreciated!
Doug
73 de AE9DM