Inspection method, equipment and storage medium for monitoring system

By sending requests to establish session connections in the monitoring system, receiving failed responses for real-time rechecking, and combining extraction strategies with multi-threaded rechecking, the problem of inaccurate inspection results in the monitoring system is solved, and efficient and accurate inspection results are achieved.

CN115527284BActive Publication Date: 2025-09-16SUZHOU KEDA TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211198859.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2025-09-16
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

When the monitoring system is inspected, the number of concurrent inspection routes is too large, resulting in network bandwidth exceeding the limit and network fluctuation, which leads to inaccurate inspection results.

Method used

By sending a request to the monitoring device to establish a session connection, receiving the failed response for real-time recheck, and combining the extraction strategy, real-time recheck and delayed recheck, using multi-threaded recheck to ensure comprehensiveness and timeliness.

Benefits of technology

It improves the accuracy and comprehensiveness of inspection results, reduces the time required for inspection, eliminates the impact of network fluctuations on results, and ensures the timeliness of re-inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115527284B_ABST
    Figure CN115527284B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of monitoring equipment detection, and specifically relates to a patrol inspection method for a monitoring system, wherein the monitoring system includes multiple monitoring devices. The method includes: sending a first request to the monitoring device to be patrol inspected; upon receiving a failure response fed back by the monitoring device, if the response information carried in the failure response meets the first real-time re-inspection requirement, then re-inspection is performed; this can solve the problem that during patrol inspection, due to the excessive number of concurrent patrol routes, the monitoring system network fluctuates, and the patrol results are inaccurate; since during the patrol inspection of the monitoring system, the monitoring device can be re-inspected by receiving the failure response fed back by the monitoring device, on the one hand, the monitoring device can be re-inspected to improve the accuracy of the patrol inspection result; on the other hand, it can ensure that the monitoring device that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring device that needs to be re-inspected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The present application relates to an inspection method, equipment and storage medium for a monitoring system, and belongs to the field of monitoring equipment detection. [Background Technology]

[0002] At present, the front-end cameras of the monitoring system are large in scale, the cascade relationship between the monitoring systems is multi-level, and the network relationship is complex. Therefore, it is necessary to inspect the monitoring system to obtain the video quality of the front-end cameras in the entire system.

[0003] The traditional inspection method of the monitoring system includes: obtaining the number of inspection threads; requesting stream scheduling from the lower-level monitoring system based on the number of inspection threads; receiving the stream sent by the lower-level monitoring system; and determining the inspection result of the lower-level monitoring system based on the indicator data of the lower-level monitoring system indicated by the stream.

[0004] However, when inspecting the monitoring system, due to the excessive number of concurrent inspection routes, problems such as network bandwidth exceeding the upper and lower levels of the monitoring system and network fluctuations may occur, resulting in inaccurate inspection results during the inspection process. [Summary of the invention]

[0005] The present application provides an inspection method, device and storage medium for a monitoring system, which can solve the problem that when inspecting the monitoring system, the network bandwidth between the upper and lower levels of the monitoring system is exceeded, and the network fluctuates due to the excessive number of concurrent inspection routes, thereby causing inaccurate inspection results during the inspection process; since during the inspection of the monitoring system, the monitoring device can be re-inspected in real time by receiving the failure response fed back by the monitoring device, on the one hand, the monitoring device can be inspected again to improve the accuracy of the inspection results, and on the other hand, it can be ensured that the monitoring device that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring device that needs to be re-inspected.

[0006] This application provides the following technical solutions:

[0007] In a first aspect, a method for inspecting a monitoring system is provided, wherein the monitoring system includes a plurality of monitoring devices, and the method includes:

[0008] Sending a first request to the monitoring device to be inspected in the monitoring system, wherein the first request is used to request establishment of a session connection with the monitoring device;

[0009] When a failure response fed back by the monitoring device based on the first request is received, if the response information carried in the failure response meets the first real-time re-inspection requirement, the monitoring device is re-inspected.

[0010] Optionally, the method further includes:

[0011] Upon receiving a successful response from the monitoring device based on the first request, establishing the session connection with the monitoring device, and receiving the monitoring data collected by the monitoring device based on the session connection; disconnecting the session connection when the monitoring data is sent;

[0012] In a case where the monitoring data meets the second real-time re-inspection requirement, the monitoring device is re-inspected.

[0013] Optionally, the re-inspecting the monitoring device includes:

[0014] During the current inspection of the current monitoring device, the step of sending the first request to the monitoring device is performed again;

[0015] Upon receiving a successful response from the monitoring device based on the first request, establishing the session connection with the monitoring device, and receiving monitoring data collected by the monitoring device based on the session connection;

[0016] If the monitoring data meets the first delayed re-inspection requirement, after the inspection of each monitoring device to be inspected is completed, the monitoring device is subjected to a delayed re-inspection;

[0017] When receiving a failure response from the monitoring device based on the first request, if the response information carried in the failure response meets the second delayed re-inspection requirement, after the inspection of each monitoring device to be inspected is completed, the monitoring device will be subjected to a delayed re-inspection.

[0018] Optionally, the performing a delayed re-inspection on the monitoring device includes:

[0019] Using a preset number of threads to send the first request to the monitoring device to be delayed rechecked;

[0020] In a case where a successful response based on the first request is received from the monitoring device, establishing the session connection with the monitoring device, and receiving the monitoring data collected by the monitoring device based on the session connection;

[0021] Determine an inspection result of the monitoring device using the monitoring data;

[0022] In the case of receiving a failure response fed back by the monitoring device based on the first request, the inspection result of the monitoring device is determined using the response information carried in the failure response.

[0023] Optionally, before sending the first request to the monitoring device currently to be inspected in the monitoring system, the method further includes: determining a device extraction range and extraction quantity based on a preset extraction strategy;

[0024] Obtain the number of extractions of each monitoring device within the device extraction range;

