WO2024125288A1 - 监控设备数据存储方法、装置、存储介质及设备 - Google Patents

监控设备数据存储方法、装置、存储介质及设备 Download PDF

Info

Publication number
WO2024125288A1
WO2024125288A1 PCT/CN2023/134504 CN2023134504W WO2024125288A1 WO 2024125288 A1 WO2024125288 A1 WO 2024125288A1 CN 2023134504 W CN2023134504 W CN 2023134504W WO 2024125288 A1 WO2024125288 A1 WO 2024125288A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage
diversion
information
device information
monitoring device
Prior art date
Application number
PCT/CN2023/134504
Other languages
English (en)
French (fr)
Inventor
刘涛
王刚
马幸晖
肖锋
李洋
Original Assignee
天翼数字生活科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 天翼数字生活科技有限公司 filed Critical 天翼数字生活科技有限公司
Publication of WO2024125288A1 publication Critical patent/WO2024125288A1/zh

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • 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.
  • 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.
  • 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.
  • the data that needs to be stored by monitoring equipment uploads also increases exponentially, resulting in a single storage medium being unable to carry all the concurrency and storage traffic.
  • the data storage method of monitoring equipment has gradually changed from single-node storage to multi-node storage.
  • 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.
  • 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 the storage pool information of the video data diversion storage of the monitoring device;
  • the video data of the monitoring device is stored in the corresponding storage pool according to the preset weight.
  • the present invention provides a monitoring device data storage device, comprising:
  • 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;
  • FIG. 4 is a schematic diagram of a monitoring equipment data storage device in one embodiment of the present application.
  • the embodiment of the present application 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 includes but 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 diversion storage method of the present invention.
  • Figures 1-3 please refer to the embodiment of the monitoring device data storage method for the specific process.
  • Step S101 Obtain device information of a monitoring device.
  • the device information of the monitoring device includes the firmware version, device manufacturer, device model, event type and IP address of the monitoring device.
  • the firmware version of the monitoring device is the version number of the firmware released by the monitoring device.
  • the firmware version of the first monitoring device is recorded as 1.1.0
  • 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.
  • Step S102 judging whether the device information satisfies the offload storage according to the flag bit of the device information.
  • 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:
  • Step S201 If the flag bit of the device information is the first flag bit, the device information satisfies the offload storage.
  • 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.
  • 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.
  • 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.
  • 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:
  • Step S301 If the device information successfully matches any preset diversion rule, a diversion value corresponding to the diversion rule is obtained.
  • Step S302 Obtaining storage pool information of the monitoring device diverted storage according to the diversion value.
  • 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.
  • 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.
  • 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 content of the matched device information during the matching process, reduce the matching of unnecessary content, and improve the matching efficiency.
  • the flag bit of the device information is modified to the second flag bit.
  • 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.
  • 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.
  • the storage pool information of the video data storage of the monitoring device obtained by using the area query includes:
  • Step S401 Acquire the corresponding area according to the IP address of the monitoring device.
  • Step S402 Acquire storage pool information stored in the monitoring device according to the area code of the area.
  • Table 2 Storage pool information and weights corresponding to the diversion values
  • the first flag bit is recorded as 0, and the second flag bit is recorded as 1.
  • 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.
  • the flag bit of the device information of the first monitoring device is 0, which is suitable for diversion storage.
  • the diversion rules shown in Table 1 are matched with the device information of the first monitoring device, and it is obtained that the first monitoring device successfully matches Rule 3.
  • the diversion value obtained according to Rule 3 is 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the above-mentioned embodiment disclosed in the present invention describes in detail the monitoring equipment data storage method.
  • the above-mentioned method disclosed in the present invention can be implemented by various forms of equipment. Therefore, the present invention also discloses a monitoring equipment data storage device corresponding to the above-mentioned method.
  • a specific embodiment is given below for detailed description.
  • the information acquisition module 501 is used to acquire device information of the monitoring device.
  • 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.
  • 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.
  • 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.
  • Each module in the above device can be implemented in whole or in part by software, hardware and a combination thereof.
  • Each of 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 each of the above modules.
  • 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.
  • the computer readable storage medium may be, for example, a flash memory, an EEPROM (electrically erasable programmable read-only).
  • the computer-readable storage medium may be an electronic storage such as a memory (e.g., a program memory), an EPROM (erasable programmable read-only memory), a hard disk or a ROM.
  • the computer-readable storage medium includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium has a storage space for program codes for executing any method step of the above method. These program codes can be read from or written into one or more computer program products, and the program codes can be compressed in an appropriate form.
  • 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.
  • 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.
  • the processor may include one or more processing cores.
  • the processor uses various interfaces and lines to connect 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.
  • the processor can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA field programmable gate array
  • PROM programmable logic array
  • the processor can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a reporting verifier of buried data (Graphics Processing Unit, GPU), and a modem.
  • 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 is understandable that the above-mentioned modem may not be integrated into the processor, but may be implemented separately through a communication chip.
  • the memory can include random access memory (RAM) or read-only memory (ROM).
  • RAM random access memory
  • ROM read-only memory
  • the memory can be used to store instructions, programs, codes
  • 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.

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供一种监控设备数据存储方法、装置、存储介质及设备,所述方法包括:获取监控设备的设备信息;根据所述设备信息的标志位判断所述设备信息是否满足分流存储;若所述设备信息满足分流存储,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息;根据所述存储池信息,将所述监控设备的视频数据按照预设的权重存储至对应的存储池中。通过预设的分流规则简化分流规则查询的步骤,并且通过设置标志位避免不满足分流规则查询的监控设备进入分流规则匹配步骤,减少不必要的分流匹配步骤,提高监控设备分流存储的效率。

