博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
endpoint 理解-1
阅读量:5081 次
发布时间:2019-06-13

本文共 1934 字,大约阅读时间需要 6 分钟。

如下摘自ti的document!

Each device is a node in the Zigbee. Each node has a long and short address, the short address of the node is used by other nodes to send it data. Each node has 241 endpoint (0 reserved, 1-240 application assigned).

Each endpointis separately addressable;when a device sends data it must specify the destination node’s short address and theendpoint that will receive that data. An application must register one or more endpoints to send and receive data in a Zigbee network.

Each endpoint must have a Zigbee Simple Descriptor. This descriptor describes the endpoint to the rest of the Zigbee network.

typedef struct { byte EndPoint; uint16 AppProfId; uint16 AppDeviceId; byte AppDevVer:4; byte Reserved:4; // AF_V1_SUPPORT uses for AppFlags:4. byte AppNumInClusters; cId_t *pAppInClusterList; byte AppNumOutClusters; cId_t *pAppOutClusterList; } SimpleDescriptionFormat_t; EndPoint – The endpoint number 1-240 (0 is reserved). This is the subaddress of the node, and is used to receive data..//端点可以用于接受数据 AppProfId – This field identifies the Profile ID supported on this endpoint. The IDs shall be obtained from the ZigBee Alliance. AppDeviceId –This field identifies the Device ID supported on this endpoint. The IDs shall be obtained from the ZigBee Alliance.

AppDevVer –Identifies the version of the relevant Device Description that this device implements on this endpoint.

0x00 is Version 1.0. Reserved – not used. AppNumInClusters – This indicates the number of input clusters supported by this endpoint. pAppInClusterList – Pointer to the input cluster ID list. AppNumOutClusters – 8 bit field. This indicates the number of output clusters supported by this endpoint. pAppOutClusterList – Pointer to the output cluster ID list.

           在实际的应用中,很多参数不需要我们自己去配置,而是系统默认的。但是记住很重要的一个:byte EndPoint; 这个参数必须是唯一的,对于需要绑定的设备(比如一个按键和一个灯)。只有具有相同的EndPoint,设备之间才能说话(灯设备和按键设备正常通信)。

转载于:https://www.cnblogs.com/farbeyond/p/5204669.html

你可能感兴趣的文章
杂曲歌辞·杨柳枝
查看>>
swiftmailer时没有设置https的选项,才可以发送成功。在linux下面
查看>>
C#程序分析
查看>>
(6)javascript 基本概念--- -- 函数
查看>>
『Python基础-4』字符串
查看>>
改变word的语言字典
查看>>
Android APP的安装路径
查看>>
煮鸡蛋的启示
查看>>
python_列表结构模拟栈和队列
查看>>
IIS支持.apk下载的方法
查看>>
vue mounted中监听div的变化
查看>>
MySQL二进制日志功能介绍
查看>>
Domino单用户多账号多邮件地址配置
查看>>
Asp.net WebPages框架运行原理浅析
查看>>
网络爬虫-正方教务系统登录
查看>>
【LeetCode】数组-4(581)-给未排序数组中子数组排序使得整个数组排序 找到这个最小的子数组...
查看>>
FPGA网站推荐
查看>>
11.巨坑,注意了,关于显示不正常的问题,localstorage的存储问题
查看>>
开发中的一些零碎知识点
查看>>
Web开发技术——HTML基础
查看>>