Monitoring equipment access method and system, computer equipment and storage medium
By combining an in-memory database and a private configuration pool in the monitoring device access method, the problems of low compatibility and efficiency in monitoring device access are solved, achieving efficient and compatible monitoring device access and improving access success rate and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-30
- Publication Date
- 2026-04-24
AI Technical Summary
Existing technologies suffer from poor compatibility and low efficiency in monitoring device access, making it difficult to achieve efficient, millisecond-level access for large-scale devices. Furthermore, existing solutions have poor multi-protocol compatibility and cannot flexibly adapt to the configurations of monitoring devices from different manufacturers.
By acquiring the access request from the monitoring device, the configuration data is matched using the in-memory database. If no match is found, a private configuration template is retrieved from the preset private configuration pool and combined with the public configuration to form the configuration data of the target access protocol, which is then sent to the monitoring device to enable access.
It improves the compatibility and efficiency of monitoring device access, reduces the amount of configuration calculations and complexity, and increases the success rate and efficiency of device access.
Smart Images

Figure CN121924237A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data communication, and in particular to methods, systems, computer equipment, and storage media for accessing monitoring equipment. Background Technology
[0002] With the rapid development of IT technology, more and more services are carried on IT networks, leading to larger and more complex networks with increasingly complex device configurations, placing higher demands on network administrators. This is particularly true in the security field, where hundreds or even thousands of surveillance devices are deployed in batches. The resulting repetitive configurations and heavy workloads have long lacked optimal solutions. Currently, security surveillance device deployment typically relies on manual configuration of network parameters for each device individually. However, this method is inefficient, costly, and struggles to handle large-scale concurrent device access. Furthermore, existing technologies suffer from poor multi-protocol compatibility, limited adaptability to fixed rule bases, and an inability to flexibly handle simultaneous configuration of surveillance devices from different vendors. Success rates are unstable, and achieving millisecond-level access accuracy is difficult when configuring large-scale surveillance systems.
[0003] There is currently no effective solution to the problems of poor compatibility and low efficiency of accessing different monitoring devices in related technologies. Summary of the Invention
[0004] This embodiment provides a monitoring device access method, system, computer equipment, and storage medium to solve the problems of poor compatibility and low efficiency of accessing different monitoring devices in related technologies.
[0005] Firstly, this embodiment provides a method for accessing a monitoring device, including:
[0006] Obtain the access request from the monitoring device to be connected to the target security platform;
[0007] The access request is matched with the configuration data of the security field access protocol preset in the memory database;
[0008] If no configuration data for a security access protocol matching the access request exists in the memory database, a target private configuration template is obtained from a preset private configuration pool according to the access request; the target private configuration template is combined with the public configuration corresponding to the target private configuration template to form the configuration data for the target access protocol.
[0009] The preset private configuration pool and the public configuration are obtained by pre-layering the configuration data of each security field access protocol into public and private parts. Each private configuration pool is composed of each private configuration template, and each private configuration template includes the basic device information corresponding to each security field access protocol. Each public configuration includes the basic parameter information of each security field access protocol.
[0010] The configuration data of the target access protocol is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the target access protocol.
[0011] In some embodiments, obtaining the access request from the monitoring device to be accessed to the target security platform includes:
[0012] Obtain the beacon packet of the monitoring device to be connected;
[0013] Generate the index value of the monitoring device to be connected based on the beacon packet;
[0014] Based on the index value, an access request is generated for the monitoring device to be connected to the target security platform.
[0015] In some embodiments, obtaining the beacon packet of the monitoring device to be accessed includes:
[0016] A non-blocking I / O model is used to acquire beacon packets from the monitoring device to be connected.
[0017] In some embodiments, obtaining the target private configuration template from a preset private configuration pool according to the access request includes:
[0018] Based on the access request, a binary template is used to instantiate and configure the memory of the first-ranked private configuration template in the private configuration pool to obtain the target private configuration template.
[0019] In some embodiments, if configuration data of an access protocol matching the access request exists in the memory database, the method further includes:
[0020] The configuration data of the access protocol that matches the access request is directly obtained from the memory database, and the configuration data of the access protocol that matches the access request is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the access protocol.
[0021] In some embodiments, the process of the monitoring device to be accessed accessing the target security platform according to the configuration data of the target access protocol further includes:
[0022] Determine whether the monitoring device to be connected has successfully connected to the target security platform;
[0023] If so, the configuration data of the target access protocol is loaded into the memory database;
[0024] Otherwise, the following loop process is executed until the monitoring device to be connected successfully connects to the target security platform:
[0025] Based on the order of the private configuration templates in the private configuration pool, match the next private configuration template based on the current target private configuration template to generate a new target private configuration template;
[0026] The new target private configuration template and the corresponding public configuration are combined to form the configuration data of the new target access protocol. The configuration data of the new target access protocol is then sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the new target access protocol.
[0027] In some embodiments, after the monitoring device to be connected successfully connects to the target security platform, the method further includes:
[0028] The weight value of each private configuration template is calculated based on the historical number of successful accesses for each private configuration template in the private configuration pool.
[0029] Based on the weight values of each private configuration template, the private configuration templates in the private configuration pool are reordered from largest to smallest according to the weight values.
[0030] Secondly, this embodiment provides a monitoring device access system, which includes: a message processing center, a memory database, a public configuration module, a private configuration module, a binary template calculation module, a generation output module, and a result weight calculation module. The message processing center is used to obtain access requests from monitoring devices to be accessed to the target security platform.
[0031] The memory database is used to match the access request with the configuration data of the security field access protocol preset in the memory database; if the memory database contains configuration data of the access protocol that matches the access request, the configuration data of the access protocol that matches the access request is directly obtained from the memory database, and the configuration data of the access protocol that matches the access request is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the access protocol;
[0032] The public configuration module is used to store basic parameter information of access protocols in various security fields;
[0033] The private configuration module is used to obtain a target private configuration template from a preset private configuration pool according to the access request when there is no configuration data of a security field access protocol that matches the access request in the memory database.
[0034] The binary template calculation module is used to instantiate and configure the private configuration template in the private configuration pool according to the access request, so as to obtain the target private configuration template.
[0035] The output generation module is used to combine the target private configuration template with the corresponding public configuration to form the configuration data of the target access protocol. The preset private configuration pool and the public configuration are obtained by pre-layering the configuration data of each security domain access protocol into public and private parts. Each private configuration pool consists of a private configuration template, which includes basic device information corresponding to each security domain access protocol. Each public configuration includes basic parameter information of each security domain access protocol. The module then sends the configuration data of the target access protocol to the monitoring device to be connected, enabling the monitoring device to connect to the target security platform according to the configuration data of the target access protocol.
[0036] The result weight calculation module is used to calculate the weight value of each private configuration template based on the historical number of successful accesses of each private configuration template in the private configuration pool; and to reorder the private configuration templates in the private configuration pool from largest to smallest according to the weight values of each private configuration template.
[0037] Thirdly, this embodiment provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect above.
[0038] Fourthly, this embodiment provides a storage medium storing a computer program that, when executed by a processor, implements the monitoring device access method described in the first aspect above.
[0039] Compared with related technologies, the monitoring device access method provided in this embodiment obtains an access request from the monitoring device to be accessed to the target security platform; matches the access request with the configuration data of the security domain access protocol preset in the memory database; if no configuration data of the security domain access protocol matching the access request exists in the memory database, a target private configuration template is obtained from a preset private configuration pool according to the access request; the target private configuration template is combined with the public configuration corresponding to the target private configuration template to form the configuration data of the target access protocol; wherein, the preset private configuration pool and the public configuration are obtained by pre-layering the configuration data of each security domain access protocol into public and private parts, each private configuration pool is composed of each private configuration template, each private configuration template includes the basic device information corresponding to each security domain access protocol, and each public configuration includes the basic parameter information of each security domain access protocol; the configuration data of the target access protocol is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the target access protocol, thereby improving the compatibility and access efficiency of different monitoring devices.
[0040] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0041] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0042] Figure 1 This is a hardware structure block diagram of the terminal of the monitoring device access method in this embodiment.
[0043] Figure 2 This is a flowchart of the monitoring device access method in this embodiment.
[0044] Figure 3 This is a schematic diagram of the protocol layering structure of the monitoring device access method in this embodiment.
[0045] Figure 4 This is a flowchart of the monitoring device access method for the target security platform in this embodiment.
[0046] Figure 5 This is a flowchart of another monitoring device access method in this embodiment.
[0047] Figure 6 This is a structural block diagram of the monitoring equipment access system in this embodiment. Detailed Implementation
[0048] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0049] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these” used in this application do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to these processes, methods, products, or devices. Words such as “connected,” “linked,” and “coupled” used in this application are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. Normally, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," "third," etc., used in this application are merely to distinguish similar objects and do not represent a specific order of objects.
[0050] The method embodiments provided in this example can be executed on a terminal, computer, or similar computing device. For example, it can run on a terminal. Figure 1 This is a hardware structure block diagram of the terminal for the monitoring device access method in this embodiment. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 and a memory 104 for storing data are also included. The processor 102 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown are illustrated.
[0051] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the monitoring device access method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0052] The transmission device 106 is used to receive or send data via a network. This network includes a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 can be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0053] This embodiment provides a method for connecting monitoring devices. Figure 2 This is a flowchart of the monitoring device access method in this embodiment, as follows: Figure 2 As shown, the process includes the following steps:
[0054] Step S201: Obtain the access request from the monitoring device to be connected to the target security platform.
[0055] Specifically, this embodiment focuses on intelligent device management for large-scale security scenarios, primarily using a configuration server to enable the access of multi-protocol monitoring devices. When a monitoring device needs to be deployed on a corresponding platform, the message processing center in the configuration server receives the access request from the monitoring device and processes it, enabling the monitoring device to match the configuration data of the corresponding security domain access protocol based on the access request.
[0056] Step S202: Match the access request with the configuration data of the security field access protocol preset in the memory database.
[0057] Specifically, the configuration server also includes an in-memory database pre-configured with various security access protocols, including but not limited to ONVIF, GB28181, and Real-Time Streaming Protocol (RTSP). The information processing center first matches received access requests against the configuration data of these security access protocols in the in-memory database. If a match is found, the matching protocol configuration data is directly retrieved from the database and sent to the monitoring device to be connected, allowing it to directly access the target security platform. If no match is found in the database, it indicates that the monitoring device cannot directly obtain the corresponding protocol configuration data, suggesting incompatibility. To address this issue, the configuration server in this embodiment also includes an access protocol configuration module. This module contains multiple configuration templates for different protocols. Therefore, if an access request that cannot be matched with the corresponding protocol in the memory database is processed by the access protocol configuration module, the module configures the access protocol configuration data that matches the access request.
[0058] Step S203: If there is no configuration data for a security access protocol that matches the access request in the memory database, obtain the target private configuration template from the preset private configuration pool according to the access request; combine the target private configuration template with the public configuration corresponding to the target private configuration template to form the configuration data of the target access protocol.
[0059] The preset private configuration pool and public configuration are obtained by pre-layering the configuration data of access protocols in various security fields into public and private parts. Each private configuration pool consists of a private configuration template, which includes the basic device information corresponding to the access protocol in each security field. Each public configuration includes the basic parameter information of the access protocol in each security field.
[0060] Specifically, before the monitoring devices to be connected are connected, the configuration data of each access protocol is pre-processed in a layered manner on the configuration server. A dedicated access protocol library for the security field is established through the protocol configuration module. The access protocols include, but are not limited to, ONVIF, GB28181, and RTSP. Then, based on the common and private parts of the configuration data of each access protocol, the configuration data of each access protocol is decoupled into two parts: public configuration and a private configuration pool. That is, the configuration data of each access protocol is divided into public configuration and a private configuration pool. In each access protocol, the common part consists of parameter information shared by the same access protocol, which is layered into a common configuration. The public configuration mainly consists of the basic parameter information of the access protocol, such as authentication rules and data encapsulation formats. The private part consists of specific parameter information for each private template, which is layered into a private configuration pool. The private configuration pool is further configured into various private configuration templates based on the basic information of the monitoring devices, including but not limited to the monitoring device model, firmware version, and MAC address. For example... Figure 3 This is a schematic diagram of the protocol layering structure of the monitoring device access method in this embodiment, as shown below. Figure 3 As shown, the protocol layering structure includes international protocols, RTSP protocols, third-party access protocols 1...... third-party access protocols n. For example, the international protocols are layered into public configurations and private configuration pools. The public configurations store the basic parameter information of the international protocols, and these configurations can be directly reused in a single-column mode. In the private configuration pool, multiple private configuration templates are set according to the basic information of different monitoring devices: private configuration template 1, private configuration template 2, private configuration template 3... private configuration template n. The configuration data of other access protocols are also layered in this manner, resulting in... Figure 3 The protocol layering structure is shown.
[0061] Based on protocol layering, when the memory database lacks configuration data for a security access protocol matching the access request, a corresponding private configuration pool is matched according to the device's basic information in the access request. This private configuration pool contains multiple pre-set private configuration templates. Following a pre-arranged order, the first private configuration template in the pool is retrieved and configured according to the access request information to obtain the target private configuration template. This template is then directly combined with the corresponding public configuration of the private configuration pool to obtain the configuration data for the target access protocol. In this process, since the public portion of the same protocol can be shared by all its corresponding private configuration pools, protocol layering allows for configuration of the access request and private configuration template, followed by direct combination with the corresponding public configuration to obtain the target access protocol's configuration data. This eliminates the need for public configuration, reduces computational load and manual intervention, and improves device access efficiency.
[0062] Step S204: Send the configuration data of the target access protocol to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the target access protocol.
[0063] Specifically, after obtaining the configuration data of the target access protocol, the configuration data of the target access protocol is sent to the monitoring device to be connected through the output module in the configuration server. After the monitoring device to be connected parses the configuration data of the target access protocol, it initializes according to the target access protocol specification, and then establishes a channel with the target security platform to complete the network access of the monitoring device.
[0064] Through steps S201 to S204 above, an access request from the monitoring device to be connected to the target security platform is obtained; the access request is matched with the configuration data of the security domain access protocol preset in the memory database; if the configuration data of the security domain access protocol that matches the access request does not exist in the memory database, a target private configuration template is obtained from the preset private configuration pool according to the access request; the target private configuration template is combined with the public configuration corresponding to the target private configuration template to form the configuration data of the target access protocol; wherein, the preset private configuration pool and public configuration are obtained by pre-layering the configuration data of each security domain access protocol into public and private parts, each private configuration pool is composed of each private configuration template, each private configuration template includes the basic device information corresponding to each security domain access protocol, and each public configuration includes the basic parameter information of each security domain access protocol; the configuration data of the target access protocol is sent to the monitoring device to be connected so that the monitoring device to be connected can access the target security platform according to the configuration data of the target access protocol. Compared to existing technologies that manually configure network parameters for each device individually, this embodiment pre-stratifies the configuration data of access protocols in various security fields into public and private configuration pools. It is not limited to a single protocol. When the configuration data of the corresponding access protocol is not matched in the pre-set memory database, it can directly perform layered dynamic configuration based on the access request of the monitoring device to be connected and the private configuration template in the private configuration pool. This achieves compatibility between devices from different manufacturers. Then, it directly combines the public configuration to obtain the configuration data of the target access protocol. During the configuration process, only the configuration of the private configuration template is required, which reduces the amount of configuration calculation and complexity and improves the device access efficiency.
[0065] In some embodiments, obtaining the access request from the monitoring device to be accessed to the target security platform includes:
[0066] Obtain the beacon packet of the monitoring device to be connected; generate the index value of the monitoring device to be connected based on the beacon packet; generate the access request of the monitoring device to be connected to the target security platform based on the index value.
[0067] Specifically, this embodiment introduces UDP beacon packets to detect monitoring devices to be connected. When a monitoring device (such as a network camera, NVR, or smart gateway) is powered on and connected to the network, it actively sends a UDP broadcast packet to all devices within the local area network. This packet contains structured data and key device information, designed to allow other devices (such as management platforms and client software) to automatically discover it. The UDP beacon packet contains three parts: a fixed header, basic device information, and a protocol type. The fixed header identifies the access protocol version. The basic device information includes: device model (e.g., IPC-8MP-IR50, 8-megapixel infrared camera); firmware version (e.g., v2.3.1.20250911); MAC address (e.g., 00:1B:44:11:3A:B7, used to identify the device); and protocol type (e.g., ONVIF, GB28181, RTSP, etc.). The introduction of UDP beacon packets enables timely detection of monitoring devices to be connected.
[0068] Configure the message data processing center in the server to generate a unique index value for the received beacon packets, and then generate an access request for the monitoring device to access the target security platform based on the index value.
[0069] In another embodiment, obtaining the beacon packet of the monitoring device to be accessed includes: obtaining the beacon packet of the monitoring device to be accessed using a non-blocking I / O model.
[0070] Specifically, in the process of obtaining beacon packets from the monitoring devices to be connected, this embodiment uses a non-blocking I / O model. Non-blocking I / O is an I / O mechanism that allows threads to return immediately before data is ready, rather than waiting. It completely separates the tasks of "waiting for data" from "processing data," replacing blocking with polling / event notifications. This allows a single thread to concurrently handle tens of thousands of connections. For example, a single thread using a non-blocking I / O model can handle broadcasts from 500+ devices, thus enabling the handling of large-scale, high-concurrency scenarios.
[0071] In some embodiments, obtaining a target private configuration template from a preset private configuration pool according to an access request includes:
[0072] Based on the access request, a binary template is used to instantiate and configure the memory of the first-ranked private configuration template in the private configuration pool to obtain the target private configuration template.
[0073] Specifically, in process S203 above, when configuring a private configuration template for the access request, this embodiment uses a binary template approach. Based on the order of the private configuration templates in the private configuration pool, the first private configuration template in the pool is instantiated and configured in memory. Then, according to the actual parameters of the monitoring device to be accessed, binary values at each offset position are filled into the memory of the private configuration template, generating a block of raw private configuration data that can be directly burned / deployed—the target private configuration template—thus achieving the instantiation of the binary private configuration template. By using a binary template approach, that is, directly storing raw data in a compact form such as bit fields, bytes, little-endian integers, and floating-point numbers, compared to JSON / XML text, data conversion time is reduced, the generation efficiency of the target private configuration template is improved, and the access efficiency of the monitoring device is further enhanced.
[0074] In another embodiment, during the process of the monitoring device to be accessed accessing the target security platform according to the configuration data of the target access protocol, the following steps are also included:
[0075] Determine whether the monitoring device to be connected has successfully connected to the target security platform; if yes, load the configuration data of the target access protocol into the memory database; otherwise, execute the following loop process until the monitoring device to be connected successfully connects to the target security platform:
[0076] Based on the order of the private configuration templates in the private configuration pool, match the next private configuration template based on the current target private configuration template to generate a new target private configuration template;
[0077] The new target private configuration template and its corresponding public configuration are combined to form the configuration data of the new target access protocol. This new target access protocol configuration data is then sent to the monitoring device to be connected, so that the monitoring device can access the target security platform according to the new target access protocol configuration data.
[0078] Specifically, after obtaining the configuration data for the target access protocol, the configuration server sends the configuration data to the monitoring devices to be connected. The monitoring devices then connect to the target security platform based on this configuration data. The configuration server's message data processing center receives the connection results returned by the security platform in real time. After receiving the results, the center verifies the legitimacy of the monitoring devices to be connected using a memory database (Redis). If the connection is successful, meaning the target security platform has successfully connected, the center loads the index value of the monitoring device and the configuration data of the target access protocol into the memory database (Redis). This allows the same monitoring devices to be directly matched with the access protocol configuration data in the memory database when they need to connect, thereby improving the efficiency of device connection. If the connection fails, i.e., when the monitoring device fails to connect to the target security platform according to the configuration data of the target access protocol, the next private configuration module of the current target private configuration template is taken according to the arrangement order of the private configuration templates in the private configuration pool and reconfigured to obtain a new target private configuration template. The new target private configuration template and the corresponding public configuration are combined in the manner described in step S203 above to form the configuration data of the new target access protocol. The configuration data of the new target access protocol is then sent to the monitoring device to be connected. The monitoring device to be connected reconnects to the target security platform according to the configuration data of the new target access protocol. This process is repeated until the monitoring device to be connected successfully connects to the target security platform.
[0079] Figure 4 This is a flowchart illustrating the monitoring device access method for the target security platform in this embodiment. Figure 4 As shown, the cyclical process includes the following steps:
[0080] Step S401: Based on the result of accessing the target security platform with the configuration data of the current target access protocol, determine whether the monitoring device to be accessed has successfully accessed the target security platform. If yes, proceed to step S405; otherwise, proceed to step S402.
[0081] Step S402: Based on the arrangement order of each private configuration template in the private configuration pool, match the next private configuration template based on the current target private configuration template to generate a new target private configuration template;
[0082] Step S403: Combine the new target private configuration template and the public configuration corresponding to the new target private configuration template to form the configuration data of the new current target access protocol, and send the configuration data of the new current target access protocol to the monitoring device to be accessed.
[0083] Step S404: The monitoring device to be connected accesses the target security platform according to the configuration data of the new current target access protocol, obtains a new access result, and returns to execute step S401 based on the new access result.
[0084] Step S405: Load the configuration data of the current target access protocol into the memory database.
[0085] Through steps S401 to S405 above, the compatibility of different monitoring devices accessing the security platform is improved by dynamically configuring private configuration templates.
[0086] In some embodiments, after the monitoring device to be connected successfully connects to the target security platform, the following steps are also included:
[0087] Calculate the weight value of each private configuration template based on the historical number of successful accesses in the private configuration pool; then, reorder the private configuration templates in the private configuration pool from largest to smallest according to their weight values.
[0088] Specifically, in the private configuration pool, there are private configuration templates pre-set with a configuration priority order. Each time a monitoring device successfully connects to the security platform according to the configuration data of the configured access protocol, the weight value of each private configuration template in the current private configuration pool is calculated based on the number of times each private configuration template has been successfully configured. The formula for calculating the weight value W_i of each private configuration template is as follows:
[0089] ;
[0090] Where S_i represents the number of times the private configuration template has been successfully configured, and ∑H represents the total number of times all private configuration templates in the private configuration pool have been successfully configured. This is a time-sensitive factor.
[0091] Based on the calculated weight values of each private configuration template, the private configuration templates in the private configuration pool are reordered from largest to smallest weight value, resulting in a newly sorted sequence of private configuration templates. By calculating the weight values of each private configuration template in the private configuration pool and reordering them, templates with higher configuration success probabilities are placed at the top. This dynamic adjustment of the private configuration templates improves the success rate of configuring target access protocol data into the security platform according to the latest private configuration template order after the next monitoring device connection, thus increasing the efficiency of monitoring device access.
[0092] This embodiment also provides a method for connecting monitoring devices. Figure 5 This is a flowchart of another monitoring device access method in this embodiment, such as... Figure 5As shown, the process includes the following steps:
[0093] Step S501: Use a non-blocking I / O model to obtain the beacon packet of the monitoring device to be connected; generate the index value of the monitoring device to be connected based on the beacon packet; generate the access request of the monitoring device to be connected to the target security platform based on the index value.
[0094] Step S502: Determine whether there is configuration data for a security access protocol that matches the access request in the memory database. If yes, proceed to step S511; otherwise, proceed to step S503.
[0095] Step S503: Based on the access request, use a binary template to instantiate and configure the memory of the first-ranked private configuration template in the private configuration pool to obtain the target private configuration template.
[0096] Step S504: Combine the target private configuration template with the public configuration corresponding to the target private configuration template to obtain the configuration data of the current target access protocol;
[0097] Step S505: Send the configuration data of the current target access protocol to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the current target access protocol;
[0098] Step S506: Determine whether the monitoring device to be connected has successfully connected to the target security platform. If yes, proceed to step S510; otherwise, proceed to step S507.
[0099] Step S507: Based on the arrangement order of each private configuration template in the private configuration pool, match the next private configuration template based on the current target private configuration template to generate a new target private configuration template;
[0100] Step S508: Combine the new target private configuration template and the public configuration corresponding to the new target private configuration template to form the configuration data of the new current target access protocol, and send the configuration data of the new current target access protocol to the monitoring device to be accessed.
[0101] Step S509: The monitoring device to be accessed accesses the target security platform according to the configuration data of the new current target access protocol, obtains a new access result, and returns to execute step S506 based on the new access result;
[0102] Step S510: Load the configuration data of the current target access protocol into the memory database, and calculate the weight value of each private configuration template according to the historical access success count of each private configuration template in the private configuration pool; according to the weight value of each private configuration template, reorder each private configuration template in the private configuration pool from largest to smallest weight value.
[0103] Step S511: Directly obtain the configuration data of the access protocol that matches the access request from the memory database, and send the configuration data of the access protocol that matches the access request to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the access protocol.
[0104] Step S512: Determine whether the monitoring device to be connected has successfully connected to the target security platform. If yes, proceed to step S513; otherwise, proceed to step S503.
[0105] Step S513 indicates that the monitoring device has successfully connected to the security platform.
[0106] Through steps S501 to S513, a beacon packet from the monitoring device is obtained using a non-blocking I / O model via a pre-built layered protocol. A unique index value for the monitoring device is generated based on the beacon packet. An access request is then generated based on the index value and sent to the in-memory database. This request is first compared with the pre-stored access protocol configuration data in the database to determine if configuration data for the access protocol corresponding to the request exists. If so, the target access protocol configuration data is directly obtained and returned to the monitoring device. Otherwise, the access request is matched against the corresponding private configuration template in the private configuration pool. Configuration is performed sequentially using binary templates to obtain the target private configuration template. This target private configuration template is then combined with the corresponding public configuration to obtain the target access protocol configuration data, which is returned to the device. During the configuration process, only the private configuration template needs to be configured to obtain the target access protocol configuration data. Furthermore, the use of binary templates during the matching process improves both the compatibility and efficiency of the monitoring device's access. Additionally, the use of a non-blocking I / O model during the acquisition process speeds up the acquisition of access requests, further enhancing the monitoring device's access efficiency.
[0107] This embodiment also provides a monitoring device access system, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. The terms "module," "unit," "subunit," etc., used below refer to combinations of software and / or hardware that perform a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0108] Figure 6 This is a structural block diagram of the monitoring equipment access system in this embodiment, as shown below. Figure 6As shown, the entire system is a configuration server, which includes: a message processing center 61, an in-memory database 62, a public configuration module 63, a private configuration module 64, a binary template calculation module 65, a generation output module 66, and a result weight calculation module 67. The message processing center 61 is used to obtain access requests from monitoring devices to be connected to the target security platform.
[0109] The in-memory database 62 is used to match access requests with the configuration data of the security field access protocols preset in the in-memory database. If the configuration data of the access protocol that matches the access request exists in the in-memory database, the configuration data of the access protocol that matches the access request is directly obtained from the in-memory database and sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the access protocol.
[0110] Public configuration module 63 is used to store basic parameter information of access protocols in various security fields;
[0111] Private configuration module 64 is used to obtain the target private configuration template from the preset private configuration pool according to the access request when there is no configuration data of the security field access protocol that matches the access request in the memory database.
[0112] The binary template calculation module 65 is used to instantiate the private configuration template in the private configuration pool into memory according to the access request, so as to obtain the target private configuration template.
[0113] The output generation module 66 is used to combine the target private configuration template with the corresponding public configuration to form the configuration data of the target access protocol. The preset private configuration pool and public configuration are obtained by pre-layering the configuration data of various security field access protocols into public and private parts. Each private configuration pool consists of a private configuration template, which includes basic device information corresponding to each security field access protocol. Each public configuration includes basic parameter information of each security field access protocol. The module then sends the configuration data of the target access protocol to the monitoring device to be connected, enabling the monitoring device to access the target security platform based on the configuration data of the target access protocol.
[0114] The result weight calculation module 67 is used to calculate the weight value of each private configuration template based on the historical number of successful accesses of each private configuration template in the private configuration pool; and to re-sort the private configuration templates in the private configuration pool from largest to smallest according to their weight values.
[0115] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.
[0116] This embodiment also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any of the above method embodiments.
[0117] Furthermore, in conjunction with the monitoring device access methods provided in the above embodiments, this embodiment can also provide a storage medium for implementation. This storage medium stores a computer program; when executed by a processor, the computer program implements any of the monitoring device access methods described in the above embodiments.
[0118] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.
[0119] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0120] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.
[0121] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0122] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0123] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.
Claims
1. A method for connecting monitoring equipment, characterized in that, include: Obtain the access request from the monitoring device to be connected to the target security platform; The access request is matched with the configuration data of the security field access protocol preset in the memory database; If no configuration data for a security access protocol matching the access request exists in the memory database, a target private configuration template is obtained from a preset private configuration pool according to the access request; the target private configuration template is combined with the public configuration corresponding to the target private configuration template to form the configuration data for the target access protocol. The preset private configuration pool and the public configuration are obtained by pre-layering the configuration data of each security field access protocol into public and private parts. Each private configuration pool is composed of each private configuration template, and each private configuration template includes the basic device information corresponding to each security field access protocol. Each public configuration includes the basic parameter information of each security field access protocol. The configuration data of the target access protocol is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the target access protocol.
2. The monitoring equipment access method according to claim 1, characterized in that, The process of obtaining the access request from the monitoring device to be connected to the target security platform includes: Obtain the beacon packet of the monitoring device to be connected; Generate the index value of the monitoring device to be connected based on the beacon packet; Based on the index value, an access request is generated for the monitoring device to be connected to the target security platform.
3. The monitoring equipment access method according to claim 2, characterized in that, The acquisition of the beacon packet of the monitoring device to be connected includes: A non-blocking I / O model is used to acquire beacon packets from the monitoring device to be connected.
4. The monitoring equipment access method according to claim 1, characterized in that, The step of obtaining the target private configuration template from the preset private configuration pool according to the access request includes: Based on the access request, a binary template is used to instantiate and configure the memory of the first-ranked private configuration template in the private configuration pool to obtain the target private configuration template.
5. The monitoring equipment access method according to claim 1, characterized in that, If the memory database contains configuration data for an access protocol that matches the access request, the method further includes: The configuration data of the access protocol that matches the access request is directly obtained from the memory database, and the configuration data of the access protocol that matches the access request is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the access protocol.
6. The monitoring device access method according to claim 1 or claim 4, characterized in that, During the process of the monitoring device to be connected accessing the target security platform according to the configuration data of the target access protocol, the method further includes: Determine whether the monitoring device to be connected has successfully connected to the target security platform; If so, the configuration data of the target access protocol is loaded into the memory database; Otherwise, the following loop process is executed until the monitoring device to be connected successfully connects to the target security platform: Based on the order of the private configuration templates in the private configuration pool, match the next private configuration template based on the current target private configuration template to generate a new target private configuration template; The new target private configuration template and the corresponding public configuration are combined to form the configuration data of the new target access protocol. The configuration data of the new target access protocol is then sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the new target access protocol.
7. The monitoring equipment access method according to claim 6, characterized in that, After the monitoring device to be connected successfully connects to the target security platform, the method further includes: The weight value of each private configuration template is calculated based on the historical number of successful accesses for each private configuration template in the private configuration pool. Based on the weight values of each private configuration template, the private configuration templates in the private configuration pool are reordered from largest to smallest according to the weight values.
8. A monitoring equipment access system, characterized in that, The system includes: a message processing center, an in-memory database, a public configuration module, a private configuration module, a binary template calculation module, an output generation module, and a result weight calculation module. The message processing center is used to obtain access requests from monitoring devices to the target security platform. The memory database is used to match the access request with the configuration data of the security field access protocol preset in the memory database; if the memory database contains configuration data of the access protocol that matches the access request, the configuration data of the access protocol that matches the access request is directly obtained from the memory database, and the configuration data of the access protocol that matches the access request is sent to the monitoring device to be accessed, so that the monitoring device to be accessed can access the target security platform according to the configuration data of the access protocol; The public configuration module is used to store basic parameter information of access protocols in various security fields; The private configuration module is used to obtain a target private configuration template from a preset private configuration pool according to the access request when there is no configuration data of a security field access protocol that matches the access request in the memory database. The binary template calculation module is used to instantiate and configure the private configuration template in the private configuration pool according to the access request, so as to obtain the target private configuration template. The output generation module is used to combine the target private configuration template with the corresponding public configuration to form the configuration data of the target access protocol. The preset private configuration pool and the public configuration are obtained by pre-layering the configuration data of each security domain access protocol into public and private parts. Each private configuration pool consists of a private configuration template, which includes basic device information corresponding to each security domain access protocol. Each public configuration includes basic parameter information of each security domain access protocol. The module then sends the configuration data of the target access protocol to the monitoring device to be connected, enabling the monitoring device to connect to the target security platform according to the configuration data of the target access protocol. The result weight calculation module is used to calculate the weight value of each private configuration template based on the historical number of successful accesses of each private configuration template in the private configuration pool; and to reorder the private configuration templates in the private configuration pool from largest to smallest according to the weight values of each private configuration template.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the monitoring device access method according to any one of claims 1 to 7.