[0025] The monitoring devices that meet the extraction quantity are extracted in the order of the extraction times from small to large.

[0026] Optionally, the sending a first request to the monitoring device currently to be inspected in the monitoring system includes:

[0027] Get the preset inspection strategy;

[0028] The first request is sent to the monitoring device currently to be inspected in the monitoring system according to the inspection strategy.

[0029] Optionally, the inspection strategy is immediate inspection or cyclic inspection, and the sending of the first request to the monitoring device currently to be inspected in the monitoring system according to the inspection strategy includes:

[0030] In a case where the inspection strategy is the immediate inspection, immediately sending the first request to the monitoring device in response to the inspection strategy;

[0031] When the inspection strategy is the cyclic inspection, the first request is sent to the monitoring device when the current time reaches the cycle time indicated by the cyclic inspection.

[0032] Optionally, the response information includes a first error code.

[0033] In a second aspect, an electronic device is provided, comprising a processor and a memory; the memory stores a program, and the program is loaded and executed by the processor to implement the inspection method of the monitoring system as described in the first aspect.

[0034] In a third aspect, a computer-readable storage medium is provided, wherein a program is stored in the storage medium, and when the program is executed by a processor, it is used to implement the inspection method of the monitoring system as described in the first aspect.

[0035] The beneficial effects of the present application are: by sending a first request to the monitoring device to be inspected in the monitoring system, the first request is used to request to establish a session connection with the monitoring device; in the case of receiving a failure response based on the first request feedback from the monitoring device, if the response information carried in the failure response meets the first real-time re-inspection requirement, the monitoring device is re-inspected; it can solve the problem that when inspecting the monitoring system, due to the excessive number of concurrent inspection routes, the network bandwidth between the upper and lower levels of the monitoring system is exceeded, and the network fluctuates, thereby resulting in inaccurate inspection results during the inspection process; since in the process of inspecting the monitoring system, the monitoring device can be re-inspected by receiving the failure response feedback from the monitoring device, on the one hand, the monitoring device can be checked again to improve the accuracy of the inspection results, and on the other hand, it can ensure that the monitoring device that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring device that needs to be re-inspected.

[0036] In addition, by determining the device extraction range and number based on the extraction strategy, obtaining the extraction count for each monitoring device within the device extraction range, and extracting monitoring devices that meet the extraction count in ascending order of extraction count, the extraction strategy can be used to determine the monitoring devices that meet the conditions, while also extracting them based on the extraction count during the extraction process. This ensures that all monitoring devices have the same probability of being extracted, thus ensuring fairness in the extraction process. Furthermore, extraction can be tailored to different needs, ensuring that monitoring devices can be inspected in a targeted manner and reducing the time required for inspections.

[0037] In addition, by setting the first real-time re-inspection requirement to determine whether to perform real-time re-inspection on the monitoring equipment, on the one hand, the timeliness of the re-inspection can be improved, and on the other hand, it can ensure that the monitoring equipment that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring equipment that needs to be re-inspected.

[0038] In addition, by setting a second real-time re-inspection requirement to determine whether to conduct real-time re-inspection of the monitoring equipment, on the one hand, the timeliness of the re-inspection can be improved, and on the other hand, the monitoring data can be used to determine the monitoring equipment that needs to be re-inspected, thereby ensuring the comprehensiveness of the monitoring equipment that needs to be re-inspected.

[0039] In addition, by combining the first real-time re-inspection requirement and the second real-time re-inspection requirement to determine whether to re-inspect the monitoring equipment, the comprehensiveness of the monitoring equipment that needs to be re-inspected can be ensured.

[0040] In addition, after the real-time re-inspection, the monitoring equipment is checked to determine whether it meets the delayed re-inspection requirements. If the requirements are met, the monitoring equipment is re-inspected with a delayed re-inspection. This way, the monitoring equipment that needs to be re-inspected is re-inspected in real time first. If the inspection of the monitoring equipment has not passed, the delayed re-inspection is not performed until all the monitoring equipment inspections are completed. This ensures the timeliness of the inspection of the monitoring equipment after the inspection of all the monitoring equipment is completed.

[0041] In addition, when conducting inspections of monitoring equipment, the results of re-inspections at different times may be inaccurate due to factors such as network fluctuations. In this embodiment, by combining real-time re-inspection with delayed re-inspection, the influence of factors such as network fluctuations at different times on the inspection results is eliminated to the greatest extent possible, ensuring the authority of the inspection results.

[0042] In addition, by using a preset number of threads, i.e., multi-threading, to re-inspect the monitoring equipment, it is possible to reduce the re-inspection time and ensure that the re-inspection is completed within a controllable time, thereby improving the timeliness of the re-inspection.

Brief Description of the Drawings

[0043] Figure 1 This is a structural diagram of a monitoring system provided by one embodiment of the present application;

[0044] Figure 2 This is a flow chart of an inspection method for a monitoring system provided by an embodiment of the present application;

[0045] Figure 3 This is a flow chart of real-time rechecking of a monitoring system provided by one embodiment of the present application;

[0046] Figure 4 This is a flowchart of a delayed recheck of a monitoring system provided by an embodiment of the present application;

[0047] Figure 5A This is part of a flowchart of an inspection method for a monitoring system provided by another embodiment of the present application;

[0048] Figure 5B This is another part of the flowchart of the inspection method of the monitoring system provided by another embodiment of the present application;

[0049] Figure 6 This is a block diagram of an inspection device provided by an embodiment of the present application;

[0050] Figure 7 This is a block diagram of an electronic device provided by an embodiment of the present application. [Specific implementation method]

[0051] The technical solutions of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some embodiments of the present application, not all embodiments. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other unless there is a conflict.

[0052] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0053] This embodiment provides a structural diagram of a monitoring system, such as Figure 1 The system includes: a monitoring device 110 to be inspected and an electronic device 120.

[0054] The monitoring device 110 is used to obtain monitoring data. Optionally, the monitoring data may be audio data or video data, etc. This embodiment does not limit the type of monitoring data.

[0055] Optionally, the monitoring device 110 may include a single-level monitoring device or a multi-level monitoring device. This embodiment does not limit the number of levels of the monitoring device 110. When the monitoring device 110 includes a multi-level monitoring device, the monitoring device 110 may directly collect monitoring data and may also receive monitoring data sent by monitoring devices at a lower level than the monitoring device. This embodiment does not limit the manner in which the monitoring device 110 obtains monitoring data.

[0056] Optionally, the monitoring device includes an image acquisition component, such as a camera, a still camera, etc., and / or an audio acquisition component, such as a microphone, a microphone array, etc., and / or a computer device, such as a computer, a tablet computer, a mobile phone, etc., wherein at least two of the image acquisition component, the audio acquisition component and the computer device can be implemented as one device separately, or can also be implemented as different devices respectively. This embodiment does not limit the implementation method of the monitoring device.

[0057] The electronic device 120 is communicatively connected to the monitoring device 110 and is used to inspect the monitoring device 110 .

[0058] Optionally, the electronic device 120 may be a server, a computer, a mobile phone or other device. This embodiment does not limit the type of the electronic device.

[0059] Because the monitoring devices 110 generally have many cascaded layers and a large number of them, and because they place heavy demands on the network during operation, network fluctuations and other factors can cause anomalies in the monitoring devices 110. To address these technical issues, it is necessary to introduce electronic equipment 120 to inspect the monitoring devices 110 to determine whether any anomalies are occurring.

[0060] In this embodiment, the electronic device 120 is used to: send a first request to the monitoring device to be inspected in the monitoring system, and the first request is used to request to establish a session connection with the monitoring device; when a failure response based on the first request is received from the monitoring device, if the response information carried in the failure response meets the first real-time re-inspection requirement, the monitoring device is re-inspected.

[0061] In this embodiment, a first request is sent to the monitoring device to be inspected in the monitoring system, and the first request is used to request to establish a session connection with the monitoring device; when a failure response based on the first request is received from the monitoring device, if the response information carried in the failure response meets the first real-time re-inspection requirement, the monitoring device is re-inspected in real time; this can solve the problem that when inspecting the monitoring system, due to the excessive number of concurrent inspection routes, the network bandwidth between the upper and lower levels of the monitoring system is exceeded, and the network fluctuates, thereby resulting in inaccurate inspection results during the inspection process; since in the process of inspecting the monitoring system, the monitoring device can be re-inspected in real time by receiving the failure response fed back by the monitoring device, on the one hand, the monitoring device can be checked again to improve the accuracy of the inspection results, and on the other hand, it can ensure that the monitoring device that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring device that needs to be re-inspected.

[0062] This embodiment provides a monitoring system inspection method, such as Figure 2 In this embodiment, the monitoring system includes multiple monitoring devices. This embodiment uses the method applied to electronic devices in the monitoring system as an example for explanation. In actual implementation, the method can also be applied to other devices that are connected to the monitoring system, such as computers and mobile phones. This embodiment does not limit the implementation methods of other devices. The method includes at least the following steps:

[0063] Step 201: Send a first request to the monitoring device to be inspected in the monitoring system.

[0064] The first request is used to request to establish a session connection with the monitoring device.

[0065] Optionally, sending the first request to the monitoring device to be inspected in the monitoring system includes: sending the first request to the monitoring device to be inspected in the monitoring system based on a preset protocol.

[0066] Optionally, the preset protocol may be GB / T28181 protocol or Real Time Messaging Protocol (RTMP), etc. In this case, the first request is an INVITE request. This embodiment does not limit the type of the preset protocol.

[0067] In other embodiments, the preset protocol may also be other protocols used to request establishment of a session connection with the monitoring device. Accordingly, the first request may also be other requests specified by the protocol. This embodiment does not limit the implementation method of the preset protocol and the first request.

[0068] Optionally, sending the first request to the monitoring device currently to be inspected in the monitoring system includes: acquiring a preset inspection strategy; and sending the first request to the monitoring device currently to be inspected in the monitoring system according to the inspection strategy.

[0069] The inspection strategy is used to indicate the inspection method for the monitoring device currently to be inspected in the monitoring system.

[0070] Optionally, methods for obtaining a preset inspection policy include but are not limited to the following:

[0071] The first method is to display a policy configuration page including a plurality of policy configuration controls; and automatically generate an inspection policy corresponding to the policy configuration control triggering operation when a policy configuration control triggering operation is received.

[0072] The second method is to obtain the inspection strategy sent by other devices that are communicatively connected to the electronic equipment in the monitoring system. The other devices can be remote controls, mobile phones, tablet computers, wearable devices, etc. This embodiment does not limit the device types of other devices.

[0073] In actual implementation, the inspection strategy may be obtained in other ways, and this embodiment does not limit the way to obtain the inspection strategy.

[0074] Optionally, the inspection policy can be immediate inspection or cyclic inspection. In other embodiments, the inspection policy can also include a priority for executing the inspection policy. This embodiment does not limit the type of inspection policy. Immediate inspection refers to a policy that immediately executes an inspection of the monitoring device when the inspection policy is immediate inspection; cyclic inspection refers to a policy that cyclically executes inspections of the monitoring device when the inspection policy is cyclic inspection.

[0075] In one example, sending a first request to a monitoring device currently to be inspected in the monitoring system according to the inspection policy includes: when the inspection policy is immediate inspection, immediately sending the first request to the monitoring device in response to the inspection policy.

[0076] In another example, sending a first request to a monitoring device currently to be inspected in the monitoring system according to the inspection strategy includes: when the inspection strategy is cyclic inspection, sending the first request to the monitoring device when the current time reaches the cycle time indicated by the cyclic inspection.

[0077] For example, if the inspection strategy is cyclic inspection, the preset protocol is GB / T28181 protocol, the first request is an INVITE request, and the cycle time of the cyclic inspection indication is 10:00 am every day, then the step of sending an INVITE request to the monitoring device will be executed at 10:00 am every day.

[0078] Current monitoring system inspection methods generally involve full inspections of all monitoring devices. This approach is suitable for small-scale monitoring systems, such as those with millions of devices, where inspections can be completed within a day. However, when the number of monitoring devices reaches tens of millions, it becomes difficult to guarantee that the inspections can be completed within the preset timeframe.

[0079] Based on this, this embodiment, before sending a first request to the monitoring device currently to be inspected in the monitoring system, further includes: determining a device extraction range and extraction quantity based on a preset extraction strategy; obtaining the extraction counts for each monitoring device within the device extraction range; and extracting, in ascending order of extraction counts, monitoring devices that meet the extraction count. Optionally, the preset extraction strategy is pre-stored in the monitoring system. The extraction strategy can be user-configured or sent by another device; this embodiment does not limit the source of the extraction strategy.

[0080] Optionally, in the case where the extraction strategy is configured by the user, the monitoring device also needs to display an extraction strategy configuration page, and obtain the extraction strategy indicated by the extraction configuration operation when an extraction configuration operation is received.

[0081] The extraction strategy is used to indicate the monitoring equipment that needs to be inspected in this inspection task.

[0082] Optionally, the extraction strategy includes a device extraction range, and the device extraction range may be to extract monitoring devices located within the target administrative area, and / or to extract monitoring devices located within an area whose area type is the target industry type, etc. This embodiment does not limit the type of the device extraction range.

[0083] The target industry type is pre-stored in the electronic device or may be input by the user. The target industry type includes but is not limited to: school, bank area, hospital, etc. This embodiment does not limit the implementation method of the target industry type.

[0084] Optionally, the extraction strategy includes the number of devices to be extracted. If the extraction strategy does not include the number of devices to be extracted, the number of devices to be extracted may be a preset value or a preset percentage of all monitoring devices within the device extraction range. This embodiment does not limit the method for obtaining the number of devices to be extracted.

[0085] Optionally, the extraction count for each monitoring device is pre-stored in the monitoring system. The extraction count refers to the number of times the monitoring device has been extracted for inspection. The extraction count can be represented by a reference count. In this case, after a monitoring device is extracted, the extraction count for the monitoring device needs to be updated, for example, by incrementing the reference count by 1.

[0086] To better understand the process of extracting each monitoring device in the monitoring system using a preset extraction strategy to obtain each monitoring device to be inspected, this embodiment provides an example of extracting each monitoring device. For example, based on the extraction strategy, a device extraction range is determined to be 1,000 monitoring devices in Suzhou, Jiangsu Province and Nanjing, Jiangsu Province. There are 20,000 monitoring devices that meet this extraction range. In this case, 1,000 monitoring devices are extracted in ascending order of the number of extractions.

[0087] Optionally, when it is necessary to extract monitoring devices with the same number of extractions, the extraction can be performed randomly.

[0088] In this embodiment, the device extraction range and extraction quantity are determined based on the extraction strategy; the extraction times of each monitoring device within the device extraction range are obtained; the monitoring devices that meet the extraction quantity are extracted in order from small to large extraction times; the extraction strategy can be used to determine the monitoring devices that meet the conditions, and at the same time, extraction is performed according to the extraction times during the extraction process. In this way, on the one hand, it can be ensured that the probability of all monitoring devices being extracted is the same, thereby ensuring the fairness of the extraction; on the other hand, extraction can be performed according to different needs, which can ensure that the monitoring devices can be inspected in a targeted manner and reduce the time required for inspection.

[0089] In other examples, before sending the first request to the monitoring device currently to be inspected in the monitoring system, this embodiment further includes: obtaining the number of failures of each monitoring device; determining the probability of selecting each monitoring device based on the number of failures of each monitoring device; and selecting the monitoring devices in descending order of their probability of selection. The number of failures and the probability of selection of each monitoring device are positively correlated, or the corresponding relationship between the number of failures and the probability of selection is pre-stored in the monitoring system.

[0090] Step 202: When a failure response based on the first request is received from the monitoring device, if the response information carried in the failure response meets the first real-time re-inspection requirement, re-inspect the monitoring device.

[0091] Optionally, the first real-time recheck requirement is pre-stored in the monitoring system. The first real-time recheck requirement is used to indicate the conditions that must be met for a failure response returned by the monitoring device requiring real-time recheck. The first real-time recheck requirement can be set by the user or stored by default in the electronic device. This embodiment does not limit the configuration method of the first real-time recheck requirement.

[0092] A failure response is a response obtained by an electronic device when the monitoring device is unable to establish a session connection. Generally, the failure response includes the reason why the session connection cannot be established, that is, the response information. Schematically, the response information includes a first error code. Accordingly, the first real-time re-inspection requirement includes a first preset error code that needs to be fed back by the re-inspection monitoring device. At this time, if the response information carried in the failure response meets the first real-time re-inspection requirement, the monitoring device is re-inspected, including: comparing the first error code carried in the failure response with the first preset error code set; when there is a preset error code in the first preset error code set that is consistent with the first preset error code, the monitoring device is re-inspected.

[0093] The first preset error code set is a set of error codes whose error types of the monitoring device can be eliminated through rechecking.

[0094] For example, if the first preset error code set includes error code 404, then when a failure response from the monitoring device is received and the failure response carries the first error code 404, the monitoring device is rechecked.

[0095] In this embodiment, by setting the first real-time re-inspection requirement to determine whether to perform real-time re-inspection on the monitoring device, on the one hand, the timeliness of the re-inspection can be improved, and on the other hand, it can ensure that the monitoring device that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring device that needs to be re-inspected.

[0096] Optionally, upon receiving a successful response from the monitoring device based on the first request feedback, a session connection is established with the monitoring device, and monitoring data collected by the monitoring device is received based on the session connection; if the monitoring data meets the second real-time review requirement, the monitoring device is re-inspected.

