[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed with solving an axcall-related problem




Everything you've setup looks correct.  What version of Debian and which kernel version are you running?   When running your axcall command, maybe you can run it via "strace -f" to see more details of where this is failing?

Ps.  You can look how I start up my AX25 stack here ( http://www.trinityos.com/HAM/CentosDigitalModes/RPi/etc/ax25/ax25-up.new ) but once your stack is running, try running these echo statements and see if anything looks wrong:
--
   echo "Displaying current system kissparms"
   echo "Displaying current system kissparms" >> $LOG
   echo "--"
   echo "--" >> $LOG
   echo "AX25 protocol mode (0=Norm* 1=Extd)                : `cat /proc/sys/net/ax25/$AXINT/ax25_default_mode`"
   echo "AX25 protocol mode (0=Norm* 1=Extd)                : `cat /proc/sys/net/ax25/$AXINT/ax25_default_mode`" >> $LOG
   echo "AX25 backoff type (0=Linear 1=Expon*)              : `cat /proc/sys/net/ax25/$AXINT/backoff_type`"
   echo "AX25 backoff type (0=Linear 1=Expon*)              : `cat /proc/sys/net/ax25/$AXINT/backoff_type`" >> $LOG
   echo "AX25 connect mode (0=none 1=network 2=all*)        : `cat /proc/sys/net/ax25/$AXINT/connect_mode`"
   echo "AX25 connect mode (0=none 1=network 2=all*)        : `cat /proc/sys/net/ax25/$AXINT/connect_mode`" >> $LOG
   echo "AX25 Extd window size (num of unacked packets 32*) : `cat /proc/sys/net/ax25/$AXINT/extended_window_size`"
   echo "AX25 Extd window size (num of unacked packets 32*) : `cat /proc/sys/net/ax25/$AXINT/extended_window_size`" >> $LOG
   echo "AX25 idle timeout (idle session timeout in M 20*)  : `cat /proc/sys/net/ax25/$AXINT/idle_timeout`"
   echo "AX25 idle timeout (idle session timeout in M 20*)  : `cat /proc/sys/net/ax25/$AXINT/idle_timeout`" >> $LOG
   echo "AX25 AXIP mode (0=Datagram* 1=VirtConnection)      : `cat /proc/sys/net/ax25/$AXINT/ip_default_mode`"
   echo "AX25 AXIP mode (0=Datagram* 1=VirtConnection)      : `cat /proc/sys/net/ax25/$AXINT/ip_default_mode`" >> $LOG
   echo "AX25 max packet size (256*)                        : `cat /proc/sys/net/ax25/$AXINT/maximum_packet_length`"
   echo "AX25 max packet size (256*)                        : `cat /proc/sys/net/ax25/$AXINT/maximum_packet_length`" >> $LOG
   echo "AX25 max packet retry count (10*)                  : `cat /proc/sys/net/ax25/$AXINT/maximum_retry_count`"
   echo "AX25 max packet retry count (10*)                  : `cat /proc/sys/net/ax25/$AXINT/maximum_retry_count`" >> $LOG
   echo "AX25 protcol version (DAMA Slave)                  : `cat /proc/sys/net/ax25/$AXINT/protocol`"
   echo "AX25 protcol version  (DAMA Slave)                 : `cat /proc/sys/net/ax25/$AXINT/protocol`" >> $LOG
   echo "AX25 STD window size (num of unacked packets 2* )  : `cat /proc/sys/net/ax25/$AXINT/standard_window_size`"
   echo "AX25 STD window size (num of unACKed packets 2*)   : `cat /proc/sys/net/ax25/$AXINT/standard_window_size`" >> $LOG
   echo "AX25 T1 timer (unacked packet retry 10000mS*)      : `cat /proc/sys/net/ax25/$AXINT/t1_timeout`"
   echo "AX25 T1 timer (unacked packet retry 10000mS*)      : `cat /proc/sys/net/ax25/$AXINT/t1_timeout`" >> $LOG
   echo "AX25 T2 timer (wait for 2nd RX packet 3000mS*)     : `cat /proc/sys/net/ax25/$AXINT/t2_timeout`"
   echo "AX25 T2 timer (wait for 2nd RX packet 3000mS*)     : `cat /proc/sys/net/ax25/$AXINT/t2_timeout`" >> $LOG
   echo "AX25 T3 timer (link still up check 300000mS*)      : `cat /proc/sys/net/ax25/$AXINT/t3_timeout`"
   echo "AX25 T3 timer (link still up check 300000mS*)      : `cat /proc/sys/net/ax25/$AXINT/t3_timeout`" >> $LOG
--


--David
KI6ZHD


On 01/13/2022 12:32 PM, Karsten Merker wrote:
On Thu, Jan 13, 2022 at 07:45:34AM -0800 David Ranch wrote:

$ LANG=en axcall cb 13CB42
GW4PTS AX.25 Connect v1.11
AX25_WINDOW: Invalid argument
Please post your /etc/ax25/axports file as I imagine there is an error in
there.  That configuration file is known to be sensitive to extra
characters, CR/LF, etc.  Here is a working example where those are TABS
creating the space between columns:
--
#portname       callsign        speed   paclen  window  description
d710            KI6ZHD          9600    255     4       built-in D710 TNC at
1200baud
Hello,

many thanks for your help.  I have attached my /etc/ax25/axports
file to this mail.

Also.. it should be noted that your given destination callsign
is NOT a valid amateur radio callsign.
Indeed, but that is unavoidable when operating AX.25 on CB radio
instead of on the ham bands.

As such, some software (not necessarily AX.25 code) might break
is unexpected ways.
Yes, that could of course happen.  To make sure that the source
of the problem at hand isn't using callsigns that do not strictly
comply with the ITU-mandated format for ham callsigns while still
fulfilling the requirements of the AX.25 spec (up to 6
characters, either uppercase ASCII letters or numbers), I had
already run a bunch of tests with structurally valid ham radio
callsigns (both for the local AX.25 port as well as for the
destination).  The behaviour of axcall was exactly the same with
the CB and with the ham callsigns.
 
Where are you getting your axcall binary?  Is it from the Debian repos?
Yes, from Debian/sid.

If so, that code is rather OLD and this is due to the primary
maintainer not marking new releases on his Git repo.  What I
recommend to do is to compile a new version and use that over
the Debian repo versions.  There are generally TWO versions you
can consider and I explain all of that here:

http://www.trinityos.com/HAM/CentosDigitalModes/RPi/rpi4-setup.html#18.install-ax25
I have uninstalled the Debian ax25-apps, ax25-tools, libax25 and
libax25-dev packages and built the software from
https://github.com/ve7fet/linuxax25.git as described in your link
above.  Unfortunately, with those binaries the behavior is
exactly the same as with the Debian-packaged ones.

For testing the newly-built binaries I have again used
structurally valid (although currently unassigned) ham callsigns
to exclude the callsign format as a possible problem source.

$ cat /etc/ax25/axports
# /etc/ax25/axports
#
# The format of this file is:
#
# name callsign speed paclen window description
#
#
#1	OH2BNS-1	1200	255	2	144.675 MHz (1200  bps)
#2	OH2BNS-9	38400	255	7	TNOS/Linux  (38400 bps)
cb	DL1ABG-1	1200	255	2	CBPR (1200bps)

$ grep ^MYCALL /etc/direwolf.conf 
MYCALL DL1ABG

# /usr/local/stow/ax25/sbin/kissattach /dev/pts/6 cb
AX.25 port cb bound to device ax0
root@aletheia:~# ifconfig 
ax0: flags=67<UP,BROADCAST,RUNNING>  mtu 255
        ax25 DL1ABG-1  txqueuelen 10  (AMPR AX.25)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ LANG=en /usr/local/stow/ax25/bin/call cb DL1ABD
GW4PTS AX.25 Connect 2.0.1
AX25_WINDOW: Invalid argument

$ ldd /usr/local/stow/ax25/bin/call
	linux-vdso.so.1 (0x00007ffc68b6d000)
	libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007ff0e0b0c000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007ff0e0adb000)
	libax25.so.1 => /usr/local/lib/libax25.so.1 (0x00007ff0e0acf000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff0e0906000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff0e08ff000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff0e0ba4000)

Regards,
Karsten


Reply to: