欢迎来到天天文库
浏览记录
ID:25899163
大小:170.03 KB
页数:4页
时间:2018-11-23
《杜亚窗帘电机协议》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1)打开命令1_1.打开命令/室内主机à窗帘电机,举例:窗帘电机ID固定为0x1234STARTID0ID1FUNCTIONCONTROLCHECK0x550x120x340x030x01CRCHCRCL-START:0x55(起始代码)-ID0:ID1:0x12:0X34窗帘电机ID0低位,ID1高位-FUNCTION:0x03(控制功能命令)-CONTROL:0x01(电机打开命令)-CHECK:取前面数据CRC1_2.打开命令的响应/窗帘电机à室内主机,窗帘电机ID固定为0x1234STARTID0ID1FUNCTIONCONTROLCHECK0x550x120x340x0
2、30x01CRCHCRCL2)关闭命令2_1.关闭命令/室内主机à窗帘电机,举例:窗帘电机ID固定为0X1234STARTID0ID1FUNCTIONCONTROLCHECK0x550x120x340x030x02CRCHCRCL-CONTROL:0x02表示关闭窗帘2_2.关闭命令的响应/窗帘电机à室内主机,窗帘电动机ID固定为0x1234STARTID0ID1FUNCTIONCONTROLCHECK0x550x120x340x030x02CRCHCRCL3)停止命令3_1.停止命令/室内主机à窗帘电机,举例:窗帘电机ID固定为0x1234STARTID0ID1FUNCTION
3、CONTROLCHECK0x550x120x340x030x03CRCHCRCL-CONTROL:0x3停止-4-3_2.停止命令的响应/窗帘电机à室内主机,窗帘电机ID固定为0x1234STARTID0ID1FUNCTIONCONTROLCHECK0x550x120x340x030x03CRCHCRCL1)百分比控制4_1.百分比控制(邀请)/室内主机à窗帘电机,举例:窗帘电机ID固定为0x1234STARTID0ID1FUNCTIONCONTROLDATACHECK0x550x120x340x030x040X00-0X64CRCHCRCL-CONTROL:0X04电机百分比运
4、行控制-DATA:0X00—0X64电机百分比0%-100%4_2.百分比响应/窗帘电机à室内主机,窗帘电机ID固定为0x1234STARTID0ID1FUNCTIONCONTROLDATACHECK0x550x120x340x030x040X00-0X64CRCHCRCL-DATA:0XFF设置行程百分比超过100%(0X64)返回给主机0XFF表示错误信息电机未设置好行程的时,主机发百分比控制命令,从机返回的DATA为0XFF,表示错误信息5)写ID5_1.写ID(邀请)/室内主机à窗帘电机,举例:写入窗帘电机ID为0x1234STARTID0ID1FUNCTIONDATA_
5、ADDRDATA_LENTHDATACHECK0x550x000x000x020x000X02ID0-ID1CRCHCRCL-START:0X55起始码-ID0:ID1:0x00:0X00从0X00地址开始写-FUNCTION:0X02写功能-DATA_ADDR:0X00(固定)数据地址-DATA_LENTH:0X02数据长度-DATA:ID0-ID1写入的ID地址5_2.写ID响应/窗帘电机à室内主机-4-STARTID0ID1FUNCTIONDATA_ADDRDATA_LENTH缺省CHECK0x550x000x000x020x000X02缺省CRCHCRCL6)写方向6_1
6、.写方向(邀请)/室内主机à窗帘电机,举例:写入窗帘电机方向00STARTID0ID1FUNCTIONDATA_ADDRDATA_LENTHDATACHECK0x550x120x340x020x030X0100/01CRCHCRCL-START:0X55起始码-ID0:ID1:0x12:0X34窗帘ID-FUNCTION:0X02写功能-DATA_ADDR:0X03(固定)数据地址-DATA_LENTH:0X01数据长度-DATA:0/1方向数据0或者16_2.写方向(响应)/窗帘电机à室内主机,STARTID0ID1FUNCTIONDATA_ADDRDATA_LENTHDATA
7、CHECK0x550x120x340x020x030X0100/01CRCHCRCL--DATA:00电机正向01电机反向其它数据返回0XFF7)写手拉7_1.写手拉(邀请)/室内主机à窗帘电机,举例:写入窗帘电机手拉开启00STARTID0ID1FUNCTIONDATA_ADDRDATA_LENTHDATACHECK0x550x120x340x020x040X0100/01CRCHCRCL-START:0X55起始码-ID0:ID1:0x12:0X34窗帘ID-FUNCTION
此文档下载收益归作者所有