[0097] A successful response is a response received by the electronic device when the monitoring device is able to establish a session connection. For example, if the preset protocol is GB / T28181, the successful response may be a 200 OK response.

[0098] Wherein, the session connection is disconnected when the monitoring data is sent. At this time, when the monitoring data is sent, a second request is sent to the monitoring device to disconnect the session connection with the monitoring device.

[0099] The second request is used to disconnect the session with the monitoring device.

[0100] Optionally, taking the preset protocol as GB / T28181 protocol as an example, the second request may be a BYE request.

[0101] Optionally, after receiving the monitoring data collected by the monitoring device, it also includes: decoding the monitoring data, and obtaining a second error code if the decoding fails, so that the electronic device can compare the second error code with the second real-time re-inspection requirement to determine whether the monitoring data meets the second real-time re-inspection requirement; if the decoding is successful, it is determined that the monitoring device inspection has passed.

[0102] Optionally, the second real-time recheck requirement is pre-stored in the monitoring system. The second real-time recheck requirement can be set by the user or stored by default in the electronic device. This embodiment does not limit the setting method of the second real-time recheck requirement.

[0103] Optionally, the second real-time recheck requirement includes a second preset error code set for the monitoring device to be rechecked. In this case, if the second error code meets the second real-time recheck requirement, rechecking the monitoring device includes: comparing the second error code with the second preset error code set; and if a preset error code matching the second error code exists in the second preset error code set, rechecking the monitoring device.

[0104] Optionally, the second error code is used to indicate a defect that causes the monitoring data decoding to fail. Optionally, the defect indicated by the second error code includes but is not limited to: the device status of the monitoring device (including offline status and online status), the signaling delay of the monitoring device, the code stream delay of the monitoring device, the key frame delay of the monitoring device, the point integrity of the monitoring device, the coordinate information of the monitoring device, the video quality index of the monitoring device, the video signal loss of the monitoring device, the video occlusion of the monitoring device, the video frame loss of the monitoring device, the video interference of the monitoring device, the brightness of the monitoring device, the color distortion of the monitoring device, the video blur of the monitoring device, the scene change of the monitoring device, the snow stripe of the monitoring device, the clock abnormality of the monitoring device, the subtitle annotation of the monitoring device, the video freezing of the monitoring device, and / or the video jitter of the monitoring device, etc. This embodiment does not limit the implementation method of the monitoring parameters.

[0105] The second preset error code set in the second real-time re-check requirement is used to indicate defects including but not limited to: the monitoring device is offline, the signaling delay of the monitoring device is greater than 5 seconds, the code stream delay of the monitoring device is greater than 5 seconds, the key frame delay of the monitoring device is greater than 5 seconds, the video frame of the monitoring device is lost, the monitoring device is not subtitled and / or the clock of the monitoring device is abnormal, etc. This embodiment does not limit the type of the second real-time re-check requirement.

[0106] For example, a preset error code in the second preset error code set indicates that the signaling delay of the monitoring device is greater than 5 seconds. After establishing a session connection with the monitoring device, the electronic device receives monitoring data collected by the monitoring device. If decoding of the monitoring data fails and the obtained second error code indicates that the signaling delay of the monitoring device is 6 seconds, the second real-time recheck requirement is met, and the monitoring device is rechecked.

[0107] In this embodiment, by setting a second real-time re-inspection requirement to determine whether to perform real-time re-inspection on the monitoring equipment, on the one hand, the timeliness of the re-inspection can be improved, and on the other hand, the monitoring equipment that needs to be re-inspected can be determined based on the decoding of the monitoring data, thereby ensuring the comprehensiveness of the monitoring equipment that needs to be re-inspected.

[0108] Optionally, recheck the monitoring equipment, e.g. Figure 3 As shown, it at least includes the following steps S301 to S304:

[0109] Step S301 : During the inspection of the current monitoring device, the step of sending the first request to the monitoring device is executed again, and step S302 or step S304 is executed.

[0110] Re-sending the first request to the monitoring device during the current inspection of the current monitoring device means re-inspecting the current monitoring device before inspecting the next monitoring device to be inspected. Specifically, when the current monitoring device meets the first real-time re-inspection requirement or the second real-time re-inspection requirement, the monitoring device is re-inspected and the first request is sent to the monitoring device.

[0111] Step S302: upon receiving a successful response from the monitoring device based on the first request, establishing a session connection with the monitoring device, and receiving monitoring data collected by the monitoring device based on the session connection.

[0112] Step S303: When the monitoring data meets the first delayed re-inspection requirement, after the inspection of each monitoring device to be inspected is completed, a delayed re-inspection is performed on the monitoring device.

[0113] Among them, the first delayed recheck requirement is pre-stored in the monitoring system. The first delayed recheck requirement is used to indicate the conditions that need to be met when the monitoring data decoding of the monitoring device performing real-time recheck fails. Optionally, the first delayed recheck requirement may be the same as or different from the second real-time recheck requirement. This embodiment does not limit the implementation method of the first delayed recheck requirement. Specifically, a third preset error code set corresponding to the first delayed recheck requirement is constructed. The third preset error code set is used to indicate the defects that caused the decoding failure of the monitoring device. The third preset error code set and the second preset error code set may be the same as or different.

[0114] Specifically, after acquiring the monitoring data, the monitoring data is decoded. If the decoding fails, a third error code is obtained. If the third error code meets the delayed recheck requirement, the monitoring device is added to the delayed recheck queue. Specifically, the third error code can be compared with a third preset error code set. If a preset error code matching the third error code exists in the third preset error code set, the monitoring device is added to the delayed recheck queue.

[0115] After the inspection of each monitoring device is completed, the delayed re-inspection of the monitoring device means that after the inspection of all monitoring devices is completed, the monitoring devices in the delayed re-inspection queue are re-inspected.

