Interface parameter acquisition method and device, electronic equipment and storage medium

By comparing and multiplexing the interface parameter feature information of the front-end monitoring device, the problem of high network load caused by the large amount of network interaction data in the prior art is solved, and the data transmission efficiency is improved.

CN119496866AActive Publication Date: 2025-02-21ZHEJIANG UNIVIEW TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311020268.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-14
Publication Date
2025-02-21
Estimated Expiration
2043-08-14

Smart Images

  • Figure CN119496866A_ABST
    Figure CN119496866A_ABST
Patent Text Reader

Abstract

The invention provides an interface parameter acquisition method and device, electronic equipment and a storage medium, and relates to the technical field of monitoring, and the method comprises the steps: obtaining first interface parameter feature information of first monitoring equipment under the condition of detecting that the front end is connected with the first monitoring equipment; under the condition that it is determined that first target feature information matched with second interface parameter feature information of accessed second monitoring equipment exists in the first interface parameter feature information, target interface parameters of a target data interaction interface in the second monitoring equipment are copied, determining the copied target interface parameter as an interface parameter of a first data interaction interface corresponding to first target feature information in the first monitoring equipment; wherein the target data interaction interface is a data interaction interface matched with the first data interaction interface. According to the technical scheme provided by the invention, the network interaction data volume between the front-end monitoring equipment and the rear-end electronic equipment can be effectively reduced, and the network load is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of monitoring technology, and in particular to an interface parameter acquisition method, device, electronic equipment and storage medium. Background Art

[0002] In the field of monitoring, front-end monitoring equipment can be managed uniformly through back-end electronic equipment. For example, the back-end electronic equipment can be a network video recorder (NVR), which can manage multiple front-end IP cameras (IPC) and exchange data with them. For another example, the back-end electronic equipment can be a server, which can manage front-end monitoring equipment such as front-end cameras and exchange data with them.

[0003] The interaction between the front-end monitoring equipment and the back-end electronic equipment needs to rely on a large number of interfaces so that the back-end electronic equipment can obtain the complete device functions and configuration information of the front-end monitoring equipment, etc. These device functions and configuration information can be characterized by interface parameters. At present, the back-end electronic equipment needs to obtain interface parameters from each interface of each front-end monitoring device respectively. The amount of network interaction data is large, especially when a large number of monitoring devices are connected to the front end, which will bring a very high network load and affect the data transmission efficiency of the network. Summary of the invention

[0004] The present invention provides an interface parameter acquisition method, device, electronic device and storage medium, which are used to solve the problem in the prior art that the amount of network interaction data between a front-end monitoring device and a back-end electronic device is large, resulting in a high network load.

[0005] The present invention provides an interface parameter acquisition method, comprising:

[0006] When it is detected that the front end is connected to the first monitoring device, first interface parameter characteristic information of the first monitoring device is obtained;

[0007] Determine whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device;

[0008] When the first target characteristic information exists in the first interface parameter characteristic information, the target interface parameters of the target data interaction interface in the second monitoring device are copied, and the copied target interface parameters are determined as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device; wherein the target data interaction interface is a data interaction interface that matches the first data interaction interface.

[0009] According to an interface parameter acquisition method provided by the present invention, the first interface parameter characteristic information includes a characteristic value list corresponding to each second data interaction interface in the first monitoring device; the determining whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device includes:

[0010] Determining whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information;

[0011] When the first characteristic value exists in the second interface parameter characteristic information, it is determined that the first target characteristic information matching the second interface parameter characteristic information exists in the first interface parameter characteristic information; wherein the first target characteristic information is the characteristic value list matching the first characteristic value; and the target data interaction interface is the second data interaction interface corresponding to the matching characteristic value list.

[0012] According to an interface parameter acquisition method provided by the present invention, the first interface parameter characteristic information also includes a first characteristic vector table of the first monitoring device and a first module characteristic value list corresponding to each interface module of the first monitoring device, the interface module includes at least one second data interaction interface of the same interface type, and the first module characteristic value list is determined based on the characteristic value list of each second data interaction interface in the interface module; the determining whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information includes:

[0013] determining whether the first feature vector table is the same as the second feature vector table in the second interface parameter feature information;

[0014] In the case where the first feature vector table is different from the second feature vector table, determining, for each of the interface modules, whether there is a second feature value in the second feature vector table that matches the first module feature value list of the interface module;

[0015] When the second eigenvalue exists in the second eigenvector table, it is determined that there is a first eigenvalue matching the eigenvalue list in the second interface parameter characteristic information, wherein the first eigenvalue is the second eigenvalue, and the first data interaction interface is all the second data interaction interfaces included in the interface module.

[0016] According to the present invention, a method for obtaining interface parameters further includes:

[0017] In a case where there is no second feature value in the second feature vector table that matches the first module feature value list of the interface module, determining, for each third data interaction interface in the interface module, whether there is a third feature value in the second feature vector table that matches the feature value list corresponding to the third data interaction interface;

[0018] When the third eigenvalue exists in the second eigenvector table, it is determined that there is a first eigenvalue matching the eigenvalue list in the second interface parameter characteristic information, and the third data interaction interface is determined as the first data interaction interface, wherein the first eigenvalue is the third eigenvalue.

[0019] According to an interface parameter acquisition method provided by the present invention, the first module characteristic value list corresponding to each interface module of the first monitoring device is obtained by concatenating the characteristic value lists of the second data interaction interfaces in the interface module and performing hash conversion;

[0020] The first feature vector table is generated by storing the feature values ​​in each of the feature value lists and the feature values ​​in each of the first module feature value lists in a vector table.

[0021] According to the present invention, a method for obtaining interface parameters further includes:

[0022] For the second target characteristic information in the first interface parameter characteristic information that does not match the second interface parameter characteristic information, the interface parameters of the data interaction interface corresponding to the second target characteristic information are acquired from the first monitoring device.

[0023] According to an interface parameter acquisition method provided by the present invention, after determining the copied target interface parameters as interface parameters of the first data interaction interface corresponding to the first target feature information in the first monitoring device, the method further includes:

[0024] For the second interface module in the second monitoring device, the feature value list of each data interaction interface in the second interface module is spliced, and timestamp information is added to the spliced ​​feature value list to obtain a first feature value list to be processed; wherein the interface parameters of each data interaction interface in the second interface module are copied by the first interface module in the first monitoring device;

[0025] Performing hash conversion on the first list of feature values ​​to be processed to obtain a second module feature value list corresponding to the second interface module;

[0026] When the feature value list of the second module is inconsistent with the feature value list of the third module, the interface parameters corresponding to each data interaction interface in the first interface module are re-acquired from the first monitoring device; wherein, the feature value list of the third module is obtained by the first monitoring device splicing the feature value lists of each data interaction interface in the first interface module, adding the timestamp information to the spliced ​​feature value list, and performing hash conversion on the second feature value list to be processed obtained after adding the timestamp information.

[0027] The present invention also provides an interface parameter acquisition device, comprising:

[0028] An information acquisition module, configured to acquire first interface parameter characteristic information of the first monitoring device when detecting that the front end is connected to the first monitoring device;

[0029] A feature matching module, used to determine whether there is first target feature information in the first interface parameter feature information that matches the second interface parameter feature information of the connected second monitoring device;

[0030] A parameter copying module, used to copy the target interface parameters of the target data interaction interface in the second monitoring device when the first target characteristic information exists in the first interface parameter characteristic information, and determine the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device; wherein the target data interaction interface is a data interaction interface that matches the first data interaction interface.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-described methods for obtaining interface parameters when executing the computer program.

[0032] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the interface parameter acquisition method described in any one of the above is implemented.

[0033] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the interface parameter acquisition method described in any one of the above is implemented.

[0034] The interface parameter acquisition method, device, electronic device and storage medium provided by the present invention, when detecting that the front end is connected to the first monitoring device, obtains the first interface parameter characteristic information of the first monitoring device, and then compares the first interface parameter characteristic information with the second interface parameter characteristic information of the connected second monitoring device. When there is first target characteristic information matching the second interface parameter characteristic information in the first interface parameter characteristic information, it indicates that there are interface parameters in the interface parameters of the connected second monitoring device that are the same as the first data interaction interface corresponding to the first target characteristic information in the first monitoring device. At this time, the target interface parameters of the target data interaction interface matching the first data interaction interface in the second monitoring device are copied, and the copied target interface parameters are determined as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device. In this way, when the front end is connected to the first monitoring device, the interface parameters repeated with the first monitoring device can be screened out from the connected second monitoring device and directly reused without having to be acquired from the first monitoring device, which effectively reduces the amount of network interaction data between the front-end monitoring device and the back-end electronic device, and reduces the network load. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 This is one of the flow charts of the method for obtaining interface parameters provided by an embodiment of the present invention;

[0037] Figure 2 It is a schematic diagram of an application scenario of the interface parameter acquisition method provided by an embodiment of the present invention;

[0038] Figure 3 This is a second flow chart of the method for obtaining interface parameters provided by an embodiment of the present invention;

[0039] Figure 4 is a structural diagram of an interface parameter acquisition device provided by an embodiment of the present invention;

[0040] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] It should be noted that the serial numbers assigned to the objects described in the present invention, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.

[0043] In the field of monitoring, the interaction between front-end and back-end devices is very frequent. Take NVR and IPC as an example. As a back-end device, NVR needs to manage a large number of front-end IPCs and exchange data with them. The data interaction between NVR and IPC is based on the data interaction protocol standard, such as Simple Object Access Protocol (SOAP), but the data interaction protocol usually carries a large amount of data and consumes high performance in parsing.

[0044] In actual application scenarios, the interaction data between IPCs and NVRs in the same batch is basically the same, which will lead to a large number of repeated interactions, which has a huge impact on the performance pressure and network load of NVR and IPC. The interaction between NVR and IPC relies on a large number of interfaces to obtain complete device capabilities and configuration information. When a large number of IPCs are connected, such as hundreds of IPCs, the frequency of interface interaction will increase rapidly. With the continuous improvement of device functions and the continuous expansion of access specifications, it will bring huge overhead to the network load and performance of NVR, resulting in slow IPC online. Moreover, due to network instability and other reasons, the capability information or configuration information of some functions of IPCs with the same functions may not be fully obtained.

[0045] Based on this, an embodiment of the present invention provides an interface parameter acquisition method. When accessing a front-end monitoring device, the interface parameter characteristic information of the newly connected front-end monitoring device is used to quickly screen and reuse duplicate data in the interface parameters already acquired by the back-end device, and re-acquire non-duplicate data, thereby effectively reducing the amount of network interaction data between the front-end monitoring device and the back-end device, and reducing the network load.

[0046] Combine the following Figure 1-Figure 3The interface parameter acquisition method of the present invention is described. The interface parameter acquisition method can be applied to electronic devices such as terminal devices or servers that are connected to the monitoring device for communication. The terminal devices may include mobile phones, computers, vehicle-mounted devices, tablet computers, wearable devices, etc.; the servers may include independent servers, cluster servers, or cloud servers, etc. The interface parameter acquisition method can also be applied to an interface parameter acquisition device set in an electronic device such as a terminal device or a server, and the interface parameter acquisition device can be implemented by software, hardware, or a combination of both.

[0047] Figure 1 One of the flow charts of the method for obtaining interface parameters provided by an embodiment of the present invention is exemplarily shown, referring to Figure 1 As shown, the interface parameter acquisition method may include the following steps 110 to 130.

[0048] Step 110: When it is detected that the front end is connected to the first monitoring device, first interface parameter characteristic information of the first monitoring device is obtained.

[0049] The first interface parameter characteristic information may be obtained by performing a hash conversion on the interface parameters of the first monitoring device, wherein the interface parameters represent capability information of the data interaction interface in the first monitoring device and configuration information of the capability represented by the capability information. The capability represents the function of the monitoring device.

