Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

MQTT-based data reporting method, device, computer equipment and storage medium

A computer program and data technology, applied in the field of the Internet of Things, can solve the problems of low device data reporting efficiency, inability to provide data reporting by a single MQTT large number of devices, and reporting rate limitations, etc., so as to improve resource utilization efficiency and save device reporting resources. , the effect of less computing resources

Active Publication Date: 2022-06-03
南京戎光软件科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If you use a gateway to report thousands of devices, you need to create thousands of MQTT connections in the gateway, which will consume a lot of computing resources of the gateway
When the computing resources of the gateway are limited, it will not be able to support so many devices for reporting
In addition, even if the gateway supports it, the gateway side switches among thousands of connections, which is very inefficient
[0005] Another solution is to provide all devices with an MQTT connection for device reporting, but due to the limitation of the Internet of Things platform for a single MQTT connection traffic reporting rate, it is impossible to use a single MQTT to provide data reporting for a large number of devices at the same time
[0006] Therefore, the problem existing in the existing technology is: due to the limitation of the data reporting rate of the MQTT single-link device in the Internet of Things, when the number of connected devices is huge, it needs to occupy a large amount of gateway computing resources, and the efficiency of device data reporting is low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • MQTT-based data reporting method, device, computer equipment and storage medium
  • MQTT-based data reporting method, device, computer equipment and storage medium
  • MQTT-based data reporting method, device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] like figure 1 As shown, the MQTT-based device data reporting method of the present invention includes the following steps:

[0050] (10) Start the MQTT main link: connect to the IoT server, subscribe to the device control topic through the MQTT main link, and receive and process device control commands;

[0051] The main link subscribes to the topic of device control commands, processes device control commands, and provides an interface to report device data. The slave connection only reports device data and does not subscribe to the device control topic.

[0052] MQTT access to AWS-IoT requires parameters: server address, authentication parameters (AccessKeyId+SecretAccessKey or certificate method), client clientId, reporting data topic topicPublish, receiving command topic topicSubscribe, when the MQTT main link is started, it is assumed that the clientId is B001gateway. Initiate the main connection to AWS-IoT.

[0053] (20) Report device data: take out device data f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an MQTT-based data reporting method, device, computer equipment and storage medium, with less resource occupation and high reporting efficiency. The MQTT-based data reporting method includes the following steps: (10) start the MQTT main link: through the MQTT main link, subscribe to the device control topic, receive and process the device control command; (20) report the device data: from the device to be reported Take out the device data from the data queue, select an idle link from the MQTT main link and MQTT slave link queue, and report the device data through the interface corresponding to the idle link; (30) dynamically adjust the slave link: according to the real-time monitoring gateway to report the device data Traffic range, increase or decrease the number of MQTT slave links used for device data reporting.

Description

technical field [0001] The invention belongs to the technical field of the Internet of Things, in particular to a data reporting method, device, computer equipment and storage medium based on MQTT. Background technique [0002] In the field of IoT, reporting device data through the MQTT (Message Queuing Telemetry Transport) protocol has become a de facto standard. For example, the Amazon IoT platform supports the use of MQTT connection to report device data. [0003] Due to the massive support capability of the number of access devices, the current IoT platform device access concept is generally distributed access. Usually, one MQTT connection corresponds to one device. In this way, a single MQTT connection only reports the information of one device. At the same time, the IoT platform It also limits the reported traffic rate of a single connection, such as Amazon IoT. [0004] In actual use, for areas where devices are concentrated, it is unrealistic to allocate one MQTT co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L47/50H04L43/0894H04L43/16H04L43/06
CPCH04L47/50H04L43/0894H04L43/16H04L43/06
Inventor 赵水宁孙晓波高志岗严旌毓陈先明陈一峰蒋森林董康康翟纪坤
Owner 南京戎光软件科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products