Monitoring equipment data storage method, device, storage medium and equipment

By simplifying shunt rule query in the multi-node storage of the monitoring device, the problem of storage node data chaos caused by the irregular shunt of the monitoring device is solved, improving data storage efficiency and reducing server pressure.

CN116016822BActive Publication Date: 2025-06-06E SURFING VISION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211591272.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2025-06-06
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

Under the multi-node storage of monitoring devices, the irregular data shunt causes confusion in storage node data, which increases the pressure of data storage and search, especially when the number of devices is large, it may lead to excessive pressure on the shunt rule library or even crash.

Method used

Simplify the query steps of shunt rule through preset shunt rule, and set flags before shunt rule matching to avoid monitoring devices that do not meet shunt rule matching and reduce server pressure.

Benefits of technology

It improves the efficiency of shunt storage of monitoring equipment, reduces server pressure, avoids shunt rule library crash, and is suitable for data storage of large-scale monitoring equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016822B_ABST
    Figure CN116016822B_ABST
Patent Text Reader

Abstract

The present application provides a monitoring device data storage method, device, storage medium and equipment, the method comprising: obtaining the device information of the monitoring device; judging whether the device information satisfies the diversion storage according to the flag bit of the device information; if the device information satisfies the diversion storage, matching the device information with several preset diversion rules to obtain the storage pool information of the video data diversion storage of the monitoring device; according to the storage pool information, storing the video data of the monitoring device in the corresponding storage pool according to the preset weight. The diversion rule query step is simplified by the preset diversion rule, and the monitoring device that does not meet the diversion rule query is prevented from entering the diversion rule matching step by setting the flag bit, thereby reducing unnecessary diversion matching steps and improving the efficiency of the diversion storage of the monitoring device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to a monitoring equipment data storage method, device, storage medium and equipment. Background Art

[0002] Monitoring equipment usually mixes multiple videos in a preset way before transmitting or storing them. Video splitting is to separate the mixed multiple videos according to the set split number, so that each video can be displayed in a different window. As the scale of monitoring products gradually expands, the data that needs to be uploaded and stored by monitoring equipment also increases exponentially, resulting in a single storage medium being unable to carry all the concurrency and storage traffic. As a result, the data storage method of monitoring equipment has gradually changed from single-node storage to multi-node storage.

[0003] With the application of multi-node storage, the storage data uploaded by monitoring devices faces the problem of how to divert. Irregular diversion methods lead to data confusion in storage nodes, which will bring huge pressure to data storage and search of storage nodes. In the massive monitoring devices, it is necessary for major monitoring platforms to realize refined diversion technology by arranging and combining multiple dimensions.

[0004] Too many dimensions of device information will cause the corresponding diversion rule library to contain more combination scenarios and a larger amount of data. It takes a long time to traverse the diversion rule library when storing or searching for the corresponding monitoring device information. If the number of monitoring devices is large, it will cause the diversion rule library to be overloaded or even collapse, resulting in the diversion method being unable to be applied when the number of monitoring devices is large. Summary of the invention

[0005] Based on this, the present invention provides a monitoring equipment data storage method, device, storage medium and equipment, which simplifies the steps of diversion rule query through preset diversion rules, and sets a flag before the diversion rule matches to prevent monitoring devices that do not meet the diversion rule query from entering the diversion rule match, thereby reducing the pressure on the server and improving the efficiency of diversion storage of monitoring equipment.

[0006] In a first aspect, the present invention provides a monitoring device data storage method, comprising:

[0007] Get the device information of the monitoring device;

[0008] Determining whether the device information satisfies the requirement of offload storage according to the flag bit of the device information;

[0009] If the device information satisfies the diversion storage, the device information is matched with a plurality of preset diversion rules to obtain the storage pool information of the video data diversion storage of the monitoring device;

[0010] According to the storage pool information, the video data of the monitoring device is stored in the corresponding storage pool according to the preset weight.

[0011] In a second aspect, the present invention provides a monitoring device data storage device, comprising:

[0012] An information acquisition module, used to acquire device information of a monitoring device;

