ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] send data to PC through the ethernet port
From: Jim Jackson <>
Date: Thu, 16 Nov 2006 21:59:12 +0000 (GMT)
On Thu, 16 Nov 2006, Kevin R. Battersby wrote:

> On Wednesday 15 November 2006 10:44, Jim Jackson wrote:
> > If you want a demo try doing a
> >
> >   telnet franjam.org.uk 10101
> >
> > from a linux machine with internet access - or use putty from
> > windoze machine.
> >
> > It will give 10 readings from 3 ports of an ADC, one reading every 5 secs.
> > It simply put an entry in inetd.conf to call my adc_logger program with
> > appropriate command line options.
> >
> > cheers
> > Jim
>
> Nice approach and one that would likely solve a prolbem I'm working on. Are
> you using the on-board ADC or the TS-9700? Is the code for this available?

I'm using the MAX197 option. The program running is adc_logger[1]
You can down load it, and other software from my ts7200 page.
AFAIK it should work on the ts7250 and ts7260 with max197 options too.
It's probably easily adaptable the internal ADCs too.

I've got a variant on this that spits out an HTTP header with a repeat
field. It's just a sh script that outputs......

HTTP/1.1 200 OK
Server: MickyMouse0.1
Date: Thu, 16 Nov 2006 21:36:21 GMT
Connection: close
Refresh: 5
Content-Type: text/plain; charset=ASCII


Then calls "date" and the adc_logger to do just one set of readings

In fact I'll switch the script on  framjam.org.uk port 10101 to the http
one. Try pointing a web browser at

  http://franjam.org.uk:10101

It should repeatedly get readings every 5 secs with date and time as a
heading.

Try repeating the telnet franjam.org.uk 10101   to see the output
generated. I've only tried this with mozilla and lynx - and lynx wasn't
terribly happy. It really is playing very loose with web standards :-)

------------------------------------------------------------------------
HomePage:    http://www.comp.leeds.ac.uk/jj
TS7200 Page: http://www.comp.leeds.ac.uk/jj/linux/arm-sbc.html


[1] scandium# adc_logger -h
adc_logger version 2.1

Usage: adc_logger [-[ntv]] [-c N] [-p T] [-r R] chan[,range] [chan[,range]...]

Read the ADC for the channels and ranges specified and output the results
converted to voltage.

 -n    do not convert to volts - output raw ADC values
 -t    timestamp each line output
 -v    verbose
 -z    zoomread, do N readings as fast as possible - with no usleep()
 -c N  do N successive measurements for specified channels
 -p T  with a period of T millisecs between each measurement
       default is 1000mS - period only accurate to 10mS
 -o file   output data to file, or append to file if already exists
 -r R  set default range for measurements - this default defaults to 3





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