开云体育

Date

Re: Alternate KISS port

 

开云体育


Hello Danny,

Direwolf v1.7A is a rather old version of the DEV branch as the current version is 1.7E:

?? grep "Dire Wolf DEVELOPMENT" src/direwolf.c
?? --
?? dw_printf ("Dire Wolf DEVELOPMENT version %d.%d %s (%s)\n", MAJOR_VERSION, MINOR_VERSION, "E", __DATE__);
?? --

Can you try that version and report back?? If it still happens there, it might very well be a bug.? If so, can you create a Direwolf Github issue to track this against the DEV branch?

--David
KI6ZHD



On 04/10/2022 08:07 PM, Danny K5CG wrote:

I have direwolf configured with
AGWPORT 0
KISSPORT 8100

But when I start direwolf I get two KISS ports

Disabled AGW network client port.
Ready to accept KISS TCP client application 0 on port 8001 ...
Ready to accept KISS TCP client application 0 on port 8100 ...

Is there a reason 8001 remains open?

V1.7A

Thanks
Danny


Re: starting direwolf errors

 

开云体育


Hello Clinton,

I finally figured the issue with the install (updated commands are helpful) but when running direwolf I get the following errors.

For the "original steps" you were following, where did you read those?? Do you have a URL?


My set up is a baofeng UV5R+, RTL-SDR receiver R820T2, raspberry pi 3B+. Thank you for any help, yes I am new to this. The bold are the red error lines

Can you describe your setup?? Since you 're showing two radios here (a Baofeng and a RTL SDR), I hope you have these connected to two different antennas and they are placed far apart.? Unless you're very careful here, you can destroy your SDR if the Baofeng radio transmits into it.


Dire Wolf version 1.6
Includes optional support for:? cm108-ptt
ERROR - Could not open config file sdr.conf
Try using -c command line option for alternate location.

Please show us how you're trying to start Direwolf (the command line) as well as share us any configuration files.? It's clear here that Direwolf cannot find the "sdr.conf" file from the current directory you're in when you try to start Direwolf.


Audio input device for receive: –? (channel 0)
Audio out device for transmit: default? (channel 0)

This looks as if you're trying to take the output from rtl_fm and send it into Direwolf.? That's fine for receive.


ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM –
Could not open audio device – for input
No such file or directory

You might be victim to a classic Microsoft copy and paste issue where Windows will translate a "-" hyphen character into a LONGer unicode character that looks similar but it's NOT.? In the command line start up or in the direwolf.conf file, be sure the input is using a real hyphen character.


Exact sample rate is: 1008000.009613 Hz
r82xx_write: i2c wr failed=-9 reg=12 len=1
r82xx_set_freq: failed=-9

Those errors don't look good though maybe not fatal.? Where did you get this RTL dongle?? Not all are equal and some of these are very poorly made, poorly supported, etc.

--David
KI6ZHD


starting direwolf errors

 
Edited

Hi,
I finally figured the issue with the install (updated commands are helpful) but when running direwolf I get the following errors.?
My set up is a baofeng UV5R+, RTL-SDR receiver R820T2, raspberry pi 3B+. Thank you for any help, yes I am new to this. The bold are the red error lines

Dire Wolf version 1.6
Includes optional support for:? cm108-ptt
?
Reading config file sdr.conf
Audio input device for receive: –? (channel 0)
Audio out device for transmit: null? (channel 0)
Found 1 device(s):
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM –
Could not open audio device – for input
No such file or directory
Pointless to continue without audio device.
? 0:? Realtek, RTL2838UHIDIR, SN: 00000001
?
Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Tuner gain set to automatic.
Tuned to 144642000 Hz.
Oversampling input by: 42x.
Oversampling output by: 1x.
Buffer size: 8.13ms
Exact sample rate is: 1008000.009613 Hz
Sampling at 1008000 S/s.
Output at 24000 Hz.
Signal caught, exiting!
?
User cancel, exiting...
Reattached kernel driver
pi@raspberrypi:~ $
?


Alternate KISS port

 

I have direwolf configured with
AGWPORT 0
KISSPORT 8100

But when I start direwolf I get two KISS ports

Disabled AGW network client port.
Ready to accept KISS TCP client application 0 on port 8001 ...
Ready to accept KISS TCP client application 0 on port 8100 ...

