Shop OBEX P1 Docs P2 Docs Learn Events
1-wire searchrom command — Parallax Forums

1-wire searchrom command

ArchiverArchiver Posts: 46,084
edited 2002-01-04 03:24 in General Discussion
I've been experimenting with some 1-wire devices and have tried to
get
the searchrom command to work. The Dallas data sheet mentions that
the
command is used to find all devices on the bus and determine their
rom
code. I cannot find any program code examples in the stamp
documentation.
Any help would be appreciated as my attempts to get this command to
work have been unsuccessful.

Marylou

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-01-02 15:54
    Marylou,

    Using the SEARCHROM command isn't what as simple as it seems. There are
    several good application notes from Dallas Semiconductor at www.iButton.com -
    look under data sheets and application notes. The documentation that contains
    everything you need to know about 1-wire devices and iButtons (which are
    1-wire devices in a small can) is in the "Book of iButton Standards", which
    you can download from the iButton web site.

    Jon Williams, an application engineer for Parallax wrote a complete search
    routine for the BS2P for an article in the April '01 edition of Nuts & Volts
    magazine. The issue is still available for $5 from www.nutsvolts.com

    There is also some examples for reading a single 1-wire device connected to
    the 1-wire bus available on the Parallax web site. With just 1 device you
    don't have to search, you can just issue a READ ROM command.

    Tim
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-04 01:56
    Marylou,

    I forgot to mention that the source code for Jon's article in Nuts & volts
    for the 1-wire search routine is available on the nuts & volts web site at:
    http://www.nutsvolts.com/ftpindex.htm - look for April 2001 stamp0401code.zip

    tim


    In a message dated 1/1/02 7:13:53 PM, apstumpf@u... writes:

    << I've been experimenting with some 1-wire devices and have tried to
    get
    the searchrom command to work. The Dallas data sheet mentions that
    the
    command is used to find all devices on the bus and determine their
    rom
    code. I cannot find any program code examples in the stamp
    documentation.
    Any help would be appreciated as my attempts to get this command to
    work have been unsuccessful.

    Marylou >>
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-04 02:35
    Tim,
    Thanks for the help. You're right, the search program is rather
    complex. I'm using three 1822s and considered plugging in one
    at a time to find the rom codes.
    Marylou
    _________________________


    --- In basicstamps@y..., tbitson@a... wrote:
    > Marylou,
    >
    > I forgot to mention that the source code for Jon's article in Nuts &
    volts
    > for the 1-wire search routine is available on the nuts & volts web
    site at:
    > http://www.nutsvolts.com/ftpindex.htm - look for April 2001
    stamp0401code.zip
    >
    > tim
    >
    >
    > In a message dated 1/1/02 7:13:53 PM, apstumpf@u... writes:
    >
    > << I've been experimenting with some 1-wire devices and have tried
    to
    > get
    > the searchrom command to work. The Dallas data sheet mentions that
    > the
    > command is used to find all devices on the bus and determine their
    > rom
    > code. I cannot find any program code examples in the stamp
    > documentation.
    > Any help would be appreciated as my attempts to get this command to
    > work have been unsuccessful.
    >
    > Marylou >>
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-04 03:24
    In a message dated 1/3/02 8:37:18 PM Central Standard Time,
    apstumpf@u... writes:


    > Tim,
    > Thanks for the help. You're right, the search program is rather
    > complex. I'm using three 1822s and considered plugging in one
    > at a time to find the rom codes.
    >

    You should have seen it before I got it done! That code kept me up several
    very late nights sorting through less-than-helpful information for Dallas
    Semiconductor. I deliberately put the Search program in a separate slot so
    that it could be used easily without understanding the gory details.

    -- Jon Williams


    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.