CN115589278A - Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol) - Google Patents

Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol) Download PDF

Info

Publication number
CN115589278A
CN115589278A CN202211291364.0A CN202211291364A CN115589278A CN 115589278 A CN115589278 A CN 115589278A CN 202211291364 A CN202211291364 A CN 202211291364A CN 115589278 A CN115589278 A CN 115589278A
Authority
CN
China
Prior art keywords
data
monitoring
state machine
client
server
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
CN202211291364.0A
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.)
Zhejiang Lishi Technology Co Ltd
Original Assignee
Zhejiang Lishi Technology Co 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 Zhejiang Lishi Technology Co Ltd filed Critical Zhejiang Lishi Technology Co Ltd
Priority to CN202211291364.0A priority Critical patent/CN115589278A/en
Publication of CN115589278A publication Critical patent/CN115589278A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system
    • 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/164Adaptation or special uses of UDP protocol

Abstract

The application discloses a UDP-based data display platform with a real-time monitoring function and a method, wherein the method comprises the following steps: step S1: sending development codes of the application service to a data aggregator through a User Datagram Protocol (UDP); step S2: sending the data collected by the data aggregator to a data routing unit, and writing the data acquired by the data routing unit into a disk; and step S3: the data is retrieved from the data routing unit using the visualization panel and used as a unified portal to display the data. The invention uses UDP as a transmission layer protocol, in order to ensure the correct and reliable transmission of the protocol, a retransmission mechanism is adopted in an application layer to ensure the reliable transmission of data, and the Internet access can be conveniently carried out, thereby realizing that the mobile terminal can carry out real-time monitoring through the Internet at any place and improving the practicability and the real-time performance of a data display platform.

