![background image](http://html.mh-extra.com/html/king-pigeon/s175/s175_user-manual_1969937052.webp)
Page 52 of 55
King Pigeon Hi-Tech. Co., Ltd.
Ver 1.3
GSM/SMS/GPRS/3G/4G
Cellular IoT Gateway
20508
64 Bit data
20508
REG20508
Same as above
Same as above
12. MQTT Flag and Cloud Platform
MQTT Introduction
MQTT is a client-server based message publish/subscribe transport protocol. The MQTT protocol is lightweight,
simple, open, and easy to implement, and these features make it very versatile. In many cases, including
restricted environments such as machine to machine (M2M) communication and the Internet of Things (IoT). It
is widely used in satellite link communication sensors, occasionally dialed medical devices, smart homes, and
some miniaturized devices. The MQTT protocol runs on TCP/IP or other network protocols, providing ordered,
lossless, two-way connectivity.
MQTT Principle
There are three identities in the MQTT protocol: Publisher (Publish), Broker (Server), Subscriber (Subscribe).
Among them, the publisher and subscriber of the message are both clients, the message broker is the server,
and the message publisher can be the subscriber at the same time.
Devices use MQTT communication through only two steps.
1.Devices publish the Topic through a proxy server;
2. Users can create a account on the proxy server to subscribe to the device to achieve monitoring.
Publisher
S37X
Broker (King
Pigeon
cloud2.0)
Subscriber
(User account)
Publish message
Subscribe message
Publish message
(S37X uploads data to Broker)
Publisher
(User account)
Broker (King
Pigeon
cloud2.0)
Subscriber
(S37X)
Publish message
Subscribe message
Publish message
(
The S37X receives the downlink message from the Broker to implement control of the S37X
)
The specific implementation process is as follows:
1.Topic Publish of Devices
1)Device configuration
1.Domain name: the domain name of the broker (King Pigeon Cloud 2.0 default: mqtt.dtuip.com)
2. Port: the port of the broker (King Pigeon Cloud 2.0 default 1883)
3. MQTT device ID: The unique Identification of the device, which can be the serial number, device ID, sensor ID
or IMEI number and mac address of the module chip, ensuring uniqueness and distinguishing from other
devices.
(King Pigeon 2.0 device default ID is serial number)