background image

C

hengdu Ebyte Electronic Technology Co., Ltd

EA01-S User Manual

Copyright ©2012–2020

C

hengdu Ebyte Electronic Technology Co., Ltd

14

3.14 MQTT application configuration

3.14.1 Instructions for using MQTT command set

First, AT+MQTTMODE is used to configure the working mode of MQTT to take effect after software reset and restart.

Second, AT+PDUTYPE is used to confirm whether the data frame type is MQTT transmission. Secondly,

AT+MQTTCONN is used to configure the three elements of the connection. AT+MQTTSUBTOP and

AT+MQTTPUBTOP are used to configure subscription and publishing topics. Finally, ATD*98 is used to enter the

transmission mode for data interaction. After the interaction is completed, use the c++ to enter the AT

command mode. When low power consumption is required, enter AT+WORKLOCK=0 command to release the work

lock and enter the deep sleep mode.

3.14.2 MQTT mode configuration

AT command

Response

AT+MQTTMODE=<mode>\r\n

OK

AT+MQTTMODE \r\n

OK

mode:< mode >

<type>: 0 means to disable the mqtt function, 1 means to access the Aliyun platform, 2 means to access the Onenet

platform and other IoT platforms that support the standard MQTT protocol, and 3 means to access the Baidu cloud

platform.

Note: When power-off saving is required, input AT+NRB command will save the parameters to the flash, and the

automatic restart will take effect.

3.14.3 MQTT address and port configuration

AT command

Response

AT+MQTTADDR=<addr>,<port>\r\n

OK

AT+MQTTADDR \r\n

OK

address: <addr>,port: <port>

(1) When theMQTT mode is 0, input this command will prompt "MQTT closed". When the MQTT mode is 1, configure

the address and port of the Aliyun platform. When the MQTT mode is 2, configure the address and port of the Onenet

platform or other platforms. When the mqtt mode is 3, configure the address and port of the Baidu cloud platform.

Note: The domain name addresses of the three major platforms of Baidu cloud, Onenet, and Aliyun will generally not

Содержание EA01-S

Страница 1: ...EA01 S User Manual NB IoT Module ...

Страница 2: ...WARE RESTART 8 3 7 APPLICATION OF POWER SAVING LOCK WORKLOCK 8 3 8 SERIAL PORT BAUD RATE SETTING 9 3 9 COMMUNICATION PROTOCOL TYPE CONFIGURATION 9 3 10 TCP UDP TRANSPARENT TRANSMISSION CHANNEL FUNCTION CONFIGURATION 10 3 11 HEARTBEAT PACKET FUNCTION CONFIGURATION 11 3 12 REGISTRATION PACKET FUNCTION CONFIGURATION 12 3 13 MODBUS RTU TCP CONVERSION FUNCTION 13 3 14 MQTT APPLICATION CONFIGURATION 14 ...

Страница 3: ...st and stable It supports different power consumption modes such as deep sleep normal sleep standby and low power consumption working modes and the lowest power consumption can reach 0 7uA 1 2 Features Work at B3 B5 B8 frequency band Support TCP UDP MQTT COAP LwM2M and other protocols Support Telecom Cloud CTWING Huawei Cloud OceanConnect Unicom Cloud China Mobile Onenet Cloud Platform Alibaba Clo...

Страница 4: ...tatus 200 500mA typical value 320mA Idle state non business data interaction state 30 60mA typical value 45mA PSM status 0 7uA typical value Frequency 699MHz 960MHz 1 71GHz 2 2GHz Tx Power 20dBm 2dB USIM interface Support 1 8V 3V adaptive USIM card Firmware upgrade Serial port and FOTA upgrade Physical feature Size 17 7 0 15 mm 15 8 0 15 mm 2 0 0 2 mm Temperature range Normal operating temperature...

Страница 5: ...right 2012 2020 Chengdu Ebyte Electronic Technology Co Ltd 4 2 2 Pin definition 2 3 Pin type Pin Description IO Digital bidirectional port DI Digital input port DO Digital output port AI Analog input port AO Analog output port PI Power input port PO Power output port ...

Страница 6: ... pulse width of the high level signal is greater than 100us and less than 5s it is regarded as a wake up signal when it is greater than 6 seconds it is regarded as a reset signal There is a pull down resistor inside 16 NETLIGHT DO Network status indication Fast flashing indicator while on the network 17 RXD DI AT interactive and transparent transmission interface 3V voltage 18 TXD DO AT interactiv...

Страница 7: ...tput after successful connection and high level output after disconnection IO_ Rst restore the factory settings This pin is pulled down for about 1 second If the serial port returns to factory reset the factory settings will be restored and the automatic restart will take effect 3 Ebyte extended command and function description 3 1Ebyte transparent transmission application enable AT command Respon...

Страница 8: ... on Note When power off saving is required input AT NRB command will save the parameters to the flash and the automatic restart will take effect 3 3Configure DTU function application to enter transmission mode by default after power on AT command Response AT DTUUSER enable r n OK AT DTUUSER DTU enable enable 1 The AT command configuration selects whether to enter the transmission mode by default w...

Страница 9: ... the AT parameters need to be memorized after power off first configure the parameters through the AT command and then input the AT NRB command to save the parameters to the flash 3 7Application of power saving lock WORKLOCK AT command Respond AT WORKLOCK enable r n OK 1 If module is in deep sleep mode for a long time chip power down state in order to ensure that the data interaction fails to ente...

Страница 10: ...he baud rate is dynamically switched if it is set to 1 it will be saved to NV and restarted immediately if it is set to 0 it means dynamic effect and the other party needs to switch the baud rate synchronously rate 3 9Communication protocol type configuration AT command Response AT PDUTYPE pdu_type r n OK AT PDUTYPE r n type pdu_type OK 1 Currently supports MQTT COAP TCP UDP and Ebyte cloud Curren...