[0050] Exemplarily, the first interface parameter characteristic information may include at least one of a characteristic value list, a first module characteristic value list, and a first characteristic vector table. The characteristic value list is the characteristic value of the data interaction interface, which can be obtained by performing a hash conversion on the interface parameters of each data interaction interface in the first monitoring device; the first module characteristic value list is the characteristic value of the interface module, and an interface module includes at least one data interaction interface of the same interface type. The first module characteristic value list can be obtained by concatenating the characteristic value lists of all the data interaction interfaces it contains and performing a hash conversion; the first characteristic vector table can be generated by storing the characteristic value of each data interaction interface in the first monitoring device and / or the characteristic value of each interface module in the vector table.

[0051] For example, a vector table with a length of m can be preset, and n hash functions can be preset. For the nth hash function, the hash conversion process of the hash function is: the American Standard Code for Information Interchange (ASCII) and position of each character in the string input to the hash function are shifted left by 10n bits to obtain a hash value, and the remainder obtained by taking the hash value modulo m is used as the eigenvalue corresponding to the nth hash function.

[0052] Based on this, when the first monitoring device is initialized, for each data interaction interface involved in the interaction between the first monitoring device and the back-end electronic device, the interface parameters of the data interaction interface can be converted into a string and then input into the n hash functions respectively to obtain a characteristic value output by each hash function, then the interface parameters of a data interaction interface correspond to n characteristic values, and the characteristic value list formed by the n characteristic values ​​is used as the characteristic value list corresponding to the data interaction interface. For each interface module obtained by classifying these data interaction interfaces according to function, the characteristic value lists corresponding to each data interaction interface belonging to the interface module can be spliced ​​and input into the n hash functions respectively for hash conversion, and n characteristic values ​​are also obtained. The characteristic value list formed by the n characteristic values ​​is used as the first module characteristic value list corresponding to the interface module. Then, the characteristic values ​​of each data interaction interface and / or the characteristic values ​​of each interface module are stored in the vector table, that is, the vector table is set, and the first characteristic vector table corresponding to the first monitoring device can be generated, and the characteristic data of the character string can be stored in the form of a vector table.

[0053] Exemplarily, in the process of generating the feature value list, the character string input into the hash function may be the body content of the SOAP after serialization of the data interaction interface.

[0054] The interface parameters of the data interaction interface are converted into characteristic values ​​through a hash function, and the characteristic values ​​are used to characterize the interface parameters. Compared with the transmission interface parameters, the transmission characteristic values ​​can compress the amount of transmitted data to a certain extent.

[0055] Step 120: Determine whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device.

[0056] Similar to the first interface parameter characteristic information, the second interface parameter characteristic information may include at least one of a characteristic value list, a module characteristic value list, and a second characteristic vector table corresponding to the second monitoring device. The second interface parameter characteristic information may be obtained by performing a hash conversion on the interface parameters of the second monitoring device when the second monitoring device is initialized. After the second monitoring device is connected to the back-end electronic device, the electronic device may obtain the second interface parameter characteristic information.

[0057] For each second monitoring device that has been connected to the electronic device, the electronic device has obtained the interface parameters of all data interaction interfaces involved in the interaction between the second monitoring device and the electronic device. By comparing the first interface parameter characteristic information of the first monitoring device with the second interface parameter characteristic information of the second monitoring device, it can be determined whether there is data that can be reused by the first monitoring device in the interface parameter data obtained by the electronic device.

[0058] Exemplarily, the first characteristic value list corresponding to each data interaction interface in the first interface parameter characteristic information can be compared with the second characteristic vector table or the second characteristic value list in the second interface parameter characteristic information. If the characteristic value of the first characteristic value list exists in the second characteristic value list or the second characteristic vector table, it is determined that the first target characteristic information matching the second interface parameter characteristic information exists in the first interface parameter characteristic information, and the first characteristic value list is the first target characteristic information.

[0059] Alternatively, for each interface module in the first interface parameter feature information, the first module feature value list corresponding to the interface module may be compared with the second feature vector table in the second interface parameter feature information or the fourth module feature value list corresponding to each interface module. If the feature value of the first module feature value list exists in the second feature vector table or a fourth module feature value list, it is determined that the first interface parameter feature information contains first target feature information that matches the second interface parameter feature information, and the first module feature value list is the first target feature information. Otherwise, for each data interaction interface in the interface module, it is determined whether the feature value of the first feature value list of the data interaction interface exists in the second feature value list or the second feature vector table. If so, it is determined that the first interface parameter feature information contains first target feature information that matches the second interface parameter feature information, and the first feature value list of the data interaction interface is the first target feature information.

[0060] Alternatively, the first feature vector table in the first interface parameter feature information may be compared with the second feature vector table in the second interface parameter feature information. If they are the same, it is determined that there is first target feature information in the first interface parameter feature information that matches the second interface parameter feature information. At this time, the feature values ​​of the interface parameters of all interactive interfaces represented by the first interface parameter feature information are the first target feature information; if they are different, for each interface module in the first interface parameter feature information, the first module feature value list corresponding to the interface module is compared with the second feature vector table. If the feature values ​​of the first module feature value list exist in the second feature vector table, the match is successful, and the first module feature value list is the first target feature information that has been successfully matched. If the feature values ​​of the first module feature value list do not exist in the second feature vector table, it is further determined whether the feature values ​​of the first feature value list of each data interactive interface in the interface module exist in the second feature vector table. If so, the match is successful, and the first feature value list of the data interactive interface is the first target feature information that has been matched.

[0061] Step 130: When the first target characteristic information exists in the first interface parameter characteristic information, copy the target interface parameters of the target data interaction interface in the second monitoring device, and determine the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device.

[0062] The target data interaction interface is a data interaction interface that matches the first data interaction interface.

[0063] Exemplarily, for the second target characteristic information in the first interface parameter characteristic information that does not match the second interface parameter characteristic information, the interface parameters of the data interaction interface corresponding to the second target characteristic information may be acquired from the first monitoring device.

[0064] For example, Figure 2 The schematic diagram of the application scenario of the interface parameter acquisition method provided by the embodiment of the present invention is exemplified. Figure 2 As shown, taking the back-end electronic device as NVR and the front-end monitoring device as IPC as an example, NVR can manage and interact with multiple front-end IPCs. When IPC 21, IPC 22, and IPC 23 are initialized respectively, a feature value list, a module feature value list, and a feature vector table corresponding to each IPC can be generated. Assuming that when NVR 20 adds IPC 23, IPC 21 and IPC 22 are IPCs that have been connected to NVR 20, then NVR 20 has stored the feature value list, module feature value list, feature vector table, and interface parameters of each data interaction interface of IPC 21 and IPC 22. Assuming that the data interaction interfaces involved in the interaction between IPC 23 and NVR 20 include data interaction interface A3 and data interaction interface B3, it is determined according to step 120 that the feature values ​​of the first feature value list of data interaction interface A3 exist in the feature vector table of IPC 22 stored in NVR 20, which means that there are interface parameters in IPC 22 that can be reused by data interaction interface A3, and data interaction interface A3 is the first data interaction interface corresponding to the first target feature information. At this time, the target data interaction interface that matches the identification information can be determined from all data interaction interfaces of IPC 22 according to the identification information of data interaction interface A3, such as data interaction interface A2, then NVR 20 copies the interface parameters of data interaction interface A2 and uses the interface parameters as the interface parameters of data interaction interface A3 of IPC 23, without having to obtain the interface parameters of data interaction interface A3 from IPC 23, thereby reducing the amount of data interaction between IPC 23 and NVR 20. For the data interaction interface B3 that is not successfully matched, the NVR 20 may directly obtain the interface parameters of the data interaction interface B3 from the IPC 23 .

[0065] The interface parameter acquisition method provided by the embodiment of the present invention, when detecting that the front end is connected to the first monitoring device, obtains the first interface parameter characteristic information of the first monitoring device, and then compares the first interface parameter characteristic information with the second interface parameter characteristic information of the connected second monitoring device. When there is first target characteristic information matching the second interface parameter characteristic information in the first interface parameter characteristic information, it indicates that there are interface parameters in the interface parameters of the connected second monitoring device that are the same as the first data interaction interface corresponding to the first target characteristic information in the first monitoring device. At this time, the target interface parameters of the target data interaction interface matching the first data interaction interface in the second monitoring device are copied, and the copied target interface parameters are determined as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device. In this way, when the front end is connected to the first monitoring device, the interface parameters repeated with the first monitoring device can be screened out from the connected second monitoring device and directly reused without having to be acquired from the first monitoring device, which effectively reduces the amount of network interaction data between the front-end monitoring device and the back-end electronic device, and reduces the network load.

[0066] based on Figure 1 In the interface parameter acquisition method of the corresponding embodiment, in an optional implementation, the first feature vector table can be generated by the electronic device storing the feature values ​​of the feature value list obtained from the first monitoring device and / or the feature values ​​of the first module feature value list into the vector table, or updated by the electronic device based on the feature values ​​of the copied interface parameters of the second monitoring device. Specifically, after the electronic device copies the target interface parameters of the target data interaction interface in the second monitoring device and determines the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target feature information in the first monitoring device, it can generate or update the first feature vector table of the first monitoring device based on the copied target interface parameters; or after obtaining the interface parameters of the data interaction interface corresponding to the second target feature information from the first monitoring device, it can update or generate the first feature vector table of the first monitoring device based on the obtained interface parameters. In this way, the transmission of the feature vector table can be reduced, and the amount of network interaction data between the front-end monitoring device and the back-end electronic device can be further reduced.

[0067] based on Figure 1In the interface parameter acquisition method of the corresponding embodiment, in an exemplary embodiment, the first interface parameter characteristic information includes a characteristic value list corresponding to each second data interaction interface in the first monitoring device. Accordingly, determining whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device may include: determining whether there is a first characteristic value that matches the characteristic value list in the second interface parameter characteristic information; if there is a first characteristic value in the second interface parameter characteristic information, determining whether there is first target characteristic information that matches the second interface parameter characteristic information in the first interface parameter characteristic information; wherein the first target characteristic information is a characteristic value list that matches the first characteristic value; and the target data interaction interface is the second data interaction interface corresponding to the matching characteristic value list.

[0068] Exemplarily, the first interface parameter characteristic information may include a feature value list of each data interaction interface of the first monitoring device. For each second data interaction interface in the first monitoring device, the feature value list of the second data interaction interface can be compared with all feature value lists in the second interface parameter characteristic information. If there is a feature value list that is identical to the feature value list of the second data interaction interface in the second interface parameter characteristic information, it is determined that there is a first feature value matching the feature value list in the second interface parameter characteristic information. At this time, it is considered that there are interface parameters in the interface parameters of the data interaction interface of the second monitoring device that can be reused by the first data interaction interface. The data interaction interface corresponding to the matching feature value list in the second monitoring device can be determined as the target data interaction interface, and then the interface parameters of the target data interaction interface are copied as the interface parameters of the first data interaction interface.

[0069] For example, Figure 2 For example, for the newly connected IPC 23, assuming that it includes data interaction interface A3 and data interaction interface B3, the feature value list of data interaction interface A3 can be compared with the feature value lists of each data interaction interface of IPC 21 and IPC 22 that have been connected to NVR 20. Assuming that the feature value list of data interaction interface A1 is the same as the feature value list of data interaction interface A3 in the feature value list of IPC 21, NVR 20 can copy interface parameter 1 of data interaction interface A1 and determine interface parameter 1 as the interface parameter of data interaction interface A3 without having to obtain it from IPC 23.

[0070] Exemplarily, all data interaction interfaces of the first monitoring device can be classified according to function to obtain at least one interface module, and the first interface parameter characteristic information can include a characteristic value list of each data interaction interface of the first monitoring device and a first module characteristic value list of each interface module. Accordingly, for each interface module in the first interface parameter characteristic information, it can be determined whether the characteristic values ​​of the first module characteristic value list of the interface module are all in the second characteristic vector table in the second interface parameter characteristic information. If so, it is determined that there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information, and the first characteristic value is the characteristic value of the first module characteristic value list. At this time, it is considered that there are interface parameters that can be reused by the interface module in the second monitoring device, and the corresponding target data interaction interface can be matched from the second monitoring device according to each second data interaction interface in the interface module, and then the interface parameters of the target data interaction interface are copied as the interface parameters of the corresponding second data interaction interface in the interface module. If not, for each second data interaction interface in the interface module, determine whether all the feature values ​​in the feature value list of the second data interaction interface exist in the second feature vector table; if so, match the corresponding target data interaction interface from the second monitoring device, and copy the interface parameters of the target data interaction interface as the interface parameters of the second data interaction interface; otherwise, obtain the interface parameters of the second data interaction interface from the first monitoring device.

