A method and system for dynamically allocating communication resources based on blockchain

By establishing a mapping relationship and curve fitting between the number of elevator systems used and influencing factors, combined with load rate adjustment, the problem of unbalanced communication resource allocation between elevator systems is solved, dynamic resource allocation driven by smart contracts is realized, and system performance and Resource utilization.

CN118488014BActive Publication Date: 2024-09-10BEIJING SHICHUANG ELEVATOR ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946739.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-10
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

It is difficult to achieve scientific and efficient dynamic allocation of communication resources between elevator systems with existing technology, resulting in uneven resource allocation and affecting system performance.

Method used

By establishing a mapping relationship between the actual number of elevator systems used and influencing factors, using neural networks to predict the supply quantity of communication resources in the next cycle, and dynamically adjusting resource allocation through curve fitting and load rate adjustment, smart contracts are written and embedded in blocks. chain network to achieve automated distribution.

Benefits of technology

It achieves a reasonable allocation of communication resources between elevator systems, improves the system's responsiveness and resource utilization, and ensures trustful sharing and distribution of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118488014B
    Figure CN118488014B
Patent Text Reader

Abstract

The present invention relates to the field of dynamic allocation of communication resources, and specifically to a method and system for dynamic allocation of communication resources based on blockchain, comprising establishing a mapping relationship between the actual usage quantity of elevator systems in different areas and main influencing factors and pre-allocating the supply quantity of communication resources for the next cycle according to the mapping relationship, performing curve fitting on the actual usage quantity of communication resources of elevator systems between different buildings and pre-allocating the supply quantity of communication resources for the next cycle according to the maximum probability of the curve, so as to meet the reasonable allocation of communication resources of elevator systems in different areas and different buildings; obtaining the ratio of the actual usage quantity of a communication port in a preset time interval divided by the predicted supply quantity, judging whether there is excess or shortage of communication resources for the communication port and then dynamically adjusting the quantity of communication resources; compiling the method for dynamic allocation of communication resources into a smart contract and implanting it into the blockchain network of elevator systems at all levels, so that the elevator system can participate in the sharing and allocation of communication resources with more trust.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of dynamic allocation of communication resources, and in particular to a method and system for dynamic allocation of communication resources based on blockchain. Background Art

[0002] At present, the height of buildings such as residential areas, office buildings, and business districts is getting higher and higher, and the density of people is getting higher and higher. The elevator system has become an important link connecting the internal and external passages of the building. The functions of the elevator system are becoming more and more powerful. In addition to meeting the basic operation requirements and emergency call requirements, there are also other service requirements such as advertising, real-time monitoring, and remote elevator calls. Therefore, how to carry out scientific and efficient dynamic allocation of communication resources between regions, buildings, and ports has become a very important topic. The present invention establishes a mapping relationship between the actual use quantity of elevator systems in different regions and the main influencing factors and pre-allocates the supply quantity of communication resources in the next cycle according to the mapping relationship to achieve the reasonable allocation of communication resources of elevator systems in different regions. By curve fitting the actual use quantity of elevator system communication resources between different buildings and pre-allocating the supply quantity of communication resources in the next cycle according to the maximum probability of the curve, the reasonable allocation of communication resources of the elevator system between buildings is met. By obtaining the actual use quantity of the communication port preset time interval divided by the predicted supply quantity, it is judged whether the communication port has excess or insufficient communication resources and then dynamically adjusts the number of communication resources to meet the reasonable allocation of communication resources of the elevator system between ports. The communication resource dynamic allocation method is written into a smart contract and implanted into the blockchain network of elevator systems at all levels, allowing the elevator system to participate in communication resource sharing and allocation with greater trust. Summary of the invention

[0003] (1) Technical issues to be solved

[0004] The purpose of the present invention is to provide a method and system for dynamic allocation of communication resources based on blockchain, so as to solve the problem that the current elevator system cannot realize scientific and efficient dynamic allocation of communication resources between areas, buildings and ports.

[0005] (2) Technical solution

[0006] To achieve the above object, the present invention provides a method for dynamically allocating communication resources based on blockchain, the method comprising:

[0007] Obtain the actual usage quantity of communication resources in the preset period of the elevator system in different areas and the main influencing factors affecting the actual usage quantity, take the main influencing factors as input values ​​and the actual usage quantity as output values ​​through neural network sample training to establish the mapping relationship between the actual usage quantity and the main influencing factors in each area, and dynamically adjust the predicted supply quantity of communication resources in the next preset period according to the mapping relationship;

[0008] The actual usage number of service users in the preset period of the elevator system of different buildings is obtained, and the actual usage number of the service users is curve-fitted to obtain a Gaussian function. The average value of the actual usage number with the largest number of occurrences is calculated as the predicted supply number of communication resources in the next preset period, so that the predicted supply number is pre-allocated in advance according to the actual usage number with the highest probability in the previous preset period;

[0009] Obtaining the actual usage quantity of different user terminals of the elevator system at preset time intervals, wherein the different user terminals include basic user terminals, emergency user terminals, and service user terminals, wherein the predicted supply quantity of the service user terminal will be dynamically adjusted following the real-time changes of the actual usage quantity at the preset time interval; the specific adjustment method is to obtain the actual usage quantity of the service user terminal at the previous preset time interval, and reallocate the predicted supply quantity of the service user terminal at the next preset time interval when the actual usage quantity of the service user terminal divided by the predicted supply quantity is less than a preset lower limit threshold or greater than a preset upper limit threshold;

[0010] The communication resource dynamic allocation method is written into a smart contract and implanted into the blockchain network of elevator systems or servers at all levels, so that the elevator system can dynamically allocate communication resources according to the smart contract during operation.

[0011] Furthermore, the method further includes: the predicted supply quantity is pre-allocated in advance according to the actual usage quantity with the maximum probability in the previous preset period: the total service user predicted supply quantity is defined as C, and the preset period is ; Subtract the basic end predicted supply quantity A and the emergency end predicted supply quantity B from the total communication resource predicted supply quantity S to obtain the total service end predicted supply quantity C, and obtain the actual usage quantity of the elevator system communication resources for the preset number of times , based on statistics and combined with practical judgment It is random but generally stable. Perform curve fitting to obtain Gaussian function , where a is the peak height of the Gaussian function, b is the center coordinate of the Gaussian function peak, and c is the standard deviation of the distance from the center coordinate; the actual number average of the maximum probability density is obtained by integrating the distance from the center coordinate b within the preset distance range and then dividing it by the distance range , which is calculated as:

[0012] ;

[0013] in is the preset distance from the center coordinate b; the actual number average of the maximum probability density is divided by the redundancy coefficient to obtain the next preset cycle The forecast supply quantity of communication resources is calculated as follows: , where β is the preset redundancy coefficient.

[0014] Furthermore, the method further includes: the service user predicts that the supply quantity will be dynamically adjusted according to the real-time change of the actual usage quantity at the preset time interval by obtaining the previous preset time interval. The actual usage quantity of the service user is divided by the predicted supply quantity to get the communication load rate. When d is less than the preset lower threshold or greater than the preset upper threshold, it is judged that there is an excess or shortage of communication resources on the service user side, and the next time interval is reallocated according to the proportion of the predicted supply quantity on the service user side. The pre-supply quantity is calculated as follows:

[0015] ;

[0016] in They are the preset lower load rate threshold and the preset upper load rate threshold. is the actual amount of communication resources used by the service user. is the predicted allocation of communication resources for the service user in the previous time interval, It is the number of communication resources to be reallocated to the service user end in the next time interval; A is the predicted supply quantity for the basic user end, B is the predicted supply quantity for the emergency user end, and S is the actual supply quantity of communication resources. The communication demand A used to meet basic operation and the communication demand B used to meet emergency situations do not participate in the allocation of the total predicted supply quantity of communication resources but are set to be met with priority.

[0017] Furthermore, the method further comprises: the preset time interval The calculation method is: Get the preset time interval The actual number of communication resources used by the service end , calculate the load ratio d of the actual number of communication resources and the predicted number of communication resources. When d is greater than or equal to the preset lower limit threshold and less than the preset upper limit threshold, no communication resource adjustment is performed; when d is less than the preset lower limit threshold or greater than the preset upper limit threshold, the communication system automatically performs dynamic adjustment. The adjustment method is combined with the time interval There is an inverse relationship between the load rate d and the time interval The time interval needs to be established to respond quickly to changes in load rate d Exponential function with load factor d:

[0018] ;

[0019] in is the preset optimal safe load rate and is between the lower threshold and the upper threshold. is the minimum time interval for the system to investigate the communication situation. The purpose of squaring first and then taking the square root is to make the curve The two sides are symmetrically distributed. is the weight coefficient that adjusts the overall scaling of the function, is the weight coefficient that determines the rate at which the function increases or decreases, It is the offset to adjust the starting position of the function; the residual function is established according to the difference between the actual data and the exponential function model, and the optimal weight coefficient is determined by minimizing the sum of squares of the residual function. , and offset ; The calculation method of load rate d is: .

[0020] Furthermore, the method further includes: taking the main influencing factors as input values ​​and the actual usage quantity as output values, establishing a mapping relationship between the actual usage quantity of each area and the main influencing factors through neural network sample training, and dynamically adjusting the calculation method of the predicted supply quantity of communication resources in the next preset period according to the mapping relationship: obtaining the total actual usage quantity of communication resources in the preset period of the elevator system in different areas as And the main factors affecting the actual usage ; Taking the main influencing factors as input values ​​and the actual usage quantity as output values, a mapping relationship between the actual usage quantity of each region and the main influencing factors is established through neural network sample training; obtaining the main factors of the current preset period and obtaining the predicted supply quantity of communication resources based on the mapping relationship, which is calculated as follows:

[0021] ;

[0022] in is the main factor of the current preset cycle, is the weight from the input layer to the hidden layer, is the hidden layer bias, is the activation function; is the weight from the hidden layer to the output layer, is the output layer bias.

[0023] Based on the same inventive concept, on the other hand, the present invention also provides a communication resource dynamic allocation system based on blockchain, the system comprising:

[0024] The first communication resource dynamic allocation module is used to obtain the actual usage quantity of communication resources in the preset period of the elevator system in different areas and the main influencing factors affecting the actual usage quantity, take the main influencing factors as input values ​​and the actual usage quantity as output values, and establish the mapping relationship between the actual usage quantity and the main influencing factors in each area through neural network sample training, and dynamically adjust the predicted supply quantity of communication resources in the next preset period according to the mapping relationship;

[0025] The second communication resource dynamic allocation module is used to obtain the actual usage quantity of the service user end in the preset period of the elevator system of different buildings, and to obtain a Gaussian function by curve fitting the actual usage quantity of the service user end, and to calculate the average value of the actual usage quantity with the most occurrences as the predicted supply quantity of communication resources in the next preset period, so as to realize the pre-allocation of the predicted supply quantity in advance by following the actual usage quantity with the maximum probability in the previous preset period;

[0026] The communication resource dynamic allocation module three is used to obtain the actual usage quantity of different user terminals of the elevator system at preset time intervals, wherein the different user terminals include basic user terminals, emergency user terminals and service user terminals, wherein the predicted supply quantity of the service user terminal will be dynamically adjusted following the real-time changes of the actual usage quantity at the preset time interval; the specific adjustment method is to obtain the actual usage quantity of the service user terminal at the previous preset time interval, and when the actual usage quantity of the service user terminal divided by the predicted supply quantity is less than the preset lower limit threshold or greater than the preset upper limit threshold, reallocate the predicted supply quantity of the service user terminal for the next preset time interval;

[0027] The communication resource smart contract module is used to write the communication resource dynamic allocation method into a smart contract and implant it into the blockchain network of elevator systems or servers at all levels, so that the elevator system can dynamically allocate communication resources according to the smart contract during operation.

[0028] Furthermore, the system also includes: the working mode of the second communication resource dynamic allocation module is: define the total service user terminal predicted supply quantity as C, and the preset period is ; Subtract the basic end predicted supply quantity A and the emergency end predicted supply quantity B from the total communication resource predicted supply quantity S to obtain the total service end predicted supply quantity C, and obtain the actual usage quantity of the elevator system communication resources for the preset number of times , based on statistics and combined with practical judgment It is random but generally stable. Perform curve fitting to obtain Gaussian function , where a is the peak height of the Gaussian function, b is the center coordinate of the Gaussian function peak, and c is the standard deviation of the distance from the center coordinate; the actual number average of the maximum probability density is obtained by integrating the distance from the center coordinate b within the preset distance range and then dividing it by the distance range , which is calculated as:

[0029] ;

[0030] in is the preset distance from the center coordinate b; the actual number average of the maximum probability density is divided by the redundancy coefficient to obtain the next preset cycle The forecast supply quantity of communication resources is calculated as follows: , where β is the preset redundancy coefficient.

[0031] Furthermore, the system further comprises: the working mode of the communication resource dynamic allocation module 3 is: obtaining the previous preset time interval The actual usage quantity of the service user is divided by the predicted supply quantity to get the communication load rate. When d is less than the preset lower threshold or greater than the preset upper threshold, it is judged that there is an excess or shortage of communication resources on the service user side, and the next time interval is reallocated according to the proportion of the predicted supply quantity on the service user side. The pre-supply quantity is calculated as follows:

[0032] ;

[0033] in They are the preset lower load rate threshold and the preset upper load rate threshold. is the actual amount of communication resources used by the service user. is the predicted allocation of communication resources for the service user in the previous time interval, It is the number of communication resources to be reallocated to the service user end in the next time interval; A is the predicted supply quantity for the basic user end, B is the predicted supply quantity for the emergency user end, and S is the actual supply quantity of communication resources. The communication demand A used to meet basic operation and the communication demand B used to meet emergency situations do not participate in the allocation of the total predicted supply quantity of communication resources but are set to be met with priority.

[0034] Furthermore, the system further comprises: a preset time interval in the communication resource dynamic allocation module 3 The calculation method is: Get the preset time interval The actual number of communication resources used by the service after , calculate the load ratio d of the actual number of communication resources and the predicted number of communication resources. When d is greater than or equal to the preset lower limit threshold and less than the preset upper limit threshold, no communication resource adjustment is performed; when d is less than the preset lower limit threshold or greater than the preset upper limit threshold, the communication system automatically performs dynamic adjustment. The adjustment method is combined with the time interval There is an inverse relationship between the load rate d and the time interval The time interval needs to be established to respond quickly to changes in load rate d Exponential function with load factor d:

[0035] ;

[0036] in is the preset optimal safe load rate and is between the lower threshold and the upper threshold. is the minimum time interval for the system to investigate the communication situation. The purpose of squaring first and then taking the square root is to make the curve The two sides are symmetrically distributed. is the weight coefficient that adjusts the overall scaling of the function, is the weight coefficient that determines the rate at which the function increases or decreases, It is the offset to adjust the starting position of the function; the residual function is established according to the difference between the actual data and the exponential function model, and the optimal weight coefficient is determined by minimizing the sum of squares of the residual function. , and offset ; The calculation method of load rate d is: .

[0037] Furthermore, the system also includes: the working mode of the communication resource dynamic allocation module 1 is: obtaining the total actual usage amount of communication resources of the preset period of the elevator system in different areas And the main factors affecting the actual usage ; Taking the main influencing factors as input values ​​and the actual usage quantity as output values, a mapping relationship between the actual usage quantity of each region and the main influencing factors is established through neural network sample training; obtaining the main factors of the current preset period and obtaining the predicted supply quantity of communication resources based on the mapping relationship, which is calculated as follows:

[0038] ;

[0039] in is the main factor of the current preset cycle, is the weight from the input layer to the hidden layer, is the hidden layer bias, is the activation function; is the weight from the hidden layer to the output layer, is the output layer bias.

[0040] (3) Beneficial effects

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] 1. By establishing a mapping relationship between the actual number of elevator systems in different areas and the main influencing factors and pre-allocating the supply quantity of communication resources for the next cycle according to the mapping relationship, the reasonable allocation of communication resources for elevator systems in different areas can be achieved.

[0043] 2. By fitting a curve to the actual usage of communication resources in the elevator systems between different buildings and pre-allocating the supply of communication resources for the next cycle based on the maximum probability of the curve, the reasonable allocation of communication resources in the elevator systems between buildings can be achieved.

[0044] 3. By obtaining the ratio of the actual usage quantity of the communication port in the preset time interval divided by the predicted supply quantity, it is determined whether there is excess or shortage of communication resources at the communication port, and then the number of communication resources is dynamically adjusted to meet the reasonable allocation of elevator system communication resources between ports.

[0045] 4. The communication resource dynamic allocation method is written into a smart contract and implanted into the blockchain network of elevator systems at all levels, so that the elevator system can participate in the communication resource sharing and allocation with more trust. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is a flowchart of a method for dynamically allocating communication resources based on blockchain according to Embodiment 1 of the present invention;

