SIM7500_SIM7600 Series_MQTT_ATC_V1.01

所需积分/C币:11 2018-04-25 10:06:56 740KB PDF

SIM7500、SIM7600 系列(SIM7600CE)mqtt通信 AT命令 SIM7500、SIM7600 系列(SIM7600CE)mqtt通信 AT命令
SIM.Com Smart Machine smart Decision Contents Version history 1 Introduction… 2 AT commands 2.1 AT+CMQTTSTART Open network 22AT+ CMQTTSTOP Close network…...… 4 23AT+ CMQTTACCQ Acquirc a client…… 24AT+ CMQTTREL Release a client…… 2.5 AT+CMQTTWILLTOPIC Set the will topic 2.6 AT+CMQTTWILLMSG Set will message .8 2.7 AT+CMQTTCNCTTIMEOUT Set retry timeout for connection 2. 8 AT+CMQTTCONNECT Connect to thc scrvcr 2.9AT+ CMQTTDISC Disconnect from the server…....………11 2.10 AT+CMQTTTOPIC Set publishing topic 2.11 AT+ CMQTTPAYLOAD Set publishing message .14 2.12AT+ CMQTTPUB Send a PUBLISH message to server……… 2.13 AT+CMQTTSUBTOPIC Sct onc topic for SUBSCRIBE mcssagc 2.14AT+ CMQTTSUB Send SUBSCRIBE message to server.……………17 2.15 AT+-CMQTTUNSUBTOPIC Set one topic for unsubscribe message 2.16 AT+CMQTTUNSUB Send UNSUBSCRIBE message to server 2.17 MQTT URO….… 21 2. 17.1 Disconnect passively .21 2. 17.2 Receive topic published by mQtt server. 2.18 Return code 3 Examples 24 SIM750O SIM7600 Series MQTT ATC V1.01 2017-09-20 SIM.Com Smart Machine smart Decision Ⅴ ersion history Data Vcrsion Description of changc Author 2017-05-25 V1. 00 New Version 2017-06-21 V1.01 Modify SIM PING value Yueying ding 2017-06-26 V1.01 Modify AT+CMQTTDISC Yueying ding SCOPE This document describes how to use the MQTt function of SIM7500/STM7600 series module through at commands The develop software refer to MQtt V3.1 This document is subject to change without notice at any time SIM750O SIM7600 Series MQTT ATC V1.01 2017-09-20 SIM.Com Smart Machine smart Decision 1 ntroduction MQ Telemetry Transport (MQTT)is a lightweight broker-based publish/subscribe messaging protocol designcd to bc open, simple, lightweight and casy to implcment. This document apply to MQTT V3.1 2 AT commands 2.1 AT+CMQTTSTART Open network Description This command is used to open the network SIM PIN References YES Vendor Syntax Execution Command Responses AT+CMQTTSTART OK +CMQTTSTART: <result> +CMQTTSTART: <result> OK [+CMQTTSTART: <result>] ERROR Defined values result Refer to"Return code "chapter Example AT+ CMQTTSTART OK +CMOTTSTART.0 AT+CMQTTSTART SIM750OSIM7600 Series MQTT ATC Vl. 1 2017-09-20 SIM.Com Smart Machine smart Decision OK +CMOTTSTART. 8 2.2 AT+CMQTTSTOP Close network ption This command is used to close the network. Y ou should disconnect all of client's connection before executing this command SIM PIN References YES Vendor tax Execution Command Responses AT+CMQTTSTOP +CMQTTSTOP: <result> OK OK +CMQTTSTOP: <result> [+CMQTTSTOP: <result> ERROR Defined valu <result Refer to" Return code?" chapter Examples AT+ CMQTTSTOP +CMOTTSTOP: 0 OK AT+ CMQTTSTOP +CMOTTSTOP: 9 OK SIM750O SIM7600 Series MQTT ATC V1.01 2017-09-20 Smart Machine smart Decision 2.3 AT+CMQTTACCQ Acquire a client Description This command is used to acquire a client SIM PIN Rcfcrenccs YES Vendor ynL器X Test Command Responses AT+CMOTTACCO=? +CMQTTACCQ (O-<max client index>), (1-< max clientID len>) OK Read Command Responses AT+CMQTTACCQ? I-CMQTTACCQ: <client index>, <clientID><CRX<LF> [+CMQTTACCQ <client index>, <clientID><CR><LF>I OK Write Command Responses AT+-CMQTTACCQ=<client OK index>.<clientID> +CMQTTACCQ: <client index >, <result> ERROR Defined values <client index> a numeric parameter that identifies a client. The range of permitted values is 0 to l <max client index> a numeric parameter that identifies the max client index clientID The UTF-encoded string. It specifies a unqiue identifier for the client. The string length is from 1 to 23 <max clientID len length of <clientID> stri <result> Refer to“ Return code” chapter Examples SIM750OSIM7600 Series MQTT ATC Vl. 1 2017-09-20 Smart Machine smart Decision AT+CMQTTACCQ=0, client c OK 2.4 AT+CMQTTREL Release a client Description This command is used to release a client SIM PIN References YES Vendor Syntax Test Command Responses AT+ CMOTTREI +CMQTTREL: (0-<max client index Rcad Command Responses AT+CMQTTREL? OK Write Command Responses AT+CMQTTREL OK <client index> +CMQTTREL: <client index>, <result> ERROR Defined values client index a numeric parameter that identifies a client. The range of permitted values is 0 to 1 <ma client index a numcric parameter that identifies thc max client index Refer to"Return code " chapter Examples AT+CMQTTREL-O OK AT+CMOTTREL-0 +CMOTTREL: 0.12 ERROR SIM750O SIM7600 Series MQTT ATC V1.01 2017-09-20 SIM.Com Smart Machine smart Decision 2.5 AT+CMQTTWILLTOPIC Set the will topic Description This command is used to set will topic for the messege SIM PIN Rcfcrenccs YES Vendor ynL器X Test Command Responses AT+CMOTTWILLTOPIC-? +CMQTTWILLTOPIC (0-max client index>). (1-<max topic len>) OK Read Command Responses AT+CMOTTWILLTOPIC? OK Write Command Responses AT+CMQTTWILLTOPIC= OK <client index> <req len +CMQTTWILLTOPIC: <client index>, result> g ERROR Defined values <client index a numeric parameter that identifies a client The range of permitted values is0 to 1 <max client index> a numeric parameter that identifies the max client index max topic len> The max length of will topic The value is 1024 <req length> The length of input topic. The will topic should be UTF-encoded string. The range is from 1 to 1024. <result> Refer to"Return code"chapter Examples AT+CMQTTWILLTOPIC=0, 10 SIM750OSIM7600 Series MQTT ATC Vl. 1 2017-09-20 SIM.Com Smart Machine smart Decision 2.6 AT+CMOTTWILLMSG Set will message Description This command is used to set will message for the publish message SIM PIN Rcfcrenccs YES Vendor ynL器X Test Command Responses AT+CMQTTWILLMSG-=?+CMQTTWILLMSG (0-max client index>). (1-<max willmsg len>),(0-2) OK Read Command Responses AT+CMOTTWILLMSG? OK Write Command Responses AT+CMQTTWILLMSG=<cl OK icnt index>, <rcg length> +CMOTTWILLMSG: <client index>, result> ERROR Defined values <client index a numeric parameter that identifies a client The range of permitted values is0 to 1 <max client index> a numeric parameter that identifies the max client index max willmsg len> The max length of will message. The value is 10240 <req length> The length of input will message. The will message should be UTF-encoded string. The range is from 1 to 10240 The gos value of the will message. The range is from 0 to 2 <result> Refer to "Return code chapter Examples AT+CMQTTWILLMSG=0, 56, SIM750OSIM7600 Series MQTT ATC Vl. 1 2017-09-20

...展开详情
img
norlight

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源