| To: | |
|---|---|
| Subject: | [ts-7000] How to read temperture on TS-7400? |
| From: | "kenlu6" <> |
| Date: | Thu, 07 Jun 2012 20:36:22 -0000 |
Hi all, greetings.
I followed the steps, compiled peekpook. Used following script. Got the result
is 0.0. I am not sure the address map is correct for TS-7400, which has MAX
options.
The readtemp.sh code:
#!/bin/sh
temp_read(){
local RAW
local TC
(
peekpoke 32 0x808A0004 0x10
peekpoke 32 0x808A0000 0x0F
peekpoke 32 0x808A0010 0xFE
peekpoke 32 0x808A0004 0x00
peekpoke 32 0x808A0004 0x10
peekpoke 32 0x80840034 0x04
peekpoke 32 0x80840030 0x00
peekpoke 32 0x808A0008 0x8000
peekpoke 32 0x80840034 0x00
) >/dev/null
RAW=`peekpoke 32 0x808A0008`
let TC="$RAW >> 7"
echo -n $TC.
let TC="$RAW & 127"
let TC="$TC*10/128"
echo $TC
}
temp_read
------------------------------------
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> |
|---|---|---|
| ||
| Previous by Date: | Re: [ts-7000] problem with ts7xxx.subr utilities, Damian Miralles |
|---|---|
| Next by Date: | Re: [ts-7000] How to read temperture on TS-7400?, harry olar |
| Previous by Thread: | [ts-7000] Newer Busybox causes constant reboots, MrRealityCheck |
| Next by Thread: | Re: [ts-7000] How to read temperture on TS-7400?, harry olar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
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