Is there a reason 8001 remains open?

V1.7A

Thanks
Danny


Re: errors installing direwolf

 

开云体育

I was getting errors when I ran sudo make install and after, but I found the updated commands and was able to install but I get a bunch of errors when starting direwolf.

?

Sent from for Windows

?

From: WB2OSZ
Sent: Sunday, April 10, 2022 7:40 AM
To: [email protected]
Subject: Re: [direwolf] errors installing direwolf

?

Exactly what commands did you use?

?


Re: errors installing direwolf

 

开云体育

I was in the build directory. I finally found some updated commands and ran them and was able to finish the install but I’m getting a bunch of errors when I start direwolf.

?

?

Sent from for Windows

?

From: Veijo Arponen OH4VA
Sent: Sunday, April 10, 2022 6:43 AM
To: [email protected]
Subject: Re: [direwolf] errors installing direwolf

?

Hei,

?

In what directory you gave the command?? sudo make install should be run in the build directory.

?

I use thehe commands:

?

cd ~
git clone -b dev 
cd direwolf
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
make install-conf

?

73 de Veijo OH4VA

?

On Sun, Apr 10, 2022 at 2:57 PM Clinton Hunter <huntercf88@...> wrote:

Hi,
I followed the directions for installing direwolf on a raspberry pi and everything was working but when I get to the sudo make install command I get the following:

make: *** No rule to make target 'install'. Stop.

The same thing happens with make install-conf

Any help is appreciated.
thank you

?


Re: errors installing direwolf

 

Exactly what commands did you use?


Re: errors installing direwolf

 

Hei,

In what directory you gave the command?? sudo make install should be run in the build directory.

I use thehe commands:

cd ~
git clone -b dev 
cd direwolf
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
make install-conf

73 de Veijo OH4VA


On Sun, Apr 10, 2022 at 2:57 PM Clinton Hunter <huntercf88@...> wrote:
Hi,
I followed the directions for installing direwolf on a raspberry pi and everything was working but when I get to the sudo make install command I get the following:

make: *** No rule to make target 'install'. Stop.

The same thing happens with make install-conf

Any help is appreciated.
thank you


errors installing direwolf

 

Hi,
I followed the directions for installing direwolf on a raspberry pi and everything was working but when I get to the sudo make install command I get the following:

make: *** No rule to make target 'install'. Stop.

The same thing happens with make install-conf

Any help is appreciated.
thank you


Re: error in the libasound2-dev install

Larry Springsteen
 

Thanks much. It looks like it worked for the Libasound2. I'll continue with direwolf.

73, Larry? WB8LBZ
El Paso, TX


Re: error in the libasound2-dev install

 

开云体育

The "elpa-magit" error is probably the result of trying to install "git-all" rather than just "git".

?

There are some other issues with the out of date build instructions.

?

Use the instructions from here instead:?? ??

?

?


Re: error in the libasound2-dev install

 

开云体育


Hello Larry,

I looked over that documentation and while it's nicely written, it's recommending some obsolete things like removing pulseaudio,? I bet when you did that, it asked you to uninstall a lot more packages than what this guide shows as it wasn't written for the Raspberry Pi / Bullseye OS version).? If you search around using '"libasound2" error processing package "elpa-magit"', you'll see all kinds of various issues revolving some long standing bugs.? There are some possible workarounds but I don't know which ones will fix your specific issue.

Ps.? It should be mentioned that a LOT (aka many many people) have tried and failed to create a reliable packet station with Baefeng radios.? It really comes down to your specific radio and how well it was made at the time of it's manufacturing.? Search the Direwolf email archives for all the weird and inconsistent issues that people were combating.? Ultimately, once they replaced their radio with something a bit better made (or even a different Baofeng radio), all their issues went away.

--David
KI6ZHD



On 04/04/2022 07:23 PM, Larry Springsteen via groups.io wrote:

I am in the process of trying the install process described in the?? guide.
This is a Raspberry Pi3 with the latest January 28th 2022 Desktop OS install. When I install the libsound2 I get an error after about 850 lines
I get??dpkg: error processing package elpa-magit (--configure):
it gives several more errors referencing the same package.
This install script ends with
Errors were encountered while processing:
?elpa-magit
E: Sub-process /usr/bin/dpkg returned an error code (1)

