A SIM switching method based on random access air interface delay
By introducing random access air interface delay and comparing the network quality of different SIMs, adaptive network switching of the 5G remote communication module is realized, which solves the problem of being unable to accurately determine the best network in the existing technology, improves communication reliability and reduces traffic charges.
Patent Information
- Application Number
- CN202210983774.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-08-16
AI Technical Summary
Existing 5G remote communication modules cannot accurately determine which SIM has the best network conditions, resulting in the inability to ensure that the terminal always resides in the best network environment, affecting communication reliability.
The random access air interface delay is introduced as a benchmark for comparing the quality and congestion of wireless channels in different networks. By comparing the random access air interface delays of different SIMs, the best network is selected for switching to ensure that the 5G remote communication module always resides on the best network. environment.
The adaptive SIM switching strategy is implemented to ensure that the communication module always operates in an environment with the best network quality, avoiding additional traffic costs and improving communication reliability.
Smart Images

Figure CN115361716B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of reliable communication, and in particular relates to a SIM switching method based on random access air interface delay. Background Art
[0002] In the power grid system, the power collection terminal is an important business terminal. It can collect data from electric meters and various sensors, and integrate 5G remote communication modules through reserved communication warehouses, and transmit the collected data back to the business main station through 5G connection. The 5G remote communication module has a SIM card slot, and you can obtain network connection by purchasing a SIM card from the operator. Common power collection terminals include energy controllers, concentrators, special transformer collection terminals, intelligent fusion terminals in substations, three-phase meters, etc., all of which need to obtain 5G network connections through matching 5G remote communication modules.
[0003] The existing 5G telecommunication module can be embedded with two or more user identity modules (SIMs), which can be in the form of ordinary pluggable SIM cards or eSIM chips. Each user identity module corresponds to a telecom operator, and can provide legal identity information for the 5G telecommunication module to access the network under the corresponding operator's network, so that it has the ability to access the corresponding operator's 5G network. In the above solution, by integrating multiple SIMs, the 5G telecommunication module improves communication reliability. When a SIM cannot be connected due to environmental factors or poor network coverage, the backup SIM can be switched to ensure communication reliability.
[0004] The random access process is the initial step when the 5G telecommunication module accesses the network, and is used for uplink synchronization between the 5G telecommunication module and the 5G base station. Figure 1 shown.
[0005] The random access process includes MSG1 to MSG4 messages, where MSG1 is used by the terminal to initiate a random access request to the network, MSG2 is used for uplink time synchronization of the terminal, and MSG3 to MSG4 are used for random access conflict resolution. When the terminal receives the MSG4 message, it indicates that the random access has been completed. After that, the terminal sends the MSG5 message to initiate a request to attach to the network.
[0006] For 5G remote communication modules that integrate multiple user identity modules (SIMs), the existing mechanism cannot accurately determine which SIM has the best network conditions, and thus cannot ensure that the terminal always stays in the best network environment, and cannot further improve communication reliability. Summary of the invention
[0007] The object of the present invention is to provide a SIM switching method based on random access air interface delay, which is used to control the switching between different user identity modules (SIMs) of a 5G telecommunication module, so as to ensure that the 5G telecommunication module always resides in the optimal network environment.
[0008] To achieve the above purpose, the technical solution of the present invention is: a SIM switching method based on random access air interface delay, introducing random access air interface delay as a benchmark for comparing the wireless channel quality and wireless channel congestion of different networks; based on the random access air interface delay, the network is evaluated by comparing the random access air interface delays of different SIMs, and the best network is always selected for residence.
[0009] Compared with the prior art, the present invention has the following beneficial effects:
[0010] 1. Based on the SIM switching mechanism of random access air interface delay, an adaptive SIM switching strategy is introduced for the remote communication module to ensure that the module always resides in the network with the best network quality.
[0011] 2. Based on the SIM switching mechanism of random access air interface delay, the detection process only needs to initiate random access, and does not need to actually initiate network attachment, nor does it need to initiate service layer data transmission. It does not need to use traffic, thus avoiding additional traffic charges. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a random access procedure.
[0013] Figure 2 This is the random access process of the present invention. DETAILED DESCRIPTION
[0014] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.
[0015] The present invention discloses a SIM switching method based on random access air interface delay, which introduces random access air interface delay as a benchmark for comparing wireless channel quality and wireless channel congestion of different networks; based on the random access air interface delay, the quality of the network is evaluated by comparing the random access air interface delays of different SIMs, and the best network is always selected for residence.
[0016] The present invention also introduces a random access air interface delay calculation method, which obtains m random access air interface delays by initiating m random accesses, and removes the maximum and minimum values of the m random access air interface delays to avoid abnormal delays from being incorporated into the calculation. By calculating the average value, the random access air interface delay evaluation is made more accurate.
[0017] The following is the specific implementation process of the present invention.
[0018] The present invention proposes a SIM switching mechanism based on random access air interface delay, which is used to control the switching between different user identity modules (SIMs) of the 5G remote communication module to ensure that the 5G remote communication module always resides in the optimal network environment. The specific method is as follows:
[0019] 1. The time when the 5G remote communication module initiates MSG1 is taken as the starting point, recorded as T0, and the time when the 5G remote communication module receives MSG4 is taken as the end point, recorded as T1. (T1-T0) is defined as the random access air interface delay. Figure 2 shown.
[0020] 2. During the random access process, MSG1 to MSG4 are dependent on each other, and the basis for sending the subsequent messages is the correct reception of the previous message. When the channel quality is poor or the wireless channel is congested, the transmission of MSG1 to MSG4 is more prone to errors, resulting in a longer random access air interface delay; conversely, when the channel quality is good or the wireless channel is not congested, the random access air interface delay is smaller. In view of this, the size of the random access air interface delay is used as an indicator to reflect the quality of the wireless channel and the congestion of the wireless channel, and is used to subsequently evaluate the pros and cons of the network environment.
[0021] 3. Let the number of 5G telecommunication module user identity modules (SIMs) be n.
[0022] 4. Let τ be an n×m matrix, the array is initialized to 0, and is used to record the random access air interface delay of n SIMs. Each SIM initiates m (m>2) random accesses and records the m random access air interface delays. The number of random accesses m is configurable.
[0023] 5. The 5G remote communication module uses SIM_1, SIM_2, …, SIM_n in sequence to initiate the first random access, records its random access air interface delay, and stores it in τ(1,1), τ(2,1), …, τ(n,1) in sequence.
[0024] 6. After completing step 5, the 5G telecommunication module repeats step 5 at interval t, using SIM_1, SIM_2, ..., SIM_n to initiate random access from 2 to m times in sequence, recording their random access air interface delays, and storing them in τ(1,i), τ(2,i), ..., τ(n,i), where i = 2, ..., m. The interval t is configurable.
[0025] 7. Let λ be an n×(m-2) matrix, which is obtained by removing one maximum value and one minimum value of each row of τ on the basis of τ, that is, τ is corrected to avoid excessively large or too small random access air interface delay, which causes the average value of random access air interface delay to fail to reflect the actual wireless channel quality and wireless channel congestion level.
[0026] 8. Let δ be an n×1 vector initialized to 0, used to record the average value of each row vector of the λ matrix, where δ(1)=[λ(1,1)+λ(1,2)+…+λ(1,m-2)] / (m-2), δ(2)=[λ(2,1)+λ(2,2)+…+λ(2,m-2)] / (m-2), …, δ(n)=[λ(n,1)+λ(n,2)+…+λ(n,m-2)] / (m-2).
[0027] 9. δ(1)~δ(n) represent the average value of the (m-2) random access air interface delay from SIM_1 to SIM_n. By calculating the average value, the probability of a sudden random access delay can be avoided and the accuracy of the air interface delay can be improved.
[0028] 10. The 5G remote communication module calculates the minimum value δ(i) of the δ vector, 1≤i≤n, which means that the random access air interface delay when using SIM_i to access the network is the smallest, which means that the wireless channel quality under the network corresponding to SIM_i is better and the wireless congestion is smaller, that is, the overall network situation is better.
[0029] 11. Select SIM_i as the user identity module of the 5G remote communication module, and subsequently initiate network access based on SIM_i.
[0030] 12. After an interval of T, recalculate δ(i) according to the above steps. If the recalculated SIM is the same as the currently used SIM, continue to use the current SIM; if it is different from the currently used SIM, switch to the new SIM and re-initiate network access. The interval T is configurable.
[0031] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions do not exceed the scope of the technical solution of the present invention, belong to the protection scope of the present invention.
Claims
1. A SIM switching method based on random access air interface delay, characterized in that: The random access air interface delay is introduced as a benchmark for comparing the wireless channel quality and wireless channel congestion of different networks; based on the random access air interface delay, the network quality is evaluated by comparing the random access air interface delays of different SIM cards, and the best network is always selected for residence; the specific implementation steps of this method are as follows: Step S1, the time when the 5G remote communication module initiates MSG1 is taken as the starting point of the timing, recorded as T0, and the time when the 5G remote communication module receives MSG4 is taken as the end point, recorded as T1; T1-T0 is defined as random access air interface delay; Step S2, during the random access process, MSG1~MSG4 are dependent on each other, and the basis for sending the subsequent message is the correct reception of the previous message; when the channel quality is poor or the wireless channel is congested, the transmission of MSG1~MSG4 is more prone to errors, resulting in a larger random access air interface delay; conversely, when the channel quality is good or the wireless channel is not congested, the random access air interface delay is smaller; in view of this, the size of the random access air interface delay is used as an indicator reflecting the quality of the wireless channel and the congestion of the wireless channel, and is used for subsequent evaluation of the advantages and disadvantages of the network environment; Step S3, record the number of 5G telecommunication module user identity modules, i.e., SIM cards, as n; Step S4, τ is recorded as an n×m matrix, the array is initialized to 0, and is used to record the random access air interface delays of n SIMs, each SIM initiates m random accesses, and records the m random access air interface delays; the number of random accesses m is configurable, and m>2; Step S5, the 5G remote communication module uses SIM_1, SIM_2, ..., SIM_n in sequence to initiate the first random access, records its random access air interface delay, and stores it in τ(1,1), τ(2,1), ..., τ(n,1) in sequence; Step S6: After completing step S5, at interval t, the 5G remote communication module repeats step S5, and uses SIM_1, SIM_2, ..., SIM_n to initiate random access from the second to the mth time in sequence, records the random access air interface delay, and stores it in τ(1,i), τ(2,i), ..., τ(n,i) in sequence, where i=2, ..., m; the interval t is configurable; Step S7, let λ be an n×(m-2) matrix, which is obtained by removing one maximum value and one minimum value of each row of τ on the basis of τ, that is, τ is corrected to avoid excessively large or too small random access air interface delay, resulting in the average value of random access air interface delay failing to reflect the actual wireless channel quality and wireless channel congestion degree; Step S8, let δ be an n×1 vector, initialized to 0, used to record the average value of each row vector of the λ matrix, where δ(1)=[λ(1,1) + λ(1,2) + … +λ(1,m-2)] / (m-2), δ(2)= [λ(2,1) + λ(2,2) + … +λ(2,m-2)] / (m-2), …, δ(n)= [λ(n,1) + λ(n,2) + … +λ(n,m-2)] / (m-2); Step S9, δ(1)~δ(n) represents the average value of the (m-2) random access air interface delay from SIM_1 to SIM_n; by calculating the average value, the probability of a sudden random access delay is avoided, and the accuracy of the air interface delay is improved; Step S10, the 5G remote communication module calculates the minimum value δ(i) of the δ vector, 1≤i≤n, indicating that the random access air interface delay when using SIM_i to access the network is the smallest, which means that the wireless channel quality under the network corresponding to SIM_i is better and the wireless congestion is smaller, that is, the overall network situation is better; Step S11, select SIM_i as the user identity module of the 5G remote communication module, and subsequently initiate network access based on SIM_i; Step S12, interval time T, according to the above steps, recalculate δ(i); if the recalculated SIM is the same as the currently used SIM, continue to use the current SIM; if it is different from the currently used SIM, switch to the new SIM and re-initiate network access; the interval time T is configurable.
