ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: send data to PC through the ethernet port

To:
Subject: Re: [ts-7000] Re: send data to PC through the ethernet port
From: "Don W. Carr" <>
Date: Thu, 16 Nov 2006 15:38:27 -0600
Just use the nanosleep() system call to sleep until the next interval. You can fix it to sleep slightly less time to make up for the time you spend reading the IO and printing it to standard output, thus the average time will be almost exactly the 5 seconds you want, but each one could vary by tens of milliseconds. I can give you some code that figures out how long you spent processing, displaying, etc, and then calculate the next sleep time if you want.

Don.

On 11/16/06, soniathakur3 <> wrote:

--- In ts-7000%40yahoogroups.com, "Don W. Carr" <> wrote:
>
> Of course the simplest of all is to just open a terminal on the
TS7xxx with
> ssh or telnet, and then run your program that reads the values every 5
> seconds and prints them to standart out.

For this i will need to configure the timer. How can i do that for
this board?

sonia

>
> On 11/16/06, Yan Seiner <> wrote:
> >
> > --- In ts-7000%40yahoogroups.com <ts-7000%40yahoogro ups.com>,
> > "soniathakur3" <soniathakur3@> wrote:
> > >
> > >
> > > Hi,
> > >
> > > I have TS7200 board, I need to send data to PC from the board after
> > > every 5 secs. This data is the data i collect from the external
> > > ADC.Now, i have ADC working ,but dont have any idea of how to
display
> > > it on PC through ethernet port after every 5 secs.
> > >
> > > What all do i need to do?
> > >
> >
> > On the TS7200 side, build or install netcat. Then use nc to send the
> > data to the application on the PC side.
> >
> > If your PC is running linux, then either run netcat on the port full
> > time, or simply run a script like "cat - >> /tmp/data.log" via inetd
> > on the appropriate port.
> >
> > QED..... :-)
> >
> > --Yan
> >
> >
> >
>
>
>
> --
> Dr. Don W. Carr
> J. G. Montenegro 2258
> Guadalajara, Mexico
> +52-333-630-0704
> +52-333-836-4500 ext 2930
>




--
Dr. Don W. Carr
J. G. Montenegro 2258
Guadalajara, Mexico
+52-333-630-0704
+52-333-836-4500 ext 2930 __._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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