Страница 11: ...nd then connect to socket 0 2 Configuration parameter description addr Support IP address or domain name the maximum byte length is 50 bytes Port The port of the remote server local_port Local port 0 means freely selected by tcpip the default is 0 type 0 means TCP protocol 1 means UDP protocol Note When you need to save after power off input AT NRB command to save the parameters to the flash and a...

Страница 12: ...ff saving is required input AT NRB command will save the parameters to the flash and the automatic restart will take effect 3 11 2 Send heartbeat packet command AT command Response AT SENDHEART send r n OK 1 Input AT command AT SENDHEART 1 then the heartbeat packet can be sent 2 If pdu_type is selected as TCP UDP the TCP UDP heartbeat packet will be sent if it is MQTT the MQTT heartbeat packet wil...

Страница 13: ...he unit is 500ms the default value is 120 which means 120 500ms 60s this parameter AT NRB restarts to take effect Note When power off saving is required input AT NRB command will save the parameters to the flash and the automatic restart will take effect 3 12 Registration packet function configuration 3 12 1 Registration packet mode configuration AT command Response AT REGMOD mode r n OK AT REGMOD...

Страница 14: ...it will automatically convert to Modbus TCP format data and send it wirelessly When the serial port receives Modbus TCP format data it will automatically convert to Modbus RTU format data and sent wirelessly 3 13 2 Modbus RTU TCP enable configuration AT command Response AT MODBUS enable Id r n OK AT MODBUS r n OK enable enable Id Id 1 Configuration parameter description enable 0 means to turn off ...

Страница 15: ...mode 3 14 2 MQTT mode configuration AT command Response AT MQTTMODE mode r n OK AT MQTTMODE r n OK mode mode type 0 means to disable the mqtt function 1 means to access the Aliyun platform 2 means to access the Onenet platform and other IoT platforms that support the standard MQTT protocol and 3 means to access the Baidu cloud platform Note When power off saving is required input AT NRB command wi...

Страница 16: ...alue2 r n OK AT MQTTCONN r n OK value0 value1 value2 The length of each of the three elements is no more than 40 bytes Note When power off saving is required input AT NRB command will save the parameters to the flash and the automatic restart will take effect 3 14 5 MQTT subscription topic configuration AT command Response AT MQTTSUBTOP topicName qos r n OK AT MQTTSUBTOP r n OK qos qos topicName t...

Страница 17: ...DR is used to configure the address and port of the COAP server and enable the COAP function at the same time and the AT NRB for software resets to take effect Secondly AT PDUTYPE is used to select the data protocol type as COAP Then AT ADDOPTION AT ADDTOKEN AT COAPMINUS are used to add or delete option or token in the message Finally AT COAPHEADER is used to send messages without payload ATD 98 e...

Страница 18: ...x type type value value index The serial number of the option ranging from 0 to 7 a maximum of 8 options can be configured and the storage space is 1024 bytes type Tthe number of option as shown in the figure below For example type 11 indicating that the option resource type is Uri Path value the specific content of the option such as Uri Path path option specific value is temperature If the data ...

Страница 19: ...OKEN 7A5B69EF Read command AT ADDTOKEN AT ADDTOKEN 7A5B69EF 3 15 5 Command for removing the option or token in the message AT command Response AT COAPMINUS token option r n OK token 1 remove the token in the message option 1 remove the option in the message 3 15 6 Command for COAP message without payload AT command Response AT COAPHEADER type code r n OK AT COAPHEADER r n OK type token code code t...

Страница 20: ...iving description Serial port prints the header information of the received COAP data frame response code code type type tid tid ending with r n code indicates the function code of the server response type indicates the type of the received message tid indicates the message id decimal format of the received message If there is a token in the received message the serial port prints the token token ...

Страница 21: ...and transparent transmission description First the serial port reports System power on mode mode to indicate the power on mode of the module mode 0 means normal power on mode mode 1 means that the reset pin hardware reset and power on mode 2 means software reset and power on mode 3 means RTC wakes up from deep sleep and power on mode 4 means the serial port RX pin wakes up from deep sleep and powe...

Страница 22: ...age if exceeding the maximum the module will be permanently damaged Please check the stability of the power supply Voltage can not fluctuate greatly and frequently When designing the power supply circuit for the module it is often recommended to reserve more than 30 of the margin so the whole machine is beneficial for long term stable operation The module should be as far away as possible from the...

Страница 23: ...enna is near metal object or put in a metal case Power register was set incorrectly air data rate is set as too high the higher the air data rate the shorter the distance The power supply low voltage under room temperature is lower than recommended value the lower the voltage the lower the transmitting power Due to antenna quality or poor matching between antenna and module 7 2 Module is easy to d...

Страница 24: ...t temperature max Tsmax Max preheating temp 150 200 Preheat Time Tsmin to Tsmax ts Preheating time 60 120 sec 60 120 sec Average ramp up rate Tsmax to Tp Average ramp up rate 3 second max 3 second max Liquidous Temperature TL Liquid phase temp 183 217 Time tL Maintained Above TL Time below liquid phase line 60 90 sec 30 90 sec Peak temperature Tp Peak temp 220 235 230 250 Aveage ramp down rate Tp ...

Страница 25: ...0 2020 03 Initial version Xxx 1 3 2020 11 10 Command upgrade Ren About us Technical support support cdebyte com Documents and RF Setting software download link www ebyte com Thank you for using Ebyte products Please contact us with any questions or suggestions info cdebyte com Official hotline 028 61399028 Web www ebyte com Address B5 Mould Park 199 Xiqu Ave High tech District Sichuan China ...

Отзывы: