发明名称 Zigbee设备与TCP/IP设备进行通信的系统
摘要 本发明公开了一种Zigbee设备与TCP/IP设备进行通信的系统,包括TCP/IP网络、至少一个Zigbee网络和至少一个TCP/IP设备,每个Zigbee网络包括至少一个Zigbee设备,所述Zigbee网络的Zigbee协调器通过SH协议交换机与TCP/IP网络连接,TCP/IP设备与TCP/IP网络之间通过SH协议交换机连接,本发明通过在每个Zigbee设备的ZStack协议栈中添加一层SH协议层与SH协议交换机相配合,使每个Zigbee设备都具有一个唯一的TCP/IP网络身份,使得Zigbee网编设备成为一个TCP/IP网络设备,Zigbee与TCP/IP网络设备间可依赖于每个设备唯一TCP/IP网络身份进行通信。
申请公布号 CN102625476B 申请公布日期 2015.05.13
申请号 CN201210124413.1 申请日期 2012.04.25
申请人 成都思晗科技有限公司 发明人 张龙飞;何定旭;蒲爽;孟玖林
分类号 H04W80/00(2009.01)I 主分类号 H04W80/00(2009.01)I
代理机构 四川力久律师事务所 51221 代理人 刘雪莲;王芸
主权项 Zigbee设备与TCP/IP设备进行通信的系统,其特征在于,所述系统包括TCP/IP网络、至少一个Zigbee网络和至少一个TCP/IP设备,每个Zigbee网络包括至少一个Zigbee设备,每个Zigbee设备的ZStack协议栈中封装有一层SH协议层;所述Zigbee网络的Zigbee协调器通过SH协议交换机与TCP/IP网络连接,TCP/IP设备与TCP/IP网络之间通过SH协议交换机连接;所述SH协议层将Zigbee设备的应用数据封装为SH协议层数据;所述SH协议层数据整体作为Zigbee协议层的应用数据进行再次封装,并通过Zigbee网络发送至Zigbee协调器;Zigbee协调器将Zigbee协议层的应用数据发送至SH协议交换机,SH协议交换机根据SH协议层数据的帧头和帧尾信息通过TCP/IP网络,将SH协议层数据发送至目的SH协议交换机;目的SH协议交换机收到所述SH协议层数据后,根据SH协议层数据的帧头和帧尾信息将SH协议层数据中的应用数据转发至目的TCP/IP设备;所述SH协议层数据包括帧头、帧尾和应用数据,所述帧头用于存放数据路由信息,帧尾用于存储校验数据,所述帧头存放的数据路由信息包括数据的源Zigbee设备地址、目标TCP/IP设备地址;所述SH协议层数据帧结构如下:<tables num="0001" id="ctbl0001"><table><tgroup cols="3"><colspec colname="c001" colwidth="33%" /><colspec colname="c002" colwidth="33%" /><colspec colname="c003" colwidth="34%" /><tbody><row><entry morerows="1">帧头</entry><entry morerows="1">数据位</entry><entry morerows="1">帧尾</entry></row><row><entry morerows="1">31字节</entry><entry morerows="1"> </entry><entry morerows="1">3字节</entry></row></tbody></tgroup></table></tables>所述SH协议层数据帧头内容定义如下:<tables num="0002" id="ctbl0002"><table><tgroup cols="3"><colspec colname="c001" colwidth="17%" /><colspec colname="c002" colwidth="41%" /><colspec colname="c003" colwidth="42%" /><tbody><row><entry morerows="1">位</entry><entry morerows="1">位描述</entry><entry morerows="1">位长度</entry></row><row><entry morerows="1">H1</entry><entry morerows="1">开始字符</entry><entry morerows="1">1</entry></row><row><entry morerows="1">H2</entry><entry morerows="1">帧类型</entry><entry morerows="1">1</entry></row><row><entry morerows="1">H3</entry><entry morerows="1">帧长度</entry><entry morerows="1">1</entry></row><row><entry morerows="1">H4</entry><entry morerows="1">簇</entry><entry morerows="1">2</entry></row><row><entry morerows="1">H5</entry><entry morerows="1">目标地址</entry><entry morerows="1">13</entry></row><row><entry morerows="1">H6</entry><entry morerows="1">源地址</entry><entry morerows="1">13</entry></row></tbody></tgroup></table></tables>其中,帧类型用于判断帧的类别是为数据帧还是网络维护帧;帧长度用于描述帧的总长度;源地址是帧的发起地址;目标地址是帧的接收地址;源地址和目标地址内容如下表示:<tables num="0003" id="ctbl0003"><table><tgroup cols="5"><colspec colname="c001" colwidth="23%" /><colspec colname="c002" colwidth="27%" /><colspec colname="c003" colwidth="16%" /><colspec colname="c004" colwidth="14%" /><colspec colname="c005" colwidth="20%" /><tbody><row><entry morerows="1">位描述</entry><entry morerows="1">数据交换机Mac</entry><entry morerows="1">网络类型</entry><entry morerows="1">节点IP</entry><entry morerows="1">程序端口</entry></row><row><entry morerows="1">位长度</entry><entry morerows="1">6</entry><entry morerows="1">1</entry><entry morerows="1">4</entry><entry morerows="1">2</entry></row></tbody></tgroup></table></tables>其中,数据交换机Mac是目标的上级数据交换机的物理地址,网络类型是描述网络的类别,节点IP是目标的IP地址;所述SH协议层数据帧尾内容如下:<tables num="0004" id="ctbl0004"><table><tgroup cols="3"><colspec colname="c001" colwidth="17%" /><colspec colname="c002" colwidth="57%" /><colspec colname="c003" colwidth="26%" /><tbody><row><entry morerows="1">位</entry><entry morerows="1">描述</entry><entry morerows="1">长度</entry></row><row><entry morerows="1">CRC校验</entry><entry morerows="1">对本协议此CRC之前的所有数据作校验</entry><entry morerows="1">2</entry></row><row><entry morerows="1">结束字符</entry><entry morerows="1">对本协议完整一帧作结束标志</entry><entry morerows="1">1</entry></row></tbody></tgroup></table></tables>。
地址 610041 四川省成都市高新区府城大道西段399号天府新谷5号楼8楼