Description

Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol)
Technical Field
The application relates to the technical field of computers, in particular to a data display platform and a data display method with a real-time monitoring function based on UDP.
Background
Along with the fact that the internet goes deeper and deeper into the life of people, more and more data are generated, more and more data display platforms appear in various industries, most of the current data display platforms are based on a circuit domain or a local area network and mainly used for displaying off-line data, and the real-time performance of the data is delayed for hours and seconds more and less.
This way will increase the transmission delay of monitoring media data, and there is great inconvenience in both the line layout and the mobility of the monitoring terminal, and it is impossible to meet the needs of users in the monitoring field with very high real-time requirements.
Disclosure of Invention
The embodiment of the application provides a data display platform and a method with a real-time monitoring function based on UDP (user Datagram protocol), and aims to solve the problems that in the prior art, the data display platform is based on a circuit domain or a local area network and mainly displays offline data, transmission delay of monitoring media data is increased, and instantaneity is poor.
The embodiment of the application provides a data display platform who has real time monitoring function based on UDP, includes:
the real-time monitoring module based on UDP comprises a state machine of a server end and a state machine of a client end, and is set as follows: when a state machine of a client side initiates a monitoring call request and calls successfully, the state machine of the client side is switched into a monitoring state; when the state machine of the server receives the monitoring call request, the state machine of the server processes and generates a monitoring state machine of the server to process a subsequent request of the client;
when the state machine of the server end receives an alarm request, an alarm monitoring calling state machine of the server end is established, the alarm monitoring calling state machine of the server end sends a monitoring calling request, and when the calling is successful, the alarm monitoring calling state machine of the server end is switched into a monitoring state; when the state machine of the client receives the monitoring call request and the call is successful, generating an alarm monitoring call state machine of the client and entering a monitoring state;
and the data processing and displaying module is used for sending the development code of the application service to the data aggregator through a user datagram protocol UDP, sending the data collected by the data aggregator to the data routing unit, writing the data acquired by the data routing unit into a disk, acquiring the data from the data routing unit by using the visual panel, and displaying the data as a uniform portal.
Further, in the real-time monitoring module based on UDP, when the state machine of the client is in the monitoring state, the client may send a pan-tilt instruction to control the monitoring device to operate and set the alarm state of the monitoring device, and when the client actively requests to end the monitoring call, the monitoring state machine of the server is destroyed.
Further, in the monitoring alarm module, the monitoring call request initiated by the state machine of the client carries the ID information of the client and the ID information of the corresponding monitoring device.
The invention also provides a UDP-based data display method with a real-time monitoring function, which comprises the following steps:
step S1: sending the development code of the application service to a data aggregator through a User Datagram Protocol (UDP);
step S2: sending the data collected by the data aggregator to a data routing unit, and writing the data acquired by the data routing unit into a disk;
and step S3: the data is retrieved from the data routing unit using the visualization panel and used as a unified portal to display the data.
Further, the sending the development code of the application service to the data aggregator through a user datagram protocol UDP specifically includes:
step S11: the client establishes a monitoring call state machine and is in an initial state, and initiates a monitoring call request to the server, wherein the monitoring call request carries self id information and camera id information to be checked; meanwhile, the client registers a timer, and if the client does not receive the response message of the server, the client triggers the timer to retransmit the request message;
step S12: the server establishes a monitoring call state machine after receiving the request, is in an initial state, and simultaneously sends a response message to the client; the response message carries a response code 102 (102 status code represents that the server is processing the request), indicating that the server is processing the request; the response message also carries a CallID attribute, and the value of the CallID attribute is used for marking a monitoring call state machine of the server to be created; the server transmits the subsequently received request message into a monitoring call state machine for processing;
step S13: after receiving the response message, the client side monitoring call state machine sends an acknowledgement message ACK to the server side, carries a response message response code 102 and a CallID, simultaneously transfers the state of the client side monitoring call state machine to a call state, and retransmits the response message if the server side monitoring call state machine does not receive the ACK; if receiving ACK message, transferring own state to calling state;
step S14: after receiving 200 (the 200 state code represents successful processing), the client side migrates the state of the client side into a monitoring state, and sends an ACK message to indicate that a response message is received; if receiving 101 (101 state code represents processing failure), sending ACK and ending the client state machine;
step S15: after a call is successfully established, a client sends a camera holder operation request message to a server, wherein a CallID attribute carried by the request message is used for marking a state machine to which the message belongs;
step S16: after receiving the camera operation request message, the server searches a corresponding state machine according to the CallID information carried by the information, and sends the request message to the corresponding state machine for processing;
step S17: the client sends a hang-up request message to the server, changes the state of the client into a hang-up state, and sends an Acknowledgement (ACK) message and ends the state machine after receiving a hang-up response message sent back by the server;
step S18: after receiving the Bye message, the server sends a response message and carries a response code 200, the state is switched to bying, and after receiving the ACK message returned by the client, the server finishes monitoring the call state machine.
Further, the data aggregator transmits the data to the routing unit through a UDP protocol.
Further, the data which is not in accordance with the preset condition specification is discarded from the data which is acquired by the data routing unit, and the data which is in accordance with the preset condition specification is written into a disk through the structured file storage whisper.
Further, the visualization panel obtains data from the data routing unit as a unified portal for displaying monitoring data, constructs a unique report for each service developer, and then displays the monitoring data from the application using the visualization data icon.
Further, the client sends a camera holder operation request to the server, and the specific operation request message includes camera up, down, left, right, zoom-in, zoom-out, alarm state query, camera list update, arming and disarming.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
the invention uses UDP as a transport layer protocol, in order to ensure the correct and reliable transmission of the protocol, a retransmission mechanism is adopted in an application layer to ensure the reliable transmission of data, and the Internet access can be conveniently carried out, thereby realizing that the mobile terminal can carry out real-time monitoring through the Internet at any place and improving the practicability and the real-time performance of a data display platform.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of the UDP-based data display platform with real-time monitoring function according to the present application;
fig. 2 shows a data processing relationship diagram of each module of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The embodiment of the application provides a data display platform with real-time monitoring function based on UDP, including:
the real-time monitoring module based on UDP comprises a state machine of a server end and a state machine of a client end, and is set as follows: when a state machine of a client side initiates a monitoring call request and calls successfully, the state machine of the client side is switched into a monitoring state; when the state machine of the server receives the monitoring call request, the state machine of the server processes and generates a monitoring state machine of the server so as to process a subsequent request of the client;
when the state machine of the server end receives an alarm request, an alarm monitoring calling state machine of the server end is established, the alarm monitoring calling state machine of the server end sends a monitoring calling request, and when the calling is successful, the alarm monitoring calling state machine of the server end is switched into a monitoring state; and when the state machine of the client receives the monitoring call request and the call is successful, generating an alarm monitoring call state machine of the client and entering a monitoring state.
And the data processing and displaying module is used for sending the development codes of the application services to the data aggregator through a user datagram protocol UDP (user Datagram protocol), sending the data collected by the data aggregator to the data routing unit, writing the data acquired by the data routing unit into a disk, acquiring the data from the data routing unit by using the visual panel, and displaying the data as a uniform portal.
In the real-time monitoring module based on UDP, when a state machine of a client is in a monitoring state, the client can send a pan-tilt instruction to control the action of the monitoring equipment and set the alarm state of the monitoring equipment, and when the client actively requests to end the monitoring call, the monitoring state machine of a server is destroyed. In the monitoring alarm module, a monitoring call request initiated by a state machine of a client carries self ID information and corresponding monitoring equipment ID information.
The invention also provides a data display method with a real-time monitoring function based on UDP, which comprises the following steps:
step S1: sending development codes of the application service to a data aggregator through a User Datagram Protocol (UDP);
step S2: sending the data collected by the data aggregator to a data routing unit, and writing the data acquired by the data routing unit into a disk;
and step S3: the data is retrieved from the data routing unit using the visualization panel and used as a unified portal to display the data.
In step S1, the development code of the application service is sent to the data aggregator through a user datagram protocol UDP, which specifically includes:
step S11: the client establishes a monitoring call state machine and is in an initial state, and initiates a monitoring call request to the server, wherein the monitoring call request carries self id information and camera id information to be checked; meanwhile, the client registers a timer, and if the client does not receive the response message of the server, the client triggers the timer to retransmit the request message;
step S12: the server receives the request, creates a monitoring call state machine and is in an initial state, and simultaneously sends a response message to the client; the response message carries a response code 102 (102 status code represents that the server is processing the request), indicating that the server is processing the request; the response message also carries a CallID attribute, and the value of the CallID attribute is used for marking a monitoring call state machine of the server to be created; the server transmits the subsequently received request message to a monitoring call state machine for processing;
step S13: after receiving the response message, the client monitoring call state machine sends an acknowledgement message ACK to the server, carries a response message response code 102 and a CallID, and simultaneously turns the state of the client monitoring call state machine into a call state; if receiving ACK message, transferring own state to calling state;
step S14: after receiving 200 (the 200 state code represents successful processing), the client side migrates the state of the client side into a monitoring state, and sends an ACK message to indicate that a response message is received; if 101 is received (101 state code represents processing failure), the client state machine is ended after ACK is sent;
step S15: after a call is successfully established, a client sends a camera holder operation request message to a server, wherein a CallID attribute carried by the request message is used for marking a state machine to which the message belongs; the specific operation request message comprises camera up, down, left and right, amplifying, reducing, alarming state inquiring, camera list updating, arming and disarming;
step S16: after receiving the camera operation request message, the server searches a corresponding state machine according to the CallID information carried by the information, and sends the request message to the corresponding state machine for processing;
step S17: the client sends a hang-up request message to the server, changes the state of the client into a hang-up state, and sends an Acknowledgement (ACK) message and ends the state machine after receiving a hang-up response message sent back by the server;
step S18: after receiving the Bye message, the server sends a response message and carries a response code 200, the state is switched to bying, and after receiving the ACK message returned by the client, the server finishes monitoring the call state machine.
Wherein, the data aggregator sends the data to the data routing unit through UDP protocol in step S2. As shown in fig. 2, in the present invention, the graph is used as a data routing unit, data collected by using a data aggregator Brubeck is collected by using a transmission control protocol UDP, the data is transmitted to the data routing unit graph, meanwhile, data obtained by the data routing unit graph is discarded that does not meet the preset condition specification, and a structured file storage whisper that meets the preset condition specification is written into a disk. Powerful systems built based on Moira can be used, and Redis clusters are used as the primary database. The system has good fault-tolerant capability, and has extremely reliable data processing because the monitoring data is compared according to a plurality of triggers.
In the step S3, the visualization panel Crafana is used for acquiring data from the graph of the data routing unit and displaying the data as a unified portal, the monitoring system can be freely configured, all development codes of application services (APPS) can be sent to the data aggregator Brubeck through UDP, and the data aggregator Brubeck sends the data to the graph of the data routing unit through UDP; all data was collected using a data collector; the data collector may collect data from a local or remote location and send the data to the data routing unit graph. The data routing unit graph is used as a route to collect data sent by all aggregators and route to the nodes, all monitoring data can be checked during routing, and the monitoring data which do not meet the specification can be discarded; the acquired data is written to disk using the whisper structured file store). The visualization panel Crafana acquires data from the data routing unit Graphite and is used as a uniform portal for displaying monitoring data; for each service developer, a unique report can be constructed; the monitoring data from the application is then displayed using the visual data icon.
The invention uses UDP as a transport layer protocol, and in order to ensure the correct and reliable transmission of the protocol, a retransmission mechanism is adopted at an application layer to ensure the reliable transmission of data. The invention can conveniently carry out Internet access, thereby realizing that the mobile terminal can carry out real-time monitoring through the Internet at any place, improving the practicability of the data display platform.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "comprising," or "comprising," does not exclude the presence of additional like elements in any process, method, article, or apparatus comprising the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. Data display platform that has real time monitoring function based on UDP, its characterized in that includes:
the real-time monitoring module based on UDP comprises a state machine of a server end and a state machine of a client end, and is set as follows: when a state machine of a client side initiates a monitoring call request and calls successfully, the state machine of the client side is switched into a monitoring state; when the state machine of the server receives the monitoring call request, the state machine of the server processes and generates a monitoring state machine of the server to process a subsequent request of the client;
when the state machine of the server end receives an alarm request, an alarm monitoring calling state machine of the server end is established, the alarm monitoring calling state machine of the server end sends a monitoring calling request, and when the calling is successful, the alarm monitoring calling state machine of the server end is switched into a monitoring state; when the state machine of the client receives the monitoring call request and the call is successful, generating an alarm monitoring call state machine of the client and entering a monitoring state;
and the data processing and displaying module is used for sending the development code of the application service to the data aggregator through a user datagram protocol UDP, sending the data collected by the data aggregator to the data routing unit, writing the data acquired by the data routing unit into a disk, acquiring the data from the data routing unit by using the visual panel, and displaying the data as a uniform portal.
2. The UDP-based data display platform with real-time monitoring function according to claim 1, wherein in the UDP-based real-time monitoring module, when the state machine of the client is in the monitoring state, the client can send a pan-tilt command to control the action of the monitoring device and set the alarm state of the monitoring device, and when the client actively requests to end the monitoring call, the monitoring state machine of the server is destroyed.
3. The UDP-based data display platform with real-time monitoring function as claimed in claim 1, wherein in the monitoring alarm module, the monitoring call request initiated by the state machine of the client carries its own ID information and the corresponding ID information of the monitoring device.
4. The data display method with the real-time monitoring function based on the UDP is characterized by comprising the following steps of:
step S1: sending the development code of the application service to a data aggregator through a User Datagram Protocol (UDP);
step S2: sending the data collected by the data aggregator to a data routing unit, and writing the data acquired by the data routing unit into a disk;
and step S3: the data is retrieved from the data routing unit using the visualization panel and used as a unified portal to display the data.
5. The UDP-based data display method with real-time monitoring function according to claim 4, wherein the sending the development code of the application service to the data aggregator is performed by a User Datagram Protocol (UDP), and specifically comprises:
step S11: the client establishes a monitoring call state machine and is in an initial state, and initiates a monitoring call request to the server, wherein the monitoring call request carries self id information and camera id information to be checked; meanwhile, the client registers a timer, and if the client does not receive the response message of the server, the client triggers the timer to retransmit the request message;
step S12: the server receives the request, creates a monitoring call state machine and is in an initial state, and simultaneously sends a response message to the client; the response message carries a response code 102, wherein a 102 status code represents that the server is processing the request, indicating that the server is processing the request; the response message also carries a CallID attribute, and the value of the CallID attribute is used for marking a monitoring call state machine of the server to be created; the server transmits the subsequently received request message to a monitoring call state machine for processing;
step S13: after receiving the response message, the client side monitoring call state machine sends an acknowledgement message ACK to the server side, carries a response message response code 102 and a CallID, simultaneously transfers the state of the client side monitoring call state machine to a call state, and retransmits the response message if the server side monitoring call state machine does not receive the ACK; if receiving ACK message, transferring own state to calling state;
step S14: the client receives 200, wherein the 200 state code represents that the processing is successful, then the client moves the state of the client into a monitoring state, and simultaneously sends an ACK message to indicate that the response message is received; if 101 is received, wherein 101 state codes represent processing failure, the client state machine is ended after ACK is sent;
step S15: after a call is successfully established, a client sends a camera holder operation request message to a server, wherein a CallID attribute carried by the request message is used for marking a state machine to which the message belongs;
step S16: after receiving the camera operation request message, the server searches a corresponding state machine according to the CallID information carried by the information, and sends the request message to the corresponding state machine for processing;
step S17: the client sends a hang-up request message to the server, changes the state of the client into a hang-up state, and sends an acknowledgement message ACK and ends the state machine after receiving a hang-up response message sent back by the server;
step S18: after receiving the Bye message, the server sends a response message and carries a response code 200, the state is switched to bying, and after receiving the ACK message returned by the client, the server finishes monitoring the call state machine.
6. The UDP-based data presentation method with real-time monitoring capability as claimed in claim 4, wherein the data aggregator sends data to the routing unit via UDP protocol.
7. The UDP-based data display method with real-time monitoring function as claimed in claim 4, wherein the data which is not in accordance with the preset condition specification is discarded from the data acquired by the data routing unit, and the data which is in accordance with the preset condition specification is written into the disk through the structured file storage whisper.
8. The UDP-based data display method having a real-time monitoring function as claimed in claim 4, wherein the visualization panel acquires data from the data routing unit as a unified portal for displaying the monitoring data, constructs a report unique to each service developer, and then displays the monitoring data from the application using the visualization data icon.
9. The UDP-based data display method with the real-time monitoring function according to claim 4, wherein the client sends a camera pan-tilt operation request to the server, and the specific operation request message comprises camera up, down, left, right, zoom-in, zoom-out, alarm state query, camera list update, arming and disarming.
CN202211291364.0A 2022-10-21 2022-10-21 Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol) Pending CN115589278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211291364.0A CN115589278A (en) 2022-10-21 2022-10-21 Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211291364.0A CN115589278A (en) 2022-10-21 2022-10-21 Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol)

