system and method for obtaining alarm

文档序号:1579909 发布日期:2020-01-31 浏览:6次 中文

阅读说明:本技术 一种获取告警的系统和方法 (system and method for obtaining alarm ) 是由 霍笑南 解君 王洪超 沈军 于 2018-07-19 设计创作,主要内容包括:本发明实施例提供了一种获取告警的系统和方法,所述系统应用于视联网中,所述系统包括监控设备、协转服务器、视联网服务器、监控管理平台和网页前端,所述协转服务器与一个或多个所述监控设备相连。通过此系统,使位于以太网上的监控设备与视联网实现了信息交互,使视联网上的监控管理平台能够实时获取各区域监控设备上的告警信息,进而方便监控管理人员及时获知各区域的人员聚集情况,更高效地进行安防管理。(The embodiment of the invention provides alarm acquisition systems and methods, wherein the systems are applied to a video network, and comprise monitoring equipment, a protocol server, a video network server, a monitoring management platform and a webpage front end, wherein the protocol server is connected with or more monitoring equipment.)

The system for acquiring the alarm is characterized by being applied to a video network, and comprising monitoring equipment, a cooperative conversion server, a video network server, a monitoring management platform and a webpage front end, wherein the cooperative conversion server is connected with or more monitoring equipment;

the monitoring device includes:

the detection module is used for detecting the number of the personnel in the monitoring range;

the personnel gathering alarm generating module is used for generating personnel gathering alarm information when the number of the personnel exceeds a set threshold value;

the collaboration server comprises:

the conversion module is used for converting the alarm information into a video networking information data packet containing path information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

the uploading module is used for uploading the video networking information data packet to a video networking server through the video networking according to the path information;

the video network server comprises:

the sending module is used for sending the video networking information data packet to a monitoring management platform accessed to a video networking server according to the path information;

the monitoring management platform comprises:

the analysis module is used for analyzing the video networking information data packet to form an analysis result data packet;

and the sending module is used for sending the analysis result data packet to the front end of the webpage for display.

2. The system of types of alarms of claim 1, wherein the transformation module of the collaboration server comprises:

the adding submodule is used for adding a video networking protocol packet header and path information for the alarm information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

and the packaging submodule is used for packaging the alarm information in a video networking protocol message body to generate a video networking information data packet containing path information.

3. The system of claim 1, wherein the parsing module of the monitoring management platform comprises:

the queue submodule is used for putting the alarm information into an alarm information queue;

the analysis submodule is used for starting an independent thread to analyze the alarm information in the queue;

and the result generation submodule is used for generating an analysis result data packet.

4. The system of claim 1, wherein the monitoring device further comprises:

and the personnel recovery alarm generating module is used for generating personnel recovery alarm information when the number of the personnel is less than a set threshold value.

The method for acquiring alarm of 5, , wherein the method is applied to the system for acquiring alarm of of any one of claims 1-4, the system is applied to the video network, and comprises a monitoring device, a protocol server, a video network server, a monitoring management platform and a web front end, and the protocol server is connected with or more monitoring devices;

the method comprises the following steps:

the monitoring equipment detects the number of people in a monitoring range;

when the number of the personnel exceeds a set threshold value, the monitoring equipment generates personnel gathering alarm information;

the cooperative conversion server converts the alarm information into a video networking information data packet containing path information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

the protocol conversion server uploads the video networking information data packet to a video networking server through a video networking according to the path information;

the video network server sends the data packet to a monitoring management platform accessed to the video network server according to the path information;

the monitoring management platform analyzes the video networking information data packet to form an analysis result data packet;

and the monitoring management platform sends the analysis result data packet to the front end of the webpage for display.

6. The method for obtaining alarms according to claim 5, wherein the protocol conversion server converts the alarm information into a video networking information packet containing path information, wherein the path information is obtained according to a preset correspondence between the protocol conversion server and a monitoring management platform, and is used for identifying a transmission path of the video networking information packet in the video networking, and specifically comprises:

the protocol conversion server adds a video networking protocol packet header and path information to the alarm information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

and the protocol conversion server encapsulates the alarm information in a video networking protocol message body to generate a video networking information data packet containing path information.

