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.

Sensor demo application: parentShortAddress

Hi every one,

I am using sensor demo application on cc2530ZDK. I have a question regarding the last bytes of packet sent by the ED. it is parentShortAddress, I thought I only need to put my own data in the packet then rest (adding the address of parent etc.) is done automatically. Is this always the case when I am making a packet? 

The general question would be if I am binding devices to my gateway, what type of information should I add to my packet in addition to my data?

I appreciate your help,

Leila

  • Hello Leila,

    In sensor demo the parent address of the device is added to the packet being transmitted in the function - sendReport(). Also, the temperature and voltage data is populated in the message in this function as well before calling the zb_SendDataRequest() function.

    You do not have to add any thing to the packet being sent Over the air as bindrequest, please see the function zb_BindDevice() which is used for binding the devices in the sensor monitor demo application.

    Regards,

    Suyash Jain 

     

  • Thanks for the answer, my problem is that I have a packet of 100 bytes data, so I am trying to understand the necessity of having a parent address sent in my packet over the air. if it is not necessary at all, can I replace it with my own data?

    Thanks,

    Leila

  • Hello Leila,

    Parent address is sent along with temperature and voltage data so that ZSensorMonitor GUI knows which collector device should it show the sensor device connected to. If you are not using the ZSensormonitor GUI anymore you can replace the parent's address.