CN109474638A - A kind of agreement and software implement scheme of real-time messages communication - Google Patents

A kind of agreement and software implement scheme of real-time messages communication Download PDF

Info

Publication number
CN109474638A
CN109474638A CN201811645252.4A CN201811645252A CN109474638A CN 109474638 A CN109474638 A CN 109474638A CN 201811645252 A CN201811645252 A CN 201811645252A CN 109474638 A CN109474638 A CN 109474638A
Authority
CN
China
Prior art keywords
agreement
message
real
server
time messages
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
Application number
CN201811645252.4A
Other languages
Chinese (zh)
Inventor
李均豪
郑首奋
张翅
王聪颖
王洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Multiple Wing Creative Technology Ltd Of Shenzhen
Original Assignee
Multiple Wing Creative Technology Ltd Of Shenzhen
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Multiple Wing Creative Technology Ltd Of Shenzhen filed Critical Multiple Wing Creative Technology Ltd Of Shenzhen
Priority to CN201811645252.4A priority Critical patent/CN109474638A/en
Publication of CN109474638A publication Critical patent/CN109474638A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Abstract

The invention discloses the agreements and software implement scheme of a kind of communication of real-time messages, including network communication protocol, the network communication protocol includes client and server-side, the client sends to the server-side and requests, the client is established to the unidirectional message channel of the server-side, by the unidirectional message channel, the client and the server-side establish two-way news channel.The agreement and software implement scheme of a kind of real-time messages communication of the present invention, wherein network communication protocol is MQ agreement, MQ agreement is based on the network communication protocol on TCP/IP, and the characteristics of TCP/IP, is independently of the specific network hardware, it may operate in local area network, wide area network, and suitable for internet, so MQ agreement has standardized upper-layer protocol, the characteristics of a variety of reliable user services can be provided, seq is had in MQ message simultaneously, can guarantee that the message in MQ is ordered into and unduplicated using seq.

Description

A kind of agreement and software implement scheme of real-time messages communication
Technical field
The present invention relates to software communication field, in particular to a kind of the agreement and software implement scheme of real-time messages communication.
Background technique
Work is looked into traditional unmanned plane inspection, and predominantly manually manipulation unmanned plane is maked an inspection tour, and entire inspection process is complete Dependent on winged hand, the quantity and technology that fly hand directly influence the efficiency and quality of unmanned plane electric inspection process, state's net inspection covering Rate is generally 10%, and south electric network inspection coverage rate is 20%, and under relatively, vehicle-mounted mobile airport system can provide unmanned plane Tower scheme is patrolled in automation, is significantly promoted and is patrolled the degree of automation of tower, it is labor-saving simultaneously, column efficiency and quality are patrolled in promotion;
The vehicle-mounted mobile airport system of power transmission line unmanned machine intelligent patrol detection will be related to the mutual of multiple hardware devices Communication, vehicle-mounted mobile airport system is mainly made of onboard system and UAV system two parts, onboard system by vehicle body, Power-supply system, vehicle-mounted hangar, onboard system server, vehicle-mounted artificial intelligence servers, vehicle-mounted polling transmission line unmanned plane pipe Reason system composition, UAV system is by drone body, unmanned controller, unmanned plane course line learning system, unmanned aerial vehicle It stands composition, in this system, requires consideration for how to order from onboard servers and be accurately and reliably sent to unmanned plane, Yi Jiru What returns the state of more unmanned planes and some relevant hardware devices, realizes real time monitoring, has required a set of communications rack above Structure so that the message transmission of equipment room is reliable, and reduces design complexity under the scene of more equipment as far as possible;
In addition, the usage scenario of vehicle-mounted mobile airport system is field, under this usage scenario, between server, take Communication between business device and equipment is easy to appear as caused by unstable networks and communicates unstable, information asymmetry, information is lost Lose, even disconnection the case where, and the coordinated control of unmanned plane exactly has very high want to order/state transmission reliability Ask, accordingly, it is desirable to provide communications protocol can reach and guarantee that message is accurately sent to, and message is not retransmitted, and does not leak hair.
In addition to this, there are very high requirement in the mechanisms such as similar power grid for network security, it usually needs in tertiary-structure network Environmental condition limitation under communicated.In such a scenario, the transmitting of message is based on other not instead of by network transmission It is this special to it requires that communication architecture has enough expansion capabilities to have access to support for forward and reverse file synchronization of hardware interface Communication system.
For above demand scene, existing some communication protocols are all unable to satisfy, it is therefore desirable to provide one it is soft or hard The messaging protocol and implementation of interacting message between part interacting message, multiserver, guarantee that the communication structure of more equipment rooms is clear, It can safeguard;Still guarantee the reliability of message under the weak net environment in field;And there is certain expansibility, it is possible to provide intranet and extranet Message synchronization under the conditions of the ad hoc networks such as isolation is supported.
Summary of the invention
The main purpose of the present invention is to provide the agreements and software implement scheme of a kind of communication of real-time messages, can be effective Solve the problems in background technique.
To achieve the above object, the technical scheme adopted by the invention is as follows:
A kind of agreement and software implement scheme of real-time messages communication, including network communication protocol, the network communication association View includes client and server-side, and the client sends to the server-side and requests, and establishes the client to the service The unidirectional message channel at end, by the unidirectional message channel, the client and the server-side establish two-way news channel.
Preferably, the network communication protocol is MQ agreement, and the MQ agreement is based on the network communication association on TCP/IP View.
Preferably, the MQ agreement transfer mode is to carry out transmitting or carrying out using file copy mode based on TCP/IP passing Any one of pass.
Preferably, the MQ agreement uses seq unique sequence numbers, and the server-side is according to seq verification message.
Preferably, the MQ agreement supports message duration, by Message Record in hardware storage device, the MQ agreement Information is compressed when being stored to message, the MQ agreement supports tertiary-structure network, passes through the forward and reverse synchronization of file It is synchronous to carry out inside and outside network data.
Preferably, the MQ agreement supports breakpoint transmission.
Preferably, the identification title in the unidirectional message channel is based on the client device type, the client EIC equipment identification code, the unidirectional message Path Setup moment and the client device send type of message and generate.
Preferably, the two-way news channel is that binary channels is unidirectionally sent.
Compared with prior art, the invention has the following beneficial effects:
1, the present invention in network communication protocol be MQ agreement, MQ agreement be based on the network communication protocol on TCP/IP, and The characteristics of TCP/IP, is independently of the specific network hardware, may operate in local area network, wide area network, and suitable for internet, So MQ agreement has standardized upper-layer protocol, the characteristics of a variety of reliable user services can be provided;
2, MQ agreement supports message duration in the present invention, can set in this way by Message Record in hardware storage device Meter traces history so that can reach through the invention, and user is facilitated to trace device history information, and MQ by query messages history Agreement compresses information when storing to message, and MQ agreement supports tertiary-structure network, passes through the forward and reverse synchronization of file It is synchronous to carry out inside and outside network data, effectively improves information ratio;
3, MQ agreement uses seq unique sequence numbers in the present invention, and server-side can guarantee in this way according to seq verification message Message does not repeat to send, it is ensured that the reliability of message;
4, MQ agreement supports breakpoint transmission in the present invention, can after at message exchange end, wherein the temporary suspension in one end restores Message is kept not lose, unduplicated recovery is sent, this feature makes MQ be suitble to use under the weak net environment such as such as field; Seq is had in MQ message, can guarantee that the message in MQ is ordered into and unduplicated using seq, MQ also supports forward and reverse file This security feature is synchronized, in large-scale enterprises mechanism, forward and reverse synchronize file-based is a kind of common Intranet Security mechanism, the mechanism can realize data interaction in a manner of file periodic synchronization under internal network and external network isolation, Mechanism uses which, can significantly improve the safety coefficient of internal network.
Detailed description of the invention
Fig. 1 is a kind of agreement of real-time messages communication of the present invention and the message channel schematic diagram of software implement scheme;
Fig. 2 is a kind of agreement of real-time messages communication of the present invention and the message format schematic diagram of software implement scheme;
Fig. 3 is a kind of agreement of present invention real-time messages communication and software implement scheme apply in unmanned machine equipment with clothes Business device communication flow schematic diagram.
Specific embodiment
To be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, below with reference to Specific embodiment, the present invention is further explained.
Embodiment 1
Referring to Fig.1-2, a kind of agreement and software implement scheme of real-time messages communication, including network communication protocol, it is described Network communication protocol includes client and server-side, and the client sends to the server-side and requests, and establishes the client To the unidirectional message channel of the server-side, by the unidirectional message channel, the client and server-side foundation are double To message channel.
The network communication protocol be MQ agreement, the MQ agreement be based on the network communication protocol on TCP/IP, and The characteristics of TCP/IP, is independently of the specific network hardware, may operate in local area network, wide area network, and suitable for internet, So MQ agreement has standardized upper-layer protocol, the characteristics of a variety of reliable user services can be provided.
The MQ agreement transfer mode is to carry out transmitting based on TCP/IP or be carried out in transmitting using file copy mode It is any, the transmission diversification of information can be made in this way.
The MQ agreement uses seq unique sequence numbers, and the server-side can guarantee to disappear in this way according to seq verification message Breath does not repeat to send, it is ensured that the reliability of message.
The MQ agreement supports message duration, and by Message Record in hardware storage device, the purpose designed in this way is In order to trace history, user is facilitated to trace device history information by query messages history, the MQ agreement is to message Information is compressed when being stored, the MQ agreement supports tertiary-structure network, inside and outside the forward and reverse synchronous progress of file Network data is synchronous, effectively improves information ratio.
The MQ agreement supports breakpoint transmission, and MQ agreement supports producer consumer mode, producer consumer mode to make With simple, it is suitble to use in automation scene;Producer consumer mode biggest advantage is message deposit in buffer area, When network blocks, the producer in buffer area, restores message deposit to send, so can when consumer reconnects Can exist under the weak net environment of network congestion also can normal communication between holding equipment, and the message exchange end wherein temporary suspension in one end It after recovery, is able to maintain message and does not lose, unduplicated recovery is sent, this feature is suitble to MQ in the weak net such as such as field It is used under environment;Seq is had in MQ message, can guarantee that the message in MQ is ordered into and unduplicated using seq, MQ is also supported This security feature of forward and reverse file synchronization, in large-scale enterprises mechanism, forward and reverse synchronize file-based is a kind of Common intranet security mechanism, the mechanism can be real in a manner of file periodic synchronization under internal network and external network isolation Existing data interaction, mechanism use which, can significantly improve the safety coefficient of internal network.
The identification title in the unidirectional message channel is identified based on the client device type, the client device Code, the unidirectional message Path Setup moment and the client device send type of message and generate, therefore have uniqueness, This channel is only that this client is communicated with server-side, MQ protocol communication channel be binary channels unidirectionally send, i.e., server and Sending and receiving to be unidirectional between client, two one-way pipelines collectively constitute a communication channel.
The two-way news channel is that binary channels is unidirectionally sent, i.e., sending and receiving as list between server and client side To two one-way pipelines collectively constitute a communication channel.
Embodiment 2
Referring to Fig. 2, MQ is as a kind of agreement, in realization, using onboard servers as the server of a MQ, on vehicle Unmanned plane and other equipment establish connection by the MQ with onboard servers, and the message of unmanned plane and equipment is transferred to vehicle-mounted clothes It is engaged in device, onboard servers then pass through MQ and send control instruction to equipment, form a mobile unit and onboard servers with this Communication network be then using central server as the server-side of MQ, vehicle for the central server of onboard servers and distal end Server is carried as client and establishes connection to central server, for the environmental restrictions of intranet and extranet, onboard servers and center Server can also be communicated by file synchronization.
By embodiment 1-2 it is found that MQ agreement is light in the agreement and software implement scheme of real-time messages of the present invention communication It measures, is simple, being easily achieved, these features keep its scope of application very extensive, especially in some constrained environments.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (8)

1. a kind of agreement and software implement scheme of real-time messages communication, including network communication protocol, it is characterised in that: the net Network communications protocol includes client and server-side, and the client sends to the server-side and requests, establishes the client and arrive The unidirectional message channel of the server-side, by the unidirectional message channel, the client and the server-side are established two-way Message channel.
2. the agreement and software implement scheme of a kind of real-time messages communication according to claim 1, it is characterised in that: described Network communication protocol is MQ agreement, and the MQ agreement is based on the network communication protocol on TCP/IP.
3. the agreement and software implement scheme of a kind of real-time messages communication according to claim 2, it is characterised in that: described MQ agreement transfer mode is to carry out transmitting based on TCP/IP or carry out any one of transmitting using file copy mode.
4. the agreement and software implement scheme of a kind of real-time messages communication according to claim 2, it is characterised in that: described MQ agreement uses seq unique sequence numbers, and the server-side is according to seq verification message.
5. the agreement and software implement scheme of a kind of real-time messages communication according to claim 2, it is characterised in that: described MQ agreement supports message duration, and by Message Record in hardware storage device, the MQ agreement is when storing message Information is compressed, the MQ agreement supports tertiary-structure network, synchronous by the forward and reverse synchronous inside and outside network data of progress of file.
6. the agreement and software implement scheme of a kind of real-time messages communication according to claim 1, it is characterised in that: described MQ agreement supports breakpoint transmission.
7. the agreement and software implement scheme of a kind of real-time messages communication according to claim 1, it is characterised in that: described The identification title in unidirectional message channel is based on the client device type, the client device identification code, described unidirectional Message channel establishes the moment and the client device sends type of message and generates.
8. the agreement and software implement scheme of a kind of real-time messages communication according to claim 1, it is characterised in that: described Two-way news channel is that binary channels is unidirectionally sent.
CN201811645252.4A 2018-12-29 2018-12-29 A kind of agreement and software implement scheme of real-time messages communication Pending CN109474638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811645252.4A CN109474638A (en) 2018-12-29 2018-12-29 A kind of agreement and software implement scheme of real-time messages communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811645252.4A CN109474638A (en) 2018-12-29 2018-12-29 A kind of agreement and software implement scheme of real-time messages communication

