[Xastir] pipe as TNC device?

Alex Carver kf4lvz at yahoo.com
Tue Mar 24 23:23:51 EDT 2009


Best thing to do would be to use the microcontroller to send the data out ethernet, one TNC per TCP port.  Then you can create one instance of socat per TCP port which then creates one device per TNC on the machine.

So say three TNCs on your uC.  Have port 5001, 5002, and 5003 connected to TNC 1 through TNC 3 respectively.

Then on the Xastir machine you only have to do:


socat PTY,link=/home/user/ttyS11,raw,echo=0 TCP4:microcontroller:5001 &
chmod a+rwx /home/user/ttyS11

socat PTY,link=/home/user/ttyS12,raw,echo=0 TCP4:microcontroller:5002 &
chmod a+rwx /home/user/ttyS12

socat PTY,link=/home/user/ttyS13,raw,echo=0 TCP4:microcontroller:5003 &
chmod a+rwx /home/user/ttyS13


And then start Xastir with a TNC pointed to each of those ttyS1x


--- On Tue, 3/24/09, Jason KG4WSV <kg4wsv at gmail.com> wrote:

> From: Jason KG4WSV <kg4wsv at gmail.com>
> Subject: Re: [Xastir] pipe as TNC device?
> To: "Xastir - APRS client software discussion" <xastir at lists.xastir.org>
> Date: Tuesday, March 24, 2009, 11:11 PM
> On Tue, Mar 24, 2009 at 9:59 PM, Alex Carver
> <kf4lvz at yahoo.com> wrote:
> > How are you going to mux the streams in the first
> place?
> 
> A microcontroller will mux and output the stream over
> rs232,
> bluetooth, or ethernet.
> 
> -Jason
> kg4wsv
> _______________________________________________
> Xastir mailing list
> Xastir at lists.xastir.org
> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


      



More information about the Xastir mailing list