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.

Como comunicarme con un dispositivo de la red con ZB_FIND_DEVICE_REQUEST en el Genericapp con el kit del CC2530 SmartRF05

Other Parts Discussed in Thread: Z-STACK

Por favor si alguien me puede ayudar a saber como puedo comunicarme con un dispositivo de la red o como puedo saber su  dirección de 16 bits a través de la MAC mostrándola en la pantalla LCD. he leído los manuales y me dice que utilice el comando ZB_FIND_DEVICE_REQUEST pero no se como utilizarlo ni en que parte del código Genericapp ponerlo, les agradezco su ayuda, lo necesito para mi tesis de grado.

  • Review chapter 6. ZDO Message Requests

    C:\Texas Instruments\ZStack-CC2530-2.5.1\Documents\Z-Stack Developer's Guide.pdf

    Obviously, you will be interested in making a Network Address request and getting the response - look in ZDProfile.h:

    #define NWK_addr_req            ((uint16)0x0000)
    #define NWK_addr_rsp            (NWK_addr_req | ZDO_RESPONSE_BIT)

     So you will be invoking this function from ZDProfile.c:

    afStatus_t ZDP_NwkAddrReq( uint8 *IEEEAddress, byte ReqType,
                               byte StartIndex, byte SecurityEnable )

    And for now you probably only need to make the request for single:


    // IEEE_addr_req request types
    #define ZDP_ADDR_REQTYPE_SINGLE     0
    #define ZDP_ADDR_REQTYPE_EXTENDED   1