1169 views|0 replies

3836

Posts

19

Resources
The OP
 

Zigbee learning notes---protocol stack NV operation [Copy link]

(1) The first step is to add a custom NV_ITEM_ID:

In the ZComDef.h file referenced by Zmain.c, there is the following code;

// NV Items Reserved for applications (user applications)
// 0x0201 ?0x0FFF

This means that the segment from 0x0201 to 0x0FFF is the NV Item area reserved for the user application layer. Therefore, the user-defined NV_ITEM_ID must be returned in this value. For example, here I have customized two self-made table IDs as follows

#define FS_APP_TABLE_1_START 0x0201
#define FS_APP_TABLE_2_START 0x0202

(Note: This ID is just a number, not the actual physical address. The actual physical address will be obtained by the protocol stack through a series of operations based on the number.)

(2) After the above ID number is defined, the NV operation function of the protocol stack can be used to read and write data.

This post is from Wireless Connectivity
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list