ts-7000
[Top] [All Lists]

[ts-7000] Re: xuartctl utility

To:
Subject: [ts-7000] Re: xuartctl utility
From: "naturalwatt" <>
Date: Wed, 06 Jan 2010 14:51:29 -0000

--- In  "Jon L" <> wrote:
>
> > # Ensure serial device file name is consistent
> > #
> > eval `/usr/local/bin/xuartctl --port 0 --server --speed 38400 2>&1`
> > sleep 1
> > ln -sf $ttyname /dev/xuart0
> > fi
> 
> ????   I don't get how your version of xuartctl works.  I undertand your use 
> of $ttyname, that's fine, but how is it that xuartctl ALWAYS uses 
> /dev/xuart0???   That was a big problem for me at first on a TS-7500.  the 
> xuartctl would evaluate to /dev/pts/xxxx where the xxxx is a moving target.   
> 

That's precisely the point - the xuartctl program *doesn't* use /dev/xuart0.

The output from the xuartctl program is ttyname=/dev/pts/xxxx.
The eval means execute this, so a shell variable ttyname is set to 
/dev/pts/xxxx, then the ln links /dev/pts/xxxx (which is unknown but exists) to 
/dev/xuart0 (which doesn't exist yet).

The sleep 1 should be unnecessary as the xuartctl won't exit until it has 
output the string.  I think.

Martin



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

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