[0116] Step S304: upon receiving a failure response from the monitoring device based on the first request, if the response information carried in the failure response meets the second delayed re-inspection requirement, after the inspection of each monitoring device to be inspected is completed, a delayed re-inspection is performed on the monitoring device.

[0117] Among them, the second delayed recheck requirement is pre-stored in the monitoring system, and the second delayed recheck requirement is used to indicate the conditions that need to be met for the failure response fed back by the monitoring device that needs to perform delayed recheck. The second delayed recheck requirement can be set by the user, or it can be stored by default in the electronic device. This embodiment does not limit the setting method of the second delayed recheck requirement. The second delayed recheck requirement can be the same as or different from the first real-time recheck requirement. This embodiment does not limit the implementation method of the second delayed recheck requirement. Furthermore, a fourth preset error code set is constructed for the second delayed recheck requirement; the fourth preset error code set is used to indicate the reason for the signaling response failure. The fourth preset error code set is the same as or different from the first preset error code set.

[0118] Furthermore, the monitoring device performing real-time recheck feeds back a failure response based on the first request, and the response information carried in the failure response is a fourth error code, then the fourth error code is compared with the fourth preset error code set. When there is a preset error code consistent with the fourth error code in the fourth preset error code set, the monitoring device is added to the delayed recheck queue.

[0119] In a monitoring system, there may be a large number of monitoring devices that require inspection. If at least two real-time re-inspections are performed on each monitoring device during an inspection, this will result in significant delays in the inspection of subsequent monitoring devices. In this embodiment, a real-time re-inspection is first performed on the monitoring device that requires re-inspection. If the inspection of this monitoring device has not passed, a delayed re-inspection is performed after the inspection of all monitoring devices is completed. This ensures the timely inspection of other monitoring devices after the currently inspected monitoring device.

[0120] In addition, when conducting inspections of monitoring equipment, the results of re-inspections at different times may be inaccurate due to factors such as network fluctuations. In this embodiment, by combining real-time re-inspection with delayed re-inspection, the influence of factors such as network fluctuations at different times on the inspection results is eliminated to the greatest extent possible, ensuring the authority of the inspection results.

[0121] Optionally, a delayed re-inspection of the monitoring equipment is performed, e.g. Figure 4 As shown, it at least includes the following steps S401 to S404:

[0122] Step S401: Use a preset number of threads to send a first request to a monitoring device to be rechecked after a delay, and then execute step S402 or step S404.

[0123] The preset number of threads is pre-stored in the monitoring system. The monitoring device to be delayed re-inspected refers to the monitoring device in the delayed re-inspection queue.

[0124] Optionally, the number of the preset threads is one or at least two, and this embodiment does not limit the number of the preset threads.

[0125] Step S402: upon receiving a successful response from the monitoring device based on the first request, establishing a session connection with the monitoring device, and receiving monitoring data collected by the monitoring device based on the session connection.

[0126] Step S403: using the monitoring data to determine the inspection result of the monitoring device.

[0127] Step S404: upon receiving a failure response fed back by the monitoring device based on the first request, use the response information carried in the failure response to determine an inspection result of the monitoring device.

[0128] When re-inspecting monitoring devices, there may be a large number of monitoring devices that need to be re-inspected, resulting in a problem of low re-inspection timeliness. Based on the above technical problem, this embodiment uses a preset number of threads, i.e., multiple threads, to re-inspect the monitoring devices. This can reduce the re-inspection time and ensure that the re-inspection is completed within a controllable time, thereby improving the timeliness of the re-inspection.

[0129] In this embodiment, if the response information in the failure response does not meet the first real-time recheck requirement or the second delayed recheck requirement, it is determined that the current monitoring device does not need to be rechecked. If the reason for the decoding failure of the monitoring data does not meet the second real-time recheck requirement or the first delayed recheck requirement, it is determined that the current monitoring device does not need to be rechecked.

[0130] To sum up, the inspection method of the monitoring system provided in this embodiment is that the monitoring system includes multiple monitoring devices, and a first request is sent to the monitoring device to be inspected in the monitoring system, and the first request is used to request to establish a session connection with the monitoring device; when a failure response based on the first request is received from the monitoring device, if the response information carried in the failure response meets the first real-time re-inspection requirement, the monitoring device is re-inspected in real time; it can solve the problem that when inspecting the monitoring system, due to the large number of concurrent inspection routes, the network bandwidth between the upper and lower levels of the monitoring system is exceeded, and the network fluctuates, thereby causing inaccurate inspection results during the inspection process; since in the process of inspecting the monitoring system, the monitoring device can be re-inspected by receiving the failure response fed back by the monitoring device, on the one hand, the monitoring device can be checked again to improve the accuracy of the inspection results, and on the other hand, it can ensure that the monitoring device that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring device that needs to be re-inspected.

[0131] In addition, by determining the device extraction range and number based on the extraction strategy, obtaining the extraction count for each monitoring device within the device extraction range, and extracting monitoring devices that meet the extraction count in ascending order of extraction count, the extraction strategy can be used to determine the monitoring devices that meet the conditions, while also extracting them based on the extraction count during the extraction process. This ensures that all monitoring devices have the same probability of being extracted, thus ensuring fairness in the extraction process. Furthermore, extraction can be tailored to different needs, ensuring that monitoring devices can be inspected in a targeted manner and reducing the time required for inspections.

[0132] In addition, by setting the first real-time re-inspection requirement to determine whether to perform real-time re-inspection on the monitoring equipment, on the one hand, the timeliness of the re-inspection can be improved, and on the other hand, it can ensure that the monitoring equipment that needs to be re-inspected can be determined even if the session connection is not established, thereby ensuring the comprehensiveness of the monitoring equipment that needs to be re-inspected.

[0133] In addition, by setting a second real-time re-inspection requirement to determine whether to conduct real-time re-inspection of the monitoring equipment, on the one hand, the timeliness of the re-inspection can be improved, and on the other hand, the monitoring equipment that needs to be re-inspected can be determined based on the decoding of the monitoring data, thereby ensuring the comprehensiveness of the monitoring equipment that needs to be re-inspected.

