Other Parts Discussed in Thread: Z-STACK, , CC2538, CC2652R
I added INTER_PAN, BDB_TL_INITIATOR,BDB_TL_TARGET in my projects, Router as target, EndDevice as initiator, but doesn't work.
I found the touchlink codes are different to Z-Stack 3.0 Sample Application User's Guide.
It uses NLME_DirectJoinRequestWithAddr() instead of targetSendNwkStartRsp().
Touchlink target codes in bdb_touchlink_target.c:
if ( events & TOUCHLINK_START_NWK_EVT ) { bdbTLNwkStartReq_t *pReq = &(rxReq.nwkStartReq); bdbCommissioningProcedureState.bdbCommissioningState = BDB_COMMISSIONING_STATE_TL; // Start operating on the new network touchLinkStartRtr( &(pReq->nwkParams), pReq->transID ); // Perform a ZigBee Direct Join in order to allow direct communication // via the ZigBee network between the Initiator and the Target (i.e., // create an entry in the neighbor table with the IEEE address and the // network address of the Initiator). NLME_DirectJoinRequestWithAddr( pReq->initiatorIeeeAddr, pReq->initiatorNwkAddr, CAPINFO_DEVICETYPE_RFD ); // return unprocessed events return ( events ^ TOUCHLINK_START_NWK_EVT ); }
Joining with Touchlink commissioning (FN ZED Initiator and FN ZR Target):