So I am at a loss for what to do next. This is a prerequisite for Direwolf (next step in the instructions)
Is it possible to manually install elpa-magit package and continue with Direwolf?

I am not very proficient with Linux so I could have missed something.

73, Larry? WB8LBZ
El Paso, TX



error in the libasound2-dev install

Larry Springsteen
 

I am in the process of trying the install process described in the?? guide.
This is a Raspberry Pi3 with the latest January 28th 2022 Desktop OS install. When I install the libsound2 I get an error after about 850 lines
I get??dpkg: error processing package elpa-magit (--configure):
it gives several more errors referencing the same package.
This install script ends with
Errors were encountered while processing:
?elpa-magit
E: Sub-process /usr/bin/dpkg returned an error code (1)

So I am at a loss for what to do next. This is a prerequisite for Direwolf (next step in the instructions)
Is it possible to manually install elpa-magit package and continue with Direwolf?

I am not very proficient with Linux so I could have missed something.

73, Larry? WB8LBZ
El Paso, TX


Re: Soft DCD

 

On Sat, Mar 26, 2022 at 01:20 PM, David Ranch wrote:
As a quick follow up, what are your settings for slot time and persistence per the Direwolf User Guide section 9.2.13?
KISS protocol set TXDELAY = 30 (*10mS units = 300 mS), port 0
KISS protocol set Persistence = 63, port 0
KISS protocol set SlotTime = 12 (*10mS units = 120 mS), port 0
KISS protocol set TXtail = 3 (*10mS units = 30 mS), port 0
KISS protocol set FullDuplex = 0, port 0

I can increase my SlotTime though the changeover between DCD outputs seems quicker than 1/10 second.? It is set through BPQ, not that it matters.??

I actually run a TARPN node and own 4 Nino TNCs.? I'm not going to claim I have read all the documentation.?

I'll increase SlotTime to see if that helps.??


Re: Soft DCD

 

开云体育


As a quick follow up, what are your settings for slot time and persistence per the Direwolf User Guide section 9.2.13?? You can learn how these two values are used to determine when the frequency should be clear to transmit:

?? #Section 6
??

There is also a nice description of DCD in the Tino hardware TNC documentation too:

?? #Section 7
??

--David
KI6ZHD




On 03/26/2022 09:34 AM, David Ranch wrote:


Hello Joshua,

It seems as though Direwolf is dropping the DCD occasionally on RX even though the packet gets decoded.? Here is an example:

PTT 0 = 1
[0L] KJ7LVZ>CQ:test <0x0d>
PTT 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1

What was the state of DCD before your station asserted PTT?? I assume it was "0".


Station address, in position 0, is empty!? This is not a valid AX.25 frame.

You should disable the APRS heuristics with say the following:

?? FIX_BITS 0 AX25

??

You can see that the carrier detect started and stopped once before staying on and displaying the packet.? ?I saw a couple that jumped around more than that and still successfully decoding.?

This might be more of a debug display artifact more than anything else.? Try turning on timestamp debugging as well to see if that helps clear that up.?


I have logging turned on but it doesn't seem to log the DCD and PTT to the file, only the packets themselves

That's expected as debug details only go to STDERR.? If you're running on Linux, you can redirect that using the "2>" syntax if you want to log it to a file.

--David
KI6ZHD


Re: Soft DCD

 

Yes, DCD is "0" before my TX every time so the TX INHIBIT function seems to be working.? It seems as though my issue is from DCD dropping mid-packet and then my station immediately jumps on the false opening and transmits.? I've attached a longer log.? Looks like DCD and PTT don't log time.

DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
?
KB9PVH-7 audio level = 34(17/15)? ? ___104_
[0.4 10:48:31] KB9PVH-7>KJ7LVZ:(I cmd, n(s)=0, n(r)=0, p=1, pid=0xf0)Enter 'INFO' for connection information. <0x0d>WILOW:KB9PVH-7} MAIL C
DCD 0 = 0
PTT 0 = 1
[0L 10:48:31] KJ7LVZ>KB9PVH-7:(REJ res, n(r)=1, f=1)
PTT 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
?
KB9PVH-7 audio level = 34(18/15)? ? ____3+_
[0.4 10:48:38] KB9PVH-7>KJ7LVZ:(I cmd, n(s)=1, n(r)=0, p=1, pid=0xf0)HAT KEYS CONNECT BYE INFO NODES ROUTES PORTS USERS MHEARD<0x0d>
DCD 0 = 0
PTT 0 = 1
[0L 10:48:38] KJ7LVZ>KB9PVH-7:(RR res, n(r)=2, f=1)
PTT 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
?
KB9PVH-7 audio level = 35(18/15)? ? ___20__
[0.4 10:48:48] KB9PVH-7>KJ7LVZ:(I cmd, n(s)=1, n(r)=0, p=1, pid=0xf0)HAT KEYS CONNECT BYE INFO NODES ROUTES PORTS USERS MHEARD<0x0d>
DCD 0 = 0
PTT 0 = 1
[0L 10:48:48] KJ7LVZ>KB9PVH-7:(REJ res, n(r)=2, f=1)
PTT 0 = 0
?
I can watch the DCD 0/1 stack up while receiving a packet.? I would agree it was just an artifact if my station didn't choose to transmit in those millisecond gaps at times.??


Re: Soft DCD

 

开云体育


Hello Joshua,

It seems as though Direwolf is dropping the DCD occasionally on RX even though the packet gets decoded.? Here is an example:

PTT 0 = 1
[0L] KJ7LVZ>CQ:test <0x0d>
PTT 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1

What was the state of DCD before your station asserted PTT?? I assume it was "0".


Station address, in position 0, is empty!? This is not a valid AX.25 frame.

You should disable the APRS heuristics with say the following:

?? FIX_BITS 0 AX25

??

You can see that the carrier detect started and stopped once before staying on and displaying the packet.? ?I saw a couple that jumped around more than that and still successfully decoding.?

This might be more of a debug display artifact more than anything else.? Try turning on timestamp debugging as well to see if that helps clear that up.?


I have logging turned on but it doesn't seem to log the DCD and PTT to the file, only the packets themselves

That's expected as debug details only go to STDERR.? If you're running on Linux, you can redirect that using the "2>" syntax if you want to log it to a file.

--David
KI6ZHD


Re: Soft DCD

 

It seems as though Direwolf is dropping the DCD occasionally on RX even though the packet gets decoded.? Here is an example:

PTT 0 = 1
[0L] KJ7LVZ>CQ:test <0x0d>
PTT 0 = 0
DCD 0 = 1
DCD 0 = 0
DCD 0 = 1
Station address, in position 0, is empty!? This is not a valid AX.25 frame.
?
KB9SOZ audio level = 34(16/17)? ?[NONE]? ?___||__
[0.3] KB9SOZ>:<0x0d> KB9SOZ-7, Wis. Dells, Wis.<0x0d>? ? ?Jim K9VSO, sysop<0x0d><0x0d>
Station address, in position 0, is empty!? This is not a valid AX.25 frame.
ERROR!!! Unknown APRS Data Type Indicator: unprintable 0x0d
Station address, in position 0, is empty!? This is not a valid AX.25 frame.
Destination Address "" is empty.
?
*** The origin and journey of this packet should receive some scrutiny. ***
?
Opening log file "2022-03-26.log".
Station address, in position 0, is empty!? This is not a valid AX.25 frame.
DCD 0 = 0
You can see that the carrier detect started and stopped once before staying on and displaying the packet.? ?I saw a couple that jumped around more than that and still successfully decoding.? I have logging turned on but it doesn't seem to log the DCD and PTT to the file, only the packets themselves.?
?


Re: Soft DCD

 

You are understanding me correctly.? I will turn on debugging and see what's going on.


Re: Soft DCD

 

开云体育


If I'm understanding you correctly, you have a single channel setup on Direwolf as your 300bps TNC.? Correct?? If so, when Direwolf's base logic detects DCD on the signal, it should consider the frequency busy and NOT attempt to transmit on it.? Can you turn on debugging when you start debugging and send us that output that includes DCD and PTT details?

--David
KI6ZHD



On 03/26/2022 07:10 AM, Joshua KJ7LVZ wrote:

I'm running an HF packet station and would like to inhibit tx while a packet is being received.? My Direwolf setup does not keep from transmitting when I hear a packet coming in and FRACK has elapsed.??

Do I need to assign DCD and TX Inhibit GPIO pins and jumper them together?