CN108259576B - Software and hardware real-time information transmission system and method - Google Patents
Software and hardware real-time information transmission system and method Download PDFInfo
- Publication number
- CN108259576B CN108259576B CN201711446977.6A CN201711446977A CN108259576B CN 108259576 B CN108259576 B CN 108259576B CN 201711446977 A CN201711446977 A CN 201711446977A CN 108259576 B CN108259576 B CN 108259576B
- Authority
- CN
- China
- Prior art keywords
- information
- hardware
- visual information
- 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.)
- Active
Links
Images
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/2866—Architectures; Arrangements
- H04L67/2871—Implementation details of single intermediate entities
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a software and hardware real-time information transmission system and a method. The system comprises hardware equipment and a software platform, wherein the software platform comprises a client, a message middleware, a back end and a front end; the hardware equipment is used for transmitting the hardware information message to the client in real time through the first link; the client is used for analyzing the hardware information message, acquiring visual information and transmitting the visual information to the message middleware; the message middleware is used for publishing the visual information to the calibration channel; the back end is used for reading the visual information in the subscribed calibration channel and pushing the visual information to the front end in real time through a second link; the front end is used for displaying visual information. The technical scheme of the invention can improve the real-time performance of information transmission between hardware and software in the Internet of things system and improve the information transmission efficiency of the Internet of things.
Description
Technical Field
The invention relates to the technical field of computer application, in particular to a software and hardware real-time information transmission system and a method.
Background
With the rapid development of the internet of things industry in recent years, the demand of interconnection of everything is increasing, the information interaction between software and hardware becomes more and more intensive, and the real-time requirement on information also becomes higher.
Under conventional conditions, information interaction between software and hardware requires polling, i.e., requesting the hardware at regular intervals, to inquire whether there is information required by the software. The mechanism can cause resource waste to a certain extent, and meanwhile, the real-time performance of information cannot be guaranteed, and the information transmission efficiency of the Internet of things is influenced.
Disclosure of Invention
The invention provides a real-time information transmission system and method for software and hardware, aiming at improving the real-time performance of information transmission between hardware and software in an Internet of things system and improving the information transmission efficiency of the Internet of things.
In one aspect, the invention provides a software and hardware real-time information transmission system, which comprises hardware equipment and a software platform, wherein the software platform comprises a client, a message middleware, a back end and a front end,
the hardware equipment is used for transmitting a hardware information message to the client in real time through a first link;
the client is used for analyzing the hardware information message, acquiring visual information and transmitting the visual information to the message middleware;
the message middleware is used for publishing the visual information to a calibration channel;
the back end is used for reading the visual information in the subscribed calibration channel and pushing the visual information to the front end in real time through a second link;
the front end is used for displaying the visual information.
On the other hand, the invention provides a software and hardware real-time information transmission method, which is applied to the system and comprises the following steps:
step 1, hardware equipment transmits a hardware information message to a client in real time through a first link;
step 2, the client analyzes the hardware information message to obtain visual information and transmits the visual information to a message middleware;
step 3, the message middleware issues the visual information to a calibration channel;
step 4, the back end reads the visual information in the subscribed calibration channel and pushes the visual information to the front end in real time through a second link;
and 5, displaying the visual information at the front end.
The software and hardware real-time information transmission system and the method have the advantages that in the Internet of things system, the access number of hardware equipment terminals is increased in a geometric progression manner, and accordingly, a large number of hardware information messages needing to be acquired and processed by software are generated. The hardware device may send the hardware information message to the client over a particular communication protocol link. After the client analyzes and obtains the visual information, the visual information is published to different channels by the message middleware through a publishing-subscribing system consisting of the message middleware and the back end, and the back end subscribing the corresponding channel acquires the relevant visual information, so that the effective distribution of a large amount of information is realized, the information congestion is avoided, and the real-time performance of information transmission is improved. The front end used for displaying the visual information acquires the visual information pushed by the corresponding back end through a specific communication protocol link, so that a user can obtain the information acquired by the related hardware equipment through the front end in real time. Therefore, the real-time performance of information transmission between hardware and software in the Internet of things system can be improved, and the information transmission efficiency of the Internet of things is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block diagram of a software and hardware real-time information transmission system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for transmitting real-time software and hardware information according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, a software and hardware real-time information transmission system according to an embodiment of the present invention includes a hardware device and a software platform, where the software platform includes a client, a message middleware, a back end, and a front end.
And the hardware equipment is used for transmitting the hardware information message to the client in real time through the first link.
And the client is used for analyzing the hardware information message, acquiring visual information and transmitting the visual information to the message middleware.
And the message middleware is used for publishing the visual information to a calibration channel.
The back end is configured to read the visual information in the subscribed calibrated channel, and push the visual information to the front end in real time through a second link.
The front end is used for displaying the visual information.
In this embodiment, in the internet of things system, the number of access hardware device terminals increases in a geometric progression, and accordingly, a large number of hardware information messages that need to be acquired and processed by software are generated. The hardware device may send the hardware information message to the client over a particular communication protocol link. After the client analyzes and obtains the visual information, the visual information is published to different channels by the message middleware through a publishing-subscribing system consisting of the message middleware and the back end, and the back end subscribing the corresponding channel acquires the relevant visual information, so that the effective distribution of a large amount of information is realized, the information congestion is avoided, and the real-time performance of information transmission is improved. The front end used for displaying the visual information acquires the visual information pushed by the corresponding back end through a specific communication protocol link, so that a user can obtain the information acquired by the related hardware equipment through the front end in real time. Therefore, the real-time performance of information transmission between hardware and software in the Internet of things system can be improved, and the information transmission efficiency of the Internet of things is improved
Preferably, the hardware device transmits the hardware information message to the client in real time through a TCP link.
TCP (Transmission Control protocol) is a connection-oriented, reliable transport layer communication protocol based on a byte stream, defined by RFC 793 of IETF. In the simplified OSI model of computer networks, it performs the functions specified by the transport layer of layer four. In the Internet Protocol Suite (Internet Protocol Suite), the TCP layer is an intermediate layer located above the IP layer and below the application layer. Reliable, pipe-like connections are often required between the application layers of different hosts, but the IP layer does not provide such a flow mechanism, but rather provides unreliable packet switching. A client in the software platform establishes a TCP link with hardware equipment through an ip and a port, the link is maintained through heartbeat information at a fixed time interval, and information interaction is carried out according to a certain message structure. The information message of the hardware equipment can be transmitted to the client of the software platform in real time.
Preferably, the message middleware is a Redis information publishing terminal, and the backend is a Redis information subscribing terminal matched with the message middleware.
Redis is an open-source, in-memory-stored data structure server that can be used as a database, cache, and message queue agent. The system supports data types such as character strings, hash tables, lists, sets, ordered sets, bitmaps and hyperloggs, built-in copy, Lua scripts, LRU recovery, transactions and different levels of disk persistence functions, and meanwhile, high availability can be provided through Redis Senntel, and automatic partitioning is provided through Redis Cluster. The message communication mode of Redis publish-subscribe (pub/sub) is that a sending end (pub) sends messages, and a subscribing end (sub) receives the messages, so that the publish-subscribe has real-time performance, and the subscribing end can subscribe any number of channels. Therefore, the visual information can be classified as detailed as possible, information congestion is further avoided, and meanwhile, the subscription end can receive the visual information in the subscription channel in real time.
Preferably, the back end pushes the visual information to the front end in real time through a WebSocket link.
The WebSocket protocol is a new network protocol based on TCP. The method and the system realize full duplex communication between the browser and the server, allow the server to actively send information to the client, and enable the back end to actively send visual information to the front end. Because the front end can be a Web browser, and the back end pushes visual information to the Web browser, the safety mode of WebSocket linking can ensure the safety and the real-time performance of information transmission.
Preferably, the hardware device is a security monitoring device or a weather forecasting device.
In safety monitoring, weather forecasting or other systems with high real-time information requirements, after relevant information is acquired by devices such as an alarm or a sensor, a server or relevant staff located on a software side can acquire the relevant information in time and process the relevant information if necessary.
In addition, the hardware device may be any device that needs to interact with software.
As shown in fig. 2, a method for transmitting real-time software and hardware information according to an embodiment of the present invention is applied to the system, and the method includes:
step 1, the hardware equipment transmits a hardware information message to a client in real time through a first link.
And 2, the client analyzes the hardware information message to obtain visual information and transmits the visual information to a message middleware.
And 3, the message middleware issues the visual information to a calibration channel.
And 4, reading the visual information in the subscribed calibration channel by the back end, and pushing the visual information to the front end in real time through a second link.
And 5, displaying the visual information at the front end.
Preferably, the step 1 is specifically realized as follows: and the hardware equipment transmits the hardware information message to the client in real time through the TCP link.
Preferably, the message middleware is a Redis information publishing terminal, and the backend is a Redis information subscribing terminal matched with the message middleware.
Preferably, the back end reads the visual information in the subscribed calibrated channel, and pushes the visual information to the front end in real time through a WebSocket link.
Preferably, the hardware device is a security monitoring device or a weather forecasting device.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example" or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (6)
1. A real-time information transmission system of software and hardware is characterized in that the system comprises hardware equipment and a software platform, the software platform comprises a client, a message middleware, a back end and a front end,
the hardware equipment is used for transmitting a hardware information message to the client in real time through a TCP link;
the client is used for analyzing the hardware information message, acquiring visual information and transmitting the visual information to the message middleware;
the message middleware is used for publishing the visual information to a calibration channel;
the back end is used for reading the visual information in the subscribed calibration channel and pushing the visual information to the front end in real time through a WebSocket link;
the front end is used for displaying the visual information.
2. The system according to claim 1, wherein the message middleware is a Redis information publishing terminal, and the backend is a Redis information subscribing terminal matched with the message middleware.
3. The system for transmitting software and hardware real-time information according to claim 1 or 2, wherein the hardware device is a security monitoring device or a weather forecast device.
4. A software and hardware real-time information transmission method applied to the software and hardware real-time information transmission system according to any one of claims 1 to 3, the method comprising:
step 1, hardware equipment transmits a hardware information message to a client in real time through a TCP link;
step 2, the client analyzes the hardware information message to obtain visual information and transmits the visual information to a message middleware;
step 3, the message middleware issues the visual information to a calibration channel;
step 4, the back end reads the visual information in the subscribed calibration channel and pushes the visual information to the front end in real time through a WebSocke link;
and 5, displaying the visual information at the front end.
5. The method according to claim 4, wherein the message middleware is a Redis information publishing terminal, and the backend is a Redis information subscribing terminal matched with the message middleware.
6. The method for transmitting software and hardware real-time information according to any one of claims 4 to 5, wherein the hardware device is a security monitoring device or a weather forecast device.
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 CN108259576A (en) | 2018-07-06 |
CN108259576B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9723110B2 (en) * | 2014-04-28 | 2017-08-01 | Oracle International Corporation | System and method for supporting a proxy model for across-domain messaging in a transactional middleware machine environment |
US10193994B2 (en) * | 2015-06-18 | 2019-01-29 | Qualcomm Incorporated | Signaling cached segments for broadcast |
-
2017
- 2017-12-27 CN CN201711446977.6A patent/CN108259576B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN108259576A (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104836821B (en) | A kind of network accelerating method based on router device, device and equipment | |
US9578081B2 (en) | System and method for providing an actively invalidated client-side network resource cache | |
KR100359366B1 (en) | Method and appratus for providing awareness-triggered push | |
CN111769998B (en) | Method and device for detecting network delay state | |
CN112600926A (en) | Message pushing method and device and computer readable storage medium | |
CN111200830B (en) | Data transmission method and device and electronic equipment | |
US8990429B2 (en) | HTTP-based synchronization method and apparatus | |
CA2355462A1 (en) | A method and apparatus for supporting a multicast response to a unicast request for a document | |
US10171610B2 (en) | Web caching method and system for content distribution network | |
CN109698785A (en) | A kind of the real-time messages method for pushing and device of distribution high concurrent | |
US20180091631A1 (en) | Systems and methods for writing prioritized http/2 data to a socket buffer | |
CN108259576B (en) | Software and hardware real-time information transmission system and method | |
CN112689020A (en) | Message transmission method, message middleware, electronic equipment and storage medium | |
CN114268631A (en) | Low-delay network system, communication connection method thereof and readable storage medium | |
CN113810461B (en) | Bandwidth control method, device and equipment and readable storage medium | |
CN107231567B (en) | Message transmission method, device and system | |
CN113810264B (en) | Information transmission method, device, electronic equipment and storage medium | |
CN113746851A (en) | Agent system and method for supporting real-time analysis of GRPC request | |
CN105915584A (en) | Business request method based on proxy server and system | |
CN111866100A (en) | Method, device and system for controlling data transmission rate | |
CN105359485A (en) | Method for retrieving, by a client terminal, a content part of a multimedia content | |
KR101082786B1 (en) | System and Method for Allocation of Contents using Proxy Server | |
US20130007369A1 (en) | Transparent Cache for Mobile Users | |
US11310679B2 (en) | Message by message tunability of message reliability in a cellular network | |
CN113691462B (en) | Response method and device of Internet group management protocol |
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 |