[0047] Figure 2 This is a flowchart of a communication resource dynamic allocation system based on blockchain according to Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0048] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] Before giving examples, it is necessary to explain the application scenarios of the present invention. The present invention is aimed at the increasing height and crowd density of buildings such as residential areas, office buildings, and business districts. The elevator system has become an important bridge connecting the inside and outside of the building. In addition to meeting basic operation requirements and emergency call requirements, there are also other service requirements such as advertising, real-time monitoring, and remote elevator calls. The current elevator systems at all levels lack a scientific and efficient dynamic allocation method for communication resources between regions, buildings, and ports. The present invention establishes a mapping relationship between the actual use quantity of elevator systems in different regions and the main influencing factors and pre-allocates the supply quantity of communication resources in the next cycle according to the mapping relationship to achieve a reasonable allocation of communication resources in elevator systems in different regions. The actual use quantity of elevator system communication resources between different buildings is curve-fitted and the supply quantity of communication resources in the next cycle is pre-allocated according to the maximum probability of the curve to meet the reasonable allocation of communication resources in the elevator system between buildings. By obtaining the actual use quantity of the communication port preset time interval divided by the predicted supply quantity, it is judged whether the communication port has an excess or shortage of communication resources and then dynamically adjusts the number of communication resources to meet the reasonable allocation of communication resources in the elevator system between ports. The communication resource dynamic allocation method is written into a smart contract and implanted into the blockchain network of elevator systems at all levels, allowing the elevator system to participate in communication resource sharing and allocation with greater trust.

[0050] Example 1: Figure 1 As shown, this embodiment provides a method for dynamic allocation of communication resources based on blockchain, characterized in that the method includes:

[0051] S1. Obtain the actual usage quantity of communication resources in the preset period of the elevator system in different areas and the main influencing factors affecting the actual usage quantity, take the main influencing factors as input values ​​and the actual usage quantity as output values, and establish a mapping relationship between the actual usage quantity and the main influencing factors in each area through neural network sample training, and dynamically adjust the predicted supply quantity of communication resources in the next preset period according to the mapping relationship;

[0052] S2. Obtain the actual usage quantity of the service users in the preset period of the elevator system of different buildings, perform curve fitting on the actual usage quantity of the service users to obtain a Gaussian function, calculate the average value of the actual usage quantity with the largest number of occurrences as the predicted supply quantity of communication resources in the next preset period, and realize the pre-allocation of the predicted supply quantity in advance by following the actual usage quantity with the maximum probability in the previous preset period;

[0053] S3, obtaining the actual usage quantity of different user terminals of the elevator system at preset time intervals, wherein the different user terminals include basic user terminals, emergency user terminals, and service user terminals, wherein the predicted supply quantity of the service user terminal will be dynamically adjusted following the real-time changes of the actual usage quantity at the preset time interval; the specific adjustment method is to obtain the actual usage quantity of the service user terminal at the previous preset time interval, and when the actual usage quantity of the service user terminal divided by the predicted supply quantity is less than the preset lower limit threshold or greater than the preset upper limit threshold, reallocate the predicted supply quantity of the service user terminal for the next preset time interval;

[0054] S4. The communication resource dynamic allocation method is written into a smart contract and implanted into the blockchain network of elevator systems or servers at all levels, so that the elevator system can dynamically allocate communication resources according to the smart contract during operation.

[0055] For example, the height of buildings such as residential areas, office buildings, and business districts is getting higher and higher, and the density of people is getting higher and higher. The installation and service of elevators inside them are becoming more and more group-based and standardized. With the development and migration of cities, the flow of people between different areas will also change accordingly. First, for buildings in different areas or different areas inside buildings, the relationship between the main factors such as flow of people and density of people and the number of elevator communications is obtained and established to predict the number of pre-allocated communication resources in the future area. Secondly, for a specific building, although the number of communications in its elevator communication system is random, it tends to be stable as a whole. Most of the maximum number of communications is during the morning and evening peak hours on weekdays. Therefore, a probability model can be established to select the maximum probability of use as the pre-allocated number of the elevator system in the building. Thirdly, for the elevator system of a specific building, there are also different ports using communication resources, among which the basic use end is used to ensure the elevator operation log and maintenance log, and the emergency use end is used to ensure emergency call communication, and these two communication ends are set to be preferentially satisfied without participating in the allocation of the total predicted supply of communication resources, so as to avoid the situation where the number of communication resources allocated by the emergency use end participates in the communication resource preemption during an emergency call, resulting in the inability to connect to the emergency communication or poor communication quality. There are also other communication needs such as elevator call ports, monitoring ports, and multimedia ports. Dynamic allocation of communication resources of these ports can meet the usage needs of different scenarios. For example, during the morning and evening rush hours in residential areas or the holiday peak hours in shopping malls, there is a surge in the flow of people, and the demand for communication resources for elevator call services on the service user end surges. The number of communication resources can be dynamically adjusted in time to meet people's efficient passage. In the late night when there is less traffic, the demand for elevator call services drops sharply, and the number of communication resources can be dynamically adjusted to meet the higher-definition communication needs of the monitoring module.

[0056] Furthermore, the method further includes: the predicted supply quantity is pre-allocated in advance according to the actual usage quantity with the maximum probability in the previous preset period: the total service user predicted supply quantity is defined as C, and the preset period is ; Subtract the basic end predicted supply quantity A and the emergency end predicted supply quantity B from the total communication resource predicted supply quantity S to obtain the total service end predicted supply quantity C, and obtain the actual usage quantity of the elevator system communication resources for the preset number of times , based on statistics and combined with practical judgment It is random but generally stable. Perform curve fitting to obtain Gaussian function , where a is the peak height of the Gaussian function, b is the center coordinate of the Gaussian function peak, and c is the standard deviation of the distance from the center coordinate; the actual number average of the maximum probability density is obtained by integrating the distance from the center coordinate b within the preset distance range and then dividing it by the distance range , which is calculated as:

[0057] ;

[0058] in is the preset distance from the center coordinate b; the actual number average of the maximum probability density is divided by the redundancy coefficient to obtain the next preset cycle The forecast supply quantity of communication resources is calculated as follows: , where β is the preset redundancy coefficient.