7. The method for acquiring alarms according to claim 5, wherein the monitoring management platform parses the video networking information packet to form a parsing result packet, and specifically includes:

the monitoring management platform puts the video networking information data packet into an alarm information queue;

the monitoring management platform starts an independent thread to analyze the alarm information in the queue;

and the monitoring management platform generates an analysis result data packet.

8. The method for obtaining alarms, according to claim 5, wherein after the monitoring device generates people-gathered alarm information, further comprising:

and when the number of the personnel is less than a set threshold value, the monitoring equipment generates personnel recovery alarm information.

A computer-readable storage medium , wherein a computer program is stored on the computer-readable storage medium, which when executed by a processor, implements the method of acquiring alerts of any of claims 5-8.

Apparatus of species, comprising a processor, a memory, and a computer program stored on and executable on said memory, said computer program, when executed by said processor, implementing the method of acquiring alerts of species as recited in any of claims 5-8.

Technical Field

The invention relates to the technical field of video networking, in particular to alarm acquisition systems and methods.

Background

However, as each monitoring device comes from different manufacturers, the adopted technical architecture and standards are different, and the monitoring devices are generally deployed in the Ethernet, and it is difficult to realize data interaction with the video network.

Therefore, the MServer (monitoring management platform) needs to use efficient methods to obtain real-time people gathering alarms.

Disclosure of Invention

In view of the above, embodiments of the present invention are proposed to provide systems and methods for acquiring alerts that overcome or at least partially address the above-mentioned problems, systems and methods for acquiring alerts.

In order to solve the above problems, in , the embodiment of the present invention discloses systems for acquiring alarms, where the systems are applied to a video network, and the systems include a monitoring device, a coordination server, a video network server, a monitoring management platform, and a web front end, where the coordination server is connected to or more monitoring devices;

the monitoring device includes:

the detection module is used for detecting the number of the personnel in the monitoring range;

the personnel gathering alarm generating module is used for generating personnel gathering alarm information when the number of the personnel exceeds a set threshold value;

the collaboration server comprises:

the conversion module is used for converting the alarm information into a video networking information data packet containing path information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

the uploading module is used for uploading the video networking information data packet to a video networking server through the video networking according to the path information;

the video network server comprises:

the sending module is used for sending the video networking information data packet to a monitoring management platform accessed to a video networking server according to the path information;

the monitoring management platform comprises:

the analysis module is used for analyzing the video networking information data packet to form an analysis result data packet;

and the sending module is used for sending the analysis result data packet to the front end of the webpage for display.

Preferably, the conversion module of the collaboration server includes:

the adding submodule is used for adding a video networking protocol packet header and path information for the alarm information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

and the packaging submodule is used for packaging the alarm information in a video networking protocol message body to generate a video networking information data packet containing path information.

Preferably, the parsing module of the monitoring management platform includes:

the queue submodule is used for putting the alarm information into an alarm information queue;

the analysis submodule is used for starting an independent thread to analyze the alarm information in the queue;

the result generation submodule is used for generating an analysis result data packet;

preferably, the monitoring device further comprises:

and the personnel recovery alarm generating module is used for generating personnel recovery alarm information when the number of the personnel is less than a set threshold value.

In a second aspect, the embodiment of the present invention further discloses methods for acquiring alarms, where the method is applied to the above system for acquiring alarms, and the system is applied to a video network, and includes a monitoring device, a collaboration server, a video network server, a monitoring management platform, and a web front end, where the collaboration server is connected to or more monitoring devices;

the method comprises the following steps:

the monitoring equipment detects the number of people in a monitoring range;

when the number of the personnel exceeds a set threshold value, the monitoring equipment generates personnel gathering alarm information;

the cooperative conversion server converts the alarm information into a video networking information data packet containing path information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

the protocol conversion server uploads the video networking information data packet to a video networking server through a video networking according to the path information;

the video network server sends the data packet to a monitoring management platform accessed to the video network server according to the path information;

the monitoring management platform analyzes the video networking information data packet to form an analysis result data packet;

and the monitoring management platform sends the analysis result data packet to the front end of the webpage for display.

