Enclosed space communication optimization method and related equipment thereof

By using a spatial coordinate system to correct acceleration and generate motion data in elevators, signal attenuation warning and time window analysis are performed. Target base stations are identified in advance and pre-synchronization processing is carried out, solving the problems of rapid signal attenuation and frequent switching in elevators, and achieving fast, seamless switching and communication link stability.

CN121968238APending Publication Date: 2026-05-01SHENZHEN KECHUANGXIANG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN KECHUANGXIANG INTELLIGENT TECH CO LTD
Filing Date
2026-03-18
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In enclosed metal cavities such as elevators, mobile communication faces problems such as rapid signal attenuation and frequent switching leading to call interruptions or data transmission failures. Traditional switching algorithms cannot respond to signal attenuation in a timely manner, and conventional frequency sweeping acquisition algorithms are time-consuming.

Method used

By correcting the terminal acceleration using a preset spatial coordinate system, spatial motion data is generated, signal attenuation warning and time window analysis are performed, target base stations are identified in advance and pre-synchronization processing is carried out, and the terminal can quickly switch to the target base station.

Benefits of technology

It enables seamless transition and rapid reconstruction of communication links, improving handover success rate and user experience, and reducing unnecessary network measurements and signaling burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121968238A_ABST
    Figure CN121968238A_ABST
Patent Text Reader

Abstract

The invention provides a closed space communication optimization method and related equipment thereof. The method comprises the following steps: correcting a received original acceleration according to a space coordinate system, identifying a motion state to generate space motion data, and carrying out correlation analysis on received power of a reference signal according to the space motion data to obtain an early warning mark of signal attenuation and a time window, and determining a target base station from the neighborhood list according to the early warning mark, performing pre-synchronization processing on the target base station to obtain synchronization information of the target base station, and connecting the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station obtained by the terminal is lower than a power threshold. According to the method, the operation state of the closed space is pre-judged in advance, the adjacent region pre-synchronization and switching request is started before the signal is completely attenuated, the weak signal capturing capability is enhanced, and non-inductive transition and rapid reconstruction of communication are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Optimization methods for communication in confined spaces and related equipment Technical Field

[0001] This application relates to the field of wireless communication technology, and in particular to a method for optimizing communication in confined spaces and related equipment. Background Technology

[0002] In enclosed metal cavities like elevators, mobile communication faces unique physical challenges. When the elevator car is moving, its metal walls create a severe shielding effect on electromagnetic waves, causing signal strength to rapidly decrease from full strength to complete loss within seconds. Simultaneously, the high-speed movement of the elevator necessitates frequent handovers between different base station coverage areas. Traditional A3 event-based handover algorithms rely on signal strength measurement reports, triggering a handover only when a neighboring cell's signal is detected as superior to the serving cell. However, in elevator scenarios, signal attenuation far outpaces the measurement and reporting cycle, resulting in the original link breaking before the handover command arrives, causing call interruptions or data transmission failures. Furthermore, after the elevator doors open, the phone needs to quickly reconnect to the network, but conventional frequency scanning algorithms are time-consuming, further degrading the user experience. Summary of the Invention

[0003] In view of this, this application provides a method for optimizing communication in a confined space and related equipment to achieve seamless transition and rapid reconstruction of elevator space communication.

[0004] On one hand, embodiments of this application provide a method for optimizing communication in a confined space. This method includes: correcting the original acceleration of a received terminal and identifying its motion state according to a preset spatial coordinate system to generate spatial motion data; performing correlation analysis on the received power of a reference signal from the current base station based on the spatial motion data to obtain a warning sign and a time window for signal attenuation; determining a target base station from a preset neighborhood list based on the warning sign and performing pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and connecting the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

[0005] In an optional implementation, the step of correcting the received terminal's original acceleration and identifying its motion state according to a preset spatial coordinate system to generate spatial motion data includes: acquiring the terminal's original acceleration and the carrier coordinate system; performing coordinate system transformation analysis on the carrier coordinate system and the preset spatial coordinate system to obtain spatial transformation coefficients; performing coordinate system transformation processing on the original acceleration according to the spatial transformation coefficients to extract the vertical acceleration component in the spatial coordinate system; performing gravitational acceleration component elimination processing on the vertical acceleration component to obtain optimized vertical acceleration; performing threshold judgment on the optimized vertical acceleration according to a preset rest acceleration threshold to identify the terminal's motion state; and performing time integration processing on the optimized vertical acceleration through a preset sliding window to obtain the real-time vertical motion speed.

[0006] In an optional implementation, the step of performing correlation analysis on the received power of the reference signal of the current base station based on the spatial motion data to obtain a warning sign and time window for signal attenuation includes: collecting the received power of the reference signal of the current base station; performing recursive filtering on the received power to generate a smooth power sequence; and calculating the power change rate corresponding to each power in the smooth power sequence; performing correlation analysis based on the motion state and the power change rate; when the motion state is a preset state identifier and the power change rate meets a preset change rate condition, generating a warning sign for signal attenuation according to a preset setting method; and selecting the optimal power estimate corresponding to the minimum change rate from the smooth power sequence based on the power change rate, and calculating the network handover time window from the optimal power estimate to the minimum handover power based on the optimal power estimate, the preset minimum handover power, and the minimum change rate.

[0007] In an optional implementation, the step of determining the target base station from a preset neighborhood list based on the warning flag and performing pre-synchronization processing on the target base station to obtain the synchronization information of the target base station includes: when the warning flag is a preset valid flag, sorting the neighboring base stations in the preset neighborhood list according to the movement direction of the real-time vertical movement speed, and determining the neighboring base station with a sequence number greater than the sequence number corresponding to the current base station as the target base station; obtaining the corresponding frequency point information from the neighborhood list based on the target base station, receiving the original synchronization signal broadcast by the target base station based on the frequency point information, and performing sliding peak detection on the original synchronization signal to obtain a first synchronization sub-signal; parsing the first synchronization sub-signal to extract a second synchronization sub-signal, and determining the frame synchronization time and the time slot synchronization time of the target base station based on the first synchronization sub-signal and the second synchronization sub-signal; reading the physical broadcast channel broadcast by the target base station based on the frame synchronization time, and decoding the physical broadcast channel to obtain the main information block.

[0008] In an optional implementation, the step of connecting the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold includes: monitoring the current base station in real time according to a preset number of consecutive times; when the signal power detected for the consecutive number of times is lower than the preset power threshold, configuring the receiving frequency of the radio frequency receiving channel according to the frequency point information, and adjusting the receiving timing according to the frame synchronization time and the time slot synchronization time; randomly accessing the target base station according to the main information block, the receiving frequency, and the receiving timing to obtain the feedback response data of the target base station; extracting the uplink grant parameters from the feedback response data, and connecting to the target base station within the time window according to the uplink grant parameters.

[0009] In an optional implementation, the method further includes: monitoring the connection response status of the target base station in real time; when the connection response status is a preset handover failure status, removing the target base station from the neighborhood list to generate an optimization list; determining candidate base stations from the optimization list and performing pre-synchronization processing on the candidate base stations to obtain candidate synchronization information of the candidate base stations; and connecting to the candidate base stations within the time window according to the candidate synchronization information.

[0010] On one hand, this application provides a closed-space communication optimization device, which includes: a motion recognition module, used to correct the original acceleration of the received terminal and identify its motion state according to a preset spatial coordinate system, generating spatial motion data; a correlation analysis module, used to perform correlation analysis on the received power of the reference signal of the current base station according to the spatial motion data, and obtain a warning sign and time window for signal attenuation; a base station synchronization module, used to determine a target base station from a preset neighborhood list according to the warning sign, and perform pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and a communication switching module, used to connect the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

[0011] In summary, this application includes at least the following beneficial technical effects: 1. By predicting motion state and providing early warning of the received power trend of reference signals and completing pre-synchronization of neighboring cells in advance, the handover preparation work is brought forward, avoiding call or data interruption caused by link breakage.

[0012] 2. By locally caching the synchronization information of the target base station and quickly configuring radio frequency and random access within the window, frequency scanning and synchronization time are reduced, improving the handover success rate and user experience.

[0013] 3. By using coordinate correction, gravity elimination, sliding window, recursive filtering and other methods to improve the accuracy of motion discrimination in elevators, the unnecessary switching and the measurement and signaling burden on the network side are reduced. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 is a flowchart of a closed space communication optimization method provided in an embodiment of this application; Figure 2 is a functional block diagram of a closed space communication optimization device provided in an embodiment of this application; Figure 3 is a structural schematic diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0017] It should be noted that the message processing solution provided in this application requires special explanation of the following two points: 1. The relevant data involved in the message processing process of this application (such as spatial motion data, synchronization information, etc.). When the above embodiments of this application are applied to specific products or technologies, permission or consent from the target audience is required, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the region, conforming to the principles of legality, legitimacy, and necessity, and not involving the acquisition of data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application is obtained after separate authorization from the target audience. In addition, when obtaining separate authorization from the target audience, the purpose of the relevant data is indicated to the target audience.

[0018] 2. It is understood that in this application, the term "at least one" refers to one or more, and "multiple" means two or more; for example, "at least one notification method" means one, two, or more notification methods. The terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor is there any limitation on the quantity or execution order.

[0019] Figure 1 shows a flowchart of a closed-space communication optimization method provided in an embodiment of this application. The closed-space communication optimization method provided in an embodiment of this application includes the following steps.

[0020] Step S1: Correct the received terminal's original acceleration and identify its motion state according to the preset spatial coordinate system to generate spatial motion data.

[0021] It should be understood that the enclosed space addressed in this application is a movable elevator car. The spatial motion data includes identifiers of the motion states at each stage and the corresponding real-time vertical motion velocity. Firstly, the terminal in this application is a mobile communication device with an integrated accelerometer (the following explanation uses a mobile phone as an example). Mobile phones typically have a built-in three-axis MEMS accelerometer, which is soldered onto the phone's circuit board. Its measurement axes are fixed to the phone's physical orientation, forming a carrier coordinate system. When a user holds the phone in any posture, the original acceleration output by the sensor is a component along the three axes of the carrier coordinate system. For example, inside an elevator, a user might hold the phone horizontally, vertically, or tilted. These posture differences cause the velocity data obtained from the original acceleration to not directly reflect the elevator's vertical motion. To accurately extract the vertical acceleration caused by elevator operation, the original acceleration must be transformed from the carrier coordinate system to a fixed spatial coordinate system. The spatial coordinate system used in this application is a geographic coordinate system, with its three axes pointing east, north, and zenith, respectively. The zenith direction is perpendicular to the horizontal plane and points towards the sky, serving as the reference direction for the elevator's vertical motion. The geographic coordinate system is an absolute coordinate system fixed on Earth, independent of the phone's orientation. Therefore, by transforming the original acceleration to this coordinate system, a unified vertical acceleration component can be obtained. The geographic coordinate system is not determined by direct measurement, but rather by using the phone's built-in gyroscope and magnetometer to calculate the phone's current orientation in real time, thus establishing a transformation relationship from the carrier coordinate system to the geographic coordinate system. Specifically, the gyroscope continuously measures the phone's rotational angular velocities around the three axes of the carrier coordinate system at a preset sampling frequency, denoted as roll angular velocity around the X-axis, pitch angular velocity around the Y-axis, and yaw angular velocity around the Z-axis. The gyroscope output reflects the phone's instantaneous rotation rate. However, due to gyroscope bias error and integral drift, the attitude estimate obtained by simply integrating the angular velocities will accumulate errors over time, leading to attitude divergence. Therefore, a magnetometer is needed to correct for absolute orientation. The magnetometer measures the projection components of the Earth's magnetic field onto the three axes of the carrier coordinate system. The Earth's magnetic field vector has a fixed direction in the geographic coordinate system (pointing to magnetic north with a certain tilt angle). By comparing the magnetometer's measured value with the theoretical value of the Earth's magnetic field, the absolute orientation of the mobile phone relative to the geographic coordinate system can be calculated, and in particular, the drift of the yaw angle can be corrected.

[0022] The spatial transformation coefficients in this application are expressed in quaternion form. A quaternion is a hypercomplex number containing four elements, capable of representing three-dimensional rotation without singularity. The quaternion describing the rotation of the mobile phone from the geographic coordinate system to the carrier coordinate system is defined as Q, which is a unit quaternion consisting of a real part and three imaginary parts. The core of attitude calculation is to establish a state estimator, using the angular velocity output by the gyroscope as the prediction input and the geomagnetic field vector output by the magnetometer (combined with the gravity direction estimated by the accelerometer) as the observation correction, recursively updating the quaternion. Specifically, the quaternion is first updated over time using the angular velocity output by the gyroscope. According to the kinematic differential equation of quaternion, the derivative of the quaternion with respect to time is equal to half the product of the quaternion itself and the pure quaternion formed by the angular velocity. In the actual system, a discrete-time recursive form is used, starting from the quaternion Q at the previous moment... k-1 and the current angular velocity measurement w k The uncorrected quaternion Q1 at the current moment is predicted using the first-order Runge-Kutta method or a more precise Picard approximation method. This prediction step is based on dynamic measurements from the gyroscope, enabling rapid response to changes in the phone's attitude; however, due to gyroscope errors, the predicted value gradually deviates from the actual attitude. Subsequently, measurements from the magnetometer and accelerometer are used to correct the predicted quaternion. The accelerometer measures the projection of gravitational acceleration onto the carrier coordinate system; when the phone is stationary or moving at a constant speed, the accelerometer vector should correspond to the celestial direction in the geographic coordinate system. By comparing the theoretical gravity direction derived from the predicted quaternion with the actual accelerometer measurement, pitch and roll errors can be corrected. The magnetometer measures the geomagnetic field vector; by comparing it with the theoretical geomagnetic field direction derived from the predicted quaternion (combined with local magnetic declination and tilt), yaw error can be corrected. These two observations are integrated into a single correction step, typically using a complementary filter or Kalman filter architecture. Taking the extended Kalman filter as an example, a system model with quaternions as the state vector is established to predict the covariance matrix. Then, the Kalman gain is calculated based on the observation equations of the accelerometer and magnetometer. The state vector is updated using the observation residuals to obtain the optimally estimated quaternion Q. k The updated quaternion satisfies the unit modulus constraint, ensuring the orthogonality of the rotation matrix. Through the above recursive estimation, an accurate quaternion Q is obtained at each sampling time step. k It fully describes the rotation relationship between the mobile phone carrier coordinate system and the geographic coordinate system at the current moment. Subsequently, based on the standard transformation relationship between quaternions and rotation matrices, the corresponding rotation matrix is ​​constructed. This rotation matrix transforms the vector in the geographic coordinate system to the carrier coordinate system, and its inverse matrix (i.e., transpose) is used to transform the original acceleration in the carrier coordinate system to the geographic coordinate system.

