Other Parts Discussed in Thread: Z-STACK
Hi all
i am try to follow the swru124a Document note for Using the Direct Join Request Feature in Z-Stack ( NLME_DirectJoinRequest())。
step1:i change the devStartMode define in the ZDApp.c file:
#if ( ZG_BUILD_RTRONLY_TYPE ) || ( ZG_BUILD_ENDDEVICE_TYPE )
#ifdef DIRECTJOIN
devStartModes_t devStartMode = MODE_RESUME;
#else
devStartModes_t devStartMode = MODE_JOIN;
#endif
#else
devStartModes_t devStartMode = MODE_HARD;
#endif
step2 : change the ZDAppDetermineDeviceType function
if ( nwk_ExtPANIDValid( AIB_apsUseExtendedPANID ) == false )
{
#ifdef DIRECTJOIN
devStartMode = MODE_RESUME;
#else
devStartMode = MODE_JOIN; // Assume joining
#endif
}
step 3: add the NLME_DirectJoinRequest() in coordinator side
void HandleKeys( uint8 keys )
{
if( keys & HAL_KEY_SW_0 )
{
unsigned char device_address[8] = {0x00, 0x12, 0x4B, 0x00, 0x07, 0x71, 0x79, 0x70};
ZStatus_t state;
HalLedBlink ( HAL_LED_1,10,50,200);
state = NLME_DirectJoinRequest( device_address, CAPINFO_DEVICETYPE_RFD );
}
}
step4:power on the coordinator, and then press the key , i saw the LED blink ,and return state value is ZSUCCESS
but i have not seen anything in the ubiqua windows~~~~~
Q1 : is that mean coordinator would not send out anything while execute the NLME_DirectJoinRequest()
Step 5:
when the end device power on, it send out a orphan notification then always send beacon request and could not join the network。
Q2 so what is wrong of my test ?
WHY End device could not join the network in this mode?
BR!