Preferably, the protocol conversion server converts the alarm information into a video networking information data packet containing path information; the path information is obtained according to a preset correspondence between a coordination server and a monitoring management platform, and is used for identifying a transmission path of the video networking information data packet in the video networking, and the method specifically includes:

the protocol conversion server adds a video networking protocol packet header and path information to the alarm information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

and the protocol conversion server encapsulates the alarm information in a video networking protocol message body to generate a video networking information data packet containing path information.

Preferably, the monitoring management platform analyzes the video networking information data packet to form an analysis result data packet, and specifically includes:

the monitoring management platform puts the video networking information data packet into an alarm information queue;

the monitoring management platform starts an independent thread to analyze the alarm information in the queue;

the monitoring management platform generates an analysis result data packet;

preferably, after the monitoring device generates the people group alarm information, the method further includes:

and when the number of the personnel is less than a set threshold value, the monitoring equipment generates personnel recovery alarm information.

In a third aspect, the present invention also discloses computer readable storage media, wherein the computer readable storage media stores thereon a computer program, and the computer program when executed by a processor implements the methods for acquiring alarms.

In a fourth aspect, the present invention also discloses kinds of apparatuses, including a processor, a memory, and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the methods for acquiring an alarm.

The embodiment of the invention has the following advantages:

the embodiment of the invention applies the characteristics of the video network, transmits the alarm information on the monitoring equipment to the monitoring management platform through the cooperative server, and realizes information interaction between the monitoring equipment on the Ethernet and the video network through the system, so that the monitoring management platform on the video network can acquire the alarm information on the monitoring equipment in each area in real time, thereby facilitating monitoring managers to acquire the personnel gathering condition in each area in time and carrying out security management more efficiently.

Drawings

FIG. 1 is a networking schematic of types of video networks of the present invention;

FIG. 2 is a schematic diagram of the hardware architecture of node servers of the present invention;

fig. 3 is a schematic diagram of the hardware architecture of the access switches of the present invention;

fig. 4 is a schematic diagram of the hardware structure of ethernet protocol gateways of the present invention;

FIG. 5-1 is a block diagram of an system for acquiring alarms according to the present invention;

FIG. 5-2 is a block diagram of the construction of monitoring devices of the present invention;

FIG. 5-3 is a block diagram of an version collaboration server of the present invention;

5-4 are block diagrams of structures of monitoring management platforms according to the invention;

FIG. 6 is a flow chart of the steps of the method of obtaining alerts of the present invention;

FIG. 7 is a data flow diagram of methods of acquiring alarms of the present invention.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, a more detailed description is provided below in conjunction with the accompanying drawings and the detailed description.

The video networking is an important milestone for network development, is real-time networks, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video and high-definition face-to-face.

The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of video, voice, pictures, characters, communication, data and the like on the network platforms, such as high-definition video conferences, video monitoring, intelligent monitoring analysis, emergency command, digital television broadcasting, delayed television, network teaching, live broadcasting, VOD on demand, television mails, Personal Video Recorder (PVR), intranet (self-made) channels, intelligent video broadcasting control, information distribution and the like, into the system platforms, and realizes high-definition quality video broadcasting through a television or a computer.

To better understand the embodiments of the present invention, the following description refers to the internet of view:

some of the technologies applied in the video networking are as follows:

network Technology (Network Technology)

Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network circuit Switching (circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.

Switching Technology (Switching Technology)

The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears IP data packets, and does not need any format conversion in the whole network range.

Server Technology (Server Technology)

The video networking and system video platform server technology is different from the traditional server, its stream media transmission is based on the connection oriented base, its data processing ability is independent of flow and communication time, the single network layer can contain signaling and data transmission, for voice and video service, the complexity of video networking and system video platform stream media processing is much simpler than data processing, the efficiency is greatly improved over hundred times than the traditional server.

Storage Technology (Storage Technology)

The ultra-high speed memory technology of the system video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is instantly and directly sent to the user terminal, the time for the user to wait is less than 0.2 second, the optimized sector distribution greatly reduces the mechanical movement of the hard disk magnetic head seek, the resource consumption only accounts for 20% of the same grade IP internet, but the concurrent flow which is 3 times larger than the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.

Network Security Technology (Network Security Technology)

The structural design of the video network completely eliminates the network security problem which troubles the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, and does not need antivirus programs and firewalls, thereby avoiding the attack of hackers and viruses and providing a structural careless security network for users.

Service Innovation Technology (Service Innovation Technology)

The system video platform integrates services and transmission at , no matter a single user, a private network user or a total of networks, the automatic connection is only times, a user terminal, a set-top box or a PC is directly connected to the system video platform to obtain various multimedia video services in various forms, and the system video platform adopts a menu type matching table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes new service innovation in an infinite quantity.

Networking of the video network is as follows:

the internet of view is kinds of network structures with centralized control, and the network can be a tree type network, a star type network, a ring network and the like, but on the basis of the network, a centralized control node is needed to control the whole network.

As shown in fig. 1, the video network is divided into an access network and a metropolitan network.

The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.

The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.

Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.

The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.

The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.

It can be seen that the whole network of view is network structures controlled by hierarchical centralization, and the network controlled by node server and metropolitan area server can be various structures such as tree, star, ring, etc.

The access network part can form a system video platform (the part in the dotted circle), a plurality of systems video platforms can form a video network, and each system video platform can be interconnected through a metropolitan area and a video network.

Video networking device classification

1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.

1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).

The specific hardware structure of each access network device is as follows:

a node server:

as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;

the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.

The access switch:

as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;

wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.

The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:

if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;

if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.

The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.

The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.

Ethernet protocol conversion gateway

As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.

Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;

the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.

The other modules in the ethernet protocol gateway function similarly to the access switch.

A terminal:

the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.

1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.

2. Video networking packet definition

2.1 Access network packet definition

The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.

As shown in the following table, the data packet of the access network mainly includes the following parts:

DA SA Reserved Payload CRC

wherein:

the Destination Address (DA) is composed of 8 bytes (byte), the th byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are at most 256 possibilities, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;

the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);

the reserved byte consists of 2 bytes;

the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;

the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.

2.2 metropolitan area network packet definition

The topology of the metro network is a graph, and there may be 2, even more than 2 connections between two devices, that is, there may be more than 2 connections between a node switch and a node server, between a node switch and a node switch, and between a node switch and a node server, however, the addresses of the metro networks of the metro network devices are only , and in order to accurately describe the connection relationship between the metro network devices, the parameter label is introduced in the embodiment of the present invention, so that only describes metro network devices.

The Label definition in this specification is similar to the Label definition of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between device a and device B, there are 2 labels for a packet from device a to device B, and there are 2 labels for a packet from device B to device a. the Label is divided into an incoming Label and an outgoing Label, and assuming that the Label (incoming Label) of a packet entering device a is 0x0000, the Label (outgoing Label) of the packet leaving device a may become 0x 0001.

As shown in the following table, the data packet of the metro network mainly includes the following parts:

DA SA Reserved label (R) Payload CRC

Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.

Based on the characteristics of the video network, , which is the core concept of the embodiment of the present invention, follows the protocol of the video network, the protocol conversion server uploads the alarm information generated by the monitoring device to the video network server, and the video network server sends the alarm information to the management center, so as to display the alarm information at the front end of the web page.

Referring to fig. 5-1, there is shown a block diagram of systems for acquiring alarms, which can be applied to an internet of view, and comprise a monitoring device, a collaboration server, an internet of view server, a monitoring management platform and a web front end, wherein the collaboration server is connected with or more monitoring devices.

In the embodiment of the invention, the monitoring equipment is deployed in the Ethernet, and the communication process between the monitoring equipment and the video network server can be mainly realized through the Ethernet protocol conversion server; the monitoring management platform and the webpage front end are also accessed to the video network server, and related information sent by the monitoring equipment can be acquired through data transmission with the video network server. In the video network, the coordination server is positioned in the access network part, and can be connected with the access switch or directly connected with the video network server. In ethernet, the protocol server is connected to a standard ethernet switch, which is connected to an ethernet terminal, such as a monitoring device.