[0013] A flag bit judgment module, used for judging whether the device information satisfies the requirement of offload storage according to the flag bit of the device information;

[0014] A rule base query module is used to match the device information with a number of preset diversion rules if the device information satisfies the diversion storage, and obtain the storage pool information of the video data diversion storage of the monitoring device;

[0015] The video storage module is used to store the video data of the monitoring device in the corresponding storage pool according to the preset weight based on the storage pool information.

[0016] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the monitoring device data storage methods in the first aspect.

[0017] In a fourth aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it executes any one of the monitoring device data storage methods in the first aspect.

[0018] The beneficial effect of adopting the above technical solution is: first determine whether the device information meets the requirements of diversion storage based on the flag bit of the device information of the monitoring device, and then match the device information to the corresponding storage pool through simplified diversion rules, thereby improving the efficiency of diversion storage of the monitoring device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0020] Figure 1 This is a schematic diagram of a monitoring device data storage method in one embodiment of the present application;

[0021] Figure 2 This is a module diagram of a monitoring device data storage method in one embodiment of the present application;

[0022] Figure 3 This is a flow chart of a monitoring device data storage method in one embodiment of the present application;

[0023] Figure 4 This is a schematic diagram of a monitoring equipment data storage device in one embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. In order to explain the present invention in more detail, the monitoring equipment data storage method, device, storage medium and equipment provided by the present invention are specifically described below in combination with the drawings.

[0025] As the scale of monitoring equipment continues to expand, the data uploaded by storage devices is growing exponentially, and the data storage method of monitoring equipment has changed from single-node storage to multi-node storage. With the application of multi-node storage, the irregular diversion method used in multi-node storage leads to data confusion in storage nodes, which will bring huge pressure to the data storage and data query of storage nodes. In the case of a large number of monitoring devices, it will even cause the diversion rule base to be overloaded or even collapse.

[0026] The present application embodiment provides a specific application scenario of the monitoring device data storage method. The application scenario includes the terminal device provided in the embodiment, and the terminal device is not limited to a smart phone and a computer device, wherein the computer device can be at least one of a desktop computer, a portable computer, a laptop computer, a tablet computer, etc. The user operates the terminal device, and the terminal device executes the monitoring device data storage method of the present invention. Figure 1-3 For the specific process, please refer to the monitoring device data storage method implementation example.

[0027] Step S101: Obtain device information of a monitoring device.

[0028] Specifically, the device information of the monitoring device includes the firmware version, device manufacturer, device model, event type and IP address of the monitoring device.

[0029] The firmware version of the monitoring device is the version number of the firmware released by the monitoring device. For example, the firmware version of the first monitoring device is recorded as 1.1.0, and the firmware version of the second monitoring device is recorded as 1.2.0. The equipment manufacturer is a common monitoring equipment manufacturer, such as Hikvision, Dahua, Uniview, etc. The equipment model is generally distinguished according to the appearance of the monitoring device, such as board type, pinhole type, ball type, machine gun type, etc. The event type refers to the working mode of the monitoring device, such as the all-day working mode. The IP address is the IP address of the monitoring device. The physical address of the monitoring device can be obtained based on the IP address, which is generally accurate to the province.

[0030] Step S102: judging whether the device information satisfies the offload storage according to the flag bit of the device information.

[0031] The device information is provided with a flag bit, and the flag bit is used to determine whether the device information of the monitoring device satisfies the requirement of the diversion storage, specifically:

[0032] Step S201: If the flag bit of the device information is the first flag bit, the device information satisfies the offload storage.

[0033] Step S202: If the flag bit of the device information is the second flag bit, the device information does not meet the requirement of offload storage, and regional storage is used to obtain storage pool information for storing video data of the monitoring device.

[0034] The first flag bit and the second flag bit can be represented by T or F symbols, or by 0 or 1 marks, as long as the first flag bit and the second flag bit are distinguished.

[0035] Step S103: If the device information satisfies the diversion storage, the device information is matched with a number of preset diversion rules to obtain the storage pool information of the video data diversion storage of the monitoring device.

[0036] Specifically, the device information is matched with a plurality of preset diversion rules to obtain storage pool information for diversion storage of video data of the monitoring device, including:

