Skip to content

Commit

Permalink
输出9600波特率版本,支持DM,更新了AT指令文档,Host端代码暂时不能跑通,尚未增加DM信息设置
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeBo committed Jan 25, 2019
1 parent 7455b7a commit 006ce87
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 9 deletions.
47 changes: 38 additions & 9 deletions resource/qlink/3.AT指令/qlink_AT_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
|---|---|---|
|1|AT+QLINKPRODUCT|设置/读取QLINK产品参数|
|2|AT+QLINKVERSION|设置/查询QLINK版本参数|
|3|AT+QLINKRAWSTART|启动QLINK一键配网|
|4|AT+QLINKUSERSTART|启动QLINK用户配网|
|5|AT+QLINKSTART|启动QLINK服务|
|6|AT+QLINKSTOP|结束QLINK服务|
|7|AT+QLINKSTATUS|查询QLINK服务状态|
|8|AT+QLINKSEND|设备发送数据|
|3|AT+QLINKDM|设置/查询DM参数|
|4|AT+QLINKRAWSTART|启动QLINK一键配网|
|5|AT+QLINKUSERSTART|启动QLINK用户配网|
|6|AT+QLINKSTART|启动QLINK服务|
|7|AT+QLINKSTOP|结束QLINK服务|
|8|AT+QLINKSTATUS|查询QLINK服务状态|
|9|AT+QLINKSEND|设备发送数据|
|10|AT+QLINKPARAM|设备收到平台设置指令后返回给WIFI模块|

### AT+QLINKPRODUCT
功能:查询/设置QLINK product info
Expand Down Expand Up @@ -42,6 +44,24 @@
|参数:|`firmware_version`:WIFI固件版本信息|
||`software_version`:系统软件版本信息|

### AT+QLINKDM
功能:查询/设置QLINK DM info

|查询指令:|`AT+QLINKDM?`|
|---|:---|
|响应:|`+QLINKDM:<enable>,<envir>,<cmei>,<version>,<appkey>,<secret>`|
||`OK`|

|设置指令:|`AT+QLINKDEV=<enable>,<envir>,<cmei>,<version>,<appkey>,<secret>`|
|---|:---|
|响应:|`OK`|
|参数:|`enable`:1:开启DM 0:关闭DM|
||`envir`:1:测试环境 0正式环境|
||`cmei`: 从移动终端公司获取|
||`version`:从移动终端公司获取|
||`appkey`:从移动终端公司获取|
||`secret`:从移动终端公司获取|

### AT+AT+QLINKRAWSTART
功能:开始QLINK一键配网,如果一键配网超时,自动进入用户配网模式

Expand Down Expand Up @@ -89,6 +109,15 @@
|参数:|`msg_type`:Inform,File,ParamChange,Data|
||`data_len`:数据长度|

### AT+QLINKPARAM
功能:设备收到平台设置指令后返回给WIFI模块

|设置指令:|`AT+QLINKSEND=<type>`|
|---|:---|
|响应|`>`|
|响应:|`OK`|
|参数:|`type`:1:当前字段仅有配置功能,0:当前字段既有配置功能又有控制功能,每次收到服务器下发字段都需要发送给WIFI模块|


## QLINK事件通知
|序号|指令|指令说明|
Expand Down Expand Up @@ -148,10 +177,10 @@ AT+QLINKSTATUS?
+QLINKEVENT:GET
/*发送所有数据*/
AT+QLINKSEND=Inform,123\r
{"ErrorCode":{"value":"0"},"Hue":{"value":"50"},"Luminance":{"value":"50"},"Switch":{"value":"1"},"WorkMode":{"value":"0"}}
AT+QLINKSEND=Inform,59\r
{"params":[{"paramCode":"permitJoining","paramValue":"1"}]}
/*当APP调用控制接口后,会主动下发指令控制设备状态,此时模块主动下发*/
/*当APP调用控制接口后,会主动下发指令控制设备状态,此时模块主动下发,MCU需要返回AT+QLINKPARAM指令*/
+QLINKEVENT:SET,<len>,<data>
/*当APP调用重启接口,此时模块主动下发*/
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions resource/qlink/3.AT指令/固件/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
2019.1.25 10:00
MX1290-960000.QLINK.A212
�汾�� ATv2.1.2
1�� ATָ��ڲ����ʣ�9600

���ӹ��ܣ�
1������һ��ָ�֧��DM
AT+QLINKDM=<enable>,<envir>,<cmei>,<version>,<appkey>,<secret>
enable: 1:����DM 0:�ر�DM
envir: 1:���Ի��� 0��ʽ����
cmei: ���ƶ��ն˹�˾��ȡ
version: ���ƶ��ն˹�˾��ȡ
appkey: ���ƶ��ն˹�˾��ȡ
secret: ���ƶ��ն˹�˾��ȡ

-----------------------------------------------------
2018.12.14 12:00
EMW3080BP-0000.QLINK.A102.
�汾�� ATv1.0.2
��һ�档
1�� ATָ��ڲ����ʣ�115200
Binary file modified resource/qlink/3.AT指令/杭研AT指令使用说明.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 006ce87

Please sign in to comment.