The protocol conversion server accesses the video network, and obtains the MAC address of the protocol conversion server and the MAC address of the Ethernet terminal registered under the Ethernet protocol conversion server from the video network server with the centralized control function. When the protocol conversion server receives a data packet or a protocol packet sent by the video network, adding the MAC address of the Ethernet protocol conversion gateway and the MAC address of a target terminal in the data packet or the protocol packet, then sending the data packet or the protocol packet to the Ethernet, and transmitting the data packet or the protocol packet in the Ethernet by adopting an Ethernet protocol; when the protocol conversion server receives a data packet or a protocol packet sent by the Ethernet, the MAC address of the protocol conversion server and the MAC address of the source terminal in the data packet or the protocol packet are removed, and then the data packet or the protocol packet is sent to the video network, and the video network protocol is adopted for transmission in the video network.

After the monitoring equipment and the video network server establish communication in the mode, the monitoring alarm information can be sent to the corresponding video network server, and then the video network server sends the monitoring alarm information to the monitoring management platform of the video network.

The system for acquiring an alarm may specifically include the following modules:

the monitoring device 501 specifically includes:

the detection module 5011 is used for detecting the number of people in the monitoring range.

In the detection module 5011, the monitoring device can detect the number of people in the monitoring range by adopting an OpenCV (OpenSource Computer Vision library) open source Computer Vision library technology, which is developed based on C language and part of C + + language and can be used for Computer Vision, image processing and pattern recognition and tracking.

The monitoring device capable of detecting the number of people by embedding a computer program by adopting the OpenCV technology is a network monitoring device, the network monitoring device is an IP monitoring system used for specific application in the fields of safety monitoring and remote monitoring, and the system enables a user to realize video monitoring, video image recording and related alarm management through an IP network. Network monitoring equipment uses a network, rather than a point-to-point analog video cable, to transmit video and other various monitoring-related information.

In the embodiment of the present invention, the type of the monitoring device is not specifically limited, and what technique is used by the monitoring device to detect the number of people is not specifically limited, as long as the result of detecting the number of people in the monitoring range can be achieved.

The staff aggregation alarm generating module 5012 is configured to generate staff aggregation alarm information when the number of the staff exceeds a set threshold.

When the number of the personnel in the monitoring range exceeds a set threshold value, the personnel density is over high, and the police is required to take safety precaution on the area, so that the monitoring equipment generates personnel gathering alarm information. The content of the personnel gathering alarm information may include: time, place, personnel number, monitoring equipment identification, protocol server identification and the like. The alarm information may be a data packet generated under an ethernet protocol, for example, the ethernet protocol may be a TCP/IP protocol, and the data packet may be an IP data packet or a TCP data packet. Specifically, before forwarding an IP data packet to the protocol conversion server, the monitoring device obtains the MAC address of the default protocol conversion server through an ARP request, where the data packet may carry a source IP address of the monitoring device, a target IP address of a monitoring management platform to be finally reached, and a MAC address set for monitoring and a MAC address of the protocol conversion server.

The monitoring device list corresponding to the protocol conversion server can be included under each protocol conversion server, and the monitoring device list comprises identifications of one or more monitoring devices.

Further , the number of the corotation server may be that it registers in the video network, and each corotation server allowed to access the network must register, and terminals that have not registered cannot access the network.

Of course, the identifications of the coordination server and the monitoring device may also adopt other manners that can be used to identify the specific coordination server and the specific monitoring device, for example, a domain name is used as the identification, which is not limited in the present invention.

In fig. 5-2, a block diagram of a monitoring device 501 of the present invention is shown, wherein, as preferred embodiments of the present invention, the monitoring device may further include a person recovery alarm generating module 5013, configured to generate a person recovery alarm message when the number of persons is smaller than a set threshold.

When the number of the personnel in the monitoring range exceeds a threshold value, the monitoring equipment still monitors the number of the personnel in the monitoring range after sending out the personnel gathering alarm information. When the number of people is less than the set threshold value, the alarm indicating the people gathering is released, and the safety precaution of the area can be degraded correspondingly. At this time, the monitoring equipment generates personnel recovery alarm information to inform the monitoring management center that the number of personnel in the area is recovered to be normal. The personnel recovery warning information may include: time, place, personnel number, monitoring equipment identification, protocol server identification and the like.

According to the embodiment of the invention, the personnel recovery warning module is arranged in the monitoring equipment, and the monitoring management platform can timely know that the quantity of personnel in the area is changed from gathering to normal by sending the personnel recovery warning information, so that the monitoring management personnel can adjust the security measures according to the real-time condition, the security work is more targeted, and the waste of security resources is avoided.

The collaboration server 502 specifically includes:

a conversion module 5021, configured to convert the alarm information into a video networking information data packet containing path information; the path information is obtained according to a preset corresponding relation between the cooperative server and the monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking.

A protocol server, i.e., a protocol gateway, which is used between two systems with different communication protocols, data formats or languages, even completely different architectures, and which enables hosts on the communication network using different higher layer protocols to still cooperate with each other is a "gateway" where networks are connected to another networks.

The path information in the embodiment of the present invention is obtained according to a preset corresponding relationship between a protocol server and a monitoring management platform, and is used for identifying a transmission path of the video network information data packet in the video network, including a source IP address and a destination IP address of the alarm information, where the source IP address is an IP address of the monitoring device, and the destination IP address is an IP address of the monitoring management platform, the monitoring device encapsulates the IP data packet into an ethernet data frame at a data link layer, and then sends the ethernet data frame to a default protocol server according to the destination MAC address, when the protocol server receives the ethernet data frame, it finds that the destination MAC address in the data frame is a physical address of a port of the protocol server, and at this time, the protocol server will remove the encapsulation of the ethernet data frame, that is, remove the MAC address and the source MAC address of the protocol server, change the source IP address of the protocol server into the IP address of the protocol server, and the protocol server matches with a routing table through the destination IP address of the IP data packet, and sends the packet to a next network if the destination IP address is a destination network entry, and then forwards the network entry to a next network .

In the embodiment of the invention, the cooperative conversion server not only plays a role of a gateway in network connection, but also can convert the format of the data packet transmitted by the monitoring equipment. Because the alarm information generated by the monitoring equipment is a data packet which is suitable for transmission in the ethernet environment and does not conform to the specification of the video networking protocol on the data transmission format, the monitoring equipment needs to rely on the protocol conversion server to convert the video networking information data packet which conforms to the video networking protocol.

In fig. 5-3, a block diagram of a corotation server 502 of the present invention is shown, wherein, as preferred embodiments of the present invention, the conversion module 5021 may further comprise:

an adding submodule 50211, configured to add a video networking protocol header and path information to the alarm information; the path information is obtained according to a preset corresponding relation between the cooperative server and the monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking.

In the embodiment of the invention, the assistant server removes the IP protocol packet header of the alarm information data packet sent by the monitoring equipment and adds the upper view networking protocol packet header; and modifying the field indicating the path information in the data packet, namely changing the source IP address into the IP address of the protocol conversion server, wherein the destination IP address is unchanged.

And the encapsulating submodule 50212 is configured to encapsulate the alarm information in a video networking protocol message body to generate a video networking information data packet containing path information.

And the protocol conversion server encapsulates the modified data packet in a video networking protocol message body. Therefore, the warning information data packet adaptive to Ethernet transmission becomes a video networking information data packet which can be transmitted in a video networking environment.

In the embodiment of the invention, the protocol conversion server converts the alarm information data packet into a data format suitable for transmission in the video network by adding the packet header and modifying the path information for the alarm information, and carries the transmission path information, so that the alarm information can be smoothly transmitted in the video network and accurately reaches a destination network.

And the uploading module 5022 is used for uploading the video networking information data packet to a video networking server through the video networking according to the path information.

And the protocol conversion server sends the converted video network information data packet with the destination IP to a lower hop route positioned in the video network, and the lower hop route is matched with the network according to the destination IP until the video network information data packet reaches a video network server where the destination network is positioned.

The video networking server 503 specifically includes a sending module 5031, configured to send the video networking information data packet to the monitoring management platform that has accessed the video networking server according to the path information.

And the video networking server sends the video networking information data packet to a monitoring management platform corresponding to the target IP address. Therefore, the alarm information data packet sent by the monitoring equipment in the Ethernet reaches the target monitoring management platform in the video network, and the information transmission from the Ethernet to the video network is realized.

