I'm developing a application over the zll stack. I don't want use the touch-link so I'm trying to use the Classical Commissioning Start. It works great on SampleBridge and SampleLight but the Sample remote can't connect on the network.
I have followed this guide: http://processors.wiki.ti.com/index.php/ZStack-Lighting-1.0.1_FAQ
I have added this on the SampleBridge with 60 sec and a reload timer that refresh it every minute.
static void enablePermitJoin( byte duration ) { zAddrType_t dstAddr; //only needs to be done once, can be moved to init code ZDSecMgrPermitJoining( 0xFF ); //permit join on the device NLME_PermitJoiningRequest( duration ); //Permit join to network dstAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR_DEVZCZR; dstAddr.addrMode = Addr16Bit; ZDP_MgmtPermitJoinReq( &dstAddr, duration, 1, 0 ); }
And on the Init code of the SampleRemote:
if ( zll_IsFactoryNew )zllInitiator_ClassicalCommissioningStart();
initiatorJoinNwk();
but it doesn't work, what am I missing ?