This is adcd, a daemon that provides access to the TS7250 Cirrus 93xx
and MAX197 ADCs via UNIX sockets to multiple clients using a simple
protocol.
http://narnia.dnsalias.org/ts7250/files/
There is available part of a client to acdc that logs output to
sqlite3. In a week or so, I hope to post more.
This adcd protocol:
* COMMANDS
* get x,y,z
* where
* x = 0 means MAX197 ADC
* x = 1 means Cirrus EP93xx ADC
* y is the channel 0...4 or 0...7
* z is the range (only for Cirrus, put 0 for MAX197)
*
* Range 0 is unipolar 0-5v LSB = 1.2mV
* 1 is bipolar -5v-0-5v 2.4mV
* 2 is unipolar 0-10v 2.4mV
* 3 is bipolar -10v-0-10v 4.9mV
Thanks to Jim Jackson and Eddie Dawydiuk for their low-level examples.
This code has not been tested much, so caveat emperor.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|