CN110300283B - Monitoring and inspection control method and device based on video networking - Google Patents

Monitoring and inspection control method and device based on video networking Download PDF

Info

Publication number
CN110300283B
CN110300283B CN201910562825.5A CN201910562825A CN110300283B CN 110300283 B CN110300283 B CN 110300283B CN 201910562825 A CN201910562825 A CN 201910562825A CN 110300283 B CN110300283 B CN 110300283B
Authority
CN
China
Prior art keywords
monitoring
inspection
task
inspection task
external control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910562825.5A
Other languages
Chinese (zh)
Other versions
CN110300283A (en
Inventor
谢文龙
闫治波
李云鹏
沈军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Qiantang Shilian Information Technology Co.,Ltd.
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910562825.5A priority Critical patent/CN110300283B/en
Publication of CN110300283A publication Critical patent/CN110300283A/en
Application granted granted Critical
Publication of CN110300283B publication Critical patent/CN110300283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a monitoring and inspection control method and device based on a video network, wherein a computer stores a medium and electronic equipment, and the video network comprises a monitoring management platform, a monitoring access server and a plurality of monitoring terminals; the method is applied to monitoring the access server and comprises the following steps: receiving a monitoring and inspection instruction sent by the monitoring and management platform, starting a monitoring and inspection task, and binding the monitoring and inspection task with an external control object; sequentially pulling the video stream of each monitoring terminal, and pulling the video stream of the next monitoring terminal at preset sleep time intervals after the video stream of one monitoring terminal is pulled; and when the polling control instruction is received, if the polling control instruction is in the dormant time at present, executing the polling control instruction through the external control object after the dormant time. The interface calling performance is guaranteed by not executing the control instruction in the dormancy period, so that normal monitoring and inspection are guaranteed, and the problem of program breakdown is avoided.

Description

Monitoring and inspection control method and device based on video networking
Technical Field
The invention relates to the technical field of monitoring, in particular to a monitoring and inspection control method based on an internet of vision, a monitoring and inspection control device based on the internet of vision and a computer readable storage medium.
Background
The video network is an Ethernet hardware real-time large bandwidth transmission network, which is a special network for transmitting high-definition video and special protocols at high speed. At present, a video network is widely applied to transmission of high-definition monitoring, in the application of high-definition monitoring video, monitoring resources which are gathered on a monitoring management platform cannot guarantee 100% of real-time application due to various reasons such as equipment faults and network links, in practice, due to the fact that the overall availability is affected by unknown faults, a monitoring resource inspection strategy is adopted, and monitoring media streams are pulled from monitoring equipment. However, the problem that the inspection process is suddenly suspended and cannot be started is often caused in the conventional inspection process, and the problems of abnormal inspection closing and program crash are often caused when inspection is controlled, so that the conventional monitoring inspection strategy is low in efficiency and poor in user experience.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a monitoring patrol controlling method based on a visual networking, a monitoring patrol controlling method apparatus based on a visual networking, and a computer readable storage medium, which overcome or at least partially solve the above problems.
In order to solve the above problems, a first aspect of the embodiments of the present invention discloses a monitoring and inspection control method based on a video network, where the video network includes a monitoring management platform and a monitoring access server in communication connection with the monitoring management platform; the monitoring access server is connected with a plurality of monitoring terminals; the method is applied to the monitoring access server and comprises the following steps:
receiving a monitoring and inspection instruction sent by the monitoring and management platform, starting a monitoring and inspection task based on the monitoring and inspection instruction, and binding the monitoring and inspection task with an external control object;
based on the monitoring inspection task, sequentially pulling the video streams of the plurality of monitoring terminals, and pulling the video stream of the next monitoring terminal at preset sleep time intervals after the video stream of one monitoring terminal is pulled;
when an inspection control instruction sent by the monitoring management platform is received, judging whether the current time is in the dormancy time;
if so, after the dormancy time, controlling the monitoring inspection task corresponding to the inspection control instruction through the external control object;
and if not, controlling the monitoring inspection task corresponding to the inspection control instruction through the external control object.
Optionally, the external control object further comprises an internal control gate, the method further comprising:
in the sleep time, the state of the monitoring inspection task is set to be a locking state through the internal control door, and a switching signal of the control door is set to be a non-termination state;
outside the dormancy time, setting the state of the monitoring inspection task to be a non-locking state through the internal control door, and setting a switch signal of the control door to be a termination state;
the step of judging whether the monitoring inspection task is in the dormancy time comprises the following steps:
and detecting a switching signal of the internal control door, and if the switching signal of the internal control door is in a non-termination state, determining that the monitoring inspection task is in the dormancy time.
Optionally, the step of performing, by the external control object, control corresponding to the inspection control instruction on the monitoring inspection task includes:
if the inspection control instruction is an inspection stopping command, the monitoring inspection task is controlled to interrupt the current polling through the external control object;
and if the monitoring and inspection control instruction is an inspection canceling instruction, the monitoring and inspection task is controlled by the external control object to terminate the current polling, and the binding relationship between the external control object and the monitoring and inspection task is released.
Optionally, the method further comprises:
when polling one monitoring terminal, determining a polling progress according to the number of the polled monitoring terminals and the total number of the monitoring terminals, and generating a first progress report when the polling progress reaches a preset threshold value;
and sending the first progress report to the monitoring management platform.
Optionally, the method further comprises:
judging when the monitoring inspection task is cancelled at intervals of preset time by the external control object
Whether an interrupt is in the sleep time;
and if so, after the dormancy time, canceling the monitoring inspection task through the external control object.
Optionally, when an inspection control instruction sent by the monitoring management platform is received, before the step of judging whether the current time is in the sleep time, the method further includes:
recording the polling times of all the monitoring terminals which have polled;
after the step of controlling the monitoring inspection task to execute the task corresponding to the inspection control instruction by the external control object, the method further comprises the following steps:
generating a second progress report according to the currently determined polling progress and the recorded polling times;
and sending the second progress report to the monitoring management platform.
In a second aspect of the embodiments of the present invention, a monitoring and inspection control device based on a video network is provided, where the video network includes a monitoring management platform and a monitoring access server in communication connection with the monitoring management platform; the monitoring access server is connected with a plurality of monitoring terminals; the apparatus is located at the monitoring access server, and includes:
the inspection task starting module is used for receiving a monitoring inspection instruction sent by the monitoring management platform, starting a monitoring inspection task based on the monitoring inspection instruction and binding the monitoring inspection task with an external control object;
the polling module is used for sequentially pulling the video streams of the plurality of monitoring terminals based on the monitoring polling task, and after the video stream of one monitoring terminal is pulled, the video stream of the next monitoring terminal is pulled at intervals of preset sleep time;
the dormancy judging module is used for judging whether the current time is in the dormancy time or not when receiving the inspection control instruction sent by the monitoring management platform;
the instruction execution module is used for controlling the monitoring inspection task through the external control object corresponding to the inspection control instruction after the dormancy time if the monitoring inspection task is in the dormancy time; and if the monitoring and inspection task is not in the sleep time, the monitoring and inspection task is controlled corresponding to the inspection control instruction through the external control object.
Optionally, the external control object further comprises an internal control gate, and the apparatus further comprises:
the locking module is used for setting the state of the monitoring inspection task to be a locking state through the internal control door in the dormancy time and setting a switching signal of the control door to be a non-termination state;
the unlocking module is used for setting the state of the monitoring inspection task to be a non-locking state through the internal control door outside the dormancy time, and setting a switch signal of the control door to be a termination state;
the dormancy judging module is specifically used for detecting a switch signal of the internal control door, and if the switch signal of the internal control door is in a non-termination state, the monitoring patrol task is determined to be in the dormancy time.
In a third aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the monitoring tour inspection control method based on a video network.
In a third aspect of the present invention, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the monitoring patrol control method based on the video network is implemented.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when receiving a monitoring and polling command, a monitoring and polling task is started by a monitoring access server, the monitoring and polling task is bound with an external control object, when the video stream of each monitoring terminal is polled, the video stream of the next monitoring terminal is pulled at a preset sleep time interval after the video stream of one monitoring terminal is polled, and when the polling control command is received in the sleep time, the polling control command is executed after waiting for the sleep time. Because the dormancy time is set between the video streams polling each monitoring terminal, the monitoring polling of the invention is to intermittently pull the video streams, and the interface has the dormancy time, thereby ensuring the calling performance of the interface; if the patrol control instruction is received within the dormancy time, the patrol control instruction is executed after the dormancy time, so that the calling performance of the interface is further ensured, the problem of program crash caused by interface calling failure when the instruction is executed within the dormancy period of interface calling is avoided, the monitoring patrol performance of the monitoring access server is ensured, the monitoring patrol in the video network can be normally stopped, continued or cancelled, and the user experience is optimized.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is an application environment diagram of a first embodiment of a monitoring and inspection control method based on a video network according to the present invention;
FIG. 6 is a flowchart of a first embodiment of a monitoring and inspection control method based on a video network according to the present invention;
fig. 7 is a schematic structural diagram of a second embodiment of the monitoring inspection control device based on the video network.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast 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 the traditional Ethernet (Ethernet) to face the potentially huge first 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 defects of the Ethernet 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 an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server technology (Servertechnology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified 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 directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of 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 troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the 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.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
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: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, 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 server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, 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 incoming data packet of the CPU module 304 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 and may include 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 308 is configured by the CPU module 304, 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 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 MAC SA of the ethernet protocol 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 first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, 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 a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
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 networking, in order to solve the technical problems, one of the core technical concepts of the invention is provided, when a monitoring access server receives a monitoring patrol instruction, a monitoring patrol task is started, and the monitoring patrol task is bound with an external control object, so that the external control object controls the monitoring patrol task, and the monitoring patrol task is prevented from being controlled randomly by other threads, thereby ensuring that the monitoring patrol can be carried out normally; the preset sleep time is arranged between every two polling monitoring terminals at intervals, so that the interface can be dormant, the calling performance of the interface is guaranteed, the polling control instruction is not executed in the sleep time, and the problem that the program is crashed due to interface calling failure when the instruction is executed in the sleep period of interface calling is avoided.
Example one
Referring to fig. 5, a diagram of an application environment of a monitoring pricing inquiry control method based on a video network according to an embodiment of the present invention is shown, in fig. 5, the video network includes a monitoring management platform, and a monitoring access server communicatively connected to the monitoring management platform; the monitoring access server is connected with a plurality of monitoring terminals.
The monitoring management platform is also called tangula in the video network, and can be understood as an application system which can be installed on a computer, and the monitoring management platform has the main functions of summarizing all monitoring terminals of the monitoring access server, displaying information of the monitoring terminals, calling monitoring videos of the monitoring terminals and controlling the monitoring terminals.
The monitoring access server may be understood as a server for managing a plurality of monitoring terminals in the internet of view, and in practice, the monitoring access server may acquire monitoring videos of the plurality of monitoring terminals according to an instruction of the monitoring management platform, and may poll monitoring video streams of each monitoring terminal to acquire a current state of the monitoring terminal.
Because the embodiment of the invention is applied to the video network, based on the characteristic that the video network can support the high-definition video conference, the monitoring terminal of the embodiment of the invention can be, but is not limited to, the following equipment: cameras, computers or tablets with cameras, smart phones and the like. When the monitoring terminal is a smart phone, the embodiment of the invention can be applied to a large-scale video conference scene to poll the monitoring video of each smart phone participating in the video conference, and then the host can acquire the participation dynamics of each participant, thereby widening the application range of the embodiment of the invention.
As shown in fig. 6, a flowchart of a monitoring inquiry control method based on a video network according to an embodiment of the present invention is shown, where the method is applied to the monitoring access server, and the monitoring access server may specifically perform the following steps:
in step 601, a monitoring and inspection instruction sent by the monitoring and management platform is received, a monitoring and inspection task is started based on the monitoring and inspection instruction, and the monitoring and inspection task is bound with an external control object.
In this embodiment, the monitoring and inspection instruction may be generated by the monitoring and management platform according to a selection operation of a user on the interface for monitoring and inspection, where the monitoring and inspection instruction is an instruction conforming to a video networking control protocol, and may include a unicast address. The control protocol of the video network can be understood as a protocol used for encapsulating control signaling in the video network protocol; the unicast address is understood to be an interface that uniquely corresponds to a device in the video network, and each device accessing the video network has an interface that can obtain a unicast address that is unique across the entire network. In practice, when the monitoring inspection instruction is transmitted from the monitoring management platform to the monitoring access server, the monitoring management platform and the monitoring access server may be located by using the unicast address.
When the interface corresponding to the unicast address in the monitoring access server receives the monitoring patrol instruction, the monitoring patrol task can be started, wherein the monitoring patrol task can be understood as an operation process of monitoring video streams of a plurality of monitoring terminals which can be accessed in the monitoring access server in sequence. In this embodiment, the monitoring access server may further bind the opened monitoring inspection task with an external control object, where the bound external control object may represent that the monitoring inspection task is specifically controlled by the external control object, and the external control object may be understood as a control thread that may suspend, cancel, interrupt, or resume the monitoring inspection task, and in practice, the external control object may be, but is not limited to, a cancel multithreading object.
By adopting the technical scheme of binding the monitoring inspection task with the external control object, the monitoring inspection task is controlled by the external control object in a targeted manner to pause, cancel, terminate or resume the monitoring inspection, so that the monitoring inspection task is not controlled by other threads at will, and the normal operation of the monitoring inspection is fully ensured.
In step 602, based on the monitoring inspection task, the video streams of the plurality of monitoring terminals are sequentially pulled, and after the video stream of one monitoring terminal is pulled, the video stream of the next monitoring terminal is pulled at a preset sleep time interval.
In this embodiment, the monitoring access server may use the opened monitoring polling task to call an interface for calling a video stream of the monitoring terminal in the monitoring access server, so as to sequentially obtain video streams of all the accessed monitoring terminals, characterize that the monitoring terminal normally works after determining that the video stream of the monitoring terminal is obtained, and characterize that the monitoring terminal does not normally work after determining that the video stream of the monitoring terminal is not obtained. In practice, when the monitoring access server pulls a video stream of one monitoring terminal, the video stream of the next monitoring terminal can be continuously pulled at preset sleep time intervals no matter whether the video stream is pulled. In practice, the video stream may be a monitoring video stream collected by a monitoring terminal, and the sleep time may be understood as a time length for the monitoring server to release a link with the monitoring terminal and sleep after pulling a video stream of the monitoring terminal, where the time length of the sleep time may be set in advance by a user as required.
The technical scheme that the video stream of the next monitoring terminal is pulled at preset sleep time intervals is adopted, and the interface for calling the video stream of the monitoring terminal has the time for releasing the communication link and sleeping of the monitoring terminal after the video stream of the monitoring terminal is called, so that the communication connection with the next monitoring terminal can be successfully established when the interface for calling the video stream of the monitoring terminal calls the video stream of the next monitoring terminal. And due to the preset time of dormancy, the interface is in an initial state when the video stream of one monitoring terminal is pulled, so that the interface has better performance when the video stream of one monitoring terminal is pulled. Therefore, the technical scheme can ensure that the video stream of each monitoring terminal can be successfully patrolled.
In step 603, when an inspection control instruction sent by the monitoring management platform is received, whether the current time is in the sleep time is judged.
In this embodiment, the inspection control instruction may be generated by the monitoring management platform according to a control selection of the user for monitoring inspection, where the control selection may include, but is not limited to, the following: suspending the inspection, terminating the inspection, canceling the inspection and the like. The patrol control instruction is an instruction which comprises a unicast address and conforms to a video networking control protocol.
When receiving the inspection control instruction, the monitoring access server can firstly judge whether the current monitoring inspection task is in the preset dormancy time. If yes, it is indicated that the monitoring inspection task is in the process of releasing the link with the previous monitoring terminal and sleeping, and in this case, step 604 is executed. If not, the monitoring inspection task is not in the process of releasing the link with the last monitoring terminal and sleeping, and in this case, step 605 is executed.
In step 604, after the sleep time, the monitoring inspection task is controlled by the external control object according to the inspection control instruction.
When the task is patrolling and examining in the process of releasing the link with the last monitor terminal and sleeping, if other control operations are carried out at this moment, the interface call can fail, and then the whole process of patrolling and examining is influenced. After the preset sleep time, the interface can be called in establishing a link with the next monitoring terminal and pulling the video stream, and at the moment, the control initiated by the monitoring inspection task can be normally carried out. Specifically, because the external control object is bound with the monitoring inspection task, the monitoring inspection task can be correspondingly controlled by the external control object, so that the monitoring inspection task is in a state aimed at by the inspection control instruction.
If the inspection control instruction is a pause inspection instruction, the monitoring inspection task is paused through an external control object after a preset sleep time of the monitoring access server and the like, namely, the external control object controls the monitoring inspection task to pause according to the pause inspection instruction.
And 605, controlling the monitoring inspection task by the external control object according to the inspection control instruction.
In this embodiment, when the monitoring and inspection task is not in the process of releasing the link with the previous monitoring terminal and sleeping, the interface for calling the video stream of the monitoring terminal is being linked with the monitoring terminal, and the interface is being called, so that the monitoring and inspection task can be controlled. In this case, the monitoring access server may perform corresponding control on the monitoring patrol task through the external control object.
In the embodiment, when receiving the monitoring and inspection instruction, the monitoring access server can start the monitoring and inspection task and bind the monitoring and inspection task with an external control object; when the video streams of the plurality of monitoring terminals are sequentially pulled, the video stream time of every two adjacent monitoring terminals is pulled at intervals of preset sleep time, and when the inspection control instruction is received, if the inspection control instruction is judged to be in the preset sleep time, the inspection control instruction is executed through an external control object after the preset sleep time.
In the embodiment, the monitoring and inspection task is bound with the external control object, so that the monitoring and inspection task cannot be randomly controlled by other threads, and the normal operation of monitoring and inspection is ensured; because the dormancy time is set between every two adjacent monitoring terminals, the called interface has the time for releasing the link and dormancy, thereby ensuring the performance of the interface, further ensuring that the interface can be successfully called when the video stream of one monitoring terminal is pulled, and ensuring the normal monitoring and inspection; because the patrol control instruction is not executed in the sleep time, the problem that the interface in the link release and sleep state is failed to be called to cause the program crash is avoided.
With reference to the foregoing embodiment, in an implementation manner, the external control object further includes an internal control gate, and the monitoring access server may further perform the following steps:
in step s1, the state of the monitoring inspection task is set to a locked state by the internal control gate and a switching signal of the control gate is set to a non-terminated state during the sleep time.
The internal control gate can be understood as a thread which is used for monitoring and monitoring the current state of the routing inspection task in the external control object and can signal the external control object to inform the current state.
In the preset dormancy time, the interface called in the monitoring inspection task is in the state of releasing the link with the monitoring terminal and dormancy, at the moment, the monitoring access server can set the state of the monitoring inspection task into a locking state through an internal control door, after the locking state is set, a switch signal of the internal control door is automatically set into a non-termination state, and the non-termination state can be understood as a signal sent by the internal control door to other threads to represent that the monitoring inspection task is currently in the dormancy period.
In step s2, outside the sleep time, the state of the monitoring inspection task is set to a non-locked state by the internal control gate, and a switching signal of the control gate is set to a termination state.
Outside the preset dormancy time, the interface called in the monitoring inspection task is in the link with the monitoring terminal, at the moment, the monitoring access server can set the state of the monitoring inspection task to be a non-locking state through the internal control door, after the non-locking state is set, the switch signal of the internal control door is automatically set to be a termination state, the termination state can be understood as a signal sent by the internal control door to other threads, and the monitoring inspection task is represented to be not in the dormancy period currently.
Correspondingly, in step 603, the monitoring access server may detect the switch signal of the internal control door, and if the switch signal of the internal control door is in a non-terminated state, it is determined that the monitoring inspection task is in the sleep time.
When the technical scheme is adopted, the monitoring access server can judge whether the monitoring inspection task is in the dormant time or not through the switch signal of the internal control door when receiving the inspection control command, and if the switch signal of the internal control door is in the non-termination state, the monitoring inspection task is determined to be in the dormant time.
According to the embodiment of the invention, the internal control door is arranged in the external control object, so that the monitoring access server can judge whether the monitoring access server is in the dormant time or not according to the switching signal of the internal control door, and the internal control door sets the state of the monitoring inspection task to be in the locking state in the dormant time, so that the monitoring inspection task cannot be controlled by the outside, and the calling performance of the interface and the monitoring inspection performance of the monitoring access server are further ensured.
With reference to the foregoing embodiment, in an implementation manner, the step of performing, by the external control object, control on the monitoring inspection task corresponding to the inspection control instruction may include the following steps:
and if the inspection control instruction is an inspection stopping command, controlling the monitoring inspection task to interrupt the current polling through the external control object.
In practice, the external control object can analyze the inspection stopping command, and then control the interface called by the monitoring inspection task to be disconnected with the current monitoring terminal according to the analyzed result, so that the monitoring inspection task is suspended to run, and then the monitoring inspection is stopped.
And if the monitoring and inspection control instruction is an inspection canceling instruction, the monitoring and inspection task is controlled by the external control object to terminate the current polling, and the binding relationship between the external control object and the monitoring and inspection task is released.
In practice, the external control object can analyze the cancel polling command, and then, according to the analyzed result, on one hand, the external control object controls the interface called by the monitoring polling task to break the link with the current monitoring terminal, and the monitoring polling task is suspended, on the other hand, the monitoring access server removes the binding relation between the external control object and the monitoring polling task, so that the user can manually cancel the monitoring polling task, or the monitoring access server automatically closes the monitoring polling task after removing the binding relation.
In the embodiment, the monitoring access server can perform different controls on the monitoring inspection task through the external control object according to different inspection control instructions, and further removes the binding relationship between the external control object and the monitoring inspection task when the inspection control instruction is the inspection canceling command, so that the monitoring inspection task can be considered to be cancelled or automatically closed. Because different patrol inspection control instructions are provided, different control strategies are provided, and the flexibility of controlling the monitoring patrol inspection is improved.
With reference to the foregoing embodiment, in an implementation manner, the monitoring access server may further perform the following steps:
when polling one monitoring terminal, determining a polling progress according to the number of the polled monitoring terminals and the total number of the monitoring terminals, and generating a first progress report when the polling progress reaches a preset threshold value.
In this embodiment, the monitoring access server may record the polling progress of the monitoring polling task, and specifically, after each video stream of one monitoring terminal is pulled, the percentage between the number of the polled monitoring terminals and the total number of the plurality of monitoring terminals is calculated, and the percentage is determined as the polling progress. And a preset threshold is set, e.g., five percent, a first progress report including the polling progress is generated when the polling progress reaches or exceeds five percent.
And sending the first progress report to the monitoring management platform.
In this embodiment, the first progress report may be a report conforming to an internet of view data protocol, which may be understood as a protocol for encapsulating data in an internet of view. The first progress report may include a multicast address, the multicast address in the video network corresponds to a data stream, and since the data plane of the video network supports point-to-multipoint communication, the data stream may only come from the same data sender but may be sent to multiple data receivers at the same time. That is, in this embodiment, when the first progress report is sent by using the multicast address, the first progress report may be sent to a server, a platform, or a device other than the monitoring management platform. For example, the first progress report may be transmitted to a pamier platform in the video network, where the pamier platform is a platform for performing video conference management in the video network, and when the first progress report may also be sent to the pamier platform, the present embodiment may be applied to polling of a video conference, so as to inform a conference host of a progress of polling a monitoring video of a participant.
By adopting the embodiment, when monitoring and routing inspection, the monitoring access server can determine the polling progress and send the progress report to the monitoring management platform, so that the monitoring management platform can acquire the actual condition of monitoring and routing inspection according to the progress report, and the user experience is optimized.
With reference to the foregoing embodiment, in an implementation manner, the monitoring access server may further perform the following steps:
and when the monitoring inspection task is cancelled at the time preset by the external control object interval, judging whether the external control object is in the dormant time.
In this embodiment, the monitoring access server can regularly cancel the monitoring inspection task through the external control object, specifically, the external control object can be used for canceling the monitoring inspection task at intervals of preset time, wherein the preset time can be set according to the number of the accessed monitoring terminals, for example, the number of the monitoring terminals is 100, and then the preset time can be set to be 2 hours, so that when two hours arrive after the inspection is started, the external control object can cancel the monitoring inspection task, and before the monitoring inspection task, the external control object can first judge whether to be in the dormancy time.
Specifically, the external control target may determine whether or not the internal control gate is in the sleep time based on the opening/closing information of the internal control gate.
And if so, after the dormancy time, canceling the monitoring inspection task through the external control object.
And if not, the monitoring inspection task is cancelled through the external control object.
In this embodiment, when the external control object determines that the monitoring system is in the sleep time, the monitoring and inspection task can be directly cancelled by the external control object after the sleep time. When the system is specifically implemented, the external control object suspends and closes the monitoring inspection task, and the binding relationship between the external control object and the monitoring inspection task can be released.
By adopting the embodiment, the monitoring inspection task can be cancelled at regular time by the external control object, and the binding relation with the monitoring inspection task is automatically cancelled, so that the monitoring inspection task can be cancelled without manual work, and the user experience is optimized; and when the timing is cancelled, if the timing cancellation is just within the sleeping time, the task of the timing cancellation is executed after the sleeping time, so that the service of the timing cancellation is carried out on the premise of not influencing the performance of the interface called by the monitoring inspection task, the performance of the interface is further ensured, and the program crash is avoided.
In combination with the above embodiment, in an implementation manner, before step 603, the monitoring access server may further perform the following steps:
and recording the polling times of all the monitoring terminals which have polled.
In this embodiment, the monitoring access server may record the polling frequency of the current polling complete monitoring terminal in the process of monitoring and polling, for example, if the monitoring and polling task is currently performing round 4 polling, it indicates that it has completed polling all the monitoring terminals for 3 times, and the recorded polling frequency is 3.
Accordingly, after step 604 or step 605, the monitoring access server may further perform the steps of:
and generating a second progress report according to the currently determined polling progress and the recorded polling times.
And sending the second progress report to the monitoring management platform.
The second progress report comprises the current recorded polling progress and the current recorded polling times, wherein the polling progress represents the progress of the current round of monitoring and polling, and the polling times represents the number of rounds of completed monitoring and polling. If the polling progress is twenty percent and the polling times is 3, the monitoring access server is characterized to finish 3 monitoring patrols, and in the currently performed 4 th monitoring patrols, the video stream pulling of the twenty percent monitoring terminal is finished.
The process of sending the second progress report is similar to the process of sending the first progress report, and is not described herein again.
By adopting the embodiment, after the patrol inspection control instruction is executed, the progress report comprising the current recorded polling progress and polling times can be sent to the monitoring management platform, so that the monitoring management platform can know the current patrol inspection result when the monitoring patrol inspection is controlled to be suspended or cancelled, a user can master the patrol inspection efficiency of the monitoring patrol inspection according to the progress report, the dormancy time in the patrol inspection can be adjusted, the optimal monitoring patrol inspection efficiency is achieved, and the user experience is optimized.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example two
Referring to fig. 7, a monitoring patrol control device based on a video network is shown, the video network includes a monitoring management platform, a monitoring access server connected to the monitoring management platform in communication; the monitoring access server is connected with a plurality of monitoring terminals; the device is positioned in the monitoring access server and comprises a polling task starting module 701, a polling module 702, a dormancy judging module 703 and an instruction executing module 704; wherein:
the inspection task starting module is used for receiving a monitoring inspection instruction sent by the monitoring management platform, starting a monitoring inspection task based on the monitoring inspection instruction and binding the monitoring inspection task with an external control object;
the polling module is used for sequentially pulling the video streams of the plurality of monitoring terminals based on the monitoring polling task, and after the video stream of one monitoring terminal is pulled, the video stream of the next monitoring terminal is pulled at intervals of preset sleep time;
the dormancy judging module is used for judging whether the current time is in the dormancy time or not when receiving the inspection control instruction sent by the monitoring management platform;
the instruction execution module is used for controlling the monitoring inspection task to execute the task aimed by the inspection control instruction through the external control object after the dormancy time if the current state is in the dormancy time; and the external control object is used for controlling the monitoring inspection task to execute the task aimed by the inspection control instruction if the external control object is not in the sleep time currently.
With reference to the above embodiments, in one implementation, the external control object further includes an internal control door, and the apparatus may further include:
the locking module is used for setting the state of the monitoring inspection task to be a locking state through the internal control door in the dormancy time and setting a switching signal of the control door to be a non-termination state;
the unlocking module is used for setting the state of the monitoring inspection task to be a non-locking state through the internal control door outside the dormancy time, and setting a switch signal of the control door to be a termination state;
the dormancy judging module is specifically used for detecting a switch signal of the internal control door, and if the switch signal of the internal control door is in a non-termination state, the monitoring patrol task is determined to be in the dormancy time.
With reference to the foregoing embodiments, in an implementation manner, the instruction execution module is specifically configured to: if the inspection control instruction is an inspection stopping command, the monitoring inspection task is controlled to interrupt the current polling through the external control object; and if the monitoring inspection control instruction is an inspection canceling instruction, the external control object controls the monitoring inspection task to terminate current polling and removes the binding relationship between the external control object and the monitoring inspection task.
In combination with the above embodiments, in an implementation, the apparatus may further include the following modules:
the progress report generating module is used for determining the polling progress according to the number of the polled monitoring terminals and the total number of the monitoring terminals when polling one monitoring terminal, and generating a first progress report when the polling progress reaches a preset threshold value;
and the progress report sending module is used for sending the first progress report to the monitoring management platform.
In combination with the above embodiments, in an implementation, the apparatus may further include the following modules:
the timing cancellation judging module is used for judging whether the monitoring inspection task is in the dormant time or not when the monitoring inspection task is cancelled at intervals of preset time by the external control object;
and the control instruction execution module is used for canceling the monitoring inspection task through the external control object after the dormancy time when the external control object is in the dormancy time.
In combination with the above embodiments, in an implementation, the apparatus may further include the following modules:
the polling recording module is used for recording the polling times of all the monitoring terminals which have been polled;
the progress reporting module is further specifically configured to generate a second progress report according to the currently determined polling progress and the recorded polling times;
the progress report sending module is specifically configured to send the second progress report to the monitoring management platform.
For the embodiment of the monitoring and inspection control device based on the video network, the description is simple because the embodiment is basically similar to the embodiment of the monitoring and inspection control method based on the video network, and relevant points can be referred to partial description of the embodiment of the monitoring and inspection control method based on the video network.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the monitoring inspection control method based on the video network is realized.
The embodiment of the invention also provides electronic equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes, the monitoring and inspection control method based on the video network can be realized.
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.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of 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. These computer program instructions may 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 flowchart 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.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The monitoring and inspection control method based on the video network, the monitoring and inspection control device based on the video network, the computer readable storage medium and the electronic equipment provided by the invention are described in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A monitoring and inspection control method based on a video network is characterized in that the video network comprises a monitoring management platform and a monitoring access server which is in communication connection with the monitoring management platform; the monitoring access server is connected with a plurality of monitoring terminals; the method is applied to the monitoring access server and comprises the following steps:
receiving a monitoring and inspection instruction sent by the monitoring and management platform, starting a monitoring and inspection task based on the monitoring and inspection instruction, and binding the monitoring and inspection task with an external control object; the external control object is a control thread for suspending, canceling, interrupting or recovering the monitoring inspection task;
based on the monitoring inspection task, sequentially pulling the video streams of the plurality of monitoring terminals, and pulling the video stream of the next monitoring terminal at preset sleep time intervals after the video stream of one monitoring terminal is pulled;
when an inspection control instruction sent by the monitoring management platform is received, judging whether the current time is in the dormancy time;
if so, after the dormancy time, controlling the monitoring inspection task corresponding to the inspection control instruction through the external control object;
and if not, controlling the monitoring inspection task corresponding to the inspection control instruction through the external control object.
2. The method of claim 1, wherein the external control object further comprises an internal control gate, wherein the internal control gate is a thread in the external control object for monitoring and monitoring the current status of the patrol task and signaling the current status to the external control object; the method further comprises the following steps:
in the sleep time, the state of the monitoring inspection task is set to be a locking state through the internal control door, and a switching signal of the control door is set to be a non-termination state;
outside the dormancy time, setting the state of the monitoring inspection task to be a non-locking state through the internal control door, and setting a switch signal of the control door to be a termination state;
the step of judging whether the monitoring inspection task is in the dormancy time comprises the following steps:
and detecting a switching signal of the internal control door, and if the switching signal of the internal control door is in a non-termination state, determining that the monitoring inspection task is in the dormancy time.
3. The method according to claim 1, wherein the step of controlling the monitoring inspection task by the external control object in correspondence with the inspection control instruction includes:
if the inspection control instruction is an inspection stopping command, the monitoring inspection task is controlled to interrupt the current polling through the external control object;
and if the monitoring and inspection control instruction is an inspection canceling instruction, the monitoring and inspection task is controlled by the external control object to terminate the current polling, and the binding relationship between the external control object and the monitoring and inspection task is released.
4. The method of claim 1, further comprising:
when polling one monitoring terminal, determining a polling progress according to the number of the polled monitoring terminals and the total number of the monitoring terminals, and generating a first progress report when the polling progress reaches a preset threshold value;
and sending the first progress report to the monitoring management platform.
5. The method of claim 1, further comprising:
when the monitoring inspection task is cancelled at intervals of preset time of the external control object, judging whether the external control object is in the dormant time or not;
and if so, after the dormancy time, canceling the monitoring inspection task through the external control object.
6. The method according to claim 4, wherein before the step of judging whether the current sleep time is reached when the patrol inspection control command sent by the monitoring management platform is received, the method further comprises the following steps:
recording the polling times of all the monitoring terminals which have polled;
after the step of controlling the monitoring inspection task to execute the task corresponding to the inspection control instruction by the external control object, the method further comprises the following steps:
generating a second progress report according to the currently determined polling progress and the recorded polling times;
and sending the second progress report to the monitoring management platform.
7. A monitoring and inspection control device based on a video network is characterized in that the video network comprises a monitoring management platform and a monitoring access server in communication connection with the monitoring management platform; the monitoring access server is connected with a plurality of monitoring terminals; the apparatus is located at the monitoring access server, and includes:
the inspection task starting module is used for receiving a monitoring inspection instruction sent by the monitoring management platform, starting a monitoring inspection task based on the monitoring inspection instruction and binding the monitoring inspection task with an external control object; the external control object is a control thread for suspending, canceling, interrupting or recovering the monitoring inspection task;
the polling module is used for sequentially pulling the video streams of the plurality of monitoring terminals based on the monitoring polling task, and after the video stream of one monitoring terminal is pulled, the video stream of the next monitoring terminal is pulled at intervals of preset sleep time;
the dormancy judging module is used for judging whether the current time is in the dormancy time or not when receiving the inspection control instruction sent by the monitoring management platform;
the instruction execution module is used for controlling the monitoring inspection task through the external control object corresponding to the inspection control instruction after the dormancy time if the monitoring inspection task is in the dormancy time; and if the monitoring and inspection task is not in the sleep time, the monitoring and inspection task is controlled corresponding to the inspection control instruction through the external control object.
8. The monitoring inspection control device based on the video network is characterized in that the external control object also comprises an internal control gate, wherein the internal control gate is a thread which is used for monitoring the current state of the monitoring inspection task in the external control object and can signal the external control object to inform the current state; the device further comprises:
the locking module is used for setting the state of the monitoring inspection task to be a locking state through the internal control door in the dormancy time and setting a switching signal of the control door to be a non-termination state;
the unlocking module is used for setting the state of the monitoring inspection task to be a non-locking state through the internal control door outside the dormancy time, and setting a switch signal of the control door to be a termination state;
the dormancy judging module is specifically used for detecting a switch signal of the internal control door, and if the switch signal of the internal control door is in a non-termination state, the monitoring patrol task is determined to be in the dormancy time.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executed, implements the method of any of claims 1-6.
CN201910562825.5A 2019-06-26 2019-06-26 Monitoring and inspection control method and device based on video networking Active CN110300283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910562825.5A CN110300283B (en) 2019-06-26 2019-06-26 Monitoring and inspection control method and device based on video networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910562825.5A CN110300283B (en) 2019-06-26 2019-06-26 Monitoring and inspection control method and device based on video networking

Publications (2)

Publication Number Publication Date
CN110300283A CN110300283A (en) 2019-10-01
CN110300283B true CN110300283B (en) 2020-11-27

Family

ID=68029027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910562825.5A Active CN110300283B (en) 2019-06-26 2019-06-26 Monitoring and inspection control method and device based on video networking

Country Status (1)

Country Link
CN (1) CN110300283B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944157A (en) * 2019-12-11 2020-03-31 视联动力信息技术股份有限公司 Method and device for calling monitoring video of monitoring equipment
CN111193904B (en) * 2019-12-17 2022-12-13 视联动力信息技术股份有限公司 Inspection control method and device and readable storage medium
CN111131788B (en) * 2019-12-27 2022-11-04 视联动力信息技术股份有限公司 Monitoring resource state detection method and device and computer readable storage medium
CN111131758B (en) * 2019-12-27 2022-11-01 视联动力信息技术股份有限公司 Audio and video data calling method and device and storage medium
CN113347246B (en) * 2021-05-31 2023-09-08 杭州海康威视数字技术股份有限公司 Inspection method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699075A (en) * 2013-12-11 2014-04-02 国家电网公司 Video-monitoring-based transformer substation tour-inspection intelligent-scheduling and control system
CN104299284A (en) * 2014-08-20 2015-01-21 深圳供电局有限公司 Indoor transformer station track tour-inspection system capable of automatically positioning and grabbing equipment image, host and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594539A (en) * 2009-06-24 2009-12-02 中兴通讯股份有限公司 Realize method, decoder and the supervisory control system of decoder synchronous polling
CN103034802B (en) * 2012-11-29 2015-10-28 广东全通教育股份有限公司 A kind of automatic tour inspection system based on intelligent rules coupling and method
US8842324B1 (en) * 2013-03-13 2014-09-23 Xerox Corporation Method and device for accurately estimating power consumption
CN104639910B (en) * 2015-02-10 2017-10-20 国家电网公司 A kind of scene automatic tour inspection system of power system based on substation operation state
CN105120323B (en) * 2015-08-31 2018-04-13 暴风集团股份有限公司 A kind of method and system of distribution player task scheduling
TWI633786B (en) * 2016-12-15 2018-08-21 晶睿通訊股份有限公司 Image analyzing method and camera
CN109246151B (en) * 2018-11-05 2021-03-30 国家电网有限公司 Intelligent video inspection analysis scheduling method for power transmission line

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699075A (en) * 2013-12-11 2014-04-02 国家电网公司 Video-monitoring-based transformer substation tour-inspection intelligent-scheduling and control system
CN104299284A (en) * 2014-08-20 2015-01-21 深圳供电局有限公司 Indoor transformer station track tour-inspection system capable of automatically positioning and grabbing equipment image, host and method

Also Published As

Publication number Publication date
CN110300283A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN110300283B (en) Monitoring and inspection control method and device based on video networking
CN109889762B (en) Conference control method and device
CN109587002B (en) State detection method and system for video network monitoring equipment
CN109246486B (en) Method and device for framing
CN109561072B (en) Link detection method and system
CN108881948B (en) Method and system for video inspection network polling monitoring video
CN108881895B (en) Troubleshooting method and equipment based on video networking
CN109729388B (en) Method and device for switching video networking servers
CN109218306B (en) Audio and video data stream processing method and system
CN110557606B (en) Monitoring and checking method and device
CN109743284B (en) Video processing method and system based on video network
CN111447407B (en) Method and device for transmitting monitoring resources
CN110740295B (en) Round-robin playing method and device for video stream monitored by video network
CN110401876B (en) Audio and video asynchronous warning method and device, electronic equipment and readable storage medium
CN110445639B (en) Hot standby method and device for server
CN109698953B (en) State detection method and system for video network monitoring equipment
CN110166363B (en) Multicast link monitoring method and device
CN109889775B (en) Data timeout processing method and device
CN111787368A (en) Server testing method and device
CN110691213B (en) Alarm method and device
CN111131788A (en) Monitoring resource state detection method and device and computer readable storage medium
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110267110B (en) Concurrent on-demand processing method and system based on video network
CN110248134B (en) Method and device for controlling terminal, electronic equipment and storage medium
CN109618125B (en) Monitoring method and device based on video network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201230

Address after: 570105 room 1201, Central International Plaza, 77 Binhai street, Longhua District, Haikou City, Hainan Province

Patentee after: Hainan Qiantang Shilian Information Technology Co.,Ltd.

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right