The monitoring management platform 504 specifically includes an analyzing module 5041, configured to analyze the video networking information data packet to form an analysis result data packet.

The specific process is that the analysis module 5041 puts the received video networking information data packets into a storage area, then takes out the alarm information data items one by one from the storage area, removes the packet header of the video networking protocol in each data item, reads the data content field from the message body of the data item, and extracts the original information of the alarm information, which is the alarm information generated by the initial monitoring equipment, to form an analysis result data packet.

In fig. 5-4, a block diagram of the structure of the video network server 504 of the present invention is shown, wherein, as preferred embodiments of the present invention, the parsing module 5041 of the video network server 504 may further include:

and the queuing sub-module 50411 is used for placing the alarm information into an alarm information queue.

The alarm information in the embodiment of the invention is generated according to the number of personnel in a monitoring range, and data can be increased or decreased at any time, and the linked list has the characteristic of non-sequential storage, so that the space of a computer memory can be fully utilized, and the linked list is preferably used for storing alarm information data packets.

And the analysis submodule 50412 is used for starting a single thread to analyze the alarm information in the queue.

After the linked list queue is built, based on the next reference of the linked list, opening an independent thread to analyze each data items of the queue one by one, removing the packet head of the data packet during analysis, and reading the content of the data field.

The result generation submodule 50413 is configured to generate an analysis result packet.

And after the content of the data field is read, storing the read content to generate an analysis result data packet. The content of the analysis result data packet is the original alarm information generated by the monitoring equipment, and may include information such as time, place, number of personnel, identification of the monitoring equipment, identification of the protocol server, and the like of the alarm of the monitoring equipment.

In the embodiment of the invention, a queue submodule 50411, an analysis submodule 50412 and a result generation submodule 50413 are arranged in an analysis module 5041, video network information data packets received by a monitoring management platform are placed in an alarm information queue to be analyzed one by one, and finally the video network information data packets become analysis result data packets which can be sent to the front end of a webpage.

Monitoring management platform 504 also includes a sending module 5042, configured to send the parsing result data packet to a front end of a web page for presentation.

The sending module 5042 may send the parsing result data packet actively, that is, sends the parsing result data packet as soon as generating information or sends the parsing result data packet at a specific time interval, or send the parsing result data packet passively, that is, sends the parsing result data packet in response to a get request from the front end of the web page, which is not limited in this embodiment of the present invention.

And the webpage front end 505 is used for displaying the analysis result.

The front end of the web page refers to a web page that can be browsed and used through a browser, and can be supported by a computer, a tablet computer, a mobile terminal and the like. The warning information actively sent by the video network server can be displayed at the front end of a webpage in a popup mode, and monitoring management personnel can check the content of the warning information by clicking; or sending a http (hypertext transfer protocol) get request to the video network server by the front end of the webpage to request the video network server to send the alarm information, and then submitting the alarm information to the front end of the webpage by the video network server in response to the request of the front end of the webpage.

In summary, the alarm acquisition systems provided by the embodiments of the present invention are applied to a video network, and the systems include monitoring devices, a collaboration server, a video network server, a monitoring management platform, and a web front end, where the collaboration server is connected to or more monitoring devices, and through the systems, information interaction between the monitoring devices on the ethernet and the video network is achieved, so that the monitoring management platform on the video network can acquire alarm information on the monitoring devices in each area in real time, thereby facilitating monitoring managers to know the people gathering condition in each area in time, and performing security management more efficiently.

Referring to FIG. 6, a flow chart of the steps of the method of obtaining alerts of the present invention is shown.

The method for acquiring the alarm is applied to the alarm acquisition systems, wherein the systems are applied to a video network and comprise monitoring equipment, a coordination server, a video network server, a monitoring management platform and a webpage front end, and the coordination server is connected with or more monitoring equipment;

the method comprises the following steps:

601, detecting the number of personnel in a monitoring range by monitoring equipment;

step 602, when the number of the people exceeds a set threshold, the monitoring device generates people gathering alarm information;

in preferred embodiments of the present invention, after step 602, the method further comprises:

and when the number of the personnel is less than a set threshold value, the monitoring equipment generates personnel recovery alarm information.