Description

监控设备数据存储方法、装置、存储介质及设备 技术领域
本发明涉及数据存储技术领域,具体涉及监控设备数据存储方法、装置、存储介质及设备。
背景技术
监控设备通常将多路视频按照预设的方式混合后再进行传输或存储,视频分流则是将混合在一起的多路视频按照设定的分流数分开,使各路视频在不同的窗口显示。随着监控产品规模的逐渐扩大,监控设备上传需要存储的数据也呈现几何式的增长,导致单个存储介质无法承载全部的并发量以及存储流量,由此监控设备的数据存储方式由单节点存储逐渐转变为多节点存储。
随着多节点存储的应用,监控设备上传的存储数据面临着如何分流的问题。无规则的分流方式导致存储节点的数据混乱,会给存储节点的数据存储以及查找带来巨大的压力,在海量的监控设备中通过对多种维度排列组合实现精细化的分流技术是各大监控平台必要解决的问题。
设备信息维度过多会导致对应的分流规则库包含的组合场景较多,数据量较大;在存储或查找对应的监控设备信息时需要遍历分流规则库的耗时较长,若监控设备数量较大的情况下会导致分流规则库的压力过大甚至崩溃,导致该分流方式在监控设备数量较大的情况下无法应用。
发明内容
基于此,本发明提供监控设备数据存储方法、装置、存储介质及设备,通过预设的分流规则简化分流规则查询的步骤,并且在分流规则匹配之前设置标志位,避免不满足分流规则查询的监控设备进入分流规则匹配,减少服务器的压力,提高监控设备分流存储的效率。
第一方面,本发明提供一种监控设备数据存储方法,包括:
获取监控设备的设备信息;
根据所述设备信息的标志位判断所述设备信息是否满足分流存储;
若所述设备信息满足分流存储,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息;
根据所述存储池信息,将所述监控设备的视频数据按照预设的权重存储至对应的存储池中。
第二方面,本发明提供一种监控设备数据存储装置,包括:
信息获取模块,用于获取监控设备的设备信息;
标志位判断模块,用于根据所述设备信息的标志位判断所述设备信息是否满足分流存储;
规则库查询模块,用于若所述设备信息满足分流存储,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息;
视频存储模块,用于根据所述存储池信息,将所述监控设备的视频数据按照预设的权重存储至对应的存储池中。
第三方面,本发明提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面中任一项监控设备数据存储方法的步骤。
第四方面,本发明提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时,执行第一方面中任一项监控设备数据存储方法。
采用上述技术方案的有益效果为:先针对监控设备的设备信息的标志位判断设备信息是否满足分流存储,再通过精简化的分流规则将设备信息匹配至对应的存储池,提高监控设备分流存储的效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
图1为本申请一个实施例中监控设备数据存储方法的示意图;
图2为本申请一个实施例中监控设备数据存储方法的模块示意图;
图3为本申请一个实施例中监控设备数据存储方法的流程示意图;
图4为本申请一个实施例中监控设备数据存储装置的示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。为了更详细说明本发明,下面结合附图对本发明提供的监控设备数据存储方法、装置、存储介质及设备,进行具体地描述。
随着监控设备的规模不断扩大,存储设备上传的数据呈现几何式的增长,监控设备的数据存储方式由单节点存储转变为多节点存储。随着多节点存储的应用,多节点存储的使用的无规则分流方法导致存储节点的数据混乱,会给存储节点的数据存储以及数据查询带来巨大的压力,甚至在监控设备数量较大的情况下会导致分流规则库的压力过大甚至崩溃。
本申请实施例提供了监控设备数据存储方法的具体应用场景。该应用场景包括实施例提供的终端设备,终端设备包括但不限于智能手机和计算机设备,其中计算机设备可以是台式计算机、便携式计算机、膝上型计算机、平板电脑等设备中的至少一种。用户对终端设备进行操作,终端设备执行本发明的监控设备分流存储方法,结合附图1-3,具体过程请参见监控设备数据存储方法实施例。
步骤S101:获取监控设备的设备信息。
具体地,监控设备的设备信息包括监控设备的固件版本、设备厂商、设备型号、事件类型和IP地址。
所述监控设备的固件版本为监控设备发布的固件的版本号,例如第一监控设备的固件版本记为1.1.0,第二监控设备的固件版本记为1.2.0。所述设备厂商为常见的监控设备的厂商,例如海康、大华、宇视等。所述设备型号一般根据监控设备的外型区分,例如机板型、针孔型、球机型、机枪型等。所述事件类型是指监控设备的工作模式,例如全天工作模式。所述IP地址为监控设备的IP地址,根据所述IP地址可获取监控设备的物理地址,一般精确到省份。
步骤S102:根据所述设备信息的标志位判断所述设备信息是否满足分流存储。
其中,所述设备信息设置有标志位,所述标志位用于判断监控设备的设备信息是否满足分流存储,具体为:
步骤S201:若所述设备信息的标志位为第一标志位,则所述设备信息满足分流存储。
步骤S202:若所述设备信息的标志位为第二标志位,则所述设备信息不满足分流存储,采用区域存储得到监控设备的视频数据存储的存储池信息。
所述第一标志位与第二标志位可采用T或F符号表示,也可以采用0或1的标记表示,只需达到区分第一标志位和第二标志位的效果即可。
步骤S103:若所述设备信息满足分流存储,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息。
具体地,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息,包括:
步骤S301:若所述设备信息与任意一条预设的分流规则匹配成功,得到所述分流规则对应的分流值。
步骤S302:根据所述分流值得到所述监控设备分流存储的存储池信息。
其中,预设的分流规则依次包括:第一分流规则、第二分流规则、第三分流规则和第四分流规则;第一分流规则包括依次排列的第一固件版本、第一设备厂商、第一设备型号和第一事件类型;第二分流规则包括依次排列的第二固件版本、第二设备厂商和第二设备型号;第三分流规则包括第三固件版本和第三设备厂商;第四分流规则包括第四固件版本。上述预设的分流规则可缓存于分流规则库,并根据实际的监控设备的设备信息内容进行调整。
此处进行匹配的设备信息包括依次排列的固件版本、设备厂商、设备型号和事件类型。进行匹配的设备信息中四个设备信息内容的排列顺序与预设的分流规则内容的排列顺序一致,并且通过上述内容一致的排列顺序可以减少匹配过程中不必要的匹配步骤,提高匹配的效率。
在设备信息与预设的分流规则进行匹配的过程中,首先将设备信息与第一分流规则进行匹配,若所述设备信息与第一分流规则完全匹配,则按照第一分流规则对应的存储池信息实现监控设备的视频数据分流存储;若设备信息与第一分流规则匹配失败,将设备信息与第二分流规则进行匹配,第二分流规则减少了事件类型,只需要确定设备信息中的固件版本、设备厂商以及设备型号是否与第二分流规则匹配即可;若设备信息与第二分流规则匹配失败,将设备信息与第三分流规则进行匹配,第三分流规则减少了设备信号,只需要确定设备信息中的固件版本、设备厂商是否与第三分流规则匹配即可;若设备信息与第三分流规则匹配失败,将设备信息与第四分流规则进行匹配,此时只需要确定设备信息中的固件版本是否与第四分流规则匹配即可。上述预设的分流规则在匹配过程中逐步简化匹配的设备信息内容,减少不必要内容的匹配,提高匹配效率。
另外,当设备信息遍历预设的分流规则后,若预设的分流规则和所述设备信息匹配失败,将所述设备信息的标志位修改为第二标志位。通过上述设置,在设备信息与预设的分流规则无法匹配时,修改设备信息的标志位,使设备信息不再与预设的分流规则进行匹配,而是直接跳转到区域分流,提高设备信息 分流的效率。
步骤S104:根据所述存储池信息,将所述监控设备的视频数据按照预设的权重存储至对应的存储池中。
需要说明的是,步骤S104的存储池信息包括监控设备的视频数据需要进行存储的存储池编号以及视频数据发送至该存储池的权重。由此,在确定监控设备对应的存储池信息后,可以根据存储池信息中预设的权重将监控设备的视频数据按照权重分别存储至对应的存储池中。
另外,所述采用区域查询得到监控设备的视频数据存储的存储池信息包括:
步骤S401:根据所述监控设备的IP地址获取对应的区域。
步骤S402:根据所述区域的区域代码获取监控设备存储的存储池信息。
进一步地,为了更好对本申请实施例的监控设备分流存储方法进行说明,给出相应的示例如下:
首先,本实施例中预设的分流规则如表1所示:
表1预设的分流规则
根据上述分流值,监控设备分流存储的存储池信息及对应的权重如表2所示:

表2分流值对应的存储池信息及权重
本实施例的第一标志位记为0,第二标志位记为1。
其次,获取第一监控设备的设备信息,第一监控设备的固件版本为1.3.0,设备厂商为宇视,设备型号为枪机1,事件类型为全天,IP地址为广州。并且,第一监控设备的设备信息的标志位为0,适用于分流存储。
将如表1所示的分流规则和第一监控设备的设备信息进行匹配,得到第一监控设备与规则3匹配成功,根据规则3得到的分流值为3,再根据分流值3得到第一监控设备的视频数据分流存储的存储池信息为20%分流到存储池10003,80%分流到存储池10004,第一监控设备按照上述的权重将视频数据分流至对应的存储池。
另外,获取第二监控设备的设备信息,第二监控设备的固件版本为1.3.0,设备厂商为大华,设备型号为枪机1,事件类型为全天,IP地址为广州,设备信息的标志位为0,适用于分流存储。
将如表1所示的分流规则和第二监控设备的设备信息进行匹配,得到第二监控设备与预设的分流规则匹配失败,由此将第二监控设备的设备信息的标志位修改为1,跳转至区域查询。根据IP地址对应的区域为广州,再根据广州的区域代码440000获取第二监控设备存储视频数据的存储池信息。
本实施例通过设备信息的标志位,将监控设备的设备信息直接分为分流存储以及区域存储两个部分,避免不满足分流存储的设备信息重复遍历预设分流规则,并且根据多个维度的设备信息设置分流规则,能够在短时间快速得到设备信息对应的存储池信息,提高了监控设备分流存储的效率。
应该理解的是,虽然附图1-3的流程图中各个步骤按照箭头额定指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以按其他的顺序执行。而且附图1-3中的至少一部分步骤可以包括多个子步骤或者子阶段,这 些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
上述本发明公开的实施例中详细描述了监控设备数据存储方法,对于本发明公开的上述方法可以采用多种形式的设备实现,因此本发明还公开了对应上述方法的监控设备数据存储装置,结合附图4,下面给出具体的实施例进行详细说明。
信息获取模块501,用于获取监控设备的设备信息。
标志位判断模块502,用于根据所述设备信息的标志位判断所述设备信息是否满足分流存储。
规则库查询模块503,用于若所述设备信息满足分流存储,将所熟识设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息。
视频存储模块504,用于根据所述存储池信息,将所述监控设备的视频数据按照预设的权重存储至对应的存储池中。
关于监控设备数据存储装置的具体限定可以参见上文中对于监控设备数据存储方法的限定,在此不再赘述。上述装置中的各个模块可全部或者部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或者独立于终端设备的处理器中,也可以以软件形式存储于终端设备的存储器中,以便处理器调用执行以上各个模块对应的操作。
在一个实施例中,本发明还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面监控设备数据存储方法的步骤。
所述计算机可读存储介质可以是诸如闪存、EEPROM(电可擦除可编只读 程存储器)、EPROM(可擦除可编只读程存储器)、硬盘或者ROM之类的电子存储器。可选的,计算机可读存储介质包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质具有执行上述方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入这一个或者多个计算机程序产品中,所述程序代码可以以适当形式进行压缩。
在一个实施例中,本发明提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时执行上述监控设备数据存储方法的步骤。
所述计算机设备包括存储器、处理器以及一个或多个计算机程序,其中一个或多个计算机程序可以被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行上述监控设备数据存储方法。
处理器可以包括一个或多个处理核。处理器利用各种接口和线路连接整个计算机设备内的各个部分,通过运行或执行存储在存储器内的指令、程序、代码集或指令集,以及调用存储在存储器内的数据,执行计算机设备的各种功能和处理数据。可选地,处理器可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器可集成中央处理器(Central Processing Unit,CPU)、埋点数据的上报验证器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器中,单独通过一块通信芯片进行实现。
存储器可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器可用于存储指令、程序、代码、代码 集或指令集。存储器可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储终端设备在使用中所创建的数据等。
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (10)

  1. 一种监控设备数据存储方法,其特征在于,包括:
    获取监控设备的设备信息;
    根据所述设备信息的标志位判断所述设备信息是否满足分流存储;
    若所述设备信息满足分流存储,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息;
    根据所述存储池信息,将所述监控设备的视频数据按照预设的权重存储至对应的存储池中。
  2. 如权利要求1所述的监控设备数据存储方法,其特征在于,所述将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息,包括:
    若所述设备信息与任意一条预设的分流规则匹配成功,得到匹配成功的分流规则对应的分流值;
    根据所述分流值得到所述监控设备分流存储的存储池信息。
  3. 如权利要求1所述的监控设备数据存储方法,其特征在于,所述监控设备的设备信息包括依次排列的固件版本、设备厂商、设备型号、事件类型和IP地址。
  4. 如权利要求2所述的监控设备数据存储方法,其特征在于,所述根据所述设备信息的标志位判断所述设备信息是否满足分流存储,包括:
    若所述设备信息的标志位为第一标志位,所述设备信息满足分流存储;
    若所述设备信息的标志位为第二标志位,所述设备信息不满足分流存储,采用区域存储得到监控设备的视频数据存储的存储池信息。
  5. 如权利要求4所述的监控设备数据存储方法,其特征在于,所述采用区域存储得到监控设备的视频数据存储的存储池信息包括:
    根据所述监控设备的IP地址获取对应的区域;
    根据所述区域的区域代码获取监控设备存储的存储池信息。
  6. 如权利要求1所述的监控设备数据存储方法,其特征在于,所述预设的分流规则包括:第一分流规则、第二分流规则、第三分流规则和第四分流规则;
    所述将所述设备信息与若干条预设的分流规则进行匹配,包括:
    将所述设备信息与第一分流规则进行匹配,若所述设备信息与第一分流规则完全匹配,第一分流规则对应的存储池信息为监控设备的视频数据分流存储的存储池信息;
    若所述设备信息与第一分流规则匹配失败,将所述设备信息与第二分流规则进行匹配,若所述设备信息与第二分流规则完全匹配,第二分流规则对应的存储池信息为监控设备的视频数据分流存储的存储池信息;
    若所述设备信息与第二分流规则匹配失败,将所述设备信息与第三分流规则进行匹配,若所述设备信息与第三分流规则完全匹配,第三分流规则对应的存储池信息为监控设备的视频数据分流存储的存储池信息;
    若所述设备信息与第三分流规则匹配失败,将所述设备信息与第四分流规则进行匹配,若所述设备信息与第四分流规则完全匹配,第四分流规则对应的存储池信息为监控设备的视频数据分流存储的存储池信息。
  7. 如权利要求4所述的监控设备数据存储方法,其特征在于,还包括:
    若预设的分流规则和所述设备信息匹配失败,将所述设备信息的标志位修改为第二标志位。
  8. 一种监控设备数据存储装置,其特征在于,包括:
    信息获取模块,用于获取监控设备的设备信息;
    标志位判断模块,用于根据所述设备信息的标志位判断所述设备信息是否满足分流存储;
    规则库查询模块,用于若所述设备信息满足分流存储,将所述设备信息与若干条预设的分流规则进行匹配,得到监控设备的视频数据分流存储的存储池信息;
    视频存储模块,用于根据所述存储池信息,将所述监控设备的视频数据按 照预设的权重存储至对应的存储池中。
  9. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7中任一项监控设备数据存储方法的步骤。
  10. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时,执行权利要求1-7中任一项监控设备数据存储方法。
