Joining Process for New Device#
If you are using installation codes to create unique keys, the application setup process discussed in Application Setup (Run Time) Prior to Joining a New Device to the HAN should have been performed.
Join the new HAN device to the ESI's HAN (using the Button Form/Join component or "network join ..." CLI command or
emberAfStartSearchForJoinableNetworkAPI function, for example).The ESI (as Trust Center) will trigger its
emberAfTrustCenterJoinCallback()to indicate the outcome of the initial joining process. If successful, the joining device should begin CBKE.If both the ESI and HAN devices support CBKE and ECC and have valid certificates issued by the same authority, CBKE should succeed, and the HAN device should move on to registration (asking the ESI to bind to it on specific clusters). When the SE registration process completes, the HAN device will trigger its
emberAfRegistrationCallback()to notify the application.After the SE registration completes successfully, the HAN device can now send/receive messages to/from the ESI using its CBKE-authorized link key.
Note that steps 2 through 4 are automatically handled by the Smart Energry Registration component.