[0071] For example, Figure 2For example, for the newly connected IPC 23, assuming that the data interaction interface that interacts with NVR 20 includes data interaction interface A3, data interaction interface B3 and data interaction interface C3, the interface module 1 (including data interaction interface A3 and data interaction interface C3) and interface module 2 (including data interaction interface B3) can be obtained by classifying each data interaction interface according to the interface function. The first module feature value lists of interface module 1 and interface module 2 can be compared with the feature vector tables of IPC 21 and IPC 22 that have been connected to NVR 20. Assuming that the feature values ​​of the first module feature value list of interface module 1 do not all exist in the feature vector tables of IPC 21 and IPC 22, it is determined whether the feature values ​​of the feature value lists of data interaction interface A3 and data interaction interface C3 all exist in the feature vector tables. Assuming that all the feature values ​​of the feature value list of data interaction interface A3 exist in the feature vector table of IPC 22, then the target data interaction interface is matched from the data interaction interface of IPC 22, and it is assumed to be data interaction interface A2. NVR 20 can copy interface parameter 2 of data interaction interface A2 and determine interface parameter 2 as the interface parameter of data interaction interface A3 without obtaining it from IPC 23. Assuming that not all the feature values ​​of the feature value list of data interaction interface C3 exist in the feature vector tables of IPC 21 and IPC 22, then NVR 20 can obtain the interface parameter of data interaction interface C3 from IPC 23.

[0072] Exemplarily, the first interface parameter characteristic information may include a first characteristic vector table of the first monitoring device, a first module characteristic value list corresponding to each interface module of the first monitoring device, and a characteristic value list of each data interaction interface of the first monitoring device. The interface module includes at least one second data interaction interface of the same interface type; the first module characteristic value list may be determined based on the characteristic value list of each second data interaction interface in the interface module. Accordingly, determining whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information may include: determining whether the first characteristic vector table is the same as the second characteristic vector table in the second interface parameter characteristic information; if the first characteristic vector table is different from the second characteristic vector table, for each interface module, determining whether there is a second characteristic value matching the first module characteristic value list of the interface module in the second characteristic vector table; if there is a second characteristic value in the second characteristic vector table, determining whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information, wherein the first characteristic value is the second characteristic value, and the first data interaction interface is all the second data interaction interfaces included in the interface module.

[0073] Furthermore, when there is no second eigenvalue in the second eigenvector table that matches the first module eigenvalue list of the interface module, for each third data interaction interface in the interface module, determine whether there is a third eigenvalue in the second eigenvector table that matches the eigenvalue list corresponding to the third data interaction interface; when there is a third eigenvalue in the second eigenvector table, determine whether there is a first eigenvalue in the second interface parameter characteristic information that matches the eigenvalue list, and determine the third data interaction interface as the first data interaction interface, wherein the first eigenvalue is the third eigenvalue.

[0074] Among them, the first module characteristic value list corresponding to each interface module of the first monitoring device is obtained by splicing the characteristic value lists of each second data interaction interface in the interface module and performing hash conversion; the first characteristic vector table is generated by storing the characteristic values ​​in each characteristic value list and the characteristic values ​​in each first module characteristic value list into a vector table.

[0075] For example, Figure 2 For example, for the newly connected IPC 23, assuming that the data interaction interface that interacts with NVR 20 includes data interaction interface A3, data interaction interface B3, data interaction interface C3 and data interaction interface D3, these data interaction interfaces can be classified according to the interface function to obtain interface module 1 (including data interaction interface A3 and data interaction interface C3) and interface module 2 (including data interaction interface B3 and data interaction interface D3). NVR 20 can first compare the feature vector table a of IPC23 with the feature vector table b of IPC 21 and the feature vector table c of IPC 22 that have been connected to NVR 20. If the feature vector table a and the feature vector table b are compared and found to be the same, NVR 20 can match the target data interaction interface corresponding to the data interaction interface of IPC23 from IPC 21, assuming that they are data interaction interface A1, data interaction interface B1, data interaction interface C1 and data interaction interface D1, and then copy the interface parameters of these data interaction interfaces as the interface parameters of the data interaction interface of IPC 23 without having to obtain them from IPC 23.

[0076] If the feature vector table a is different from the feature vector table b and the feature vector table c, the NVR 20 compares the first module feature value lists of the interface module 1 and the interface module 2 with the feature vector table b and the feature vector table c respectively. If the feature values ​​of the first module feature value list of the interface module 1 are all in the feature vector table b, it means that there are interface parameters in the interface parameters of the IPC 21 that can be reused by the interface module 1, then the NVR 20 matches the target data interaction interface corresponding to the interface module 1 from the data interaction interface of the IPC 21, assuming that they are the data interaction interface A1 and the data interaction interface C1, and the NVR 20 copies the interface parameters of the data interaction interface A1 as the interface parameters of the data interaction interface A3 in the interface module 1, and copies the interface parameters of the data interaction interface C1 as the interface parameters of the data interaction interface C3, without having to obtain them from the IPC 23.

[0077] If the feature values ​​of the first module feature value list of the interface module 2 are not all present in the feature vector table b or in the feature vector table c, then the NVR 20 determines whether the feature values ​​of the feature value lists of the data interaction interface B3 and the data interaction interface D3 are all present in the feature vector table b or in the feature vector table c. Assuming that the feature values ​​of the feature value list of the data interaction interface B3 are all present in the feature vector table b, the target data interaction interface B1 is matched from the data interaction interface of the IPC 21, and the NVR 20 can copy the interface parameters of the data interaction interface B1 and determine the interface parameters as the interface parameters of the data interaction interface B3 without obtaining them from the IPC 23. Assuming that the feature values ​​of the feature value list of the data interaction interface D3 are not all present in the feature vector table b or in the feature vector table c, the NVR 20 can obtain the interface parameters of the data interaction interface D3 from the IPC 23.

[0078] In this way, by first matching the feature vector table, and then matching the feature value list of the first module of the interface module if the match is unsuccessful, and then matching the feature value list of the data interaction interface in the interface module if the match is still unsuccessful, the efficiency of feature matching can be improved, thereby improving the speed of multiplexed data screening.

[0079] Based on the interface parameter acquisition method of each of the above embodiments, since the interface parameters of part or all of the data interaction interfaces of the first monitoring device can be obtained by reusing the interface parameters of other monitoring devices that have been connected to the back-end electronic device, there may be misjudgments in the reuse judgment process. Specifically, in one case, since whether the interface parameters can be reused is judged by eigenvalue matching, there is a possibility of eigenvalue misjudgment, and the misjudgment rate depends on the number of hash functions and the range of eigenvalues. For example, in an extreme case, assuming that a string only generates one eigenvalue, and the value is between 0 and 1, no matter what kind of string is input, the generated eigenvalue can only be 0 or 1. That is, the string with a conversion result of 0 is not necessarily the same string, which will cause a misjudgment. This misjudgment can be reduced by setting an appropriate number of hash functions and a range of eigenvalues. The larger the number of hash functions and the range of eigenvalues, the probability of this misjudgment can approach infinitesimal.

[0080] In another case, the feature vector table of each monitoring device is generated by storing the feature values ​​in the feature value list and the feature values ​​in the module feature value list in the vector table. Misjudgment may occur during the feature value mapping and storage process, and the probability of misjudgment depends on the number of hash functions and the size of the feature vector table. For example, taking the two interface modules of IPC1 as an example, assuming that the feature values ​​of the module feature value list of interface module 1 are {1, 3, 5}, and the feature values ​​of the module feature value list of interface module 2 are {2, 3, 5}, the feature vector table of IPC1 can be obtained by mapping to the corresponding positions of the vector table as {1, 2, 3, 4, 5}. Assuming that there is another interface module 3 of IPC2, the feature values ​​of its module feature value list are {1, 2, 5}. Since 1, 2 and 5 can find corresponding positions in the feature vector table {1, 2, 3, 4, 5}, it will be considered that the interface parameters of interface module 3 already exist in IPC1, which will cause misjudgment.

[0081] Based on this, in an exemplary embodiment of the present invention, a mechanism for dynamically detecting and correcting data misjudgments can be introduced to determine the consistency of the interface parameters of the front-end monitoring device through keep-alive detection, and gradually reduce the misjudgment rate through multiple rounds of detection and correction.

[0082] Specifically, Figure 3 The second flow chart of the method for obtaining interface parameters provided by the embodiment of the present invention is exemplarily shown. Figure 3 As shown, after determining the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device, the interface parameter acquisition method may further include the following steps 310 to 330.

[0083] Step 310: for the second interface module in the second monitoring device, concatenate the feature value lists of each data interaction interface in the second interface module, and add timestamp information to the concatenated feature value lists to obtain a first feature value list to be processed.

[0084] Among them, the interface parameters of each data interaction interface in the second interface module are copied by the first interface module in the first monitoring device, that is, the first interface module in the first monitoring device reuses the interface parameters of each data interaction interface in the second interface module, and the second interface module is the interface module whose interface parameters are reused by the first monitoring device.

[0085] Step 320: Perform hash conversion on the first feature value list to be processed to obtain a second module feature value list corresponding to the second interface module.

[0086] Specifically, the same hash conversion process as in step 110 may be used to perform hash conversion on the first list of feature values ​​to be processed.

[0087] Step 330: When the second module feature value list is inconsistent with the third module feature value list, reacquire interface parameters corresponding to each data interaction interface in the first interface module from the first monitoring device.

[0088] Among them, the third module feature value list is obtained by the first monitoring device splicing the feature value lists of each data interaction interface in the first interface module, adding timestamp information to the spliced ​​feature value list, and performing hash conversion on the second feature value list to be processed after adding the timestamp information.

[0089] In the case where the second module feature value list is inconsistent with the third module feature value list, it indicates that the interface parameters of the first interface module in the feature vector table of the front-end monitoring device currently managed by the back-end electronic device are misjudged, and the interface parameters corresponding to each data interaction interface in the first interface module can be re-acquired from the first monitoring device to correct the interface parameters corresponding to each data interaction interface in the first interface module. Otherwise, wait for the next detection.

[0090] For example, Figure 2For example, assume that the data interaction interfaces of IPC 23 and NVR 20 include data interaction interface A3, data interaction interface B3 and data interaction interface C3. Classify the data interaction interfaces according to the interface functions to obtain interface module 1 (including data interaction interface A3 and data interaction interface C3) and interface module 2 (including data interaction interface B3). In the process of IPC 23 accessing NVR 20, interface module 1 reuses the interface parameters of interface module 3 in IPC 21 that has been connected to NVR 20. In a keep-alive detection process, for interface module 1 of IPC 23, IPC 23 concatenates the feature value list L1 of its data interaction interface A3 and the feature value list L2 of data interaction interface C3 and adds timestamp information t1 to obtain a second feature value list T2 to be processed, and then converts the second feature value list T2 to be processed into a string and inputs it into n hash functions to obtain a feature value output by each hash function, and the obtained n feature values ​​form the third module feature value list M3 corresponding to interface module 1. At the same time, NVR 20 concatenates the feature value list L3 of the data interaction interface A1 of the interface module 3 and the feature value list L4 of the data interaction interface C1 and adds timestamp information t1 to obtain a first feature value list T1 to be processed, and then converts the first feature value list T1 to be processed into a string and inputs it into n hash functions to obtain a feature value output by each hash function, and the obtained n feature values ​​form a second module feature value list M2 corresponding to the interface module 3. Then, NVR 20 compares the second module feature value list M2 and the third module feature value list M3. If they are consistent, it means that the feature vector table of the IPC managed by NVR 20 can accurately determine whether the interface module 1 has corresponding multiplexed data, and its interface parameters will not be misjudged, then wait for the next detection; if the second module feature value list M2 and the third module feature value list M3 are inconsistent, it means that the feature value of the interface module 1 in the feature vector table of the IPC managed by NVR 20 will be misjudged, resulting in misjudgment of its interface parameters. At this time, NVR 20 can re-obtain the interface parameters of each data interaction interface in the interface module 1 from IPC 23 to correct the misjudged interface parameters.