[0023] Next, the original acceleration is transformed using the spatial transformation coefficients obtained from the above operations. Specifically, the original acceleration represented by the vector structure is projected from the carrier coordinate system to the geographic coordinate system using the rotation matrix obtained from the attitude calculation. This transformation essentially recombines the acceleration components at each sampling moment, so that the transformed east, north, and sky components correspond to the geographic directions, respectively. Since the elevator's motion is mainly along the vertical sky direction, the transformed sky acceleration component becomes the focus of subsequent analysis. The mathematical expression of the transformation is based on rigid body rotation theory, achieved by multiplying the rotation matrix with the original acceleration, ensuring that the acceleration value in the geographic coordinate system truly reflects the phone's motion in space. After completing the coordinate system transformation, the vertical acceleration component can be directly extracted from the three-axis components of the geographic coordinate system.

[0024] However, the vertical acceleration component at this point still includes a constant contribution from Earth's gravitational acceleration. The direction of gravitational acceleration is always perpendicular to the horizontal plane and downwards, which manifests as a negative offset (or positive offset, depending on the definition) of the axial component in the geographic coordinate system. When the elevator is stationary, the vertical acceleration component measured by the sensor is simply gravitational acceleration; when the elevator accelerates upwards or downwards, the measured value is the superposition of gravitational acceleration and the elevator's dynamic acceleration. To obtain pure dynamic acceleration generated solely by the elevator's motion, the axial acceleration component must be processed to eliminate the gravitational acceleration component. The method used in this application to eliminate the gravitational acceleration component is based on the mean estimation of a sliding window: since gravity is constant, and the elevator's dynamic motion is usually transient, the axial acceleration can be averaged over a short time window, and this average value approximates the gravitational component. Subtracting this gravitational estimate from the current axial acceleration yields the optimized vertical acceleration. The sign and magnitude of the optimized vertical acceleration directly reflect the elevator's state of accelerating upwards (positive value), accelerating downwards (negative value), or constant / stationary (close to zero).

[0025] After obtaining the optimized vertical acceleration, motion state recognition is required. By applying a threshold judgment to the optimized vertical acceleration based on a preset static acceleration threshold, the current motion mode of the phone can be distinguished. The static acceleration threshold is a very small positive number (e.g., 0.05 m / s²). 2)When the absolute value of the optimized vertical acceleration remains below the static acceleration threshold, the elevator is determined to be stationary, such as stopped at a floor. When the optimized vertical acceleration exceeds the static acceleration threshold and persists for a certain period, it is determined to have entered the acceleration start-up phase. As the elevator moves, the optimized vertical acceleration may fall back below the threshold but the speed is not zero, corresponding to the uniform speed running phase. When a significant acceleration occurs in the opposite direction of motion, it is determined to be the deceleration braking phase. Through continuous threshold comparisons and state transition logic, the mobile phone's motion state can be output in real time, such as using digital codes to represent stationary, accelerating upward, uniform upward, decelerating upward, accelerating downward, uniform downward, and decelerating downward. State recognition not only requires instantaneous values ​​but also needs to consider temporal continuity to avoid misjudgments caused by noise. For example, at the moment of elevator acceleration start-up, the optimized vertical acceleration suddenly increases, and the threshold decision will capture this jump, thus accurately identifying the start-up moment.

[0026] Meanwhile, to obtain the real-time vertical velocity, time integration of the optimized vertical acceleration is required. This application employs a sliding window integration method—that is, at each sampling moment, the current velocity is recursively calculated using the current acceleration and the velocity from the previous moment. Specifically, the trapezoidal integral formula is used, multiplying the average acceleration of the current moment and the previous moment by the sampling interval and adding it to the velocity from the previous moment. Recent historical data is continuously used during the integration process, but recursive integration is more accurate than fixed-window summation. Through integration, the change in acceleration over time can be accumulated into velocity, reflecting the elevator's speed and direction in real time. For example, during the elevator acceleration phase, the velocity gradually increases from zero; during the constant speed phase, the velocity remains constant; and during the deceleration phase, the velocity gradually decreases to zero. The real-time vertical velocity is a crucial parameter for subsequently determining the direction of motion (up or down) and estimating the floor to be reached. For instance, the sign of the velocity can determine whether the elevator is moving upwards or downwards.

[0027] Step S2: Based on the spatial motion data, perform correlation analysis on the received power of the reference signal of the current base station to obtain the early warning sign of signal attenuation and the time window.

[0028] First, the received power of the current base station's reference signal is collected according to a preset rapid measurement cycle. In the confined space of an elevator, the signal attenuation rate is extremely fast, and the traditional event-based measurement cycle (e.g., 480ms) cannot capture signal changes in time, so the measurement interval needs to be significantly shortened. Specifically, the mobile phone physical layer continuously collects the received power of the current base station's downlink reference signal at a cycle of 10ms, generating an original received power sequence. This received power is affected by channel fading, multipath effects, and noise interference, exhibiting drastic fluctuations. Directly using the original value for decision-making will lead to frequent false triggers. In order to extract the true signal change trend from the noise, the received power needs to be recursively filtered to generate a smooth power sequence. This application embodiment uses a Kalman filter. By establishing a state-space model of the signal and utilizing a prediction, update, and recursion mechanism, the optimal power value can be estimated from noisy observations. Specifically, the current actual power and power change rate are used as state variables, and the original measured value is used as the observation variable. Through the recursive operation of the Kalman filter, a smoothed optimal power estimate is output at each sampling time. Meanwhile, the internal state of the Kalman filter directly provides an estimate of the power change rate, which represents the rate and direction of signal strength increase or decrease over time; a negative value indicates signal attenuation, and a positive value indicates signal strengthening. After Kalman filtering, the generated smooth power sequence eliminates the interference of instantaneous fluctuations, truly reflecting the macroscopic trend of signal changes with position during elevator operation.

