This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: Source address issue in APS transport key command in z-stack home automation

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Hi friends.

when I use z-stack home automation the APS transport key command is as below

image

but when I used z-stack v3  the APS transport key command is as below

image

as you see the "Source Address" in APS payload is 00 in former one. how can I fix it to be like the later image?

  • Hi,

    Can you check what the value of zgApsTrustCenterAddr is?

    This is what is used for the source address field.

    Regards,
    Toby

  • The issue is that the examples from each stack use differin security modes.

    Between the two versions of Z-Stack, please compare the Preprocessor symbols of the projects and f8wConfig.cfg.

    In particular, the specific area of code which affects this behavior is in ZDSecMgr.c:

    void ZDSecMgrInit(uint8 state)
    {
      if ( ZG_CHECK_SECURITY_MODE == ZG_SECURITY_SE_STANDARD )
      {
        // initialize sub modules
        ZDSecMgrEntryInit(state);
    
        if ( ( ZG_BUILD_COORDINATOR_TYPE ) && ( ZG_DEVICE_COORDINATOR_TYPE ) )
        {
          APSME_SetRequest( apsTrustCenterAddress, 0, NLME_GetExtAddr() );
        }