Terminal mode switching method, mobile terminal, and computer readable storage medium

By combining motion sensors and changes in cellular handover time for dual identification methods, the problem of inaccurate high-speed rail pattern recognition by mobile terminals in high-speed moving scenarios is solved, improving recognition accuracy and communication stability.

CN119996564BActive Publication Date: 2026-01-30HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311461315.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2026-01-30
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

Existing mobile terminals do not accurately recognize high-speed rail mode in high-speed mobile scenarios, which affects the implementation of communication schemes on modems that rely on high-speed rail mode.

Method used

By combining motion data collected by motion sensors and changes in cell handover time, high-speed rail patterns are identified from multiple angles to ensure consistency of identification results.

Benefits of technology

It improves the accuracy of high-speed rail pattern recognition, ensures the smooth implementation of communication schemes on modems that rely on high-speed rail patterns, and reduces reliance on motion sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996564B_ABST
    Figure CN119996564B_ABST
Patent Text Reader

Abstract

This application relates to the field of terminal technology, providing a terminal mode switching method, a mobile terminal, and a computer-readable storage medium. The method includes: the mobile terminal determining that it is in a first terminal mode based on motion data collected by a motion sensor; and the mobile terminal determining that it is in a second terminal mode based on changes in the duration of its switching access to various cellular cells; if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, the mobile terminal enters the high-speed rail mode. Therefore, this method determines whether the mobile terminal has entered the high-speed rail mode based on two sets of high-speed rail identification schemes. By considering multiple perspectives, it can reduce reliance on sensors to a certain extent, thereby improving the accuracy of high-speed rail mode identification and ensuring the smooth implementation of communication schemes on the modem that rely on the high-speed rail mode.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of terminals, and in particular, to a terminal mode switching method, a mobile terminal, and a computer readable storage medium. BACKGROUND

[0002] Currently, in order to ensure network stability of a mobile terminal in a high-speed moving scenario such as a high-speed rail, a bullet train, a special express train (T-numbered train), a fast train (K-numbered train), and the like, and to ensure terminal experience of a user in the scenario, a high-speed rail mode is provided by a terminal product. A current mobile terminal mainly identifies whether the high-speed rail mode is currently in effect by identifying a motion state of the mobile terminal based on motion data collected by a motion sensor.

[0003] However, due to hardware errors of the motion sensor or influences of an application scenario, the high-speed rail mode is prone to be inaccurately identified. In turn, implementation of a communication scheme on a Modem that depends on the high-speed rail mode is prone to be affected. SUMMARY

[0004] Embodiments of the present application provide a terminal mode switching method, a mobile terminal, and a computer readable storage medium, and are used to solve the problem of inaccurate identification of a high-speed rail mode and in turn affect implementation of a communication scheme on a Modem that depends on the high-speed rail mode.

[0005] To achieve the above object, embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a terminal mode switching method is provided. The method is applied to a mobile terminal, and the mobile terminal includes one or more motion sensors. The motion sensors are used to collect motion data of the mobile terminal. The method includes: determining that the mobile terminal is in a first terminal mode based on the motion data collected by the motion sensors; determining that the mobile terminal is in a second terminal mode based on a change in a time length for the mobile terminal to switch to access each cell; and entering the high-speed rail mode by the mobile terminal if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode.

[0007] In a possible implementation manner of the first aspect, the first terminal mode is a high-speed rail mode, the second terminal mode is a non-high-speed rail mode, and the mobile terminal enters the high-speed rail mode.

[0008] Therefore, this method, based on the traditional method of identifying high-speed rail modes using motion data collected by motion sensors, adds a scheme based on the duration changes in mobile terminal switching access to different cellular cells to identify the high-speed rail mode. Furthermore, when the identification results of the two schemes differ, the high-speed rail mode takes precedence, and the mobile terminal enters high-speed rail mode. Compared to the traditional method that only relies on the identification results based on motion data collected by motion sensors, this multi-faceted approach reduces reliance on motion sensors to a certain extent, thereby improving the accuracy of high-speed rail mode identification and ensuring the smooth implementation of communication schemes on the modem that rely on high-speed rail mode.

[0009] In another possible implementation of the first aspect, the mobile terminal includes a modem. Since most communication schemes on the mobile terminal are implemented on the modem, the determination of whether the modem has entered high-speed rail mode can be mainly performed by the modem. Therefore, the method may further include: the modem receiving a first terminal mode; and the modem determining that the mobile terminal is in a second terminal mode based on the changes in the duration of the mobile terminal switching access to various cells; if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, then the modem enters high-speed rail mode.

[0010] In one possible implementation of the first aspect, due to the rapid movement in high-speed mobile scenarios, mobile terminals typically switch between many different cells quickly. Therefore, the second terminal mode can be determined by comprehensively considering the varying handover times between different cells to ensure the accuracy of the second terminal mode.

[0011] Based on this, determining whether a mobile terminal is in a second terminal mode based on the duration of its handover to various cellular cells can include: recording the cell change duration each time the mobile terminal hands over to a new cellular cell; when the number of recorded cell change durations reaches a threshold L, calculating the average of the L cell change durations whose recorded times are closest to the current time to obtain the average cell change duration; if the average cell change duration is less than the duration T1, then the second terminal mode is determined to be the high-speed rail mode; if the average cell change duration is equal to or greater than the duration T1, then the second terminal mode is determined to be the non-high-speed rail mode.

[0012] In one possible implementation of the first aspect, the cell change durations accumulate, but the required amount and the actual useful data are limited. Therefore, to prevent this useless data from occupying storage space, a queue of a fixed length can be set up based on a threshold L to record the cell change durations T. This allows the use of the queue's first-in, first-out (FIFO) principle to retain only the useful cell change durations without requiring additional cleanup.

[0013] Based on this, when the number of recorded cell change durations reaches a threshold L, the average of the L cell change durations whose recorded time is closest to the current time is calculated to obtain the average cell change duration. This can include: setting up a first queue and writing the recorded cell change durations into the first queue; wherein the length of the first queue is equal to or greater than the threshold L; when the number of cell change durations written in the first queue reaches L, the average of the L cell change durations is calculated starting from the tail of the queue to obtain the average cell change duration.

[0014] In one possible implementation of the first aspect, since experience and measured data indicate that the duration of a single cell change in a high-speed mobile scenario typically does not exceed a certain duration T2, after recording the cell change duration once, the method could further include: clearing all recorded cell change durations when the recorded cell change duration is equal to or greater than duration T2. ​​This allows for the clearing of recorded, useless cell change durations when it is determined that the mobile terminal is unlikely to be in high-speed rail mode, thus avoiding wasted space and resources.

[0015] In one possible implementation of the first aspect, since the signal of a mobile terminal typically exhibits unique changing trends after accessing a cellular cell in high-speed mobile scenarios, these signal change trends can be used to further assist in determining whether the mobile terminal is currently in high-speed rail mode, thereby improving the accuracy of the second terminal mode recognition.

[0016] Based on this, the method may further include: monitoring the first signal change trend of the mobile terminal in each accessed cellular cell; if a preset number of first signal change trends do not match the second signal change trend, clearing all recorded cell change durations. Here, the second signal change trend is the signal change trend corresponding to the mobile terminal in a high-speed mobile scenario.

[0017] In one possible implementation of the first aspect, because the mobile terminal is in a high-speed movement scenario, it is generally impossible for the mobile terminal to return to the same cell signal coverage area within a certain period of time. Therefore, this characteristic can be used to correct and modify the first terminal mode to ensure the accuracy of the first terminal mode.

[0018] Based on this, the terminal mode switching method may further include: setting a second queue, and writing the cell identifier and access time point corresponding to each cell accessed by the mobile terminal into the second queue; wherein, the length of the second queue is equal to a threshold L; if the first terminal mode is high-speed rail mode, then obtaining the first cell identifier and the first access time point from the second queue; wherein, the first cell identifier is the cell identifier obtained from the tail of the queue, and the first access time point is the access time point corresponding to the obtained cell identifier; traversing the cell identifiers starting from the head of the second queue, and if a second cell identifier exists in the second queue, obtaining the second access time point corresponding to the second cell identifier; wherein, the second cell identifier is the cell identifier that was historically written into the second queue and is the same as the first cell identifier; calculating the time difference between the first access time point and the second access time point; if the time difference is equal to or greater than T3, changing the first terminal mode from high-speed rail mode to non-high-speed rail mode.

[0019] In one possible implementation of the first aspect, since there are relatively few scenarios where high-speed rail and subway have overlapping coverage in the existing network, geofencing can be used to correct and change the situation where subway mode is mistakenly identified as high-speed rail mode, thereby improving the accuracy of the first terminal mode.

[0020] Therefore, if the first terminal mode of the mobile terminal is high-speed rail mode, the terminal mode switching method may further include: obtaining the cell currently accessed by the mobile terminal and the high-speed rail geofence; wherein, the high-speed rail geofence is a geofence constructed by the cells along the high-speed rail line; when the currently accessed cell is not included in the high-speed rail geofence, the first terminal mode is changed from high-speed rail mode to non-high-speed rail mode.

[0021] In one possible implementation of the first aspect, a dedicated high-speed private network (HSDN) is available for mobile terminals to access in order to provide better services in high-speed mobile scenarios. Therefore, the accuracy of the first terminal mode can also be determined by whether the mobile terminal is connected to the HSDN.

[0022] Based on this, if the mobile terminal's first terminal mode is high-speed rail mode, the terminal mode switching method can further include: obtaining the communication network protocol corresponding to the cellular cell currently accessed by the mobile terminal; and when the communication network protocol does not carry the High Speed ​​Dedicated Network (HSDN) identifier, changing the first terminal mode from high-speed rail mode to non-high-speed rail mode. Thus, when it is determined from the HSDN that the mobile terminal is currently likely in non-high-speed rail mode, changing the first terminal mode from high-speed rail mode to non-high-speed rail mode improves the accuracy of the first terminal mode.

[0023] Secondly, since determining the second terminal mode of a mobile terminal based on the duration of handover to various cells requires a certain number of cells to be accessed, the time required to determine the second terminal mode is generally longer than that required to determine the first terminal mode. Therefore, to avoid the mobile terminal being unable to enter high-speed rail mode during this time interval due to waiting for the determination of the second terminal mode, thus affecting the implementation of communication schemes relying on high-speed rail mode, a terminal mode switching method is also provided. This method is also applied to a mobile terminal, which includes one or more motion sensors; the motion sensors are used to collect motion data of the mobile terminal, and the method includes:

[0024] At the first moment, based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in non-high-speed rail mode, and the mobile terminal does not enter or exit high-speed rail mode; at the second moment, based on the change in the duration of the mobile terminal switching access to each cell, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters high-speed rail mode; wherein, the second moment is after the first moment.

[0025] In one possible implementation of the second aspect, at the third moment, based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters high-speed rail mode; at the fourth moment, based on the change in the duration of the mobile terminal switching access to each cell, it is determined that the mobile terminal is in non-high-speed rail mode, and the mobile terminal neither enters nor exits high-speed rail mode; wherein, the fourth moment is after the third moment.

[0026] It should be noted that, in the second aspect and various possible implementations, the specific methods by which the mobile terminal determines that it is in the first terminal mode based on motion data collected by the motion sensor, and the specific methods by which the mobile terminal determines that it is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cell, can be referred to the detailed description in the possible implementations of the first aspect, and will not be repeated here in this application.

[0027] In the second aspect and various possible implementations, the mobile terminal also includes a modem. The relevant steps performed by the modem can be found in the detailed description of the possible implementations in the first aspect, which will not be repeated here.

[0028] Thirdly, this application provides a mobile terminal, comprising: one or more motion sensors, one or more processors, a memory, and a mobile communication module; the motion sensors, memory, and mobile communication module are respectively coupled to the processor; the motion sensors are used to collect motion data of the mobile terminal; the mobile communication module is used to support the mobile terminal to access a cellular network; the memory stores one or more computer program codes, the computer program codes including computer instructions; when the processor executes the computer instructions, the mobile terminal performs the following steps:

[0029] Based on motion data collected by motion sensors, the mobile terminal is determined to be in the first terminal mode; based on the change in the duration of the mobile terminal switching access to each cell, the mobile terminal is determined to be in the second terminal mode; if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, the mobile terminal enters the high-speed rail mode.

[0030] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0031] The first terminal mode is high-speed rail mode, the second terminal mode is non-high-speed rail mode, and the mobile terminal enters high-speed rail mode.

[0032] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0033] Each time a mobile terminal switches to a new cellular cell, it records the duration of the cell change. When the number of recorded cell change durations reaches a threshold L, the average duration of the L cells whose recorded time is closest to the current time is calculated to obtain the average cell change duration. If the average cell change duration is less than the duration T1, the second terminal mode is determined to be the high-speed rail mode. If the average cell change duration is equal to or greater than the duration T1, the second terminal mode is determined to be the non-high-speed rail mode.

[0034] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0035] Set up a first queue and write the recorded cell change duration into the first queue; wherein the length of the first queue is equal to or greater than the threshold L; when the number of cell change durations written in the first queue reaches L, calculate the average value of the L cell change durations starting from the tail of the queue to obtain the average cell change duration.

[0036] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0037] When the recorded cell change duration is equal to or greater than duration T2, clear all recorded cell change durations.

[0038] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0039] Monitor the first signal change trend of the mobile terminal in each accessed cell; if a preset number of first signal change trends and second signal change trends do not match, clear all recorded cell change durations. The second signal change trend refers to the signal change trend of the mobile terminal in high-speed mobile scenarios.

[0040] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0041] A second queue is set up, and the cell identifier and access time point corresponding to each cell accessed by the mobile terminal are written into the second queue; the length of the second queue is equal to the threshold L; if the first terminal mode is high-speed rail mode, the first cell identifier and the first access time point are obtained from the second queue; the first cell identifier is the cell identifier obtained from the tail of the queue, and the first access time point is the access time point corresponding to the obtained cell identifier; starting from the head of the second queue, the cell identifiers are traversed. If a second cell identifier exists in the second queue, the second access time point corresponding to the second cell identifier is obtained; the second cell identifier is the cell identifier that was previously written into the second queue and is the same as the first cell identifier; the time difference between the first access time point and the second access time point is calculated; if the time difference is equal to or greater than T3, the first terminal mode is changed from high-speed rail mode to non-high-speed rail mode.

[0042] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0043] Obtain the cell currently accessed by the mobile terminal and the high-speed rail geofence; wherein, the high-speed rail geofence is a geofence constructed by the cells along the high-speed rail line; if the currently accessed cell is not included in the high-speed rail geofence, change the first terminal mode from high-speed rail mode to non-high-speed rail mode.

[0044] In one possible implementation of the third aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0045] Obtain the communication network protocol corresponding to the cell currently accessed by the mobile terminal; when the communication network protocol does not carry the High Speed ​​Dedicated Network (HSDN) identifier, change the first terminal mode from high-speed rail mode to non-high-speed rail mode.

[0046] In one possible implementation of the third aspect, the processor includes a modem. The modem works in conjunction with the mobile communication module to support the mobile terminal's access to the cellular network; the modem can perform the steps in the aforementioned terminal mode switching method related to determining whether the mobile terminal is in the second terminal mode based on the duration changes of the mobile terminal switching access to each cellular cell. Furthermore, the modem can also be used to perform the steps in the aforementioned terminal mode switching method related to confirming whether to enter high-speed rail mode based on the first terminal mode and the second terminal mode.

[0047] In one possible implementation of the third aspect, the motion sensor includes any one or more of the following: a magnetometer sensor, an accelerometer sensor, and a gyroscope sensor.

[0048] Fourthly, this application provides a mobile terminal, comprising: one or more motion sensors, one or more processors, a memory, and a mobile communication module; the motion sensors, memory, and mobile communication module are respectively coupled to the processor; the motion sensors are used to collect motion data of the mobile terminal; the mobile communication module is used to support the mobile terminal to access a cellular network; the memory stores one or more computer program codes, the computer program codes including computer instructions; when the processor executes the computer instructions, the mobile terminal performs the following steps:

[0049] At the first moment, based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in non-high-speed rail mode, and the mobile terminal does not enter or exit high-speed rail mode; at the second moment, based on the change in the duration of the mobile terminal switching access to each cell, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters high-speed rail mode; wherein, the second moment is after the first moment.

[0050] In one possible implementation of the fourth aspect, when the aforementioned computer instructions are executed by the processor, the mobile terminal further performs the following steps:

[0051] At the third moment, based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters high-speed rail mode; at the fourth moment, based on the change in the duration of the mobile terminal switching access to various cellular cells, it is determined that the mobile terminal is in non-high-speed rail mode, and the mobile terminal neither enters nor exits high-speed rail mode; wherein, the fourth moment is after the third moment.

[0052] Fifthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor in a mobile terminal, causes the mobile terminal to perform a terminal mode switching method as described in the first aspect, the second aspect, and any possible implementation thereof.

[0053] Sixthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the terminal mode switching method as described in the first aspect, the second aspect, and any possible implementation thereof. The computer may be the aforementioned mobile terminal.

[0054] Understandably, the beneficial effects that the mobile terminal of any possible implementation of the third and fourth aspects, the computer-readable storage medium of the fifth aspect, and the computer program product of the sixth aspect can achieve can be referred to the beneficial effects of the first and second aspects and any possible implementation thereof, which will not be repeated here. Attached Figure Description

[0055] Figure 1 A schematic diagram of a high-speed rail mode setting interface provided in this application embodiment. Figure 1 ;

[0056] Figure 2 A schematic diagram of a high-speed rail mode setting interface provided in this application embodiment. Figure 2 ;

[0057] Figure 3 A flowchart illustrating a terminal mode switching method provided in an embodiment of this application;

[0058] Figure 4 This is a schematic diagram of the structure of a mobile terminal 100 provided in an embodiment of this application;

[0059] Figure 5 A schematic diagram of the interaction flow of a terminal mode switching method provided in this application embodiment. Figure 1 ;

[0060] Figure 6 A schematic diagram of the interaction flow of a terminal mode switching method provided in this application embodiment. Figure 2 ;

[0061] Figure 7 A schematic diagram of a first queue provided for an embodiment of this application;

[0062] Figure 8 A flowchart illustrating another terminal mode switching method provided in an embodiment of this application;

[0063] Figure 9 This application provides a schematic diagram of a first terminal mode correction process.

[0064] Figure 10 This is a schematic diagram of a tree structure for terminal mode switching provided in an embodiment of this application. Detailed Implementation

[0065] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the scope of this application.

[0066] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" are not necessarily different. Also, in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0067] Currently, with the development and popularization of mobile terminal technology, various terminal products, such as mobile phones and tablets, have become necessities for users when traveling. Simultaneously, with the rapid development of railway transportation technology, more and more users are prioritizing high-speed trains. For example, they are choosing high-speed rail, bullet trains, express trains (T-series trains), and fast trains (K-series trains) for travel. Furthermore, relatively enclosed spaces such as underground parking garages and elevators are also becoming essential routes for users' travel.

[0068] In these travel scenarios, due to high speeds or enclosed spaces with weak signals, mobile terminals are prone to network disconnections and speed drops, affecting network stability. This instability can impair the use of mobile terminal communication functions, leading to a poor user experience. Therefore, to ensure a better user experience in these scenarios, existing terminal products have introduced a high-speed rail mode (also known as a highway mode).

[0069] High-speed rail mode can be understood as a network mode on mobile devices. Enabling high-speed rail mode on mobile devices can optimize network connectivity, ensuring network stability in high-speed movement scenarios and in enclosed spaces with weak signals.

[0070] In existing technologies, the high-speed rail mode on mobile terminals can be enabled by default. It should be noted that enabling high-speed rail mode does not guarantee that the mobile terminal will automatically enter high-speed rail mode. That is, the mobile terminal will only enter high-speed rail mode if it detects that it is in a high-speed moving environment (i.e., high-speed rail, bullet train, express train, etc.) or a confined space with weak signal.

[0071] Mobile devices can also provide a control to enable high-speed rail mode in their settings. High-speed rail mode will only be activated after the mobile device responds to the user's input and detects that the device is in a high-speed moving environment or a confined space with weak signal. If high-speed rail mode is disabled, the mobile device will not activate it even if it detects that the device is in a high-speed moving environment or a confined space with weak signal.

[0072] For example, such as Figure 1 The image shows a schematic diagram of a high-speed rail mode settings interface. When the mobile terminal receives a user's... Figure 1 After clicking the "Activate High-Speed ​​Rail Mode" button on the interface shown, the mobile terminal responds to the click and activates its own High-Speed ​​Rail Mode. For example... Figure 2 The image shows a schematic diagram of the interface when the high-speed rail mode is activated. Figure 2 When the high-speed rail mode is enabled, if the mobile terminal detects that it is in a high-speed moving scene or a closed space with a weak signal, it will enter high-speed rail mode. Of course, the ways in which the user triggers the mobile terminal to activate high-speed rail mode include, but are not limited to, the following: Figures 1-2 As shown in the diagram. For example, a "High-Speed ​​Rail Mode" on / off control could be included in any location on a mobile terminal (such as a phone), such as the negative one screen or the notification bar, to allow users to enable or disable the High-Speed ​​Rail Mode.

[0073] Currently, for identifying high-speed rail mode in high-speed movement scenarios, mobile terminals mainly rely on motion sensors to collect motion data and then identify the mobile terminal's motion state to determine whether it is currently in high-speed rail mode. However, due to hardware errors in motion sensors or the influence of application scenarios, high-speed rail mode identification can easily become inaccurate.

[0074] For example, due to hardware errors in motion sensors, high-speed rail patterns may be misidentified as non-high-speed rail patterns. Alternatively, in some non-high-speed movement scenarios, rapidly changing scenes (such as subways) may lead to misidentification of non-high-speed rail patterns as high-speed rail patterns. Furthermore, the motion sensors used for subway pattern recognition are somewhat similar to those used for high-speed rail, bullet train, and express train scene recognition, resulting in numerous instances of misidentifying subway patterns (non-high-speed rail patterns) as high-speed rail patterns.

[0075] Currently, many communication schemes on modems rely on high-speed rail mode for implementation. Therefore, inaccurate recognition of high-speed rail mode can further affect the implementation of some communication schemes on modems that depend on high-speed rail mode.

[0076] For example, in high-speed mobile scenarios, cell activity changes rapidly, so mobile terminals may miss cells, causing some actions to fail and leading to cell reconstruction issues. This problem is usually resolved by the modem preemptively and quickly switching cells after the mobile terminal has entered high-speed rail mode. Therefore, if high-speed rail mode recognition is inaccurate, this cell reconstruction problem may also become unresolved.

[0077] Therefore, in order to reduce the inaccuracy of high-speed rail mode recognition in high-speed mobile scenarios, and thus reduce the impact on the implementation of communication schemes on modems that rely on high-speed rail mode, this application provides a terminal mode switching method.

[0078] For ease of description, the following embodiments of this application are mainly described using high-speed rail, a high-speed transportation tool, as an example, but this does not constitute a limitation on the embodiments of this application.

[0079] The terminal mode switching method provided in this application is applied to a mobile terminal, which includes one or more motion sensors. The main principle of this terminal mode switching method is as follows: based on the traditional method of identifying high-speed rail mode based on motion data collected by motion sensors, an additional identification scheme is added to determine whether the mobile terminal is in high-speed rail mode based on the duration changes in the mobile terminal's access to different cells. Then, the two identification results are considered comprehensively to determine whether the mobile terminal has currently entered high-speed rail mode.

[0080] like Figure 3 The diagram shown illustrates a method for switching terminal modes. The following section, in conjunction with a mobile terminal and... Figure 3 The terminal mode switching method provided in the embodiments of this application will be briefly described.

[0081] refer to Figure 3 The mobile terminal determines its first terminal mode based on motion data collected by motion sensors. This first terminal mode can be either a high-speed rail mode or a non-high-speed rail mode. In other words, the first terminal mode is the terminal mode determined based on motion data collected by sensors, and can be either a high-speed rail mode or a non-high-speed rail mode.

[0082] For example, the motion sensor may include a magnetometer sensor and an accelerometer sensor. The mobile terminal can then determine whether it is currently on a high-speed train by using the orientation data measured by the magnetometer sensor and the motion data such as acceleration measured by the accelerometer sensor. If it is ultimately determined that the mobile terminal is currently on a high-speed train, then the first terminal mode is high-speed train mode. Otherwise, the first terminal mode is non-high-speed train mode.

[0083] Meanwhile, since the handover speed of the cellular cells accessed by the mobile terminal increases accordingly with movement speed, the mobile terminal can determine whether it is currently in a high-speed movement scenario by monitoring the changes in the duration of handover to various cellular cells, and thus determine whether the mobile terminal is in high-speed rail mode. In other words, the mobile terminal can determine its secondary terminal mode based on the changes in the duration of handover to various cellular cells. This secondary terminal mode can also be either high-speed rail mode or non-high-speed rail mode.

[0084] Then, the mobile terminal compares the first terminal mode with the second terminal mode. If the first terminal mode is a non-high-speed rail mode, the second terminal mode is a high-speed rail mode. That is, at this time, the mobile terminal identified based on motion data from the motion sensor is not in high-speed rail mode, but the mobile terminal identified based on the duration change of the cellular data is in high-speed rail mode. Since the high-speed rail mode appears in both identification results, the high-speed rail mode is taken as the standard, that is, the second terminal mode is taken as the standard, and the mobile terminal enters high-speed rail mode.

[0085] If the first terminal mode is high-speed rail mode, and the second terminal mode is non-high-speed rail mode, that is, the mobile terminal identified based on motion sensor data is in high-speed rail mode, but the mobile terminal identified based on cell duration changes is in non-high-speed rail mode. Since high-speed rail mode still appears in both identification results, the high-speed rail mode will prevail, i.e., the first terminal mode will be used, and the mobile terminal will enter high-speed rail mode.

[0086] Furthermore, if both the first and second terminal modes are high-speed rail mode or non-high-speed rail mode, the identification results from both methods (motion data based on motion sensors and changes in handover access cell duration) will be the same. Therefore, the actual identification result will prevail. That is, if both the first and second terminal modes are high-speed rail mode, the mobile terminal enters high-speed rail mode. If both the first and second terminal modes are non-high-speed rail mode, the mobile terminal enters non-high-speed rail mode.

[0087] Therefore, in this embodiment, by adding a scheme to identify the high-speed rail mode based on the duration changes of mobile terminal switching access to various cellular cells, the high-speed rail mode is taken as the standard if the identification results of the two schemes differ. In summary, compared to traditional identification schemes that rely solely on motion data collected by motion sensors, this multi-faceted approach reduces reliance on motion sensors, thereby improving the accuracy of high-speed rail mode identification and ensuring the smooth implementation of communication schemes on the modem that rely on the high-speed rail mode.

[0088] It should be understood that while using high-speed rail mode as the standard might lead to the misconception that the mobile terminal is in high-speed rail mode, the impact of this misconception is relatively small compared to affecting the implementation of communication solutions that rely on high-speed rail mode. This is because affecting the implementation of communication solutions could lead to abnormal use of mobile terminal communication functions, while misconception causing the mobile terminal to enter high-speed rail mode might only increase device power consumption.

[0089] In some embodiments, the mobile terminal includes a modem, and most communication schemes relying on the high-speed rail mode are executed on the modem. Therefore, the scheme in the above terminal mode switching method that identifies the high-speed rail mode based on the change in the duration of the mobile terminal's access to each cell can be executed by the modem. Then, the modem comprehensively considers the identification results of the two identification schemes to determine whether the modem has entered the high-speed rail mode. Of course, the modem can also comprehensively consider the identification results of the two identification schemes to determine whether the mobile terminal has entered the high-speed rail mode.

[0090] Specifically, when a mobile terminal enters high-speed rail mode, it can be understood that all modules and services within the mobile terminal operate in high-speed rail mode. Conversely, when a modem enters high-speed rail mode, it can be understood that only the modem-related modules and services within the mobile terminal operate in high-speed rail mode. Therefore, when there are modules and services within the mobile terminal that only trust the first terminal mode (i.e., only trust the high-speed rail mode recognition result obtained from motion data collected by sensors), the operation of these modules and services will not be affected when only the modem enters high-speed rail mode.

[0091] Specifically, the modem in the mobile terminal receives the first terminal mode of the mobile terminal. The first terminal mode can be determined by other modules in the mobile terminal based on motion data collected by motion sensors. For example, the sensor hub (also known as a sensor center or sensor cluster) determines the first terminal mode based on the motion data collected by motion sensors; this embodiment of the application does not limit this. Simultaneously, the modem obtains the second terminal mode of the mobile terminal based on the changes in the duration of the mobile terminal switching access to different cells.

[0092] Then, the modem compares the received first terminal mode with its own obtained second terminal mode. If the first terminal mode is not high-speed rail mode, the second terminal mode is high-speed rail mode. To prevent inaccurate identification of high-speed rail mode based on motion data collected by motion sensors from affecting the implementation of the communication scheme on the modem that relies on high-speed rail mode, the modem uses its own identification result as the standard. Therefore, the modem uses the second terminal mode as the mobile terminal's terminal mode. That is, in this case, if the modem determines that the mobile terminal is currently in high-speed rail mode, then either the modem or the mobile terminal enters high-speed rail mode, thereby ensuring the smooth implementation of the communication scheme on the modem that relies on high-speed rail mode.

[0093] Similarly, in this embodiment, if the first terminal mode is high-speed rail mode and the second terminal mode is non-high-speed rail mode, the modem will use the first terminal mode as the mobile terminal mode, and either the modem or the mobile terminal will enter high-speed rail mode. If the first and second terminal modes are the same, the modem will use the actual mode, as described above, and will not be repeated here.

[0094] The aforementioned mobile terminal can be at least one of the following: mobile phone, foldable mobile terminal, tablet computer, desktop computer, laptop computer, handheld computer, laptop, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, or smart city device. This application does not impose any special limitations on the specific type of mobile terminal.

[0095] Figure 4 This diagram illustrates the structure of a mobile terminal 100.

[0096] Mobile terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera module 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include motion sensors, such as a magnetometer sensor 180A, a gyroscope sensor 180B, and an accelerometer sensor 180C. The sensor module 180 may also include a magnetic sensor 180D, a pressure sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a barometric pressure sensor 180I, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0097] The processor 110 may include one or more processing units, such as an application processor (AP), a modem processor (i.e., a modem in this embodiment), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0098] The processor 110 can generate operation control signals based on the instruction opcode and timing signals to control instruction fetching and execution. For example, the processor 110 can be used to execute the terminal mode switching method described in the embodiments of this application.

[0099] In some embodiments, the steps related to determining the second terminal mode and determining whether to enter high-speed rail mode based on the first and second terminal modes in the terminal mode switching method can be executed by the modem processor in the processor 110. That is, the modem in the processor 110 can receive the first terminal mode and determine the second terminal mode of the mobile terminal. When the first and second terminal modes are different, the modem determines the high-speed rail mode as the terminal mode of the mobile terminal 100, causing the mobile terminal 100 or the modem to enter high-speed rail mode.

[0100] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. This memory can store instructions or data that the processor 110 has used or that are used frequently. If the processor 110 needs to use the instruction or data, it can directly retrieve it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0101] In some embodiments, the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. The processor 110 can connect to modules such as touch sensors, audio modules, wireless communication modules, displays, and camera modules through at least one of these interfaces.

[0102] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card, or music, video, and other files can be transferred from the mobile terminal to the external storage card.

[0103] Internal memory 121 can be used to store computer executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc. The data storage area may store data created during the use of mobile terminal 100 (such as audio data, phone book, etc.). In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional methods or data processing of mobile terminal 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.

[0104] The wireless communication function of the mobile terminal 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0105] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile terminal 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0106] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the mobile terminal 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0107] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0108] The wireless communication module 160 can provide solutions for wireless communication applications on the mobile terminal 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth Low Energy (BLE), ultra-wideband (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0109] In some embodiments, antenna 1 of mobile terminal 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling mobile terminal 100 to communicate with networks and other mobile terminals via wireless communication technology. This wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0110] The magnetometer sensor 180A is used to measure orientation data. In some embodiments, the magnetometer sensor 180A may include a triaxial magnetometer.

[0111] The gyroscope sensor 180B can be used to determine the motion attitude of the mobile terminal 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the mobile terminal 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the mobile terminal 100's shake, calculates the distance that the lens module needs to compensate based on the angle, and controls the lens to move in the opposite direction to counteract the shake of the mobile terminal 100, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0112] The accelerometer 180C can detect the magnitude of acceleration of the mobile terminal 100 in various directions (generally three axes). When the mobile terminal 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the mobile terminal's posture, and can be applied to applications such as screen orientation switching and pedometers.

[0113] The magnetic sensor 180D includes a Hall effect sensor. The mobile terminal 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. When the mobile terminal is a foldable mobile terminal, the magnetic sensor 180D can be used to detect the folding or unfolding of the mobile terminal, or the folding angle. In some embodiments, when the mobile terminal 100 is a flip phone, the mobile terminal 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Furthermore, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be configured.

[0114] A pressure sensor 180E is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180E can be disposed on the display screen 194. There are many types of pressure sensors 180E, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to the pressure sensor 180E, the capacitance between the electrodes changes. The mobile terminal 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 194, the mobile terminal 100 detects the intensity of the touch operation based on the pressure sensor 180E. The mobile terminal 100 can also calculate the touch position based on the detection signal from the pressure sensor 180E. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.

[0115] A distance sensor 180F is used to measure distance. The mobile terminal 100 can measure distance via infrared or laser. In some embodiments, during a shooting scenario, the mobile terminal 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0116] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The mobile terminal 100 emits infrared light outward through the LED. The mobile terminal 100 uses the photodiode to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than a threshold, it can be determined that there is an object near the mobile terminal 100. When the intensity of the detected reflected light is less than the threshold, the mobile terminal 100 can determine that there is no object near the mobile terminal 100. The mobile terminal 100 may use the proximity sensor 180G to detect when a user holds the mobile terminal 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and screen locking.

[0117] The fingerprint sensor 180H is used to collect fingerprints. The mobile terminal 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0118] The barometric pressure sensor 180I is used to measure air pressure. In some embodiments, the mobile terminal 100 calculates altitude based on the air pressure value measured by the barometric pressure sensor 180I to assist in positioning and navigation.

[0119] Temperature sensor 180J is used to detect temperature. In some embodiments, mobile terminal 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature detected by temperature sensor 180J exceeds a threshold, mobile terminal 100 reduces processor performance to reduce power consumption and implement thermal protection. In other embodiments, when the temperature detected by temperature sensor 180J is below another threshold, mobile terminal 100 heats battery 142. In still other embodiments, when the temperature is below yet another threshold, mobile terminal 100 may boost the output voltage of battery 142.

[0120] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of mobile terminal 100, in a different position than display screen 194.

[0121] The ambient light sensor 180L can be used to sense ambient light brightness. The mobile terminal 100 can adaptively adjust the brightness of its display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking photos. The ambient light sensor 180L can also work in conjunction with the proximity sensor 180G to detect whether the mobile terminal 100 is obstructed, such as when the mobile terminal is in a pocket. When obstruction or being in a pocket is detected, some functions (such as touch functionality) can be disabled to prevent accidental operation.

[0122] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.

[0123] Additionally, the USB connector 130 is a USB standard-compliant interface that can be used to connect the mobile terminal 100 to peripheral devices, connect a charger to charge the mobile terminal 100, connect other mobile terminals to transfer data between them, and connect headphones to output audio stored on the mobile terminal.

[0124] The charging management module 140 receives charging input from a charger, which can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the mobile terminal via the power management module 141. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and powers the processor 110, internal memory 121, display screen 194, camera module 193, and wireless communication module 160, etc.

[0125] The mobile terminal 100 can implement display functions through a GPU, a display screen 194, and an application processor. The mobile terminal 100 can also implement camera functions through a camera module 193, an ISP, a video codec, a GPU, a display screen 194, an application processor (AP), a neural network processor (NPU), etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor, used to perform mathematical and geometric calculations and for graphics rendering. In some embodiments, the GPU processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information. The display screen 194 is used to display images, videos, etc. In some embodiments, the display screen 194 includes a display panel. The ISP can be used to process color image data acquired by the camera module 193. The camera module 193 can be used to acquire color image data and depth data of the subject being photographed. In some embodiments, the camera module 193 may consist of a color camera module and a 3D sensing module. In other embodiments, the mobile terminal 100 may include one or more camera modules 193. The camera module 193 may also consist of two or more cameras. In some embodiments, the CPU, GPU, or NPU in the processor 110 can process the color image data and depth data acquired by the camera module 193.

[0126] The mobile terminal 100 can implement audio functions, such as music playback and recording, through an audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor. Buttons 190 may include a power button and volume buttons. A motor 191 can generate vibration feedback. An indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. A SIM card interface 195 is used to connect a SIM card.

[0127] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the mobile terminal 100. In other embodiments of this application, the mobile terminal 100 may also adopt different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0128] The terminal mode switching methods in the following embodiments can all be implemented in the mobile terminal 100 with the above-described hardware structure.

[0129] The following describes in detail the terminal mode switching method proposed in this application embodiment, taking the interaction between a modem and a motion sensor as an example, with reference to the accompanying drawings.

[0130] like Figure 5 The diagram shows an interactive flow diagram of a terminal mode switching method, including steps S501-S504.

[0131] S501, the motion sensor sends the collected motion data from the mobile terminal to the sensor hub.

[0132] S502, the sensor hub determines that the mobile terminal is in the first terminal mode based on motion data and sends it to the modem.

[0133] The motion data includes, but is not limited to, orientation, acceleration, and angular velocity. In this embodiment, the first terminal mode is the mobile terminal mode determined by the sensor hub based on the motion data collected by the motion sensor, which can be either a high-speed rail mode or a non-high-speed rail mode. The specific implementation of determining the first terminal mode of the mobile terminal based on the motion data collected by the motion sensor in this embodiment can employ any existing technical solution for identifying whether a mobile terminal is in high-speed rail mode based on motion data collected by the motion sensor. This embodiment does not impose any limitations on this.

[0134] S503: The modem determines that the mobile terminal is in the second terminal mode based on the changes in the duration of the mobile terminal switching access to each cell.

[0135] In high-speed mobile scenarios, the speed at which mobile terminals switch to new cellular cells also increases accordingly. Furthermore, there is a controllable speed range in any high-speed mobile scenario. For example, high-speed trains typically travel at 300km / h-350km / h, while bullet trains typically travel at 200km / h-250km / h.

[0136] Therefore, by using experience and measured data, the speed at which a mobile terminal switches to access a cell under different high-speed mobile scenarios can be calculated, and thus the duration of the mobile terminal switching to each cell under that high-speed mobile scenario can be obtained. Then, based on the variation in the duration of the mobile terminal switching to each cell, the modem can determine the mobile terminal's second terminal mode, which can be either a high-speed rail mode or a non-high-speed rail mode.

[0137] For example, if the change in the duration of the mobile terminal switching access to different cells corresponds to the speed at which the mobile terminal switches access to different cells on a high-speed train or bullet train, then the second terminal mode can be determined to be high-speed rail mode. Conversely, if the change in the duration of the mobile terminal switching access to different cells corresponds to the speed at which the mobile terminal switches access to different cells on a subway, then the second terminal mode can be determined to be non-high-speed rail mode.

[0138] It should be understood that the speed ranges of high-speed rail and bullet train are obtained from existing publicly available information in this application embodiment and are only used for illustrative purposes. This application embodiment does not constitute a limitation on the speed of high-speed rail and bullet train.

[0139] In some embodiments, due to the rapid movement in high-speed mobile scenarios, mobile terminals typically switch access to many different cells quickly. Therefore, to ensure the accuracy of the determined changes in the handover time between different cells, the varying handover times between different cells can be comprehensively considered.

[0140] For example, by obtaining the change duration of handover access in multiple cellular cells, the average of these change durations can be used to determine the second terminal mode, thereby improving the accuracy of the second terminal mode.

[0141] Based on this, such as Figure 6 As shown, S503 may include: each time the mobile terminal switches to access a new cellular cell, the Modem records the cell change duration once; when the number of recorded cell change durations reaches a threshold L, the Modem calculates the average of the L cell change durations whose recorded time is closest to the current time to obtain the average cell change duration; if the average cell change duration is less than the duration T1, the Modem determines that the second terminal mode is high-speed rail mode; if the average cell change duration is equal to or greater than the duration T1, the Modem determines that the second terminal mode is non-high-speed rail mode.

[0142] The cell change duration refers to the time it takes for a mobile terminal to switch from one cell to another. Correspondingly, it is the total access duration of the previous cell for the currently accessed new cell. Therefore, in this embodiment, the cell change duration T can be understood as: the total access duration of the previously accessed cell for the currently accessed new cell. The total access duration of the cell is the total time the mobile terminal accesses this cell.

[0143] Specifically, during the process of determining the second terminal mode of the mobile terminal, the modem records the cell change duration T each time the mobile terminal switches to a new cell. Therefore, every time the mobile terminal performs a cell switch, the modem records the corresponding cell change duration T.

[0144] As mobile terminals move at high speeds, the number of cells that mobile terminals switch to and access is increasing, and the number of cell change durations T recorded accordingly is also increasing.

[0145] When the number of recorded cell change durations T reaches (equal to or greater than) a threshold L, the modem can obtain the L most recently recorded cell change durations T and begin calculating the average of these durations. The L most recently recorded cell change durations T can be determined by the time interval between the recording time of the cell change duration T and the current time. That is, the modem selects L cell change durations T in ascending order of time interval. The modem calculates the average of these L selected cell change durations T to obtain the average cell change duration aT.

[0146] Then, the modem compares the average cell variation duration aT with the set duration T1. If the average cell variation duration aT is less than the duration T1, the modem determines that the second terminal mode is high-speed rail mode. If the average cell variation duration aT is equal to or greater than the duration T1, the modem determines that the second terminal mode is non-high-speed rail mode.

[0147] The threshold L and duration T1 mentioned above are preset values ​​based on experience and measured data. Taking high-speed rail as an example, the change rate of cells in a high-speed rail travel scenario is generally within 10 seconds. That is to say, in a high-speed rail scenario, a mobile terminal will generally move from one cell's signal coverage area to another cell's signal coverage area within 10 seconds (the mobile terminal will switch from one cell to another within 10 seconds). Therefore, the total access time of a mobile terminal within a cell in a high-speed rail scenario generally does not exceed 10 seconds. Therefore, as long as the modem determines that the average cell change time does not exceed 10 seconds, it can determine that the mobile terminal is currently in high-speed rail mode. Correspondingly, if the total access time of a mobile terminal within a cell reaches 10 seconds, that is, the average cell change time reaches 10 seconds, it can be determined that it is in non-high-speed rail mode. Therefore, in this embodiment of the application, the duration T1 used for comparison with the average cell change time aT can be set to 10 seconds.

[0148] Furthermore, regarding current misidentification issues, the similarity between subway and high-speed rail / bullet train identification often leads to subway patterns (not high-speed rail patterns) being identified as high-speed rail patterns. However, actual test data shows that there are generally no more than eight cells between two subway stations. This means that when a mobile terminal moves within a subway scenario, the rate of change of cells within eight is relatively uniform, while more than eight cells may disrupt this uniformity. Therefore, to ensure the accuracy of the identification results, the threshold L can be set to a value greater than 8. If the rate of change of cells beyond eight remains relatively fast and uniform, then it can be determined that it is not a subway scenario but a high-speed rail scenario.

[0149] In this embodiment of the application, considering that high-speed travel routes (high-speed rail lines) are usually accompanied by highways, the threshold L in this embodiment of the application is set to 10.

[0150] For example, with a threshold L = 10 and T1 = 10s, if 10 cell change durations T are recorded, the modem calculates the average of these 10 cell change durations T to obtain the average cell change duration aT. If more than 10 cell change durations T are recorded, say 15, the modem calculates the average of the last 10 recorded cell change durations T (i.e., the average of the change durations of cells 6 to 15) to obtain the average cell change duration aT. Then, if aT ≥ T1 = 10s, the second terminal mode is non-high-speed rail mode. If aT < T1 = 10s, the second terminal mode is high-speed rail mode.

[0151] Furthermore, based on experience and measured data, it can be determined that the duration of a single cell change in high-speed mobile scenarios typically does not exceed 30 seconds. Therefore, in some embodiments, the cell change duration T corresponding to a single cell can be compared with a duration T2 = 30 seconds. That is, after recording a cell change duration T, the modem compares the recorded cell change duration T with a preset duration T2.

[0152] If the comparison determines that T ≥ T2 = 30s, it means the mobile terminal is unlikely to be in a high-speed movement scenario, i.e., it cannot be in high-speed rail mode. Therefore, the recorded cell change durations T are meaningless data, and the modem can clear all recorded cell change durations T. However, if the comparison determines that T < T2 = 30s, it means the mobile terminal may be in a high-speed movement scenario, i.e., it may be in high-speed rail mode. In this case, the modem normally records the cell change duration T and proceeds with the subsequent process without further processing.

[0153] In some embodiments, the modem continuously records cell change durations T, accumulating a growing amount of data. However, the number of data points to be calculated each time is only L, meaning the remaining recorded cell change durations T are essentially useless data. Therefore, to prevent this useless data from consuming storage space, the recorded useless cell change durations T can be cleaned up. Alternatively, a queue of a fixed length can be set up based on a threshold L to record cell change durations T. This allows the use of the queue's first-in, first-out (FIFO) principle to retain only the useful cell change durations without requiring additional cleanup.

[0154] Based on this, in this embodiment of the application, the Modem can set up a first queue to write the recorded cell change duration T into the first queue. When the number of cell change durations T written in the first queue reaches L, the Modem obtains the average value of L cell change durations T starting from the tail of the first queue to obtain the average cell change duration aT.

[0155] Specifically, the first queue is a queue set up in this application embodiment to store cell change duration T. In order to ensure that the first queue can store the required L cell change durations T, the length of the first queue must be equal to or greater than the threshold L. That is, the length of the first queue can be L or L+i, i = 1, 2, 3...n, and n can be any positive integer greater than 0.

[0156] In this embodiment of the application, considering minimizing the space occupied by the queue and providing a length margin for the first queue, the length of the first queue in this embodiment of the application is L+1. For example, when L=10, the length of the first queue is 11.

[0157] For example, such as Figure 7 The diagram shows a first queue.

[0158] Therefore, in this embodiment of the application, the cell change duration T is stored in the first queue. According to the first-in-first-out principle of the queue, if the cell change duration T in the first queue is full, the first cell change duration T at the head of the first queue will naturally be dequeued and cleared when a new cell change duration T is written, thereby achieving the effect of clearing unnecessary data.

[0159] Therefore, each time the modem records a cell change duration T, it first compares this cell change duration T with the duration T2 = 30s. If T ≥ T2 = 30s, based on this comparison result, it can be determined that the mobile terminal is not currently in high-speed rail mode, so the modem can clear the first queue. If T < T2 = 30s, the cell change duration T is written into the first queue normally.

[0160] When the number of cell change durations T written in the first queue reaches a threshold L, since the modem needs to obtain the most recent L cell change durations T, it can start from the tail of the first queue to obtain the L cell change durations and calculate the average cell change duration aT. Then, the modem compares the average cell change duration aT with the duration T1 to obtain the second terminal mode.

[0161] like Figure 8 As shown, taking the first queue as an example, this provides a flowchart illustrating the process by which a modem determines the second terminal mode. That is, Figure 7The process shown is how the modem uses the first queue to record the cell change duration to determine the second terminal mode.

[0162] refer to Figure 8 After the mobile terminal is powered on, the modem first initializes the queue, setting up a first queue to record cell change duration T. After the queue initialization is complete, the modem begins monitoring handover access changes in cellular cells.

[0163] If a handover to a new cell is detected, the cell change duration T corresponding to this handover is written into the first queue. Then, the modem determines whether this cell change duration T is equal to or greater than duration T2.

[0164] If T≥T2, it means that the change time T of a single cell is too long. At this time, it is impossible to be in a high-speed mobile scenario, so it is not high-speed rail mode. The modem then clears the first queue and continues monitoring.

[0165] If T < T2, the Modem further determines whether the number of cells in the first queue with a change duration T is less than the threshold L.

[0166] If the number of cell change durations T is less than the threshold L (number of T < L), it means that the number of cells accessed by the handover has not yet reached L. The average value will not be calculated for the time being, and monitoring will continue.

[0167] If the number of cell change durations T is equal to or greater than the threshold L (the number of T ≥ L), then the average value of the L nearest cell change durations T is calculated starting from the tail of the first queue to obtain the average cell change duration aT.

[0168] Finally, the modem determines whether the average cell variation duration aT is less than duration T1. If aT ≥ T1, the mobile terminal is determined to be in high-speed rail mode, and the second terminal mode is non-high-speed rail mode. If aT < T1, the mobile terminal is determined to be in high-speed rail mode, and the second terminal mode is high-speed rail mode.

[0169] S504, the modem determines whether the modem (or mobile terminal) should enter high-speed rail mode based on the first terminal mode and the second terminal mode.

[0170] Specifically, if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, the modem will use the second terminal mode as the mobile terminal's terminal mode. Alternatively, if the first terminal mode is a high-speed rail mode and the second terminal mode is a non-high-speed rail mode, the modem will use the first terminal mode as the mobile terminal's terminal mode.

[0171] In other words, if both types of modems recognize the mobile terminal as currently in high-speed rail mode, the modem (or mobile terminal) is determined to have entered high-speed rail mode. Specifically, in this embodiment, regardless of whether the first or second terminal mode is high-speed rail mode or not, as long as the first and second terminal modes are different, the modem will use high-speed rail mode as the current terminal mode for the mobile terminal.

[0172] Correspondingly, when the first terminal mode and the second terminal mode are the same, since the two determined terminal modes are the same, choosing either one will have the same effect. Therefore, the modem can use either the first terminal mode or the second terminal mode as the current terminal mode of the mobile terminal. At this time, the modem (or mobile terminal) can enter high-speed rail mode or non-high-speed rail mode.

[0173] It should be understood that, Figure 5 and Figure 6 Although the steps are encoded sequentially using Arabic numerals, this encoding does not restrict the execution order of the steps. For example, the modem can execute S503 before, after, or simultaneously with S501 and S502.

[0174] In some embodiments, mobile terminals typically exhibit unique signal characteristics after accessing a cellular cell in high-speed mobile scenarios. For example, in high-speed rail scenarios, the signal strength of a mobile terminal after accessing a cellular cell usually increases first and then decreases. Therefore, these characteristics can be used to further assist the modem in determining whether the mobile terminal is currently in high-speed rail mode, thereby improving the accuracy of the second terminal mode identification.

[0175] Based on this, the terminal mode switching method may further include: the modem monitoring the first signal change trend of the mobile terminal in each accessed cell; if there are a preset number of first signal change trends that do not match the second signal change trend, the modem clears all recorded cell change durations.

[0176] Specifically, the first signal change trend refers to the signal change trend of the mobile terminal when accessing a cellular cell. The second signal change trend refers to the signal change trend of the mobile terminal in high-speed mobile scenarios. For example, in a high-speed rail scenario, the second signal change trend is initially strong and then weakens. The first signal change trend can be determined using signal data generated by the mobile terminal during cell access. The timing for determining the first signal change trend can be set according to actual needs.

[0177] For example, to determine this as early as possible, the modem can determine the initial signal change trend of the mobile terminal within the cell before the mobile terminal disconnects from the cell, that is, while the connection is still in progress. Alternatively, to obtain complete signal data during the access period, the modem can also determine the initial signal change trend of the mobile terminal within the cell based on complete signal data after the mobile terminal disconnects from the cell.

[0178] Then, the modem compares the trend of the first signal change with the trend of the second signal change. If the trend of the first signal change matches the trend of the second signal change, it indicates that the mobile terminal conforms to the inherent change characteristics of a high-speed mobile scenario, and the mobile terminal may currently be in high-speed rail mode. If the trend of the first signal change does not match the trend of the second signal change, it indicates that the mobile terminal does not conform to the inherent change characteristics of a high-speed mobile scenario, and it can be determined that the mobile terminal cannot currently be in high-speed rail mode.

[0179] If the signal change trend determines that the mobile terminal is unlikely to be in high-speed rail mode, then the cell change duration T previously recorded by the modem is useless data. Therefore, the modem can clear all recorded cell change durations T. If the cell change duration T is recorded in the first queue, then the first queue is cleared.

[0180] In this embodiment, if the record is cleared whenever a first signal change trend that does not conform to the second signal change trend occurs, the clearing condition may be too stringent, leading to incorrect judgments. Therefore, a threshold value can be set based on experience to constrain the modem's behavior of clearing records based on signal change trends.

[0181] That is, after the modem obtains a first signal change trend that does not match the second signal change trend, it can first store this first signal change trend. The modem will only clear the recorded cell change duration when it determines that the number of accumulated first signal change trends exceeds a preset number.

[0182] In some embodiments, if cell change durations are recorded using a first queue, then cell change durations removed from the first queue due to FIFO (First-In, First-Out) are essentially no longer relevant. Correspondingly, the first signal change trend of the cell corresponding to this cell change duration may also be meaningless. Therefore, when storing the first signal change trend, the modem can associate it with the corresponding cell change duration. If the cell change duration associated with the first signal change trend is removed from the queue, the first signal change trend can also be cleared simultaneously. This ensures that the recorded first signal change trends are all relevant and minimizes the probability of erroneously clearing records.

[0183] In some embodiments, due to the high-speed movement of the mobile terminal in high-speed mobile scenarios, it is generally impossible for the mobile terminal to return to the same cell signal coverage area within a certain period of time. Therefore, based on this characteristic, the first terminal mode output based on motion data collected by the motion sensor can be corrected accordingly to ensure the accuracy of the first terminal mode.

[0184] like Figure 9 As shown, a schematic diagram of a first terminal mode correction process is provided, including steps S901-S910. The following explanation uses a modem as an example, combined with... Figure 9 The first terminal mode correction process in the embodiments of this application will be described in detail.

[0185] S901, the Modem sets up a second queue, writing the cell identifier and access time point corresponding to each cell accessed by the mobile terminal into the second queue.

[0186] The second queue is a queue set up by the modem to record cell identifiers and access time points. The length of the second queue can be equal to a threshold L. The cell identifier is used to characterize a cellular cell and can be a cell identity (CID), location area code (LAC), tracking area code (TAC), etc., which can be set according to the actual application scenario requirements; this embodiment does not limit this. The access time point is the time when the mobile terminal accesses the cellular cell.

[0187] S902, the first terminal mode for the modem to receive mobile terminals.

[0188] In S903, the modem determines whether the first terminal is in high-speed rail mode. If yes, proceed to S904; otherwise, return to S902.

[0189] S904, the Modem obtains the first cell identifier and the first access time point from the second queue.

[0190] Here, the first cell identifier is the cell identifier obtained from the tail of the second queue, and the first access time point is the access time point corresponding to this cell identifier. It can be understood that the first cell identifier and the first access time point are the last cell identifier and access time point enqueued in the second queue.

[0191] That is, after the modem receives the first terminal mode, in order to identify whether there are any errors in the first terminal mode output based on motion data collected by the motion sensor and further corrections are needed, the modem obtains the cell identifier and access time of the cell that the mobile terminal recently accessed, that is, it obtains the first cell identifier and first access time from the tail of the queue.

[0192] S905, the modem traverses cell identifiers starting from the head of the second queue.

[0193] In step S906, the Modem checks if a second cell identifier exists in the second queue. If the second cell identifier exists in the second queue, proceed to step S907. If the second cell identifier does not exist in the second queue, return to step S902.

[0194] The second cell identifier is the cell identifier that was historically written into the second queue and is the same as the first cell identifier. The only difference between the first cell identifier and the second cell identifier is the time they were written into the second queue; the second cell identifier was written into the second queue before the first cell identifier.

[0195] S907, the Modem obtains the second access time point corresponding to the second cell identifier.

[0196] S908, the modem calculates the time difference between the first access time point and the second access time point.

[0197] In step S909, the modem checks if the time difference is equal to or greater than the duration T3. If the time difference is greater than or equal to T3, proceed to step S910. If the time difference is less than T3, return to step S902.

[0198] S910, the modem changes the first terminal mode from high-speed rail mode to non-high-speed rail mode.

[0199] Specifically, after the modem obtains the first cell identifier, it iterates through the cell identifiers starting from the head of the second queue, searching for the existence of the second cell identifier in the second queue. If the second cell identifier exists in the second queue, it may mean that the mobile terminal has not yet left this cell, or it may mean that the mobile terminal has returned to this cell. If it has returned to this cell, then it can be determined that it is not in high-speed rail mode.

[0200] Therefore, the modem needs to further determine whether to re-enter this cell by using the access time points of the two cells corresponding to the first cell identifier and the second cell identifier. Then, the modem obtains the access time point corresponding to the second cell identifier to obtain the second access time point.

[0201] Then, the modem calculates the time difference between the first and second access times. This time difference is compared to a preset duration T3. Duration T3 is a value set based on experience and measured data. For example, in a high-speed rail scenario, it's unlikely that a mobile terminal will still be within the same cell's signal coverage area after 60 seconds, nor will it re-enter the cell within 60 seconds. Therefore, T3 can be set to 60 seconds. In other words, if the time difference is ≥60 seconds, it means the mobile terminal is unlikely to be in high-speed rail mode. Therefore, the modem changes the first terminal mode from high-speed rail mode to non-high-speed rail mode. If the time difference is <60 seconds, the mobile terminal may not have left the cell, so it is likely in high-speed rail mode, and the modem does not need to perform any action.

[0202] In some embodiments, since there are relatively few overlapping coverage scenarios between high-speed rail and subway in the existing network, geofencing can be used to correct and change situations where subway mode is misidentified as high-speed rail mode based on motion data.

[0203] Based on this, if the first terminal mode of the mobile terminal received by the Modem is high-speed rail mode, the terminal mode switching method may further include: the Modem obtaining the cell currently accessed by the mobile terminal and the high-speed rail geofence; wherein, the high-speed rail geofence is a geofence constructed by the cells along the high-speed rail line; when the currently accessed cell is not included in the high-speed rail geofence, the Modem changes the first terminal mode from high-speed rail mode to non-high-speed rail mode.

[0204] Specifically, the modem pre-obtains the cellular data along the high-speed rail route and constructs a geofence based on these cells to obtain the high-speed rail geofence. For example, the geofence can be constructed based on the cell identifiers of the cells.

[0205] Therefore, when the first terminal mode received by the modem is the high-speed rail mode, a correction and change event based on the high-speed rail geofence can be triggered.

[0206] In other words, if the first terminal mode received by the modem is high-speed rail mode, then the modem obtains the cell currently accessed by the mobile terminal. The currently accessed cell can be the cell the mobile terminal is currently communicating with. If the modem has set up a first queue to record cell change duration T or a second queue to record the cell identifier of the most recently accessed cell, then the currently accessed cell can also be the cell corresponding to the cell change duration T recorded at the end of the first queue or the cell identifier corresponding to the cell identifier recorded at the end of the second queue. Furthermore, if the high-speed rail geofence is constructed from cell identifiers, then the corresponding cell identifier can be directly obtained from the end of the second queue.

[0207] Next, the modem further determines whether the high-speed rail geofence includes the currently accessed cell. If it does, it indicates that the mobile terminal is currently within the high-speed rail geofence's range, suggesting that the mobile terminal may be in high-speed rail mode. If it does not, it indicates that the mobile terminal is definitely not within the high-speed rail geofence's range, suggesting that the mobile terminal cannot be in high-speed rail mode. Consequently, the modem changes the first terminal mode from high-speed rail mode to non-high-speed rail mode.

[0208] In this embodiment of the application, the accuracy of the first terminal mode can be improved by correcting and modifying the identification result of the first terminal mode through geofencing.

[0209] In some embodiments, to ensure the stability of mobile terminal networks in high-speed mobile scenarios, there is a dedicated network providing services to high-speed mobile terminals, namely the High Speed ​​Dedicated Network (HSDN). HSDN has stronger coverage than the public network, reducing the number of cell handovers and cell reselections for mobile terminals in continuous high-speed movement, thus providing better service. Therefore, existing mobile terminals also prioritize accessing HSDN in high-speed mobile scenarios, and the communication network protocols corresponding to cellular cells in high-speed mobile scenarios are mostly HSDN.

[0210] Therefore, this embodiment of the application can also determine whether the mobile terminal is connected to HSDN by judging whether the communication network protocol of the cell currently accessed by the mobile terminal carries an HSDN identifier. If the modem confirms that the mobile terminal is connected to HSDN, it indicates that the mobile terminal may be in high-speed rail mode. If the mobile terminal is not connected to HSDN, it indicates that the mobile terminal may not be in high-speed rail mode, and the modem can then change the first terminal mode from high-speed rail mode to non-high-speed rail mode, thereby improving the accuracy of the first terminal mode.

[0211] In some embodiments, since the second terminal mode of the mobile terminal is determined based on the change in the duration of handover to each cell, it is necessary to wait until the number of cells being handover to reaches a certain number. For example, after the number reaches L, the average change duration of the cells is calculated to determine the second terminal mode. Therefore, in general, the time required to determine the second terminal mode is longer than the time required to determine the first terminal mode.

[0212] In other words, the mobile terminal will first determine whether it is in the first terminal mode, and then determine whether it is in the second terminal mode. That is, there will be a certain time interval between determining the first terminal mode and the second terminal mode.

[0213] Therefore, to avoid the mobile terminal being unable to enter high-speed rail mode during the time interval due to waiting for the determination of the second terminal mode, thereby affecting the implementation of communication schemes relying on high-speed rail mode, in this embodiment of the application, it can be first determined whether the mobile terminal should enter high-speed rail mode based on the result of the first terminal mode. After the second terminal mode is determined, the decision on whether the mobile terminal should enter high-speed rail mode is adjusted accordingly based on whether the mobile terminal has already entered high-speed rail mode and the result of the second terminal mode.

[0214] Specifically, at the first moment, if the motion data collected by the motion sensor determines that the mobile terminal is not in high-speed rail mode, then the mobile terminal will neither enter nor exit high-speed rail mode. That is, if the first terminal mode is determined to be non-high-speed rail mode, and the mobile terminal is not currently in high-speed rail mode, it will not enter high-speed rail mode. However, if the mobile terminal is currently in high-speed rail mode, it will exit high-speed rail mode. Then, at the second moment, if the duration of the mobile terminal switching between different cells determines that the mobile terminal is in high-speed rail mode, then, according to the first terminal mode at the first moment (which was not in high-speed rail mode), and the currently determined second terminal mode is high-speed rail mode, the mobile terminal will be adjusted to enter high-speed rail mode. This second moment occurs after the first moment.

[0215] Alternatively, at the third moment, if the motion data collected by the motion sensor determines that the mobile terminal is in high-speed rail mode, then regardless of whether the mobile terminal is currently in high-speed rail mode, it should be put into high-speed rail mode first. Then, at the fourth moment, if the duration of the mobile terminal switching between cell networks determines that the mobile terminal is not in high-speed rail mode, then the mobile terminal is in high-speed rail mode at this time, and the principle of taking high-speed rail mode as the standard will be followed; the mobile terminal will not exit high-speed rail mode at this time. This fourth moment occurs after the third moment.

