Date   

Re: Virtual Serial Port

Niels Ruiter
 

Hi Max,

If I read your posts, I think you need this.

http://manpages.ubuntu.com/manpages/trusty/man8/kissnetd.8.html

DESCRIPTION
Kissnetd allows the creation of a virtual network of AX.25 systems that
use the KISS protocol. Each tty named on the command line is opened and
any KISS frames received on tty is copied to the other ttys. This
allows a number of AX.25 systems to share the same packets

root@gw-pd9q:~# kissnetd -p 2
kissnetd V 1.5 by Frederic RIBLE F1OAT - ATEPRA FPAC/Linux Project

Awaiting client connects on:
/dev/pts/1 /dev/pts/2


The problem is that you do not know which /dev/pts you will be assigned. I use a script for that.
I use this to communicate with kiss from my Uronode to my Xnet node

tmpfile="/tmp/$$.startax1.pts"
kissnetd -p 2 > "$tmpfile" &
sleep 2
attachthem () {
read PTS1 PTS2
kissattach -l $PTS1 ax1 44.137.31.73
sleep 1
sed -i "s,attach sdev3 kiss 3 1 19200 /dev/.*$,attach sdev3 kiss 3 1 19200 $PTS2," /usr/local/xnet/AUTOBOOT.NET
}

tail -n 1 $tmpfile | attachthem
rm $tmpfile
sleep 3

Fist I needs a tmpfile
tmpfile="/tmp/$$.startax2.pts"

Then I start kissnetd with two ports (kissnetd -p 2) and write it to the tmpfile
kissnetd -p 2 > "$tmpfile" &

Now I can read the tmpfile (read PTS1 PTS2) and use kissattach to attach them. You have to configure the ax25 stack in Linux.

With the last line (the sed command) I write the last PTS (PTS2) to the configfile of Xnet.
Why, because I do not know which one I am getting assigned.

