temperature_iT18/beken_rtt_sdk_release-SDK_3.0.76/docs/iT18 收纳仓BLE 通讯协议.txt

22 lines
968 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

iT18 收纳仓通讯协议
1.搜索蓝牙7252n 并连接设备 ( 使用时建议申请ble 通讯的MTU 为254 否则会数据分包;)
2.iT18的通讯Service UUID为 0xFFFF的
3.监听UUID为 0xFF03 的Characteristic 可以实时监听回传数据
4.指令通过UUID为 0xFF01 的Characteristic发送
5.指令CMD
5.1 将当前设备与指定MAC地址的设备绑定 :AT+BIND
5.2 获取扫描附近的WIFI :AT+SCAN
回复AT+SSID=1603,iLock,TP-LINK15DA,HUAWEI-AB8D (信号强度依次减小)
AT+STATE=1 (表示收到了下发扫描SSID指令并开始扫描网络 收到的结果会回传主控)
5.3 连接指定WIFI :AT+WIFI:SSID,PASSWORD (SSID为WIFI名称PASSWORD为WIFI密码)
回复AT+STATE=2 (表示收到下发的SSID 和密码,并开始尝试连接网络)
AT+STATE=3 (表示已经连接WIFI并且获取IP)
5.4 获取状态值 :AT+STATE
回复AT+STATE=0 (表示当前无操作)