02 2013 档案
zigbee 案例实验
摘要:ZStack-CC2530-2.3.0-1.4.0/* Switches (keys) */#define HAL_KEY_SW_1 0x01 // Joystick up#define HAL_KEY_SW_2 0x02 // Joystick right#define HAL_KEY_SW_5 0x04 // Joystick center#define HAL_KEY_SW_4 0x08 // Joystick left#define HAL_KEY_SW_3 0x10 // Joystick down#define HAL_KEY_SW_6 0x20 // Button S1 if a 阅读全文
posted @ 2013-02-26 13:08 _song 阅读(948) 评论(0) 推荐(0)
zigbee 端点描述符
摘要:在应用程序初始化时,使用afRegister( &SampleApp_epDesc );注册一个端点 阅读全文
posted @ 2013-02-24 11:17 _song 阅读(580) 评论(0) 推荐(0)
zigbee 协议栈原语及zstack实现
摘要:解析此图:(Newnes.ZigBee.Wireless.Networks.and.Transceivers.Sep.2008.eBook-DDU)4种类型原语1.request 请求原语,2.indication 指示原语,3.response 响应原语4.confirm 确认原语同一个节点上,上层使用request原语请求下层执行任务,下层(执行完毕后)使用confirm向上层汇报执行结果。节点A向节点B发送信息,(节点B底层收到信息后)会向节点B上层发出一个indication的原语。节点B上层收到信息后会向节点B下层发送一个响应信息即response原语。术语:SAP 服务接入点PD 阅读全文
posted @ 2013-02-24 10:13 _song 阅读(1222) 评论(0) 推荐(0)
zigbee 空中消息溯源
摘要:消息发送到空中:/********************************************************************* * @fn AF_DataRequest * * @brief Common functionality for invoking APSDE_DataReq() for both * SendMulti and MSG-Send. * * input parameters * * @param *dstAddr - Full ZB destination address: Nwk Add... 阅读全文
posted @ 2013-02-24 03:17 _song 阅读(722) 评论(0) 推荐(0)
zigbee bind, ZDO_RegisterForZDOMsg, zcl_registerForMsg
摘要:绑定方法1:1.设备A先允许绑定zb_AllowBind( myAllowBindTimeout );* @param timeout - The number of seconds toremain in the allow binding* mode. Valid values range from 1 through 65.* If 0, the Allow Bindmode will be set false without TO* If greater than 64, theAllow Bind mode will be true此函数会调用afSetMatch以便允许匹配端点描述 阅读全文
posted @ 2013-02-23 19:10 _song 阅读(1942) 评论(0) 推荐(1)
zigbee 协议栈的时钟和定时器分频
摘要:系统时钟和定时器节拍时钟 设置寄存器tickspd用于产生timer1 ,3,4的基本节拍,最大可以是32MHZ此时定时器加1的所需事件最短,为1/32 us定时器除了tickspd的分频,还可以在tickspd的基础上分频,比如timer3clkspd用于产生cpu执行指令的基本节拍,最大可以使32MHZ,此时执行asm("NOP")所用时间是 /1---/128 extern uint8 halTimerSetPrescale (uint8 hwtimerid, uint8 prescale); extern uint8 halTimerSetCount (uint8 阅读全文
posted @ 2013-02-16 19:03 _song 阅读(1042) 评论(0) 推荐(0)
zigbee cc2530地址空间 layout 和flash操作
摘要:...2.2.2 CPU Memory Spacecpu存储空间(以下叫地址空间)XDATA memory space. The XDATA memory map is given in Figure 2-1.Xdata地址空间,64KBThe SRAM is mapped into address range of 0x0000 through (SRAM_SIZE – 1).sram被映射在地址空间的的0-SRAM_SIZE-1The XREG area is mapped into the 1-KB address range (0x6000–0x63FF). These regis.. 阅读全文
posted @ 2013-02-14 17:29 _song 阅读(1336) 评论(0) 推荐(0)
zigbee 万能遥控器 裸机发送和协议栈发送
摘要:HX1010http://www.sbprojects.com/knowledge/ir/index.php遥控编码http://www.sbprojects.com/knowledge/ir/rc5.phphttp://www.sbprojects.com/knowledge/ir/nec.php发送方:波形图上的高电平对应发相同时间长度的38KHZ方波;波形图上的低电平对应停止发送对应时间长度的方波(即保持低或高电平即可)比如在发送方发送引导码时,先发送9ms的38KHZ防波,然后停止发送4.5ms。接着发送数据。发送数据0时,先发送0.56ms的38KHZ方波,然后停止发送0.56ms. 阅读全文
posted @ 2013-02-06 16:10 _song 阅读(805) 评论(0) 推荐(0)