[0134] In addition, by combining the first real-time re-inspection requirement and the second real-time re-inspection requirement to determine whether to re-inspect the monitoring equipment, the comprehensiveness of the monitoring equipment that needs to be re-inspected can be ensured.

[0135] In addition, after the real-time re-inspection, the monitoring equipment is checked to determine whether it meets the delayed re-inspection requirements. If the requirements are met, the monitoring equipment is re-inspected in a delayed manner. In this way, the monitoring equipment that needs to be re-inspected is re-inspected in real time first. If the inspection of the monitoring equipment has not passed, the delayed re-inspection is not performed until all the inspections of the monitoring equipment (initial inspection and real-time re-inspection) are completed. This can ensure the timeliness of the inspection of each monitoring equipment.

[0136] In addition, when conducting inspections of monitoring equipment, the results of re-inspections at different times may be inaccurate due to factors such as network fluctuations. In this embodiment, by combining real-time re-inspection with delayed re-inspection, the influence of factors such as network fluctuations at different times on the inspection results is eliminated to the greatest extent possible, ensuring the authority of the inspection results.

[0137] In addition, by using a preset number of threads, i.e., multi-threading, to re-inspect the monitoring equipment, the re-inspection time is reduced and the re-inspection is ensured to be completed within a controllable time, thereby improving the timeliness of the re-inspection.

[0138] In order to more clearly understand the inspection method of the monitoring system provided by the present application, this embodiment gives an example to illustrate the method. In this example, the preset protocol is GB / T28181 protocol and the first request is an INVITE request. Figure 5A and Figure 5B , the method comprises at least the following steps:

[0139] Step 501: Obtain an extraction strategy.

[0140] Step 502: Extract monitoring devices that meet the device extraction range from all monitoring devices based on the extraction strategy, and calculate the number of devices that need to be extracted.

[0141] Step 503: Obtain the extraction times of the devices to be extracted, sort them from small to large according to the extraction times, and extract the monitoring devices to be extracted as the monitoring devices to be inspected.

[0142] Among them, after the monitoring device is extracted, the extraction times will be updated by adding 1.

[0143] Step 504: Send an INVITE request to the current monitoring device among the monitoring devices to be inspected.

[0144] Specifically, step 505 or step 506 is executed based on the response of the current monitoring device to the INVITE request.

[0145] Step 505: Receive a failure response from the current monitoring device based on the INVITE request reply, and determine whether there is a preset error code in the first preset error code set that is consistent with the first error code carried in the failure response. If so, perform a real-time re-inspection of the current monitoring device and execute step 508; if not, output the inspection result of the current monitoring device, which includes the first error code.

[0146] In a specific embodiment, in this step, the inspection result of the current monitoring device is that the device is offline and includes a first error code.

[0147] Step 506: Receive a successful response from the current monitoring device based on the INVITE request reply, establish a session connection with the current monitoring device, receive the monitoring data collected by the current monitoring device, and after receiving the data, send a BYE request to the current monitoring device to disconnect the session connection; decode the monitoring data collected by the current monitoring device. If the decoding is successful, generate an inspection result for the current monitoring device, which indicates that the current monitoring device has passed the inspection; if the decoding fails, execute step 507;

[0148] Step 507, determine whether there is a preset error code in the second preset error code set that is consistent with the second error code obtained by the current monitoring device when decoding fails. If so, perform a real-time re-inspection of the current monitoring device and execute step 508; if not, output the inspection result of the current monitoring device, which includes the second error code.

[0149] In a specific implementation, in this step, the inspection result of the current monitoring device is decoding failure, and carries a second error code corresponding to the decoding failure.

[0150] Step 508: Send an INVITE request to the current monitoring device again;

[0151] Execute step 509 or step 510 based on the response of the current monitoring device based on the resent INVITE request;

[0152] Step 509: Receive the failure response of the current monitoring device based on the reply of the re-sent INVITE request, and determine whether there is a preset error code in the third preset error code set that is consistent with the third error code carried in the failure response. If so, add the current monitoring device to the delayed re-inspection queue and execute step 512; if not, output the inspection result of the current monitoring device, which includes the third error code.

[0153] In a specific embodiment, the inspection result outputted for the current device is that the device is offline, and the inspection result includes a third error code. If the first error code is different from the third error code, the first error code may also be included.

[0154] Step 510: Receive a successful response from the current monitoring device based on the resent INVITE request reply, establish a session connection with the current monitoring device, receive the monitoring data collected by the current monitoring device, and after receiving the data, send a BYE request to the current monitoring device to disconnect the session connection; decode the monitoring data collected by the current monitoring device. If the decoding is successful, generate an inspection result for the current monitoring device, which indicates that the current monitoring device has passed the inspection; if the decoding fails, execute step 511;

[0155] Step 511, determine whether there is a preset error code in the fourth preset error code set that is consistent with the fourth error code obtained by the current monitoring device when decoding fails. If so, add the current monitoring device to the delayed re-inspection queue and execute step 512; if not, output the inspection result of the current monitoring device, which includes the fourth error code.

[0156] Step 512: Determine whether all monitoring devices to be inspected have been inspected. If not, obtain the next monitoring device as the current monitoring device and execute step 504; if yes, execute step 513;

[0157] In this step, judging whether all monitoring devices to be inspected have been inspected means judging whether all monitoring devices to be inspected have undergone initial inspection and / or real-time re-inspection. The initial inspection refers to the inspection when the monitoring device receives the INVITE request for the first time.

[0158] Step 513: Use a preset number of threads to send an INVITE request to the monitoring device in the delayed recheck queue, and execute step 514 or step 515;

[0159] Step 514: Receive the failure response of the monitoring device in the delayed recheck queue based on the INVITE request reply and output the inspection result.