[0037] Step S301: If the device information successfully matches any preset diversion rule, a diversion value corresponding to the diversion rule is obtained.

[0038] Step S302: Obtain storage pool information of the monitoring device diverted storage according to the diversion value.

[0039] The preset diversion rules include: a first diversion rule, a second diversion rule, a third diversion rule and a fourth diversion rule in sequence; the first diversion rule includes a first firmware version, a first device manufacturer, a first device model and a first event type in sequence; the second diversion rule includes a second firmware version, a second device manufacturer and a second device model in sequence; the third diversion rule includes a third firmware version and a third device manufacturer; and the fourth diversion rule includes a fourth firmware version. The above preset diversion rules can be cached in a diversion rule library and adjusted according to the device information content of the actual monitoring device.

[0040] The device information to be matched here includes the firmware version, device manufacturer, device model and event type arranged in sequence. The arrangement order of the four device information contents in the matching device information is consistent with the arrangement order of the preset diversion rule content, and the above consistent arrangement order can reduce unnecessary matching steps in the matching process and improve the matching efficiency.

[0041] In the process of matching the device information with the preset diversion rules, the device information is first matched with the first diversion rule. If the device information completely matches the first diversion rule, the video data diversion storage of the monitoring device is realized according to the storage pool information corresponding to the first diversion rule; if the device information fails to match the first diversion rule, the device information is matched with the second diversion rule. The second diversion rule reduces the event type, and it is only necessary to determine whether the firmware version, device manufacturer and device model in the device information match the second diversion rule; if the device information fails to match the second diversion rule, the device information is matched with the third diversion rule. The third diversion rule reduces the device signal, and it is only necessary to determine whether the firmware version and device manufacturer in the device information match the third diversion rule; if the device information fails to match the third diversion rule, the device information is matched with the fourth diversion rule. At this time, it is only necessary to determine whether the firmware version in the device information matches the fourth diversion rule. The above preset diversion rules gradually simplify the matching device information content during the matching process, reduce the matching of unnecessary content, and improve the matching efficiency.

[0042] In addition, after the device information traverses the preset diversion rules, if the preset diversion rules and the device information fail to match, the flag bit of the device information is modified to the second flag bit. Through the above settings, when the device information cannot match the preset diversion rules, the flag bit of the device information is modified so that the device information no longer matches the preset diversion rules, but directly jumps to regional diversion, thereby improving the efficiency of device information diversion.

[0043] Step S104: based on the storage pool information, the video data of the monitoring device is stored in the corresponding storage pool according to the preset weight.

[0044] It should be noted that the storage pool information of step S104 includes the storage pool number where the video data of the monitoring device needs to be stored and the weight of the video data sent to the storage pool. Therefore, after determining the storage pool information corresponding to the monitoring device, the video data of the monitoring device can be stored in the corresponding storage pool according to the weight preset in the storage pool information.

[0045] In addition, the storage pool information of the video data storage of the monitoring device obtained by using the area query includes:

[0046] Step S401: Acquire the corresponding area according to the IP address of the monitoring device.

[0047] Step S402: Acquire storage pool information stored in the monitoring device according to the area code of the area.

[0048] Further, in order to better illustrate the monitoring device offloading storage method of the embodiment of the present application, the corresponding examples are given as follows:

[0049] First, the pre-set traffic diversion rules in this embodiment are shown in Table 1:

[0050] Diversion rules Firmware version Equipment Manufacturers Device Model Event Type Shunt value Rule 1 1.1.0 Hikvision Bolt 1 All day 1 Rule 2 1.2.0 Dahua Gun Machine 2 NULL 2 Rule 3 1.3.0 Uniview NULL NULL 3 Rule 4 1.4.0 NULL NULL NULL 4

[0051] Table 1 Preset diversion rules

[0052] According to the above diversion values, the storage pool information and corresponding weights of the monitoring device diversion storage are shown in Table 2:

[0053] Shunt value Storage pool ID Weight 1 10000 0.7 1 10001 0.3 2 10002 1 3 10003 0.2 3 10004 0.8 4 10005 1