[0029] In elevator scenarios, rapid signal attenuation is strongly correlated with the elevator's motion state: when the elevator starts accelerating or is running at a constant speed, the shielding effect of the car's metal panels on the signal intensifies, leading to a sharp drop in received power; while when the elevator is stationary, the signal is relatively stable. Therefore, by jointly analyzing spatial motion data and the power change rate, signal attenuation events caused by elevator motion can be accurately identified. Specifically, the motion state identifier (e.g., accelerating upward, constant speed upward, accelerating downward, constant speed downward, etc.) and real-time vertical motion speed output from step S1 are continuously acquired, along with the current power change rate output from the Kalman filter. When the motion state is a preset state identifier (e.g., accelerating start-up or constant speed running phase), and the power change rate meets a preset change rate condition (i.e., the change rate is negative and the absolute value exceeds a preset attenuation threshold, e.g., -5dBm / s), it indicates that the signal is currently in a rapid fading process caused by elevator motion. At this time, a signal attenuation warning flag is generated according to a preset setting method and set to an effective state. The warning flag used in this application is a binary signal, and the warning flag is divided into an effective state and an invalid state. The valid state indicates that the risk of an impending signal disconnection has been detected, and subsequent pre-synchronization preparations need to be initiated immediately; the invalid state indicates that the current signal is stable or no motion-related attenuation has been detected.

[0030] Finally, the optimal power estimate corresponding to the minimum power change rate is selected from the smoothed power sequence based on the power change rate. This optimal power estimate, the preset minimum switching power, and the minimum change rate are then used to calculate the network switching time window from the optimal power estimate to the minimum switching power. In the smoothed power sequence output by the Kalman filter, each moment has a corresponding power estimate and power change rate. Since the signal attenuation during elevator movement is not perfectly uniform, and the change rate itself fluctuates, the most representative change rate needs to be selected from the sequence near the current moment for prediction. Specifically, a short window (e.g., including the most recent 5 sampling points) is taken backward from the current moment. The change rate with the largest absolute value (i.e., the minimum value, because the change rate is negative at this point) is selected from the power change rate sequence within the window, and the power estimate corresponding to this change rate is taken as the optimal power estimate. The reason for choosing the minimum change rate is that in scenarios of rapid signal attenuation, the worst attenuation trend determines the shortest available time. Using the steepest attenuation rate for prediction ensures that there is still enough time to complete the switching preparation in the worst case. The preset minimum handover power is the absolute threshold value that triggers handover, for example, -110 dBm. When the signal power falls below this threshold, the current link can no longer maintain normal communication. Using a linear extrapolation formula, the minimum handover power is subtracted from the optimal power estimate to obtain the total power difference that needs to be attenuated. Dividing this difference by the absolute value of the minimum rate of change gives the remaining time required for the signal to decrease from the current optimal power estimate to the minimum handover power. This remaining time is the network handover time window. The time window represents the available time for the mobile phone to perform pre-synchronization and handover preparation before the signal completely deteriorates. If the minimum rate of change is very steep, the time window will be short, indicating that the system needs to handle the situation urgently; if the attenuation is gradual, the time window will be relatively generous.

[0031] Step S3: Determine the target base station from the preset neighborhood list according to the warning flag, and perform pre-synchronization processing on the target base station to obtain the synchronization information of the target base station.