Step 603, the cooperative conversion server converts the alarm information into a video networking information data packet containing path information;

in preferred embodiments of the present invention, the step 603 includes:

the protocol conversion server adds a video networking protocol packet header and path information to the alarm information; the path information is obtained according to a preset corresponding relation between a coordination server and a monitoring management platform and is used for identifying a transmission path of the video networking information data packet in the video networking;

and the protocol conversion server encapsulates the alarm information in a video networking protocol message body to generate a video networking information data packet containing path information.

Step 604, the protocol conversion server uploads the video networking information data packet to a video networking server through the video networking according to the path information;

step 605, the video network server sends the data packet to a monitoring management platform accessed to the video network server according to the path information;

step 606, the monitoring management platform analyzes the video networking information data packet to form an analysis result data packet;

in preferred embodiments of the present invention, the step 606 includes:

the monitoring management platform puts the video networking information data packet into an alarm information queue;

the monitoring management platform starts an independent thread to analyze the alarm information in the queue;

and the monitoring management platform generates an analysis result data packet.

Step 607, the monitoring management platform sends the analysis result data packet to the front end of the webpage for display.

To sum up, the alarm obtaining methods provided by the embodiments of the present invention are applied to a video network, and the methods include that a monitoring device detects the number of people in a monitoring range, the monitoring device generates people gathering alarm information when the number of people exceeds a set threshold, a coordination server converts the alarm information into a video network information data packet containing path information, wherein the path information is obtained according to a preset corresponding relationship between the coordination server and a monitoring management platform and is used for identifying a transmission path of the video network information data packet in the video network, the coordination server uploads the video network information data packet to the video network server through the video network according to the path information, the video network server sends the data packet to a monitoring management platform connected to the video network server according to the path information, the monitoring management platform analyzes the video network information data packet to form an analysis result data packet, the monitoring management platform sends the analysis result data packet to a front end of a webpage for display, the monitoring device and the video network realize information interaction, the monitoring management platform on the video network can obtain the alarm information in real time, and the personnel gathering information can be conveniently monitored in a monitoring area.

As for the method embodiment, since it is basically similar to the system embodiment, the description is simple, and the relevant points can be referred to the partial description of the system embodiment.

Referring to FIG. 7, a data flow diagram of the method of obtaining alarms of the present invention is shown, which records the information flow of aggregating alarm information from a monitoring device to a person at the front end of a web page.

In the embodiment of the invention, the monitoring equipment generates personnel gathering alarm information and sends the personnel gathering alarm information to the cooperative conversion server; the protocol conversion server converts the information into a format suitable for video networking transmission and uploads the information to the video networking server; the video network server sends the alarm information to a monitoring management platform; and the monitoring management platform analyzes the alarm information and sends the alarm information to the front end of the webpage in response to a data exchange request of the front end of the webpage. Therefore, the personnel gathering alarm information generated by the monitoring equipment in the Ethernet smoothly enters the monitoring management platform in the video network, and the monitoring management personnel at the front end of the webpage can check the alarm information in time and process the alarm information.

It should be noted that, for simplicity of description, the method embodiments are described as series combinations of actions, but those skilled in the art should understand that the present invention is not limited by the order of the actions described, because some steps may occur in other orders or concurrently according to the embodiments of the present invention.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

Furthermore, the present invention may take the form of a computer program product embodied on or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

It is to be understood that each flow and/or block in the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions which can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flow diagram flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Having thus described the preferred embodiments of the present invention, additional variations and modifications of these embodiments may occur to those skilled in the art from the basic inventive concepts .

Finally, it should also be noted that, in this document, relational terms such as , second, and the like are only used to distinguish entities or operations from another entities or operations, without necessarily requiring or implying any actual relationship or order between such entities or operations, furthermore, the terms "comprise", "include", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises the family of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or terminal.

The warning acquiring systems and methods provided by the present invention are described in detail above, and the present invention is described in the principle and the implementation manner by applying specific examples, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof, and meanwhile, for persons in the art, there are changes in the specific implementation manner and the application scope according to the idea of the present invention, and in conclusion, the content of the present description should not be construed as a limitation to the present invention.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:监控录像预览方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类