[0091] In this way, through multiple rounds of keep-alive detection, the probability of misjudgment of interface parameters due to possible misjudgment of characteristic values ​​is superimposed to approach infinity until the possible misjudged interface parameters are corrected.

[0092] According to the method for correcting misjudgments in this exemplary embodiment, taking the case where the upper limit of the interface of a single IPC is 1000 data interaction interfaces, the preset vector table length m is 9586 bits, and the number of hash functions n is 7 as an example, the misjudgment rate is 0.01. The misjudgment rate after f rounds of keep-alive detection is changed to 0.01^f, that is, when f continues to increase, the misjudgment rate will decrease exponentially, thereby ensuring that misjudgments of interface parameters can be corrected in a timely manner.

[0093] The interface parameter acquisition method provided by the embodiment of the present invention, on the one hand, uses a hash function to convert the relevant interface parameters of the front-end monitoring device into a characteristic value and a characteristic vector table to store the characteristic value, uses a characteristic value comparison method to quickly screen and reuse the repeated interface parameters of the connected monitoring device, and re-acquires the non-repetitive data to obtain the interface parameters of the front-end monitoring device, which effectively reduces the amount of network interaction data between the back-end electronic device and the front-end monitoring device, and improves the stability of the monitoring device and the overall performance of the system. On the other hand, by introducing a mechanism for dynamic keep-alive detection and correction of misjudged data, the correctness of data interaction is effectively guaranteed, and the entire monitoring system is guaranteed to run correctly and stably in a high-voltage network environment. While effectively reducing the amount of network interaction data between the front-end monitoring device and the back-end electronic device, the stability of data interaction is improved, the network load is reduced, and the data transmission efficiency is improved.

[0094] The interface parameter acquisition device provided by the present invention is described below. The interface parameter acquisition device described below and the interface parameter acquisition method described above can be referred to each other.

[0095] Figure 4 The schematic diagram of the structure of the interface parameter acquisition device provided by the embodiment of the present invention is exemplified. Figure 4 As shown, the interface parameter acquisition device may include: an information acquisition module 410, which is used to acquire the first interface parameter characteristic information of the first monitoring device when it is detected that the front end is connected to the first monitoring device; a characteristic matching module 420, which is used to determine whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device; a parameter copying module 430, which is used to copy the target interface parameters of the target data interaction interface in the second monitoring device when the first target characteristic information exists in the first interface parameter characteristic information, and determine the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device; wherein the target data interaction interface is a data interaction interface that matches the first data interaction interface.

[0096] In an exemplary embodiment, the first interface parameter characteristic information includes a characteristic value list corresponding to each second data interaction interface in the first monitoring device; accordingly, the characteristic matching module 420 may include: a first determination unit, used to determine whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information; a second determination unit, used to determine whether there is first target characteristic information matching the second interface parameter characteristic information in the first interface parameter characteristic information when there is a first characteristic value in the second interface parameter characteristic information; wherein the first target characteristic information is a characteristic value list matching the first characteristic value; and the target data interaction interface is the second data interaction interface corresponding to the matching characteristic value list.

[0097] In an exemplary embodiment, the first interface parameter characteristic information also includes a first feature vector table of the first monitoring device and a first module feature value list corresponding to each interface module of the first monitoring device, the interface module includes at least one second data interaction interface of the same interface type, and the first module feature value list is determined based on the feature value list of each second data interaction interface in the interface module; accordingly, the first determination unit includes: a first determination subunit, used to determine whether the first feature vector table is the same as the second feature vector table in the second interface parameter characteristic information; a second determination subunit, used to determine, for each interface module, whether there is a second feature value in the second feature vector table that matches the first module feature value list of the interface module when the first feature vector table is different from the second feature vector table; a third determination subunit, used to determine whether there is a first feature value in the second interface parameter characteristic information that matches the feature value list when there is a second feature value in the second feature vector table, wherein the first feature value is the second feature value, and the first data interaction interface is all second data interaction interfaces included in the interface module.

[0098] In an exemplary embodiment, the first determination unit also includes: a fourth determination subunit, which is used to determine, for each third data interaction interface in the interface module, whether there is a third characteristic value in the second characteristic vector table that matches the characteristic value list corresponding to the third data interaction interface, if there is no second characteristic value matching the first module characteristic value list of the interface module in the second characteristic vector table; and a fifth determination subunit, which is used to determine, if there is a third characteristic value in the second characteristic vector table, whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information, and determine the third data interaction interface as the first data interaction interface, wherein the first characteristic value is the third characteristic value.

[0099] In an exemplary embodiment, the first module feature value list corresponding to each interface module of the first monitoring device is obtained by concatenating the feature value lists of each second data interaction interface in the interface module and performing hash conversion; the first feature vector table is generated by storing the feature values ​​in each feature value list and the feature values ​​in each first module feature value list in a vector table.

[0100] In an exemplary embodiment, the interface parameter acquisition device also includes: a parameter acquisition module, which is used to obtain the interface parameters of the data interaction interface corresponding to the second target characteristic information in the first interface parameter characteristic information that does not match the second interface parameter characteristic information from the first monitoring device.

[0101] In an exemplary embodiment, the interface parameter acquisition device also includes a detection module, which is used to: after determining the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target feature information in the first monitoring device, for the second interface module in the second monitoring device, splice the feature value list of each data interaction interface in the second interface module, and add timestamp information to the spliced ​​feature value list to obtain a first feature value list to be processed; wherein the interface parameters of each data interaction interface in the second interface module are copied by the first interface module in the first monitoring device; hash conversion is performed on the first feature value list to be processed to obtain a second module feature value list corresponding to the second interface module; when the second module feature value list is inconsistent with the third module feature value list, re-acquire the interface parameters corresponding to each data interaction interface in the first interface module from the first monitoring device; wherein the third module feature value list is obtained by the first monitoring device splicing the feature value lists of each data interaction interface in the first interface module, adding timestamp information to the spliced ​​feature value list, and hash conversion of the second feature value list to be processed obtained after adding the timestamp information.