[0032] When the warning flag output in step S2 is set to a preset valid flag, it indicates that the signal is currently in a rapid attenuation process caused by elevator movement. At this time, the mobile phone needs to immediately initiate the pre-synchronization process as shown below: First, the neighboring base stations in the preset neighborhood list are sorted according to the direction of movement of the real-time vertical motion speed obtained in step S1. The neighborhood list is a set of surrounding base station information obtained by the mobile phone through reading system information or historical measurements, which includes parameters such as the frequency point information, physical cell identifier, and base station type (e.g., macro base station or indoor distributed base station) of each neighboring base station. In the elevator scenario, the neighboring base stations with signal coverage are usually distributed according to floors; for example, different floors may have different indoor distributed base stations deployed. To select the most suitable handover target, the base stations in the neighborhood list need to be sorted according to the direction of movement of the real-time vertical motion speed output in step S1. Specifically, the mobile phone obtains the identifier of the currently connected base station as a reference point and determines the direction of movement by combining the positive or negative value of the real-time vertical movement speed: when the real-time vertical movement speed is positive, it indicates that the elevator is moving upward, and in this case, neighboring base stations located on floors above or in areas covered by the current base station should be identified as high-priority targets; when the real-time vertical movement speed is negative, it indicates that the elevator is moving downward, and in this case, neighboring base stations located on floors below or in areas covered by the current base station should be identified as high-priority targets. Through the above sorting operation based on the movement direction, limited pre-synchronization resources can be prioritized for base stations most likely to become the next serving cell, avoiding blind scanning of all neighboring cells, thereby saving processing time and mobile phone power consumption. Furthermore, based on the relative positional relationship between the coverage area of ​​each base station in the obtained base station arrangement order and the current base station (i.e., in the order of the arrangement, base stations with a sequence number greater than the current base station's corresponding sequence number are located ahead of the current base station according to the movement direction), a matching is performed. If the base station is ahead in the movement direction (e.g., determined by its configured floor information or latitude and longitude), its priority is increased, and one or more are selected from the high-priority queue as target base stations.

[0033] After identifying the target base station, the system retrieves the corresponding frequency information from the neighborhood list based on the target base station's frequency, and then receives the original synchronization signal broadcast by the target base station according to this frequency information. In mobile communication systems, each base station continuously broadcasts a primary synchronization signal and a secondary synchronization signal. The mobile phone detects these signals to achieve time and frequency synchronization with the base station. The frequency information indicates the center frequency at which the target base station operates. The mobile phone tunes its radio frequency receiving channel to this frequency and receives the original synchronization signal broadcast by the base station at a preset time-frequency resource location. The original synchronization signal is baseband IQ sampling data, which includes the superposition of the primary synchronization signal sequence and the secondary synchronization signal sequence. To extract synchronization information from the original signal, sliding peak detection is performed on the original synchronization signal to obtain the first synchronization sub-signal. The first synchronization sub-signal is essentially a collective term for the primary synchronization signal and its timing information. The primary synchronization signal uses a Zadoff-Chu sequence (i.e., ZC sequence) design, which has good autocorrelation characteristics. Specifically, the mobile phone pre-stores copies of all possible sequences of the primary synchronization signal (usually three types, corresponding to group numbers 0, 1, and 2). The received original synchronization signal is compared with the locally stored primary synchronization signal sequence using a sliding correlation operation. A correlation coefficient is calculated at each sampling offset position. When the correlation coefficient reaches a peak and exceeds a preset detection threshold, it indicates that the primary synchronization signal has been detected. The sampling point corresponding to this peak position is the start time of time slot synchronization. Simultaneously, the group number of the physical layer cell identifier can be determined based on the local sequence index that generated the peak. Through this operation, the first synchronization sub-signal, i.e., the primary synchronization signal itself, and its precise timing position are obtained.

[0034] After obtaining the first synchronization sub-signal, it is parsed to extract the second synchronization sub-signal. Based on the first and second synchronization sub-signals, the frame synchronization time and time slot synchronization time of the target base station are determined. The primary synchronization signal provides time slot synchronization and intra-group cell identification, but complete frame synchronization relies on the secondary synchronization signal. The second synchronization sub-signal is a collective term for the secondary synchronization signal and its carried cell group number. The secondary synchronization signal is generated by the longest linear feedback shift register sequence, with 336 possibilities. Based on the detection of the primary synchronization signal, the mobile phone knows the starting position of the time slot. According to the system's predefined time slot structure, the accurate position of the secondary synchronization signal within the time slot can be calculated. The mobile phone extracts the received signal at this position and performs correlation detection with the 336 locally stored secondary synchronization signal sequences. Similarly, peak decision is used to determine the specific sequence index of the secondary synchronization signal. The sequence index of the secondary synchronization signal carries the group number of the physical layer cell identifier (e.g., 0 to 335), which, combined with the intra-group number determined by the primary synchronization signal, yields the complete physical cell identifier. Simultaneously, the detection of the auxiliary synchronization signal further confirms the start boundary of the frame. Since the position of the auxiliary synchronization signal within the frame is fixed, its occurrence time can determine the frame synchronization time, i.e., the start boundary of each radio frame. Thus, through the joint processing of the first and second synchronization sub-signals, the mobile phone obtains precise time slot synchronization and frame synchronization times with the target base station. The time slot synchronization time clarifies the start point of each time slot, and the frame synchronization time clarifies the start point of each frame. This is the foundation for the subsequent correct demodulation of the base station's broadcast channel.

[0035] Next, the physical broadcast channel broadcast by the target base station is read according to the frame synchronization time, and the physical broadcast channel is decoded to obtain the main information block. After determining frame synchronization, the mobile phone knows the start boundary of each radio frame. According to the system specification, the physical broadcast channel is mapped to a fixed time-frequency resource location in each radio frame. The mobile phone receives signals at this location, performs channel estimation, demodulation, and decoding, and recovers the main information block. The main information block contains key system parameters of the target base station, including the system frame number, downlink system bandwidth, physical hybrid automatic repeat instruction channel configuration, and system information scheduling information. The system frame number is the cyclic number of radio frames, used to distinguish different frames; the downlink system bandwidth indicates the bandwidth of the base station; and the system information scheduling information tells the mobile phone the receiving location of other subsequent system information blocks. After obtaining the main information block, the mobile phone has the most basic system information required to access the target base station. The frame synchronization time, time slot synchronization time, and main information block obtained in the above process are combined to form complete synchronization information, and this information is stored in the local cache for use in subsequent handover execution steps. This pre-synchronization process is completed before the signal deteriorates, avoiding the delay and failure risks caused by temporary synchronization at the handover moment.

[0036] Step S4: When the signal power between the terminal and the current base station is lower than a preset power threshold, the terminal is connected to the target base station according to the time window and the synchronization information.

[0037] First, the current base station is monitored in real time according to a preset number of consecutive counts. When the signal power detected for the consecutive counts is lower than a preset power threshold, the handover execution process is triggered. During elevator operation, the smoothed power sequence and power change rate output in step S2 have been used to predict the time window, but the actual handover initiation still needs to be based on real signal measurements to avoid premature or late handover due to prediction errors. The preset number of consecutive counts is a key parameter. For example, it is set to 3 times, requiring that the received power of the reference signal detected for 3 consecutive times (corresponding to 30 milliseconds, because the fast measurement period is 10 milliseconds) is lower than the preset power threshold (e.g., -110 dBm). This continuous judgment mechanism can effectively filter out false triggers caused by instantaneous noise or sudden interference, ensuring that handover is only initiated when the signal has indeed deteriorated to the point where normal communication cannot be maintained. When the conditions are met, the mobile phone immediately enters the handover execution phase. At this time, the receiving frequency of the radio frequency receiving channel is configured according to the frequency point information obtained from the target base station in step S3, the local oscillator frequency is adjusted to the working center frequency of the target base station, and the receiving timing is adjusted according to the frame synchronization time and time slot synchronization time determined in step S3. Adjusting the reception timing includes setting symbol timing and frame timing to ensure that subsequently received signals can be correctly aligned with the time slot boundaries and frame boundaries of the target base station.

[0038] After completing the RF configuration and timing adjustment, the mobile phone randomly accesses the target base station based on the master information block obtained from step S3, the configured receiving frequency, and the adjusted receiving timing, and obtains the feedback response data from the target base station. Random access is the first step in establishing a connection between the mobile phone and the base station, and its process is clearly defined in mobile communication standards. Specifically, the mobile phone determines the time-frequency resource configuration of the physical random access channel based on the system information carried in the master information block, including parameters such as preamble format, frequency position, and cyclic shift. Combining the aligned frame synchronization and time slot synchronization, the mobile phone generates a random access preamble at a preset random access time and sends it to the target base station through the physical random access channel. The preamble is a specific sequence. After detecting the preamble, the base station returns a random access response on the downlink shared channel. After sending the preamble, the mobile phone listens to the physical downlink control channel within a specified time window according to the response window configuration indicated in the master information block to obtain the random access response allocated by the base station. The random access response includes timing advance, temporary cell radio network temporary identifier, and uplink grant parameters. After receiving this feedback response data, the mobile phone can adjust the uplink transmission time using the timing advance to ensure that the signal can accurately reach the base station, while the temporary identifier is used for subsequent signaling interaction.

[0039] Finally, the uplink grant parameters are extracted from the feedback response data, and the phone connects to the target base station within the time window based on these parameters. The uplink grant parameters indicate the initial uplink resources allocated to the phone by the base station, including resource block location, modulation and coding scheme, and transmit power. Based on these parameters, the phone sends a Radio Resource Control Connection Re-establishment Request message on the specified uplink resources. This message carries the phone's identifier and the original cell's context information, requesting the target base station to re-establish the radio connection. Upon receiving the request, the target base station replies with a connection re-establishment complete message, at which point the phone successfully hands over to the target base station, and the communication link is restored. The entire connection establishment process must be completed within the time window predicted in step S2, as the time window represents the remaining available time from the current moment until the signal is completely interrupted. Since the preceding steps have already completed pre-synchronization and RF pre-configuration, random access and connection re-establishment can typically be completed within hundreds of milliseconds, much smaller than a typical time window (e.g., more than 1 second), thus ensuring the reliability of the handover.

[0040] For example, during the elevator's upward movement, the prediction time window in step S2 is 1.8 seconds, the current signal power is -105 dBm, the preset power threshold is -110 dBm, and the consecutive count is set to 3. As the elevator continues to ascend, the signal power is measured sequentially to -111 dBm, -112 dBm, and -113 dBm, falling below the threshold three times consecutively, triggering a handover. The mobile phone immediately configures the radio frequency receiving frequency according to the frequency point information (1870 MHz) cached in step S3, and adjusts the receiving timing according to the frame synchronization time and time slot synchronization time. Subsequently, according to the random access resource configuration indicated in the main information block, a preamble is sent at the first available random access opportunity. 20 milliseconds later, a random access response is received from the base station, containing uplink authorization parameters. The mobile phone uses these parameters to send a radio resource control connection reconstruction request in a subsequent subframe, and receives a connection reconstruction completion message 50 milliseconds later, indicating a successful handover. The entire process takes approximately 100 milliseconds, far less than the 1.8-second time window, ensuring communication continuity.

[0041] In an optional implementation, to further enhance the robustness of the enclosed space communication optimization method and address potential handover failures, a fast backoff and retry mechanism is added. This mechanism is automatically activated if the main handover process in step S4 cannot be completed successfully, aiming to quickly switch to an alternative base station using the remaining time window and minimize communication interruption.

[0042] First, the connection response status of the target base station is monitored in real time. When the connection response status is a preset handover failure status, the target base station is removed from the neighborhood list to generate an optimization list. In step S4, after the terminal sends a Radio Resource Control Connection Re-establishment Request message to the target base station, it starts a timer and listens for the connection establishment response message returned by the target base station. The handover failure status is defined in several ways: for example, if no response message is received before the timer expires, it indicates that the target base station may have failed to correctly decode the request due to signal blind spots, resource congestion, or interference; or if a connection rejection message is received from the target base station, it indicates that the target base station has explicitly rejected the connection due to configuration conflicts, insufficient resources, or security verification failure; or if a connection establishment failure message containing a failure reason value is received. When any of these situations occur, the handover attempt is deemed to have failed. At this time, remedial measures must be taken immediately, and the first step is to remove the target base station that has been proven unusable from the neighborhood list to generate an optimization list. The purpose of this removal operation is to avoid selecting the same unreachable base station again during subsequent retries, thereby saving valuable time. For example, in an elevator going up, the originally selected 11th floor base station becomes unresponsive due to a sudden malfunction. The terminal marks it as unavailable and removes it from the candidate list. The remaining list also includes base stations on the 12th and 13th floors, which can be selected.

[0043] After generating the optimization list, candidate base stations are selected from the list, and pre-synchronization processing is performed on these candidate base stations to obtain their synchronization information. The principle for selecting candidate base stations should be consistent with the principle for selecting target base stations in step S3, that is, prioritizing them according to the direction of motion of the real-time vertical motion speed output in step S1, and selecting the neighboring base station with the highest priority located ahead in the direction of motion from the optimization list as the candidate base station. Since the time window may have already been partially consumed, and the remaining time is relatively tight, the pre-synchronization processing must be completed quickly. Fortunately, step S3 has already performed a preliminary scan and cache of the base station information in the entire neighboring list during the initial pre-synchronization, such as the frequency information and physical cell identifier of each neighboring base station, which are still available. Therefore, pre-synchronization of the candidate base station can be quickly resynchronized based on this existing information: the terminal directly tunes to the frequency of the candidate base station, receives the original synchronization signal broadcast by the candidate base station using a method similar to that in step S3, obtains the first synchronization sub-signal through sliding peak detection, and extracts the second synchronization sub-signal by parsing, thereby quickly determining the frame synchronization time and time slot synchronization time of the candidate base station, and reads the physical broadcast channel decoding to obtain the candidate master information block. This information is combined into candidate synchronization information and stored in the local cache. Since this process does not require rescanning the frequency and re-acquiring the neighbor cell list, it can usually be completed in a shorter time than the initial pre-synchronization, for example, within 300 milliseconds.

[0044] After obtaining the alternative synchronization information, the system connects to the alternative base station within the remaining time window based on this information. The connection process here is identical to step S4: the receiving frequency of the radio frequency receiving channel is configured according to the frequency point information in the alternative synchronization information; the receiving timing is adjusted according to the synchronization time of the alternative frame and the synchronization time of the alternative time slot; a random access preamble is sent on the physical random access channel according to the random access resource configuration indicated in the alternative master information block; the random access response returned by the alternative base station is received; uplink grant parameters are extracted; and finally, a radio resource control connection re-establishment request message is sent to complete the connection establishment with the alternative base station. The entire connection process must be completed within the original time window predicted in step S2. However, since some time has already been consumed for the initial handover attempt, the remaining time may be even more limited. Therefore, the entire fallback process must be designed to be sufficiently efficient, with every millisecond from failure determination to alternative connection completion requiring careful calculation. By pre-eliminating unavailable base stations, reusing existing neighbor cell information, and rapid resynchronization, retry time can be compressed to the maximum extent, improving the handover success rate.

[0045] This application is applied to the field of wireless communication technology. It generates spatial motion data by correcting the received raw acceleration and identifying its motion state according to a spatial coordinate system. Based on this spatial motion data, it performs correlation analysis on the received power of a reference signal to obtain a warning indicator and time window for signal attenuation. Based on the warning indicator, it determines the target base station from a neighborhood list and performs pre-synchronization processing on the target base station to obtain its synchronization information. When the signal power is below a power threshold, it connects to the target base station based on the time window and synchronization information. This application anticipates the operating state of a confined space, initiates neighbor cell pre-synchronization and handover requests before the signal completely attenuates, and enhances weak signal acquisition capabilities, achieving seamless communication transition and rapid reconstruction.

[0046] The following describes the relevant devices of the closed space communication optimization scheme provided in the embodiments of this application.

[0047] It should be noted that, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0048] Please refer to Figure 2, which is a functional block diagram of a closed-space communication optimization device provided in an embodiment of this application. This closed-space communication optimization device 2 can be used to execute the corresponding steps in the closed-space communication optimization method provided in the embodiment of Figure 1 of this application. Specifically, the closed-space communication optimization device 2 may include: a motion recognition module 21, used to correct the received terminal's original acceleration and identify its motion state according to a preset spatial coordinate system, generating spatial motion data; a correlation analysis module 22, used to perform correlation analysis on the received power of the reference signal of the current base station based on the spatial motion data, obtaining a warning sign of signal attenuation and a time window; a base station synchronization module 23, used to determine a target base station from a preset neighborhood list based on the warning sign, and perform pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and a communication switching module 24, used to connect the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

[0049] In an optional implementation, the motion recognition module 21 is configured to: acquire the original acceleration of the terminal and the carrier coordinate system; perform coordinate system transformation analysis on the carrier coordinate system and a preset spatial coordinate system to obtain spatial transformation coefficients; perform coordinate system transformation processing on the original acceleration according to the spatial transformation coefficients, extract the vertical acceleration component in the spatial coordinate system, perform gravitational acceleration component elimination processing on the vertical acceleration component to obtain optimized vertical acceleration; perform threshold judgment on the optimized vertical acceleration according to a preset static acceleration threshold, identify the motion state of the terminal, and perform time integration processing on the optimized vertical acceleration through a preset sliding window to obtain the real-time vertical motion speed.

[0050] In an optional implementation, the correlation analysis module 22 is configured to: collect the received power of the reference signal of the current base station; perform recursive filtering on the received power to generate a smooth power sequence; and calculate the power change rate corresponding to each power in the smooth power sequence; perform correlation analysis based on the motion state and the power change rate; when the motion state is a preset state identifier and the power change rate meets a preset change rate condition, generate a signal attenuation warning flag according to a preset setting method; and, based on the power change rate, select the optimal power estimate corresponding to the minimum change rate from the smooth power sequence, so as to calculate the network handover time window from the optimal power estimate to the minimum handover power based on the optimal power estimate, the preset minimum handover power, and the minimum change rate.

