1-wire
B Brandt
wnbrandt at echo-sol.com
Thu May 26 14:17:25 PDT 2005
Some time ago I bought a HA7E from RDS which is a ASCII to 1-wire
translator. Well I finally got
a chance to play with it and in a matter of minutes was able to start
reading data from a few temp
sensors. Thing is I have it hooked up to my old G3 and am using Zterm
to query the bus. I am hoping
that an apple script savy list member can help me create a script to
use within Xtension. The sequence
would be
send "M9E0008001B5A8C10" with 9E0008001B5A8C10 being the address of
the sensor
returns "9E0008001B5A8C10" means sensor was found
send "W0144" which initiates the internal A to D temp conversion
returns "44" conversion successful
send ""M9E0008001B5A8C10" again
returns "9E0008001B5A8C10" means sensor was found again
send "W0ABEFFFFFFFFFFFFFFFF" this queries the sensor for the conversion
result
returns "BE2C004B46FFFF0F1000" the parts needed are char's 3-6 which
are bytes 0 and 1 (LSB and MSB)
using the above as an example we would take 00 2C and convert it from
hex to decimal which is 44. the sensor
measures in .5d increments so this is 22d C which would then need to be
converted to F.
With this bit of script the whole 1-wire universe is open to us.
Thanks
Bill
More information about the XTensionlist
mailing list