Publications (1)

Publication Number Publication Date
CN115589278A true CN115589278A (en) 2023-01-10

Family

ID=84780341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211291364.0A Pending CN115589278A (en) 2022-10-21 2022-10-21 Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol)

Country Status (1)

Country Link
CN (1) CN115589278A (en)

Similar Documents

Publication Publication Date Title
JP3642004B2 (en) Relay device, mobile radio communication system, failure notification method thereof, and recording medium recording failure notification program thereof
US7557689B2 (en) Alerting method, apparatus, server, and system
CN108712485B (en) Resource subscription method and device for Internet of things equipment
US7426398B2 (en) Event control system and method for a mobile communication network
US20070214209A1 (en) Platform and method for mobile servers
JP2009211343A (en) Server device and communication system
WO2007096722A2 (en) System, apparatus and method for transmitting event information from a remote terminal to subscribers over a network
CN106993043B (en) Data communication system and method based on agency
US20200174874A1 (en) Error display system, error display method, and information processing apparatus
JP2013518480A (en) Method, apparatus, and system for handling node failures
CN109003350A (en) Generation dimension logging instrument and working method
CN103716230A (en) Message sending method, device and server
CN110188118B (en) Data synchronization method and device
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device
JP2008199402A (en) Communication system, portable terminal device, server device and communication method
JP5353714B2 (en) Server system and its event message transmission method
JP3709797B2 (en) System including proxy server and web server and program thereof
CN109039718A (en) A kind of alarm method and system of online service
CN115589278A (en) Data display platform and method with real-time monitoring function based on UDP (user Datagram protocol)
CN115865886B (en) HTTP-based cross-network data interaction method and device
CN108737460B (en) Connection processing method and client
JP4274380B2 (en) Area information management server device, SIP server device, area information management method
CN113810266B (en) Retry operation method, device, equipment and storage medium for message object
CN115550901B (en) Triggered positioning exception handling method, system, device and storage medium
CN114363665B (en) Multi-service code stream pushing method, system, computer equipment and storage medium

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