Binding Process - How does it work?

Question: How does the binding process work? Can its initiation be customized?

 

Answer:

Working with the CYFISNP (Star Network Protocol User Module in PSoC Designer) and its available API, the bind process is as simple as initiating the CYFISNP_BindStart() function. This function places the protocol in bind mode and the implementation is different depending on the given device (hub or node). The start of bind mode can be customized based on the application and its possibilities are limited only by the designer's imagination or application's requirements. The start could be initiated by a simple key press or depending on the application, on a command received over a communication interface. 

The below describes the lower-level actions by the hub and node in bind mode, to see more details please refer to the CYFISNP user module datasheet available in PSoC Designer 5.0 Service Pack 2.

For a hub:

  •    Activate the shared bind network parameters
  •   Hop through the shared channel sequence and listen for bind request packet
  •   If a bind request packet is received, return a bind response that contains the hub's operating network parameters and return to data mode
  •   If no bind request is received, return to data mode


For a node:

  •   Activate the shared bind network parameters
  •   Hop through the shared channel sequence, transmit bind requests and listen for a bind response
  •   If a bind response is received then store the hub's operating network parameters and go to connect mode to establish the network connection
  •   If no bind response is received then go to idle mode (most node applications, this is sleep mode)