ts-7000
[Top] [All Lists]

[ts-7000] Re: rs232 bash acquisition

To:
Subject: [ts-7000] Re: rs232 bash acquisition
From: "e.pifferi" <>
Date: Fri, 28 Mar 2008 16:51:07 -0000
if i try to send data to 115200 baud rate from hyperterm your code work 
but if i connect directly on com1 a magnetometer with stream data
continuosly at 9600 baud  don't save nothing .
why ? 
ive set so the ttyS0:
stty -F /dev/ttyS0 9600
but don't work can u help me ?

another question AM0 -- AM1 -- AM2 are always serial port ?
--- In  "Andy Mercier" <> wrote:
>
> If you don't need to use "variable" maybe consider skipping the data
> going through bash and allowing *nix power to do the work for you:
> 
> cat /dev/ttyS0 >>file.txt
> 
> It meets your criteria of working from within the bash shell.
> 
> If this doesn't work for you and you still need help please post the
> details of how you're configuring the serial port (with stty), which
> TS product you're using, etc.
> 
> ----
> Andy
> 
> --- In  "e.pifferi" <e.pifferi@> wrote:
> >
> > hy i need to acquire data from an item on ttyS0 and  save this data on
> > a file.txt it's possible to do  from bash shell ?
> > 
> > ive tryed so : 
> > 
> > read variable < /dev/ttyS0 echo $variable >> file.txt
> > 
> > or so 
> > 
> > export variable=`cat /dev/ttyS0 echo $variable >> file.txt
> > 
> > but don't work can anyone help me
> >
>



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

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