PCT/CN2023/134504 2022-12-12 2023-11-27 监控设备数据存储方法、装置、存储介质及设备 WO2024125288A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211591272.4 2022-12-12
CN202211591272.4A CN116016822A (zh) 2022-12-12 2022-12-12 监控设备数据存储方法、装置、存储介质及设备

Publications (1)

Publication Number Publication Date
WO2024125288A1 true WO2024125288A1 (zh) 2024-06-20

Family

ID=86028932

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/134504 WO2024125288A1 (zh) 2022-12-12 2023-11-27 监控设备数据存储方法、装置、存储介质及设备

Country Status (2)

Country Link
CN (1) CN116016822A (zh)
WO (1) WO2024125288A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016822A (zh) * 2022-12-12 2023-04-25 天翼数字生活科技有限公司 监控设备数据存储方法、装置、存储介质及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631740A (zh) * 2019-09-24 2021-04-09 中兴通讯股份有限公司 一种事件处理方法、装置、终端及计算机可读存储介质
CN112799584A (zh) * 2019-11-13 2021-05-14 杭州海康威视数字技术股份有限公司 一种数据存储方法及装置
CN113791735A (zh) * 2021-09-10 2021-12-14 深圳市唯特视科技有限公司 视频数据存储方法、装置、计算机设备及存储介质
CN114612202A (zh) * 2022-02-23 2022-06-10 北京沃东天骏信息技术有限公司 数据处理方法、装置、设备、可读存储介质及产品
CN116016822A (zh) * 2022-12-12 2023-04-25 天翼数字生活科技有限公司 监控设备数据存储方法、装置、存储介质及设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631740A (zh) * 2019-09-24 2021-04-09 中兴通讯股份有限公司 一种事件处理方法、装置、终端及计算机可读存储介质
CN112799584A (zh) * 2019-11-13 2021-05-14 杭州海康威视数字技术股份有限公司 一种数据存储方法及装置
CN113791735A (zh) * 2021-09-10 2021-12-14 深圳市唯特视科技有限公司 视频数据存储方法、装置、计算机设备及存储介质
CN114612202A (zh) * 2022-02-23 2022-06-10 北京沃东天骏信息技术有限公司 数据处理方法、装置、设备、可读存储介质及产品
CN116016822A (zh) * 2022-12-12 2023-04-25 天翼数字生活科技有限公司 监控设备数据存储方法、装置、存储介质及设备