[0051] In an optional implementation, the base station synchronization module 23 is configured to: when the warning flag is a preset valid flag, sort the neighboring base stations in a preset neighborhood list according to the movement direction of the real-time vertical movement speed, and determine the neighboring base station with a sequence number greater than the sequence number corresponding to the current base station as the target base station; obtain the corresponding frequency point information from the neighborhood list according to the target base station, receive the original synchronization signal broadcast by the target base station according to the frequency point information, and perform sliding peak detection on the original synchronization signal to obtain a first synchronization sub-signal; parse the first synchronization sub-signal to extract a second synchronization sub-signal, and determine the frame synchronization time and the time slot synchronization time of the target base station according to the first synchronization sub-signal and the second synchronization sub-signal; read the physical broadcast channel broadcast by the target base station according to the frame synchronization time, and decode the physical broadcast channel to obtain the main information block.

[0052] In an optional implementation, the communication switching module 24 is configured to: monitor the current base station in real time according to a preset number of consecutive counts; when the signal power detected for the consecutive counts is lower than a preset power threshold, configure the receiving frequency of the radio frequency receiving channel according to the frequency point information, and adjust the receiving timing according to the frame synchronization time and the time slot synchronization time; randomly access the target base station according to the main information block, the receiving frequency, and the receiving timing to obtain the feedback response data of the target base station; extract the uplink grant parameters from the feedback response data, and connect to the target base station within the time window according to the uplink grant parameters.

[0053] In an optional implementation, the closed-space communication optimization device 2 further includes a backup switching module 25, which is used to: monitor the connection response status of the target base station in real time; when the connection response status is a preset switching failure status, remove the target base station from the neighborhood list to generate an optimization list; determine a backup base station from the optimization list and perform pre-synchronization processing on the backup base station to obtain the backup synchronization information of the backup base station; and connect to the backup base station within the time window according to the backup synchronization information.

[0054] It should be understood that the various variations and specific embodiments of the methods provided in the above embodiments are also applicable to the closed space communication optimization device of this embodiment. Through the foregoing detailed description of the closed space communication optimization method, those skilled in the art can clearly understand the implementation method of the closed space communication optimization device in this embodiment. For the sake of brevity, it will not be described in detail here.

[0055] Please refer to Figure 3, which is a schematic diagram of the structure of a computer device provided in an embodiment of this application. This computer device 3 is used to execute the steps performed by the computer device in the aforementioned method embodiments. The computer device 3 may include one or more devices (such as servers, nodes, terminal devices, etc.) or internal components (such as chips, software modules, or hardware modules). The computer device may include at least one processor 31 and a communication interface 32. Further optionally, the computer device may also include at least one memory 33 and a bus 34. Additionally, the processor 31, communication interface 32, and memory 33 are connected via the bus 34. Wherein: (1) The processor 31 is a module that performs arithmetic and / or logical operations, and may be one or a combination of processing modules such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor unit (MPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a coprocessor (assisting the central processing unit in completing corresponding processing and applications), and a micro controller unit (MCU).

[0056] (2) The communication interface 32 can be used to provide information input or output to at least one processor 31. And / or, the communication interface 32 can be used to receive data sent from outside and / or send data to outside, and can be a wired link interface including such as an Ethernet cable, or a wireless link interface (Wi-Fi, Bluetooth, general wireless transmission, vehicle short-range communication technology and other short-range wireless communication technologies, etc.). The communication interface 32 can serve as a network interface.

[0057] (3) The memory 33 is used to provide storage space, in which data such as the operating system and computer programs (including program instructions) can be stored. The memory 33 can be one or a combination of random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM), etc.

[0058] In specific implementation, the processor 31 executes the following steps by running the computer program stored in the memory 33: correcting the received terminal's original acceleration and identifying its motion state according to a preset spatial coordinate system to generate spatial motion data; performing correlation analysis on the received power of the current base station's reference signal based on the spatial motion data to obtain a warning sign and time window for signal attenuation; determining a target base station from a preset neighborhood list based on the warning sign and performing pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and connecting the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

[0059] In one possible implementation, the processor 31 is further configured to perform the following operations: acquire the original acceleration of the terminal and the carrier coordinate system; perform coordinate system transformation analysis on the carrier coordinate system and the preset spatial coordinate system to obtain spatial transformation coefficients; perform coordinate system transformation processing on the original acceleration according to the spatial transformation coefficients, extract the vertical acceleration component in the spatial coordinate system, perform gravitational acceleration component elimination processing on the vertical acceleration component to obtain optimized vertical acceleration; perform threshold judgment on the optimized vertical acceleration according to the preset static acceleration threshold, identify the motion state of the terminal, and perform time integration processing on the optimized vertical acceleration through a preset sliding window to obtain the real-time vertical motion speed.

[0060] In one possible implementation, the processor 31 is further configured to perform the following operations: acquire the received power of the reference signal of the current base station, perform recursive filtering on the received power to generate a smooth power sequence, and calculate the power change rate corresponding to each power in the smooth power sequence; perform correlation analysis based on the motion state and the power change rate, and when the motion state is a preset state identifier and the power change rate meets a preset change rate condition, generate a signal attenuation warning flag according to a preset setting method; based on the power change rate, select the optimal power estimate corresponding to the minimum change rate from the smooth power sequence, and calculate the network handover time window from the optimal power estimate to the minimum handover power based on the optimal power estimate, the preset minimum handover power, and the minimum change rate.

[0061] In one possible implementation, the processor 31 is further configured to perform the following operations: when the warning flag is a preset valid flag, sort the neighboring base stations in the preset neighborhood list according to the movement direction of the real-time vertical movement speed, and determine the neighboring base stations with sequence numbers greater than the sequence number corresponding to the current base station as target base stations; obtain the corresponding frequency point information from the neighborhood list according to the target base station, receive the original synchronization signal broadcast by the target base station according to the frequency point information, and perform sliding peak detection on the original synchronization signal to obtain a first synchronization sub-signal; parse the first synchronization sub-signal to extract a second synchronization sub-signal, and determine the frame synchronization time and the time slot synchronization time of the target base station according to the first synchronization sub-signal and the second synchronization sub-signal; read the physical broadcast channel broadcast by the target base station according to the frame synchronization time, and decode the physical broadcast channel to obtain the main information block.

