打开ztool后,点击Tools--->Configuration----->Load Parameters
文档上写的是Device Specific这一栏,我却找不到。
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.
打开ztool后,点击Tools--->Configuration----->Load Parameters
文档上写的是Device Specific这一栏,我却找不到。
Hi Guli,
这种情况下确实是没有ZCD_NV_ZDO_DIRECT_CB这个选项可以设置。
怀疑是所用的CC2531ZNP-Pro.hex这个文件在编译过程中,MT相关的编译选项并没有全部使能。
建议使用\ZStack-CC2530-2.5.1a\Projects\zstack\ZNP\CC253x目录下的znp工程,自己添加编译选项试试。特别注意使能MT_SAPI_CB_FUNC, MT_ZDO_CB_FUNC这两个编译选项。
这边有一个能设置ZCD_NV_ZDO_DIRECT_CB参数的例子,可供参考:http://e2e.ti.com/support/low_power_rf/f/158/t/50098.aspx
好。我说下过程。
首先在\ZStack-CC2530-2.5.1a\Documents中找到CC2530ZNP Interface Specification.pdf Page 34
4.2.3.3 ZCD_NV_ZDO_DIRECT_CB
Configuration ID: 0x008F; Size: 1 byte; Default value: FALSE
This configures the manner in which ZDO responses (hereby referred to as callbacks) are issued to the host processor. By default, this item is set to FALSE, which means that the host processor must use the ZDO_MSG_CB_REGISTER command to subscribe to a specific ZDO callback in order to receive it. The ZDO callback is then conveyed as part of the ZDO_MSG_CB_INCOMING command. If ZCD_NV_ZDO_DIRECT_CB is set TRUE, then the host processor will receive the “verbose” response. For example, the host processor would receive the ZDO_IEEE_ADDR_RSP command in response to ZDO_IEEE_ADDR_REQ.
然后选中SYS_OSAL_NV_WRITE ,把对应的值写入
然后右键 SYS_OSAL_NV_WRITE, 选择send message
接下来,再发送ZDO_IEEE_ADDR_REQ,