Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Message push method and system based on MQTT and MYSQL

A technology for message push and message confirmation, applied in the field of communications, can solve problems such as inability to retransmit, message loss, and inability to ensure accurate delivery of key messages, and achieve the effect of simplified connection mapping and reliable push

Pending Publication Date: 2017-05-24
深圳市启仑智能科技有限公司
View PDF13 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing communication mode, each business of the client needs to maintain a connection with the server separately, and the maintenance is very complicated
Moreover, the communication messages between the client and the server cannot be guaranteed to be delivered reliably, and the reliability of the communication cannot be guaranteed.
For example, the communication messages between the client and the server are not persistent. After the process restarts and the device restarts, the messages are lost and cannot be retransmitted, making it impossible to guarantee the accurate delivery of key messages.

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
  • Message push method and system based on MQTT and MYSQL
  • Message push method and system based on MQTT and MYSQL
  • Message push method and system based on MQTT and MYSQL

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] MQTT (full spelling in English: Message Queuing Telemetry Transport, Message Queuing Telemetry Transport) is an instant messaging protocol developed by IBM that can be applied to the Internet of Things. The protocol supports all platforms and can connect almost all Internet-connected objects to the outside world. It is used as a communication protocol for sensors and actuators (such as connecting houses through Twitter).

[0032] MySQL is a relational database management system that keeps data in separate tables instead of putting all the data in one big war...

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 a message push method and system based on MQTT and MYSQL. The method comprises the following steps: a server establishes a communication connection with a client based on an MQTT protocol; the server calls push data from an MYSQL database according to a business instruction and sends the push data to the client that has established the communication connection; and the server monitors a replay confirmation message of the client, and resends the push data if not monitoring the replay confirmation message of the client. According to the method disclosed by the invention, the connection mapping between the server and the client is maintained by adopting the MQTT, and a plurality of clients are connected with the server through a TCP long connection, so that the connection mapping between the clients and the server is simpler. Meanwhile, by means of the repeated confirmation mechanism of the server and the repeated extraction mechanism of the client, reliable message push is ensured.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a method and system for pushing messages based on MQTT and MYSQL. Background technique [0002] With the development and popularization of the Internet and cloud computing, more and more enterprises deploy their services on the cloud. With the expansion of enterprise services, single-point servers are far from meeting the needs. The first choice is distributed, that is, to maintain a central node and a large number of service nodes. The communication between nodes and central nodes becomes a new problem, that is, how to realize reliable communication between central nodes and nodes. [0003] In the existing communication mode, each business of the client needs to maintain a separate connection with the server, and the maintenance is very complicated. Moreover, the communication messages between the client and the server cannot be guaranteed to be delivered reliabl...

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 Applications(China)
IPC IPC(8): H04L12/58H04L29/06
CPCH04L51/214H04L51/23H04L67/01
Inventor 谈光宝
Owner 深圳市启仑智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products