CN108024090B - Abnormity positioning method and device for video monitoring platform - Google Patents

Abnormity positioning method and device for video monitoring platform Download PDF

Info

Publication number
CN108024090B
CN108024090B CN201610944992.2A CN201610944992A CN108024090B CN 108024090 B CN108024090 B CN 108024090B CN 201610944992 A CN201610944992 A CN 201610944992A CN 108024090 B CN108024090 B CN 108024090B
Authority
CN
China
Prior art keywords
processing unit
information
abnormal information
exception
abnormal
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
CN201610944992.2A
Other languages
Chinese (zh)
Other versions
CN108024090A (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 Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201610944992.2A priority Critical patent/CN108024090B/en
Publication of CN108024090A publication Critical patent/CN108024090A/en
Application granted granted Critical
Publication of CN108024090B publication Critical patent/CN108024090B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an abnormity positioning method and device for a video monitoring platform, wherein the method comprises the following steps: receiving an abnormal information set transparently transmitted by a processing unit connected with the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit; and determining a target processing unit with the exception based on the identification information and the error code of the processing unit included in each exception information. The embodiment of the invention can improve the efficiency of abnormal positioning of the video monitoring platform.

Description

Abnormity positioning method and device for video monitoring platform
Technical Field
The invention relates to the technical field of videos, in particular to an abnormity positioning method and device for a video monitoring platform.
Background
In a video surveillance platform, any function is performed by a specific "functional responsibility chain" in which a plurality of objects participate. The structure of the functional responsibility chain is shown in fig. 1, which includes a function initiating unit and a plurality of objects (object 1, object 2 and object 3) connected in sequence. The function initiating unit can receive a user request, generate a corresponding instruction according to the user request, and issue the generated instruction to a corresponding object for processing. Each object relies on a lower layer object interface, which provides services for upper layer objects. And, each object is a processing unit having a specific function, such as a storage management unit, a media distribution unit, and the like. Since there are multiple objects in the functional responsibility chain, any object exception will cause a functional exception, so when the functional exception occurs, it is necessary to find and locate the exception point.
The existing methods for locating the abnormality mainly include the following two methods: a sequential lookup approach and an object error code return approach. The sequential searching mode is to search and locate in sequence from the object at the top layer along the functional responsibility chain. In the searching process, an object in which a functional responsibility chain participates needs to be determined, and then the abnormal condition is searched and positioned by analyzing and searching an object log step by step. However, this method is highly demanding for the operator, and is required to analyze not only the objects involved in the "functional role chain" of the function, but also the object logs in order based on the objects in the "functional role chain", extract the abnormality information from the log records, and determine whether or not the abnormality is related to the current abnormality. Therefore, the sequential search mode is complex to operate and low in applicability.
The object error code is returned by generating an error code from the object in which the exception occurred and passing it to the upper level object in turn. However, for each object, when the object receives the error code sent by the lower object, the object stores the error code in its own log, but does not transfer the error code to the upper object, and only transfers the error code to the upper object. For the function initiator at the uppermost layer, the error code sent by each object cannot be received, and therefore, the function initiator is also required to perform sequential checking to complete exception location. Therefore, how to improve the efficiency of the video monitoring platform for abnormal positioning becomes an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention aims to provide an abnormity positioning method and device for a video monitoring platform, so as to improve the abnormity positioning efficiency of the video monitoring platform. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an exception location method for a video monitoring platform, which is applied to a top-level function initiating unit in any function responsibility chain of the video monitoring platform, where the function responsibility chain further includes at least one processing unit, and the method includes:
receiving an abnormal information set transparently transmitted by a processing unit connected with the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information comprises identification information and an error code of the processing unit;
the abnormal information set is transparently transmitted to the function initiating unit in the following mode: adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit;
and determining a target processing unit with the exception based on the identification information and the error code of the processing unit included in each exception information.
Further, the determining a target processing unit in which the exception occurs based on the identification information and the error code of the processing unit included in each piece of exception information includes:
identifying error codes included in the abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located;
and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
Further, the exception information generated by the processing unit further includes: error description information and type identification; the method further comprises the following steps:
and outputting exception reason prompt information according to the error description information and the type identification included in the exception information of the target processing unit.
Further, the exception information generated by the processing unit further includes: a function identifier; the determining a target processing unit with an exception based on the identification information and the error code of the processing unit included in each exception information includes:
determining abnormal information including a predetermined function identifier as first intermediate abnormal information;
and determining a target processing unit with the exception based on the identification information and the error code of the processing unit included in each piece of first intermediate exception information.
Further, the exception information generated by the processing unit further includes: a time stamp, wherein the time stamp is the time when the processing unit generates the abnormal information; the determining a target processing unit with an exception based on the identification information and the error code of the processing unit included in each exception information includes:
determining the abnormal information with the timestamp within a preset time range as second intermediate abnormal information;
and determining a target processing unit with the exception based on the identification information and the error code of the processing unit included in each piece of second intermediate exception information.
Further, after receiving the exception information set transparently transmitted by the processing unit connected to the function initiating unit, the method further includes:
and when the function completed by the function responsibility chain is video playing, transmitting the received abnormal information set to the stream taking client through the video code stream.
In a second aspect, an embodiment of the present invention provides an anomaly locating apparatus for a video surveillance platform, which is applied to a top-level function initiating unit in any function chain of a video surveillance platform, where the function chain further includes at least one processing unit, and the apparatus includes:
the receiving module is used for receiving the abnormal information set transparently transmitted by the processing unit connected with the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information comprises identification information and an error code of the processing unit;
the abnormal information set is transparently transmitted to the function initiating unit in the following mode: adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit;
and the determining module is used for determining the target processing unit with the exception based on the identification information and the error code of the processing unit included in each exception information.
Further, the determining module includes:
the identification submodule is used for identifying error codes included in each abnormal information and determining target abnormal information where the error codes meeting preset conditions are located;
and the first determining submodule is used for determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
Further, the exception information generated by the processing unit further includes: error description information and type identification; the device further comprises:
and the output module is used for outputting the prompt information of the abnormal reason according to the error description information and the type identification which are included in the abnormal information of the target processing unit.
Further, the exception information generated by the processing unit further includes: a function identifier; the determining module includes:
the second determining submodule is used for determining the abnormal information comprising the preset function identification as first intermediate abnormal information;
and the third determining submodule is used for determining a target processing unit with exception based on the identification information and the error code of the processing unit included in each piece of first intermediate exception information.
Further, the exception information generated by the processing unit further includes: a time stamp, wherein the time stamp is the time when the processing unit generates the abnormal information; the determining module includes:
the fourth determining submodule is used for determining the abnormal information of the time stamp in the preset time range as second middle abnormal information;
and the fifth determining submodule is used for determining a target processing unit with the exception based on the identification information and the error code of the processing unit included in each piece of second intermediate exception information.
Further, the apparatus further comprises:
and the transmission module is used for transmitting the abnormal information set to the stream taking client through a video code stream when the function completed by the function responsibility chain is video playing.
The embodiment of the invention provides an abnormity positioning method and device for a video monitoring platform, wherein the method comprises the following steps: receiving an abnormal information set transparently transmitted by a processing unit connected with the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information comprises identification information and an error code of the processing unit; the abnormal information set is transparently transmitted to the function initiating unit in the following mode: adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit; and determining a target processing unit with the exception based on the identification information and the error code of the processing unit included in each exception information.
In the embodiment of the invention, each processing unit in the functional responsibility chain of the video monitoring platform can add the abnormal information generated by the processing unit into the abnormal information set and combine and transmit the abnormal information to the processing unit at the upper layer, so that the function initiating unit can receive the abnormal information set comprising the abnormal information generated by each abnormal processing unit, and the function initiating unit can position the abnormal target processing unit according to the abnormal information corresponding to each processing unit, thereby improving the efficiency of positioning the abnormality of the video monitoring platform.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a chain of functional responsibilities;
fig. 2 is a flowchart of an anomaly locating method for a video monitoring platform according to an embodiment of the present invention;
fig. 3 is another flowchart of an anomaly locating method for a video surveillance platform according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an anomaly locating apparatus for a video surveillance platform according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of an anomaly locating device for a video surveillance platform according to an embodiment of the present invention.
Detailed Description
In order to improve the efficiency of positioning the video monitoring platform in an abnormal manner, the embodiment of the invention provides an abnormal positioning method and device for a video monitoring platform.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to improve the efficiency of locating an exception of a video monitoring platform, an embodiment of the present invention provides an exception locating method for a video monitoring platform, which is used in a function initiating unit on an uppermost layer in any one function responsibility chain of the video monitoring platform, where the function responsibility chain includes at least one processing unit. As shown in fig. 2, the process includes the steps of:
s201, receiving an abnormal information set transparently transmitted by a processing unit connected with a function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information includes identification information and an error code of the processing unit.
The abnormal information set can be transparently transmitted to the function initiating unit in the following mode: and adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing unit into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit.
In a video surveillance platform, any function is performed by a chain of functional responsibilities. A functional chain of responsibility may include an uppermost functional initiation unit, as well as individual processing units underlying the functional initiation unit. Wherein, each processing unit depends on the processing unit at the lower layer, and the lower layer processing unit provides service for the upper layer processing unit. When an exception occurs in any one of the processing units (e.g., due to a hardware problem or a programming problem), the processing units in the upper layer may be abnormal because the processing units in the upper layer cannot be continuously serviced.
In practical applications, although a plurality of processing units generate an exception, since the exception of the upper layer processing unit is usually caused by the exception of the lower layer processing unit and the upper layer processing unit does not generate an exception, the problem can be solved for the processing unit only by finding the processing unit generating the root exception, so that the functional responsibility chain can be restored to normal operation.
In the embodiment of the invention, in order to quickly and accurately position the processing unit with the root cause exception, each processing unit with the exception can respectively generate the corresponding exception information, add the exception information into the same exception information set, and transmit the exception information set to the function initiating unit, so that the function initiating unit positions the target processing unit with the exception according to the exception information corresponding to each processing unit.
In an embodiment of the present invention, for each processing unit, the exception information generated by the processing unit may include at least identification information and an error code of the processing unit. Moreover, when each processing unit generates an error code, the existing method may be adopted, which is not limited by the present invention.
Specifically, the processing unit at the bottommost layer in the processing unit with the exception may add the exception information generated by the processing unit at the bottommost layer into the exception information set and transparently transmit the exception information set to the processing unit at the upper layer, the processing unit at the upper layer adds the exception information generated by the processing unit at the upper layer into the exception information set and transparently transmits the exception information set to the processing unit at the next upper layer, and each processing unit adds the exception information generated by itself into the exception information set and transparently transmits the exception information set until the exception information set is transparently transmitted to the function initiating unit.
Therefore, in the embodiment of the present invention, the function initiating unit may receive the exception information set transparently transmitted by the processing unit connected to the function initiating unit, and the exception information set includes exception information generated by each processing unit that has an exception.
S202, based on the identification information and the error code of the processing unit included in each abnormal information, the target processing unit with the abnormality is determined.
After the function initiating unit receives the exception information generated by each processing unit with exception transparently transmitted by the processing unit connected with the function initiating unit, the function initiating unit can determine the target processing unit with exception based on the identification information and the error code of the processing unit included in each exception information. The identification information of each processing unit may be an ID (Identity) of each processing unit, or other information capable of uniquely identifying each processing unit, such as 0023, 0022, and 0020. Through each identification information, the corresponding processing unit can be positioned.
It will be appreciated that the type of exception that occurs is different for each processing unit, and the error code generated is also different. For example, the corresponding error codes are different for the two exceptions of device connection error and stream fetching failure.
Therefore, in the embodiment of the present invention, the function initiating unit may determine the target processing unit in which the exception occurs according to the error code included in each exception information.
Specifically, the function initiating unit may identify an error code included in each piece of exception information, determine target exception information where the error code meeting a preset condition is located, and then determine a processing unit corresponding to identification information included in the target exception information as a target processing unit.
For example, the function initiating unit may pre-store error codes corresponding to various possible root cause abnormal conditions, and after receiving the abnormal information generated by each processing unit that generates the abnormality, may search, for each abnormal information, the error codes included in each abnormal information in the pre-stored error codes; if the processing unit generating the abnormal information is found, the processing unit generating the abnormal information can be indicated to be a processing unit generating a root source abnormality, and the function initiating unit can determine the abnormal information as target abnormal information; if the exception information is not found, it may be indicated that the processing unit that generates the exception information may not be the processing unit in which the root exception occurs, and the function initiating unit may not determine the exception information as the target exception information.
After determining the target exception information, the function initiating unit may further determine, according to the identification information included in the target exception information, a processing unit corresponding to the identification information, and further determine the processing unit as a target processing unit.
The embodiment of the invention provides an exception positioning method for a video monitoring platform, wherein each processing unit in a function responsibility chain of the video monitoring platform can add exception information generated by the processing unit into an exception information set and combine and transmit the exception information to a processing unit at the upper layer, so that a function initiating unit can receive the exception information set comprising the exception information generated by each processing unit with exception, and the function initiating unit can position a target processing unit with exception according to the exception information corresponding to each processing unit, thereby improving the efficiency of exception positioning of the video monitoring platform.
Further, in this embodiment of the present invention, for each processing unit, the exception information generated by the processing unit may further include: and identifying the function. The function identifier may be identification information of a function that is executed once for a function responsibility chain formed by each processing unit. When the function initiating unit initiates multiple function calls for the same function or different functions, the function identifiers corresponding to the initiated function calls are different. After the function initiating unit determines the corresponding function identifier for any function call, the function initiating unit may issue the function identifier to each processing unit. That is, for each processing unit of the same function call, the corresponding function identifier is the same.
For example, when the function initiating unit initiates a media distribution function once, the function identifier corresponding to the media distribution function may be 0001; when the function initiating unit initiates another media distribution function, the function identifier corresponding to the media distribution function may be 0002; when the function initiating unit initiates a video acquiring function, the function identifier corresponding to the video acquiring function may be 0003; when the function initiating unit initiates another video acquiring function, the function identifier corresponding to the video acquiring function may be 0004, and the like.
In practical application, because concurrent services may exist, after the function initiating unit receives the exception information of each processing unit, in order to improve the accuracy of exception location, the function initiating unit may first determine the exception information belonging to the same function call.
Specifically, when the function initiating unit detects a function abnormality, it may obtain a function identifier corresponding to the function in which the abnormality occurs. In this case, after the function initiating unit receives the exception information of each processing unit, the function initiating unit may determine, as the first intermediate exception information, the exception information including the predetermined function identifier according to the function identifier included in each exception information. That is, the first intermediate exception information is the exception information corresponding to the processing unit that may cause the functional exception.
After determining the first intermediate exception information, the function initiating unit may determine, based on the identification information and the error code of the processing unit included in each piece of first intermediate exception information, a target processing unit in which an exception occurs.
Specifically, the method for determining the target processing unit may be substantially the same as the method described in step S202, and is not described herein again.
When the function initiating unit detects that the function is abnormal, the function initiating unit may first determine first intermediate abnormal information corresponding to the identification information of the abnormal function according to the function identification included in each abnormal information, and then determine the target processing unit according to the first intermediate abnormal information, which may improve the accuracy of abnormal positioning.
In another implementation manner, in order to improve accuracy of the exception positioning, the function initiating unit may further determine second intermediate exception information according to a time when the exception information of each processing unit is generated, and determine the target processing unit according to the second intermediate exception information.
It will be appreciated that the time at which each processing unit generates exception information during the same function call should be within a certain time frame. For example, the time range may be a time period from a time when the function initiating unit initiates the function to a time when the function abnormality is detected.
Therefore, in the embodiment of the present invention, for each processing unit, the exception information generated by the processing unit may further include: the time stamp is the time when the processing unit generated exception information.
In this case, the function initiating unit may determine the abnormality information having the time stamp within the predetermined time range as the second intermediate abnormality information. The predetermined time range may be a time period from a time when the function initiating unit initiates the function to a time when the function abnormality is detected.
After the function initiating unit determines the second intermediate exception information, the function initiating unit may determine a target processing unit in which an exception occurs based on the identification information and the error code of the processing unit included in each second intermediate exception information.
Specifically, the method for determining the target processing unit may be the same as the method described in step S202, and is not described herein again.
When the function initiating unit detects the function abnormality, the second intermediate abnormality information of the time stamp in the predetermined time range can be determined according to the time stamp included in each abnormality information, and then the target processing unit is determined according to the second intermediate abnormality information, so that the accuracy of abnormality positioning can be improved.
Further, in the embodiment of the present invention, after the function initiating unit receives the abnormal information set transparently transmitted by the processing unit, it may determine whether the function completed by the current function responsibility chain is video playing, and if so, in order to avoid a black screen appearing on the client, the abnormal information set may be transmitted to the stream taking client through a video code stream. Further, the client can analyze the abnormal information and display the abnormal reason for the user. Therefore, the user can directly locate the error reason, and the user experience is enhanced.
Further, as shown in fig. 3, the method for locating an anomaly of a video monitoring platform according to an embodiment of the present invention may further include:
s203, outputting an abnormal reason prompt message according to the error description information and the type identification included in the abnormal information of the target processing unit.
In this embodiment of the present invention, for each processing unit, the exception information generated by the processing unit may further include: error description information and type identification. The error description information may be, for example, abnormal description information such as a device connection error and a stream fetching error; the type identifier may be a type of each processing unit, and the type may be: storage management, media distribution, etc.
In the embodiment of the present invention, after the function initiating unit determines the target processing unit in which the exception occurs, in order to enable the user to resolve the exception for the target processing unit, the function initiating unit may output an exception cause prompt message.
Specifically, the function initiating unit may output the prompt information of the exception reason according to the error description information and the type identifier included in the exception information of the target processing unit. For example, when the output abnormality cause prompt information is: when the storage management unit has a device connection error, it may indicate that the storage management unit has a device connection error. At this point, the user can check the processing unit for its device connection and repair for its device connection error.
In the scheme, the function initiating unit can output the prompt information of the abnormal reason according to the error description information and the type identification included in the abnormal information of the target processing unit, so that a user can repair the abnormal of the target processing unit according to the prompt information of the abnormal reason.
For example, in a video acquisition process of a video monitoring platform, when three processing units below the function initiating unit all have an exception, an exception information set received by the function initiating unit may be shown in the following table:
Figure BDA0001140485200000111
a, B and C are type identifiers of each processing unit, wherein A can be streaming, B is media distribution, and C is storage management; 0023. 0022 and 0020 are identification information of each processing unit respectively; 0001 is the function identification of the function call; 2015-10-10.12:08:08.543, 2015-10-10.12:08:08.320 and 2015-10-10.12:08:07.035 are respectively time stamps corresponding to the processing units; 0X02a, 0X03d and 0X7da are error codes of each processing unit respectively; the stream taking error and the equipment connection error are respectively error description information of each processing unit.
After the function initiating unit receives the exception information set, the target processing unit with the exception is located to be the processing unit corresponding to the error code of 0X7da according to the error code of each processing unit, and the identification information of the processing unit is 0020.
Moreover, the function initiating unit may output an exception reason prompting message according to the error description information and the type identifier of the target processing unit, for example, the exception reason prompting message may be: the storage management processing unit device is connected wrongly.
Corresponding to the above method embodiment, the embodiment of the present invention also provides a corresponding device embodiment.
Fig. 4 is a schematic diagram of an exception locating apparatus for a video surveillance platform, which is applied to a top-level function initiating unit in any function chain of the video surveillance platform, where the function chain further includes at least one processing unit, according to an embodiment of the present invention, and the apparatus includes:
a receiving module 410, configured to receive an exception information set transparently transmitted by a processing unit connected to the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information comprises identification information and an error code of the processing unit;
the abnormal information set is transparently transmitted to the function initiating unit in the following mode: adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit;
a determining module 420, configured to determine a target processing unit in which the exception occurs based on the identification information and the error code of the processing unit included in each piece of exception information.
The embodiment of the invention provides an exception positioning device for a video monitoring platform, wherein each processing unit in a function responsibility chain of the video monitoring platform can add exception information generated by each processing unit into an exception information set and combine and transmit the exception information to a processing unit at the upper layer, so that a function initiating unit can receive the exception information set comprising the exception information generated by each processing unit with exception, and the function initiating unit can position a target processing unit with exception according to the exception information corresponding to each processing unit, thereby improving the efficiency of exception positioning of the video monitoring platform.
Further, the determining module 420 includes:
an identification submodule (not shown in the figure) for identifying error codes included in each abnormal information and determining target abnormal information where the error codes meeting preset conditions are located;
and a first determining sub-module (not shown in the figure) configured to determine, as a target processing unit, a processing unit corresponding to the identification information included in the target exception information.
Further, the exception information generated by the processing unit further includes: error description information and type identification; as shown in fig. 5, the apparatus further includes:
an output module 430, configured to output an exception reason prompting message according to the error description information and the type identifier included in the exception information of the target processing unit.
Further, the exception information generated by the processing unit further includes: a function identifier; the determining module 420 includes:
a second determination sub-module (not shown in the figure) for determining the abnormality information including the predetermined function identification as first intermediate abnormality information;
and a third determining sub-module (not shown in the figure) for determining a target processing unit in which the exception occurs, based on the error code and the identification information of the processing unit included in each of the first intermediate exception information.
Further, the exception information generated by the processing unit further includes: a time stamp, wherein the time stamp is the time when the processing unit generates the abnormal information; the determining module 420 includes:
a fourth determination sub-module (not shown in the figure) for determining the abnormality information having the time stamp within a predetermined time range as second intermediate abnormality information;
and a fifth determining sub-module (not shown in the figure) for determining a target processing unit in which the exception occurred, based on the error code and the identification information of the processing unit included in each of the second intermediate exception information.
Further, the apparatus further comprises:
and a transmission module (not shown in the figure) configured to transmit the abnormal information set to the stream fetching client through a video code stream when the function completed by the function responsibility chain is video playing.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. An exception location method for a video surveillance platform, applied to an uppermost function initiating unit in any one of functional responsibility chains of the video surveillance platform, the functional responsibility chain further comprising at least one processing unit, the method comprising:
receiving an abnormal information set transparently transmitted by a processing unit connected with the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information comprises identification information and an error code of the processing unit;
the abnormal information set is transparently transmitted to the function initiating unit in the following mode: adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit;
identifying error codes included in the abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
2. The method of claim 1, wherein the exception information generated by the processing unit further comprises: error description information and type identification; the method further comprises the following steps:
and outputting exception reason prompt information according to the error description information and the type identification included in the exception information of the target processing unit.
3. The method of claim 1, wherein the exception information generated by the processing unit further comprises: a function identifier; identifying error codes included in the abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; determining a processing unit corresponding to the identification information included in the target exception information as a target processing unit, including:
determining abnormal information including a predetermined function identifier as first intermediate abnormal information;
identifying error codes included in each first intermediate abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
4. The method of claim 1, wherein the exception information generated by the processing unit further comprises: a time stamp, wherein the time stamp is the time when the processing unit generates the abnormal information; identifying error codes included in the abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; determining a processing unit corresponding to the identification information included in the target exception information as a target processing unit, including:
determining the abnormal information with the timestamp within a preset time range as second intermediate abnormal information;
identifying error codes included in each second intermediate abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
5. The method according to any one of claims 1 to 4, wherein after receiving the exception information set transparently transmitted by the processing unit connected to the function initiating unit, the method further comprises:
and when the function completed by the function responsibility chain is video playing, transmitting the received abnormal information set to the stream taking client through the video code stream.
6. An anomaly locating apparatus for a video surveillance platform, wherein the apparatus is applied to an uppermost function initiating unit in any function chain of the video surveillance platform, the function chain further comprising at least one processing unit, the apparatus comprising:
the receiving module is used for receiving the abnormal information set transparently transmitted by the processing unit connected with the function initiating unit; the exception information set comprises exception information generated by each processing unit with exception; the exception information comprises identification information and an error code of the processing unit;
the abnormal information set is transparently transmitted to the function initiating unit in the following mode: adding the abnormal information generated by the processing unit at the bottommost layer in the abnormal processing units into the abnormal information set, and transmitting the abnormal information set to the processing unit at the upper layer, adding the abnormal information generated by the processing unit at the upper layer into the abnormal information set, and transmitting the abnormal information set to the processing unit at the next upper layer until the abnormal information set is transmitted to the function initiating unit;
the determining module is used for identifying error codes included in each abnormal information and determining target abnormal information where the error codes meeting preset conditions are located; and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
7. The apparatus of claim 6, wherein the exception information generated by the processing unit further comprises: error description information and type identification; the device further comprises:
and the output module is used for outputting the prompt information of the abnormal reason according to the error description information and the type identification which are included in the abnormal information of the target processing unit.
8. The apparatus of claim 6, wherein the exception information generated by the processing unit further comprises: a function identifier; the determining module is specifically configured to: determining abnormal information including a predetermined function identifier as first intermediate abnormal information; identifying error codes included in each first intermediate abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
9. The apparatus of claim 6, wherein the exception information generated by the processing unit further comprises: a time stamp, wherein the time stamp is the time when the processing unit generates the abnormal information; the determining module is specifically configured to: determining the abnormal information with the timestamp within a preset time range as second intermediate abnormal information; identifying error codes included in each second intermediate abnormal information, and determining target abnormal information where the error codes meeting preset conditions are located; and determining the processing unit corresponding to the identification information included in the target abnormal information as a target processing unit.
10. The apparatus of any of claims 6-9, further comprising:
and the transmission module is used for transmitting the abnormal information set to the stream taking client through a video code stream when the function completed by the function responsibility chain is video playing.
CN201610944992.2A 2016-11-02 2016-11-02 Abnormity positioning method and device for video monitoring platform Active CN108024090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610944992.2A CN108024090B (en) 2016-11-02 2016-11-02 Abnormity positioning method and device for video monitoring platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610944992.2A CN108024090B (en) 2016-11-02 2016-11-02 Abnormity positioning method and device for video monitoring platform

Publications (2)

Publication Number Publication Date
CN108024090A CN108024090A (en) 2018-05-11
CN108024090B true CN108024090B (en) 2020-01-17

Family

ID=62070002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610944992.2A Active CN108024090B (en) 2016-11-02 2016-11-02 Abnormity positioning method and device for video monitoring platform

Country Status (1)

Country Link
CN (1) CN108024090B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381576B (en) * 2018-12-29 2022-04-01 纳恩博(北京)科技有限公司 Exception recovery method and device and storage medium
CN111490885B (en) * 2019-01-25 2023-04-07 杭州萤石软件有限公司 Method for processing equipment error information, electronic equipment and storage medium
CN112995596B (en) * 2021-02-18 2023-08-15 咪咕文化科技有限公司 Panoramic video transmission method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202008724U (en) * 2011-03-11 2011-10-12 广州市一见电力科技有限公司 Intelligent video monitoring system
CN103414916A (en) * 2013-08-30 2013-11-27 苏州科达科技股份有限公司 Fault diagnosis system and method
CN105356594A (en) * 2011-10-28 2016-02-24 江苏省电力公司常州供电公司 Intensive management and control system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8947526B2 (en) * 2006-12-07 2015-02-03 Sensormatic Electronics, LLC Video surveillance system having communication acknowledgement nod
US20090122143A1 (en) * 2007-11-14 2009-05-14 Joel Pat Latham Security system and network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202008724U (en) * 2011-03-11 2011-10-12 广州市一见电力科技有限公司 Intelligent video monitoring system
CN105356594A (en) * 2011-10-28 2016-02-24 江苏省电力公司常州供电公司 Intensive management and control system
CN103414916A (en) * 2013-08-30 2013-11-27 苏州科达科技股份有限公司 Fault diagnosis system and method

Also Published As

Publication number Publication date
CN108024090A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN109684847B (en) Automatic repairing method, device, equipment and storage medium for script loopholes
CN106327605B (en) A kind of method for inspecting
CN108024090B (en) Abnormity positioning method and device for video monitoring platform
CN105119783B (en) Method and device for detecting network request data
CN110475124B (en) Video jamming detection method and device
CN107168845B (en) Fault positioning method and device
CN109672608B (en) Method for transmitting messages according to time
CN113450125A (en) Method and device for generating traceable production data, electronic equipment and storage medium
CN106557419B (en) Program testing method and device
CN104850971A (en) Correlation method between order information and logistics information, and device thereof
CN111158926B (en) Service request analysis method, device and equipment
KR20180060616A (en) RBA based integrated weak point diagnosis method
CN106339379A (en) Website running status monitoring method and device
CN111752819B (en) Abnormality monitoring method, device, system, equipment and storage medium
US10565636B2 (en) Electronic device, system, and method
US20130067283A1 (en) Method and apparatus for detecting failures and requesting failure diagnoses
CN109919573B (en) Data processing method and device and computer equipment
CN110825609B (en) Service testing method, device and system
CN108959931B (en) Vulnerability detection method and device, information interaction method and equipment
CN113300912B (en) Equipment testing method and device and electronic equipment
CN111309584A (en) Data processing method and device, electronic equipment and storage medium
CN112650557B (en) Command execution method and device
CN106709315B (en) Login information verification method and device of application system
CN103986595A (en) Fault analyzing and upgrading method and server

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