CN111327874B - Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium - Google Patents

Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium Download PDF

Info

Publication number
CN111327874B
CN111327874B CN201910807770.XA CN201910807770A CN111327874B CN 111327874 B CN111327874 B CN 111327874B CN 201910807770 A CN201910807770 A CN 201910807770A CN 111327874 B CN111327874 B CN 111327874B
Authority
CN
China
Prior art keywords
management server
video
video management
service
decoding device
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
CN201910807770.XA
Other languages
Chinese (zh)
Other versions
CN111327874A (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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201910807770.XA priority Critical patent/CN111327874B/en
Publication of CN111327874A publication Critical patent/CN111327874A/en
Application granted granted Critical
Publication of CN111327874B publication Critical patent/CN111327874B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data

Abstract

The disclosure provides a disaster recovery backup method, a disaster recovery backup device, a server, decoding equipment and a storage medium, and relates to the technical field of video monitoring. The method comprises the following steps: the first video management server is arranged in the video monitoring system to serve as the backup server, so that when any one second video management server in the video monitoring system breaks down, the first video management server can be requested to provide service for the decoding equipment by sending a first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.

Description

Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium
Technical Field
The present disclosure relates to the field of video monitoring technologies, and in particular, to a disaster recovery backup method, apparatus, server, decoding device, and storage medium.
Background
With the development of video monitoring technology, the video on-wall technology is also applied to video monitoring systems. Currently, a video surveillance system includes a plurality of video surveillance subsystems, each of which generally includes a decoding device, a display device, a video management server, at least one surveillance device, and the like. The video management server is provided with a video management service, the video management service is used for sending a decoding instruction to the decoding equipment when receiving a video on-wall instruction, and the decoding instruction carries a first equipment identifier of the appointed monitoring equipment and a second equipment identifier of the display equipment. And the decoding equipment acquires the video stream acquired by the appointed monitoring equipment according to the decoding instruction, decodes the video stream to obtain video data, and renders the video data in the display equipment to obtain a video picture. However, when the video management service fails and cannot work normally, the video pictures on the display device are lost, and the video pictures cannot be displayed normally. Therefore, a disaster recovery backup scheme needs to be provided for the video management server to prevent the video management service from failing to cause the problem that the whole video monitoring subsystem cannot work normally.
In the related art, at least one backup video management server is provided for each video management server in a video surveillance system. When the video management service in the video management server goes wrong, the video monitoring system directly calls a backup video management server of the video management server, and controls the video decoding of the decoding equipment and displays video pictures on the display equipment through the video management service in the backup video management server.
In the related art, each video management server of the video monitoring system includes two or more servers, but only one video management server of each sub-video monitoring system works during working, thereby causing a problem of wasting server resources.
Disclosure of Invention
In order to overcome the problem of server resource waste in the related art, the present disclosure provides a disaster recovery backup method, apparatus, server, decoding device, and storage medium.
According to a first aspect of the embodiments of the present disclosure, a disaster recovery backup method is provided, where the method is applied to a first video management server in a video monitoring system, and the method includes:
receiving a first registration request sent by decoding equipment in the video monitoring system, wherein the first registration request is used for requesting that a service scene provided by a first video management server is configured to be the same as a service scene of a second video management server, the decoding equipment is decoding equipment in any video monitoring subsystem in the video monitoring system, and the second video management server is a video management server in a video monitoring subsystem where the decoding equipment is located;
when the second video management server has a fault, acquiring first service data of the second video management server from a data platform of the video monitoring system according to the first registration request;
configuring a service scene provided by the first video management server to be the same as a service scene of the second video management server according to the first service data;
and providing services for the decoding device through the service scene.
According to a second aspect of the embodiments of the present disclosure, there is provided a disaster recovery backup method, where the method is applied to a decoding device in a video monitoring system, and the method includes:
when a second video management server fails, sending a first registration request to a first video management server in the video monitoring system, wherein the first registration request is used for requesting that a service scene provided by the first video management server is configured to be the same as a service scene of the second video management server, and the second video management server is a video management server in a video monitoring subsystem where the decoding equipment is located;
and continuing to work under the service scene provided by the first video management server.
According to a third aspect of the embodiments of the present disclosure, there is provided a disaster recovery backup apparatus, which is applied to a first video management server in a video monitoring system, the apparatus including:
a first receiving module, configured to receive a first registration request sent by a decoding device in the video monitoring system, where the first registration request is used to request that a service scene provided by a first video management server is configured to be a service scene the same as a service scene of a second video management server, the decoding device is a decoding device in any video monitoring subsystem in the video monitoring system, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located;
the first acquisition module is used for acquiring first service data of the second video management server from a data platform of the video monitoring system according to the first registration request when the second video management server has a fault;
a configuration module, configured to configure a service scene provided by the first video management server to a service scene same as the service scene of the second video management server according to the first service data;
and the service module is used for providing services for the decoding equipment through the service scene.
In a possible implementation manner, the first obtaining module is further configured to determine a first device identifier of the decoding device according to the first registration request; calling a data interface corresponding to the first equipment identifier in the data platform through the first equipment identifier; and acquiring the first service data through the data interface.
In another possible implementation manner, the apparatus further includes:
a second obtaining module, configured to obtain second service data for providing a service for the decoding device;
the first sending module is configured to send the second service data to the data platform, where the second service data is used to configure a service scene of the second video management server to a service scene the same as that of the first video management server when the second video management server is recovered to be normal.
In another possible implementation manner, the apparatus further includes:
the first determining module is used for determining the working state of a second video management server in a video monitoring subsystem where the decoding equipment is located;
and the response module is used for discarding the first registration request of the decoding device when the second video management server works normally.
In another possible implementation manner, the apparatus further includes:
the detection module is used for detecting whether the second video management server is recovered to be normal or not;
the service module is further configured to stop providing the service for the decoding device when it is detected that the second video management server is recovered to normal.
In another possible implementation manner, a session initiation protocol SIP service is also installed in the first video management server;
the detection module is further configured to determine, through the first device identifier of the decoding device, a video monitoring subsystem where the decoding device is located; detecting response information of a second video management server under the video monitoring subsystem through the SIP service; and when the response information of the second video management server is detected within a first specified time, determining that the second video management server is recovered to be normal.
In another possible implementation manner, the service module is further configured to send a video on-wall instruction to the decoding device through the service scene, where the video on-wall instruction carries a second device identifier of a designated monitoring device and a third device identifier of a display device in the video monitoring subsystem, and instructs the decoding device to decode a video stream acquired by the designated monitoring device to obtain video data, and the video data is rendered in the display device to obtain a video picture.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a disaster recovery backup apparatus, where the apparatus is applied to a decoding device in a video monitoring system, and the apparatus includes:
a second sending module, configured to send a first registration request to a first video management server in the video monitoring system when a second video management server fails, where the first registration request is used to request that a service scene provided by the first video management server is configured to a service scene the same as that of the second video management server, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located;
and the working module is used for continuing working under the service scene provided by the first video management server.
In one possible implementation, the apparatus further includes:
a second determining module, configured to determine that the second video management server is recovered to a normal state when the first video management server does not respond to the first registration request;
a third sending module, configured to send a second registration request to the second video management server, where the second registration request is used to instruct the second video management server to provide a service scene for the decoding device;
the working module is further configured to continue working in a service scene provided by the second video management server.
In another possible implementation manner, the apparatus further includes:
a third determining module, configured to determine that the second video management server is recovered to be normal when the first video management server stops providing services for the decoding device;
a fourth sending module, configured to send a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide the service scenario for the decoding device;
the working module is further configured to continue working in a service scene provided by the second video management server.
In another possible implementation manner, the apparatus further includes:
a fourth determining module, configured to determine that the second video management server fails when a second registration request is sent to the second video management server and the second video management server is not successfully registered in the second video management server; alternatively, the first and second electrodes may be,
a fifth determining module, configured to detect response information with the second video management server after a second registration request is sent to the second video management server and the second video management server is successfully registered in the second video management server; and when the response information of the second video management server is not received within a second time, determining that the second video management server has a fault.
In another possible implementation manner, the apparatus further includes:
a second receiving module, configured to receive a video on-wall instruction sent by the first video management server, where the video on-wall instruction carries a second device identifier of a designated monitoring device in the video monitoring subsystem and a third device identifier of a display device;
a third obtaining module, configured to obtain, according to the second device identifier, a video stream acquired by the specified monitoring device;
the decoding module is used for decoding the video stream to obtain video data;
and the rendering module is used for rendering the video data in the display equipment according to the third equipment identifier to obtain a video picture.
According to a fifth aspect of embodiments of the present disclosure, there is provided a server, including:
at least one processor; and
at least one memory;
the at least one memory stores one or more programs configured to be executed by the at least one processor, the one or more programs including instructions for performing the disaster recovery backup method as claimed in any one of the first aspect of the embodiments of the present disclosure.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a decoding apparatus characterized by comprising:
at least one processor; and
at least one memory;
the at least one memory stores one or more programs configured to be executed by the at least one processor, the one or more programs including instructions for performing the disaster recovery backup method as claimed in any one of the second aspects of the embodiments of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium applied to a server, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the computer-readable storage medium, and the instruction, the program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the steps in the disaster recovery backup method according to any one of the first aspect of the embodiments of the present disclosure.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium applied to a decoding device, the computer-readable storage medium storing at least one instruction, at least one program, a code set, or a set of instructions, the instruction, the program, the code set, or the set of instructions being loaded and executed by a processor to implement the steps in the disaster recovery backup method according to any one of the second aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the first video management server is arranged in the video monitoring system as the backup server, so that when any video management server in the video monitoring system fails, the first video management server can be requested to provide service for the decoding device by sending the first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic block diagram of a video surveillance system according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating the architecture of a video surveillance system according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a method for fault tolerant backup in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method for fault tolerant backup in accordance with an exemplary embodiment;
FIG. 5 is a flowchart illustrating a method for fault tolerant backup in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a fault tolerant backup appliance in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a fault tolerant backup appliance in accordance with an exemplary embodiment;
FIG. 8 is a schematic diagram illustrating the structure of an apparatus according to an exemplary embodiment;
fig. 9 is a schematic diagram illustrating a server in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic diagram illustrating a structure of a video surveillance system according to an exemplary embodiment, where the video surveillance system includes a first video management server and a plurality of video surveillance subsystems, and each video surveillance subsystem includes at least a second video management server. The first video management server is a backup video management server of a second video management server in the plurality of video monitoring subsystems.
In the video monitoring system, a first video management server is connected with each video monitoring subsystem and used for taking over the work of a second video management server when the second video management server in any video monitoring subsystem breaks down, and providing the same service scene as the original service scene for decoding equipment, so that the video monitoring subsystem where the second video management server is located can work normally. The first video management server is installed with a first video management service and a Session Initiation Protocol (SIP) service, and the second video management server is installed with a second video management service. The first video management service and the second video management service can be used for providing service scenes for the decoding device, correspondingly, the first video management server and the second video management server respectively provide the service scenes for the decoding device through the first video management service and the second video management service, and in the service scenes, the decoding device can complete the function of putting video streams on the wall. The SIP service may be used to detect the response information of the second service.
It should be noted that the first video management server may be a video management server newly added to the video monitoring system, and the first video management server may only serve as a backup server for a second video management server in the plurality of video monitoring subsystems. The first video management server can also be a video management server in a video monitoring subsystem in the video monitoring system, and the video management server not only can provide service for the video monitoring subsystem where the video management server is located, but also can be used as a backup server of a second video management server in other video monitoring subsystems when the service of the second video management server fails. In addition, the video monitoring subsystem where the first video management server is located may be a certain idle video monitoring subsystem, or may also be a video monitoring subsystem in use.
Each video monitoring subsystem comprises a control device, a decoding device, a display device, a second video management server and at least one monitoring device.
The control device is connected with at least one monitoring device and a second video management server, and is used for sending a video on-wall instruction to the second video management server, wherein the video on-wall instruction carries a second device identifier of a designated monitoring device in the video monitoring subsystem and a third device identifier of the display device, and instructs the decoding device to decode a video stream acquired by the designated monitoring device to obtain video data, and the video data is rendered in the display device to obtain a video picture.
The second video management server is connected with the control device and the decoding device, and is used for receiving a video on-wall instruction sent by the control device, providing service for the decoding device according to the second device identifier of the specified monitoring device and the third device identifier of the display device in the video monitoring subsystem carried in the video on-wall instruction, instructing the decoding device to acquire the video stream acquired by the specified monitoring device, decoding the video stream to obtain video data, and rendering the video data to the display device to obtain a video picture.
The decoding device is connected with the display device and at least one monitoring device, and when a second video management server in a video monitoring subsystem where the decoding device is located is normal, the decoding device establishes communication connection with the second video management server; when the second video management service fails, the decoding device establishes a communication connection with the first video management server. Receiving a video on-wall instruction sent by a second video management server through a second video management service or a first video management server through a first video management service, wherein the video on-wall instruction carries a second device identifier of a designated monitoring device in the video monitoring subsystem and a third device identifier of a display device, and instructs a decoding device to decode a video stream acquired by the designated monitoring device to obtain video data, rendering the video data in the display device to obtain a video picture, after receiving the video on-wall instruction, the decoding device obtains the video stream acquired by the designated monitoring device in the video on-wall instruction, decodes the video stream to obtain video data, and renders the video data in the display device to obtain the video picture.
The Display device is connected to the decoding device and configured to Display the video data decoded by the decoding device, and the Display device may be a DLP (Digital Light Processing) tiled television wall or an LCD (Liquid Crystal Display) Liquid Crystal television wall. The display device includes at least one display window, and displays the video picture decoded by the decoding device in the corresponding display window.
The at least one monitoring device is respectively connected with the control device and the decoding device, and is used for collecting video streams and sending the collected video streams to the decoding device for decoding when receiving an acquisition request of the decoding device. The at least one video monitoring device may be the same or different, and for example, the video monitoring device may be an IPC (Internet Protocol Camera).
Referring to fig. 2, it is described by taking as an example that each device is registered in a first video management service in a first video management server when a second video management server fails, as shown in fig. 2, IPC in the second video management server is registered through an interface provided by a VAG (video access gateway), and a decoding device in the first video management server is registered in the first video management server through an interface provided by a video management server TVMS.
It should be noted that, in this embodiment, each device may access the video management server by using the same protocol, or may access the video management server by using different protocols. When all the devices are accessed to the video management server by the same communication protocol, the devices can be accessed by adopting a national standard communication protocol so as to improve the universality and the expansibility of the devices. In addition, with continued reference to fig. 2, the first video management server may communicate with the second video management server through the SIP service in the first video management server, and the first video management server may detect whether the second video management server is normal through the SIP service, and accordingly, the SIP service periodically sends a detection message to the second video management server, and when information returned by the second video management server is not received within a preset time, it is determined that the second video management server has a fault. It should be noted that, in the embodiment of the present disclosure, there is no specific limitation on the reason why the second video management server cannot work normally, for example, a failure of the second video management server may cause a problem in the second video management server itself and cannot provide a normal service; it is also possible that a backup mechanism is initiated for the user, suspending the second video management server from serving the decoding device.
Fig. 3 is a flowchart illustrating a disaster recovery backup method applied to a first video management server in a video surveillance system according to an exemplary embodiment, where the method includes the following steps, as shown in fig. 3.
Step 301: receiving a first registration request sent by a decoding device in the video monitoring system, where the first registration request is used to request that a service scene provided by a first video management server is configured to be the same as a service scene of a second video management server, the decoding device is a decoding device in any video monitoring subsystem in the video monitoring system, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located.
Step 302: and when the second video management server has a fault, acquiring the first service data of the second video management server from the data platform of the video monitoring system according to the first registration request.
Step 303: and configuring the service scene provided by the first video management server as the same service scene as the second video management server according to the first service data.
Step 304: and providing services for the decoding device through the service scene.
In a possible implementation manner, the obtaining, according to the first registration request, the first service data of the second video management server from the data platform of the video surveillance system includes:
determining a first device identifier of the decoding device according to the first registration request;
calling a data interface corresponding to the first equipment identifier in the data platform through the first equipment identifier;
and acquiring the first service data through the data interface.
In another possible implementation manner, after providing a service to the decoding device through the service scenario, the method further includes:
acquiring second service data for providing service for the decoding device;
and sending the second service data to the data platform, wherein the second service data is used for configuring the service scene of the second video management server to be the same as the service scene of the first video management server when the second video management server is recovered to be normal.
In another possible implementation manner, after receiving the first registration request sent by the decoding device in the video monitoring system, the method further includes:
determining the working state of a second video management server in a video monitoring subsystem where the decoding equipment is located;
when the second video management server works normally, the first registration request of the decoding device is discarded.
In another possible implementation manner, after providing a service to the decoding device through the service scenario, the method further includes:
detecting whether the second video management server is recovered to be normal;
and stopping providing the service for the decoding device when the second video management server is detected to be normal.
In another possible implementation manner, a session initiation protocol SIP service is also installed in the first video management server;
correspondingly, the detecting whether the second video management server is normal includes:
determining a video monitoring subsystem where the decoding device is located through a first device identifier of the decoding device;
detecting response information of a second video management server under the video monitoring subsystem through the SIP service;
and when the response information of the second video management server is detected within the first specified time, determining that the second video management server is recovered to be normal.
In another possible implementation manner, the providing, by the service scenario, the service for the decoding device includes:
and sending a video on-wall instruction to the decoding equipment through the service scene, wherein the video on-wall instruction carries a second equipment identifier of the specified monitoring equipment and a third equipment identifier of the display equipment in the video monitoring subsystem, instructs the decoding equipment to decode the video stream acquired by the specified monitoring equipment to obtain video data, and renders the video data in the display equipment to obtain a video picture.
In the embodiment of the disclosure, the first video management server is arranged in the video monitoring system as the backup server, so that when any video management server in the video monitoring system fails, the first video management server can be requested to provide service for the decoding device by sending the first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.
Fig. 4 is a flowchart illustrating a disaster recovery backup method applied to a decoding device in a video surveillance system according to an exemplary embodiment, where the method includes the following steps, as shown in fig. 4.
Step 401: when a second video management server fails, sending a first registration request to a first video management server in the video monitoring system, wherein the first registration request is used for requesting that a service scene provided by the first video management server is configured to be the same as a service scene of the second video management server, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located.
Step 402: and continuing to work under the service scene provided by the first video management server.
In one possible implementation, the method further includes:
when the first video management server does not respond to the first registration request, determining that the second video management server is recovered to be normal;
sending a second registration request to the second video management server, wherein the second registration request is used for indicating the second video management server to provide a service scene for the decoding device;
and continuing to work under the service scene provided by the second video management server.
In another possible implementation manner, the method further includes:
when the first video management server stops providing service for the decoding equipment, determining that the second video management server is recovered to be normal;
sending a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide the service scenario for the decoding device;
and continuing to work under the service scene provided by the second video management server.
In another possible implementation manner, the method further includes:
when a second registration request is sent to the second video management server and the second video management server is not successfully registered, determining that the second video management server has a fault; or
When a second registration request is sent to the second video management server and the second video management server is successfully registered, response information between the second video management server and the second video management server is detected; and when the response information of the second video management server is not received within the second time, determining that the second video management server has a fault.
In another possible implementation manner, after the sending the first registration request to the first video management server in the video monitoring system, the method further includes:
receiving a video on-wall instruction sent by the first video management server, wherein the video on-wall instruction carries a second device identifier of the designated monitoring device in the video monitoring subsystem and a third device identifier of the display device;
acquiring the video stream acquired by the appointed monitoring equipment according to the second equipment identifier;
decoding the video stream to obtain video data;
rendering the video data in the display device according to the third device identification to obtain a video picture.
In the embodiment of the disclosure, the first video management server is arranged in the video monitoring system as the backup server, so that when any video management server in the video monitoring system fails, the first video management server can be requested to provide service for the decoding device by sending the first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.
Fig. 5 is a flowchart illustrating a disaster recovery backup method according to an exemplary embodiment, where the method includes the following steps, as shown in fig. 5.
Step 501: and the decoding equipment sends a second registration request to the second video management server, wherein the second registration request carries the first equipment identifier of the decoding equipment.
Wherein the first device identification of the decoding device may be an index code (indexcode) of the decoding device. When the decoding device is successfully registered in the second video management server, providing a service scene for the decoding device by a second video management service in the second video manager, and executing step 502; when the decoding apparatus fails to register in the second video management server, step 504 is directly performed. And the decoding equipment sends a second registration request to the second video management server every other registration time period, and when the registration is not successful within a third specified time period, the decoding equipment determines that the second video management server has a fault and further sends a first registration request to the first video management server. In the embodiment of the present disclosure, the second registration duration and the third specified duration are not specifically limited, for example, the second registration duration may be 1s, 2s, or 3s, etc.; the third specified duration may be 5s, 6s, or 10 s.
It should be noted that, during this timing period, the decoding apparatus may continue to send the second annotation request to the second video management server every second registration duration until the third duration is reached, and when the registration in the second video management server is not successful within the third duration, it is determined that the second video management server has a fault, and step 504 is executed. Alternatively, the decoding apparatus may record the number of times of successful unregistration, and when detecting that the unregistration is successful within a first preset number, determine that the second video management server has a failure, and perform step 504 if the registration is failed. For example, the third specified duration is 6s, the decoding apparatus sends a second registration request to the second video management server every 2s, and if the decoding apparatus fails to register for 3 consecutive times, it determines that the second video management server fails, and step 504 is executed if the registration fails.
Step 502: when the decoding device successfully registers in the second video management server based on the second registration request, the decoding device detects response information between the decoding device and the second video management server, wherein the second video management server is a video management server in a video subsystem where the decoding device is located.
The response information may be a heartbeat packet in a heartbeat mechanism, and correspondingly, the decoding device may detect whether the second video management server still maintains connection with the decoding device through the heartbeat mechanism, where the heartbeat mechanism is a mechanism that sends a self-defined structure (heartbeat packet) at a fixed time to let the other party know that the other party still normally works, so as to ensure the validity of the connection. Accordingly, the step of the decoding device detecting the second video management server through the heartbeat mechanism may be: the decoding device sends a first heartbeat packet to the second video management server every other first heartbeat time length, where the first heartbeat packet is used to notify the second video management server that the decoding device is working normally and instruct the second video management server to return response information, where the first heartbeat time length may be set and changed as needed. When the heartbeat of the second video management server and the heartbeat of the decoding device are normal, the decoding device works under a service scene provided by the second management server; when the second video management server does not respond to the heartbeat mechanism, step 504 is performed.
Step 503: when the response information between the decoding device and the second video management server is not detected within a second specified time period, the decoding device determines that the second video management server is out of order.
In the embodiment of the disclosure, timing is started after the decoding device sends the response information to the second video management server, and if the decoding device does not receive the response information returned by the second video management server within the second time period, the decoding device determines that the second video management server has a fault. The second specified time length may be set and changed as needed, and in the embodiment of the present disclosure, the second specified time length is not particularly limited, for example, the second specified time length may be 30s, 45s, or 60 s.
It should be noted that, when the decoding device determines, through the heartbeat mechanism, that the operating condition of the second video management server is that, in the above timing period, the decoding device may continue to send the first heartbeat packet to the second video management server every other first heartbeat duration until the second duration is reached, and if the heartbeat message returned by the second video management server is not received within the second duration, it is determined that the second video management server has a fault. Or, the decoding device may detect the number of times that the heartbeat message returned is not received, and determine that the second video management server fails when detecting that the heartbeat message returned by the second video management server is not received within a first preset number of times. For example, the second specified duration is 30s, the decoding apparatus sends a heartbeat packet to the second video management server every 10s, and if the decoding apparatus does not receive a heartbeat message returned by the second video management server for 3 consecutive times, it determines that the second video management server has a fault.
And when response information between the decoding equipment and the second video management server is detected within a second specified time, the decoding equipment determines that the second video management server is normal. And operates under the service provided by the second video management server and continues to detect the response information between the decoding apparatus and the second video management server.
Step 504: when the decoding device fails to register in the second video management server or the second video management server fails based on the second registration request, the decoding device sends a first registration request to a first video management server in the video monitoring system, wherein the first registration request is used for requesting that a service scene provided by the first video management server is configured with a service scene the same as that of the second video management server.
The first management server is provided with a first video management service, the second management server is provided with a second video management service, and the second video management server is a video management server in a video monitoring subsystem where the decoding equipment is located. The first registration request carries a first device identifier of the decoding device. When the decoding equipment detects that the second video management server has a fault, the decoding equipment sends a first registration request to a first video management server in the video monitoring system. Wherein the decoding apparatus detecting that the second video management server has failed includes: and detecting that the second video management server can not work normally through the response information, or sending a second registration request to the second video management server without receiving the second registration request and successfully registering in the second video management server.
Accordingly, the step of the decoding apparatus detecting whether the second video management server is operating normally through the response information can be implemented through step 501 and step 502. The method for the decoding device to detect whether the second video management server is working normally by sending the second registration request to the second video management server may be: and the decoding equipment sends a second registration request to the second video management server every second registration time length, and when the registration agreement message is not received within a third specified time length, the decoding equipment determines that the second video management server has a fault and further sends a first registration request to the first video management server. In the embodiment of the present disclosure, the second registration duration and the third specified duration are not specifically limited, for example, the second registration duration may be 1s, 2s, or 3s, and the like; the third specified duration may be 5s, 6s, or 10 s.
It should be noted that, during this timing period, the decoding device may continue to send the second annotation request to the second video management server every second registration duration until the third duration is reached, and if the second annotation request is not successfully registered within the third duration, it is determined that the second video management server fails. Alternatively, the decoding apparatus may detect the number of times of the success of the unregistration, and determine that the second video management server has a failure when the success of the unregistration within a second preset number of times is detected. For example, the third specified duration is 6s, the decoding apparatus sends a second registration request to the second video management server every 2s, and if the decoding apparatus does not register successfully for 3 consecutive times, it determines that the second video management server has a fault.
Step 505: the first video management server receives a first registration request sent by decoding equipment in the video monitoring system.
In a possible implementation manner, after receiving a first registration request sent by the decoding device, the first video management server directly receives the registration request of the decoding device and provides a service for the decoding device; in another possible implementation manner, after receiving the first registration request sent by the decoding device, the first video management server executes step 506, and determines whether the service of the second video management server corresponding to the decoding device is normal.
Step 506: and the first video management server determines the working state of a second video management server in the video monitoring subsystem where the decoding equipment is positioned.
The decoding device stores the address of a first video management server and the address of a second video management server, and when the first video management server receives a first registration request of the decoding device, the second video management server corresponding to the decoding device is determined according to a first device identifier of the decoding device in the first registration request.
In a possible implementation manner, a first video management server stores a corresponding relationship between a first device identifier of the decoding device and an address of a second video management server in a system in which the decoding device is located, the first video management server determines the first device identifier in the first registration request, and determines an address of the second video management server corresponding to the first device identifier according to the corresponding relationship between the first device identifier and the address.
In another possible implementation manner, the first video management server stores a corresponding relationship between a subsystem identifier of a video monitoring subsystem where the decoding device is located and the first device identifier, determines the first device identifier in the first registration request, determines the subsystem identifier of the video monitoring subsystem, and determines the address of the second video management server in the video monitoring subsystem according to the subsystem identifier.
In another possible implementation manner, when the decoding device is successfully registered, the decoding device stores the address of the second video management server, and the first video management server sends an acquisition request to the decoding device, where the acquisition request carries the server identifier of the first video management server; and the decoding equipment sends the address of the second video management server stored by the decoding equipment to the first video management server according to the server identification of the first video management server.
In a possible implementation manner, the first video management server may always detect whether a second video management server in the video monitoring system has a fault in the video monitoring system; in another possible implementation manner, the first video management server detects whether the second video management server fails or not when receiving the first registration request sent by the decoding device.
The first video management server may further include an SIP service, and accordingly, the first video management server may detect whether a second video management server in the second video management server is normal through the SIP service, where the process may be implemented through the following steps (1) to (3), and includes:
(1) and the first video management server determines the video monitoring subsystem where the decoding device is located through the first device identification of the decoding device.
The first video management server may determine the first device identification of the decoding device through the first registration request. The decoding device may store an address of the first video management server and an address of the second video management server, and when the first video management server determines the first device identifier of the decoding device, the first device identifier may be used to obtain the address of the second video management server in the decoding device.
(2) And the first video management server detects the response information of the second video management server under the video monitoring subsystem through the SIP service.
And (3) the first video management server detects response information of the second video management server through the SIP service according to the address of the second video management server in the step (1).
(3) And when the response information of the second video management server is detected within the first specified time, the first video management server determines that the second video management server works normally.
And when the first video management server detects that a second video management server in the video monitoring subsystem where the decoding equipment is positioned is normal, discarding the first registration request.
Correspondingly, when the decoding device is not successfully registered in the first video management server, the decoding device determines that the second video management server is recovered to be normal, and sends a second registration request to the second video management server.
The step of sending the second registration request to the second video management server by the decoding device without successfully registering in the first video management server is similar to the step of sending the second registration request to the second video management server by the decoding device in step 503, and details are not repeated here.
It should be noted that, after receiving the registration request, the video management server may first detect whether the decoding device corresponding to the registration request is at the same level as the video management server. If the decoding device and the video management server are in the same level, the video management server is indicated to be a second video management server; if the video management server is not at the same level as the decoding apparatus, it indicates that the video management server is the first video management server, step 506 is executed to detect the response information between the second video management server and the first video management server.
When the response information between the second video management server and the first video management server is not detected within a first specified time, the first video management server determines that the second video management server is out of order.
The first specified duration may be set and changed as needed, and the first specified duration may be the same as the second specified duration and the third specified duration, or may be different from the second specified duration or the third specified duration. In the disclosed embodiment, the first specified time period is not particularly limited, and for example, the first specified time period may be 30s, 45s, or 60 s.
The step in which the first video management server determines that the service of the second video management server has a fault in this step is similar to the step of detecting whether the service of the second video management server is normal in step 501-502, and is not described herein again.
Step 507: and when the second video management server has a fault, the first video management server acquires the first service data of the second video management server from the data platform according to the first registration request.
Before the step, the control equipment sends a video on-wall instruction to a second video management server; the second video management server receives the video on-wall instruction and generates first service data according to the instruction; the second video management server acquires the first service data and transmits the first service data to a data platform. Wherein the first service data includes: a first device identification of the decoding device, a second device identification of the designated monitoring device, a third device identification of the display device, and the like. And the data platform is a data platform in the video monitoring subsystem where the second video management server is located, and can also be a general data platform in the video monitoring system.
And the first video management server determines a data interface corresponding to the decoding device according to the first device identifier in the first registration request, and calls the first service data through the data interface. The process can be realized by the following steps (1) to (3), including:
(1) the first video management server determines a first device identification of the decoding device according to the first registration request.
(2) And the first video management server calls a data interface corresponding to the first equipment identifier in the data platform through the first equipment identifier.
(3) The first video management server acquires the first service data through the data interface.
It should be noted that each time the second video management server acquires the first service data, the second video management server transmits the first service data to the data platform. The data platform may store the first service data and a time at which the first service data was received in the data platform every time the first service data is received; the data platform may further store the first service data in an overlay manner every time the first service data is received, that is, only the first service data that is modified last time is stored in the data platform.
Correspondingly, when the first video management server calls the first service data from the data platform, only the first service data which is modified last time can be called, and a plurality of groups of first service data can also be called.
Step 508: and the first video management server configures the service scene provided by the first video management server with the same service scene as the second video management server according to the first service data.
After the first video management server acquires the first service data, a service scene is provided for the decoding device according to the first service data, so that the decoding device can still perform video decoding and other work according to the current correct service data after the second video management server fails. For example, the service scenario provided by the second video management server is: and the decoding equipment corresponding to the first equipment identifier acquires the video stream of the first appointed monitoring equipment corresponding to the second equipment identifier, and displays the video stream on the first window of the first display equipment corresponding to the third equipment identifier. After the first video management server acquires the first service data, configuring a service scene as: and the decoding equipment corresponding to the first equipment identifier acquires the video stream of the first appointed monitoring equipment corresponding to the second equipment identifier, and displays the video stream on a first window of the first display equipment corresponding to the third equipment identifier.
Step 509: the first video management server provides the service for the decoding device through the service scenario.
In this step, the process of the first video management server providing a service to the decoding device according to the configured service scenario may be: the first video management server sends a video on-wall instruction to the decoding device through the service scene, wherein the video on-wall instruction carries a second device identifier of the designated monitoring device in the video monitoring subsystem and a third device identifier of the display device, and instructs the decoding device to decode the video stream acquired by the designated monitoring device to obtain video data, and the video data is rendered in the display device to obtain a video picture.
Accordingly, the process of the decoding device continuing to operate in the service scenario may be:
511A: the decoding device receives a video on-wall instruction sent by the first video management server, wherein the video on-wall instruction carries a second device identifier of the designated monitoring device in the video monitoring subsystem and a third device identifier of the display device;
511B: the decoding equipment acquires the video stream acquired by the appointed monitoring equipment according to the second equipment identifier;
511C: decoding the video stream by the decoding equipment to obtain video data;
511D: and rendering the video data in the display equipment by the decoding equipment according to the third equipment identification to obtain a video picture.
It should be noted that, in the process of providing a service for the decoding device, the first video management server may receive a new video on-wall instruction, and when the first video management server receives the new video on-wall instruction, modify the service data according to the new video on-wall instruction to obtain second service data, and upload the second service data to the data platform, so that when the second video management server recovers to normal, the second service data may also be used to provide a service scene for the decoding device. The process may be:
the first video management server acquires second service data for providing services for the decoding device; and sending the second service data to the data platform, wherein the second service data is used for configuring the same service scene as the first video management server in the second video management server when the second video management server is recovered to be normal.
Another point to be noted is that, in a possible implementation manner, after the first video management server provides a service for the decoding device, the first video management server may provide a service for the decoding device all the time until the first video management server goes wrong, or until the user switches the video management server of the decoding device to another video management server; in another possible implementation manner, the first video management server may detect whether the second video management server returns to normal while providing a service for the decoding device, and when it is detected that the second video management server returns to normal, automatically disconnect the decoding device, and when the decoding device cannot communicate with the first video management server, send a third registration request to the second video management server. The corresponding step can be realized by the following steps:
(1) and when the first video management server detects that the second video management server returns to normal, stopping providing the service for the decoding device.
(2) When the first video management server stops providing service for the decoding device, the decoding device determines that the second video management server is recovered to be normal.
(3) The decoding device sends a third registration request to the second video management server, wherein the third registration request is used for instructing the second video management server to provide the service for the decoding device.
(4) The decoding apparatus continues to operate in a service scenario provided by the second video management server.
In the embodiment of the disclosure, the first video management server is arranged in the video monitoring system as the backup server, so that when any video management server in the video monitoring system fails, the first video management server can be requested to provide service for the decoding device by sending the first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.
Further, when the first video management server receives a new video on-wall instruction, the first service data is modified according to the new video on-wall instruction to obtain second service data, and the second service data is uploaded to the data platform, so that a service scene can be configured according to the second service data when the second video management server is recovered to be normal subsequently, and a service scene can be configured for the decoding device according to the service data in the data platform when the first video management server is offline from the second video management server.
Furthermore, the first video management server can detect whether the second video management server is normal, the first video management server agrees to register the decoding device when the second video management server is abnormal, and the first video management server can automatically disconnect the decoding device after the second video management server is recovered to be normal, so that resources of the video management server can be fully utilized.
Fig. 6 is a block diagram illustrating a disaster recovery backup device according to an example embodiment. The apparatus is used for executing the steps executed by the first video management service in the video monitoring system when executing the disaster recovery backup method, referring to fig. 6, and the apparatus includes:
a first receiving module 601, configured to receive a first registration request sent by a decoding device in the video monitoring system, where the first registration request is used to request that a service scene provided by a first video management server is configured to be the same as a service scene of a second video management server, the decoding device is a decoding device in any video monitoring subsystem in the video monitoring system, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located;
a first obtaining module 602, configured to obtain, when the second video management server fails, first service data of the second video management server from a data platform of the video monitoring system according to the first registration request;
a configuration module 603, configured to configure a service scene provided by the first video management server to a service scene same as the service scene provided by the second video management server according to the first service data;
a service module 604, configured to provide a service for the decoding apparatus through the service scenario.
In a possible implementation manner, the first obtaining module 602 is further configured to determine, according to the first registration request, a first device identifier of the decoding device; calling a data interface corresponding to the first equipment identifier in the data platform through the first equipment identifier; and acquiring the first service data through the data interface.
In another possible implementation manner, the apparatus further includes:
a second obtaining module, configured to obtain second service data for providing a service for the decoding device;
the first sending module is configured to send the second service data to the data platform, where the second service data is used to configure a service scene of the second video management server to a service scene the same as that of the first video management server when the second video management server is recovered to be normal.
In another possible implementation manner, the apparatus further includes:
the first determining module is used for determining the working state of a second video management server in a video monitoring subsystem where the decoding equipment is located;
and the response module is used for discarding the first registration request of the decoding device when the second video management server works normally.
In another possible implementation manner, the apparatus further includes:
the detection module is used for detecting whether the second video management server is recovered to be normal or not;
the service module 604 is further configured to stop providing the service for the decoding apparatus when it is detected that the second video management server returns to normal.
In another possible implementation manner, a session initiation protocol SIP service is also installed in the first video management server;
the detection module is further configured to determine, through the first device identifier of the decoding device, a video monitoring subsystem where the decoding device is located; detecting response information of a second video management server under the video monitoring subsystem through the SIP service; and when the response information of the second video management server is detected within the first specified time, determining that the second video management server is recovered to be normal.
In another possible implementation manner, the service module 604 is further configured to send a video on-wall instruction to the decoding device through the service scene, where the video on-wall instruction carries a second device identifier of a specified monitoring device in the video monitoring subsystem and a third device identifier of the display device, and instructs the decoding device to decode a video stream acquired by the specified monitoring device to obtain video data, and render the video data in the display device to obtain a video picture.
In the embodiment of the disclosure, the first video management server is arranged in the video monitoring system as the backup server, so that when any video management server in the video monitoring system fails, the first video management server can be requested to provide service for the decoding device by sending the first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.
Fig. 7 is a block diagram illustrating a disaster recovery backup device according to an example embodiment. The apparatus is used for executing the steps executed by the decoding device in the video monitoring system when executing the disaster recovery backup method, referring to fig. 7, and the apparatus includes:
a second sending module 701, configured to send a first registration request to a first video management server in the video monitoring system when a second video management server fails, where the first registration request is used to request that a service scene provided by the first video management server is configured to be the same as a service scene of the second video management server, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located;
a working module 702, configured to continue working in a service scenario provided by the first video management server.
In one possible implementation, the apparatus further includes:
a second determining module, configured to determine that the second video management server is recovered to a normal state when the first video management server does not respond to the first registration request;
a third sending module, configured to send a second registration request to the second video management server, where the second registration request is used to instruct the second video management server to provide a service scene for the decoding device;
the working module 702 is further configured to continue working in a service scenario provided by the second video management server.
In another possible implementation manner, the apparatus further includes:
a third determining module, configured to determine that the second video management server is recovered to be normal when the first video management server stops providing services for the decoding device;
a fourth sending module, configured to send a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide the service scenario for the decoding device;
the working module 702 is further configured to continue working in a service scenario provided by the second video management server.
In another possible implementation manner, the apparatus further includes:
a fourth determining module, configured to determine that the second video management server fails when a second registration request is sent to the second video management server and registration in the second video management server is not successful; alternatively, the first and second electrodes may be,
a fifth determining module, configured to detect response information with the second video management server after a second registration request is sent to the second video management server and the second video management server is successfully registered in the second video management server; and when the response information of the second video management server is not received within the second time, determining that the second video management server has a fault.
In another possible implementation manner, the apparatus further includes:
the second receiving module is used for receiving a video on-wall instruction sent by the first video management server, wherein the video on-wall instruction carries a second device identifier of the designated monitoring device in the video monitoring subsystem and a third device identifier of the display device;
a third obtaining module, configured to obtain, according to the second device identifier, a video stream acquired by the specified monitoring device;
the decoding module is used for decoding the video stream to obtain video data;
and the rendering module is used for rendering the video data in the display equipment according to the third equipment identifier to obtain a video picture.
In the embodiment of the disclosure, the first video management server is arranged in the video monitoring system as the backup server, so that when any video management server in the video monitoring system fails, the first video management server can be requested to provide service for the decoding device by sending the first registration request to the first video management server, and server resources are saved. And when the first video management server receives the first registration request, the first service data of the second video management server is acquired from the data platform according to the first registration request, and a service scene is configured according to the first service data, so that the decoding device can continue to work in the previous service scene.
It should be noted that: in the disaster recovery backup device provided in the above embodiment, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the disaster recovery backup device and the disaster recovery backup method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 8 shows a block diagram of an apparatus 800 provided in an exemplary embodiment of the invention. The apparatus 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Device 800 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, the apparatus 800 includes: a processor 801 and a memory 802.
The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 802 is used to store at least one instruction for execution by the processor 801 to implement the disaster recovery backup method provided by the method embodiments of the present application.
In some embodiments, the apparatus 800 may further optionally include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807, a positioning assembly 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, providing the front panel of the device 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the device 800 or in a folded design; in still other embodiments, the display 805 may be a flexible display, disposed on a curved surface or on a folded surface of the device 800. Even further, the display 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 805 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. The microphones may be multiple and placed at different locations of the device 800 for stereo sound acquisition or noise reduction purposes. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is operative to locate a current geographic Location of the device 800 for navigation or LBS (Location Based Service). The Positioning component 808 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
A power supply 809 is used to power the various components in the device 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the device 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the apparatus 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the display 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the device 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the device 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side bezel of device 800 and/or underneath display screen 805. When the pressure sensor 813 is arranged on the side frame of the device 800, the holding signal of the user to the device 800 can be detected, and the processor 801 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of device 800. When a physical key or vendor Logo is provided on the device 800, the fingerprint sensor 814 may be integrated with the physical key or vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, processor 801 may control the display brightness of display 805 based on the ambient light intensity collected by optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display 805 is reduced. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the device 800. The proximity sensor 816 is used to capture the distance between the user and the front of the device 800. In one embodiment, the processor 801 controls the display 805 to switch from the bright screen state to the dark screen state when the proximity sensor 816 detects that the distance between the user and the front face of the device 800 is gradually reduced; when the proximity sensor 816 detects that the distance between the user and the front of the device 800 is gradually increasing, the display 805 is controlled by the processor 801 to switch from a rest screen state to a light screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of the apparatus 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 9 is a schematic structural diagram of a server provided in the embodiment of the present disclosure, where the server 900 may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 901 and one or more memories 902, where the memory 902 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 901 to implement the disaster recovery backup method provided in the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The embodiment of the present disclosure also provides a computer-readable storage medium, where the computer-readable storage medium is applied to a terminal, and at least one instruction, at least one section of program, a code set, or a set of instructions is stored in the computer-readable storage medium, where the instruction, the program, the code set, or the set of instructions is loaded and executed by a processor to implement the operations executed by the terminal in the disaster recovery backup method according to the above embodiment.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be described in detail here.
It is to be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof, which is limited only by the claims appended hereto.

Claims (17)

1. A disaster recovery backup method is characterized in that the method is applied to a first video management server in a video monitoring system, the video monitoring system comprises the first video management server and a plurality of video monitoring subsystems, the first video management server is connected with each video monitoring subsystem, and the method comprises the following steps:
receiving a first registration request sent by decoding equipment in the video monitoring system, wherein the first registration request is used for requesting that a service scene provided by a first video management server is configured to be the same as a service scene of a second video management server, the decoding equipment is decoding equipment in any video monitoring subsystem in the video monitoring system, and the second video management server is a video management server in a video monitoring subsystem where the decoding equipment is located;
when the second video management server has a fault, acquiring first service data of the second video management server from a data platform of the video monitoring system according to the first registration request;
configuring a service scene provided by the first video management server to be the same as a service scene of the second video management server according to the first service data;
providing a service for the decoding device through the service scene;
when the second video management server recovers from the fault to be normal, the decoding device is disconnected with the decoding device, and the decoding device is further used for determining that the second video management server recovers to be normal when the first video management server is disconnected with the decoding device; sending a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide a service scene for the decoding device; and continuing to work under the service scene provided by the second video management server.
2. The method of claim 1, wherein the obtaining the first service data of the second video management server from the data platform of the video surveillance system according to the first registration request comprises:
determining a first device identifier of the decoding device according to the first registration request;
calling a data interface corresponding to the first equipment identifier in the data platform through the first equipment identifier;
and acquiring the first service data through the data interface.
3. The method of claim 1, wherein after providing the service to the decoding device through the service scenario, the method further comprises:
acquiring second service data for providing service for the decoding device;
and sending the second service data to the data platform, wherein the second service data is used for configuring the service scene of the second video management server to be the same as the service scene of the first video management server when the second video management server is recovered to be normal.
4. The method of claim 1, wherein after receiving the first registration request sent by the decoding device in the video surveillance system, the method further comprises:
determining the working state of a second video management server in a video monitoring subsystem where the decoding equipment is located;
and when the second video management server works normally, discarding the first registration request of the decoding device.
5. The method of claim 1, wherein after providing the service to the decoding device through the service scenario, the method further comprises:
and detecting whether the second video management server is recovered to be normal.
6. The method according to claim 5, wherein a session initiation protocol, SIP, service is also installed in the first video management server;
correspondingly, the detecting whether the second video management server is normal includes:
determining a video monitoring subsystem where the decoding device is located through a first device identifier of the decoding device;
detecting response information of a second video management server under the video monitoring subsystem through the SIP service;
and when the response information of the second video management server is detected within a first specified time, determining that the second video management server is recovered to be normal.
7. The method according to any of claims 1-6, wherein said providing said service to said decoding device via said service scenario comprises:
and sending a video on-wall instruction to the decoding equipment through the service scene, wherein the video on-wall instruction carries a second equipment identifier of the appointed monitoring equipment and a third equipment identifier of the display equipment in the video monitoring subsystem, instructs the decoding equipment to decode the video stream acquired by the appointed monitoring equipment to obtain video data, and renders the video data in the display equipment to obtain a video picture.
8. A disaster recovery backup method is applied to decoding equipment in a video monitoring system, the video monitoring system comprises a first video management server and a plurality of video monitoring subsystems, the first video management server is connected with each video monitoring subsystem, and the method comprises the following steps:
when a second video management server fails, sending a first registration request to a first video management server in the video monitoring system, wherein the first registration request is used for requesting that a service scene provided by the first video management server is configured to be the same as a service scene of the second video management server, and the second video management server is a video management server in a video monitoring subsystem where the decoding equipment is located;
continuing to work in a service scene provided by the first video management server;
when the first video management server is disconnected with the decoding equipment, determining that the second video management server is recovered to be normal;
sending a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide a service scene for the decoding device;
and continuing to work under the service scene provided by the second video management server.
9. The method of claim 8, further comprising:
when the first video management server does not respond to the first registration request, determining that the second video management server is recovered to be normal;
sending a second registration request to the second video management server, wherein the second registration request is used for indicating the second video management server to provide a service scene for the decoding device;
and continuing to work under the service scene provided by the second video management server.
10. The method of claim 8, further comprising:
when a second registration request is sent to the second video management server and the second video management server is not successfully registered, determining that the second video management server has a fault; or
When a second registration request is sent to the second video management server and the second video management server is successfully registered, response information between the second video management server and the second video management server is detected; and when the response information of the second video management server is not received within a second time, determining that the second video management server has a fault.
11. The method of any of claims 8-10, wherein after sending the first registration request to the first video management server in the video surveillance system, the method further comprises:
receiving a video on-wall instruction sent by the first video management server, wherein the video on-wall instruction carries a second device identifier of a designated monitoring device in the video monitoring subsystem and a third device identifier of a display device;
acquiring the video stream acquired by the appointed monitoring equipment according to the second equipment identifier;
decoding the video stream to obtain video data;
and rendering the video data in the display equipment according to the third equipment identifier to obtain a video picture.
12. A disaster recovery backup device is applied to a first video management server in a video monitoring system, wherein the video monitoring system comprises the first video management server and a plurality of video monitoring subsystems, the first video management server is connected with each video monitoring subsystem, and the device comprises:
a first receiving module, configured to receive a first registration request sent by a decoding device in the video monitoring system, where the first registration request is used to request that a service scene provided by a first video management server is configured to be a service scene the same as a service scene of a second video management server, the decoding device is a decoding device in any video monitoring subsystem in the video monitoring system, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located;
the first acquisition module is used for acquiring first service data of the second video management server from a data platform of the video monitoring system according to the first registration request when the second video management server has a fault;
a configuration module, configured to configure a service scene provided by the first video management server to a service scene same as the service scene of the second video management service according to the first service data;
the service module is used for providing services for the decoding equipment through the service scene; when the second video management server recovers from the fault to be normal, the decoding device is disconnected with the decoding device, and the decoding device is further used for determining that the second video management server recovers to be normal when the first video management server is disconnected with the decoding device; sending a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide a service scene for the decoding device; and continuing to work under the service scene provided by the second video management server.
13. A disaster recovery backup device is applied to a decoding device in a video monitoring system, wherein the video monitoring system comprises a first video management server and a plurality of video monitoring subsystems, the first video management server is connected with each video monitoring subsystem, and the device comprises:
a second sending module, configured to send a first registration request to a first video management server in the video monitoring system when a second video management server fails, where the first registration request is used to request that a service scene provided by the first video management server is configured to a service scene the same as that of the second video management server, and the second video management server is a video management server in a video monitoring subsystem where the decoding device is located;
the working module is used for continuing working under the service scene provided by the first video management server; when the first video management server stops providing service for the decoding equipment, determining that the second video management server is recovered to be normal; sending a third registration request to the second video management server, where the third registration request is used to instruct the second video management server to provide a service scene for the decoding device; and continuing to work under the service scene provided by the second video management server.
14. A server, characterized in that the server comprises:
at least one processor; and
at least one memory;
the at least one memory stores one or more programs configured for execution by the at least one processor, the one or more programs including instructions for performing the disaster recovery backup method as recited in any of claims 1 to 7.
15. A decoding device, characterized in that the decoding device comprises:
at least one processor; and
at least one memory;
the at least one memory stores one or more programs configured for execution by the at least one processor, the one or more programs including instructions for performing the disaster recovery backup method as recited in any of claims 8 to 11.
16. A computer-readable storage medium applied to a server, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the computer-readable storage medium, and the instruction, the program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the steps in the disaster recovery backup method according to any one of claims 1 to 7.
17. A computer-readable storage medium applied to a decoding device, the computer-readable storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the steps in the disaster recovery backup method according to any one of claims 8 to 11.
CN201910807770.XA 2019-08-29 2019-08-29 Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium Active CN111327874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910807770.XA CN111327874B (en) 2019-08-29 2019-08-29 Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910807770.XA CN111327874B (en) 2019-08-29 2019-08-29 Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium

Publications (2)

Publication Number Publication Date
CN111327874A CN111327874A (en) 2020-06-23
CN111327874B true CN111327874B (en) 2021-09-17

Family

ID=71169075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910807770.XA Active CN111327874B (en) 2019-08-29 2019-08-29 Disaster recovery backup method, disaster recovery backup device, server, decoding device and storage medium

Country Status (1)

Country Link
CN (1) CN111327874B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510844A (en) * 2009-03-25 2009-08-19 杭州华三通信技术有限公司 Multimedia code stream transmission method and system and management server
CN101720035A (en) * 2009-12-11 2010-06-02 杭州华三通信技术有限公司 Disaster-recovery method and equipment in video monitoring scene
CN102185752A (en) * 2010-12-23 2011-09-14 杭州华三通信技术有限公司 Video monitoring ring network data storage method and encoder
CN102387198A (en) * 2011-10-17 2012-03-21 杭州华三通信技术有限公司 Business processing method and equipment for distributed network
CN102665098A (en) * 2012-05-03 2012-09-12 浙江宇视科技有限公司 Video encoder
CN103986757A (en) * 2014-05-09 2014-08-13 浙江宇视科技有限公司 Distributed backup method and system of block storage videos
CN106560764A (en) * 2016-01-11 2017-04-12 任运 Multifunctional general embedded multi-system management server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8619771B2 (en) * 2009-09-30 2013-12-31 Vmware, Inc. Private allocated networks over shared communications infrastructure
CN102413302B (en) * 2011-07-29 2018-03-13 中兴通讯股份有限公司 The method and apparatus for back-up processing of being recorded a video in video monitoring, alternate device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510844A (en) * 2009-03-25 2009-08-19 杭州华三通信技术有限公司 Multimedia code stream transmission method and system and management server
CN101720035A (en) * 2009-12-11 2010-06-02 杭州华三通信技术有限公司 Disaster-recovery method and equipment in video monitoring scene
CN102185752A (en) * 2010-12-23 2011-09-14 杭州华三通信技术有限公司 Video monitoring ring network data storage method and encoder
CN102387198A (en) * 2011-10-17 2012-03-21 杭州华三通信技术有限公司 Business processing method and equipment for distributed network
CN102665098A (en) * 2012-05-03 2012-09-12 浙江宇视科技有限公司 Video encoder
CN103986757A (en) * 2014-05-09 2014-08-13 浙江宇视科技有限公司 Distributed backup method and system of block storage videos
CN106560764A (en) * 2016-01-11 2017-04-12 任运 Multifunctional general embedded multi-system management server

Also Published As

Publication number Publication date
CN111327874A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN108966008B (en) Live video playback method and device
CN110308956B (en) Application interface display method and device and mobile terminal
CN110278464B (en) Method and device for displaying list
CN111225042A (en) Data transmission method and device, computer equipment and storage medium
CN110121084B (en) Method, device and system for switching ports
CN111107389B (en) Method, device and system for determining live broadcast watching time length
CN109194972B (en) Live stream acquisition method and device, computer equipment and storage medium
CN108897659B (en) Method, device and storage medium for modifying log level
CN110659127A (en) Method, device and system for processing task
CN110007981B (en) Method and device for starting application program, electronic equipment and medium
CN113190362B (en) Service calling method and device, computer equipment and storage medium
CN110149491B (en) Video encoding method, video decoding method, terminal and storage medium
CN112104648A (en) Data processing method, device, terminal, server and storage medium
CN110839174A (en) Image processing method and device, computer equipment and storage medium
CN111061550A (en) Task processing method, device, equipment and storage medium
CN113076051A (en) Slave control terminal synchronization method, device, terminal and storage medium
CN111580626A (en) Fan control method and device, electronic equipment and storage medium
CN111510482A (en) Method and device for determining failed network request and computer storage medium
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN110912830A (en) Method and device for transmitting data
CN110113669B (en) Method and device for acquiring video data, electronic equipment and storage medium
CN110086814B (en) Data acquisition method and device and storage medium
CN111258683A (en) Detection method, detection device, computer equipment and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN109413190B (en) File acquisition method and device, electronic equipment and storage medium

Legal Events

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