[0102] Figure 5 An example of a structural diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the interface parameter acquisition method provided by any of the above method embodiments.

[0103] Exemplarily, the processor 510 may include a central processing unit (CPU), a microprocessor, a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0104] Exemplarily, the communication bus 540 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc.

[0105] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0106] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the interface parameter acquisition method provided by any of the above method embodiments.

[0107] On the other hand, 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 method for obtaining interface parameters provided by any of the above method embodiments is implemented.

[0108] By way of example, computer readable storage media include non-transitory computer readable storage media.

[0109] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for obtaining interface parameters, characterized in that: include: When it is detected that the front end is connected to the first monitoring device, first interface parameter characteristic information of the first monitoring device is obtained; Determine whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device; When the first target characteristic information exists in the first interface parameter characteristic information, the target interface parameters of the target data interaction interface in the second monitoring device are copied, and the copied target interface parameters are determined as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device; wherein the target data interaction interface is a data interaction interface that matches the first data interaction interface.

2. The method for obtaining interface parameters according to claim 1, characterized in that: The first interface parameter characteristic information includes a characteristic value list corresponding to each second data interaction interface in the first monitoring device; the determining whether there is first target characteristic information in the first interface parameter characteristic information that matches the second interface parameter characteristic information of the connected second monitoring device includes: Determining whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information; When the first characteristic value exists in the second interface parameter characteristic information, it is determined that the first target characteristic information matching the second interface parameter characteristic information exists in the first interface parameter characteristic information; wherein the first target characteristic information is the characteristic value list matching the first characteristic value; and the target data interaction interface is the second data interaction interface corresponding to the matching characteristic value list.

3. The method for obtaining interface parameters according to claim 2, characterized in that: The first interface parameter characteristic information further includes a first characteristic vector table of the first monitoring device and a first module characteristic value list corresponding to each interface module of the first monitoring device, the interface module includes at least one second data interaction interface of the same interface type, and the first module characteristic value list is determined based on the characteristic value list of each second data interaction interface in the interface module; The determining whether there is a first characteristic value matching the characteristic value list in the second interface parameter characteristic information includes: determining whether the first feature vector table is the same as the second feature vector table in the second interface parameter feature information; In the case where the first feature vector table is different from the second feature vector table, determining, for each of the interface modules, whether there is a second feature value in the second feature vector table that matches the first module feature value list of the interface module; When the second eigenvalue exists in the second eigenvector table, it is determined that there is a first eigenvalue matching the eigenvalue list in the second interface parameter characteristic information, wherein the first eigenvalue is the second eigenvalue, and the first data interaction interface is all the second data interaction interfaces included in the interface module.

4. The method for obtaining interface parameters according to claim 3, characterized in that: Also includes: In a case where there is no second feature value in the second feature vector table that matches the first module feature value list of the interface module, determining, for each third data interaction interface in the interface module, whether there is a third feature value in the second feature vector table that matches the feature value list corresponding to the third data interaction interface; When the third eigenvalue exists in the second eigenvector table, it is determined that there is a first eigenvalue matching the eigenvalue list in the second interface parameter characteristic information, and the third data interaction interface is determined as the first data interaction interface, wherein the first eigenvalue is the third eigenvalue.

5. The method for obtaining interface parameters according to claim 3, characterized in that: The first module feature value list corresponding to each interface module of the first monitoring device is obtained by concatenating the feature value lists of the second data interaction interfaces in the interface module and performing hash conversion; The first feature vector table is generated by storing the feature values ​​in each of the feature value lists and the feature values ​​in each of the first module feature value lists in a vector table.

6. The method for obtaining interface parameters according to claim 1, characterized in that: Also includes: For the second target characteristic information in the first interface parameter characteristic information that does not match the second interface parameter characteristic information, the interface parameters of the data interaction interface corresponding to the second target characteristic information are acquired from the first monitoring device.

7. The method for obtaining interface parameters according to any one of claims 1 to 6, characterized in that: After determining the copied target interface parameters as interface parameters of the first data interaction interface corresponding to the first target feature information in the first monitoring device, the method further includes: For the second interface module in the second monitoring device, the feature value list of each data interaction interface in the second interface module is spliced, and timestamp information is added to the spliced ​​feature value list to obtain a first feature value list to be processed; wherein the interface parameters of each data interaction interface in the second interface module are copied by the first interface module in the first monitoring device; Performing hash conversion on the first list of feature values ​​to be processed to obtain a second module feature value list corresponding to the second interface module; When the feature value list of the second module is inconsistent with the feature value list of the third module, the interface parameters corresponding to each data interaction interface in the first interface module are re-acquired from the first monitoring device; wherein, the feature value list of the third module is obtained by the first monitoring device splicing the feature value lists of each data interaction interface in the first interface module, adding the timestamp information to the spliced ​​feature value list, and performing hash conversion on the second feature value list to be processed obtained after adding the timestamp information.

8. An interface parameter acquisition device, characterized in that: include: An information acquisition module, configured to acquire first interface parameter characteristic information of the first monitoring device when detecting that the front end is connected to the first monitoring device; A feature matching module, used to determine whether there is first target feature information in the first interface parameter feature information that matches the second interface parameter feature information of the connected second monitoring device; A parameter copying module, used to copy the target interface parameters of the target data interaction interface in the second monitoring device when the first target characteristic information exists in the first interface parameter characteristic information, and determine the copied target interface parameters as the interface parameters of the first data interaction interface corresponding to the first target characteristic information in the first monitoring device; wherein the target data interaction interface is a data interaction interface that matches the first data interaction interface.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the interface parameter acquisition method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the interface parameter acquisition method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Digital mixer and patch setting method of digital mixer

    CN104517594A

  • Automatic configuration of a replacement camera

    CN105282427A

  • Quick access method and device of Internet of Things platform, storage medium and electronic device

    CN116233173A

  • Camera management method in image recording system

    JP2005012518A

  • Network monitoring system and method

    US20070066297A1