Discovering devices on a bus


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default Re: Discovering devices on a bus

    This is from memory so it may be slightly off but here's how ADI does it for their RS485 devices. Activated devices have addresses from 0-252 (I think) with no gaps. All start with an address of 253 (FE) and as they are added to the network, the master sends a command to FE assigning it the next available address. A variation might work for your purposes.

    Looks like they have revised it since I worked with it about 12 years ago. See Section 5.2 (p77) in their manual.
    Last edited by dhouston; - 14th March 2012 at 14:38.

  2. #2
    Join Date
    Nov 2008
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: Discovering devices on a bus

    I've not had a chance to do much more on this but my though's were

    All slaves have fixed unique addresses, they also have a broadcast address to listen in to

    The master broadcasts a start new discovery command - slaves wait a random time and respond to master with their address

    After a period of time the master then attempts to talk to each discovered slave

    If the master can talk to the slave the slave address is marked as valid and the slave is given a mute command

    The master goes through the remaining discovered slaves as previous step

    The master then issues a retry discovery command - only slaves not muted would respond, again at random time delays

    The Process then repeats until the master can issue a retry discovery command and get no responce from any slaves - assume all slaves discovered.

    Any comments welcolme

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts