CN108259576A - A kind of software and hardware real-time information transmission system and method - Google Patents

A kind of software and hardware real-time information transmission system and method Download PDF

Info

Publication number
CN108259576A
CN108259576A CN201711446977.6A CN201711446977A CN108259576A CN 108259576 A CN108259576 A CN 108259576A CN 201711446977 A CN201711446977 A CN 201711446977A CN 108259576 A CN108259576 A CN 108259576A
Authority
CN
China
Prior art keywords
information
hardware
message
software
real
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.)
Granted
Application number
CN201711446977.6A
Other languages
Chinese (zh)
Other versions
CN108259576B (en
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.)
Wuhan Net Security Technology Ltd By Share Ltd
Original Assignee
Wuhan Net Security Technology Ltd By Share Ltd
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 Wuhan Net Security Technology Ltd By Share Ltd filed Critical Wuhan Net Security Technology Ltd By Share Ltd
Priority to CN201711446977.6A priority Critical patent/CN108259576B/en
Publication of CN108259576A publication Critical patent/CN108259576A/en
Application granted granted Critical
Publication of CN108259576B publication Critical patent/CN108259576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The present invention relates to a kind of software and hardware real-time information transmission system and method.The system includes hardware device and software platform, and software platform includes client, message-oriented middleware, rear end and front end;Hardware device is used to that hardware information message to be sent to client in real time by the first link;Client obtains visual information, and visual information is sent to message-oriented middleware for parsing hardware information message;Message-oriented middleware is used to visual information being distributed in calibration channel;Rear end passes through the second link by visual information real time propelling movement to front end for reading the visual information in the calibration channel subscribed to;Front end is used for display visual information.Technical scheme of the present invention can improve the real-time that information is transmitted between hardware and software in Internet of things system, improve Internet of Things information transfer efficiency.

Description

A kind of software and hardware real-time information transmission system and method
Technical field
The present invention relates to computer application technologies, and in particular to a kind of software and hardware real-time information transmission system and side Method.
Background technology
Along with the fast development of Internet of Things industry in recent years, all things on earth interconnection demand increasingly promoted, software and hardware it Between information exchange become more and more intensive, and higher is also become to the requirement of real-time of information.
Under conventional conditions, the information exchange between software and hardware is needed by poll, i.e., with Fixed Time Interval Whether form has the information that software needs to hardware requests, inquiry.This mechanism can cause the waste of resource to a certain degree, simultaneously It cannot guarantee that the real-time of information, influence the information transfer efficiency of Internet of Things.
Invention content
In order to improve the real-time that information is transmitted between hardware and software in Internet of things system, improve the transmission of Internet of Things information Efficiency, the present invention provide a kind of software and hardware real-time information transmission system and method.
On the one hand, the present invention provides a kind of software and hardware real-time information transmission system, which includes hardware device and soft Part platform, the software platform include client, message-oriented middleware, rear end and front end,
Hardware information message is sent to the client by the hardware device in real time for passing through the first link;
The client for parsing the hardware information message, obtains visual information, and the visual information is transmitted To the message-oriented middleware;
The message-oriented middleware, for the visual information to be distributed in calibration channel;
The rear end for reading the visual information in the calibration channel subscribed to, and passes through the second link and incites somebody to action The visual information real time propelling movement is to the front end;
The front end, for showing the visual information.
On the other hand, the present invention provides a kind of software and hardware real-time information transmission method, applied to above system, this method Including:
Step 1, hardware information message is sent to client by hardware device in real time by the first link;
Step 2, client parses the hardware information message, obtains visual information, and the visual information is sent to Message-oriented middleware;
Step 3, the visual information is distributed in calibration channel by message-oriented middleware;
Step 4, the visual information in the calibration channel subscribed to is read in rear end, and passes through the second link by described in Visual information real time propelling movement is to front end;
Step 5, front end shows the visual information.
The advantageous effect of software and hardware real-time information transmission system and method provided by the invention is, in Internet of things system, The access quantity of hardware equipment terminal increases by geometric progression, and correspondingly, producing largely needs software to obtain and handle hard Part infomational message.Hardware device can be linked by special communication protocol hardware information message being sent to client.Client exists After parsing obtains visual information, the Publish-subscribe system being made up of message-oriented middleware and rear end is by visual information respectively by disappearing Breath middleware is distributed to different channel, and the rear end by having subscribed corresponding channel obtains associated visual information, realizes bulk information Effective shunting, avoid congestion information, improve the real-time of information transmission.Pass through specific lead to for the front end of display visual information Believe that protocol link obtains the visual information that corresponding rear end push comes, user is allow to be obtained in real time by front end by related hard The information that part equipment obtains.The real-time that information is transmitted between hardware and software in Internet of things system can be improved in this way, improve object Networked information efficiency of transmission.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of structure diagram of software and hardware real-time information transmission system of the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of software and hardware real-time information transmission method of the embodiment of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in Figure 1, a kind of software and hardware real-time information transmission system of the embodiment of the present invention includes hardware device and software Platform, the software platform include client, message-oriented middleware, rear end and front end.
Hardware information message is sent to the client by the hardware device in real time for passing through the first link.
The client for parsing the hardware information message, obtains visual information, and the visual information is transmitted To the message-oriented middleware.
The message-oriented middleware, for the visual information to be distributed in calibration channel.
The rear end for reading the visual information in the calibration channel subscribed to, and passes through the second link and incites somebody to action The visual information real time propelling movement is to the front end.
The front end, for showing the visual information.
In the present embodiment, in Internet of things system, the access quantity of hardware equipment terminal increases by geometric progression, accordingly Ground produces a large amount of hardware information messages that software is needed to obtain and handle.Hardware device can be linked by special communication protocol Hardware information message is sent to client.Client passes through message-oriented middleware and rear end group after parsing obtains visual information Into Publish-subscribe system visual information is distributed to different channel, and by having subscribed corresponding channel by message-oriented middleware respectively Rear end obtain associated visual information, realize effective shunting of bulk information, avoid congestion information, improve the real-time of information transmission Property.For display visual information front end by special communication protocol link obtain the push of corresponding rear end come visual letter Breath, allows user to obtain the information obtained by relevant hardware devices in real time by front end.It can improve in Internet of things system in this way The real-time that information is transmitted between hardware and software improves Internet of Things information transfer efficiency
Preferably, the hardware information message is sent to the client by the hardware device in real time by TCP links.
TCP (Transmission Control Protocol) be it is a kind of it is connection-oriented, reliable, based on byte stream Transport layer communication protocol, defined by the RFC 793 of IETF.In simplified computer network osi model, it completes the 4th layer Function specified by transport layer.In internet protocol suite (Internet Protocol Suite), TCP layer is to be located at IP layers On, the middle layer under application layer.The reliable, connection as pipeline is frequently necessary between the application layer of different hosts, But IP layers do not provide such stream mechanism, and it is to provide insecure packet switch.Client in software platform by ip, Port establishes TCP with hardware device and links, which is kept, and follow certain report by the heartbeat message of Fixed Time Interval Literary structure carries out information exchange.It can ensure that the infomational message of hardware device is sent to the client of software platform in real time.
Preferably, the message-oriented middleware is Redis information publishing sides, and the rear end is matches with the message-oriented middleware Redis information subscribings end.
Redis is the data structure server of a memory storage increased income, and can be used as database, cache and message Queue Agent.It supports the data types such as character string, Hash table, list, set, ordered set, bitmap, hyperloglogs, Built-in duplication, Lua scripts, LRU withdrawal, affairs and different stage disk persistence function, while Redis can be passed through Sentinel provides High Availabitity, and auto-partition is provided by Redis Cluster.The message of Redis distribution subscriptions (pub/sub) Communication pattern sends message by transmitting terminal (pub), and subscription end (sub) receives message, and not only issuing and subscribing to all has real-time, And subscription end can subscribe to any number of channel.The classification that visual information can be refined as far as possible in this way, into one Step avoids congestion information, at the same subscription end can real-time reception to the visual information in subscription channel.
Preferably, the rear end is linked by WebSocket by the visual information real time propelling movement to the front end.
WebSocket agreements are a kind of new procotols based on TCP.It realizes browser and server full duplex Communication allows server actively to send information to client, that is, rear end can actively send visual information to front end.Due to preceding End can be Web browser, and rear end pushes visual information to it, and WebSocket, which links this safe mode, can ensure information The safety of transmission and real-time.
Preferably, the hardware device is safety monitoring equipment or weather aid.
Security monitoring, weather forecast or other systems higher to information requirement of real-time, need in such as alarm or After the equipment such as sensor collect relevant information, this phase can be obtained in time positioned at the server of software side or relevant staff Information is closed, and it is handled if necessary.
In addition, hardware device can be the equipment that arbitrary needs carry out information exchange with software.
As shown in Fig. 2, a kind of software and hardware real-time information transmission method of the embodiment of the present invention is applied to above system, the party Method includes:
Step 1, hardware information message is sent to client by hardware device in real time by the first link.
Step 2, client parses the hardware information message, obtains visual information, and the visual information is sent to Message-oriented middleware.
Step 3, the visual information is distributed in calibration channel by message-oriented middleware.
Step 4, the visual information in the calibration channel subscribed to is read in rear end, and passes through the second link by described in Visual information real time propelling movement is to the front end.
Step 5, front end shows the visual information.
Preferably, the step 1 is specifically implemented as:Hardware device is in real time believed the hardware by TCP links Breath message is sent to client.
Preferably, the message-oriented middleware is Redis information publishing sides, and the rear end is matches with the message-oriented middleware Redis information subscribings end.
Preferably, the visual information in the calibration channel subscribed to is read in rear end, and is linked by WebSocket By the visual information real time propelling movement to the front end.
Preferably, the hardware device is safety monitoring equipment or weather aid.
Reader should be understood that in the description of this specification reference term " one embodiment ", " is shown " some embodiments " The description of example ", " specific example " or " some examples " etc. mean to combine the specific features of the embodiment or example description, structure, Material or feature are contained at least one embodiment of the present invention or example.In the present specification, above-mentioned term is shown The statement of meaning property need not be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the different embodiments or examples described in this specification and the spy of different embodiments or examples Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changes, replacing and modification.

Claims (10)

1. a kind of software and hardware real-time information transmission system, which is characterized in that the system comprises hardware device and software platform, institutes It states software platform and includes client, message-oriented middleware, rear end and front end,
Hardware information message is sent to the client by the hardware device in real time for passing through the first link;
The client for parsing the hardware information message, obtains visual information, and the visual information is sent to institute State message-oriented middleware;
The message-oriented middleware, for the visual information to be distributed in calibration channel;
The rear end for reading the visual information in the calibration channel subscribed to, and passes through the second link by described in Visual information real time propelling movement is to the front end;
The front end, for showing the visual information.
2. software and hardware real-time information transmission system according to claim 1, which is characterized in that the hardware device passes through The hardware information message is sent to the client by TCP links in real time.
3. software and hardware real-time information transmission system according to claim 1, which is characterized in that the message-oriented middleware is Redis information publishing sides, the rear end are and the matched Redis information subscribings end of the message-oriented middleware.
4. software and hardware real-time information transmission system according to claim 1, which is characterized in that the rear end passes through WebSocket is linked the visual information real time propelling movement to the front end.
5. software and hardware real-time information transmission system according to any one of claims 1 to 4, which is characterized in that the hardware Equipment is safety monitoring equipment or weather aid.
6. a kind of software and hardware real-time information transmission method is believed in real time applied to software and hardware such as described in any one of claim 1 to 5 Cease Transmission system, which is characterized in that the method includes:
Step 1, hardware information message is sent to client by hardware device in real time by the first link;
Step 2, client parses the hardware information message, obtains visual information, and the visual information is sent to message Middleware;
Step 3, the visual information is distributed in calibration channel by message-oriented middleware;
Step 4, rear end read subscribe to the calibration channel in the visual information, and pass through the second link will it is described visually Information real time propelling movement is to front end;
Step 5, front end shows the visual information.
7. software and hardware real-time information transmission method according to claim 6, which is characterized in that the step 1 specifically has Body is embodied as:The hardware information message is sent to client by hardware device in real time by TCP links.
8. software and hardware real-time information transmission method according to claim 6, which is characterized in that the message-oriented middleware is Redis information publishing sides, the rear end are and the matched Redis information subscribings end of the message-oriented middleware.
9. software and hardware real-time information transmission method according to claim 6, which is characterized in that the specific reality of the step 4 It is now:The visual information in the calibration channel subscribed to is read in rear end, and will be described visual by WebSocket links Information real time propelling movement is to the front end.
10. according to claim 6 to 9 any one of them software and hardware real-time information transmission method, which is characterized in that the hardware Equipment is safety monitoring equipment or weather aid.
CN201711446977.6A 2017-12-27 2017-12-27 Software and hardware real-time information transmission system and method Active CN108259576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711446977.6A CN108259576B (en) 2017-12-27 2017-12-27 Software and hardware real-time information transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711446977.6A CN108259576B (en) 2017-12-27 2017-12-27 Software and hardware real-time information transmission system and method

Publications (2)

Publication Number Publication Date
CN108259576A true CN108259576A (en) 2018-07-06
CN108259576B CN108259576B (en) 2021-08-24

Family

ID=62724090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711446977.6A Active CN108259576B (en) 2017-12-27 2017-12-27 Software and hardware real-time information transmission system and method

Country Status (1)

Country Link
CN (1) CN108259576B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933595A (en) * 2019-02-27 2019-06-25 深圳智链物联科技有限公司 A kind of internet of things equipment information sharing system, device and terminal device
CN112071106A (en) * 2020-09-18 2020-12-11 四川长虹电器股份有限公司 Real-time monitoring system and method for abnormal offline of geomagnetic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150312376A1 (en) * 2014-04-28 2015-10-29 Oracle International Corporation System and method for supporting a bypass-domain model for across-domain messaging in a transactional middleware machine environment
CN105703986A (en) * 2016-03-22 2016-06-22 重庆邮电大学 Middleware-technology-based intelligent household equipment interconnection and intercommunication method
CN106210049A (en) * 2016-07-12 2016-12-07 Tcl集团股份有限公司 A kind of cluster communication method based on Message Queuing and system
US20160373546A1 (en) * 2015-06-18 2016-12-22 Qualcomm Incorporated Signaling cached segments for broadcast
CN107426004A (en) * 2017-05-03 2017-12-01 深圳市众泰兄弟科技发展有限公司 A kind of network security visible processing method based on big data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150312376A1 (en) * 2014-04-28 2015-10-29 Oracle International Corporation System and method for supporting a bypass-domain model for across-domain messaging in a transactional middleware machine environment
US20160373546A1 (en) * 2015-06-18 2016-12-22 Qualcomm Incorporated Signaling cached segments for broadcast
CN105703986A (en) * 2016-03-22 2016-06-22 重庆邮电大学 Middleware-technology-based intelligent household equipment interconnection and intercommunication method
CN106210049A (en) * 2016-07-12 2016-12-07 Tcl集团股份有限公司 A kind of cluster communication method based on Message Queuing and system
CN107426004A (en) * 2017-05-03 2017-12-01 深圳市众泰兄弟科技发展有限公司 A kind of network security visible processing method based on big data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933595A (en) * 2019-02-27 2019-06-25 深圳智链物联科技有限公司 A kind of internet of things equipment information sharing system, device and terminal device
CN109933595B (en) * 2019-02-27 2021-08-13 深圳智链物联科技有限公司 Internet of things equipment information sharing system and device and terminal equipment
CN112071106A (en) * 2020-09-18 2020-12-11 四川长虹电器股份有限公司 Real-time monitoring system and method for abnormal offline of geomagnetic equipment

Also Published As

Publication number Publication date
CN108259576B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
US8209402B1 (en) Method and system for processing financial data objects carried on broadcast data streams and delivering information to subscribing clients
US7958251B2 (en) Method and system for processing raw financial data streams to produce and distribute structured and validated product offering data to subscribing clients
US7958025B2 (en) Method and system for processing raw financial data streams to produce and distribute structured and validated product offering objects
JP4363847B2 (en) Digital TV application protocol for interactive TV
US8131823B2 (en) System and method for reading ahead of content
McKenney et al. Efficient demultiplexing of incoming tcp packets
EP1528710B1 (en) A publish-subscribe system
KR100985237B1 (en) Packet routing via payload inspection for alert services, for digital content delivery and for quality of service management and caching with selective multicasting in a publish-subscribe network
JP2004529410A (en) Service gateway for interactive TV
CN107203541A (en) Page loading method and its page loading device
JP2008211835A (en) Packet routing via payload inspection and subscription processing in publish-subscribe network
CN112953850B (en) Data transmission method and device, computer readable medium and electronic equipment
CN108259576A (en) A kind of software and hardware real-time information transmission system and method
CN107918619A (en) Advertisement demonstration method and device
CN104852955B (en) A kind of data processing method and system
EP1320240A3 (en) Method and system for efficiently reducing graphical display data for transmission over a low bandwidth transport protocol mechanism
WO2002013091A1 (en) System for processing raw financial data to produce validated product offering information to subscribers
US6834307B2 (en) Event-based application layer switching for high-speed protocol processing
CN105530321B (en) Method, client, server and system for accessing equipment by browser client
US7734790B1 (en) Proactive delivery of messages behind a network firewall
CN111866100A (en) Method, device and system for controlling data transmission rate
CN110768984A (en) Data transmission method and device and electronic equipment
WO2001001621A2 (en) Customizing web content based on network conditions
CN108667934A (en) Information processing method, device, electronic equipment and storage medium
Dias et al. A dynamic-adaptive architecture for 3d collaborative virtual environments based on graphic clusters

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
GR01 Patent grant
GR01 Patent grant