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.

Z-Stack Lighting - Join existing PAN directly

Hello,


I have a bridge (router) that is based on SampleBridge. I would like to know if it's possible to programmatically set certain parameters (I think it should be PANID, maybe extended PANID, etc) and then make the bridge join an already existing ZLL network.

If this is possible, what parameters and API should I use?

Thanks,


Sjef.

  • Unfortunately this is not supported in the current API. However this can be added in zll_BeaconIndCB in zll_target.c, you would need to add a futher check to:

        // check if this device is a better choice to join...
        // ...dont bother checking assocPermit flag is doing a rejoin
        if ( ( pBeacon->LQI > gMIN_TREE_LINK_COST ) &&
            (  pBeacon->permitJoining == TRUE   ) )
        {
          uint8 selected = FALSE;
          uint8 capacity = FALSE;
    
          if ( _NIB.nwkAddrAlloc == NWK_ADDRESSING_STOCHASTIC )
          {
            if ( ((pBeacon->LQI   > pParam->chosenRouterLinkQuality) &&
                  (pBeacon->depth < MAX_NODE_DEPTH)) ||
                ((pBeacon->LQI   == pParam->chosenRouterLinkQuality) &&
                 (pBeacon->depth < pParam->chosenRouterDepth)) )
            {
              selected = TRUE;
            }
          }
          else
          {
            if ( pBeacon->depth < pParam->chosenRouterDepth )
            {
              selected = TRUE;
            }
          }

    Something like:

    osal_ExtAddrEqual( pParam->extendedPANID, myPANID );

    Regards, TC.