I am trying JN-AN-1184-ZBPro-Application-Template on JN5168-001-M00 module but the sleeping end device node seems to have a problem in joining.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am trying JN-AN-1184-ZBPro-Application-Template on JN5168-001-M00 module but the sleeping end device node seems to have a problem in joining.

715 Views
sdgsdgdssgg
Contributor I

The debug messages coming from Coordinator node!

Here's a screenshot of the debug messages coming from SED node 

pastedImage_1.png

Tags (1)
1 Reply

509 Views
dmsherazi
Contributor IV

Follow this question ZigBee SED: Unexpected event in E_NETWORK_JOIN -15 while joining a network 

To summarize , the AN-1184 is not setting up the HA or ZLL key. This has to be done by the developer although I suggest they could at least have done it for the pre-built binaries and explicitly mentioned how to add it.

If you are using HA profile add the SED following lines of code to app_start_SED.c   or otherwise to app_start.c  in PRIVATE void vInitialiseApp(void) function just before  /* Initialize application */ .

ZPS_vAplSecSetInitialSecurityState(ZPS_ZDO_PRECONFIGURED_LINK_KEY, 
                                   (uint8 *)&s_au8LnkKeyArray,
                                   0x00,
                                   ZPS_APS_GLOBAL_LINK_KEY);

Please note that for HA  s_au8LnkKeyArray should be defined as follows

PUBLIC uint8 s_au8LnkKeyArray[16] = {0x5a, 0x69, 0x67, 0x42, 0x65, 0x65, 0x41, 0x6c,
                                     0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x30, 0x39};

compile your app again and it should join the network properly