[0160] In this step, the inspection result is that the corresponding monitoring device is offline or the inspection fails, and the inspection result includes an error code carried in the failure response to indicate the reason for the inspection failure.

[0161] Step 515: Receive a successful response from the monitoring device in the delayed recheck queue based on the INVITE request reply, establish a session connection with the monitoring device, receive the monitoring data collected by the monitoring device, and send a BYE request to the monitoring device after the reception is completed to disconnect the session connection; decode the monitoring data, and if the decoding is successful, generate an inspection result indicating that the monitoring device has passed the inspection; if the decoding fails, generate an inspection result carrying an error code indicating the decoding failure.

[0162] Figure 6 6 is a block diagram of an inspection device provided by an embodiment of the present application, which includes at least the following modules: a request sending module 610 and an equipment re-inspection module 620.

[0163] The request sending module 610 is used to send a first request to the monitoring device to be inspected in the monitoring system, where the first request is used to request to establish a session connection with the monitoring device.

[0164] The device re-inspection module 620 is configured to, upon receiving a failure response from the monitoring device based on the first request, re-inspect the monitoring device if the response information carried in the failure response meets the first real-time re-inspection requirement.

[0165] For relevant details, please refer to the above embodiments.

[0166] It should be noted that the inspection device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate the inspection of the monitoring system. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the inspection device can be divided into different functional modules to complete all or part of the functions described above. In addition, the inspection device provided in the above embodiment and the inspection method embodiment of the monitoring system are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0167] This embodiment provides an electronic device, such as Figure 7 As shown, the electronic device at least includes a processor 701 and a memory 702 .

[0168] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0169] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is executed by the processor 701 to implement the inspection method of the monitoring system provided in the method embodiment of the present application.

[0170] In some embodiments, the electronic device may optionally include a peripheral device interface and at least one peripheral device. The processor 701, memory 702, and peripheral device interface may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface via a bus, signal lines, or circuit boards. Illustratively, the peripheral devices include, but are not limited to, a radio frequency circuit, a touchscreen display, an audio circuit, and a power supply.

[0171] Of course, the electronic device may also include fewer or more components, which is not limited in this embodiment.

[0172] Optionally, the present application also provides a computer-readable storage medium, in which a program is stored. The program is loaded and executed by a processor to implement the inspection method of the monitoring system of the above method embodiment.

[0173] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A patrol inspection method for a monitoring system, characterized in that: The monitoring system includes a plurality of monitoring devices, and the method includes: Sending a first request to the monitoring device to be inspected in the monitoring system, wherein the first request is used to request establishment of a session connection with the monitoring device; Upon receiving a failure response fed back by the monitoring device based on the first request, if the response information carried in the failure response meets the first real-time recheck requirement, rechecking the monitoring device; The re-inspection of the monitoring equipment includes: During the current inspection of the current monitoring device, the step of sending the first request to the monitoring device is performed again; Upon receiving a successful response from the monitoring device based on the first request, establishing the session connection with the monitoring device, and receiving monitoring data collected by the monitoring device based on the session connection; If the monitoring data meets the first delayed re-inspection requirement, after the inspection of each monitoring device to be inspected is completed, the monitoring device is subjected to a delayed re-inspection; When receiving a failure response from the monitoring device based on the first request, if the response information carried in the failure response meets the second delayed re-inspection requirement, after the inspection of each monitoring device to be inspected is completed, the monitoring device will be subjected to a delayed re-inspection.

2. The method according to claim 1, characterized in that The method further comprises: Upon receiving a successful response from the monitoring device based on the first request, establishing the session connection with the monitoring device, and receiving the monitoring data collected by the monitoring device based on the session connection; disconnecting the session connection when the monitoring data is sent; In a case where the monitoring data meets the second real-time re-inspection requirement, the monitoring device is re-inspected.

3. The method according to claim 1, characterized in that The delayed re-inspection of the monitoring device includes: Using a preset number of threads to send the first request to the monitoring device to be delayed rechecked; In a case where a successful response based on the first request is received from the monitoring device, establishing the session connection with the monitoring device, and receiving the monitoring data collected by the monitoring device based on the session connection; Determine an inspection result of the monitoring device using the monitoring data; In the case of receiving a failure response fed back by the monitoring device based on the first request, the inspection result of the monitoring device is determined using the response information carried in the failure response.

4. The method according to claim 1, wherein Before sending the first request to the monitoring device currently to be inspected in the monitoring system, the method further includes: Determine the device extraction range and extraction quantity based on the preset extraction strategy; Obtain the number of extractions of each monitoring device within the device extraction range; The monitoring devices that meet the extraction quantity are extracted in the order of the extraction times from small to large.

5. The method according to claim 1, wherein The sending of a first request to the monitoring device currently to be inspected in the monitoring system includes: Get the preset inspection strategy; The first request is sent to the monitoring device currently to be inspected in the monitoring system according to the inspection strategy.

6. The method according to claim 5, characterized in that The inspection strategy is immediate inspection or cyclic inspection, and sending the first request to the monitoring device currently to be inspected in the monitoring system according to the inspection strategy includes: In a case where the inspection strategy is the immediate inspection, immediately sending the first request to the monitoring device in response to the inspection strategy; When the inspection strategy is the cyclic inspection, the first request is sent to the monitoring device when the current time reaches the cycle time indicated by the cyclic inspection.

7. The method according to any one of claims 1 to 6, characterized in that: The response information includes a first error code.

8. An electronic device, characterized in that: The device includes a processor and a memory; the memory stores a program, and the program is loaded and executed by the processor to implement the inspection method of the monitoring system according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that The storage medium stores a program, and when the program is executed by the processor, it is used to implement the inspection method of the monitoring system according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for extracting expert database information

    CN102222117A

  • Conference inspection method, electronic equipment and storage medium

    CN112118440A

  • Video conference processing method, system and device

    CN113612962A

  • Method and device for determining connection state of equipment, electronic equipment and medium

    CN113923254A