[0062] In one possible implementation, the processor 31 is further configured to perform the following operations: monitor the current base station in real time according to a preset number of consecutive counts; when the signal power detected for the consecutive counts is lower than a preset power threshold, configure the receiving frequency of the radio frequency receiving channel according to the frequency point information, and adjust the receiving timing according to the frame synchronization time and the time slot synchronization time; randomly access the target base station according to the main information block, the receiving frequency, and the receiving timing to obtain the feedback response data of the target base station; extract the uplink grant parameters from the feedback response data, and connect to the target base station within the time window according to the uplink grant parameters.

[0063] In one possible implementation, the processor 31 is further configured to perform the following operations: monitor the connection response status of the target base station in real time; when the connection response status is a preset handover failure status, remove the target base station from the neighborhood list to generate an optimization list; determine a candidate base station from the optimization list, and perform pre-synchronization processing on the candidate base station to obtain the candidate synchronization information of the candidate base station; and connect to the candidate base station within the time window according to the candidate synchronization information.

[0064] In one possible implementation, the processor 31 is further configured to perform the following operations: a motion recognition module, configured to correct the received original acceleration of the terminal and identify its motion state according to a preset spatial coordinate system, generating spatial motion data; a correlation analysis module, configured to perform correlation analysis on the received power of the reference signal of the current base station according to the spatial motion data, and obtain a warning sign and time window for signal attenuation; a base station synchronization module, configured to determine a target base station from a preset neighborhood list according to the warning sign, and perform pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and a communication handover module, configured to connect the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

[0065] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product, which includes one or more computer programs. When the computer program is loaded and executed on a computer device, it generates, in whole or in part, the processes or functions described in the embodiments of this application; the computer device can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in or transmitted through a computer-readable storage medium; the computer program can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium accessible to the computer device or a data processing device such as a server or data center that integrates one or more available media; wherein, the available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0066] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for optimizing communication in confined spaces, characterized in that, The method includes: correcting the received original acceleration of the terminal and identifying its motion state according to a preset spatial coordinate system to generate spatial motion data; performing correlation analysis on the received power of the reference signal of the current base station based on the spatial motion data to obtain a warning sign and a time window for signal attenuation; determining a target base station from a preset neighborhood list based on the warning sign and performing pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and connecting the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

2. The method for optimizing communication in confined spaces according to claim 1, characterized in that, The spatial motion data includes motion state and real-time vertical motion velocity. The step of correcting the received terminal's original acceleration and identifying its motion state according to a preset spatial coordinate system to generate spatial motion data includes: acquiring the terminal's original acceleration and the carrier coordinate system; performing coordinate system transformation analysis on the carrier coordinate system and the preset spatial coordinate system to obtain spatial transformation coefficients; performing coordinate system transformation processing on the original acceleration according to the spatial transformation coefficients to extract the vertical acceleration component in the spatial coordinate system; performing gravitational acceleration component elimination processing on the vertical acceleration component to obtain optimized vertical acceleration; performing threshold judgment on the optimized vertical acceleration according to a preset rest acceleration threshold to identify the terminal's motion state; and performing time integration processing on the optimized vertical acceleration through a preset sliding window to obtain the real-time vertical motion velocity.

3. The method for optimizing communication in confined spaces according to claim 2, characterized in that, The step of performing correlation analysis on the received power of the reference signal of the current base station based on the spatial motion data to obtain a warning sign and time window for signal attenuation includes: collecting the received power of the reference signal of the current base station; performing recursive filtering on the received power to generate a smooth power sequence; and calculating the power change rate corresponding to each power in the smooth power sequence; performing correlation analysis based on the motion state and the power change rate; when the motion state is a preset state identifier and the power change rate meets a preset change rate condition, generating a warning sign for signal attenuation according to a preset setting method; and selecting the optimal power estimate corresponding to the minimum change rate from the smooth power sequence based on the power change rate, and calculating the network handover time window from the optimal power estimate to the minimum handover power based on the optimal power estimate, the preset minimum handover power, and the minimum change rate.

4. The method for optimizing communication in confined spaces according to claim 2, characterized in that, The synchronization information includes frame synchronization time, time slot synchronization time, and main information block. The process of determining the target base station from a preset neighborhood list based on the warning flag, and performing pre-synchronization processing on the target base station to obtain its synchronization information includes: when the warning flag is a preset valid flag, sorting the neighboring base stations in the preset neighborhood list according to the movement direction of the real-time vertical movement speed, and determining the neighboring base station with a sequence number greater than the sequence number corresponding to the current base station as the target base station; obtaining the corresponding frequency point information from the neighborhood list based on the target base station; receiving the original synchronization signal broadcast by the target base station based on the frequency point information, and performing sliding peak detection on the original synchronization signal to obtain a first synchronization sub-signal; parsing the first synchronization sub-signal to extract a second synchronization sub-signal, and determining the frame synchronization time and time slot synchronization time of the target base station based on the first and second synchronization sub-signals; reading the physical broadcast channel broadcast by the target base station based on the frame synchronization time, and decoding the physical broadcast channel to obtain the main information block.

5. The method for optimizing communication in confined spaces according to claim 4, characterized in that, When the signal power between the terminal and the current base station is lower than a preset power threshold, connecting the terminal to the target base station according to the time window and the synchronization information includes: monitoring the current base station in real time according to a preset number of consecutive times; when the signal power detected for the consecutive number of times is lower than the preset power threshold, configuring the receiving frequency of the radio frequency receiving channel according to the frequency point information, and adjusting the receiving timing according to the frame synchronization time and the time slot synchronization time; randomly accessing the target base station according to the main information block, the receiving frequency, and the receiving timing to obtain the feedback response data of the target base station; extracting the uplink grant parameters from the feedback response data, and connecting to the target base station within the time window according to the uplink grant parameters.

6. The method for optimizing communication in confined spaces according to claim 1, characterized in that, The method further includes: monitoring the connection response status of the target base station in real time; when the connection response status is a preset handover failure status, removing the target base station from the neighborhood list to generate an optimization list; determining candidate base stations from the optimization list and performing pre-synchronization processing on the candidate base stations to obtain candidate synchronization information of the candidate base stations; and connecting to the candidate base stations within the time window according to the candidate synchronization information.

7. A confined space communication optimization device, applied to the confined space communication optimization method of claim 1, characterized in that, The device includes: a motion recognition module, used to correct the received original acceleration of the terminal and identify its motion state according to a preset spatial coordinate system, generating spatial motion data; a correlation analysis module, used to perform correlation analysis on the received power of the reference signal of the current base station according to the spatial motion data, and obtain a warning sign and time window for signal attenuation; a base station synchronization module, used to determine a target base station from a preset neighborhood list according to the warning sign, and perform pre-synchronization processing on the target base station to obtain synchronization information of the target base station; and a communication handover module, used to connect the terminal to the target base station according to the time window and the synchronization information when the signal power between the terminal and the current base station is lower than a preset power threshold.

8. A computer device, characterized in that, include: Memory and processor: Memory, in which one or more computer programs are stored; processor, for loading the one or more computer programs to implement the closed space communication optimization method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the closed-space communication optimization method according to any one of claims 1 to 6.