Preface
TheJN51xx Core Utilities会贯穿JN51xx应用开发的全过程。
1. Introduction
TheJN51xx Core Utilities 通过提供接口,能够简化非wireless networking程序部分的编程操作。
1.1Modules and Architecture
1.1.1JCU Modules
· PersistentData Manager(PDM): 提供context and application data 在Non-Volatile Memory的保存和恢复功能。主要是为了保证JN51xx断电前后能够保证工作的连续性。
· PowerManager(PWRM):管理JN51xx设备的工作模式,sleep mode。
· ProtocolData Unit Manager(PDUM): 管理memory(?哪个),同时可以insert data into messages to be transmitted andextracting data from messages that have been received.
· Debug(DBG):调试专用。
1.1.2Software Architecture
相当灵活,可以通过Application 访问JCU来间接访问Networking Stack。
见图1
2. PersistentData Manager (PDM)
2.1Overview
根据功能,这个Module针对那些断电后需要保存的数据,尤其context data for the network stack,个别的application data。话说现在还不知道networkstack data怎么拿?
分为以下几步:
· 初始化PDM
· Managingdata in EEPROM
· Storingcounters in EEPROM (counters是个毛线?)
· PDMfeatures including mutexes, EEPROM wear counts and event handling
The PDMcan be used with ZigBee PRO, JenNet-IP and IEEE802.15.4 wireless networkingprotocols. (不同协议怎么看,弱弱感觉在用ZigBee 3.0 怎么还能挺这么长时间?呵呵)