1.5 Device Discovery - turag-ev/TURAG-Feldbus GitHub Wiki

Device Discovery

Depending on application requirements, different device discovery schemes are possible. The following table describes the main possibilities, though combinations are possible.

Attribute Bus addresses only binary UUID search sequential UUID discovery
Description All bus nodes are pre-programmed with a valid bus address. The nodes are discovered using their UUID in a binary search and new bus addresses are assigned to all detected nodes. Each node has the ability to disconnect it's bus neighbours from the bus. Nodes are assigned a new bus address sequentially.
Device identification Bus address UUID physical position in bus
Device discovery Send ping packets to all bus addresses which are expected to be present.
  • Use the RequestBusAssertion broadcast successively with increasing search mask to identifiy available devices utilizing binary search. This requires 32 requests per device.
  • delete the bus address of all nodes using the ResetAllBusAddresses broadcast
  • assign appropriate bus addresses using the SetBusAddress broadcast
  • delete the bus address of all nodes using the ResetAllBusAddresses broadcast
  • let all nodes disable their neigbors using a broadcast
  • query the UUID of the only remaining device and assign it a new bus address
  • let the discovered node enable it's neighbor
  • repeat until no new devices could be found
Bus node order - - Automatically detectable.
⚠️ **GitHub.com Fallback** ⚠️