03 2013 档案
虚拟串口1
摘要:http://blog.csdn.net/chenyujing1234/article/details/7896364 阅读全文
posted @ 2013-03-31 14:47 _song 阅读(284) 评论(0) 推荐(0)
待解决问题
摘要:1.将数据直接发送给长地址的设备,即长地址寻址,实验时未成功但看源码应该是可以的,先记下有时间再看zcl_samplesw.c uint8 pValue[8]={0x21,0x12,0,0,0xfa,0xa3,0,0x80}; // uint8 pValue[8]={0x80,0,0xa3,0xfa,0,0,0x12,0x21}; zclSampleSw_DstAddr.addrMode = (afAddrMode_t)Addr64Bit; zclSampleSw_DstAddr.endPoint = 13; //zclSampleSw_DstAddr.addr.shortA... 阅读全文
posted @ 2013-03-17 18:34 _song 阅读(544) 评论(0) 推荐(0)
zigbee zcl规范及其协议栈实现3 读取服务器端属性值
摘要:zigbee zcl规范及其协议栈实现2 中有介绍对通用命令的处理,按照那个思路和信息流程添加读取服务器端属性值的功能客户端samplesw想要知道与自己的12号端点SAMPLESW_ENDPOINT绑定的那个节点samplelight(的13号端点)的硬件版本和厂商名字,这两个属性zcl都有规定,属于zcl general 的ZCL_CLUSTER_ID_GEN_BASICA1.首先服务器samplelight端需要配置这个属性,代码中已经写过,位于函数zclSampleLight_Init里注册了属性表,zcl_registerAttrList( SAMPLELIGHT_ENDPOINT, 阅读全文
posted @ 2013-03-17 15:32 _song 阅读(2743) 评论(1) 推荐(0)
zigbee zcl规范及其协议栈实现2
摘要:对通用命令的处理:对zcl的通用命令的响应,zcl自己已经实现,比如读取某个clusterid的某个属性值,应用只需将这个属性设置好即可,通用命令包括,zcl.h/*** Foundation Command IDs ***/ #define ZCL_CMD_READ 0x00 #define ZCL_CMD_READ_RSP 0x01 #define ZCL_CMD_WRITE 0x02 #de... 阅读全文
posted @ 2013-03-17 01:52 _song 阅读(2713) 评论(1) 推荐(0)
zigbee zcl规范及其协议栈实现1
摘要:refer to ZigBee_Cluster_Library_Public_download_version1.zcl 分为几个不同的功能领域,每个领域霸占一部分clusterid比如通用领域有如下的clusterid........在协议栈的zcl.h中有对这些clusterid定义,对应上面的文档,但是不完整// General Clusters #define ZCL_CLUSTER_ID_GEN_BASIC 0x0000 #define ZCL_CLUSTER_ID_GEN_POWER_CFG ... 阅读全文
posted @ 2013-03-16 14:32 _song 阅读(4255) 评论(0) 推荐(0)
zigbee 协议栈数据类型及转换
摘要:zigbee数据类型转换数字->字符串:uint8 str[6];shortAddr=19233;_itoa(shortAddr,str,10);//str="19232",10进制字符串->数字:本地数据类型定义:hal_types.c typedef signed char int8; typedef unsigned char uint8; typedef signed short int16; typedef unsigned short uint16; typedef signed long int32; typedef unsigned long . 阅读全文
posted @ 2013-03-16 03:26 _song 阅读(825) 评论(0) 推荐(0)
Zigbee 获取设备地址信息
摘要:refer to http://blog.csdn.net/tanqiuwei/article/details/7640952第一种方法,利用NLME.h里面定义的专门API获取设备自身IEEE地址extern byte *NLME_GetExtAddr( void );获取设备自身网络地址extern uint16 NLME_GetShortAddr( void );获取父设备网络地址extern uint16 NLME_GetCoordShortAddr( void );获取父设备IEEE地址extern void NLME_GetCoordExtAddr( byte * );第二种方法: 阅读全文
posted @ 2013-03-13 13:07 _song 阅读(1624) 评论(0) 推荐(0)
zigbee cc2530 adc转换
摘要:cc2530的通用datasheet上没怎么讲到adc的一些特性,http://download.csdn.net/detail/songqqnew/5132088而是下面这个文档有较多讲解www.ti.com/lit/ds/symlink/cc2530.pdf#include "adc.h" void main(void) { while(1) adcSampleSingle (ADC_REF_AVDD,ADC_12_BIT,ADC_AIN0); } 1.源于basic代码2.cc2530没有专门设置分辨率的寄存器,有一个抓取率,设置这个东东就相当于设置了分辨率和adc转 阅读全文
posted @ 2013-03-12 01:52 _song 阅读(1866) 评论(0) 推荐(0)