Publications (1)

Publication Number Publication Date
CN109474638A true CN109474638A (en) 2019-03-15

Family

ID=65678329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811645252.4A Pending CN109474638A (en) 2018-12-29 2018-12-29 A kind of agreement and software implement scheme of real-time messages communication

Country Status (1)

Country Link
CN (1) CN109474638A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075458A (en) * 2010-08-25 2011-05-25 上海神计信息系统工程有限公司 Instant messaging data ferrying transmitter and transmission method between two physically isolated networks
CN106487927A (en) * 2016-12-08 2017-03-08 天津中翔腾航科技股份有限公司 A kind of communication control system of many rotor wing unmanned aerial vehicles
CN106685992A (en) * 2017-02-14 2017-05-17 厦门畅享信息技术有限公司 Over-network safe exchange and interactive application system based on unidirectional transmission technology, and method thereof
CN107846447A (en) * 2017-09-21 2018-03-27 烽火通信科技股份有限公司 A kind of method of the home terminal access message-oriented middleware based on MQTT agreements
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
WO2018175623A1 (en) * 2017-03-21 2018-09-27 Intertrust Technologies Corporation Managed content distribution systems and methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075458A (en) * 2010-08-25 2011-05-25 上海神计信息系统工程有限公司 Instant messaging data ferrying transmitter and transmission method between two physically isolated networks
CN106487927A (en) * 2016-12-08 2017-03-08 天津中翔腾航科技股份有限公司 A kind of communication control system of many rotor wing unmanned aerial vehicles
CN106685992A (en) * 2017-02-14 2017-05-17 厦门畅享信息技术有限公司 Over-network safe exchange and interactive application system based on unidirectional transmission technology, and method thereof
WO2018175623A1 (en) * 2017-03-21 2018-09-27 Intertrust Technologies Corporation Managed content distribution systems and methods
CN107846447A (en) * 2017-09-21 2018-03-27 烽火通信科技股份有限公司 A kind of method of the home terminal access message-oriented middleware based on MQTT agreements
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XIERQI00QI: "IBM MQ消息的传递过程", 《CSDN,HTTPS://BLOG.CSDN.NET/XIERQI00QI/ARTICLE/DETAILS/83825991》 *
侯敏 等: "基于MQTT协议的海洋观测数据推送系统", 《计算机工程与应用》 *

Similar Documents

Publication Publication Date Title
US20150334034A1 (en) Methods and systems for accessing remote digital data over a wide area network (wan)
CN109905409A (en) Things-internet gateway real time bidirectional communication system based on Socket.IO
CN107018147A (en) A kind of Internet of Things communication means and system, gateway module
CN104717133A (en) Distributed message push system and method
CN104270355A (en) Cross-safety-zone data transmission method based on network bus
BR112012015484B1 (en) WIRELESS COMMUNICATION METHOD, STATION AND ARTICLE
CN104243477A (en) Security industry data collecting method and system implemented on basis of XMPP
CN106953891A (en) A kind of advertisement screen long-range control method and system
CN110445526A (en) Data transmission method, device, system, electronic equipment and storage medium
CN106059936B (en) The method and device of cloud system Multicast File
CN108566284A (en) A kind of collecting method for MES
CN104270344A (en) Quintillion gatekeeper
CN109413094A (en) Aerospace data Transmission system based on HS-ADIX network
CN109787873A (en) A kind of method and apparatus of multi-to-multi incoming communication
CN104009956B (en) Communication method based on embedded multi-core co-processing gatekeeper system
CN106301844A (en) A kind of method and device realizing log transmission
Myrda et al. Recommended approach to a NASPInet architecture
CN102917212A (en) 3G (The 3rd Generation Telecommunication) wireless video monitoring implementation method and 3G wireless video monitoring system based on RTP (Real Time Protocol) and RTSP (Real Time Streaming Protocol)
CN105681325A (en) Method and device for rapidly responding to video stream real-time request of IPC (IP Camera)
CN109474638A (en) A kind of agreement and software implement scheme of real-time messages communication
CN111787078A (en) Signaling control system and communication method based on elevator Internet of things
CN109873817A (en) A kind of method and apparatus of one-to-one access network
CN109889910A (en) A kind of communication means and device accessing private network
CN110493149A (en) A kind of method and apparatus of Message processing
CN105577433B (en) A kind of ACS cluster management method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Community Pioneering Garden of Minzhi Street North Station, Longhua District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN D.Y. INNOVATIONS TECHNOLOGY CO.,LTD.

Address before: 518000 G01 Unit, 12th Floor, 7 B Block, Baoneng Science Park, Longhua Street, Longhua District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN D.Y. INNOVATIONS TECHNOLOGY CO.,LTD.

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190315