Fire equipment interface parameter automatic distribution system and method
Through the automatic allocation system for interface parameters of fire-fighting equipment, the recommended weights of interface nodes are calculated through network testing, and the best nodes are selected for parameter allocation, which solves the problem that parameter library allocation in the existing technology cannot guarantee service quality, and realizes the business of fire-fighting equipment Optimal scheduling of service quality and parameters.
Patent Information
- Application Number
- CN202411028707.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In existing cloud computing services, the parameter library allocation method of firefighting equipment cannot guarantee the quality of business services, and the optimal scheduling of parameters cannot be achieved.
A fire-fighting equipment interface parameter automatic allocation system is designed, including automatic allocation of middle platform, acquisition module, testing module, calculation module and parameter allocation module. By obtaining parameter allocation instructions for fire-fighting equipment interface, network testing is carried out, and the recommendation of calculation interface nodes is calculated. Weight and select the target node with the best network quality for parameter allocation.
Ensure the business service quality of fire-fighting equipment, and achieve optimal scheduling of parameters to meet business needs.
Smart Images

Figure CN118555202B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a fire-fighting equipment interface parameter automatic distribution system and method. Background Art
[0002] At present, under the existing cloud computing service provision model, different fire-fighting equipment obtains corresponding services through the unified portal of the whole network through business parameter allocation. The parameter allocation process mainly specifies a parameter library or randomly allocates a parameter library for the fire-fighting equipment after the user selects the required parameter type for the fire-fighting equipment, and allocates and issues parameters according to the specified parameter library or the parameter library randomly allocated to the fire-fighting equipment. The designated parameter library is based on the user's subjective judgment. When providing services, the allocated parameter library may not necessarily meet the user's requirements for business service quality. For the central cloud, the parameter library allocated to the user is specified by the user or randomly allocated, and the optimal scheduling of parameters cannot be achieved. Summary of the invention
[0003] The present invention provides a fire equipment interface parameter automatic allocation system and method thereof, which are used to solve the technical problems that the existing parameter scheduling method of the parameter library assigned by the user or the parameter library randomly assigned to the user cannot guarantee the business service quality of the fire equipment and cannot achieve the optimal scheduling of the parameters.
[0004] The technical solution of the present invention to solve the above technical problems is as follows:
[0005] The present invention provides a fire equipment interface parameter automatic allocation system, the fire equipment interface parameter automatic allocation system comprises an automatic allocation middle station, an acquisition module, a test module, a calculation module and a parameter allocation module; the automatic allocation middle station is respectively connected to the acquisition module, the test module, the calculation module and the parameter allocation module to manage the data of each module;
[0006] The acquisition module is used to acquire a parameter allocation instruction of any fire equipment interface; the parameter allocation instruction includes an interface address of the fire equipment interface;
[0007] The test module is used to perform a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate;
[0008] The calculation module is used to calculate the recommended weight of each of the interface nodes according to the network quality parameter;
[0009] The parameter allocation module is used to select a target node with the best network quality from each of the interface nodes based on the recommendation weight, and schedule the parameter library of the target node to perform parameter allocation for the fire equipment interface.
[0010] The present invention also provides a method for automatically allocating fire equipment interface parameters, comprising:
[0011] Obtaining a parameter allocation instruction of any fire-fighting equipment interface; the parameter allocation instruction includes an interface address of the fire-fighting equipment interface;
[0012] Performing a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate;
[0013] Calculate the recommended weight of each of the interface nodes according to the network quality parameter;
[0014] A target node with the best network quality is selected from each of the interface nodes based on the recommendation weight, and the parameter library of the target node is scheduled to perform parameter allocation for the fire equipment interface.
[0015] According to the method for automatically allocating fire equipment interface parameters provided by the present invention, the recommended weight of each interface node is calculated according to the network quality parameter, including:
[0016] Calculating a weighted average of a target parameter; the target parameter is any parameter of the network quality parameters;
[0017] Obtaining a weight set corresponding to the network quality parameter; the weight set includes a weight value of each target parameter;
[0018] The weighted average values of the target parameters are weighted summed based on the weight set to obtain the recommended weight of the interface node.
[0019] According to the method for automatically allocating fire equipment interface parameters provided by the present invention, the weighted average value of the target parameter is calculated, including:
[0020] Obtaining a parameter value interval of a target parameter; the parameter value interval is determined by a maximum parameter value and a minimum parameter value of the target parameter;
[0021] Dividing the parameter value interval into a preset number of sub-intervals, and counting the target number of parameter values of the target parameter falling within each of the sub-intervals;
[0022] The target weight of the sub-interval is obtained according to the ratio of the target quantity to the total parameter value of the target parameter; the total parameter value of the target parameter is the same as the number of network tests performed on each interface node based on the interface address;
[0023] The parameter value of the target parameter is normalized based on the median of the sub-interval and the target weight to obtain a weighted average value of the target parameter.
[0024] According to the method for automatically allocating fire equipment interface parameters provided by the present invention, if the target node includes multiple ones, after selecting the target node with the best network quality from each of the interface nodes based on the recommended weight, the method further includes:
[0025] Calculating the standard deviation of the network quality parameter of the target node according to the weighted average of each target parameter in the network quality parameter of any target node;
[0026] Performing weighted summation on the standard deviation of the network quality parameter of the target node based on the weight set to obtain a check value of the target node;
[0027] The target node is screened according to the check value.
[0028] According to the method for automatically allocating fire equipment interface parameters provided by the present invention, the parameter allocation instruction also includes parameter requirements and business requirements of the fire equipment interface; the network test of each interface node based on the interface address to obtain the network quality parameters of each interface node includes:
[0029] Based on a preset number of tests, generating a test instruction based on the interface address, the parameter requirements and the business requirements during each test;
[0030] The test instruction is sent to each interface node to perform a network test, and the network quality parameters of each interface node are obtained.
[0031] According to the method for automatically allocating fire equipment interface parameters provided by the present invention, the step of obtaining a parameter allocation instruction for any fire equipment interface comprises:
[0032] Obtain the global virtual private cloud information and the specified interface address segment created by any fire equipment interface, as well as the business requirements and parameter requirements for the configuration of the fire equipment interface;
[0033] A parameter allocation instruction for the fire protection equipment interface is generated according to the global virtual private cloud information, the interface address segment, the parameter requirements and the business requirements.
[0034] The present invention also provides an electronic device, comprising: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby realizing any of the above-mentioned methods for automatically allocating fire equipment interface parameters.
[0035] The present invention also provides a non-transitory computer-readable storage medium, in which a computer software program is stored. When the computer software program is executed by a processor, the method for automatically allocating fire equipment interface parameters as described in any of the above is implemented.
[0036] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for automatically allocating fire-fighting equipment interface parameters as described above is implemented.
[0037] The embodiment of the present invention performs a network test on each interface node through the interface address of the fire-fighting equipment, obtains the network quality parameters of each interface node, calculates the recommended weight of each interface node according to the network quality parameters of each interface node, and selects the interface node with the best network quality according to the recommended weight, and schedules the parameters of the interface node for parameter allocation. The allocated parameters are the interface node that best meets the business requirements of the fire-fighting equipment, which can ensure the business service quality of the fire-fighting equipment and achieve the best scheduling of the parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a structural schematic diagram of the fire equipment interface parameter automatic distribution system provided by the present invention.
[0039] Figure 2 This is one of the flow charts of the method for automatically allocating fire equipment interface parameters provided by the present invention.
[0040] Figure 3 This is the second flow chart of the method for automatically allocating fire equipment interface parameters provided by the present invention.
[0041] Figure 4 A schematic diagram of an electronic device according to an embodiment of the present invention.
[0042] Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0044] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0045] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.
[0046] Reference Figure 1 , Figure 1 It is a structural diagram of the automatic allocation system of fire equipment interface parameters provided by the present invention. The automatic allocation system of fire equipment interface parameters includes an automatic allocation middle station, an acquisition module, a test module, a calculation module and a parameter allocation module; the automatic allocation middle station is respectively connected to the acquisition module, the test module, the calculation module and the parameter allocation module to manage the data of each module.
[0047] Optionally, the acquisition module acquires a parameter allocation instruction of any fire equipment interface; the parameter allocation instruction includes an interface address of the fire equipment interface.
[0048] Optionally, the test module performs a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate.
[0049] Optionally, the calculation module calculates the recommended weight of each interface node according to the network quality parameter.
[0050] Optionally, the parameter allocation module selects a target node with the best network quality from each interface node based on the recommendation weight, and schedules the parameter library of the target node to perform parameter allocation for the fire equipment interface.
[0051] The embodiment of the present invention performs a network test on each interface node through the interface address of the fire-fighting equipment, obtains the network quality parameters of each interface node, calculates the recommended weight of each interface node according to the network quality parameters of each interface node, and selects the interface node with the best network quality according to the recommended weight, and schedules the parameters of the interface node for parameter allocation. The allocated parameters are the interface node that best meets the business requirements of the fire-fighting equipment, which can ensure the business service quality of the fire-fighting equipment and achieve the best scheduling of the parameters.
[0052] Figure 2 FIG. 1 is one of the flow charts of the method for automatically allocating fire equipment interface parameters provided by the present invention, such as Figure 2 As shown, the method for automatically allocating fire equipment interface parameters includes the following steps:
[0053] Step 100, obtaining a parameter allocation instruction of any fire equipment interface; the parameter allocation instruction includes an interface address of the fire equipment interface;
[0054] Step 200, performing a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate;
[0055] Step 300, calculating the recommended weight of each interface node according to the network quality parameter;
[0056] Step 400 , based on the recommendation weight, select the target node with the best network quality from each interface node, and schedule the parameter library of the target node to perform parameter allocation for the fire equipment interface.
[0057] Specifically, first, obtain the parameter allocation instruction of any fire equipment interface, which includes the interface address of the fire equipment interface. The parameter allocation instruction of the fire equipment interface is generated based on the parameter allocation requirements of the fire equipment interface, which needs to include the parameter type and number of parameters that the fire equipment interface wants to allocate.
[0058] Among them, delay is the time required for a message or packet to be transmitted from one end of a network to the other end. Delay = transmission delay + propagation delay + processing delay + queuing delay. Delay is related to equipment performance, and is positively correlated with the number of equipment hops that the data passes through, the data propagation distance, and the communication volume. Under the same business volume, the delay can be effectively reduced by selecting higher-performance equipment; reducing the number of hops that the data passes through, simplifying the business processing method; reducing the data transmission distance, and deploying parameters at interface nodes closer to the fire equipment.
[0059] Network jitter refers to the delay change in the transmission of data packets during network communication, which reflects the stability of the network. The smaller the network jitter value, the more stable the network. Network jitter will have a huge impact on the performance of network applications. For example, network jitter in online games may cause lag and misalignment, and network jitter in voice calls may cause chaotic sound and voice interruption.
[0060] Packet loss rate refers to the probability of data packet loss during network transmission, and is used to evaluate the stability and reliability of network transmission. Packet loss may occur in situations such as network congestion, interference, and signal attenuation. The higher the packet loss rate, the worse the network transmission stability and the worse the data transmission quality. Generally, the packet loss rate of the network is 0 when there is no congestion, 1% to 4% when there is mild congestion, and greater than 5% when there is severe congestion. In business applications with high real-time requirements such as voice calls and video conferencing, a low packet loss rate is required to ensure the real-time and smooth transmission.
[0061] Furthermore, a network test is performed on each interface node based on the interface address of the fire equipment interface, thereby obtaining network quality parameters of each interface node, the network quality parameters including path, delay, jitter, packet loss rate, etc. Optionally, for different business requirements, the network quality parameters obtained through network testing may be partially the same or different.
[0062] Furthermore, the recommended weight of each interface node is calculated according to the obtained network quality parameters, and the target node with the best network quality is selected from each interface node based on the recommended weight. In response to the parameter allocation instruction of the fire equipment interface, the parameter library of the target node is scheduled to allocate parameters for the fire equipment interface, and the allocated parameters are issued to provide services for the fire equipment interface.
[0063] Optionally, when calculating the recommended weights according to the network quality parameters, the better the network quality of the interface node, the larger the corresponding recommended weight, and the worse the network quality of the interface node, the smaller the corresponding recommended weight. When selecting the target node with the best network quality, the target node is the interface node with the largest recommended weight. Optionally, when calculating the recommended weights according to the network quality parameters, the better the network quality of the interface node, the smaller the corresponding recommended weight, and the worse the network quality of the interface node, the larger the corresponding recommended weight. When selecting the target node with the best network quality, the target node is the interface node with the smallest recommended weight.
[0064] In this embodiment, a network test is performed on each interface node through the interface address of the fire-fighting equipment to obtain the network quality parameters of each interface node, and the recommended weight of each interface node is calculated based on the network quality parameters of each interface node. Therefore, the interface node with the best network quality is selected according to the recommended weight, and the parameters of the interface node are scheduled for parameter allocation. The allocated parameters are the interface node that best meets the business requirements of the fire-fighting equipment, which can ensure the business service quality of the fire-fighting equipment and achieve the best scheduling of parameters.
[0065] In one embodiment, the parameter allocation instruction of the fire equipment interface also includes the business requirements and parameter requirements of the template fire equipment, wherein the business requirements include the business type, and the parameter requirements include the parameter requirements and the number of parameters. Based on this, in step 100, obtaining the parameter allocation instruction of any fire equipment interface includes:
[0066] Step 101, obtaining the global virtual private cloud information and the specified interface address segment created by any fire equipment interface, as well as the business requirements and parameter requirements for the fire equipment interface configuration;
[0067] Step 102, generating a parameter allocation instruction for the fire protection equipment interface according to the global virtual private cloud information, interface address segment, parameter requirements and business requirements.
[0068] When obtaining the parameter allocation instruction of any fire equipment interface, first obtain the global private virtual cloud information created by the fire equipment interface and the interface address segment specified by the fire equipment interface, as well as the business requirements and parameter requirements of the fire equipment interface configuration. Generate the parameter allocation instruction of the fire equipment interface based on the global virtual private cloud information, the global virtual private cloud information created by the fire equipment interface, and the business requirements and parameter requirements of the fire equipment interface configuration.
[0069] Optionally, in step 200, a network test is performed on each interface node based on the interface address of the fire equipment interface to obtain network quality parameters of each interface node, specifically including:
[0070] Step 201, based on a preset number of tests, generating a test instruction based on an interface address, parameter requirements and business requirements during each test;
[0071] Step 202: Send a test instruction to each interface node to perform a network test and obtain network quality parameters of each interface node.
[0072] When performing network testing on each interface node based on the interface address of the fire equipment interface, multiple tests are performed on each interface node. The number of tests on different interface nodes can be the same or different, and is not specifically limited here. Optionally, the number of tests is preset, and all interface nodes are tested simultaneously during each test.
[0073] Specifically, based on the preset test test, in each test process, a test instruction is generated based on the interface address, parameter requirements and service requirements in the parameter allocation instruction, and the test instruction is sent to each interface node for network testing, thereby obtaining the network quality parameters of each interface node. Among them, the test instruction is generated based on the interface address, parameter requirements and service requirements of the fire-fighting equipment, and different parameter requirements and / or different service requirements generate different test instructions. Based on the test instruction, network testing is performed on each interface node, which can be used to simulate the service flow of the fire-fighting equipment under the required parameters, thereby determining the network quality of the service service of each interface node to the fire-fighting equipment interface.
[0074] In one embodiment, the network quality parameters of each interface node obtained are expressed in the form of a parameter value array, and the parameter values of different parameters obtained in the same network test process form a parameter value array. Specifically, in step 300, the recommended weight of each interface node is calculated based on the network quality parameters of each interface node obtained, which may specifically include:
[0075] Step 301, calculating a weighted average of a target parameter; the target parameter is any parameter of the network quality parameter;
[0076] Step 302, obtaining a weight set corresponding to the network quality parameter; the weight set includes the weight value of each target parameter;
[0077] Step 303: Perform weighted summation on the weighted average values of the target parameters based on the weight set to obtain the recommended weight of the interface node.
[0078] First, the weighted average of the target parameter is calculated, where for any interface node, the target parameter is any parameter in the network quality parameter. Take the example of performing K tests on each interface node and obtaining the network quality parameters of the interface node including path, delay, jitter and packet loss rate. Assuming there are m parameter libraries of interface nodes, K network tests are performed on the parameter library of each interface node, and the test results of each interface node are saved. The test results of the network quality parameters obtained by a single test of each interface node form a parameter value array, which is expressed as F:[N,D,J,L].
[0079] In array F, N represents the number of device hops from a parameter server in the parameter library to the fire equipment end of the fire equipment interface, that is, the path. The smaller this value is, the fewer devices the parameter library from the fire equipment end to the interface node passes through, which means the potential network failure risk is smaller; conversely, the potential network failure risk is greater. Assuming that the probability of a single device running without failure is P, the probability of the entire link running without failure is P N , the probability of network failure is (1-PN ), indicating that the risk of network failure increases exponentially with the value of N. D is delay, which indicates the delay from a parameter server in the parameter library to the fire equipment end of the fire equipment interface. J is jitter, which indicates the network jitter from a parameter server in the parameter library to the fire equipment end of the fire equipment interface. L is packet loss rate, which indicates the packet loss rate from a parameter server in the parameter library to the fire equipment end of the fire equipment interface. For business applications such as network conferencing, the packet loss rate should be controlled within 1%, and packet loss has a great impact on the quality of network communication.
[0080] Taking delay D as the target parameter as an example, in the process of K network tests, K parameter values of delay D of a certain interface node are obtained, and the weighted average value of delay D is calculated based on the K parameter values of delay D, and the obtained value is In this way, the weighted average values of other parameters in the network quality parameters of the interface node are calculated respectively, such as , and Etc., to obtain the weighted average array of network quality parameters of each interface node .
[0081] Obtain a weight set corresponding to the network quality parameters, which includes the weight values of each target parameter in the network quality parameters. For any interface node, based on each weight value in the weight set, perform weighted summation on the weighted average values of each target parameter in its network quality parameters to obtain the recommended weight of the interface node.
[0082] For any interface node, if the weighted average values of the target parameters in its network quality parameters form an array , then the weight set corresponding to its network quality parameters is [λ1,λ2,λ3,λ4], where λ1,λ2,λ3,λ4 are all configurable constants greater than 0, and λ1,λ2,λ3,λ4 represent the weight values of path N, delay D, jitter J and packet loss rate L respectively. Optionally, the weighted average of each target parameter in the network quality parameters of any interface node is weighted and summed according to the following formula (1) to obtain the recommended weight G of the interface node:
[0083] ; (1)
[0084] In formula (1), the weighted average value of path N is first logarithmized, and then weighted summation is performed based on the logarithm result. According to the recommended weight calculated by formula (1), the smaller the G value is, the higher the network quality is. The recommended weight values of the available parameter libraries of each interface node are compared, and the allocable parameter library with the smallest calculated G value is selected for the fire equipment interface for parameter allocation.
[0085] Optionally, in step 301, calculating the weighted average of the target parameter may further include:
[0086] Step 311, obtaining a parameter value interval of the target parameter; the parameter value interval is determined by the maximum parameter value and the minimum parameter value of the target parameter;
[0087] Step 321, dividing the parameter value interval into a preset number of sub-intervals, and counting the target number of parameter values of the target parameter falling within each sub-interval;
[0088] Step 331, obtaining a target weight of a sub-interval according to a ratio of the target quantity to the total parameter value of the target parameter; the total parameter value of the target parameter is the same as the number of network tests performed on each interface node based on the interface address;
[0089] Step 341 , normalizing the parameter value of the target parameter based on the median of the sub-interval and the target weight to obtain a weighted average value of the target parameter.
[0090] Based on multiple network tests of each interface node, for the same target parameter in the network quality parameter, multiple parameter values can be obtained, and a parameter value interval can be formed according to its maximum parameter value and minimum parameter value. The parameter value interval of any target parameter is divided into a preset number of sub-intervals, and the target number of each parameter value of the target parameter falling within each sub-interval is counted, and the target weight of each sub-interval is obtained according to the ratio of the counted target number to the total parameter value of the target parameter, wherein the total parameter value of the target parameter is the same as the test of the network test on the interface node. The parameter value of the target parameter is normalized based on the median of each sub-interval and the calculated target weight to obtain the weighted average of the target parameter.
[0091] Specifically, taking the delay D as the target parameter as an example, after performing K network tests on each interface node, K parameter values of the delay D are obtained. max and the minimum parameter value D min The parameter value interval that constitutes the delay D[D max ,D min ]. The parameter value interval is divided into a preset number of a sub-intervals, and the interval width of each sub-interval is: ΔD=(D max -D min ) / a; count the number of parameter values in each subinterval, that is, count D min +(i-1)·ΔD≤D <D min The number of parameter values of the time delay D of +i·ΔD is X i , then the parameter value of the delay D in the i-th subinterval [D min +(i-1)·ΔD,D min+i·ΔD) is: q i =X i / K; the probability that the parameter value of experiment D falls into each subinterval is used as the weight of the subinterval, and each subinterval takes the median D i =D min +(i-0.5)·ΔD, and perform data normalization according to the following formula (2) to obtain the weighted average value of the delay D:
[0092] ; (2)
[0093] According to the above method, the weighted average value of each target parameter in the network quality parameter of any interface node can be calculated, thereby obtaining the weighted average array corresponding to the network quality parameter of each interface node.
[0094] In one embodiment, since the network quality parameters obtained from multiple network tests are simplified by weighted averaging and normalization, there may be multiple interface nodes with the same recommended weight, that is, the same G value in formula (1). When the target node with the best network quality is selected from each interface node based on the recommended weight, that is, the target node with the smallest G value includes multiple nodes, in step 400, after selecting the target node with the best network quality from each interface node based on the recommended weight, the following may also be included:
[0095] Step 410, calculating the standard deviation of the network quality parameter of any target node according to the weighted average of each target parameter in the network quality parameter of any target node;
[0096] Step 420, performing weighted summation on the standard deviation of the network quality parameter of the target node based on the weight set to obtain a check value of the target node;
[0097] Step 430, screening the target nodes according to the check value.
[0098] According to the weighted average of each target parameter in the network quality parameters of any target node, the standard deviation of the network quality parameters of the target node is calculated, and according to the calculated standard deviation of the network quality parameters of each target node, each target node is screened, and the best interface node is screened from multiple target nodes for parameter allocation.
[0099] Optionally, based on K network tests on each interface node, the standard deviation of each target parameter is calculated according to the weighted average of each target parameter in the network quality parameters of each interface node, and the standard deviation array corresponding to the interface node is obtained. For example, the corresponding standard deviation array is H:[σ N ,σ D ,σ J,σ L ].
[0100] Optionally, when screening multiple target nodes with the same G value, the standard deviation array H of each target node is weighted and summed based on the weight set [λ1, λ2, λ3, λ4], and the obtained value is used as the check value of the target node. Then, the target node with the smallest check value is screened out from the multiple target nodes for parameter allocation. Optionally, another weight set different from the weight set [λ1, λ2, λ3, λ4] can also be used to perform weighted summation on the standard deviation array to obtain the check value, and then the target node with the smallest check value is screened out for parameter allocation, and there is no specific limitation on this.
[0101] In one embodiment, referring to Figure 3 , Figure 3 This is the second flow chart of the method for automatically allocating fire equipment interface parameters provided by the present invention. First, after obtaining the parameter allocation instruction of the fire equipment interface, a network test instruction is generated according to the business requirements, parameter requirements and interface address in the parameter allocation instruction, and K network tests are performed on the m interface nodes from interface 1 to interface m to obtain K groups of network quality parameter values for each interface node. The parameter values of different parameters of the network quality parameters obtained in the same test process are used as an array to obtain K groups of arrays for each interface node, namely, K groups F1-K groups F m , calculate the weighted average array based on the K group F1 of interface node 1 , calculate the weighted average array of each interface node in this way, and get , and then based on the preset weight set, the weighted average of the parameters in each weighted average array is weighted summed to obtain the recommended weight corresponding to each interface node, that is, G1-G m . At the same time, based on the calculated weighted average array , calculate the standard deviation array of interface 1-interface m, that is, H1-H m , based on the preset weight set, the standard deviation array is weighted and summed to calculate the check value of interface 1-interface m, and the check value of CHECK1-CHECK m .
[0102] Then select the target node with the smallest recommendation weight from interface 1 to interface m, that is, G min Corresponding target node. Determine whether the target node is unique. If it is unique, the parameter library of the unique target node is used as the optimal parameter library, and the optimal parameter library is scheduled to perform parameter allocation for the fire equipment interface. If the target node selected according to the recommended weight is not unique, the check values of multiple target nodes are compared, and the target node with the smallest check value is selected from the multiple target nodes, that is, CHECK minThe corresponding target node is used as the best interface node, and the parameter library of the best interface node is the best parameter library. The best parameter library is scheduled to perform parameter allocation for the fire equipment interface.
[0103] In this embodiment, by performing a network test on the interface address of the fire-fighting equipment and calculating the weight by means of network quality parameters, the number of devices and the network quality passed by the fire-fighting equipment to the parameter library are comprehensively considered to obtain a recommended weight value for allocating the parameter library. This is beneficial for comprehensively evaluating each interface node based on the distance of the fire-fighting equipment, remaining parameters, delay, jitter, packet loss rate, etc., intelligently selecting the interface node that provides business services to the fire-fighting equipment, completing the allocation of business parameters, effectively ensuring the business service quality of the fire-fighting equipment, and achieving optimal scheduling of parameters from multiple aspects such as business service quality and parameter requirements.
[0104] See also Figure 4 , Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented:
[0105] Obtaining a parameter allocation instruction of any fire-fighting equipment interface; the parameter allocation instruction includes an interface address of the fire-fighting equipment interface;
[0106] Performing a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate;
[0107] Calculate the recommended weight of each of the interface nodes according to the network quality parameter;
[0108] A target node with the best network quality is selected from each of the interface nodes based on the recommendation weight, and the parameter library of the target node is scheduled to perform parameter allocation for the fire equipment interface.
[0109] See also Figure 5 , Figure 5 Schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented:
[0110] Obtaining a parameter allocation instruction of any fire-fighting equipment interface; the parameter allocation instruction includes an interface address of the fire-fighting equipment interface;
[0111] Performing a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate;
[0112] Calculate the recommended weight of each of the interface nodes according to the network quality parameter;
[0113] A target node with the best network quality is selected from each of the interface nodes based on the recommendation weight, and the parameter library of the target node is scheduled to perform parameter allocation for the fire equipment interface.
[0114] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0115] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0116] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0119] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0120] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An automatic allocation system for fire equipment interface parameters, It is characterized in that The fire equipment interface parameter automatic allocation system includes an automatic allocation middle station, an acquisition module, a test module, a calculation module and a parameter allocation module; the automatic allocation middle station is respectively connected to the acquisition module, the test module, the calculation module and the parameter allocation module to manage the data of each module; The acquisition module is used to acquire a parameter allocation instruction of any fire equipment interface; the parameter allocation instruction includes an interface address of the fire equipment interface; The test module is used to perform a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate; The calculation module is used to calculate the recommended weight of each of the interface nodes according to the network quality parameter; The parameter allocation module is used to select a target node with the best network quality from each of the interface nodes based on the recommendation weight, and schedule the parameter library of the target node to perform parameter allocation for the fire equipment interface; The step of calculating the recommended weight of each of the interface nodes according to the network quality parameter includes: Calculating a weighted average of a target parameter; the target parameter is any parameter of the network quality parameters; Obtaining a weight set corresponding to the network quality parameter; the weight set includes a weight value of each target parameter; Performing weighted summation on the weighted average values of the target parameters based on the weight set to obtain the recommended weight of the interface node; The calculating the weighted average of the target parameter comprises: Obtaining a parameter value interval of a target parameter; the parameter value interval is determined by a maximum parameter value and a minimum parameter value of the target parameter; Dividing the parameter value interval into a preset number of sub-intervals, and counting the target number of parameter values of the target parameter falling within each of the sub-intervals; The target weight of the sub-interval is obtained according to the ratio of the target quantity to the total parameter value of the target parameter; the total parameter value of the target parameter is the same as the number of network tests performed on each interface node based on the interface address; The parameter value of the target parameter is normalized based on the median of the sub-interval and the target weight to obtain a weighted average value of the target parameter.
2. A method for automatically allocating fire equipment interface parameters, It is characterized in that include: Obtaining a parameter allocation instruction of any fire-fighting equipment interface; the parameter allocation instruction includes an interface address of the fire-fighting equipment interface; Performing a network test on each interface node based on the interface address to obtain network quality parameters of each interface node; the network quality parameters include path, delay, jitter and packet loss rate; Calculate the recommended weight of each of the interface nodes according to the network quality parameter; Selecting a target node with the best network quality from each of the interface nodes based on the recommendation weight, and scheduling the parameter library of the target node to perform parameter allocation for the fire equipment interface; The step of calculating the recommended weight of each of the interface nodes according to the network quality parameter includes: Calculating a weighted average of a target parameter; the target parameter is any parameter of the network quality parameters; Obtaining a weight set corresponding to the network quality parameter; the weight set includes a weight value of each target parameter; Performing weighted summation on the weighted average values of the target parameters based on the weight set to obtain the recommended weight of the interface node; The calculating the weighted average of the target parameter comprises: Obtaining a parameter value interval of a target parameter; the parameter value interval is determined by a maximum parameter value and a minimum parameter value of the target parameter; Dividing the parameter value interval into a preset number of sub-intervals, and counting the target number of parameter values of the target parameter falling within each of the sub-intervals; The target weight of the sub-interval is obtained according to the ratio of the target quantity to the total parameter value of the target parameter; the total parameter value of the target parameter is the same as the number of network tests performed on each interface node based on the interface address; The parameter value of the target parameter is normalized based on the median of the sub-interval and the target weight to obtain a weighted average value of the target parameter.
3. The method for automatically allocating fire equipment interface parameters according to claim 2, It is characterized in that If the target node includes multiple ones, after selecting the target node with the best network quality from each of the interface nodes based on the recommendation weight, the method further includes: Calculating the standard deviation of the network quality parameter of the target node according to the weighted average of each target parameter in the network quality parameter of any target node; Performing weighted summation on the standard deviation of the network quality parameter of the target node based on the weight set to obtain a check value of the target node; The target node is screened according to the check value.
4. The method for automatically allocating fire equipment interface parameters according to claim 2, It is characterized in that The parameter allocation instruction also includes parameter requirements and business requirements of the fire equipment interface; the network test of each interface node based on the interface address to obtain the network quality parameters of each interface node includes: Based on a preset number of tests, generating a test instruction based on the interface address, the parameter requirements and the business requirements during each test; The test instruction is sent to each interface node to perform a network test, and the network quality parameters of each interface node are obtained.
5. The method for automatically allocating fire equipment interface parameters according to claim 4, It is characterized in that The step of obtaining the parameter allocation instruction of any fire protection equipment interface includes: Obtain the global virtual private cloud information and the specified interface address segment created by any fire equipment interface, as well as the business requirements and parameter requirements for the configuration of the fire equipment interface; A parameter allocation instruction for the fire protection equipment interface is generated according to the global virtual private cloud information, the interface address segment, the parameter requirements and the business requirements.
6. An electronic device, It is characterized in that include: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the method for automatically allocating fire equipment interface parameters as described in any one of claims 2 to 5.
7. A non-transitory computer-readable storage medium, It is characterized in that The storage medium stores a computer software program, which, when executed by a processor, implements the method for automatically allocating fire equipment interface parameters as claimed in any one of claims 2 to 5.
8. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method for automatically allocating fire equipment interface parameters as described in any one of claims 2 to 5 is implemented.