[0059] Illustratively, the actual number of elevator communication resources used in office buildings, shopping malls, etc. will always change with working days, holidays, etc., but in a longer preset period, such as a month, obtaining and counting the actual number of elevator communication resources used will find that it is particularly in line with the characteristics of the Gaussian function. The actual number of communication resources in the office building elevator system is concentrated on working days, and the actual number of communication resources in the shopping mall elevator system is concentrated on holidays; the actual number of communication resources within the closest distance range of the center coordinates of the distance times that best represent the most frequent working state of the elevator system is selected as the representative actual number, and then divided by the preset redundancy coefficient β as the next preset period Predicted supply quantity of communication resources. For example, after simulation function, it is found that the average actual communication quantity of the elevator system in the building is 100 units. In order to offset the attenuation of the communication system and retain some redundancy, 100 units are divided by 0.8 to obtain 125 units as the predicted supply quantity of the elevator system in the next preset period. This can grasp the actual use of the elevator system's communication resources as a whole, so that the elevator system can meet the communication needs without wasting communication resources.

[0060] Furthermore, the method further includes: the service user predicts that the supply quantity will be dynamically adjusted according to the real-time change of the actual usage quantity at the preset time interval by obtaining the previous preset time interval. The actual usage quantity of the service user is divided by the predicted supply quantity to get the communication load rate. When d is less than the preset lower threshold or greater than the preset upper threshold, it is judged that there is an excess or shortage of communication resources on the service user side, and the next time interval is reallocated according to the proportion of the predicted supply quantity on the service user side. The pre-supply quantity is calculated as follows:

[0061] ;

[0062] in They are the preset lower load rate threshold and the preset upper load rate threshold. is the actual amount of communication resources used by the service user. is the predicted allocation of communication resources for the service user in the previous time interval, It is the number of communication resources to be reallocated to the service user end in the next time interval; A is the predicted supply quantity for the basic user end, B is the predicted supply quantity for the emergency user end, and S is the actual supply quantity of communication resources. The communication demand A used to meet basic operation and the communication demand B used to meet emergency situations do not participate in the allocation of the total predicted supply quantity of communication resources but are set to be met with priority.

[0063] Furthermore, the method further comprises: the preset time interval The calculation method is: Get the preset time interval The actual number of communication resources used by the service end , calculate the load ratio d of the actual number of communication resources and the predicted number of communication resources. When d is greater than or equal to the preset lower limit threshold and less than the preset upper limit threshold, no communication resource adjustment is performed; when d is less than the preset lower limit threshold or greater than the preset upper limit threshold, the communication system automatically performs dynamic adjustment. The adjustment method is combined with the time interval There is an inverse relationship between the load rate d and the time interval The time interval needs to be established to respond quickly to changes in load rate d Exponential function with load factor d:

[0064] ;

[0065] in is the preset optimal safety satisfaction rate and is between the lower threshold and the upper threshold. is the minimum time interval for the system to investigate the communication situation. The purpose of squaring first and then taking the square root is to make the curve The two sides are symmetrically distributed. is the weight coefficient that adjusts the overall scaling of the function, is the weight coefficient that determines the rate at which the function increases or decreases, It is the offset to adjust the starting position of the function; the residual function is established according to the difference between the actual data and the exponential function model, and the optimal weight coefficient is determined by minimizing the sum of squares of the residual function. , and offset ; The calculation method of load rate d is: .

[0066] For example, when the actual number of communication resources used in a building's elevator system is 80 units, the predicted number of communication resources is 100 units, and the satisfaction rate is 80%, it is judged that the communication of each port of the system is normal within the preset lower threshold and the preset upper threshold. The time interval for the next port communication survey remains unchanged and is still the maximum value. When the predicted allocation quantity of communication resources for a port in a certain area is 100 units, and the actual quantity of communication resources detected after a preset time interval is 30 units, the satisfaction rate is obtained. If the satisfaction rate is not within the preset lower threshold and the preset upper threshold, the next time interval is shortened; the further the satisfaction rate is from the preset lower threshold and the preset upper threshold, the shorter the next time interval is, so as to achieve the purpose of more timely reallocation of communication resources.

[0067] Furthermore, the method further includes: the method of using the main influencing factors as input values ​​and the actual usage quantity as output values ​​to establish a mapping relationship between the actual usage quantity of each area and the main influencing factors through neural network sample training, and dynamically adjusting the calculation method of the predicted supply quantity of communication resources in the next preset period according to the mapping relationship is: obtaining the total actual usage quantity of communication resources in the preset period of the elevator system in different areas is And the main factors affecting the actual usage ; Taking the main influencing factors as input values ​​and the actual usage quantity as output values, a mapping relationship between the actual usage quantity of each region and the main influencing factors is established through neural network sample training; obtaining the main factors of the current preset period and obtaining the predicted supply quantity of communication resources based on the mapping relationship, which is calculated as follows:

[0068] ;

[0069] in is the main factor of the current preset cycle, is the weight from the input layer to the hidden layer, is the hidden layer bias, is the activation function; is the weight from the hidden layer to the output layer, is the output layer bias.

[0070] For example, the allocation of communication resources in the elevator system mainly changes according to the size of the flow of people. When the occupancy rate of the residential area is getting higher and higher, the communication resources will be loaded higher and higher. If a constant communication resource is set, the elevator system or server will be stuck, causing the elevator user experience to decline. When the popularity of some physical shopping malls decreases, the communication resources will be loaded lower and lower. Setting a constant communication resource will cause a waste of communication resources in the elevator system or server. The above model can be used to predict the size of the communication resource demand between different buildings and even different areas. The demand quantity of each elevator communication system or server can be predicted and allocated in advance, so that the elevator system can respond one step ahead to better meet the efficient passage needs of the elevator.

[0071] Embodiment 2: Based on the same inventive concept, Figure 2 As shown, this embodiment also provides a communication resource dynamic allocation system based on blockchain, and the system includes:

[0072] The first communication resource dynamic allocation module is used to obtain the actual usage quantity of communication resources in the preset period of the elevator system in different areas and the main influencing factors affecting the actual usage quantity, take the main influencing factors as input values ​​and the actual usage quantity as output values, and establish the mapping relationship between the actual usage quantity and the main influencing factors in each area through neural network sample training, and dynamically adjust the predicted supply quantity of communication resources in the next preset period according to the mapping relationship;

[0073] The second communication resource dynamic allocation module is used to obtain the actual usage quantity of the service user end in the preset period of the elevator system of different buildings, and to obtain a Gaussian function by curve fitting the actual usage quantity of the service user end, and to calculate the average value of the actual usage quantity with the most occurrences as the predicted supply quantity of communication resources in the next preset period, so as to realize the pre-allocation of the predicted supply quantity in advance by following the actual usage quantity with the maximum probability in the previous preset period;

[0074] The communication resource dynamic allocation module three is used to obtain the actual usage quantity of different user terminals of the elevator system at preset time intervals, wherein the different user terminals include basic user terminals, emergency user terminals and service user terminals, wherein the predicted supply quantity of the service user terminal will be dynamically adjusted following the real-time changes of the actual usage quantity at the preset time interval; the specific adjustment method is to obtain the actual usage quantity of the service user terminal at the previous preset time interval, and when the actual usage quantity of the service user terminal divided by the predicted supply quantity is less than the preset lower limit threshold or greater than the preset upper limit threshold, reallocate the predicted supply quantity of the service user terminal for the next preset time interval;

[0075] The communication resource smart contract module is used to write the communication resource dynamic allocation method into a smart contract and implant it into the blockchain network of elevator systems or servers at all levels, so that the elevator system can dynamically allocate communication resources according to the smart contract during operation.

[0076] Furthermore, the system also includes: the working mode of the second communication resource dynamic allocation module is: define the total service user terminal predicted supply quantity as C, and the preset period is ; Subtract the basic end predicted supply quantity A and the emergency end predicted supply quantity B from the total communication resource predicted supply quantity S to obtain the total service end predicted supply quantity C, and obtain the actual usage quantity of the elevator system communication resources for the preset number of times , based on statistics and combined with practical judgment It is random but generally stable. Perform curve fitting to obtain Gaussian function , where a is the peak height of the Gaussian function, b is the center coordinate of the Gaussian function peak, and c is the standard deviation of the distance from the center coordinate; the actual number average of the maximum probability density is obtained by integrating the distance from the center coordinate b within the preset distance range and then dividing it by the distance range , which is calculated as:

[0077] ;

[0078] in is the preset distance from the center coordinate b; the actual number average of the maximum probability density is divided by the redundancy coefficient to obtain the next preset cycle The forecast supply quantity of communication resources is calculated as follows: , where β is the preset redundancy coefficient.

[0079] Furthermore, the system further comprises: the working mode of the communication resource dynamic allocation module 3 is: obtaining the previous preset time interval The actual usage quantity of the service user is divided by the predicted supply quantity to get the communication load rate. When d is less than the preset lower threshold or greater than the preset upper threshold, it is judged that there is an excess or shortage of communication resources on the service user side, and the next time interval is reallocated according to the proportion of the predicted supply quantity on the service user side. The pre-supply quantity is calculated as follows:

[0080] ;

[0081] in They are the preset lower load rate threshold and the preset upper load rate threshold. is the actual amount of communication resources used by the service user. is the predicted allocation of communication resources for the service user in the previous time interval, It is the number of communication resources to be reallocated to the service user end in the next time interval; A is the predicted supply quantity for the basic user end, B is the predicted supply quantity for the emergency user end, and S is the actual supply quantity of communication resources. The communication demand A used to meet basic operation and the communication demand B used to meet emergency situations do not participate in the allocation of the total predicted supply quantity of communication resources but are set to be met with priority.

[0082] Furthermore, the system further comprises: a preset time interval in the communication resource dynamic allocation module 3 The calculation method is: Get the preset time interval The actual number of communication resources used by the service end , calculate the load ratio d of the actual number of communication resources and the predicted number of communication resources. When d is greater than or equal to the preset lower limit threshold and less than the preset upper limit threshold, no communication resource adjustment is performed; when d is less than the preset lower limit threshold or greater than the preset upper limit threshold, the communication system automatically performs dynamic adjustment. The adjustment method is combined with the time interval There is an inverse relationship between the load rate d and the time interval The time interval needs to be established to respond quickly to changes in load rate d Exponential function with load factor d:

[0083] ;

[0084] in is the preset optimal safe load rate and is between the lower threshold and the upper threshold. is the minimum time interval for the system to investigate the communication situation. The purpose of squaring first and then taking the square root is to make the curve The two sides are symmetrically distributed. is the weight coefficient that adjusts the overall scaling of the function, is the weight coefficient that determines the rate at which the function increases or decreases, It is the offset to adjust the starting position of the function; the residual function is established according to the difference between the actual data and the exponential function model, and the optimal weight coefficient is determined by minimizing the sum of squares of the residual function. , and offset ; The calculation method of load rate d is: .

[0085] Furthermore, the system also includes: the working mode of the communication resource dynamic allocation module 1 is: obtaining the total actual usage amount of communication resources of the preset period of the elevator system in different areas And the main factors affecting the actual usage ; Taking the main influencing factors as input values ​​and the actual usage quantity as output values, a mapping relationship between the actual usage quantity of each region and the main influencing factors is established through neural network sample training; obtaining the main factors of the current preset period and obtaining the predicted supply quantity of communication resources based on the mapping relationship, which is calculated as follows:

[0086] ;

[0087] in is the main factor of the current preset cycle, is the weight from the input layer to the hidden layer, is the hidden layer bias, is the activation function; is the weight from the hidden layer to the output layer, is the output layer bias.

[0088] It should be noted that, regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

Claims

