ZStack-CC2530-2.5.0

所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:24704KB
下载次数:381
上传日期:2011-12-07 09:50:06
上 传 者kevin yan
说明:  基于zigbee最新协议栈,做了灯的应用开发,很方便新手对协议栈的应用开发。
(Based on the latest protocol stack zigbee, did lamp of application development.)

文件列表:
ZStack-CC2530-2.5.0\Components\hal\common\hal_assert.c (9887, 2010-11-22)
ZStack-CC2530-2.5.0\Components\hal\common\hal_drivers.c (9560, 2010-10-05)
ZStack-CC2530-2.5.0\Components\hal\include\hal_adc.h (6175, 2010-02-25)
ZStack-CC2530-2.5.0\Components\hal\include\hal_assert.h (5478, 2009-02-16)
ZStack-CC2530-2.5.0\Components\hal\include\hal_board.h (28, 2006-11-01)
ZStack-CC2530-2.5.0\Components\hal\include\hal_ccm.h (2790, 2008-10-07)
ZStack-CC2530-2.5.0\Components\hal\include\hal_defs.h (4969, 2008-10-07)
ZStack-CC2530-2.5.0\Components\hal\include\hal_drivers.h (4789, 2010-10-05)
ZStack-CC2530-2.5.0\Components\hal\include\hal_flash.h (4964, 2010-04-09)
ZStack-CC2530-2.5.0\Components\hal\include\hal_key.h (5809, 2007-11-01)
ZStack-CC2530-2.5.0\Components\hal\include\hal_lcd.h (5735, 2008-07-07)
ZStack-CC2530-2.5.0\Components\hal\include\hal_led.h (4288, 2007-11-01)
ZStack-CC2530-2.5.0\Components\hal\include\hal_sleep.h (3142, 2010-01-29)
ZStack-CC2530-2.5.0\Components\hal\include\hal_timer.h (8980, 2010-06-02)
ZStack-CC2530-2.5.0\Components\hal\include\hal_uart.h (7987, 2009-03-09)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_adc.c (9144, 2010-03-12)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_aes.h (5185, 2010-01-08)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_board_cfg.h (20990, 2010-06-24)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_dma.c (5541, 2010-07-21)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_dma.h (12798, 2011-05-31)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_flash.c (6704, 2010-10-07)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_key.c (19214, 2010-09-15)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_lcd.c (25566, 2010-06-21)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_led.c (16590, 2011-04-15)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_mac_cfg.h (3115, 2010-04-12)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_mcu.h (9043, 2010-07-21)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_oad.c (17167, 2010-07-08)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_oad.h (5360, 2010-02-25)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_ota.c (15352, 2010-11-18)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_ota.h (5289, 2010-11-18)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_sleep.c (19599, 2011-04-04)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_startup.c (4257, 2010-01-28)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_timer.c (2745, 2010-05-28)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_types.h (4109, 2008-03-20)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\hal_uart.c (9277, 2009-06-12)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\_hal_uart_dma.c (24990, 2010-04-01)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530EB\_hal_uart_isr.c (17277, 2010-03-10)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530USB\hal_adc.c (9144, 2010-03-12)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530USB\hal_aes.h (5185, 2010-01-11)
ZStack-CC2530-2.5.0\Components\hal\target\CC2530USB\hal_board_cfg.h (14245, 2010-06-24)
... ...

Texas Instruments, Inc. ZStack-CC2530 Release Notes ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ZigBee 2007 Release Version 2.5.0 July 25, 2011 Notices: - ZStack-CC2530 has been certified for ZigBee/ZigBee-PRO compliance and has achieved certification from National Technical Systems (NTS) for the SE 1.1 profile (including the OTA cluster). The SE 1.1 profile is certified to meet test criteria mandated by the SE 1.1 test specification (095312r30). - Z-Stack supports the ZigBee 2007 Specification, including features such as PanID Conflict Resolution, Frequency Agility, and Fragmentation. The ZigBee 2007 Specification (www.zigbee.org) defines two ZigBee stack profiles, ZigBee and ZigBee-Pro. ZStack-2.5.0 provides support for both of these profiles. See the Z-Stack Developer's Guide for details. - Z-Stack supports an IAR project to build "ZigBee Network Processor" (ZNP) devices. CC2530-based ZNP devices can be used with any host MCU that provides either an SPI or UART port to add ZigBee-Pro communication to existing or new designs. See the "CC2530ZNP Interface Specification" and "Z-Stack User's Guide for CC2530 ZigBee-PRO Network Processor - Sample Applications" documents for details and using the ZNP. - The library files have been built and tested with EW8051 version 8.10.1 (8.10.1.40071) and may not work with other versions of the IAR tools. You can obtain the 8.10 installer and patches from the IAR website. - Z-Stack has been built and tested with IAR's CLIB library, which provides a light-weight C library which does not support Embedded C++. Use of DLIB is not recommended since Z-Stack is not tested with that library. - When programming a target for the first time with this release, make sure that you select the "Erase Flash" in the "Debugger->Texas Instruments-> Download" tab in the project options. When programming completes, it is recommended that the "Erase Flash" box gets un-checked so that NV items are retained during later re-programming. - Please review the document "Upgrading To Z-Stack v2.5" for information about moving existing v2.4.0 applications to v2.5.0. Changes: - [3853] Provided code in ipd_ProcessInDefaultRspCmd() of the OTA ipd.c module for the SE SampleApp to handle receipt of ZCL_STATUS_ABORT. - [3844] Modified the OTA ipd.c module for the SE SampleApp to populate the "upgrade server ID" with the IEEE address of the OTA server - the address is obtained via OTA cluster match descriptor followed by IEEE address request. - [3725] Improved power consumption of CBKE process by leaving the radio off after Key generation if it was off before Key generation started. - [3710] Added the osal_self() function that returns the current OSAL task ID. Useful when an application has multiple endpoints that share code that need to set an event timer (requires task ID). Refer to the "OSAL API" for details. - [3708] Modified processing of SYS_EVENT_MSGS in the MT_ProcessEvent() function to retrieve and handle only one message from the queue before returning control back to OSAL. - [3691] Moved the BindingTable.c file out of the NWK libraries and added it to the NWK folder in the IAR sample application projects. - [3690] Modified the ZDO_ProcessBindUnbindReq() function to remove limits on the maximum allowed binding entries. If needed for ZigBee conformance testing, the limit can be enabled by defining the APP_TP2 compile option. - [3684] Support for the Prepayment feature for Smart Energy 1.1 has been added. Example code is provided in the 'esp' and 'ipd' SE SampleApp devices. Refer to "Z-Stack Smart Energy Developer's Guide" for details on this feature. - [3683] Support for the Door Lock and Window Covering clusters for Home Automation 1.1 has been added. Refer to section 5 of the "Z-Stack ZCL API" for details on these features. - [3673] Added the zclGeneral_ReadSceneCountCB() callback function to let an application know when a scene is added or removed. See section 4.67 of the "Z-Stack ZCL API" for details on this feature. - [3662] Updated the APS fragmentation feature to support separate window size and frame delay settings for each registered endpoint. - [3655] Removed the redundant variable "TCshortAddr" and replaced all all instances of it with "zgTrustCenterAddr". - [3653] Modified processing of SYS_EVENT_MSGS in the APS_event_loop() function to retrieve and handle only one message from the queue before returning control back to OSAL. - [3650] Support for the ZCL Commissioning Cluster (075123r03) functional domain and the ZBA Server Application (053516r11) has been added. Note that the default Trust Center Link Key has been modified due to this change. Refer to "Z-Stack Commissioning Cluster API" for details on this feature. - [3***3] Added capability for a device to initiate an "unsecure rejoin" to receive the new NWK key because it had missed a NWK key update. - [3636] Added MAC support for the CC2590 LNA/PA - this feature can be enabled by using the HAL_PA_LNA_CC2590 compile option. - [3613] Added the ZDApp_DeviceConfigured() function to determine whether the local device is a member of a network (it has a valid network address). - [3610] Improved power consumption of CBKE process by turning off the timer that is used to time-out incomplete key establishment processes. - [3607] Changed the compiler option used to pre-populate test certificate data for Smart Energy applications from TC_LINKKEY_JOIN to TEST_CERT_DATA. - [3606] The Monitor-Test (MT) API has been extended to provide capability to delete, create/init, and get length of Non-Volatile (NV) items. See sections 3.8.1.10 - 3.8.1.12 of the "Z-Stack Monitor and Test API" document for use of these commands. - [3573] Modified ZDApp_event_loop() to schedule a ZDO_STATE_CHANGE message to be sent to the task for each registered endpoint whenever the device is reset - useful when the device state becomes DEV_NWK_ORPHAN. - [3571] Modified the zclProcessMessageMSG() function to distiguish between ZigBee Light Link (ZLL) Inter-PAN messages and ZCL Foundation messages. The ZLL cluster uses different frame control format for Inter-PAN messages, so they could be confused with ZCL foundation commands. - [3570] Added capability for an application to register for Leave Confirmation callback from ZDO. The ZDO_LeaveCnf() function now processes a registered ZDO callback (ZDO_LEAVE_CNF_CBID). - [3558] Support for the Multi ESI feature for Smart Energy 1.1 has been added. Refer to "Z-Stack Smart Energy Developer's Guide" for details. - [3556] Support for the Block Tariffs feature for Smart Energy 1.1 has been added. Refer to "Z-Stack Smart Energy Developer's Guide" for details. - [3555] Support for the Price Acknowledgment feature for Smart Energy 1.1 has been added. Example code is provided in the 'esp' and 'ipd' devices of the SE SampleApp. Refer to "Z-Stack Smart Energy Developer's Guide" for details on this feature. - [3554] Support for the Fast Polling feature for Smart Energy 1.1 has been added. Example code is provided in the 'esp' and 'ipd' SE SampleApp devices. Refer to "Z-Stack Smart Energy Developer's Guide" for details on this feature. - [3549] The Monitor-Test (MT) API has been extended to provide capability to SET and GET the current date and time. Refer to sections 3.8.1.19 and 3.8.1.20 of "Z-Stack Monitor and Test API" for use of these commands. - [3542] Modified the APS data indication to provide a NWK sequence number upward to the application. This resulted in a change to the function prototype for APSDE_DataIndication() and addition of "nwkSeqNum" to the apsInMsg_t and afIncomingMSGPacket_t structures. - [3511] Enhanced the usb_descriptor_parser module utilize a user-provided IEEE address (secondary) to override the default IEEE address (primary) that is programmed into the CC2531 at the factory. - [3436] Modified the ZDO_AddrChangeIndicationCB() callback function to notify registered endpoints of the ZDO_ADDR_CHANGE_IND - useful when a device address gets changed due to an address conflict. - [32***] Added a configuration to the OAD Dongle IAR project to support the CC2531USB dongle board. Bug Fixes: - [38***] Fixed a problem which caused application link keys from partner devices to not be restored from NV memory after a reset. - [3863] Modified the esp_ReqFastPollModeCmdCB() in the SE SampleApp to handle a client request for a fast poll rate that is less than the value of the its FastPollUpdateRate attribute. - [3858] Fixed a problem where APS messages were being encrypted with the Trust Center Link Key if the APS Link Key look-up failed. - [3852] Fixed a problem in zclOTA_ProcessImageBlockRsp() where the client did not properly handle a response with ZCL_STATUS_ABORT and continued to send another query next image request. - [3851] Modified the zclOTA_event_loop() to make the client wait for the prescribed amount of time before sending another image block request. - [3850] Modified the zclOTA_event_loop() to prevent the client from starting a 2nd upgrade query process after the 1st download of a NULL image. - [3849] Fixed a problem in zclOTA_SendUpgradeEndReq() in which the fileID parameters were not always included in an OTA Upgrade End Request. - [3848] Fixed a problem in zclOTA_Srv_ImageBlockReq() where the server did not respond with ZCL_STATUS_NO_IMAGE_AVAILABLE when provided invalid fileID parameters. - [3847] Fixed a problem in zclOTA_ProcessUpgradeEndRsp() where the client would not instantiate a recieved image if waiting for upgrade timer to expire. - [3846] Fixed a problem in zclOTA_UpgradeComplete() where a failure was not returned when the downloaded image was NULL. - [3845] Updated the #defined OTA status values (in ZComDef.h) to match the current OTA specification (0952***r17). - [3840] Changed the OTA cluster options to include AF_ACK_REQUEST as the specifiaction requires APS ACK all OTA cluster commands. - [3839] Fixed a Request App Key issue in ZDSecMgrRequestAppKey() when the partner was not a child of the requesting device. NOTE: the prototype for this function has changed - it now requires the partner's extended address instead of the network address. - [3829] Fixed a problem in the zclGeneral_ProcessInCmd_InitiateKeyEstablish() function where it did not properly terminate with "Bad Message" status if the incoming Initiate Key Establishment message was too short. - [3826] Fixed a problem in zclGeneral_ProcessInCmd_InitiateKeyEstablishRsp() where the function did not properly terminate with "Bad Message" status if the incoming Initiate Key Establishment Response message was too short. - [3823] Fixed a problem in ZDO_ProcessMatchDescReq() that failed to send a response with match length of zero when there are no clusters found in a unicast Match Descriptor Request. - [3781] Fixed problems where the Trust Center did not use proper timeouts to terminate the CBKE process for "Ephemeral Key Generate" and "Confirm Key Generate". - [3722] Fixed a problem in zclGeneral_KeyEstablish_HdlInSpecificCommands() where a client device ignored COMMAND_TERMINATE_KEY_ESTABLISHMENT. - [3721] Fixed problems in zcl_general.c where buffer pointers were incorrectly updated after truncation of received strings that exceeded maximum length. - [3720] Removed the "$PROJ_DIR$\..\..\..\..\..\Components\osal\mcu\ccsoc" include path from all IAR project files. - [3707] Changed ZCL Smart Energy "ParseInCmd" functions to truncate octet string fields to the maximum defined length in the SE-1.1 specification. - [3694] Fixed the ZCL HVAC Thermostat Setpoint Raise Lower command to handle a negative value in the "amount" field. - [3659] Corrected Z-Tool issued CMD0 command codes for ZDO_JOIN_REQ and ZDO_NWK_DISCOVERY_REQ (0x45 changed to 0x25). - [3654] Fixed a rare problem in the MAC where a Timer2 overflow compare interrupt could be missed. - [3***9] Modified the StubAPS_InterPan() function to permit sending Inter-PAN messages within the same network - removed checks of PanID and channel. - [3***2] Fixed problems in ZDSecMgr.c where the NWK key update and switch functions did not work properly in Smart Energy applications. - [3***0] Fixed problems in ZDO_ProcessDeviceAnnce() where a changed NWK address wasn't always updated properly in the AddrMgr and Neighbor tables. - [3639] Fixed a problem where the device would mistakenly send a response to a broadcasted Management Permit Join Request. - [3638] Fixed the Request Link Key feature where a device can request the Trust Center to generate and send an APS link key to the requesting device and a partner device - used in the Smart Energy 1.1 Multi-ESI feature. - [3634] Fixed a problem with the HOLD_AUTO_START feature - even though the device would wait in the DEV_HOLD state, the NWK layer would transmit Link Status messages. - [3633] Fixed a problem where the "nwkUseMulticast" NIB attribute was not being used when the destination address mode was 0x00 (binding) or 0x01 (group), so the outgoing frame would not be sent using NWK layer multicast. - [3628] Modified zcl.c to remove checks for "ZCL_INVALID_CLUSTER_ID" - the value of 0xFFFF is a valid manufacturer specific cluster, according to the ZCL specification (075123r03ZB). - [3625] Fixed a ZNP problem where a message from a source endpoint equal to the key etablishment endpoint goes directly to the key establishment task. As a result, the host processor was not notified of AF_INCOMING_MSG_CMD. - [3624] Fixed a problem that prevented the device from sleeping for a long period of time when the radio is busy, causing excessive power consumption. - [3609] Fixed a problem in the IPD-EndDevice configuration of SE SampleApp where the radio got turned off after reveiving first Publish Price command. - [3600] Modified the zclSE_ProcessInCmd_Pricing_PublishPrice() function to remove a limit of "MAX_UNIT_OF_MEASURE_SE" - permits interoperability in future revisions of the specification. - [3597] Fixed a couple of instances in ZDSecMgr.c where a local copy of the security key was not scrubbed before leaving the function. - [3588] Fixed a possible problem in which a NULL pointer could be used when a NWK command buffer is allocated and prepared for use. - [3585] Fixed an obscure problem where an incoming APS command ACK frame would be parsed incorrectly. - [3584] Fixed a problem in the bindRemoveClusterIdFromList() function that could wrongly return TRUE if the supplied BindingTable pointer was NULL. - [3581] Fixed a memory leak (AddrMgr table) that would be experienced with repeated calls to NLME_ResetRequest(). - [3580] Fixed a possible problem in which a NULL pointer could be used when attempting to hold a message for a child device. - [3579] Fixed a problem in zclGeneral_KeyEstablishment_GenerateMAC() in which it did not properly validate whether a partner address was available. - [3578] Fixed a problem in the ZDO_ProcessMgmtRtgReq() function where it returned the wrong error, ZDO_MGMT_RTG_ENTRY_INACTIVE, instead of ZDO_MGMT_RTG_ENTRY_DISCOVERY_FAILED, for a bad link. - [3577] Fixed a problem that could occur when processing a many-to-one route request packet where a NULL pointer could be used when comparing link cost of neighbor device to an existing routing table entry. - [3575] Fixed a problem where a search of the source routing table for the oldest entry (when the table was full) could return an uninitialized table index. - [3574] Fixed a problem where a search for a neighbor address in the routing table failed improperly, causing the first neighbor table entry to get replaced. - [3567] Fixed a problem where an incorrect radio channel was selected when a call to SystemResetSoft() followed setting of a channel with ZMacSetReq(). - [35***] Fixed a possible problem where a failed attempt to build a MAC frame would not be terminated properly, causing a mal-formed frame. - [3529] Fixed a possible memory leak which could occur if the heap was full (failed memory allocation) during processing of a NWK switch key command. - [3497] Fixed a problem in zclProecssMessageMSG() that returned the wrong error, ZCL_STATUS_FAILURE, when an incoming packet had an unsupported cluster ID and security enabled. ZCL_STATUS_UNSUP_CLUSTER_COMMAND is now returned in this situation. - [3413] Fixed a problem that limitied the network size to the maximum size of the Address Manager table when using the TC_LINKEY_JOIN compile flag. - [3014] Fixed several problems with the control of the number of Routers and End-Devices which can join a device with stochastic addressing (ZigBee-Pro). NWK_MIN_ROUTER_CHILDREN and NWK_MIN_ENDDEVICE_CHILDREN control the minimum numbers of those devices permitted to join. Memory Sizes: - The CC2530 has 256K bytes of Flash memory to store executable program and non-volatile (NV) memory, and 8K bytes of RAM for program stack and data variables. Actual usage of Flash and RAM memory is variable, of course, and dependent on the specific application. Developers can adjust various parameters, such as, program stack size and dynamic memory heap size to meet their specific needs. - The following table provides a comparison of Flash and RAM sizes for one of the sample applications provided with ZStack - SampleApp that is found in the installed ..\Projects\zstack\Samples\SampleApp\CC2530DB folder. In most ZStack sample applications, generic heap settings are used which have been selected to accomodate a wide range of applications. For this example, heap settings were: Coordinator/Router = 3K bytes, EndDevice = 2K bytes. See the "Heap Memory Management" document for details on profiling heap memory usage. - Memory sizes are shown below for the 3 ZigBee device types, with/without ZigBee-PRO, with/without Security, and compiled to run on the SmartRF05EB board with CC2530EM module. See the Z-Stack User's Guide for more details. Coordinator Router EndDevice PRO SECURE Flash/RAM Flash/RAM Flash/RAM === ====== ======== ======== ======== On On 158.4K/6.7K 158.2K/6.7K 128.2K/5.3K On Off 149.2K/6.7K 148.0K/6.7K 120.1K/5.2K Off On 147.1K/6.6K 146.9K/6.6K 121.9K/5.2K Off Off 137.8K/6.6K 136.6K/6.6K 113.8K/5.2K Known Issues: - To disable security at build time, use the "SECURE=0" compile option. Do not attempt to disable security by setting the SECURITY_LEVEL to zero. ... ...

近期下载者

相关文件


收藏者