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.

Question - In the CC2530 function printZnpBuf()

Other Parts Discussed in Thread: Z-STACK

Hello everybody,

In the function:

/** Displays the contents of the Znp Buffer, znpBuf.
Useful for debugging ZNP communications.
*/
void printZnpBuf()
{
printf("zb: ");
for (int i=0; i<znpBuf[0]+3; i++)
printf("%02X ", znpBuf[i]);
printf("\r\n");
}

Where I can find the name of contents of the Znp Buffer? for instance, the first, second and third fields are, respectively, length, msb and lsb.

Any help is good.

tks

  • Hi Leonardo,

    You can find this information in the document Z-Stack ZNP Interface Specification.pdf and Z-Stack Monitor and Test API.pdf which are located in C:\Texas Instruments\Z-Stack Home 1.2.2.42930\Documents\API.

    Also, if you are writing a host application for the ZNP using C or C++ I recommend you take a look at the ZNP Host Framework ( http://www.ti.com/tool/tidc-znp-host-sw3  ). This is a framework built in C which already has all the ZNP commands integrated and provides an easy to use API to write your ZNP host applications. It also comes with a set of examples so you have a reference of how to use the APIs. You can get the framework from this repository https://git.ti.com/znp-host-framework/znp-host-framework