Shop OBEX P1 Docs P2 Docs Learn Events
One Wire Search — Parallax Forums

One Wire Search

Fe2o3FishFe2o3Fish Posts: 170
edited 2005-10-01 05:37 in BASIC Stamp
Howdy!

Recently I've been tinkering with my BS2p24 and a few One Wire sensors.
I pulled out Jon Williams code for finding all OW devices on a "net". This
program, owsearch.bsp, came from Jon's April, 2001 Nuts & Volts article.

In my tinkering, I call his search routine every so often to pick up any
new OW devices that have been added to the "net". To make a long story
short, I had problems doing this because the owsearch program was not
initializing one of its RAM variables. As I went through the code I found
some other changes I wanted to make... so I made them and learned a
bit about the one wire search algorithm in doing so. One feature you
should know about is that I allowed the calling program to tell the search
algorithm the maximum devices to find so that all your program's available
EEPROM doesn't get overwritten.

If anyone is interested in using One Wire devices with the BS2p family
os Stamps then please try out the attached program; my new version of
Jon W's code. I call it OWSEARCH2.BSP.

Please send me any bug reports and comments. Happy Stamping! smile.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
Sign In or Register to comment.