1. A method for dynamic allocation of communication resources based on blockchain, characterized in that: The method comprises: Obtain the actual usage quantity of communication resources in the preset period of the elevator system in different areas and the main influencing factors affecting the actual usage quantity, take the main influencing factors as input values ​​and the actual usage quantity as output values ​​through neural network sample training to establish the mapping relationship between the actual usage quantity and the main influencing factors in each area, and dynamically adjust the predicted supply quantity of communication resources in the next preset period according to the mapping relationship; The actual usage number of service users in the preset period of the elevator system of different buildings is obtained, and the actual usage number of the service users is curve-fitted to obtain a Gaussian function. The average value of the actual usage number with the largest number of occurrences is calculated as the predicted supply number of communication resources in the next preset period, so that the predicted supply number is pre-allocated in advance according to the actual usage number with the highest probability in the previous preset period; Obtaining the actual usage quantity of different user terminals of the elevator system at preset time intervals, wherein the different user terminals include basic user terminals, emergency user terminals, and service user terminals, wherein the predicted supply quantity of the service user terminal will be dynamically adjusted following the real-time changes of the actual usage quantity at the preset time interval; the specific adjustment method is to obtain the actual usage quantity of the service user terminal at the previous preset time interval, and reallocate the predicted supply quantity of the service user terminal at the next preset time interval when the actual usage quantity of the service user terminal divided by the predicted supply quantity is less than a preset lower limit threshold or greater than a preset upper limit threshold; The communication resource dynamic allocation method is written into a smart contract and implanted into the blockchain network of elevator systems or servers at all levels, so that the elevator system can dynamically allocate communication resources according to the smart contract during operation; The method of pre-allocating the predicted supply quantity in advance by following the actual usage quantity with the maximum probability in the previous preset period is as follows: define the total service user predicted supply quantity as C, and the preset period as ; Subtract the basic end predicted supply quantity A and the emergency end predicted supply quantity B from the total communication resource predicted supply quantity S to obtain the total service end predicted supply quantity C, and obtain the actual usage quantity of the elevator system communication resources for the preset number of times , based on statistics and combined with practical judgment It is random but generally stable. Perform curve fitting to obtain Gaussian function , where a is the peak height of the Gaussian function, b is the center coordinate of the Gaussian function peak, and c is the standard deviation of the distance from the center coordinate; the actual number average of the maximum probability density is obtained by integrating the distance from the center coordinate b within the preset distance range and then dividing it by the distance range , which is calculated as: ; in is the preset distance from the center coordinate b; the actual number average of the maximum probability density is divided by the redundancy coefficient to obtain the next preset cycle The forecast supply quantity of communication resources is calculated as follows: , where β is the preset redundancy coefficient; The service user predicts that the supply quantity will be dynamically adjusted according to the real-time changes in the actual usage quantity at the preset time interval by obtaining the previous preset time interval. The actual usage quantity of the service user is divided by the predicted supply quantity to get the communication load rate. When d is less than the preset lower threshold or greater than the preset upper threshold, it is judged that there is an excess or shortage of communication resources on the service user side, and the next time interval is reallocated according to the proportion of the predicted supply quantity on the service user side. The pre-supply quantity is calculated as follows: ; in They are the preset lower load rate threshold and the preset upper load rate threshold. is the actual amount of communication resources used by the service user. is the predicted allocation of communication resources for the service user in the previous time interval, It is the number of communication resources to be reallocated to the service user end in the next time interval; A is the predicted supply quantity for the basic user end, B is the predicted supply quantity for the emergency user end, and S is the actual supply quantity of communication resources. The communication demand A used to meet basic operation and the communication demand B used to meet emergency situations do not participate in the allocation of the total predicted supply quantity of communication resources but are set to be met with priority.

2. A method for dynamic allocation of communication resources based on blockchain as claimed in claim 1, characterized in that: The preset time interval The calculation method is: Get the preset time interval The actual number of communication resources used by the service after , calculate the load ratio d of the actual number of communication resources and the predicted number of communication resources. When d is greater than or equal to the preset lower limit threshold and less than the preset upper limit threshold, no communication resource adjustment is performed; when d is less than the preset lower limit threshold or greater than the preset upper limit threshold, the communication system automatically performs dynamic adjustment. The adjustment method is combined with the time interval There is an inverse relationship between the load rate d and the time interval The time interval needs to be established to respond quickly to changes in load rate d Exponential function with load factor d: ; in is the preset optimal safe load rate and is between the lower threshold and the upper threshold. is the minimum time interval for the system to investigate the communication situation. The purpose of squaring first and then taking the square root is to make the curve The two sides are symmetrically distributed. is the weight coefficient that adjusts the overall scaling of the function, is the weight coefficient that determines the rate at which the function increases or decreases, It is the offset to adjust the starting position of the function; the residual function is established according to the difference between the actual data and the exponential function model, and the optimal weight coefficient is determined by minimizing the sum of squares of the residual function. , and offset ; The calculation method of load factor d is: .

3. A method for dynamic allocation of communication resources based on blockchain as claimed in claim 1, characterized in that: The method of taking the main influencing factors as input values ​​and the actual usage quantity as output values ​​to establish a mapping relationship between the actual usage quantity of each area and the main influencing factors through neural network sample training and dynamically adjusting the predicted supply quantity of communication resources for the next preset period according to the mapping relationship is as follows: the total actual usage quantity of communication resources for the preset period of the elevator system in different areas is obtained as And the main factors affecting the actual usage ; Taking the main influencing factors as input values ​​and the actual usage quantity as output values, a mapping relationship between the actual usage quantity of each region and the main influencing factors is established through neural network sample training; obtaining the main factors of the current preset period and obtaining the predicted supply quantity of communication resources based on the mapping relationship, which is calculated as follows: ; in is the main factor of the current preset cycle, is the weight from the input layer to the hidden layer, is the hidden layer bias, is the activation function; is the weight from the hidden layer to the output layer, is the output layer bias.