Maybe it`s simpler to use socat. Why, because it does not matter which PTS you are getting assigned.

socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &
sleep 2
kissattach -m 256 /dev/ptyq2 ax1 44.137.31.73
sleep 1

/usr/local/etc/ax25/axports
ax1 PI1LAP-3 19200 256 4 Link local APRX

(APRX config file) I do not know APRX, so maybe its way off.
<interface>
serial-device /dev/ttyq2 19200 8n1 KISS
</interface>

Now you can use /dev/ptyq2 to put your kiss data on it. And it will be received by APRX

You can also gave a other name to it....

socat -d -d -ly PTY,link=/dev/com10 PTY,link=/dev/com11 &

You can even run it on your network.

1) on the modem server start a process that accepts network connections and
links them with the serial device /dev/tty0:

$ socat tcp-l:54321,reuseaddr,fork \
file:/dev/tty0,nonblock,waitlock=/var/run/tty0.lock

2) on the client start a process that creates a pseudo tty and links it with a
tcp connection to the modem server:

$ socat pty,link=$HOME/dev/vmodem0,waitslave tcp:modem-server:54321

Ok lots of info. Just look at the socat section.

73 Niels PD9Q
https://packet-radio.net


Digi-Pi

 

By WB7FHC -- Budd Churchward

Short Version: https://www.youtube.com/watch?v=65RONF37svw



--


John D. Hays
Edmonds, WA
K7VE

   


Re: Virtual Serial Port

David Ranch <dranch@...>
 


Hello Max,

Are you trying to send this data out on the 144.390 APRS network?  If so, there are MULTIPLE ways to do it.  APRS can do it.  Direwolf can do it.  Raw tools can do it too.  I'm just trying to help you make your solution SIMPLE vs. make it complicated.

So, if you are trying to transmit this data via RF on 144.390Mhz, what TNC are you using to do that transmission

--David
KI6ZHD


On 04/12/2018 06:21 PM, Max via Groups.Io wrote:
I'm not sure if I understand your question. As noted in my original post, python will be used to create the kiss packets and send them out a serial port, either real or virtual. This is being done this way because of my very limited programming abilities and the fact that aprx only supports tnc's. I don't know of any other way of getting data into aprx. I also don't understand what file you are talking about copying to a ram drive.


Re: Virtual Serial Port

Max
 

I'm not sure if I understand your question. As noted in my original post, python will be used to create the kiss packets and send them out a serial port, either real or virtual. This is being done this way because of my very limited programming abilities and the fact that aprx only supports tnc's. I don't know of any other way of getting data into aprx. I also don't understand what file you are talking about copying to a ram drive.

Max KG4PID

On Thursday, April 12, 2018, 7:36:34 PM CDT, David Ranch <dranch@...> wrote:



Hey Max,

What are you using for your actual TNC to interface with APRX?  If you're using Direwolf, you should be able to format your custom data to support Direwolf's direct telemetry input engine:

   https://github.com/wb2osz/direwolf/raw/dev/doc/APRS-Telemetry-Toolkit.pdf

Perl and Python examples are available.  Putting that file on a RAM drive on the Raspberry Pi should simplify things unless you really want to use serial ports for some reason.

--David
KI6ZHD


On 04/12/2018 06:21 AM, Max via Groups.Io wrote:
I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

Is all this clear as mud?



Re: Virtual Serial Port

David Ranch <dranch@...>
 


Hey Max,

What are you using for your actual TNC to interface with APRX?  If you're using Direwolf, you should be able to format your custom data to support Direwolf's direct telemetry input engine:

   https://github.com/wb2osz/direwolf/raw/dev/doc/APRS-Telemetry-Toolkit.pdf

Perl and Python examples are available.  Putting that file on a RAM drive on the Raspberry Pi should simplify things unless you really want to use serial ports for some reason.

--David
KI6ZHD


On 04/12/2018 06:21 AM, Max via Groups.Io wrote:
I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

Is all this clear as mud?


Re: Virtual Serial Port

 

Simple enough to test.

cat some-binary-file > /dev/pts/1
cat /dev/pts/2 > some-file
diff some-binary-file some-file 

Assuming /dev/pts/1 and /dev/pts/2 are your 2 pty endpoints.

On Thu, Apr 12, 2018 at 4:27 PM, John D Hays - K7VE <john@...> wrote:
The answers in

https://stackoverflow.com/questions/52187/virtual-serial-port-for-linux

explain setting up a socat to create a virutal serial pair of ptys for your applications to use.

On Thu, Apr 12, 2018 at 4:02 PM, Max via Groups.Io <kg4pid@...> wrote:
That's a lot to take in. It'll take me a while to study it all. I may need more help.

Thanks, Max KG4PID


On Thursday, April 12, 2018, 12:18:59 PM CDT, Niels Ruiter <pd9q@...> wrote:

Hi Max,

You can use kissnetd of socat…

 

       # link local pi8lap (xnet)

        echo "Starting ax2 "

        if grep ax2 /etc/ax25/axports ; then

        tmpfile="/tmp/$$.startax2.pts"

        kissnetd -p 2 > "$tmpfile" &

        sleep 2

        attachthem () {

                read PTS1 PTS2

                kissattach -l $PTS1 ax2 44.137.31.73 || return=$rc_failed

                ifconfig ax2 44.137.31.73 netmask 255.255.255.224 up

                sleep 1

                sed -i "s,attach sdev3 kiss 3 1 19200 /dev/.*$,attach sdev3 kiss 3 1 19200 $PTS2," /usr/local/xnet/A$

        }

 

        tail -n 1 $tmpfile | attachthem

        rm $tmpfile

        sleep 3

        else

                echo  "Error ax2 not found in the file axports"

               return="Failed"

        fi

        echo "$1 $return"

 

Now socat

 

        # create axudp device

        socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

        sleep 2

        echo "Starting ax4 "

        if grep ax4 /etc/ax25/axports ; then

                kissattach -m 256 /dev/ptyq2 ax4 44.137.31.73 || return=$rc_failed

                ax25udp -c /etc/ax25/ax25ipd-10093.conf > /tmp/axudp

                ifconfig ax4 44.137.31.73 netmask 255.255.255.224 up

        sleep 1

        else

                echo  "Error ax4 not found in the file axports"

                return="Failed"

        fi

        echo "$1 $return"

 

So little simpler…

 

socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

 

This create two virtual comports.

 

Hope its helps.

 

73 Niels PD9Q

 

 

Van: RaspberryPi-4-HamRadio@groups.io [mailto:RaspberryPi-4-HamRadio@groups.io] Namens Max via Groups.Io
Verzonden: donderdag 12 april 2018 15:22
Aan: Raspberry 4-Ham RADIO
Onderwerp: [RaspberryPi-4-HamRadio] Virtual Serial Port

 

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

 

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

 

Is all this clear as mud? 

 

Max KG4PID

 

 




--


John D. Hays
Edmonds, WA
K7VE

   




--


John D. Hays
Edmonds, WA
K7VE

   


Re: Virtual Serial Port

Max
 

Somewhere I remember reading that there was a problem with some binary data. That's why I noted that it must pass kiss packets unaltered. Will socat do that for sure?

Max

On Thursday, April 12, 2018, 6:28:01 PM CDT, John D Hays - K7VE <john@...> wrote:


The answers in

https://stackoverflow.com/questions/52187/virtual-serial-port-for-linux

explain setting up a socat to create a virutal serial pair of ptys for your applications to use.

On Thu, Apr 12, 2018 at 4:02 PM, Max via Groups.Io <kg4pid@...> wrote:
That's a lot to take in. It'll take me a while to study it all. I may need more help.

Thanks, Max KG4PID


On Thursday, April 12, 2018, 12:18:59 PM CDT, Niels Ruiter <pd9q@...> wrote:

Hi Max,

You can use kissnetd of socat…

 

       # link local pi8lap (xnet)

        echo "Starting ax2 "

        if grep ax2 /etc/ax25/axports ; then

        tmpfile="/tmp/$$.startax2.pts"

        kissnetd -p 2 > "$tmpfile" &

        sleep 2

        attachthem () {

                read PTS1 PTS2

                kissattach -l $PTS1 ax2 44.137.31.73 || return=$rc_failed

                ifconfig ax2 44.137.31.73 netmask 255.255.255.224 up

                sleep 1

                sed -i "s,attach sdev3 kiss 3 1 19200 /dev/.*$,attach sdev3 kiss 3 1 19200 $PTS2," /usr/local/xnet/A$

        }

 

        tail -n 1 $tmpfile | attachthem

        rm $tmpfile

        sleep 3

        else

                echo  "Error ax2 not found in the file axports"

               return="Failed"

        fi

        echo "$1 $return"

 

Now socat

 

        # create axudp device

        socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

        sleep 2

        echo "Starting ax4 "

        if grep ax4 /etc/ax25/axports ; then

                kissattach -m 256 /dev/ptyq2 ax4 44.137.31.73 || return=$rc_failed

                ax25udp -c /etc/ax25/ax25ipd-10093.conf > /tmp/axudp

                ifconfig ax4 44.137.31.73 netmask 255.255.255.224 up

        sleep 1

        else

                echo  "Error ax4 not found in the file axports"

                return="Failed"

        fi

        echo "$1 $return"

 

So little simpler…

 

socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

 

This create two virtual comports.

 

Hope its helps.

 

73 Niels PD9Q

 

 

Van: RaspberryPi-4-HamRadio@groups. io [mailto:RaspberryPi-4- HamRadio@groups.io] Namens Max via Groups.Io
Verzonden: donderdag 12 april 2018 15:22
Aan: Raspberry 4-Ham RADIO
Onderwerp: [RaspberryPi-4-HamRadio] Virtual Serial Port

 

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

 

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

 

Is all this clear as mud? 

 

Max KG4PID

 

 




--


John D. Hays
Edmonds, WA
K7VE

   


Re: Virtual Serial Port

 

The answers in

https://stackoverflow.com/questions/52187/virtual-serial-port-for-linux

explain setting up a socat to create a virutal serial pair of ptys for your applications to use.

On Thu, Apr 12, 2018 at 4:02 PM, Max via Groups.Io <kg4pid@...> wrote:
That's a lot to take in. It'll take me a while to study it all. I may need more help.

Thanks, Max KG4PID


On Thursday, April 12, 2018, 12:18:59 PM CDT, Niels Ruiter <pd9q@...> wrote:

Hi Max,

You can use kissnetd of socat…

 

       # link local pi8lap (xnet)

        echo "Starting ax2 "

        if grep ax2 /etc/ax25/axports ; then

        tmpfile="/tmp/$$.startax2.pts"

        kissnetd -p 2 > "$tmpfile" &

        sleep 2

        attachthem () {

                read PTS1 PTS2

                kissattach -l $PTS1 ax2 44.137.31.73 || return=$rc_failed

                ifconfig ax2 44.137.31.73 netmask 255.255.255.224 up

                sleep 1

                sed -i "s,attach sdev3 kiss 3 1 19200 /dev/.*$,attach sdev3 kiss 3 1 19200 $PTS2," /usr/local/xnet/A$

        }

 

        tail -n 1 $tmpfile | attachthem

        rm $tmpfile

        sleep 3

        else

                echo  "Error ax2 not found in the file axports"

               return="Failed"

        fi

        echo "$1 $return"

 

Now socat

 

        # create axudp device

        socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

        sleep 2

        echo "Starting ax4 "

        if grep ax4 /etc/ax25/axports ; then

                kissattach -m 256 /dev/ptyq2 ax4 44.137.31.73 || return=$rc_failed

                ax25udp -c /etc/ax25/ax25ipd-10093.conf > /tmp/axudp

                ifconfig ax4 44.137.31.73 netmask 255.255.255.224 up

        sleep 1

        else

                echo  "Error ax4 not found in the file axports"

                return="Failed"

        fi

        echo "$1 $return"

 

So little simpler…

 

socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

 

This create two virtual comports.

 

Hope its helps.

 

73 Niels PD9Q

 

 

Van: RaspberryPi-4-HamRadio@groups.io [mailto:RaspberryPi-4-HamRadio@groups.io] Namens Max via Groups.Io
Verzonden: donderdag 12 april 2018 15:22
Aan: Raspberry 4-Ham RADIO
Onderwerp: [RaspberryPi-4-HamRadio] Virtual Serial Port

 

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

 

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

 

Is all this clear as mud? 

 

Max KG4PID

 

 




--


John D. Hays
Edmonds, WA
K7VE

   


Re: Virtual Serial Port

Max
 

That's a lot to take in. It'll take me a while to study it all. I may need more help.

Thanks, Max KG4PID


On Thursday, April 12, 2018, 12:18:59 PM CDT, Niels Ruiter <pd9q@...> wrote:

Hi Max,

You can use kissnetd of socat…

 

       # link local pi8lap (xnet)

        echo "Starting ax2 "

        if grep ax2 /etc/ax25/axports ; then

        tmpfile="/tmp/$$.startax2.pts"

        kissnetd -p 2 > "$tmpfile" &

        sleep 2

        attachthem () {

                read PTS1 PTS2

                kissattach -l $PTS1 ax2 44.137.31.73 || return=$rc_failed

                ifconfig ax2 44.137.31.73 netmask 255.255.255.224 up

                sleep 1

                sed -i "s,attach sdev3 kiss 3 1 19200 /dev/.*$,attach sdev3 kiss 3 1 19200 $PTS2," /usr/local/xnet/A$

        }

 

        tail -n 1 $tmpfile | attachthem

        rm $tmpfile

        sleep 3

        else

                echo  "Error ax2 not found in the file axports"

               return="Failed"

        fi

        echo "$1 $return"

 

Now socat

 

        # create axudp device

        socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

        sleep 2

        echo "Starting ax4 "

        if grep ax4 /etc/ax25/axports ; then

                kissattach -m 256 /dev/ptyq2 ax4 44.137.31.73 || return=$rc_failed

                ax25udp -c /etc/ax25/ax25ipd-10093.conf > /tmp/axudp

                ifconfig ax4 44.137.31.73 netmask 255.255.255.224 up

        sleep 1

        else

                echo  "Error ax4 not found in the file axports"

                return="Failed"

        fi

        echo "$1 $return"

 

So little simpler…

 

socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

 

This create two virtual comports.

 

Hope its helps.

 

73 Niels PD9Q

 

 

Van: RaspberryPi-4-HamRadio@groups.io [mailto:RaspberryPi-4-HamRadio@groups.io] Namens Max via Groups.Io
Verzonden: donderdag 12 april 2018 15:22
Aan: Raspberry 4-Ham RADIO
Onderwerp: [RaspberryPi-4-HamRadio] Virtual Serial Port

 

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

 

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

 

Is all this clear as mud? 

 

Max KG4PID

 

 


Re: Virtual Serial Port

Siegfried Jackstien
 

i am sure that something like a virtual serial port emulator does exist

i know (cause i use it every day) a windows app for that ... sure also a similar linux app exists

greetz
sigi


Am 12.04.2018 um 13:21 schrieb Max via Groups.Io:

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

Is all this clear as mud? 

Max KG4PID




Re: Virtual Serial Port

Niels Ruiter
 

Hi Max,

 

You can use kissnetd of socat…

 

       # link local pi8lap (xnet)

        echo "Starting ax2 "

        if grep ax2 /etc/ax25/axports ; then

        tmpfile="/tmp/$$.startax2.pts"

        kissnetd -p 2 > "$tmpfile" &

        sleep 2

        attachthem () {

                read PTS1 PTS2

                kissattach -l $PTS1 ax2 44.137.31.73 || return=$rc_failed

                ifconfig ax2 44.137.31.73 netmask 255.255.255.224 up

                sleep 1

                sed -i "s,attach sdev3 kiss 3 1 19200 /dev/.*$,attach sdev3 kiss 3 1 19200 $PTS2," /usr/local/xnet/A$

        }

 

        tail -n 1 $tmpfile | attachthem

        rm $tmpfile

        sleep 3

        else

                echo  "Error ax2 not found in the file axports"

               return="Failed"

        fi

        echo "$1 $return"

 

Now socat

 

        # create axudp device

        socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

        sleep 2

        echo "Starting ax4 "

        if grep ax4 /etc/ax25/axports ; then

                kissattach -m 256 /dev/ptyq2 ax4 44.137.31.73 || return=$rc_failed

                ax25udp -c /etc/ax25/ax25ipd-10093.conf > /tmp/axudp

                ifconfig ax4 44.137.31.73 netmask 255.255.255.224 up

        sleep 1

        else

                echo  "Error ax4 not found in the file axports"

                return="Failed"

        fi

        echo "$1 $return"

 

So little simpler…

 

socat -d -d -ly PTY,link=/dev/ttyq2 PTY,link=/dev/ptyq2 &

 

This create two virtual comports.

 

Hope its helps.

 

73 Niels PD9Q

 

 

Van: RaspberryPi-4-HamRadio@groups.io [mailto:RaspberryPi-4-HamRadio@groups.io] Namens Max via Groups.Io
Verzonden: donderdag 12 april 2018 15:22
Aan: Raspberry 4-Ham RADIO
Onderwerp: [RaspberryPi-4-HamRadio] Virtual Serial Port

 

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

 

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

 

Is all this clear as mud? 

 

Max KG4PID

 

 


Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

Nick Norman
 

On 12/04/18 14:12, Jerome Kutche wrote:
Hello.. Where can I get this??? Thanks… 73 jerry



From: RaspberryPi-4-HamRadio@groups.io <RaspberryPi-4-HamRadio@groups.io> On Behalf Of w4oa@arrl.net
Sent: Thursday, April 12, 2018 9:00 AM
To: RaspberryPi-4-HamRadio@groups.io
Subject: Re: [RaspberryPi-4-HamRadio] GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi



The 'ultimate' GPS monitoring program, which also runs on a RPi, here is a screenshot running on a RPi Zero, monitoring a cheap U-Blox



But here needed an extra -lrt in the make file

Nick
--
A marriage is always made up of two people who are prepared to swear
that only the other one snores.
(The Fifth Elephant)
17:15:01 up 14 days, 3:43, 15 users, load average: 0.91, 0.42, 0.43


Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

Jerome Kutche
 

Thanks.. I will check it out.. 73 Jerry

 

From: RaspberryPi-4-HamRadio@groups.io <RaspberryPi-4-HamRadio@groups.io> On Behalf Of w4oa@...
Sent: Thursday, April 12, 2018 9:20 AM
To: RaspberryPi-4-HamRadio@groups.io
Subject: Re: [RaspberryPi-4-HamRadio] GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

 

Lady Heather is available at http://www.ke5fx.com/


Virtual Serial Port

Max
 

I need a virtual serial port, let me explain. For some time now I have been sending weather data to aprx by using a Microchip Pic connected to a TTL to USB converter. The Pic receives the weather data from my Davis weather station and adds a kiss header so that it looks like it was received via a tnc. That data was then fed into aprx. In aprx I just added a fake tnc port and it didn't know the difference.

I'm slowing building my own weather station with sensors and python on a Pi. For now it is on a separate Pi and I'm using two TTL to USB converters connected back-to-back. First I would like to replace the serial link with a network connection if possible. If / when I get the software finished I would like to move it to the same Pi that aprx is running on and will need two virtual serial ports also connected back to back. Socat or Netcat may work but I don't know how to set this up. It must be able to pass a kiss packet unaltered.

Is all this clear as mud? 

Max KG4PID



Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

w4oa@arrl.net <w4oa@...>
 

Lady Heather is available at http://www.ke5fx.com/


Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

Jerome Kutche
 

Hello.. Where can I get this??? Thanks… 73 jerry

 

From: RaspberryPi-4-HamRadio@groups.io <RaspberryPi-4-HamRadio@groups.io> On Behalf Of w4oa@...
Sent: Thursday, April 12, 2018 9:00 AM
To: RaspberryPi-4-HamRadio@groups.io
Subject: Re: [RaspberryPi-4-HamRadio] GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

 

The 'ultimate' GPS monitoring program, which also runs on a RPi, here is a screenshot running on a RPi Zero, monitoring a cheap U-Blox


Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

w4oa@arrl.net <w4oa@...>
 

The 'ultimate' GPS monitoring program, which also runs on a RPi, here is a screenshot running on a RPi Zero, monitoring a cheap U-Blox


Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

Steve Spence
 

I was going to say a fictional dominatrix, but this is the correct
answer - http://www.ke5fx.com/heather/readme.htm


Steve Spence, KK4HFJ
Http://arduinotronics.blogspot.com


On Thu, Apr 12, 2018 at 8:27 AM, Max via Groups.Io
<kg4pid=yahoo.com@groups.io> wrote:
Who is Lady Heather?

Max KG4PID


On Wednesday, April 11, 2018, 9:58:56 PM CDT, w4oa@arrl.net <w4oa@arrl.net>
wrote:

Does anyone know where Lady Heather expects the 1 pps while running on a
Raspberry Pi?

Tnx for any help.
Mitch W4OA
ps I got LH running on my RPi Zero today!!!


Re: GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

Max
 

Who is Lady Heather?

Max KG4PID


On Wednesday, April 11, 2018, 9:58:56 PM CDT, w4oa@... <w4oa@...> wrote:

Does anyone know where Lady Heather expects the 1 pps while running on a Raspberry Pi?

Tnx for any help.
Mitch W4OA
ps I got LH running on my RPi Zero today!!!
 


GPS Stratum 1 RPi clock - where does Lady Heather expect the 1 pps on a , RPi

w4oa@arrl.net <w4oa@...>
 

Does anyone know where Lady Heather expects the 1 pps while running on a Raspberry Pi?

Tnx for any help.
Mitch W4OA
ps I got LH running on my RPi Zero today!!!
 

6201 - 6220 of 14133