[0054] Table 2 Storage pool information and weights corresponding to the diversion values

[0055] In this embodiment, the first flag bit is recorded as 0, and the second flag bit is recorded as 1.

[0056] Secondly, the device information of the first monitoring device is obtained. The firmware version of the first monitoring device is 1.3.0, the device manufacturer is Uniview, the device model is Gun Camera 1, the event type is all day, and the IP address is Guangzhou. In addition, the flag bit of the device information of the first monitoring device is 0, which is suitable for diversion storage.

[0057] Match the diversion rules shown in Table 1 with the device information of the first monitoring device, and obtain that the first monitoring device successfully matches Rule 3. The diversion value obtained according to Rule 3 is 3. Then, according to the diversion value 3, the storage pool information of the video data diversion storage of the first monitoring device is obtained, which is 20% diverted to storage pool 10003 and 80% diverted to storage pool 10004. The first monitoring device diverts the video data to the corresponding storage pool according to the above weights.

[0058] In addition, the device information of the second monitoring device is obtained. The firmware version of the second monitoring device is 1.3.0, the device manufacturer is Dahua, the device model is gun camera 1, the event type is all day, the IP address is Guangzhou, and the flag bit of the device information is 0, which is suitable for diversion storage.

[0059] The diversion rules shown in Table 1 are matched with the device information of the second monitoring device, and it is found that the second monitoring device fails to match the preset diversion rules, so the flag bit of the device information of the second monitoring device is modified to 1, and the query is jumped to the area. According to the area corresponding to the IP address is Guangzhou, the storage pool information of the second monitoring device storing video data is obtained according to the area code 440000 of Guangzhou.

[0060] This embodiment uses the flag bit of the device information to directly divide the device information of the monitoring device into two parts: diversion storage and regional storage, so as to avoid the device information that does not meet the diversion storage requirements from repeatedly traversing the preset diversion rules, and to set diversion rules based on the device information of multiple dimensions, so as to quickly obtain the storage pool information corresponding to the device information in a short time, thereby improving the efficiency of the diversion storage of the monitoring device.

[0061] It should be understood that although the Figure 1-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Figure 1-3 At least part of the steps may include multiple sub-steps or sub-stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0062] The above embodiments of the present invention describe in detail the monitoring device data storage method. The above methods disclosed in the present invention can be implemented by various devices. Therefore, the present invention also discloses a monitoring device data storage device corresponding to the above methods. Figure 4 , specific embodiments are given below to explain in detail.

[0063] The information acquisition module 501 is used to acquire device information of the monitoring device.

[0064] The flag bit judgment module 502 is used to judge whether the device information satisfies the offload storage according to the flag bit of the device information.

[0065] The rule base query module 503 is used to match the known device information with a number of preset diversion rules if the device information satisfies the diversion storage, so as to obtain the storage pool information of the video data diversion storage of the monitoring device.

[0066] The video storage module 504 is used to store the video data of the monitoring device in a corresponding storage pool according to a preset weight based on the storage pool information.

[0067] For the specific definition of the monitoring device data storage device, please refer to the definition of the monitoring device data storage method above, which will not be repeated here. Each module in the above device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor of the terminal device in the form of hardware, or can be stored in the memory of the terminal device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0068] In one embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the monitoring device data storage method according to the first aspect are implemented.

[0069] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM (erasable programmable read-only memory), a hard disk or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes for executing any of the method steps in the above method. These program codes may be read from or written into one or more computer program products, and the program codes may be compressed in an appropriate form.

[0070] In one embodiment, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned monitoring device data storage method when executing the computer program.

[0071] The computer device includes a memory, a processor and one or more computer programs, wherein the one or more computer programs can be stored in the memory and configured to be executed by one or more processors, and the one or more application programs are configured to execute the above-mentioned monitoring device data storage method.

