Shop OBEX P1 Docs P2 Docs Learn Events
1-Wire, OneWire, Microlan Search Routine — Parallax Forums

1-Wire, OneWire, Microlan Search Routine

John CoutureJohn Couture Posts: 370
edited 2008-05-16 16:55 in General Discussion
Does anyone have a nice, easy, short routine for the 1-wire modules to search for the serial numbers using the SX?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture

San Diego Miramar College

Comments

  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-05-14 21:42
    Having done it on a BS2p, I wouldn't suggest it unless you really need that feature; it takes a lot of code and the documentation provided by Dallas isn't that great -- at least it wasn't at the time I did my implementation.
  • John CoutureJohn Couture Posts: 370
    edited 2008-05-14 23:17
    Thanks Jon,

    Well since I posted that message I have·been plugging away at it·and I got it to work.· It still has·difficulty with more than two units from the same family but at least if you need to derive the serial numbers of an AAG Weather Instrument, it works.· Now on to reading the instrument!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John J. Couture

    San Diego Miramar College
  • pwillardpwillard Posts: 321
    edited 2008-05-15 19:29
    Thanks for this... I just happen to be working on a microlan project... I have the predecessor to the AAG weather instrument made by Dallas.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    There's nothing like a new idea and a warm soldering iron.
  • Fe2o3FishFe2o3Fish Posts: 170
    edited 2008-05-16 16:55
    While the code is for a BS2p, maybe the way I tweaked JonnyMac's code makes
    the 1-wire search algorithm a little easier to understand and might be helpful.

    See http://forums.parallax.com/forums/default.aspx?f=5&m=89924

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rusty-
    --
    Rusty Haddock <=> AE5AE
    **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.