4. A communication resource dynamic allocation system based on blockchain, characterized in that: The system comprises: The first communication resource dynamic allocation module is used to obtain the actual usage quantity of communication resources in the preset period of the elevator system in different areas and the main influencing factors affecting the actual usage quantity, take the main influencing factors as input values ​​and the actual usage quantity as output values, and establish the mapping relationship between the actual usage quantity and the main influencing factors in each area through neural network sample training, and dynamically adjust the predicted supply quantity of communication resources in the next preset period according to the mapping relationship; The second communication resource dynamic allocation module is used to obtain the actual usage quantity of the service user end in the preset period of the elevator system of different buildings, and to obtain a Gaussian function by curve fitting the actual usage quantity of the service user end, and to calculate the average value of the actual usage quantity with the most occurrences as the predicted supply quantity of communication resources in the next preset period, so as to realize the pre-allocation of the predicted supply quantity in advance by following the actual usage quantity with the maximum probability in the previous preset period; The communication resource dynamic allocation module three is used to obtain the actual usage quantity of different user terminals of the elevator system at preset time intervals, wherein the different user terminals include basic user terminals, emergency user terminals and service user terminals, wherein the predicted supply quantity of the service user terminal will be dynamically adjusted following the real-time changes of the actual usage quantity at the preset time interval; the specific adjustment method is to obtain the actual usage quantity of the service user terminal at the previous preset time interval, and when the actual usage quantity of the service user terminal divided by the predicted supply quantity is less than the preset lower limit threshold or greater than the preset upper limit threshold, reallocate the predicted supply quantity of the service user terminal for the next preset time interval; A communication resource smart contract module is used to write the communication resource dynamic allocation method into a smart contract and implant it into the blockchain network of elevator systems or servers at all levels, so that the elevator system can dynamically allocate communication resources according to the smart contract during operation; The working method of the communication resource dynamic allocation module 2 is: define the total service user end predicted supply quantity as C, and the preset period is ; Subtract the basic end predicted supply quantity A and the emergency end predicted supply quantity B from the total communication resource predicted supply quantity S to obtain the total service end predicted supply quantity C, and obtain the actual usage quantity of the elevator system communication resources for the preset number of times , based on statistics and combined with practical judgment It is random but generally stable. Perform curve fitting to obtain Gaussian function , where a is the peak height of the Gaussian function, b is the center coordinate of the Gaussian function peak, and c is the standard deviation of the distance from the center coordinate; the actual number average of the maximum probability density is obtained by integrating the distance from the center coordinate b within the preset distance range and then dividing it by the distance range , which is calculated as: ; in is the preset distance from the center coordinate b; the actual number average of the maximum probability density is divided by the redundancy coefficient to obtain the next preset cycle The forecast supply quantity of communication resources is calculated as follows: , where β is the preset redundancy coefficient; The working mode of the communication resource dynamic allocation module 3 is: obtaining the previous preset time interval The actual usage quantity of the service user is divided by the predicted supply quantity to get the communication load rate. When d is less than the preset lower threshold or greater than the preset upper threshold, it is judged that there is an excess or shortage of communication resources on the service user side, and the next time interval is reallocated according to the proportion of the predicted supply quantity on the service user side. The pre-supply quantity is calculated as follows: ; in They are the preset lower load rate threshold and the preset upper load rate threshold. is the actual amount of communication resources used by the service user. is the predicted allocation of communication resources for the service user in the previous time interval, It is the number of communication resources to be reallocated to the service user end in the next time interval; A is the predicted supply quantity for the basic user end, B is the predicted supply quantity for the emergency user end, and S is the actual supply quantity of communication resources. The communication demand A used to meet basic operation and the communication demand B used to meet emergency situations do not participate in the allocation of the total predicted supply quantity of communication resources but are set to be met with priority.

5. A blockchain-based communication resource dynamic allocation system as claimed in claim 4, characterized in that: The communication resource dynamic allocation module 3 presets the time interval The calculation method is: Get the preset time interval The actual number of communication resources used by the service after , calculate the load ratio d of the actual number of communication resources and the predicted number of communication resources. When d is greater than or equal to the preset lower limit threshold and less than the preset upper limit threshold, no communication resource adjustment is performed; when d is less than the preset lower limit threshold or greater than the preset upper limit threshold, the communication system automatically performs dynamic adjustment. The adjustment method is combined with the time interval There is an inverse relationship between the load rate d and the time interval The time interval needs to be established to respond quickly to changes in load rate d Exponential function with load factor d: ; in is the preset optimal safe load rate and is between the lower threshold and the upper threshold. is the minimum time interval for the system to investigate the communication situation. The purpose of squaring first and then taking the square root is to make the curve The two sides are symmetrically distributed. is the weight coefficient that adjusts the overall scaling of the function, is the weight coefficient that determines the rate at which the function increases or decreases, It is the offset to adjust the starting position of the function; the residual function is established according to the difference between the actual data and the exponential function model, and the optimal weight coefficient is determined by minimizing the sum of squares of the residual function. , and offset ; The calculation method of load factor d is: .

6. A blockchain-based communication resource dynamic allocation system as claimed in claim 4, characterized in that: The working mode of the communication resource dynamic allocation module 1 is: obtaining the total actual usage amount of communication resources of the elevator system in different areas during the preset period is And the main factors affecting the actual usage ; Taking the main influencing factors as input values ​​and the actual usage quantity as output values, a mapping relationship between the actual usage quantity of each region and the main influencing factors is established through neural network sample training; obtaining the main factors of the current preset period and obtaining the predicted supply quantity of communication resources based on the mapping relationship, which is calculated as follows: ; in is the main factor of the current preset cycle, is the weight from the input layer to the hidden layer, is the hidden layer bias, is the activation function; is the weight from the hidden layer to the output layer, is the output layer bias.