ts-7000
[Top] [All Lists]

[ts-7000] getty and 'dialout' on the same serial port

To:
Subject: [ts-7000] getty and 'dialout' on the same serial port
From: Ken Irving <>
Date: Mon, 24 May 2010 09:22:16 -0800
I'm setting up a TS-7260 with the on-board 'tslinux' to function as
a base station for some radios in a telemetry network.  The primary
purpose is to connect to a radio via IP, but I would also like to run
a getty on one of the radios in addition to using it for 'dial-out'.

The provided busybox does not have nc (or other ip-to-serial tool that I
know of), so I'm using the remserial program to handle the IP-to-serial
link.  That is working very well, but I don't expect it to cooperate
with getty or vice versa.

I currently have remserial running from inittab and respawning, but both
getty and remserial cannot be running on the same port and be expected
to work. 

I'm thinking of perhaps using a shell script to detect either an incoming
IP connection or an incoming call from the radio, and then killing one
or the other process.  I've not yet looked at the remserial code, but
could perhaps work some logic into it to have it stop and run getty if
an incoming call on the radio is detected.

These thoughts are preliminary, though, and I have not yet looked into
all the details, e.g., what control lines might be used to detect an
incoming connection on the radio.

The OS and software versions are:

    $ cat /etc/issue
    Technologic Systems TS-LINUX/arm 7.0

    $ uname -a
    Linux oolah2 2.4.26-ts11 #22 Tue Jun 6 12:23:09 MST 2006 armv4l unknown

    $ ./remserial: invalid option -- h
    Remserial version 1.3.  Usage: ...

    $ getty -h
    BusyBox v1.00-rc2 (2004.08.05-21:44+0000) multi-call binary

I'm just wondering if anyone might have suggestions for making this work.

I've done this painlessly on debian systems in the past, i.e., it just 
worked out of the box, perhaps due to the use of mgetty, so never really
got into the details of what was actually going on.  I think that may have
been thanks to mgetty knowing when to step aside, and/or perhaps having 
both processes honor the same locks.

Thanks!

Ken

-- 




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU