PreviousNext
Coordinator-AutoNetworkV2-Embedded
Help > Custom DPA Handler > Examples > Coordinator-AutoNetworkV2-Embedded

This is actually the most complex example published to date. The Custom DPA Handler automatically builds the IQRF network consisting of a [C] device only and optional Nodes. Building a network means bonding of new Nodes at their final physical location and then performing network discovery. As all the required DPA commands and FRCs are embedded, no special Custom DPA Handler is needed at Nodes thus all Custom DPA Handler Flash memory is available to the user.

 

Autonetwork process consists of repeated so‑called waves. In each wave, the process tries to prebond as many new Nodes as possible and finally performs discovery. As the new Nodes are to be added to the network from their final physical location a prebonding must be used (not a local one).

 

New Nodes are remotely prebonded using a special usage of Smart Connect command with the ReqAddr parameter equal 0xFE (IQMESH temporary address). Then FRC command Prebonded alive is executed to address all prebonded Nodes although they all have the same temporary address. After that, multiple calls of FRC command PrebondedMemoryReadPlus1 with embedded OS Read DPA Request read MIDs of all prebonded Nodes. Then the [C] authorizes the Nodes so they get a definitive network address assigned.

 

Finally, another FRC is used to check if newly bonded Nodes are responding. If this is not the case the bond is removed both at [C] as well as at [N] side for sure. At the very end, network discovery is performed.

 

There are extra features that can be found in the source code. For instance, a system connected to the [C] device can (dis)approve the authorization of new Nodes.

 

The following picture depicts the process in more detail.