[0072] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect the various parts of the entire computer device, and executes various functions of the computer device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor can integrate one or more combinations of a central processing unit (CPU), a reporting verifier (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor, but may be implemented separately through a communication chip.

[0073] The memory may include a random access memory (RAM) or a read-only memory (ROM). The memory may be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the terminal device during use, etc.

[0074] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A monitoring device data storage method, It is characterized in that include: Get the device information of the monitoring device; Determining whether the device information satisfies the requirement of offload storage according to the flag bit of the device information; If the device information satisfies the diversion storage, the device information is matched with a plurality of preset diversion rules to obtain storage pool information for diversion storage of the video data of the monitoring device; wherein the plurality of diversion rules are set in a manner of gradually simplifying the content of the matched device information; According to the storage pool information, the video data of the monitoring device is stored in the corresponding storage pool according to a preset weight; the value of the weight includes 1; The device information is matched with a plurality of preset diversion rules to obtain storage pool information for diversion storage of video data of the monitoring device, including: If the device information successfully matches any preset diversion rule, a diversion value corresponding to the successfully matched diversion rule is obtained; The storage pool information of the diversion storage of the monitoring device is obtained according to the diversion value.

2. The monitoring device data storage method according to claim 1, It is characterized in that The device information of the monitoring device includes firmware version, device manufacturer, device model, event type and IP address arranged in sequence.

3. The monitoring device data storage method according to claim 1, It is characterized in that The determining, according to the flag bit of the device information, whether the device information satisfies the requirement of offload storage includes: If the flag bit of the device information is the first flag bit, the device information satisfies the requirement of offload storage; If the flag bit of the device information is the second flag bit, the device information does not meet the requirement of offload storage, and regional storage is used to obtain storage pool information for storing video data of the monitoring device.

4. The monitoring device data storage method according to claim 3, It is characterized in that The storage pool information of the video data storage of the monitoring device obtained by adopting regional storage includes: Obtaining a corresponding area according to the IP address of the monitoring device; The storage pool information stored in the monitoring device is obtained according to the area code of the area.

5. The monitoring device data storage method according to claim 1, It is characterized in that The preset diversion rules include: a first diversion rule, a second diversion rule, a third diversion rule and a fourth diversion rule; The matching of the device information with a plurality of preset diversion rules includes: Matching the device information with the first diversion rule, if the device information completely matches the first diversion rule, the storage pool information corresponding to the first diversion rule is the storage pool information for diversion storage of video data of the monitoring device; If the device information fails to match the first diversion rule, the device information is matched with the second diversion rule. If the device information completely matches the second diversion rule, the storage pool information corresponding to the second diversion rule is the storage pool information of the video data diversion storage of the monitoring device; If the device information fails to match the second diversion rule, the device information is matched with the third diversion rule. If the device information completely matches the third diversion rule, the storage pool information corresponding to the third diversion rule is the storage pool information of the video data diversion storage of the monitoring device; If the device information fails to match the third diversion rule, the device information is matched with the fourth diversion rule. If the device information completely matches the fourth diversion rule, the storage pool information corresponding to the fourth diversion rule is the storage pool information for the video data diversion storage of the monitoring device.

6. The monitoring device data storage method according to claim 3, It is characterized in that Also includes: If the preset diversion rule fails to match the device information, the flag bit of the device information is modified to the second flag bit.

7. A monitoring equipment data storage device, It is characterized in that include: An information acquisition module, used to acquire device information of a monitoring device; A flag bit judgment module, used for judging whether the device information satisfies the requirement of offload storage according to the flag bit of the device information; A rule base query module is used to match the device information with a plurality of preset diversion rules if the device information satisfies the diversion storage, and obtain the storage pool information of the video data diversion storage of the monitoring device; wherein the plurality of diversion rules are set in a manner of gradually simplifying the content of the matching device information; A video storage module, used to store the video data of the monitoring device into a corresponding storage pool according to a preset weight based on the storage pool information; The rule base query module is also used to: if the device information successfully matches any preset diversion rule, obtain the diversion value corresponding to the successfully matched diversion rule; and obtain the storage pool information of the monitoring device diversion storage according to the diversion value.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the monitoring device data storage method according to any one of claims 1 to 6 are implemented.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, it performs the monitoring device data storage method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Video monitoring method and monitoring system based on Storm technology

    CN105828052A

  • Image distributed storage method and system

    CN113407750A