¿ªÔÆÌåÓý

Date

RPi Direwolf packet station.

Mike Berg
 

I've got Direwolf running on a Pi3b using a USB soundcard with good results.
Now I'd like to add TNC like functionality so that I can access the local packet services.
I had some great instructions on my Git hub journey using the Direwolf for APRS doc.
I'm looking for suggestions hoping the rest goes as well.
73
Mike N0QBH


Re: Direwolf UDP socket input

 

This is direwolf on linux, the distro version for Ubuntu and Fedora (1.6) as well as built recently from dev branch (~1.7). I'm streaming gqrx to UDP port 7355 as in the tutorial. It seems to be working on the gqrx side as I can see the stream in netcat/netstat. And as mentioned, if I then pipe netcat into direwolf STDIN it is at least able to decode DTMF.

For direwolf I am just trying with the basic config for reading UDP socket:
ADEVICE0 udp:7355 default
ARATE 48000
ACHANNELS 1
DTMF

I've also tried just running command-line `direwolf -n 1 -r 48000 -b 16 udp:7355`

As mentioned, adding -a10 to either of these doesn't show any output; it seems to hang on the recv() call in audio.c.


On Thu, Sep 14, 2023 at 7:33?AM WB2OSZ <wb2osz@...> wrote:
The Radio Interface Guide, found here , has information about using gqrx.
gqrx streaming audio is covered here and direwolf is mentioned.

Can you tell us more about the relevant? gqrx and direwolf configuration settings?

73,
John WB2OSZ


Re: Direwolf UDP socket input

 

The Radio Interface Guide, found here , has information about using gqrx.
gqrx streaming audio is covered here and direwolf is mentioned.

Can you tell us more about the relevant? gqrx and direwolf configuration settings?

73,
John WB2OSZ


Direwolf UDP socket input

 

Hello all,

I'm trying to pipe gqrx to direwolf and not having luck with the udp:7355 socket input. It seems to hang on the recv() call; adding -a10 also gives no updates. I tried poking around the code a little but haven't found the issue yet. Any tips?

For now, a workaround is to use netcat to read the UDP port and then pipe that to direwolf STDIN.

Thanks!
Peter


Re: Starting direwolf

 

Thanks Rob and Kevin for your replies. I immediately thought of Kevin's comment when I read Rob's reply, as I have been bit by that several times.

Your answers and some other things I ran into led me to first create .desktop files for direwolf and YAAC. Then I copied them into the .config/autostart folder and everything starts on boot and works great.

Thanks for your help,

Michael WA7SKG


Rob Giuliano via groups.io wrote on 9/11/23 6:36 AM:

Yes - that is VERY important when running from within a cron script.
Sorry for the confusion.? I copied a .desktop file and didn't think it through!
Robert Giuliano
KB8RCO
On Monday, September 11, 2023 at 09:31:19 AM EDT, Kevin <kd9efv@...> wrote:
May I make 1 suggestion, Rob? Use the full path to the config file, not the ~ (tilde) path. IOW,
#! /usr/bin/env bash
/usr/local/bin/direwolf -c /home/<username>/direwolf/direwolf.conf
Or even better, maybe put the .conf file in /etc or a shared folder tree...
--
= = = =
? Kevin? --? KD9EFV


Re: Starting direwolf

 

Yes - that is VERY important when running from within a cron script.
Sorry for the confusion.? I copied a .desktop file and didn't think it through!

Robert Giuliano
KB8RCO



On Monday, September 11, 2023 at 09:31:19 AM EDT, Kevin <kd9efv@...> wrote:


May I make 1 suggestion, Rob? Use the full path to the config file, not the ~ (tilde) path. IOW,
#! /usr/bin/env bash
/usr/local/bin/direwolf -c /home/<username>/direwolf/direwolf.conf
Or even better, maybe put the .conf file in /etc or a shared folder tree...

--
= = = =

? Kevin? --? KD9EFV


Re: Starting direwolf

 

(btw, the suggestion is related to the ability to figure out the path, if it is being run as root in a crontab, or any of a number of other issues, the ~ path doesn't always point to where it 'should'. In root it points to /root/, and not to /home/<username>)
--
= = = =

? Kevin? --? KD9EFV


Re: Starting direwolf

 

May I make 1 suggestion, Rob? Use the full path to the config file, not the ~ (tilde) path. IOW,
#! /usr/bin/env bash
/usr/local/bin/direwolf -c /home/<username>/direwolf/direwolf.conf
Or even better, maybe put the .conf file in /etc or a shared folder tree...

--
= = = =

? Kevin? --? KD9EFV


Re: Starting direwolf

 

I believe most of the Linux distros have moved to using systemd startup files.?
?? It looks like you are trying to get Direwolf to run in the background (no display terminal).
?? Best to try and getting it working on boot within a terminal, then alter the startup to make it background.
?? I might suggest a less complicated startup script - no functions, just start direwolf with a defined configuration
Is your Quadra system running systemd?? If so, I suggest giving that a try.
?? If not,? you might want to create a more simplified script (as mentioned above)

Simplified script (assuming you don't need RTL_FM or other specialty application before Direwolf starts):
#! /usr/bin/env bash
/usr/local/bin/direwolf -c ~/direwolf/direwolf.conf

NOTE:? I have a direwolf directory in my home folder, where I keep different configuration files.? Just to explain the ~/direwolf/direwolf.conf
???????????? Also, removed any check if Direwolf is running.? You could add that later.
-------
Rob KB8RCO
Never listen to an Atom, they make up everything
(from - nerdy science t-shirt my sister bought me)


Starting direwolf

 

I have successfully (I think) installed direwolf on my Quadra. My issue now is starting it. If I try to run the startup script that came with the install it pops up a big error box that goes away before I can read it, then tells me it doesn't start with

========================================
quadra@inovato:~$ ./dw-start.sh
Direwolf in GUI mode start up
DISPLAY=:0
-----------------------
quadra@inovato:~$ ConfigBase::load: Unable to open /etc/xdg/terminator/config ([Errno 2] No such file or directory: '/etc/xdg/terminator/config')

quadra@inovato:~$
========================================

I have no idea where the stuff about "Unable to open /etc/xdg/terminator" is coming from. There is no reference to anything xdg in the script.


Most of the dw-start.sh script makes little sense to me.

I can go into the direwolf folder and simply type direwolf, and it seems to startup and run fine. But I have to leave a terminal window open to do this. Then I have to ctrl-C to stop it when I shut down the computer. Kind of a nuisance.


So, what is the best way to have direwolf start on boot?
I put the recommended crontab of

* * * * * /home/quadra/dw-start.sh >/dev/null 2>&1

but that does not seem to work. I am assuming it is due to the error shown above when I run dw-start.sh from the command line.

I appreciate your time.

--
73,
Michael WA7SKG

"Any day you do not learn one new thing is a wasted day."


Re: Cross Fix to ALSA-LIB and GPIO PTT issues

 

? Finally found the issue with using the GPIO pins on the Wandboard ARM machine. The GPIO pin I expected to use was muxed for use with a second SD drive. That they identified it in the diagrams for external use was the problem. Using a different external pin and re-designating it in the .conf file did the trick!? The 3.0v output drives an opto-isolator to run the PTT on a Yaesu FT-1800 with some current limiting resistors.
Curiously, I discovered I still have the KAM Plus and Yaesu FT270 I used in the 80's.


Re: New Quadra APRS Installation

 

Thanks for your reply, David.

The audio adapters I have look like a thumb drive with a couple jacks on the end. Other than that, I'll have to wait until I find them again to tell you more :-)

I've got two radio options for this project right now, a Radio Shack HTX-242 and an Icom IC-2350. Neither have data ports, so the connection will be via RJ-45 mic jack and external speaker jacks.

I found some info on using the CM108 devices. I just have to find the ones I have to figure out if they will work.

Thanks,
Michael WA7SKG



David Ranch wrote on 9/7/23 8:32 AM:

Hello Michael,

First, the audio interface. This is a no budget setup so something like Signalink is out of the question. I've got a couple cheap USB audio interfaces that have mic in and speaker out jacks. Will those work with direwolf?
Can you give us some details of these "cheap devices"?? If they are what I think they are, they are CM108-based sound devices and should work for audio AND PTT with the addition of a few simple electronic components and some soldering.

Second is PTT. The Quadra has no I/O pins or serial port to trigger the PTT. The radio does not have VOX, which I would not use anyway.
Can you tell us which radio you're planning on using?

Next, is direwolf usable with other digital modes than packet/APRS, like fldigi or WSJT-X?
Direwolf only does AX.25 packet radio, AIS reception, and some DTMF stuff.? Fldigi, WSJT-X, etc are all entirely different programs supporting very different digital? modes.
--David
KI6ZHD


Re: New Quadra APRS Installation

 

¿ªÔÆÌåÓý


Hello Michael,

First, the audio interface. This is a no budget setup so something like Signalink is out of the question. I've got a couple cheap USB audio interfaces that have mic in and speaker out jacks. Will those work with direwolf?

Can you give us some details of these "cheap devices"?? If they are what I think they are, they are CM108-based sound devices and should work for audio AND PTT with the addition of a few simple electronic components and some soldering.


Second is PTT. The Quadra has no I/O pins or serial port to trigger the PTT. The radio does not have VOX, which I would not use anyway.

Can you tell us which radio you're planning on using??


Next, is direwolf usable with other digital modes than packet/APRS, like fldigi or WSJT-X?

Direwolf only does AX.25 packet radio, AIS reception, and some DTMF stuff.? Fldigi, WSJT-X, etc are all entirely different programs supporting very different digital? modes.

--David
KI6ZHD


Re: New Quadra APRS Installation

 

Have you looked at the Digirig???
$50 bucks!

Tyler Griffiths
N7UWX





On Wed, Sep 6, 2023 at 8:03?PM Michael WA7SKG <wa7skg@...> wrote:
Greetings,
I am setting up a Quadra computer for APRS. I have the YAAC? client installed and working with? APRS-IS, now I need to connect a radio. I have installed direwolf for the modem. Now, I have two issues.

First, the audio interface. This is a no budget setup so something like Signalink is out of the question. I've got a couple cheap USB audio interfaces that have mic in and speaker out jacks. Will those work with direwolf?

Second is PTT. The Quadra has no I/O pins or serial port to trigger the PTT. The radio does not have VOX, which I would not use anyway.

Next, is direwolf usable with other digital modes than packet/APRS, like fldigi or WSJT-X?

Thanks for any suggestions/advice.

73,
Michael WA7SKG


Re: New Quadra APRS Installation

 
Edited

Direwolf has an option to use the GPIO of a CM108 sound card.? It requires taking the sound card apart and adding a resistor coming off a pin of the chip, and transistor to control the PTT.
Look up CM108 PTT and you should find some instructions.? I don't bother with SQL as the Direwolf is much better at checking if a signal is coming in.

Another option would be a cheaper interface than a SignaLink-USB.?
DINAH is at least half the price, and there may be others.
-------
Rob KB8RCO


New Quadra APRS Installation

 

Greetings,
I am setting up a Quadra computer for APRS. I have the YAAC? client installed and working with? APRS-IS, now I need to connect a radio. I have installed direwolf for the modem. Now, I have two issues.

First, the audio interface. This is a no budget setup so something like Signalink is out of the question. I've got a couple cheap USB audio interfaces that have mic in and speaker out jacks. Will those work with direwolf?

Second is PTT. The Quadra has no I/O pins or serial port to trigger the PTT. The radio does not have VOX, which I would not use anyway.

Next, is direwolf usable with other digital modes than packet/APRS, like fldigi or WSJT-X?

Thanks for any suggestions/advice.

73,
Michael WA7SKG


Re: K7MBBS-4 audio level = 19(4/4) 000000___ --> ??

 

¿ªÔÆÌåÓý


Hello Thomas,

maybe someone can answer me the question please, I didn't find anything in the documentation.

What do the zeros mean in the line?
K7MBBS-4 audio level = 19(4/4)? ? 000000___
K7MBTS audio level = 99(32/21)? ? __|||||__

You have enabled FX.25 reception and that's showing that 0 bits were corrected in each of the slicers described here on page 9:

??

--David
KI6ZHD


K7MBBS-4 audio level = 19(4/4) 000000___ --> ??

 

Hello,
maybe someone can answer me the question please, I didn't find anything in the documentation.

What do the zeros mean in the line?
K7MBBS-4 audio level = 19(4/4)? ? 000000___
K7MBTS audio level = 99(32/21)? ? __|||||__

THX


Re: Building on Mac

 

Thanks for the reply,

Looks like that worked :)

Running tests...
Test project /Users/user/Documents/sources/direwolf/build-test
????? Start? 1: dtest
?1/24 Test? #1: dtest ............................?? Passed??? 5.09 sec
????? Start? 2: ttest
?2/24 Test? #2: ttest ............................?? Passed??? 0.16 sec
????? Start? 3: tttexttest
?3/24 Test? #3: tttexttest .......................?? Passed??? 0.09 sec
????? Start? 4: pftest
?4/24 Test? #4: pftest ...........................?? Passed??? 0.08 sec
????? Start? 5: tlmtest
?5/24 Test? #5: tlmtest ..........................?? Passed??? 0.08 sec
????? Start? 6: lltest
?6/24 Test? #6: lltest ...........................?? Passed??? 0.08 sec
????? Start? 7: enctest
?7/24 Test? #7: enctest ..........................?? Passed??? 0.07 sec
????? Start? 8: kisstest
?8/24 Test? #8: kisstest .........................?? Passed??? 0.10 sec
????? Start? 9: pad2test
?9/24 Test? #9: pad2test .........................?? Passed??? 0.12 sec
????? Start 10: xidtest
10/24 Test #10: xidtest ..........................?? Passed??? 6.11 sec
????? Start 11: dtmftest
11/24 Test #11: dtmftest .........................?? Passed??? 0.14 sec
????? Start 12: check-fx25
12/24 Test #12: check-fx25 .......................?? Passed??? 1.04 sec
????? Start 13: check-il2p
13/24 Test #13: check-il2p .......................?? Passed??? 0.32 sec
????? Start 14: check-modem1200
14/24 Test #14: check-modem1200 ..................?? Passed??? 4.04 sec
????? Start 15: check-modem1200-i
15/24 Test #15: check-modem1200-i ................?? Passed??? 1.80 sec
????? Start 16: check-modem300
16/24 Test #16: check-modem300 ...................?? Passed??? 8.20 sec
????? Start 17: check-modem9600
17/24 Test #17: check-modem9600 ..................?? Passed??? 0.34 sec
????? Start 18: check-modem9600-i
18/24 Test #18: check-modem9600-i ................?? Passed??? 0.85 sec
????? Start 19: check-modem19200
19/24 Test #19: check-modem19200 .................?? Passed??? 0.31 sec
????? Start 20: check-modem2400-a
20/24 Test #20: check-modem2400-a ................?? Passed??? 2.21 sec
????? Start 21: check-modem2400-b
21/24 Test #21: check-modem2400-b ................?? Passed??? 2.24 sec
????? Start 22: check-modem2400-g
22/24 Test #22: check-modem2400-g ................?? Passed??? 0.40 sec
????? Start 23: check-modem4800
23/24 Test #23: check-modem4800 ..................?? Passed??? 1.42 sec
????? Start 24: check-modemeas
24/24 Test #24: check-modemeas ...................?? Passed??? 0.26 sec

100% tests passed, 0 tests failed out of 24

Total Test time (real) =? 35.57 sec


Re: Cross Fix to ALSA-LIB and GPIO PTT issues

 

Hi Dave,
? I went over the ptt.c file and compared the debug output I had for the Direwolf startup. There didn't seem to be any errors as it follows the libgpiod syntax completely. My guess right now is that the GPIO pins aren't identified in the dtb table for the kernel startup. I've translated three versions and see no reference in the dtc's for a simple GPIO I/O interface on the external pins. Most of the defined pins are used for chip-chip interaction. So now I have to "re-invent the wheel" and do a dtc blob for my GPIO-19 pin on gpio@209c000 (the first bank of GPIO modules) and a gpiopin@209c000 definition with the needed pinctrl and pin-gpios data. The iMX6 reference data from Technexion is forthcoming as I've hung on my access and login, TBD. Unfortunately the other iMX6 ARM users don't leave their dtc files lying around for me to plagiarize.

Hasta,
Dave
KI6KPP