¿ªÔÆÌåÓý

Direwolf as a Raspberry Pi 3B+ tracker only


 

Trying to setup a Raspberry Pi 3B+ running Bookworm as a tracker only. I went through the Direwolf install process without setting up a radio, soundcard, and PTT. Added GPSD, was never able to see my device on /ttyAMCO, however I see it on /tty/USB0.? Recompiled after all the GPSD installs. I can run cgps -s and see all the sat info and Lat/Lon, altitude etc. Edited the direwolf.conf, set MYCALL to AK7AN-3, generated a password entered that and selected noam for my server, added GPSD line,and TBEACON EVERY=1 SYMBOL=truck alt=1. Here is a snip of my ssh screen


It looks to me like it is trying to send my info via a radio, which I am not using, and not sending to the APRS server..
What do I need to change to geet it to send my packets to the server instead of trying to send via a radio?
Thanks?
Ed
AK7AN


 

I was able to get this solved and it is working just fine from the CLI. I am now trying to get the autostart function running and am hitting a brick wall.
Here is my crontab -e





I have verified dw-start.sh at that location in the directory. RUNMODE=CLI
Does not autostart on reboot. I can run? direwolf from the CLI and it starts just fine.
Any suggestions and help would be greatly appreciated.
Thanks
Ed
AK7AN


 

Your crontab entry is trying to run the program every minute. You want
it like this:

@reboot /home/ak7an/dw-start.sh >/dev/null 2>&1

Michael WA7SKG



nicholstribe@... wrote on 3/17/24 4:12 AM:

I was able to get this solved and it is working just fine from the CLI.
I am now trying to get the autostart function running and am hitting a
brick wall.
Here is my crontab -e





I have verified dw-start.sh at that location in the directory. RUNMODE=CLI
Does not autostart on reboot. I can run? direwolf from the CLI and it
starts just fine.
Any suggestions and help would be greatly appreciated.
Thanks
Ed
AK7AN


 

On Sun, Mar 17, 2024 at 05:24 AM, Michael WA7SKG wrote:
@reboot /home/ak7an/dw-start.sh >/dev/null 2>&1
Here is my crontab -e now..




Still nothing, no auto start as of yet.
Thanks
Ed
AK7AN


 

I haven't had any luck with crontab -e, so I built s systemd file direwolf.service.? Here is what it looks like.




I run sudo systemctl start direwolf
look at?journalctl -xeu direwolf.service and here is the out put... Looks like I am almost there.. What do I need to change or add to keep it from exiting




Thanks for the help in advance...
Ed
AK7AN


 

Fyi, this is how I did it.

73,
Lee K5DAT

_._,_._,_


Virus-free.


 

The fundamental problem here is that Direwolf is a audio-to-packet TNC first and foremost, so it expects to have some sort of audio interface to a radio to receive and send AX.25 packet tones. It is not meant to operate without such an interface. That's why Direwolf keeps exiting when it can't find the audio interface.

If you really want a "tracker" that must not use AX.25 packet over a radio, don't use Direwolf. :-)

That is what programs like aprx are for.

Andrew, KA2DDO

________________________________________
From: [email protected] <[email protected]> on behalf of nicholstribe@... <nicholstribe@...>
Sent: Sunday, March 17, 2024 11:05 AM
To: [email protected]
Subject: Re: [direwolf] Direwolf as a Raspberry Pi 3B+ tracker only

I haven't had any luck with crontab -e, so I built s systemd file direwolf.service. Here is what it looks like.

[cid:[email protected]]


I run sudo systemctl start direwolf
look at journalctl -xeu direwolf.service and here is the out put... Looks like I am almost there.. What do I need to change or add to keep it from exiting

[cid:[email protected]]


Thanks for the help in advance...
Ed
AK7AN


 

Thanks for the replies.
Lee, thats eactly where I started. Didn't work for me as configured, I changed the "pi" to my home dir and it would give me 340+ lines on the journal file.
I kept making little changes until I got to where I am and it looks like it almost starts.

Andrew, While I understand your point about what the software is first and foremost, I got the idea right from the direwolf gihub page.
doc/Raspberry-Pi-APRS-Tracker.pdf
I can run the direwolf command in CLI and it functions as I would like, just would like to be able to auto start it.
Look up AK7AN-3 to see the output on APRS.fi

Still working on it
Thanks
Ed
AK7AN


 

If you want to operate without an audio device put this in your config file:

ADEVICE? udp:9999? null

If you want to send a GPS position report to APRS-IS rather than a radio use this:

TBEACON? sendto=IG? .......

73,
John Wb2OSZ


 

John, Thanks so much, works absolutely awesome.?

Question on the SMARTBEACINING, if there is no movement does it stop altogether or just wait the max.? I will have to play with that setting to get it like i would need if I can get it to function.
73 and thanks to a great group.
Ed
AK7AN


 

Any way to add a short line of text to the TBEACON packet string?


 

nicholstribe@... <nicholstribe@...> wrote:

On Sun, Mar 17, 2024 at 05:24 AM, Michael WA7SKG wrote:

@reboot /home/ak7an/dw-start.sh >/dev/null 2>&1

Here is my crontab -e now..

[cid]
The `1` on the end of the @reboot line got lost.

btw, to just print the actual users crontab you can use `crontab -l`

Still nothing, no auto start as of yet.
Thanks
Ed
AK7AN
-dominic

--
Far and away the best prize that life has to offer is the chance to
work hard at work worth doing.
- Theodore Roosevelt


 

nicholstribe@... <nicholstribe@...> wrote:

Any way to add a short line of text to the TBEACON packet string?
comment="text"

have you seen the user guide?


page 79 starts with beaconing and a few pages the TBEACON and
smartbeaconing is explained.

HTH

-dominic

--
Do not dwell in the past, do not dream of the future,
concentrate the mind on the present moment.
- Buddha


 

¿ªÔÆÌåÓý

This is my systemd script for direwolf .......

[Unit]
Description=Direwolf service
After=sound.target
After=network.target
After=syslog.target
StartLimitIntervalSec=0

[Service]
Type=simple
User=vk2tv
ExecStart= /usr/local/bin/direwolf -T %H:%M:%S -t 0 -c /home/vk2tv/direwolf.conf
Restart = always
RestartSec=5

[Install]
WantedBy=multi-user.target


On 18/3/24 02:05, nicholstribe@... wrote:
I haven't had any luck with crontab -e, so I built s systemd file direwolf.service.? Here is what it looks like.




I run sudo systemctl start direwolf
look at?journalctl -xeu direwolf.service and here is the out put... Looks like I am almost there.. What do I need to change or add to keep it from exiting




Thanks for the help in advance...
Ed
AK7AN

Ray vk2tv