[nos-bbs] Dirwolf/Jnos/ax25/Xnet/bpq

Niels Ruiter pd2lt at packet-radio.net
Thu Mar 8 10:38:21 EST 2018


In the previous post about Direwolf and jnos i use Direwolf-1.3 and does not know about the SERIALKISS port.
John WQ6N point it out to me... Tnx John WQ6N. Nice one.
So maybe I wrote that script for nothing. This is working pretty simple :) 

In Direwolf 1.5-beta is it possible to use SERIALKISS to connect com to com.
I have use a PTY pair created with socat. 

# Create pty pair
socat -d -d -ly PTY,link=/dev/ttyq1 PTY,link=/dev/ptyq1 &
sleep 2
# Start Direwolf
direwolf -d kn -c /direwolf/direwolf.conf &> /var/log/direwolf.log >/dev/tty3 &
sleep 2

Direwolf.conf
SERIALKISS  /dev/ttyq1 19200

# Jnos autoexec.nos
attach asy ptyq1 - ax25 ax0 4096 256 19200

Fireup Jnos
./jnos -C -g2 -u3 -f nos.cfg -i


https://packet-radio.net

73 Niels pd2lt 




-----Oorspronkelijk bericht-----
Van: nos-bbs [mailto:nos-bbs-bounces at tapr.org] Namens Niels Ruiter
Verzonden: dinsdag 6 maart 2018 8:37
Aan: nos-bbs at tapr. org; uronode at tapr.org
Onderwerp: [nos-bbs] Dirwolf/Jnos/ax25/Xnet/bpq

#!/bin/bash
# 6 march 2018
# Wrote a small script to get the shittie PTS to a file where it`s belongs.
# Yes you can also use the agw driver from Direwolf for Jnos.
# Now its also possible to "sed" the right PTS to your ax25 start file
#
# socat -d -d -lf /tmp/socat.pts PTY,link=/tmp/kisstnc TCP4:127.0.0.1:8001 &
# sleep 2
# grep -o "/dev/pts/." /tmp/socat.pts > /tmp/devs.pts
# attachthem () {
#	read PTS1
#	   sed -i "s,kissattach -m 256 /dev/.*$,kissattach -m 256 $PTS1 ax0
44.137.31.73," /etc/ax25/ax-start
#
#       }
#
#	tail -n 1 /tmp/devs.pts | attachthem
# rm /tmp/socat.pts
# rm /tmp/devs.pts
# sleep 3
#
# Or use it with (X)net.
# sed -i "s,attach sdev4 kiss 4 1 19200 /dev/.*$,attach sdev4 kiss 4 1 19200
$PTS1," /usr/local/xnet/AUTOBOOT.NET
#
# Or with BPQ
# sed -i "s,COMPORT=/dev/.*$,COMPORT=$PTS1," /usr/local/linbpq/bpq32.cfg
#
# Oo well maybe this is better. I don't know, I don't ....
#  IPADDR=127.0.0.1
#  TCPPORT=8001  
#
# Yes there are many ways to do this, but I had some fun to play with it.
# Maybe it is useful for someone.
############################################################################
###################################
#
echo "Starting direwolf with socat for jnos/ax25"
# Set the path to direwolf and some stuff
PATH=/direwolf:/usr/bin:/bin:/usr/local/bin
# Start Direwolf
direwolf -c /direwolf/direwolf.conf &> /var/log/direwolf.log >/dev/tty3 &
sleep 3
# Socat "kisstnc link with a PTS"
socat -d -d -lf /tmp/socat.pts PTY,link=/tmp/kisstnc TCP4:127.0.0.1:8001 &
sleep 2
grep -o "/dev/pts/." /tmp/socat.pts > /home/pd2lt/jnos/spool/ptmx_radio.cfg
echo "Direwolf is connect to" `cat /home/pd2lt/jnos/spool/ptmx_radio.cfg`
echo "Now Jnos is ready to Rock and Roll :)"
rm /tmp/socat.pts
rm /home/pd2lt/jnos/spool/ptmx_radio.cfg
sleep 1

73 Niels PD2LT


_______________________________________________
nos-bbs mailing list
nos-bbs at tapr.org
http://www.tapr.org/mailman/listinfo/nos-bbs




More information about the nos-bbs mailing list