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.

how to use NLME_DirectJoinRequest ?

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 as  MODE_RESUME  in  the ZDApp.c file:

         step2 : i change  devStartMode = MODE_RESUME;  in  the ZDAppDetermineDeviceType function

        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!