CN108965447A - The method and system that data are acquired and remotely controlled - Google Patents
The method and system that data are acquired and remotely controlled Download PDFInfo
- Publication number
- CN108965447A CN108965447A CN201810843313.1A CN201810843313A CN108965447A CN 108965447 A CN108965447 A CN 108965447A CN 201810843313 A CN201810843313 A CN 201810843313A CN 108965447 A CN108965447 A CN 108965447A
- Authority
- CN
- China
- Prior art keywords
- message
- equipment end
- mqtt server
- control terminal
- publisher
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present invention relates to network communication fields to propose a kind of method data acquisition and remotely controlled, comprising: equipment end connects MQTT server with control terminal aiming at the problem that publication and subscription of theme in available data acquisition and long-range control need predefined parameter;Equipment end submits the machine code of itself and random string to control terminal to carry out binding storage;Equipment end adds the machine code of itself to give out information as issuing subject to MQTT server using Fixed CP, and control terminal adds asterisk wildcard with Fixed CP to subscribe to theme to MQTT server and subscribing to message;Equipment end adds random string with the machine code of itself to subscribe to theme to MQTT server and subscribing to message, the subscription theme of control terminal using equipment end gives out information as issuing subject to MQTT server, and MQTT server is according to subscription theme and issuing subject automatic push message.The present invention is suitable for the data acquisition and long-range control of smart machine.
Description
Technical field
The present invention relates to network communication field, in particular to a kind of method and system data acquisition and remotely controlled.
Background technique
MQTT (Message Queuing Telemetry Transport, Message queue telemetering transmission) is an open source
Lightweight communication protocol, it using publication and subscribe to message push mode be suitable for low bandwidth, unreliable connection, insertion
The equipment of the CPU such as formula equipment memory source anxiety.
Publication No. is that the Chinese patent of CN104639625A discloses a kind of data concentrator acquisition control based on MQTT
Method, this method are to connect MQTT server using MQTT agreement, and the publication and subscription of theme are carried out according to predefined parameter,
Then the forwarding of message is carried out by MQTT server to realize the acquisition and remote control function of data, there are following for the program
Some problems:
1) mode of preliminary setting parameter, needs to expend certain manpower and material resources, and efficiency is lower;
2) parameter is once set at very troublesome if needing to be modified after equipment operation;
3) there are the risk that parameter repeats mistakes, the mistake for causing data acquisition and remotely controlling.
Summary of the invention
The technical problems to be solved by the present invention are: overcoming in existing data acquisition and remote control process based on MQTT
The problem of publication and subscription of theme need predefined parameter proposes a kind of method and system data acquisition and remotely controlled.
The present invention solves above-mentioned technical problem, the technical solution adopted is that:
The method that data are acquired and remotely controlled, comprising the following steps:
S0, equipment end and control terminal connect MQTT server;Equipment end submit itself machine code and random string to
Control terminal carries out binding storage;
S1, equipment end add the machine code of itself to give out information as issuing subject to MQTT server using Fixed CP, control
End is to subscribe to theme to disappear to the subscription of MQTT server plus asterisk wildcard with the corresponding Fixed CP of equipment end of required acquisition data
Breath, MQTT server give out information according to the subscription theme automatic push equipment end of control terminal to control terminal;
S2, equipment end add random string with the machine code of itself to subscribe to theme to MQTT server and subscribing to message, control
End processed adds random string to give out information as issuing subject to MQTT server using machine code, and MQTT server is according to equipment end
Subscription theme automatic push control terminal gives out information to corresponding equipment end.
To guarantee that the confirmation of message receives, the improvement with the method remotely controlled, institute are acquired as the equipment end data
State method further include: message is stored while publisher issues message to locally, the subscriber of message receives message
Backward publisher returns to acknowledgement message, and whether publisher receives correct acknowledgement message in time, if not, initiation message retransmits machine
System;Wherein, when publisher is equipment end, subscriber is control terminal, and when publisher is control terminal, subscriber is equipment end.
As the equipment end data acquire and remotely control method it is preferred, the message includes message identifier,
It includes following judgement that whether the publisher receives correct acknowledgement message in time: publisher judges whether to connect in the given time
Receive acknowledgement message;And/or publisher judge the message identifier in acknowledgement message whether with publication when message in message mark
It is consistent to know symbol.
As the equipment end data acquire and remotely control method it is preferred, the message retransmission mechanism include: hair
Cloth root gives out information again by MQTT server to recipient according to the message of storage;And/or when publisher is equipment end
When, equipment end sends the message to control terminal by http protocol according to the message of storage.
The optimization with the method remotely controlled, equipment end timing distribution apparatus end state are acquired as the equipment end data
Message give MQTT server;And/or the message of distribution apparatus end state takes to MQTT when the state of equipment end changes
Business device.
In order to solve the above technical problem, the present invention further proposes the system a kind of data acquisition and remotely controlled, the systems
System includes equipment end, MQTT server and control terminal, MQTT server connection equipment end and control terminal for equipment end and
The forwarding of message between control terminal, the machine code and random string that equipment end submits equipment end by http protocol are to control terminal
Carry out binding storage;Equipment end is used to add the machine code to give out information simultaneously as issuing subject to MQTT server using Fixed CP
Add random string with the machine code to subscribe to theme to MQTT server and subscribing to message;Control terminal with Fixed CP for being added
Asterisk wildcard is to subscribe to theme to subscribe to message to MQTT server and add random string to take as issuing subject to MQTT using machine code
Business device gives out information.
To guarantee that the confirmation of message receives, as the improvement of equipment end data acquisition and the system remotely controlled, if
Standby end and control terminal further include message receipt module, judgment module and message retransmission module, and the message receipt module is for sending out
Message is stored while cloth side is issued message to locally, the subscriber of message returns back after receiving message to publisher
Message is held, when the judgment module is used to judge whether publisher receives correct acknowledgement message in time, if not, initiation message
Retransmit module.
The optimization with the system remotely controlled is acquired as the equipment end data, the message includes message identifier,
The judgment module judges whether to receive acknowledgement message in the given time for publisher;And/or publisher judges receipt
Whether the message identifier in message is consistent with the message identifier in message when publication.
The optimization with the system remotely controlled is acquired as the equipment end data, the message retransmission module is for issuing
Root gives out information again by MQTT server to equipment end according to the message of storage;And/or when publisher is equipment end,
Equipment end sends the message to control terminal by http protocol according to the message of storage.
The optimization with the system remotely controlled, equipment end timing distribution apparatus end state are acquired as the equipment end data
Message give MQTT server;
And/or the message of distribution apparatus end state gives MQTT server when the state of equipment end changes.
The beneficial effects of the present invention are:
1) equipment end adds random string with the machine code of equipment end to subscribe to theme to MQTT server and subscribing to message, control
End processed adds random string to give out information as issuing subject to MQTT server using machine code, and the control instruction of such control terminal can
The arbitrarily selected specific parameter for needing to control carries out the publication of control instruction, without being led using predetermined parameter
The subscription of topic is, it can be achieved that control instruction is full automatic sends and receives.
2) equipment end adds the machine code to give out information as issuing subject to MQTT server using Fixed CP;Control terminal with
Fixed CP adds asterisk wildcard to subscribe to theme to MQTT server and subscribing to message;Such equipment end can be on arbitrarily selected specific needs
The parameter of biography is acquired the publication of data, without carrying out the subscription of theme using predetermined parameter, it can be achieved that adopting
Data are full automatic sends and receives for collection, while control terminal can receive the acquisition data at all devices end, more without subscribing to
The resource of a theme consumption control terminal.
3) joined message acknowledgement mechanism, while publisher issues message store message to local, message
Subscriber receives and returns to acknowledgement message to publisher after message, ensure that the confirmation of message receives and will not repeat to receive.
4) when publisher receives correct acknowledgement message not in time, then initiation message retransmission mechanism, i.e. publisher are according to depositing
The message of storage gives out information again by MQTT server to recipient, ensure that message is the transmission again when receiving successfully;
When still receiving correct acknowledgement message not in time such as publisher, when publisher is equipment end, equipment end is according to the message of storage
The message is sent to control terminal by http protocol.It so ensure that when MQTT server delay machine, equipment end acquires data
Upload can also be normally carried out.
Detailed description of the invention
Fig. 1 is the overall flow schematic diagram of data of embodiment of the present invention acquisition and long-range control method.
Fig. 2 is the flow diagram of data of embodiment of the present invention acquisition applications scene.
Fig. 3 is that the embodiment of the present invention is remotely controlled with the flow diagram for using scene.
Fig. 4 is the structural schematic diagram of a kind of data acquisition and tele-control system that the embodiment of the present invention proposes.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, right with reference to the accompanying drawings and embodiments
The present invention is further elaborated.
Such as background technique, there are the publication of theme and subscription in existing data acquisition and remote control process based on MQTT
The problem of needing predefined parameter, in order to overcome such defect, the embodiment of the present invention proposes a kind of equipment end data acquisition
The method and system remotely controlled.
The method that data are acquired and remotely controlled, comprising the following steps:
S0, equipment end and control terminal connect MQTT server;Equipment end submit itself machine code and random string to
Control terminal carries out binding storage;
S1, equipment end add the machine code of itself to give out information as issuing subject to MQTT server using Fixed CP, control
End is to subscribe to theme to disappear to the subscription of MQTT server plus asterisk wildcard with the corresponding Fixed CP of equipment end of required acquisition data
Breath, MQTT server give out information according to the subscription theme automatic push equipment end of control terminal to control terminal;
S2, equipment end add random string with the machine code of itself to subscribe to theme to MQTT server and subscribing to message, control
End processed adds random string to give out information as issuing subject to MQTT server using machine code, and MQTT server is according to equipment end
Subscription theme automatic push control terminal gives out information to corresponding equipment end.
The system that data are acquired and remotely controlled, including equipment end, MQTT server and control terminal, the MQTT server
The forwarding of equipment end and control terminal for message between equipment end and control terminal is connected, equipment end submits equipment by http protocol
The machine code and random string at end carry out binding storage to control terminal;Equipment end is used to add the machine code to be with Fixed CP
Issuing subject gives out information to MQTT server and adds random string with the machine code to subscribe to theme to MQTT server
Subscribe to message;Control terminal is used to that asterisk wildcard to be added to subscribe to message and to subscribe to theme to MQTT server with machine code with Fixed CP
Adding random string is that issuing subject gives out information to MQTT server.
Control terminal adds random string to give out information as issuing subject to MQTT server using machine code;Equipment end with comprising
The message of Fixed CP is to subscribe to theme to subscribe to message to MQTT server;Such control terminal arbitrarily selected specifically can need to control
Parameter carry out control command publication, without using predetermined parameter carry out theme subscription, it can be achieved that control
Order automatically sends and receives.
Embodiment
As shown in Figure 1, the method that a kind of data that the embodiment of the present invention proposes are acquired and remotely controlled, including following step
It is rapid:
S0, preparation: equipment end connects MQTT server with control terminal;Equipment end submits the machine code and random of itself
Character string carries out binding storage to control terminal;Wherein, equipment end can be used http protocol and be communicated with control terminal.
When S1, data acquisition, equipment end adds the machine code of itself to send out as issuing subject to MQTT server using Fixed CP
Cloth message, control terminal are to subscribe to theme to take to MQTT plus asterisk wildcard with the corresponding Fixed CP of equipment end of required acquisition data
Device of being engaged in subscribes to message, and MQTT server gives out information according to the subscription theme automatic push equipment end of control terminal to control terminal;
When S2, long-range control, equipment end adds random string with the machine code of itself to subscribe to theme to MQTT server
Message is subscribed to, control terminal adds random string to give out information as issuing subject to MQTT server using machine code, MQTT server
According to giving out information to corresponding equipment end for the subscription theme automatic push control terminal of equipment end.
Above equipment end can be the smart machines ends such as intelligent appliance, intelligent things equipment or intelligent vending machine, above-mentioned control
End processed can be mobile phone, cloud or server etc..
As shown in Fig. 2, the detailed process of step S1 is as follows:
S101, equipment end add machine code to be the theme to give out information to MQTT server and synchronous in local guarantor with Fixed CP
Deposit the message.The message includes message identifier and acquisition data, which includes the state of equipment end, the message identifier
UUID (Universally Unique Identifier, Universally Unique Identifier) generating mode can be used to guarantee that this disappears in symbol
The unique of identifier is ceased, and the transmission of message can regularly send above and be also possible to be sent out when the state of equipment end changes
Cloth, to inform control terminal in time.
S102, MQTT server add rule that asterisk wildcard is the theme by above-mentioned message according to the Fixed CP that control terminal is subscribed to
It is sent to control terminal.
S103., control terminal after receiving the message, parses the message, obtains message identifier and machine code, according to machine
Code inquires theme ordered by equipment end, i.e., the machine code stored in above-mentioned binding storing process adds random string.
Further, control terminal, which receives, judges whether the message repeats according to message identifier after message, such as repeats, then
Remove duplicate message, guarantees the uniqueness and validity of message.
S104, control terminal with machine code add random string be the theme publication one have message identifier acknowledgement message
To MQTT server.
The rule that S105, MQTT server add random string to be the theme according to the machine code that equipment end is subscribed to is by above-mentioned time
It holds message and is sent to corresponding equipment end.
Whether S106, equipment end judgement receive acknowledgement message in the given time and judge the message mark in acknowledgement message
Whether consistent with message identifier in local publication in message is stored know symbol, such as both, then enter step S107,
Otherwise, S108 is entered step.
S107, confirm that the message flag accords with corresponding message and has been sent to control terminal, delete the correspondence message being locally stored
The message of identifier, process terminate.
S108, equipment end judge whether the limitation more than message retransmission number, if not, S109 is entered step, otherwise, into
Enter step S110.
S109, MQTT server being sent a message to according to the correspondence message being locally stored again, message retransmission number adds 1,
Return step S102.
S110, equipment end by http protocol send storage correspondence message identifier message to control terminal, control terminal
It receives and judges whether the message repeats according to message identifier after message, such as repeat, then remove duplicate message, process knot
Beam.
Compared with prior art, the embodiment of the present invention has the advantage that
Equipment end adds machine code to give out information as issuing subject to MQTT server using Fixed CP;Before control terminal is with fixation
Sew plus asterisk wildcard is to subscribe to theme to subscribe to message to MQTT server;Such equipment end can the arbitrarily selected specific ginseng for needing to upload
Number is acquired the publication of data, without carrying out the subscription of theme using predetermined parameter, it can be achieved that full automatic
Acquisition data send and receive, while control terminal can receive the acquisition data at all devices end, without subscribing to multiple masters
The resource of topic consumption control terminal.
It joined message acknowledgement mechanism, message stored while equipment end is issued message to local, control termination
Acknowledgement message is returned to equipment end after receiving message and checks whether message repeats according to message identifier, is deleted if repeating,
It ensure that the confirmation of message sink and will not repeat to receive.
When equipment end receives correct acknowledgement message not in time, then initiation message retransmission mechanism, i.e., equipment end is according to storage
Message give out information again by MQTT server to control terminal, ensure that the multiple transmission of message;Such as equipment end not yet and
When receiving correct acknowledgement message, equipment end sends a message to control terminal by http protocol according to the message of storage.So
It ensure that when MQTT server delay machine, the upload of equipment end acquisition data can be also normally carried out.
As shown in figure 3, the concrete operations process remotely controlled is as follows:
S201, control terminal find out the corresponding random words of the machine code according to the machine code of the equipment end of required control
Symbol string, control terminal add random string to be the theme to issue control message with machine code, the control message include message identifier and
Specific control content, and the message is stored in local, which can be used UUID (Universally Unique
Identifier, Universally Unique Identifier) generating mode guarantee is uniquely.
S202, MQTT server add rule that random string is the theme by the control according to the machine code that equipment end is subscribed to
Message is sent to the equipment end of corresponding machine code.
S203, equipment end, which receive, judges whether the message repeats according to message identifier after message, such as repeats, then removes
Duplicate message, otherwise equipment end executes corresponding operation according to message content control instruction.
S204, equipment end add machine code to be the theme to send the acknowledgement message comprising message identifier to MQTT with Fixed CP
In server.
S205, MQTT server disappear the receipt according to the rule that the Fixed CP that control terminal is subscribed to adds asterisk wildcard to be the theme
Breath is sent to control terminal.
Whether S206, control terminal judgement receive acknowledgement message in the given time and judge the message mark in acknowledgement message
Whether consistent with message identifier in local publication in message is stored know symbol, such as both, then enter step S207,
Otherwise, S208 is entered step.
S207, confirm that the message flag accords with corresponding message and has been sent to equipment end, delete the correspondence message being locally stored
The message of identifier, process terminate.
S208, control terminal judge whether the limitation more than message retransmission number, if not, S209 is entered step, otherwise, into
Enter step S210.
It should be noted that the message retransmission number in message retransmission number and S108 step in the step can be phase
Deng, it is also possible to unequal, the two is divided into positioned at control terminal and equipment end, can be configured respectively.
S209, MQTT server being sent a message to according to the correspondence message being locally stored again, message retransmission number adds 1,
Return step S202.
S210, control terminal mark control message send failure, and process terminates.
Compared with prior art, the embodiment of the present invention has the advantage that
Control terminal adds random string to give out information as issuing subject to MQTT server using machine code;Equipment end with comprising
The message of Fixed CP is to subscribe to theme to subscribe to message to MQTT server;Such control terminal arbitrarily selected specifically can need to control
Parameter carry out control command publication, without using predetermined parameter carry out theme subscription, it can be achieved that control
Order automatically sends and receives.
It joined message acknowledgement mechanism, message stored while control terminal is issued message to local, equipment termination
Acknowledgement message is returned to control terminal after receiving message and checks whether message repeats according to message identifier, is deleted if repeating,
It ensure that the confirmation of message sink and will not repeat to receive.
When control terminal receives correct acknowledgement message not in time, then initiation message retransmission mechanism, i.e., control terminal is according to storage
Message gives out information again by MQTT server to equipment end, ensure that the multiple transmission of message.
As shown in figure 4, the system that data are acquired and remotely controlled, including equipment end, MQTT server and control terminal, it is described
MQTT server connects the forwarding of equipment end and control terminal for message between equipment end and control terminal, and equipment end is assisted by HTTP
The machine code and random string of view submission equipment end carry out binding storage to control terminal;Equipment end is used to add institute with Fixed CP
State machine code be issuing subject give out information to MQTT server and with the machine code add random string be subscribe to theme to
MQTT server subscribes to message;Control terminal is used to that asterisk wildcard to be added to subscribe to message to subscribe to theme to MQTT server with Fixed CP
And random string is added to give out information as issuing subject to MQTT server using machine code.
Wherein, the message of equipment end timing distribution apparatus end state gives MQTT server;And/or the state when equipment end
The message of distribution apparatus end state gives MQTT server when changing.
Equipment end and control terminal further include message receipt module, judgment module and message retransmission module, above-mentioned message receipt
Storage message receives after message to local, the subscriber of message to hair while module issues message for publisher
Cloth side returns to acknowledgement message, when above-mentioned judgment module is used to judge whether publisher receives correct acknowledgement message in time, if not,
Then initiation message retransmits module.
Above-mentioned message includes message identifier, and above-mentioned judgment module judges whether to receive in the given time for publisher
To acknowledgement message;And/or publisher judge the message identifier in acknowledgement message whether with publication when message in message identifier
Symbol is consistent.
Above-mentioned message retransmission module include: publisher according to the message of storage again by MQTT server give out information to
Recipient;And/or when publisher is equipment end, equipment end sends above-mentioned message by http protocol according to the message of storage
To control terminal.
Claims (10)
1. the method that data are acquired and remotely controlled, which comprises the following steps:
S0, equipment end and control terminal connect MQTT server;The machine code and random string that equipment end submits itself are to control
End carries out binding storage;
S1, equipment end add the machine code of itself to give out information as issuing subject to MQTT server using Fixed CP, control terminal with
The corresponding Fixed CP of equipment end of required acquisition data is to subscribe to theme to subscribe to message to MQTT server plus asterisk wildcard,
MQTT server gives out information according to the subscription theme automatic push equipment end of control terminal to control terminal;
S2, equipment end add random string with the machine code of itself to subscribe to theme to MQTT server and subscribing to message, control terminal
It gives out information using machine code plus random string as issuing subject to MQTT server, MQTT server is according to the subscription of equipment end
Theme automatic push control terminal gives out information to corresponding equipment end.
2. the method as described in claim 1 data acquisition and remotely controlled, which is characterized in that further include: publisher will disappear
To local, the subscriber of message receives after message to publisher's return acknowledgement message storage message breath while issued,
Whether publisher receives correct acknowledgement message in time, if not, initiation message retransmission mechanism;Wherein, when publisher is equipment
When end, subscriber is control terminal, and when publisher is control terminal, subscriber is equipment end.
3. the method as claimed in claim 2 data acquisition and remotely controlled, which is characterized in that the message includes message mark
Know symbol, it includes following judgement that whether the publisher receives correct acknowledgement message in time: publisher judges whether in pre- timing
It is interior to receive acknowledgement message;
And/or publisher judges whether the message identifier in acknowledgement message is consistent with the message identifier in message when publication.
4. the method as claimed in claim 2 data acquisition and remotely controlled, which is characterized in that the message retransmission mechanism packet
Include: publisher gives out information again by MQTT server to recipient according to the message of storage;
And/or when publisher is equipment end, equipment end sends the message to control by http protocol according to the message of storage
End processed.
5. the method as described in claim 1 data acquisition and remotely controlled, which is characterized in that equipment end timing distribution apparatus
The message of end state gives MQTT server;
And/or the message of distribution apparatus end state gives MQTT server when the state of equipment end changes.
6. the system that data are acquired and remotely controlled, which is characterized in that described including equipment end, MQTT server and control terminal
MQTT server connects the forwarding of equipment end and control terminal for message between equipment end and control terminal, and equipment end is assisted by HTTP
The machine code and random string of view submission equipment end carry out binding storage to control terminal;Equipment end is used to add institute with Fixed CP
State machine code be issuing subject give out information to MQTT server and with the machine code add random string be subscribe to theme to
MQTT server subscribes to message;Control terminal is used to that asterisk wildcard to be added to subscribe to message to subscribe to theme to MQTT server with Fixed CP
And random string is added to give out information as issuing subject to MQTT server using machine code.
7. the system as claimed in claim 6 data acquisition and remotely controlled, which is characterized in that equipment end and control terminal are also wrapped
Message receipt module, judgment module and message retransmission module are included, the message receipt module sends out message for publisher
Message is stored while cloth to local, the subscriber of message receives after message to publisher's return acknowledgement message, the judgement
When module is used to judge whether publisher receives correct acknowledgement message in time, if not, initiation message retransmits module.
8. the system as claimed in claim 7 data acquisition and remotely controlled, which is characterized in that the message includes message mark
Know symbol, the judgment module judges whether to receive acknowledgement message in the given time for publisher;And/or publisher sentences
Whether the message identifier in disconnected acknowledgement message is consistent with the message identifier in message when publication.
9. the system as claimed in claim 7 data acquisition and remotely controlled, which is characterized in that the message retransmission module is used
It is given out information again by MQTT server to recipient in publisher according to the message of storage;And/or when publisher is equipment
When end, equipment end sends the message to control terminal by http protocol according to the message of storage.
10. the system as claimed in claim 6 data acquisition and remotely controlled, which is characterized in that equipment end timing publication is set
The message of standby end state gives MQTT server;And/or when the state of equipment end changes distribution apparatus end state message
Give MQTT server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810843313.1A CN108965447A (en) | 2018-07-27 | 2018-07-27 | The method and system that data are acquired and remotely controlled |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810843313.1A CN108965447A (en) | 2018-07-27 | 2018-07-27 | The method and system that data are acquired and remotely controlled |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108965447A true CN108965447A (en) | 2018-12-07 |
Family
ID=64465639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810843313.1A Pending CN108965447A (en) | 2018-07-27 | 2018-07-27 | The method and system that data are acquired and remotely controlled |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965447A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587178A (en) * | 2019-01-23 | 2019-04-05 | 四川虹美智能科技有限公司 | A kind of intelligent appliance encryption control system and method based on MQTT |
CN110320875A (en) * | 2019-07-12 | 2019-10-11 | 华中科技大学 | A kind of PAC cloud operational system based on MQTT agreement |
CN110336736A (en) * | 2019-05-27 | 2019-10-15 | 四川长虹电器股份有限公司 | The shared method subscribed to is realized based on MQTT server cluster |
CN110673502A (en) * | 2019-10-14 | 2020-01-10 | 珠海格力电器股份有限公司 | Quick response method and system of intelligent device, storage medium and network side device |
CN110913000A (en) * | 2019-11-27 | 2020-03-24 | 浙江华诺康科技有限公司 | Method, system and computer readable storage medium for processing service information |
CN111262911A (en) * | 2020-01-09 | 2020-06-09 | 中国建设银行股份有限公司 | Projector control method, device, equipment and storage medium |
CN111901333A (en) * | 2020-07-27 | 2020-11-06 | 广州卓远虚拟现实科技有限公司 | MQTT protocol-based VR (virtual reality) man-machine interaction method and readable storage medium |
CN112073960A (en) * | 2020-08-14 | 2020-12-11 | 浙江三维通信科技有限公司 | Decoding method, decoding system, electronic device, and storage medium |
CN112261088A (en) * | 2020-09-27 | 2021-01-22 | 华数传媒网络有限公司 | Set top box remote control method |
CN112804682A (en) * | 2020-12-31 | 2021-05-14 | 新奥数能科技有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN113055591A (en) * | 2021-03-08 | 2021-06-29 | 深圳创维-Rgb电子有限公司 | Multi-machine position wireless control method, system, device and readable storage medium thereof |
CN113239307A (en) * | 2021-05-17 | 2021-08-10 | 北京百度网讯科技有限公司 | Method and device for storing message theme |
CN113449234A (en) * | 2021-05-11 | 2021-09-28 | 中国人民解放军63729部队 | Method for multi-stage subscription and release of data |
CN113593720A (en) * | 2020-04-30 | 2021-11-02 | 京东方科技集团股份有限公司 | Remote consultation control method and system, computer equipment and medium |
CN113893407A (en) * | 2021-10-15 | 2022-01-07 | 上饶市中科院云计算中心大数据研究院 | Infusion set and system of intelligence early warning |
WO2022104555A1 (en) * | 2020-11-17 | 2022-05-27 | Oppo广东移动通信有限公司 | Mqtt protocol-based communication method and device |
CN114598944A (en) * | 2022-03-28 | 2022-06-07 | 重庆长安汽车股份有限公司 | Periodic signal processing system, method, computer device and storage medium |
WO2023098816A1 (en) * | 2021-12-02 | 2023-06-08 | 中兴通讯股份有限公司 | Device communication method and apparatus based on mqtt protocol |
CN117014850A (en) * | 2023-10-07 | 2023-11-07 | 深圳市鲸视科技有限公司 | Device searching method, system, device, computer device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106130882A (en) * | 2016-07-13 | 2016-11-16 | 北京百度网讯科技有限公司 | For the method and apparatus transmitting message |
CN106385410A (en) * | 2016-09-08 | 2017-02-08 | 四川长虹电器股份有限公司 | Intelligent household appliance control system based on MQTT |
CN106657130A (en) * | 2017-01-09 | 2017-05-10 | 上海浦东软件园汇智软件发展有限公司 | Access authentication method and access authentication equipment based on MQTT |
CN108173739A (en) * | 2017-11-29 | 2018-06-15 | 成都东方盛行电子有限责任公司 | A kind of cloud service message treatment method based on MQTT |
-
2018
- 2018-07-27 CN CN201810843313.1A patent/CN108965447A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106130882A (en) * | 2016-07-13 | 2016-11-16 | 北京百度网讯科技有限公司 | For the method and apparatus transmitting message |
CN106385410A (en) * | 2016-09-08 | 2017-02-08 | 四川长虹电器股份有限公司 | Intelligent household appliance control system based on MQTT |
CN106657130A (en) * | 2017-01-09 | 2017-05-10 | 上海浦东软件园汇智软件发展有限公司 | Access authentication method and access authentication equipment based on MQTT |
CN108173739A (en) * | 2017-11-29 | 2018-06-15 | 成都东方盛行电子有限责任公司 | A kind of cloud service message treatment method based on MQTT |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587178A (en) * | 2019-01-23 | 2019-04-05 | 四川虹美智能科技有限公司 | A kind of intelligent appliance encryption control system and method based on MQTT |
CN110336736A (en) * | 2019-05-27 | 2019-10-15 | 四川长虹电器股份有限公司 | The shared method subscribed to is realized based on MQTT server cluster |
CN110320875A (en) * | 2019-07-12 | 2019-10-11 | 华中科技大学 | A kind of PAC cloud operational system based on MQTT agreement |
CN110673502A (en) * | 2019-10-14 | 2020-01-10 | 珠海格力电器股份有限公司 | Quick response method and system of intelligent device, storage medium and network side device |
CN110913000A (en) * | 2019-11-27 | 2020-03-24 | 浙江华诺康科技有限公司 | Method, system and computer readable storage medium for processing service information |
CN111262911A (en) * | 2020-01-09 | 2020-06-09 | 中国建设银行股份有限公司 | Projector control method, device, equipment and storage medium |
CN113593720A (en) * | 2020-04-30 | 2021-11-02 | 京东方科技集团股份有限公司 | Remote consultation control method and system, computer equipment and medium |
CN111901333B (en) * | 2020-07-27 | 2022-08-02 | 广州卓远虚拟现实科技有限公司 | MQTT protocol-based VR (virtual reality) man-machine interaction method and readable storage medium |
CN111901333A (en) * | 2020-07-27 | 2020-11-06 | 广州卓远虚拟现实科技有限公司 | MQTT protocol-based VR (virtual reality) man-machine interaction method and readable storage medium |
WO2022033083A1 (en) * | 2020-08-14 | 2022-02-17 | 浙江三维通信科技有限公司 | Decoding method, decoding system, electronic apparatus, and storage medium |
CN112073960B (en) * | 2020-08-14 | 2023-06-20 | 浙江三维通信科技有限公司 | Decoding method, decoding system, electronic device and storage medium |
CN112073960A (en) * | 2020-08-14 | 2020-12-11 | 浙江三维通信科技有限公司 | Decoding method, decoding system, electronic device, and storage medium |
CN112261088A (en) * | 2020-09-27 | 2021-01-22 | 华数传媒网络有限公司 | Set top box remote control method |
CN112261088B (en) * | 2020-09-27 | 2022-11-15 | 华数传媒网络有限公司 | Set top box remote control method |
WO2022104555A1 (en) * | 2020-11-17 | 2022-05-27 | Oppo广东移动通信有限公司 | Mqtt protocol-based communication method and device |
CN112804682B (en) * | 2020-12-31 | 2023-02-17 | 新奥数能科技有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN112804682A (en) * | 2020-12-31 | 2021-05-14 | 新奥数能科技有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN113055591A (en) * | 2021-03-08 | 2021-06-29 | 深圳创维-Rgb电子有限公司 | Multi-machine position wireless control method, system, device and readable storage medium thereof |
CN113449234A (en) * | 2021-05-11 | 2021-09-28 | 中国人民解放军63729部队 | Method for multi-stage subscription and release of data |
CN113239307A (en) * | 2021-05-17 | 2021-08-10 | 北京百度网讯科技有限公司 | Method and device for storing message theme |
CN113893407A (en) * | 2021-10-15 | 2022-01-07 | 上饶市中科院云计算中心大数据研究院 | Infusion set and system of intelligence early warning |
CN113893407B (en) * | 2021-10-15 | 2023-10-31 | 上饶市中科院云计算中心大数据研究院 | Infusion device and system of intelligent early warning |
WO2023098816A1 (en) * | 2021-12-02 | 2023-06-08 | 中兴通讯股份有限公司 | Device communication method and apparatus based on mqtt protocol |
CN114598944A (en) * | 2022-03-28 | 2022-06-07 | 重庆长安汽车股份有限公司 | Periodic signal processing system, method, computer device and storage medium |
CN117014850A (en) * | 2023-10-07 | 2023-11-07 | 深圳市鲸视科技有限公司 | Device searching method, system, device, computer device and storage medium |
CN117014850B (en) * | 2023-10-07 | 2024-01-19 | 深圳市鲸视科技有限公司 | Device searching method, system, device, computer device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965447A (en) | The method and system that data are acquired and remotely controlled | |
RU2004109133A (en) | IMPROVEMENT OF ACCESSIBILITY AND SCALABILITY IN THE MESSAGE TRANSFER SYSTEM BY THE METHOD TRANSPARENT FOR THE APPLICATION | |
CN105208043A (en) | Outer network agent module, inner network agent module and data transmitting method and system | |
WO2016100631A1 (en) | Methods for enabling delay-awareness in the constrained application protocol (coap) | |
CN104954348A (en) | Reliable message pushing method based on XMPP | |
CN106656534B (en) | Data communication method and system | |
CN107360177B (en) | A kind of message transmitting method and device based on UDP | |
CN103096271A (en) | Information pushing system and information pushing method | |
CN112566282B (en) | Internet of things information transmission method and platform | |
CN103986764A (en) | Equipment and method used for multi-client collaborative file uploading | |
KR20170007691A (en) | Methods for receiving response information in M2M system and Apparatuses thereof | |
CN107567107A (en) | A kind of method and device for transmitting data | |
CN101815034B (en) | Intertask message sending method and communication apparatus | |
CN108900506A (en) | Information push method, push server and transmission control protocol server | |
CN109756475A (en) | Data transmission method and device in a kind of unilateral network | |
WO2014180245A1 (en) | Cloud terminal upgrade processing method and device therefor | |
CN107343224A (en) | A kind of multicast distribution method, unicast compensation method, content augmentation method and system | |
CN105897452A (en) | Data retransmission method and device | |
CN111491351A (en) | Method and system for sensing online of WiFi terminal based on authentication information | |
CN105282235B (en) | A method of solution RPC upgrades unstable in double-PON port ONU | |
US20110161446A1 (en) | Apparatus and method for synchronizing data between instant messaging clients in communication system | |
CN102868945A (en) | Upgrading method optical network unit (ONU) in Ethernet passive optical network (EPON) | |
CN101989896B (en) | Feedback method and device for ARQ connection | |
CN105119968A (en) | Picture transmission method and device | |
CN112332952B (en) | Underwater acoustic communication method for underwater glider and submerged buoy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |
|
RJ01 | Rejection of invention patent application after publication |