[0216] In summary, in this embodiment, once the first terminal mode is determined, the mobile terminal is first positioned to enter high-speed rail mode based on the actual result of the first terminal mode. That is, if the first terminal mode is high-speed rail mode, the mobile terminal enters high-speed rail mode. If the first terminal mode is not high-speed rail mode, the mobile terminal either does not enter or exits high-speed rail mode. Then, if the second terminal mode is determined, if the second terminal mode is high-speed rail mode, the mobile terminal will be adjusted to enter the second terminal mode regardless of whether it is currently in high-speed rail mode. If the second terminal mode is not high-speed rail mode, no adjustment will be made regardless of whether the mobile terminal is currently in high-speed rail mode; that is, no action will be performed.

[0217] For example, Figure 10 A schematic diagram of terminal mode switching is shown based on a tree structure.

[0218] Furthermore, in this embodiment, the specific implementation of determining that the mobile terminal is in high-speed rail mode based on the change in the duration of the mobile terminal switching access to each cell can be referred to the above embodiments and will not be repeated here. At the same time, this embodiment can also correct and modify the first terminal mode in accordance with the manner described in the above embodiments, and will not be repeated here.

[0219] Another embodiment of this application provides a mobile terminal, including: one or more motion sensors, one or more processors, a memory, and a mobile communication module; the motion sensors, the memory, and the mobile communication module are respectively coupled to the processor; the motion sensors are used to collect motion data of the mobile terminal; the mobile communication module is used to support the mobile terminal to access a cellular network; the memory stores one or more computer program codes, the computer program codes including computer instructions; when the processor executes the computer instructions, it causes the mobile terminal to perform the terminal mode switching method described in any of the above embodiments.

[0220] In some embodiments, the processor of the mobile terminal includes a modem. The modem is used in conjunction with the mobile communication module to support the mobile terminal's access to a cellular network.

[0221] The modem can also be used to execute the steps in the terminal mode switching method described in any of the above embodiments, specifically determining whether the mobile terminal is in the second terminal mode based on the changes in the duration of the mobile terminal switching access to each cellular cell. Furthermore, the modem is also used to execute the steps related to determining whether to enter high-speed rail mode based on the first terminal mode and the second terminal mode; details can be found in the descriptions of the above embodiments and will not be repeated here.

[0222] In some embodiments, the motion sensor includes any one or more of a magnetometer sensor, an accelerometer sensor, and a gyroscope sensor.

[0223] Another embodiment of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor in a mobile terminal, causes the mobile terminal to implement the terminal mode switching method described in any of the above embodiments.

[0224] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps described in the above method embodiments.

[0225] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0226] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0227] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0228] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0229] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0230] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A terminal mode switching method, characterized by, The method is applied to a mobile terminal, the mobile terminal comprising one or more motion sensors; the motion sensors are used to collect motion data of the mobile terminal, the method comprising: determining that the mobile terminal is in a first terminal mode based on the motion data collected by the motion sensors; determining that the mobile terminal is in a second terminal mode based on a change in the time length of the mobile terminal switching to access each cell; if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, the mobile terminal enters the high-speed rail mode.

2. The method of claim 1, wherein, The method further comprises: if the first terminal mode is a high-speed rail mode and the second terminal mode is a non-high-speed rail mode, the mobile terminal enters the high-speed rail mode.

3. The method according to claim 1 or 2, characterized in that, The mobile terminal comprises a Modem; the method further comprises: the Modem receives the first terminal mode; wherein, based on the change in the time length of the mobile terminal switching to access each cell, determining that the mobile terminal is in a second terminal mode; if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, the mobile terminal enters the high-speed rail mode, comprising: the Modem determines that the mobile terminal is in a second terminal mode based on the change in the time length of the mobile terminal switching to access each cell; if the first terminal mode is a non-high-speed rail mode and the second terminal mode is a high-speed rail mode, the Modem enters the high-speed rail mode.

4. The method according to claim 1 or 2, characterized in that, The method further comprises: The mobile terminal records a cell change time length each time it switches to access a new cell; the cell change time length is the total access time length of the new cell corresponding to the last cell; when the number of recorded cell change time lengths reaches a threshold value L, calculate the average value of the L cell change time lengths closest to the current time from the recording time to obtain the average cell change time length; if the average cell change time length is less than time length T1, it is determined that the second terminal mode is a high-speed rail mode; if the average cell change time length is equal to or greater than time length T1, it is determined that the second terminal mode is a non-high-speed rail mode.

5. The method of claim 4, wherein, The method further comprises: setting a first queue and writing the recorded cell change time lengths into the first queue; wherein the length of the first queue is equal to or greater than the threshold value L; when the number of cell change time lengths written in the first queue reaches L, obtain the average value of the L cell change time lengths from the tail to obtain the average cell change time length.

6. The method of claim 4, wherein, After recording a cell change time length, the method further comprises: when the recorded cell change time length is equal to or greater than time length T2, empty all recorded cell change time lengths.

7. The method of claim 4, wherein, The method further comprises: monitoring the first signal change trend of the mobile terminal in each accessed cell; If the preset number of the first signal change trends do not match the second signal change trend, empty all recorded cell change durations; wherein the second signal change trend is a signal change trend corresponding to the mobile terminal in a high-speed moving scenario.

8. The method of claim 1 or 2, wherein, The method further comprises: setting a second queue, and writing a cell identifier corresponding to each cell accessed by the mobile terminal and an access time point into the second queue; wherein a length of the second queue is equal to the threshold value L; if the first terminal mode is a high-speed train mode, obtaining a first cell identifier and a first access time point from the second queue; wherein the first cell identifier is a cell identifier obtained from the tail of the queue, and the first access time point is an access time point corresponding to the obtained cell identifier; traversing the cell identifiers from the head of the second queue, and if there is a second cell identifier in the second queue, obtaining a second access time point corresponding to the second cell identifier; wherein the second cell identifier is a cell identifier that is historically written into the second queue and is the same as the first cell identifier; calculating a time difference between the first access time point and the second access time point; if the time difference is equal to or greater than T3, changing the first terminal mode from the high-speed train mode to a non-high-speed train mode.

9. The method of claim 1 or 2, wherein, if the first terminal mode is a high-speed train mode, the method further comprises: obtaining a currently accessed cell of the mobile terminal and a high-speed train geographic fence; wherein the high-speed train geographic fence is a geographic fence constructed by cells along a high-speed train driving route; when the currently accessed cell is not included in the high-speed train geographic fence, changing the first terminal mode from the high-speed train mode to a non-high-speed train mode.

10. The method of claim 1 or 2, wherein, if the first terminal mode is a high-speed train mode, the method further comprises: obtaining a communication network protocol corresponding to the currently accessed cell of the mobile terminal; when the communication network protocol does not carry a high-speed dedicated network (HSDN) identifier, changing the first terminal mode from the high-speed train mode to a non-high-speed train mode.

11. A terminal mode switching method, characterized by, applied to a mobile terminal, the mobile terminal comprising one or more motion sensors; the motion sensors are used to collect motion data of the mobile terminal, and the method comprises: at a first time, based on the motion data collected by the motion sensors, determining that the mobile terminal is in a non-high-speed train mode, and the mobile terminal does not enter or exit a high-speed train mode; at a second time, based on a change in duration of the mobile terminal switching to access each cell, determining that the mobile terminal is in a high-speed train mode, and the mobile terminal enters the high-speed train mode; wherein the second time is after the first time.

12. The method of claim 11, wherein, The method further comprises: at a third time, based on the motion data collected by the motion sensors, determining that the mobile terminal is in a high-speed train mode, and the mobile terminal enters the high-speed train mode; at a fourth time, based on a change in duration of the mobile terminal switching to access each cell, determining that the mobile terminal is in a non-high-speed train mode, and the mobile terminal does not exit the high-speed train mode; wherein the fourth time is after the third time.

13. A mobile terminal, characterized by comprises: one or more motion sensors, one or more processors, a memory, and a mobile communication module; the motion sensors, the memory, and the mobile communication module are coupled with the processors respectively; the motion sensors are configured to collect motion data of the mobile terminal; the mobile communication module is configured to support the mobile terminal to access a cellular network; the memory stores one or more computer program codes including computer instructions; when the processors execute the computer instructions, the mobile terminal performs the terminal mode switching method according to any one of claims 1-12.

14. The mobile terminal of claim 13, wherein, The processors include a Modem; the Modem is configured to cooperate with the mobile communication module to support the mobile terminal to access a cellular network. The Modem is further configured to perform the steps in the terminal mode switching method related to determining that the mobile terminal is in the second terminal mode based on a change in a time length during which the mobile terminal switches to access each cell. The Modem is further configured to perform the steps in the terminal mode switching method related to determining whether to enter the high-speed rail mode according to the first terminal mode and the second terminal mode.

15. The mobile terminal according to claim 13 or 14, characterized by The motion sensors include any one or more of a magnetometer sensor, an acceleration sensor, and a gyroscope sensor.

16. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processors of the mobile terminal, the mobile terminal performs the terminal mode switching method according to any one of claims 1-12.

Citation Information

Patent Citations

  • User terminal mode control method and device and terminal

    CN113973282A

  • Base station cell handover method and device, terminal and computer-readable storage medium

    WO2022083311A1