Also Published As

Publication number Publication date
CN116016822A (zh) 2023-04-25

Similar Documents

Publication Publication Date Title
WO2024125288A1 (zh) 监控设备数据存储方法、装置、存储介质及设备
CN109309712B (zh) 基于接口异步调用的数据传输方法、服务器及存储介质
CN110704202B (zh) 多媒体录制数据共享方法及终端设备
PH12016500339B1 (en) Ascertaining command completion in flash memories
WO2018149137A1 (zh) 无线保真Wi-Fi连接方法及相关产品
US20170201566A1 (en) File downloading method, apparatus, and terminal device
US10552068B2 (en) Access method and device for random access memories, control chip and storage medium
US20170237816A1 (en) Method and electronic device for identifying device
CN110191045A (zh) 一种信息分享方法、装置、终端及可读存储介质
CN114169536A (zh) 数据管控方法及相关装置
CN110795172B (zh) 前台进程控制方法、装置、电子设备以及存储介质
CN108170571B (zh) 一种芯片追踪调试装置及方法
CN112650614A (zh) 调用链监控方法、装置、电子设备及存储介质
CN115454576B (zh) 一种虚拟机进程管理方法、系统及电子设备
CN107168648B (zh) 文件存储方法、装置及终端
CN112732568B (zh) 一种系统日志获取方法、装置、存储介质及终端
CN112799791A (zh) 分布式锁的调用方法、装置、电子设备和存储介质
CN106599079B (zh) 一种数据处理方法和相应移动终端
CN112509608B (zh) 一种usb设备随通道录音的方法、装置及存储介质
KR102466551B1 (ko) 데이터 기록 방법, 장치 및 전자 기기
CN116363260B (zh) 图像生成方法、装置及电子设备
WO2021237431A1 (zh) 数据处理方法、装置、处理设备以及数据存储系统
CN107341076B (zh) 通信处理器的故障辅助定位方法、装置及终端
CN111414162B (zh) 一种数据处理方法、装置及其设备
CN106557705A (zh) 一种数据访问方法和装置