Base station multi-channel data processing method, device, Internet of Things platform and medium
By receiving device messages in the base station, calculating processing priority and processing them in a channel-by-channel processing, combined with a new distance estimation method, the problems of low efficiency of device message processing and inaccurate distance estimation in the prior art are solved, and efficient and accurate device messages are achieved Processing and distance estimation.
Patent Information
- Application Number
- CN202311663982.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2043-12-06
AI Technical Summary
The prior art has problems of low efficiency and insufficient accuracy when processing device messages and estimating device distances, especially the single-channel processing method results in duplicate messages and delayed processing, and the traditional distance estimation method fails to consider signal strength and device movement speed, etc. factor.
Receive the message data of the device through the base station, obtain historical session data based on the device identification, calculate the current base station load and message processing priority, and compare it with the priority threshold, and process high priority and low priority through fast channel and slow channel respectively Message, while using a new distance estimation method, considering signal strength and device movement speed.
The accuracy of estimation of the distance between the device and the base station is achieved, the efficiency of the base station processing equipment messages is improved, and the smooth and efficient communication is ensured.
Smart Images

Figure CN117692404B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a base station multi-channel data processing method, device, Internet of Things platform and medium. Background Art
[0002] In existing wireless communication technologies, base stations typically need to process a large number of device RADIUS / CHF messages. These messages contain detailed information about the communication between the device and the base station, such as the send time, receive time, and device ID. The base station needs to process this information to ensure smooth and efficient communication.
[0003] When processing device messages, existing technologies typically use a single-channel approach. This means that base stations process messages sequentially in the order they are received. However, this approach presents several issues. First, because a single message may be received by multiple base stations, the central processor may receive duplicate messages, affecting processing efficiency. Second, this approach fails to consider message priority, potentially delaying the processing of high-priority messages.
[0004] Furthermore, existing technologies typically use a fixed method to estimate the distance between a device and a base station. This method typically calculates the transmission delay between the device's transmission time and the base station's reception time, and then estimates the distance based on the transmission delay. However, this method does not take into account various factors in wireless communication, such as signal strength and device speed, and may therefore not accurately estimate the device's priority relative to the base station. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to propose a base station multi-channel data processing method, device, Internet of Things platform and medium to solve the problems existing in the prior art when processing device messages and estimating device distances, to accurately estimate the distance between the device and the base station, and to improve the efficiency of the base station in processing device messages.
[0006] In order to solve the above technical problems, an embodiment of the present application provides a base station multi-channel data processing method, including:
[0007] Receive message data of the device through the base station;
[0008] Retrieving historical session data from a cache based on an identifier of the device;
[0009] Calculating a current base station load, and calculating a message processing priority of the message data based on the historical session data and the current base station load;
[0010] Obtaining a priority threshold of a current base station, and comparing the message processing priority with the priority threshold;
[0011] The message data whose message processing priority is greater than the priority threshold is processed through a fast channel, and the message data whose message processing priority is less than or equal to the priority threshold is processed through a slow channel.
[0012] In order to solve the above technical problems, an embodiment of the present application provides a base station multi-channel data processing device, including:
[0013] A message data acquiring unit, configured to receive message data of a device via a base station;
[0014] a historical session data acquisition unit, configured to acquire historical session data from a cache based on an identifier of the device;
[0015] a message priority calculation unit, configured to calculate a current base station load and calculate a message processing priority of the message data based on the historical session data and the current base station load;
[0016] a priority comparison unit, configured to obtain a priority threshold of a current base station and compare the message processing priority with the priority threshold;
[0017] The message data processing unit is used to process the message data whose message processing priority is greater than the priority threshold through a fast channel, and to process the message data whose message processing priority is less than or equal to the priority threshold through a slow channel.
[0018] To solve the above technical problems, a technical solution adopted by the present invention is: to provide an Internet of Things platform, including one or more processors; a memory for storing one or more programs, so that the one or more processors can implement any one of the above-mentioned base station multi-channel data processing methods.
[0019] To solve the above technical problems, a technical solution adopted by the present invention is: a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements any one of the above-mentioned base station multi-channel data processing methods.
[0020] The embodiment of the present invention provides a base station multi-channel data processing method, device, Internet of Things platform and medium. The method includes: receiving message data of a device through a base station; obtaining historical session data from a cache based on the identifier of the device; calculating the current base station load, and calculating the message processing priority of the message data based on the historical session data and the current base station load; obtaining the priority threshold of the current base station, and comparing the message processing priority with the priority threshold; processing the message data whose message processing priority is greater than the priority threshold through a fast channel, and processing the message data whose message processing priority is less than or equal to the priority threshold through a slow channel. The embodiment of the present invention solves the problems existing in the prior art in processing device messages and estimating device distances by calculating the message processing priority and comparing the message priority processing priority with the priority threshold, so as to process the message data according to different channels, thereby achieving accurate estimation of the distance between the device and the base station, and improving the efficiency of the base station in processing device messages. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the solutions in this application, a brief introduction will be given below to the drawings required for use in the description of the embodiments of this application. Obviously, the drawings described below are some embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 This is a flowchart of the implementation of the base station multi-channel data processing method provided in an embodiment of the present application;
[0023] Figure 2 This is a flowchart of the implementation of the sub-process in the base station multi-channel data processing method provided in the embodiment of the present application;
[0024] Figure 3 This is a flowchart of the implementation of the sub-process in the base station multi-channel data processing method provided in the embodiment of the present application;
[0025] Figure 4 This is a flowchart of the implementation of the sub-process in the base station multi-channel data processing method provided in the embodiment of the present application;
[0026] Figure 5 This is a flowchart of the implementation of the sub-process in the base station multi-channel data processing method provided in the embodiment of the present application;
[0027] Figure 6 This is a flowchart of the implementation of the sub-process in the base station multi-channel data processing method provided in the embodiment of the present application;
[0028] Figure 7Schematic diagram of a multi-channel data processing device for a base station provided in an embodiment of the present application;
[0029] Figure 8 Schematic diagram of the Internet of Things platform provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application are for the purpose of describing specific embodiments only and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0031] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0033] The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
[0034] It should be noted that the base station multi-channel data processing method provided in the embodiment of the present application is generally executed on an Internet of Things platform. Accordingly, the base station multi-channel data processing device is generally configured in the Internet of Things platform.
[0035] See also Figure 1 , Figure 1 A specific implementation of a base station multi-channel data processing method is shown.
[0036] It should be noted that the method of the present invention is not limited to the method of Figure 1 The process sequence shown is limited to the following steps:
[0037] S1: Receive message data from the device through the base station.
[0038] Specifically, embodiments of the present application receive message data from a device via a base station, which is a RADIUS / CHF message. Message data is a detailed record of communications between a device and the base station, including information such as the send time, receive time, and device ID. In wireless communications, a base station is a fixed communication device used to connect mobile devices to a communications network. Embodiments of the present application receive and send wireless signals via the base station and process message data from the device.
[0039] S2: Obtain historical session data from a cache based on the identifier of the device.
[0040] Specifically, historical session data is retrieved from the cache based on the identified identifier. The historical session data includes a set of historical message data. Each message in the set is received by multiple base stations. Each message includes a message sending time and a message receiving time. The message receiving time refers to the time when the base station receives the message data.
[0041] S3: Calculate the current base station load, and calculate the message processing priority of the message data according to the historical session data and the current base station load.
[0042] See also Figure 2 , Figure 2 A specific implementation of step S3 is shown, which is described in detail as follows:
[0043] S31: Obtain an estimated distance between the device and the base station based on the historical session data.
[0044] Specifically, in the embodiment of the present application, it is necessary to calculate the estimated distance between the device and the base station in order to subsequently calculate the message weight. This distance estimate is updated in real time by a separate service as the message data is updated.
[0045] See also Figure 3 , Figure 3 A specific implementation of step S31 is shown, which is described in detail as follows:
[0046] S311: Calculate the message sending delay based on the message sending time and the message receiving time of any of the historical message data, and compare the message sending delay with the delay mean and variance accumulated by the current base station to determine whether the historical message data meets the first preset requirement.
[0047] Specifically, the message sending time sT and the message receiving time rT are obtained; the difference between the message receiving time rT and the message sending time sT is used as the message sending delay rT-sT; the message sending delay rT-sT is compared with the delay mean mD and variance vD accumulated by the current base station, and if it exceeds the preset value, If the message delay is too long, the historical message data corresponding to the message delay will be discarded; if it does not exceed the preset value, (first preset requirement), then execute step S312.
[0048] S312: If the first preset requirement is met, the accumulated delay data of the current base station is updated based on the message sending delay. If the base station data processing of the same message sent by the current base station is completed, a delay list is obtained.
[0049] Specifically, if the first preset requirement is met, the accumulated delay data of the current base station is updated based on the message sending delay, and the updating method is as follows:
[0050] mD=(1-α)*mD+α*(rT-sT);
[0051] vD=(1-α)*vD+α*(rT-sT-mD)^2;
[0052] Here, α is the learning rate.
[0053] All base station data that receive the same message sent by the device are processed in the same way to obtain the delay list rTn-sTn.
[0054] S313: Taking the minimum value in the delay list as the target delay value, and taking the difference between the message sending delay and the target delay value as the target transmission delay.
[0055] S314: Perform iterative positioning processing based on the transmission delay, and when the iterative processing is completed, generate an initial estimated value of the position of the single message data.
[0056] Specifically, based on the data convergence message transmission error of multiple base stations, the lowest delay rT-sT value is taken from the delay list as the target transmission delay dT, and this target transmission delay dT is considered to be the transmission time with the lowest transmission delay. In the embodiment of the present application, this dT is used as the processing delay of the base station. The first positioning iteration is entered by subtracting the minimum dT value from the other dTs as the transmission delay estimate. When the iterative processing is completed, an initial estimate of the position of the single message data is generated.
[0057] See also Figure 4 , Figure 4 A specific implementation of step S314 is shown, which is described in detail as follows:
[0058] S3141: Initialize the parameters of the action value function.
[0059] Specifically, the parameters of the action-value function are initialized. The action-value function is a Q-table, Q(s,a). The parameters include the action S, the state a, and the reward r. The state is the current position estimate, represented by two-dimensional coordinates (x,y). The action S is to move from the current position to a new position, represented by a vector (dx,dy), where dx and dy represent the movement distance on the x-axis and y-axis, respectively. The reward r is a value inversely proportional to the position estimation error. For example, the reward can be represented by 1 / d, where d is the position estimation error.
[0060] Specifically, the Q-table is initialized using the average value of the base station positions of the current received messages as an initial estimate.
[0061] S3142: Use the ε-greedy strategy to randomly select an initial action, execute the initial action, and obtain a new state and reward.
[0062] Specifically, an action is selected. This action can be the one that maximizes Q(s, a) or a random action. In one specific embodiment, an ε-greedy strategy can be introduced, where a random action is selected with probability ε and the action that maximizes Q(s, a) is selected with probability 1-ε. The initial action a is executed, resulting in a new state s' and a reward r. The reward r can be set to be inversely proportional to the position estimation error.
[0063] S3143: Update the action-value function based on the new state and reward to obtain an updated action-value function, and calculate the position error after the updated action-value function.
[0064] Specifically, update the action value function Q-table using the following formula:
[0065] Q(s,a)=Q(s,a)+α*(r+γ*max_a'Q(s',a')-Q(s,a));
[0066] Among them, α is the learning rate, γ is the discount factor, and max_a'Q(s',a') is the maximum Q value of all actions a' in the new state s'.
[0067] S3144: If the position error does not reach the preset error threshold, the new state is used to update the state in the update action value function, and a new action is obtained again for iterative processing until the obtained position error reaches the preset error threshold. The iterative processing is ended to generate the initial estimated value of the single message data position.
[0068] Specifically, a determination is made as to whether the position error reaches a preset error threshold. If the position error does not reach the preset error threshold, the state s in the update action value function is updated with the new state s', and a new action is re-acquired and iteratively processed until the obtained position error reaches the preset error threshold. The iterative process is terminated, and the initial estimate of the position of the single message data is generated. It should be noted that the preset error threshold is set based on actual conditions and is not limited here.
[0069] S315: Based on the initial estimated value and the transmission delay of each base station, the transmission delay is compared with the target transmission delay to determine whether the initial estimated value meets a second preset requirement.
[0070] Specifically, after obtaining an initial estimate of the location of a single message, the transmission delay dT' with each base station is calculated using this location and compared to the target transmission delay dT. If the difference between the two is greater than two standard deviations of the overall transmission delay (the second preset requirement), indicating that the second preset requirement is not met, the position estimate is iteratively calculated again, using the current estimate of the transmission time to the nearest base station as the processing delay until the error meets the requirement.
[0071] S316: If the second preset requirement is met, outlier processing is performed on the initial estimated value based on the trained One-Class SVM model, and the average value of the initial estimated value after outlier processing is calculated based on a preset time threshold to obtain the distance estimation value.
[0072] Specifically, if the second preset requirement is met, the initial estimated value is processed for outliers based on the trained One-Class SVM model, and the average value of the initial estimated value after outlier processing is calculated based on the preset time threshold to obtain the distance estimate.
[0073] The One-Class SVM model training process is as follows: A One-Class SVM model is trained using all the location estimation data. This model is used to make predictions for new location estimation data. If a location estimation data is judged as an outlier by the model, it is discarded. The specific mathematical formula is as follows:
[0074] Training model: min_w,b,ξ1 / 2*||w||^2-ρ+1 / νn*∑ξ_i;
[0075] stw^Tφ(x_i)≥ρ-ξ_i,ξ_i≥0;
[0076] Where w is the weight of the model, b is the bias, ξ is the slack variable, ρ is the threshold of the decision function, ν is the ratio of the upper bound of the outlier to the lower bound of the support vector, n is the number of samples, φ is the kernel function, and x_i is the sample data.
[0077] Predict outliers: sign(w^Tφ(x)-ρ);
[0078] If sign(w^Tφ(x)-ρ)<0, x is judged as an outlier.
[0079] Finally, after the final location estimate is obtained by integrating multiple historical message data, the estimated distance between the device and each base station is sent to the designated base station to calculate the message weight.
[0080] S32: Calculate the current base station load, and calculate the priority of each base station based on the distance estimation value, the historical session data and the current base station load.
[0081] Specifically, in an embodiment of the present application, the current base station and device are modeled based on the distance estimation value, historical session data and the current base station load to design a weighted base station-area map, thereby calculating the priority of each base station.
[0082] See also Figure 5 , Figure 5 A specific implementation of step S32 is shown, which is described in detail as follows:
[0083] S321: Obtain current signal strength, and calculate a message weight of each historical message data in the historical conversation data based on the current signal strength and the distance estimation value.
[0084] S322: Calculate the current base station load based on the message weight, the message sending time, and the message receiving time.
[0085] In this embodiment, the input is a historical message data set M = {M1, M2, ..., Mn}. Each historical message data Mi is received by Ni base stations {S1, S2, ..., Sn} and transmitted to the central processor. The base station locations are {(X1, Y1), (X2, Y2), ..., (Xn, Yn)}, the message sending time is t0, and the message receiving time is {t1, t2, ..., tn}.
[0086] Each base station needs to be initialized, which allocates an initial load Lj=0 to each base station Sj, which can be understood as the current processing capacity of the base station.
[0087] Specifically, for each historical message, the current signal strength s is obtained. Based on the current signal strength s and the estimated distance d, the message weight W of each message in the historical session data is calculated using the formula: W = exp(-d^2 / (2*s^2)). The current base station load Lj is then calculated based on the message weight W, the message sending time t0, and the message receiving time tj: Lj = tj - t0 + W.
[0088] S323: Calculate the overlapping area between each base station and a neighboring base station based on the current base station load, and calculate the priority of each base station based on the overlapping area.
[0089] See also Figure 6 , Figure 6 A specific implementation of step S323 is shown, which is described in detail as follows:
[0090] S3231: Calculate the coverage area of each base station based on the current base station load.
[0091] S3232: Calculate the overlapping area between each of the base stations and the neighboring base stations based on the coverage area.
[0092] S3233: Calculate the load of the overlapping area, and update the load of the current base station and the load of the neighboring base station based on the load of the overlapping area.
[0093] S3234: Calculate the priority of each base station based on the updated load of the current base station and the load of the neighboring base stations.
[0094] Specifically, the coverage area Aj of each base station Sj is calculated; this coverage area Aj can be understood as the set of messages that the base station can receive. In this scenario, coverage area Aj is defined as the set of all messages received by base station Sj. For each neighbor Sk of base station Sj (i.e., base stations that receive the same messages as Sj), the overlap area Ojk is calculated. This can be understood as the set of identical messages received by Sj and Sk.
[0095] Perform the following operations on each overlapping region Ojk:
[0096] Calculate the load Ljk of the overlapping area Ojk, which is a numerical value that represents the communication load within the overlapping area. Ljk can be calculated by the loads Lj and Lk of base stations Sj and Sk, for example, Ljk = (Lj + Lk) / 2. Then update the loads of base stations Sj and Sk so that their loads within the overlapping area Ojk are as even as possible. For example, the load Ljk of the overlapping area Ojk can be evenly distributed to base stations Sj and Sk, that is, Lj = Lj + Ljk / 2, and Lk = Lk + Ljk / 2. The priority of the base station is calculated as Pj = 1 / Lj, thereby calculating the priority of each base station.
[0097] S33: Send the priority of each base station to the corresponding base station to obtain the message processing priority.
[0098] Specifically, the above steps have calculated the priority of each base station. In the embodiment of the present application, the priority of each base station is sent to the corresponding base station to obtain the message processing priority.
[0099] S4: Obtain the priority threshold of the current base station, and compare the message processing priority with the priority threshold.
[0100] Specifically, the priority threshold T of the current base station is obtained, and the message processing priority P is compared with the priority threshold, so as to separate the message data into different channels for processing.
[0101] S5: Processing the message data whose message processing priority is greater than the priority threshold through a fast channel, and processing the message data whose message processing priority is less than or equal to the priority threshold through a slow channel.
[0102] Specifically, when the message processing priority P is greater than the priority threshold T, it enters the fast channel for processing. When the message processing priority P is less than the priority threshold T, it enters the slow channel. The processing logic is to process fast channel messages according to priority when there are messages on the fast channel, and process slow channel messages after all fast channel messages have been processed.
[0103] S6: When the message data processing is completed, the average value of all message processing priorities is calculated to obtain a priority mean.
[0104] Specifically, when the message data processing is completed, the average value of all message processing priorities is calculated to obtain the priority average value P_avg.
[0105] S7: Using a preset formula to update the priority threshold based on the priority mean.
[0106] Specifically, the priority threshold is updated based on the priority mean using a preset formula, wherein the preset formula is T=T1+α*(P_avg-T1), wherein α is the learning rate, T1 is the priority threshold, and T is the updated priority threshold.
[0107] In an embodiment of the present application, a base station receives message data of a device; historical session data is obtained from a cache based on the identifier of the device; the current base station load is calculated, and the message processing priority of the message data is calculated based on the historical session data and the current base station load; the priority threshold of the current base station is obtained, and the message processing priority is compared with the priority threshold; the message data whose message processing priority is greater than the priority threshold is processed through a fast channel, and the message data whose message processing priority is less than or equal to the priority threshold is processed through a slow channel. The embodiment of the present invention calculates the message processing priority and compares the message priority with the priority threshold to process the message data according to different channels, thereby solving the problems existing in the prior art in processing device messages and estimating device distances, and accurately estimating the distance between the device and the base station, which is conducive to improving the efficiency of the base station in processing device messages. The embodiment of the present application effectively solves the problems existing in the prior art in processing device messages and estimating device distances by introducing a fast and slow channel processing mechanism, an innovative message priority P calculation logic, and a new device distance estimation method, significantly improving the efficiency of the base station in processing device messages, accurately estimating the distance between the device and the base station, and thus greatly improving the efficiency and quality of wireless communication.
[0108] Please refer to Figure 7 , as a response to the above Figure 1 The present application provides an embodiment of a base station multi-channel data processing device. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to the Internet of Things platform.
[0109] like Figure 7 As shown, the base station multi-channel data processing device of this embodiment includes: a message data acquisition unit 81, a historical session data acquisition unit 82, a message priority calculation unit 83, a priority comparison unit 84, a message data processing unit 85, a priority mean calculation unit 86 and a priority threshold updating unit 87, wherein:
[0110] A message data acquiring unit 81 is configured to receive message data of a device via a base station;
[0111] A historical session data acquisition unit 82, configured to acquire historical session data from a cache based on the device identifier;
[0112] a message priority calculation unit 83, configured to calculate a current base station load and calculate a message processing priority of the message data based on the historical session data and the current base station load;
[0113] a priority comparison unit 84, configured to obtain a priority threshold of a current base station and compare the message processing priority with the priority threshold;
[0114] a message data processing unit 85 configured to process the message data whose message processing priority is greater than the priority threshold through a fast channel, and to process the message data whose message processing priority is less than or equal to the priority threshold through a slow channel;
[0115] a priority average calculation unit 86 for calculating the average of all message processing priorities when the message data processing is completed to obtain a priority average;
[0116] The priority threshold updating unit 87 is configured to update the priority threshold based on the priority mean using a preset formula.
[0117] Furthermore, the historical conversation data includes a historical message data set, each historical message data in the historical message data set is received by multiple base stations, and each historical message data includes a message sending time and a message receiving time; the message priority calculation unit 83 includes:
[0118] a distance estimation value calculation unit, configured to obtain a distance estimation value between the device and the base station based on the historical session data;
[0119] a priority calculation unit, configured to calculate the current base station load and calculate the priority of each base station based on the distance estimation value, the historical session data, and the current base station load;
[0120] The priority obtaining unit is configured to send the priority of each base station to the corresponding base station to obtain the message processing priority.
[0121] Furthermore, the distance estimation value calculation unit includes:
[0122] a first preset requirement determination unit, configured to calculate a message sending delay based on the message sending time and the message receiving time of any of the historical message data, and compare the message sending delay with a mean and variance of delays accumulated by the current base station to determine whether the historical message data meets the first preset requirement;
[0123] a delay list generating unit, configured to update the accumulated delay data of the current base station based on the message sending delay if the first preset requirement is met, and obtain a delay list if base station data processing of the same message sent by the current base station is completed;
[0124] a target transmission delay generating unit, configured to use the minimum value in the delay list as a target delay value, and use the difference between the message sending delay and the target delay value as a target transmission delay;
[0125] an iterative processing unit, configured to perform iterative positioning processing based on the transmission delay, and generate an initial estimated value of the position of the single message data when the iterative processing is completed;
[0126] a first preset requirement determination unit, configured to determine whether the initial estimated value meets a second preset requirement based on the initial estimated value and the transmission delay of each base station and comparing the transmission delay with the target transmission delay;
[0127] An estimated value mean calculation unit is used to perform outlier processing on the initial estimated value based on the trained One-ClassSVM model if the second preset requirement is met, and calculate the average value of the initial estimated value after outlier processing based on a preset time threshold to obtain the distance estimated value.
[0128] Furthermore, the iterative processing unit includes:
[0129] A parameter initialization unit, configured to initialize parameters of an action-value function, wherein the parameters include an action, a state, and a reward, wherein the state is a current position estimate, the action is moving from the current position to a new position, and the reward is a value inversely proportional to the position estimation error;
[0130] An action selection unit, configured to randomly select an initial action using an ε-greedy strategy and execute the initial action to obtain a new state and reward;
[0131] a position error calculation unit, configured to update the action-value function based on the new state and reward, obtain an updated action-value function, and calculate the position error after the updated action-value function;
[0132] The iteration termination unit is used to update the state in the update action value function with the new state if the position error does not reach the preset error threshold, and re-acquire the new action for iterative processing until the obtained position error reaches the preset error threshold, terminate the iterative processing, and generate the initial estimated value of the single message data position.
[0133] Furthermore, the priority calculation unit includes:
[0134] a message weight calculation unit, configured to obtain a current signal strength and calculate a message weight of each of the historical message data in the historical conversation data based on the current signal strength and the distance estimation value;
[0135] A load calculation unit, configured to calculate the current base station load based on the message weight, the message sending time, and the message receiving time;
[0136] The overlapping area calculation unit is configured to calculate the overlapping area between each base station and a neighboring base station based on the current base station load, and calculate the priority of each base station based on the overlapping area.
[0137] Furthermore, the overlapping area calculation unit includes:
[0138] a coverage area calculation unit, configured to calculate the coverage area of each base station based on the current base station load;
[0139] an area calculation unit, configured to calculate an overlapping area between each of the base stations and the neighboring base stations based on the coverage area;
[0140] a load updating unit, configured to calculate the load of the overlapping area, and update the load of the current base station and the load of the neighboring base station based on the load of the overlapping area;
[0141] The priority generation unit is configured to calculate the priority of each base station based on the updated load of the current base station and the load of the neighboring base stations.
[0142] To solve the above technical problems, the present application embodiment also provides an Internet of Things platform. Figure 8 , Figure 8 This is a basic structural diagram of the Internet of Things platform in this embodiment.
[0143] The Internet of Things platform 9 includes a memory 91, a processor 92, and a network interface 93 that are interconnected through a system bus. It should be noted that the figure only shows an Internet of Things platform 9 with three components: a memory 91, a processor 92, and a network interface 93. However, it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the Internet of Things platform here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0144] The memory 91 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, magnetic disk, optical disk, etc. In some embodiments, the memory 91 may be an internal storage unit of the IoT platform 9, such as the hard disk or memory of the IoT platform 9. In other embodiments, the memory 91 may also be an external storage device of the IoT platform 9, such as a plug-in hard disk, smart memory card (SMC), secure digital (SD) card, flash memory card, etc. equipped on the IoT platform 9. Of course, the memory 91 may also include both the internal storage unit of the IoT platform 9 and its external storage devices. In this embodiment, the memory 91 is generally used to store the operating system and various application software installed on the IoT platform 9, such as the program code of the base station multi-channel data processing method. In addition, the memory 91 may also be used to temporarily store various types of data that have been output or are about to be output.
[0145] In some embodiments, the processor 92 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 92 is generally used to control the overall operation of the IoT platform 9. In this embodiment, the processor 92 is used to execute program code stored in the memory 91 or process data, such as executing the program code of the above-mentioned base station multi-channel data processing method to implement various embodiments of the base station multi-channel data processing method.
[0146] The network interface 93 may include a wireless network interface or a wired network interface. The network interface 93 is generally used to establish a communication connection between the Internet of Things platform 9 and other electronic devices.
[0147] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores a computer program. The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned base station multi-channel data processing method.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of each embodiment of the present application.
[0149] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions described in the aforementioned specific embodiments, or to make equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the present application specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present application.
Claims
1. A base station multi-channel data processing method, characterized in that: include: Receive message data of the device through multiple base stations; Retrieving historical session data from a cache based on an identification of the device; Calculating a current base station load, and calculating a message processing priority of the message data according to the historical session data and the current base station load, wherein the current base station is any one of the multiple base stations; Obtaining a priority threshold of a current base station, and comparing the message processing priority with the priority threshold; Processing the message data whose message processing priority is greater than the priority threshold through a fast channel, and processing the message data whose message processing priority is less than or equal to the priority threshold through a slow channel; The historical session data includes a historical message data set, each historical message data in the historical message data set is received by multiple base stations, and each historical message data includes a message sending time and a message receiving time; the calculating the current base station load, and calculating the message processing priority of the message data according to the historical session data and the current base station load, includes: Obtaining an estimated distance between the device and each of the base stations according to the historical session data; Calculating the current base station load, and calculating the priority of each base station based on the distance estimation value, the historical session data and the current base station load; The priority of each base station is sent to the corresponding base station to obtain the message processing priority.
2. The base station multi-channel data processing method according to claim 1, characterized in that: The obtaining, according to the historical session data, an estimated distance value between the device and each of the base stations comprises: Calculating a message sending delay based on the message sending time and the message receiving time of any of the historical message data, and comparing the message sending delay with the delay mean and variance accumulated by the current base station to determine whether the historical message data meets the first preset requirement; If the first preset requirement is met, the accumulated delay data of the current base station is updated based on the message sending delay, and if the base station data processing of the same message sent by the current base station is completed, a delay list is obtained, wherein the same message refers to the same message data sent by the device to different current base stations; Taking the minimum value in the delay list as the target delay value, and taking the difference between the message sending delay and the target delay value as the target transmission delay; Performing iterative positioning processing based on the target transmission delay, and generating an initial estimate of the position of a single message data when the iterative processing is completed; Calculating the transmission delay of each base station based on the initial estimated value, and comparing the transmission delay with the target transmission delay to determine whether the initial estimated value meets a second preset requirement; If the second preset requirement is met, outlier processing is performed on the initial estimate based on the trained One-Class SVM model, and the average value of the initial estimate after outlier processing is calculated based on a preset time threshold to obtain the distance estimate.
3. The base station multi-channel data processing method according to claim 2, characterized in that: The performing iterative positioning processing based on the target transmission delay, and generating an initial estimated value of a single message data position when the iterative processing is completed, comprises: Initialize the parameters of the action-value function, wherein the parameters include action, state, and reward, the state is the current position estimate, the action is to move from the current position to a new position, and the reward is a value inversely proportional to the position estimation error; Use the ε-greedy strategy to randomly select an initial action, and execute the initial action to obtain a new state and reward; Update the action-value function based on the new state and reward to obtain an updated action-value function, and calculate the position error after the updated action-value function; If the position error does not reach the preset error threshold, the new state is used to update the state in the update action value function, and a new action is re-acquired for iterative processing until the obtained position error reaches the preset error threshold. The iterative processing is terminated to generate the initial estimate of the position of a single message data.
4. The base station multi-channel data processing method according to claim 1, characterized in that: The calculating the current base station load and calculating the priority of each base station based on the distance estimation value, the historical session data and the current base station load includes: Acquire a current signal strength, and calculate a message weight of each of the historical message data in the historical conversation data based on the current signal strength and the distance estimation value; Calculating the current base station load based on the message weight, the message sending time, and the message receiving time; An overlapping area between each base station and a neighboring base station is calculated based on the current base station load, and a priority of each base station is calculated based on the overlapping area.
5. The base station multi-channel data processing method according to claim 4, characterized in that: The calculating the overlapping area between each base station and a neighboring base station based on the current base station load, and calculating the priority of each base station based on the overlapping area, includes: Calculating the coverage area of each base station based on the current base station load; Calculate the overlapping area between each of the base stations and the neighboring base stations based on the coverage area; Calculating the load of the overlapping area, and updating the current base station load and the neighbor base station load based on the load of the overlapping area; The priority of each base station is calculated based on the updated current base station load and the neighbor base station load.
6. The base station multi-channel data processing method according to any one of claims 1 to 5, characterized in that: After processing the message data whose message processing priority is greater than the priority threshold through a fast channel, and processing the message data whose message processing priority is less than or equal to the priority threshold through a slow channel, the method further includes: When the message data processing is completed, the average value of all message processing priorities is calculated to obtain a priority mean; The priority threshold is updated based on the priority mean using a preset formula.
7. A base station multi-channel data processing device, characterized in that: include: A message data acquisition unit, used for receiving message data of a device through a plurality of base stations; A historical session data acquisition unit, configured to acquire the historical session data from a cache based on the identifier of the device; a message priority calculation unit, configured to calculate a current base station load, and calculate a message processing priority of the message data according to the historical session data and the current base station load, wherein the current base station is any one of the multiple base stations; A priority comparison unit, used to obtain a priority threshold of a current base station, and compare the message processing priority with the priority threshold; a message data processing unit, configured to process the message data whose message processing priority is greater than the priority threshold through a fast channel, and to process the message data whose message processing priority is less than or equal to the priority threshold through a slow channel; The historical session data includes a historical message data set, each historical message data in the historical message data set is received by multiple base stations, and the message priority calculation unit includes: a distance estimation value calculation unit, configured to obtain a distance estimation value between the device and each of the base stations according to the historical session data; a priority calculation unit, configured to calculate the current base station load, and calculate the priority of each base station based on the distance estimation value, the historical session data and the current base station load; The priority acquisition unit is used to send the priority of each base station to the corresponding base station to acquire the message processing priority.
8. An Internet of Things platform, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the base station multi-channel data processing method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the base station multi-channel data processing method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method, device and system for controlling Internet of Things equipment
CN112995348A
Data transmission scheduling method of industrial Internet edge Internet of Things gateway
CN116346541A