Terminal mode switching method, mobile terminal and computer readable storage medium
By combining motion sensor data and terminal mode switching method that changes in cell handover time, the problem of inaccurate high-speed rail mode recognition in high-speed mobile scenarios is solved, and the recognition accuracy and the implementation efficiency of communication solutions are improved.
Patent Information
- Application Number
- CN202311461315.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2043-11-03
Smart Images

Figure CN119996564A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular, to a terminal mode switching method, a mobile terminal, and a computer-readable storage medium. Background Art
[0002] At present, in order to ensure the network stability of mobile terminals in high-speed mobile scenarios such as high-speed rail, motor train, express train (T-numbered train), fast train (K-numbered train), etc., and to ensure the terminal experience of users in these scenarios, terminal products have launched high-speed rail mode. Existing mobile terminals mainly identify the motion state of the mobile terminal through motion data collected by motion sensors to identify whether it is currently in high-speed rail mode.
[0003] However, due to the influence of motion sensor hardware errors or application scenarios, it is easy to cause inaccurate high-speed rail mode recognition, which in turn easily affects the implementation of some communication solutions on the modem that rely on the high-speed rail mode. Summary of the invention
[0004] The embodiments of the present application provide a terminal mode switching method, a mobile terminal and a computer-readable storage medium, which are used to solve the problem of inaccurate high-speed rail mode recognition, thereby affecting the implementation of a communication solution that relies on the high-speed rail mode on a modem.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a terminal mode switching method is provided, which is applied to a mobile terminal, and the mobile terminal includes one or more motion sensors; the motion sensor is used to collect motion data of the mobile terminal, and the method includes: based on the motion data collected by the motion sensor, determining that the mobile terminal is in a first terminal mode; based on the change in the duration of the mobile terminal switching access to each cellular 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.
[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] It can be seen that this method adds a scheme for identifying the high-speed rail mode based on the change in the duration of the mobile terminal switching to access each cellular cell, based on the traditional identification of the high-speed rail mode based on the motion data collected by the motion sensor. Furthermore, when the recognition results of the two recognition schemes are different, the high-speed rail mode shall prevail and the mobile terminal shall enter the high-speed rail mode. Compared with the recognition results of the traditional recognition scheme that only relies on the motion data collected by the motion sensor, by considering multiple angles, it is possible to reduce the dependence on the motion sensor to a certain extent, thereby improving the accuracy of the high-speed rail mode recognition and ensuring the smooth implementation of the communication scheme that relies on the high-speed rail mode on the modem.
[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 enters the high-speed rail mode can be mainly performed by the modem. Therefore, the method may also include: the modem receives the first terminal mode; and the modem determines that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular 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.
[0010] In a possible implementation of the first aspect, due to the rapid movement in the high-speed mobile scenario, the mobile terminal generally switches to access many different cellular cells quickly. Therefore, the second terminal mode can be determined by comprehensively considering the change in the duration of switching access between different cellular cells to ensure the accuracy of the second terminal mode.
[0011] Based on this, based on the change in the duration of the mobile terminal switching to access each cellular cell, determining that the mobile terminal is in the second terminal mode may include: each time the mobile terminal switches to access a new cellular cell, recording the cell change duration once; when the number of recorded cell change durations reaches a threshold L, calculating 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 duration T1, determining that the second terminal mode is the high-speed rail mode; if the average cell change duration is equal to or greater than duration T1, determining that the second terminal mode is the non-high-speed rail mode.
[0012] In a possible implementation of the first aspect, more and more cell change durations are accumulated and recorded, but the required number and the actual useful data are limited. Therefore, in order to prevent these useless data from occupying storage space, a queue of a certain length can be set according to a threshold L to record the cell change duration T. Thus, by using the first-in-first-out operation principle of the queue, only useful cell change durations can be retained, and no additional cleaning action is required.
[0013] Based on this, when the number of recorded cell change durations reaches a threshold value L, calculating the average value of the L cell change durations whose recorded time is closest to the current time, and obtaining the average cell change duration may include: setting a first queue and writing the recorded cell change duration 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 durations written in the first queue reaches L, obtaining L cell change durations from the end of the queue and calculating the average value to obtain the average cell change duration.
[0014] In a possible implementation of the first aspect, it can be determined based on experience and measured data that the change duration of a single cellular cell in a high-speed mobile scenario will not usually exceed a certain duration T2. Therefore, after recording the duration of a cell change, it can also include: when the recorded cell change duration is equal to or greater than the duration T2, clear all recorded cell change durations. Thus, when it is determined that the mobile terminal is not currently in high-speed rail mode, the recorded cell change durations that are of no practical use can be cleared, and clearing invalid data can avoid taking up space and wasting resources.
[0015] In a possible implementation of the first aspect, in a high-speed mobile scenario, after the mobile terminal accesses a cellular cell, the signal usually has some unique change trends. Therefore, the signal change trend can be further used to 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 also include: monitoring the first signal change trend of the mobile terminal in each cellular cell accessed; if there are a preset number of first signal change trends that do not match the second signal change trend, clearing all recorded cell change durations. The second signal change trend is the signal change trend corresponding to the mobile terminal in a high-speed mobile scenario.
[0017] In a possible implementation of the first aspect, because the mobile terminal is in a high-speed mobile state in a high-speed mobile scenario, it is generally impossible for the mobile terminal to return to the same cellular cell signal coverage area within a period of time. Therefore, the first terminal mode can be corrected and changed based on this feature to ensure the accuracy of the first terminal mode.
[0018] Based on this, the terminal mode switching method may also include: setting a second queue, writing the cell identifier and access time point corresponding to each cellular cell accessed by the mobile terminal into the second queue; wherein the length of the second queue is equal to the threshold L; if the first terminal mode is the high-speed rail mode, 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 end of the queue, and the first access time point is the access time point corresponding to the obtained cell identifier; traversing the cell identifiers from the head of the second queue, if there is a second cell identifier 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 is 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 the high-speed rail mode to the non-high-speed rail mode.
[0019] In a possible implementation of the first aspect, since there are relatively few scenarios of overlapping coverage of high-speed rails and subways in the existing network, in the case where the subway mode is misidentified as the high-speed rail mode, correction changes can be made through geographic fencing, thereby improving the accuracy of the first terminal mode.
[0020] Therefore, if the first terminal mode of the mobile terminal is the high-speed rail mode, the terminal mode switching method may also include: obtaining the cellular cell and high-speed rail geo-fence currently accessed by the mobile terminal; wherein the high-speed rail geo-fence is a geo-fence constructed by cellular cells along the high-speed rail line; when the currently accessed cellular cell is not included in the high-speed rail geo-fence, changing the first terminal mode from the high-speed rail mode to the non-high-speed rail mode.
[0021] In a possible implementation of the first aspect, in order to provide better services to mobile terminals in high-speed mobile scenarios, there is a dedicated high-speed dedicated network HSDN for mobile terminals to access. Therefore, whether the first terminal mode is accurate can also be determined by judging whether the mobile terminal has access to the HSDN.
[0022] Based on this, if the first terminal mode of the mobile terminal is the high-speed rail mode, the terminal mode switching method may also include: obtaining the communication network protocol corresponding to the cellular cell currently accessed by the mobile terminal; when the communication network protocol does not carry the high-speed dedicated network HSDN identifier, changing the first terminal mode from the high-speed rail mode to the non-high-speed rail mode. Therefore, when it is determined according to the HSDN that the mobile terminal may be in the non-high-speed rail mode, the first terminal mode is changed from the high-speed rail mode to the non-high-speed rail mode, thereby improving the accuracy of the first terminal mode.
[0023] On the second aspect, since the second terminal mode of the mobile terminal is determined based on the change in the duration of switching access to each cellular cell, it is necessary to wait until the number of cellular cells switched to access reaches a certain number. Therefore, in general, the time required to determine the second terminal mode will be longer than the time required to determine the first terminal mode. Therefore, in order to avoid the mobile terminal being unable to enter the high-speed rail mode during this time interval due to waiting for the determination of the second terminal mode, thereby affecting the implementation of the communication scheme that relies on the high-speed rail mode. The second aspect also provides a terminal mode switching method. The method is also applied to a mobile terminal, and the mobile terminal includes one or more motion sensors; the motion sensor is 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 the high-speed rail mode; at the second moment, based on the change in the duration of the mobile terminal switching access to each cellular cell, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters the high-speed rail mode; wherein the second moment is after the first moment.
[0025] In a possible implementation of the second aspect, at a third moment, based on 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 the high-speed rail mode; at a fourth moment, based on the change in the duration of the mobile terminal switching access to each cellular cell, it is determined that the mobile terminal is in a non-high-speed rail mode, and the mobile terminal does not enter or exit the 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 implementation methods, the mobile terminal determines that the mobile terminal is in the first terminal mode based on the motion data collected by the motion sensor; and the specific method of determining that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular cell can refer to the detailed introduction in the possible implementation methods of the first aspect, and will not be repeated in this application.
[0027] In the second aspect and various possible implementations, the mobile terminal also includes a modem. The relevant steps executed by the modem can be referred to the detailed introduction in the possible implementation of the first aspect, and will not be described in detail in this application.
[0028] In a third aspect, the present application provides a mobile terminal, including: one or more motion sensors, one or more processors, a memory and a mobile communication module; the motion sensor, the memory and the mobile communication module are respectively coupled to the processor; the motion sensor is 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; one or more computer program codes are stored in the memory, and the computer program code includes computer instructions; when the processor executes the computer instructions, the mobile terminal performs the following steps:
[0029] Based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in the first terminal mode; based on the change in the duration of the mobile terminal switching access to each cellular cell, it is determined that the mobile terminal is 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 a possible implementation manner of the third aspect, when the computer instructions are executed by the processor, the mobile terminal further performs the following steps:
[0031] The first terminal mode is the high-speed rail mode, the second terminal mode is the non-high-speed rail mode, and the mobile terminal enters the high-speed rail mode.
[0032] In a possible implementation manner of the third aspect, when the computer instructions are executed by the processor, the mobile terminal further performs the following steps:
[0033] Each time the mobile terminal switches to access a new cellular cell, the cell change duration is recorded once; 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; if the average cell change duration is less than duration T1, it is determined that the second terminal mode is the high-speed rail mode; if the average cell change duration is equal to or greater than duration T1, it is determined that the second terminal mode is the non-high-speed rail mode.
[0034] In a possible implementation manner of the third aspect, when the computer instructions are executed by the processor, the mobile terminal further performs the following steps:
[0035] A first queue is set, and the recorded cell change duration is written 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, L cell change durations are obtained from the end of the queue to calculate the average value, and the average cell change duration is obtained.
[0036] In a possible implementation manner of the third aspect, when the 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 the duration T2, all recorded cell change durations are cleared.
[0038] In a possible implementation manner of the third aspect, when the 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 cellular cell accessed; if there are a preset number of first signal change trends that do not match the second signal change trend, clear all recorded cell change durations. The second signal change trend is the signal change trend corresponding to the mobile terminal in a high-speed mobile scenario.
[0040] In a possible implementation manner of the third aspect, when the 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 cellular cell accessed by the mobile terminal are written into the second queue; wherein the length of the second queue is equal to the threshold L; if the first terminal mode is the high-speed rail mode, the first cell identifier and the first access time point are obtained from the second queue; wherein the first cell identifier is the cell identifier obtained from the end of the queue, and the first access time point is the access time point corresponding to the obtained cell identifier; the cell identifiers are traversed from the head of the second queue, and if there is a second cell identifier in the second queue, the second access time point corresponding to the second cell identifier is obtained; wherein the second cell identifier is the cell identifier that is historically 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 the high-speed rail mode to the non-high-speed rail mode.
[0042] In a possible implementation manner of the third aspect, when the computer instructions are executed by the processor, the mobile terminal further performs the following steps:
[0043] Obtain the cellular cell and high-speed rail geo-fence currently connected to the mobile terminal; wherein the high-speed rail geo-fence is a geo-fence constructed by the cellular cells along the high-speed rail line; when the currently connected cellular cell is not included in the high-speed rail geo-fence, change the first terminal mode from the high-speed rail mode to the non-high-speed rail mode.
[0044] In a possible implementation manner of the third aspect, when the computer instructions are executed by the processor, the mobile terminal further performs the following steps:
[0045] Obtain the communication network protocol corresponding to the cellular 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 the high-speed rail mode to the non-high-speed rail mode.
[0046] In a possible implementation of the third aspect, the processor includes a modem. The modem is used to cooperate with the mobile communication module to support the mobile terminal to access the cellular network; the modem can execute the above-mentioned terminal mode switching method, which is related to determining that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular cell. And the modem can also be used to execute the above-mentioned terminal mode switching method, which is related to confirming whether to enter the high-speed rail mode according to the first terminal mode and the second terminal mode.
[0047] In a possible implementation manner of the third aspect, the motion sensor includes any one or more sensors among a magnetometer sensor, an acceleration sensor, and a gyroscope sensor.
[0048] In a fourth aspect, the present application provides a mobile terminal, comprising: one or more motion sensors, one or more processors, a memory and a mobile communication module; the motion sensor, the memory and the mobile communication module are respectively coupled to the processor; the motion sensor is 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 include 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 the high-speed rail mode; at the second moment, based on the change in the duration of the mobile terminal switching access to each cellular cell, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters the high-speed rail mode; wherein the second moment is after the first moment.
[0050] In a possible implementation manner of the fourth aspect, when the 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 the high-speed rail mode; at the fourth moment, based on the change in the duration of the mobile terminal switching access to each cellular cell, it is determined that the mobile terminal is in non-high-speed rail mode, and the mobile terminal does not enter or exit the high-speed rail mode; wherein the fourth moment is after the third moment.
[0052] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor in a mobile terminal, the mobile terminal executes a terminal mode switching method as described in the first aspect, the second aspect, and any possible implementation thereof.
[0053] In a sixth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the terminal mode switching method in the first aspect, the second aspect, and any possible implementation thereof. The computer may be the mobile terminal described above.
[0054] It can be understood that the beneficial effects that can be achieved by the mobile terminal of any possible implementation of the third aspect and the fourth aspect, the computer-readable storage medium of the fifth aspect, and the computer program product of the sixth aspect can be referred to as the beneficial effects in the first aspect, the second aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A schematic diagram of a high-speed rail mode setting interface provided in an embodiment of the present application Figure 1 ;
[0056] Figure 2 A schematic diagram of a high-speed rail mode setting interface provided in an embodiment of the present application Figure 2 ;
[0057] Figure 3 A schematic diagram of a process flow of a terminal mode switching method provided in an embodiment of the present application;
[0058] Figure 4 A schematic diagram of the structure of a mobile terminal 100 provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of an interactive process of a terminal mode switching method provided in an embodiment of the present application Figure 1 ;
[0060] Figure 6 A schematic diagram of an interactive process of a terminal mode switching method provided in an embodiment of the present application Figure 2 ;
[0061] Figure 7 A schematic diagram of a first queue provided in an embodiment of the present application;
[0062] Figure 8 A flowchart of another terminal mode switching method provided in an embodiment of the present application;
[0063] Fig. 9 A schematic diagram of a first terminal mode correction process provided in an embodiment of the present application;
[0064] Fig.10 A tree structure diagram of terminal mode switching provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The technical solutions of the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application.
[0066] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit them to be different. Also, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" means two or more.
[0067] At present, with the development and popularization of mobile terminal technology, various terminal products, such as mobile phones and tablet computers, have become necessities for users to carry when traveling. At the same time, with the rapid development of railway transportation technology, more and more users will give priority to high-speed railway trains. For example, choose high-speed rail, EMU, express trains (T-numbered trains), fast trains (K-numbered trains) and other high-speed means of transportation. And existing underground garages, elevators and other relatively closed scenes have also become the only way for users to travel.
[0068] In these travel scenarios, due to the fast moving speed or the relatively closed space and weak signal, the mobile terminal network is prone to disconnection, speed drop and other problems, thus affecting the network stability of the mobile terminal. The instability of the network is likely to affect the use of the mobile terminal communication function, thus bringing a bad terminal experience to the user. Therefore, in order to ensure the terminal experience of users in these scenarios, existing terminal products have launched a high-speed rail mode (also known as a high-speed mode).
[0069] The high-speed rail mode can be understood as a network mode on a mobile terminal. The activation of the high-speed rail mode on a mobile terminal can optimize the network connection of the mobile terminal to ensure the network stability of the mobile terminal in high-speed mobile scenarios and closed space with weak signals.
[0070] In the prior art, the high-speed rail mode of the mobile terminal can be a default on state. It should be noted that the high-speed rail mode is turned on here, which does not mean that the mobile terminal will definitely enter the high-speed rail mode when the high-speed rail mode is turned on. That is, the mobile terminal will only enter the high-speed rail mode when it recognizes that it is currently in a high-speed mobile scene (i.e., a high-speed rail, a motor vehicle, an express train, etc.) or a scene with a weak spatial closed signal.
[0071] The mobile terminal may also provide a high-speed rail mode on-screen control in the settings interface. Only after the mobile terminal responds to the user's operation to turn on the high-speed rail mode, and recognizes that it is currently in a high-speed moving scene or a closed space with a weak signal, will it enter the high-speed rail mode. If the high-speed rail mode is off, the mobile terminal will not enter the high-speed rail mode even if it recognizes that it is currently in a high-speed moving scene or a closed space with a weak signal.
[0072] For example, Figure 1 As shown, a schematic diagram of the high-speed rail mode setting interface is provided. Figure 1 After the click operation to turn on the high-speed rail mode in the interface shown, the mobile terminal responds to the click operation to turn on the high-speed rail mode of the mobile terminal. Figure 2 As shown, a schematic diagram of the interface of the high-speed rail mode is provided. Figure 2 In the high-speed rail mode on state shown, if the mobile terminal recognizes that it is currently in a high-speed moving scene or a closed space with weak signal, it enters the high-speed rail mode. Of course, the user triggers the mobile terminal to turn on the high-speed rail mode, including but not limited to Figure 1-Figure 2 For example, any position of the negative first screen or notification bar of a mobile terminal (such as a mobile phone) may include an on / off control of the "high-speed rail mode" to support the user to turn on or off the high-speed rail mode.
[0073] At present, for the recognition of high-speed rail mode in high-speed mobile scenarios, the mobile terminal mainly uses the motion sensor to collect motion data and then recognize the motion state of the mobile terminal to identify whether it is currently in high-speed rail mode. However, due to the influence of motion sensor hardware errors or application scenarios, it is easy to cause inaccurate recognition of high-speed rail mode.
[0074] For example, due to hardware errors in motion sensors, the high-speed rail mode may be mistakenly identified as a non-high-speed rail mode. Or, in some non-high-speed mobile scenarios, due to short-term rapid changes in scenes (such as subways), non-high-speed rail modes may be mistakenly identified as high-speed rail modes. At the same time, the motion sensors used in existing subway mode recognition have certain similarities with the motion sensors used in scene recognition such as high-speed rail, motor trains, and express trains, so there are also many false recognitions of subway modes (non-high-speed rail modes) as high-speed rail modes.
[0075] Currently, many communication solutions on the modem need to rely on the high-speed rail mode to be implemented. Therefore, inaccurate recognition of the high-speed rail mode will further easily affect the implementation of some communication solutions on the modem that need to rely on the high-speed rail mode.
[0076] For example, in a high-speed mobile scenario, the cell changes very quickly, so the mobile terminal may miss the cell and fail to perform some actions, which may lead to the problem of cell reconstruction. This problem can usually be solved by the modem switching the cell in advance and quickly after the mobile terminal determines and enters the high-speed rail mode. Therefore, if the high-speed rail mode is not accurately identified, it is easy to further cause the problem of cell reconstruction to fail to be properly solved.
[0077] Based on this, in order to reduce the inaccurate recognition of the high-speed rail mode in the high-speed mobile scenario, thereby affecting the implementation of the communication solution that relies on the high-speed rail mode on the modem, the embodiment of the present application provides a terminal mode switching method.
[0078] For ease of description, the following embodiments of the present application are mainly described using high-speed rail, a high-speed means of transportation, as an example, but this does not constitute a limitation to the embodiments of the present application.
[0079] The terminal mode switching method provided in the embodiment of the present application is applied to a mobile terminal, and the mobile terminal includes one or more motion sensors. The main implementation principle of the terminal mode switching method is: on the basis of the traditional method of identifying the high-speed rail mode based on the motion data collected by the motion sensor, a set of identification schemes is added to determine whether the mobile terminal is in the high-speed rail mode based on the change in the duration of the mobile terminal switching access to each cellular cell. Then, the two identification results are comprehensively considered to determine whether the mobile terminal is currently in the high-speed rail mode.
[0080] like Figure 3 As shown, a flow chart of a terminal mode switching method is provided. Figure 3 The terminal mode switching method provided in the embodiment of the present application is briefly described.
[0081] refer to Figure 3 The mobile terminal determines a first terminal mode of the mobile terminal based on the motion data collected by the motion sensor. The first terminal mode may be a high-speed rail mode or a non-high-speed rail mode. That is, the first terminal mode is a terminal mode determined based on the motion data collected by the sensor, and may be a high-speed rail mode or a non-high-speed rail mode.
[0082] Exemplarily, the motion sensor may include a magnetometer sensor and an accelerometer sensor, and then the mobile terminal may determine whether the mobile terminal is currently on a high-speed train by using the orientation data of the mobile terminal measured by the magnetometer sensor and the motion data such as acceleration measured by the accelerometer sensor. If it is finally determined that the mobile terminal is currently on a high-speed train, then the first terminal mode is a high-speed train mode. Otherwise, the first terminal mode is a non-high-speed train mode.
[0083] At the same time, since the switching speed of the cellular cell accessed by the mobile terminal will increase accordingly with the moving speed. Therefore, the mobile terminal can determine whether the mobile terminal is currently in a high-speed mobile scene by the change in the duration of the accessed cellular cell, and then determine whether the mobile terminal is in high-speed rail mode. That is, the mobile terminal can determine the second terminal mode of the mobile terminal based on the change in the duration of switching access to each cellular cell. Among them, the second terminal mode can also be a high-speed rail mode or a non-high-speed rail mode.
[0084] Then, the mobile terminal compares the first terminal mode and the second terminal mode. If the first terminal mode is non-high-speed rail mode, the second terminal mode is high-speed rail mode. That is to say, at this time, the mobile terminal identified based on the motion data of the motion sensor is not in high-speed rail mode, while the mobile terminal identified based on the duration change of the cellular cell is in high-speed rail mode. Since the high-speed rail mode appears in the two identification results, the high-speed rail mode shall prevail, that is, the second terminal mode shall prevail, and the mobile terminal enters the high-speed rail mode.
[0085] If the first terminal mode is the high-speed rail mode, and the second terminal mode is the non-high-speed rail mode, then the mobile terminal identified based on the motion data of the motion sensor is in the high-speed rail mode, but the mobile terminal identified based on the duration change of the cellular cell is in the non-high-speed rail mode. Since the high-speed rail mode still appears in the two identification results, the high-speed rail mode is still used as the standard, that is, the first terminal mode is used as the standard, and the mobile terminal enters the high-speed rail mode.
[0086] In addition, if the first terminal mode is a high-speed rail mode, the second terminal mode is also a high-speed rail mode. Alternatively, the first terminal mode is a non-high-speed rail mode, and the second terminal mode is also a non-high-speed rail mode. At this time, since the recognition results of the two recognition schemes based on the motion data of the motion sensor and the change in the duration of switching access to the cellular cell are the same, the actual recognition result shall prevail. That is, when the first terminal mode and the second terminal mode are both high-speed rail modes, the mobile terminal enters the high-speed rail mode. When the first terminal mode and the second terminal mode are both non-high-speed rail modes, the mobile terminal enters the non-high-speed rail mode.
[0087] It can be seen that in the embodiment of the present application, by adding a scheme for identifying the high-speed rail mode based on the change in the duration of the mobile terminal switching to access each cellular cell, as long as the recognition results of the two recognition schemes are different, the high-speed rail mode shall prevail. In general, compared with the recognition results of the traditional recognition scheme that only relies on the motion data collected by the motion sensor, by considering multiple angles, the dependence on the motion sensor can be reduced to a certain extent, thereby improving the accuracy of high-speed rail mode recognition and ensuring the smooth implementation of the communication scheme that relies on the high-speed rail mode on the Modem.
[0088] It should be understood that although the method based on the high-speed rail mode may lead to the situation that the mobile terminal is mistakenly considered to be in the high-speed rail mode, the impact of such mistaken belief is relatively small compared to the impact on the implementation of the communication scheme that relies on the high-speed rail mode. Because the impact on the implementation of the communication scheme may cause abnormal use of the mobile terminal's communication function, and the mistaken belief that causes the mobile terminal to enter the high-speed rail mode may only increase the power consumption of the device.
[0089] In some embodiments, the mobile terminal includes a modem, and most of the communication schemes that rely on the high-speed rail mode are executed on the modem. Therefore, the scheme for identifying the high-speed rail mode based on the change in the duration of the mobile terminal switching access to each cellular cell in the above-mentioned terminal mode switching method can be executed by the modem. Then, the modem comprehensively considers the identification results of the two identification schemes to determine whether the modem enters 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 enters the high-speed rail mode.
[0090] Among them, the mobile terminal entering the high-speed rail mode can be understood as all modules and services in the mobile terminal working in the high-speed rail mode, and the modem entering the high-speed rail mode can be understood as only the modules and services related to the modem in the mobile terminal working in the high-speed rail mode. In this way, when there are modules and services in the mobile terminal that only trust the first terminal mode (that is, only trust the high-speed rail mode recognition results obtained based on the motion data collected by the sensor), when only the modem enters the high-speed rail mode, the operation of these modules and services may not be affected.
[0091] Specifically, the modem in the mobile terminal receives the first terminal mode of the mobile terminal, and the determination of the first terminal mode can be obtained by other modules in the mobile terminal based on the motion data collected by the motion sensor. For example, the first terminal mode is determined by the sensor manager (sensor hub, which can also be called a sensor hub or a sensor hub) based on the motion data collected by the motion sensor, and this embodiment of the present application does not limit this. At the same time, the modem obtains the second terminal mode of the mobile terminal based on the change in the duration of the mobile terminal switching to access each cellular cell.
[0092] Then, the modem compares the received first terminal mode with the second terminal mode obtained by itself. If the first terminal mode is a non-high-speed rail mode, the second terminal mode is a high-speed rail mode. In order to prevent the inaccuracy of identifying the high-speed rail mode based on the motion data collected by the motion sensor from affecting the implementation of the communication scheme that relies on the high-speed rail mode on the modem, the modem takes the result identified by itself as the standard. Therefore, the modem uses the second terminal mode as the terminal mode of the mobile terminal. That is, in this case, the modem determines that the mobile terminal is currently in high-speed rail mode, then the modem or the mobile terminal enters the high-speed rail mode, thereby ensuring the smooth implementation of the communication scheme that relies on the high-speed rail mode on the modem.
[0093] Similarly, in the embodiment of the present application, if the first terminal mode is the high-speed rail mode and the second terminal mode is the non-high-speed rail mode, the modem uses the first terminal mode as the terminal mode of the mobile terminal, and the modem or the mobile terminal enters the high-speed rail mode. If the first terminal mode and the second terminal mode are the same, the modem shall be based on the actual mode, as described above, and will not be repeated here.
[0094] The mobile terminal may be at least one of a mobile phone, a foldable mobile terminal, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, or a smart city device. The specific type of the mobile terminal is not particularly limited in the embodiments of the present application.
[0095] Figure 4 A schematic structural diagram of a mobile terminal 100 is shown.
[0096] The 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, an antenna 1, an 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera module 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a motion sensor, such as a magnetometer sensor 180A, a gyroscope sensor 180B, and an acceleration 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, an air pressure sensor 180I, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0097] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor (i.e., a modem in the embodiment of the present application), a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0098] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. For example, the processor 110 can be used to execute the terminal mode switching method in the above embodiment of the present application.
[0099] In some embodiments, in the terminal mode switching method, the steps related to determining the second terminal mode, and the steps related to determining whether to enter the high-speed rail mode according to the first terminal mode and the second terminal mode, can be performed by the modem processor in the processor 110. That is, the first terminal mode can be received by the modem in the processor 110 and the second terminal mode of the mobile terminal can be determined. When the first terminal mode and the second terminal mode are different, the modem determines the high-speed rail mode as the terminal mode of the mobile terminal 100, so that the mobile terminal 100 or the modem enters the high-speed rail mode.
[0100] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 110. If the processor 110 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, 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. The interface 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 may be connected to a touch sensor, an audio module, a wireless communication module, a display screen, a camera module, and the like through at least one of the above interfaces.
[0102] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. Or files such as music and videos are transferred from the mobile terminal to the external memory card.
[0103] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile terminal 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional methods or data processing of the mobile terminal 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0104] The wireless communication function of the mobile terminal 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0105] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile terminal 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0106] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the mobile terminal 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0107] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0108] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile terminal 100. 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 the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0109] In some embodiments, the antenna 1 of the mobile terminal 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile terminal 100 can communicate with the network and other mobile terminals through wireless communication technology. The 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 technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0110] The magnetometer sensor 180A is used to measure orientation data. In some embodiments, the magnetometer sensor 180A may include a three-axis magnetometer.
[0111] The gyro sensor 180B can be used to determine the motion posture of the mobile terminal 100. In some embodiments, the angular velocity of the mobile terminal 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle of the shaking of the mobile terminal 100, calculates the distance that the lens module needs to compensate based on the angle, controls the reverse movement of the lens to offset the shaking of the mobile terminal 100, and achieves anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0112] The acceleration sensor 180C can detect the magnitude of the acceleration of the mobile terminal 100 in various directions (generally three axes). When the mobile terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the mobile terminal and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0113] The magnetic sensor 180D includes a Hall sensor. The mobile terminal 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. 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 according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip, the flip automatic unlocking and other features are set.
[0114] The pressure sensor 180E is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180E can be set on the display screen 194. There are many types of pressure sensors 180E, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180E, the capacitance between the electrodes changes. The mobile terminal 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the mobile terminal 100 detects the touch operation intensity according to the pressure sensor 180E. The mobile terminal 100 can also calculate the touch position according to the detection signal of the pressure sensor 180E. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0115] The distance sensor 180F is used to measure the distance. The mobile terminal 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile terminal 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0116] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The mobile terminal 100 emits infrared light outward through the light emitting diode. The mobile terminal 100 uses a photodiode to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than a threshold value, 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 a threshold value, the mobile terminal 100 can determine that there is no object near the mobile terminal 100. The mobile terminal 100 can use the proximity light sensor 180G to detect that the user holds the mobile terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0117] The fingerprint sensor 180H is used to collect fingerprints. The mobile terminal 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0118] The air pressure sensor 180I is used to measure air pressure. In some embodiments, the mobile terminal 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180I to assist positioning and navigation.
[0119] The temperature sensor 180J is used to detect temperature. In some embodiments, the mobile terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature detected by the temperature sensor 180J exceeds a threshold, the mobile terminal 100 performs a reduction in processor performance to reduce the power consumption of the mobile terminal to implement thermal protection. In other embodiments, when the temperature detected by the temperature sensor 180J is lower than another threshold, the mobile terminal 100 heats the battery 142. In other embodiments, when the temperature is lower than another threshold, the mobile terminal 100 can boost the output voltage of the battery 142.
[0120] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the mobile terminal 100, which is different from the position of the display screen 194.
[0121] The ambient light sensor 180L can be used to sense the brightness of the ambient light. The mobile terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile terminal 100 is blocked, for example, the mobile terminal is in a pocket. When it is detected that the mobile terminal is blocked or in a pocket, some functions (such as the touch function) can be disabled to prevent misoperation.
[0122] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0123] In addition, the USB connector 130 is an interface that complies with the USB standard specification, and can be used to connect the mobile terminal 100 and peripheral devices, and can also be used to connect a charger to enable the charger to charge the mobile terminal 100, and can also be used to connect other mobile terminals to enable data transmission between the mobile terminal 100 and other mobile terminals. It can also be used to connect headphones to output audio stored in the mobile terminal through the headphones.
[0124] The charging management module 140 is used to receive charging input from a charger, which can be a wireless charger or a wired charger. While the charging management module 140 is charging the battery 142, it can also power the mobile terminal through the power management module 141. The power management module 141 is used to connect 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, the internal memory 121, the display screen 194, the camera module 193, and the wireless communication module 160.
[0125] The mobile terminal 100 can realize the display function through the GPU, the display screen 194, and the application processor. The mobile terminal 100 can also realize the camera function through the camera module 193, the ISP, the video codec, the GPU, the display screen 194, the application processor AP, the neural network processor NPU, etc. Among them, the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor to perform mathematical and geometric calculations for graphics rendering. In some embodiments, the GPU processor 110 may include one or more GPUs, which execute program instructions to generate or change 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 the color image data collected by the camera module 193. The camera module 193 can be used to collect color image data and depth data of the object. In some embodiments, the camera module 193 can be composed 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 can also be composed of two or more cameras. In some embodiments, the CPU or GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera module 193.
[0126] The mobile terminal 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor, etc. For example, music playback, recording, etc. The button 190 may include a power button, a volume button, etc. The motor 191 may generate a vibration prompt. The indicator 192 may be an indicator light, which may be used to indicate the charging status, the change of the power, or may be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0127] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the mobile terminal 100. In other embodiments of the present application, the mobile terminal 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0128] The terminal mode switching methods in the following embodiments can all be implemented in the mobile terminal 100 having the above hardware structure.
[0129] The following describes in detail the terminal mode switching method proposed in the embodiment of the present application by taking the interaction between a modem and a motion sensor as an example and combining with the accompanying drawings.
[0130] like Figure 5 As shown, a schematic diagram of an interactive process of a terminal mode switching method is provided, including steps S501-S504.
[0131] S501: The motion sensor sends the collected motion data of 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 the motion data and sends the data to the modem.
[0133] Among them, the motion data includes but is not limited to data such as orientation, acceleration, angular velocity, etc. In an embodiment of the present application, the first terminal mode is the terminal mode of the mobile terminal determined by the sensor hub based on the motion data collected by the motion sensor, which can be a high-speed rail mode or a non-high-speed rail mode. In the embodiment of the present application, the specific implementation of determining the first terminal mode of the mobile terminal based on the motion data collected by the motion sensor can adopt any existing technical solution for identifying whether the mobile terminal is in high-speed rail mode based on the motion data collected by the motion sensor. The embodiment of the present application does not impose any limitation on this.
[0134] S503: The modem determines that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular cell.
[0135] In high-speed mobile scenarios, the speed at which mobile terminals switch to access cellular cells will also increase accordingly. In addition, there is a controllable speed range in any high-speed mobile scenario. For example, the speed of high-speed rail is generally 300km / h-350km / h, and the speed of motor vehicles is generally 200km / h-250km / h.
[0136] Therefore, through experience and measured data, the speed of the mobile terminal switching access to the cellular cell in different high-speed mobile scenarios can be calculated, and then the change in the duration of the mobile terminal switching access to each cellular cell in the high-speed mobile scenario can be obtained. Then, the modem can determine the second terminal mode of the mobile terminal according to the change in the duration of the mobile terminal switching access to each cellular cell. The second terminal mode can be 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 each cellular cell corresponds to the speed at which the mobile terminal switches access to the cellular cell on a high-speed train or a train, it can be determined that the second terminal mode is a high-speed train mode. If the change in the duration of the mobile terminal switching access to each cellular cell corresponds to the speed at which the mobile terminal switches access to the cellular cell on a subway, it can be determined that the second terminal mode is a non-high-speed train mode.
[0138] It should be understood that the speed ranges of the above-mentioned high-speed rail speeds and motor vehicle speeds are obtained by the embodiments of this application based on inquiries into existing public information and are only used for illustration of the embodiments of this application. The embodiments of this application do not constitute a limitation on the high-speed rail speeds and motor vehicle speeds.
[0139] In some embodiments, due to the rapid movement in high-speed mobile scenarios, the mobile terminal generally switches to many different cellular cells quickly. Therefore, in order to ensure the accuracy of the determined change in the duration of the mobile terminal switching to each cellular cell, the change in the duration of the switching access between different cellular cells can be comprehensively considered.
[0140] For example, after obtaining the change durations of switching access of multiple cellular cells, the second terminal mode can be determined based on the average value of these change durations, thereby improving the accuracy of the second terminal mode.
[0141] Based on this, 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 value of the L cell change durations whose recorded time is closest to the current time, and obtains the average cell change duration; if the average cell change duration is less than duration T1, the modem determines that the second terminal mode is the high-speed rail mode; if the average cell change duration is equal to or greater than duration T1, the modem determines that the second terminal mode is the non-high-speed rail mode.
[0142] Among them, the duration of cell change refers to the duration that a mobile terminal experiences when switching from one cell to another. Correspondingly, it is the total access duration of the new cell currently switched to the previous cell. Therefore, the cell change duration T in the embodiment of the present application can be understood as: the total access duration of the new cell currently accessed to the previous cell. The total access duration of a cell is the total duration of the mobile terminal accessing this cell.
[0143] Specifically, during the process of the modem determining the second terminal mode of the mobile terminal, each time the mobile terminal switches to access a new cellular cell, the modem records a cell change duration T. Thus, each time the mobile terminal switches to access a cellular cell, the modem will record the cell change duration T corresponding to the switching access.
[0144] With the high-speed movement of the mobile terminal, the number of cellular cells to which the mobile terminal switches access increases, and the number of correspondingly recorded cell change durations T also increases.
[0145] When the number of recorded cell change durations T reaches (equal to or greater than) a threshold value L, the modem can obtain the most recently recorded L cell change durations T and start calculating the average value of the cell change durations T. The most recently recorded L cell change durations 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 order of time interval from small to large. The modem calculates the average value of the selected L cell change durations T to obtain the average cell change duration aT.
[0146] Then, the modem compares the average cell change duration aT with the set duration T1. If the average cell change duration aT is less than the duration T1, the modem determines that the second terminal mode is the high-speed rail mode. If the average cell change duration aT is equal to or greater than the duration T1, the modem determines that the second terminal mode is the non-high-speed rail mode.
[0147] The above threshold L and duration T1 are pre-set values based on experience and measured data. Taking the high-speed rail as an example, the change speed of the cellular cell in the high-speed rail driving scenario is basically within 10s. That is to say, in the high-speed rail scenario, the mobile terminal will generally reach the area covered by the signal of another cellular cell from the area covered by the signal of one cellular cell within 10s (the mobile terminal will switch from one cellular cell to another cellular cell within 10s). Therefore, the total access time of the mobile terminal in a cellular cell in the high-speed rail scenario generally does not exceed 10s. Therefore, as long as the Modem determines that the average change time of the cell does not exceed 10s, it can be determined that the mobile terminal is currently in high-speed rail mode. Correspondingly, if the total access time of the mobile terminal in a cellular cell reaches 10s, that is, the average change time of the cell reaches 10s, it can be determined that it is not in high-speed rail mode. Therefore, in the embodiment of the present application, the duration T1 used for comparison with the average change time of the cell aT can be set to 10s.
[0148] Also, as far as the actual misidentification situation is concerned, due to the similarity between the identification of subways and high-speed railways, trains, etc., most of the subway modes (non-high-speed railway modes) are identified as high-speed railway modes. According to the measured data, it can be known that there are generally no more than 8 cellular cells between two subway stops. In other words, if the mobile terminal moves in the subway scene, the change speed of cellular cells within 8 is generally uniform, and more than 8 may break this uniformity. Therefore, in order to ensure that the identification results are as accurate as possible, the threshold L can be set to a value greater than 8. If the change speed of more than 8 cellular cells is still relatively fast and uniform, then it can be determined that it is not a subway scene but a high-speed railway scene.
[0149] In the embodiment of the present application, considering that high-speed moving routes (high-speed rail routes) are usually accompanied by highways, the threshold L in the embodiment of the present application is set to 10.
[0150] Exemplarily, when the threshold value L=10 and T1=10s. If there are 10 recorded cell change durations T, the Modem calculates the average of these 10 cell change durations T to obtain the average cell change duration aT. If the recorded cell change duration T reaches more than 10, assuming that it is currently 15, then the average of the last 10 recorded cell change durations T among the 15 is calculated (that is, the average of the 6th to 15th cell change durations) to obtain the average cell change duration aT. Then, if aT≥T1=10s, the second terminal mode is a non-high-speed rail mode. If aT<T1=10s, the second terminal mode is a high-speed rail mode.
[0151] In addition, based on experience and measured data, it can be determined that the change duration of a single cellular cell in a high-speed mobile scenario usually does not exceed 30 seconds. Therefore, in some embodiments, the cell change duration T corresponding to a single cellular cell can also be compared with the duration T2 = 30 seconds. That is, after recording a cell change duration T, the modem compares the recorded cell change duration T with the preset duration T2.
[0152] If the comparison determines that T≥T2=30s, it means that the mobile terminal cannot be in a high-speed mobile scenario, that is, the mobile terminal cannot be in high-speed rail mode. Therefore, the recorded cell change duration T is data without reference significance, and the modem can clear all recorded cell change durations T. If the comparison determines that T<T2=30s, it means that the mobile terminal may be in a high-speed mobile scenario, that is, the mobile terminal may be in high-speed rail mode. Then the modem normally records the cell change duration T and follows the subsequent process without any other processing.
[0153] In some embodiments, the modem keeps recording the cell change duration T, and the accumulated recorded data will increase. However, the number of data that needs to be calculated each time is L, and the other recorded cell change durations T are equivalent to data of no practical use. Therefore, in order to prevent these useless data from occupying storage space, the recorded useless cell change durations T can be cleared. A queue of a certain length can also be set according to the threshold L to record the cell change duration T. Thus, by utilizing the first-in-first-out operation principle of the queue, only the useful cell change durations can be retained, and no additional clearing action is required.
[0154] Based on this, in the embodiment of the present application, the modem can set a first queue and write the recorded cell change duration T into the first queue. When the number of cell change durations T written into the first queue reaches L, the modem obtains L cell change durations T from the end of the first queue and calculates the average value to obtain the average cell change duration aT.
[0155] Specifically, the first queue is a queue set in an embodiment of the present application for storing the 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 the embodiment of the present application, considering minimizing the space occupied by the queue and giving the first queue a little length margin, the length of the first queue in the embodiment of the present application is L+1. For example, when L=10, the length of the first queue is 11.
[0157] For example, Figure 7 As shown, a schematic diagram of a first queue is provided.
[0158] It can be seen that the embodiment of the present application stores the cell change duration T through 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, then each time a new cell change duration T is written, the first cell change duration T at the head of the first queue will naturally be dequeued and cleared, thereby achieving the effect of clearing unnecessary data.
[0159] Furthermore, each time the modem records a cell change duration T, it can first compare the cell change duration T with the duration T2 = 30s. If T ≥ T2 = 30s, based on the comparison result, it can be determined that the mobile terminal is currently not in high-speed rail mode, so the modem can clear the first queue. If T < T2 = 30s, the cell change duration T is normally written into the first queue.
[0160] When the number of cell change durations T written in the first queue reaches the threshold value L, since the most recent L cell change durations T need to be obtained, the modem can obtain the L cell change durations from the end of the first queue and calculate the average value to obtain 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, a flow chart of a modem determining the second terminal mode is provided. That is, Figure 7The process shown is a process in which 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 and sets the first queue for recording the cell change duration T. After the queue initialization is completed, the modem starts to monitor the switching access changes of the cellular cell.
[0163] If it is detected that a new cellular cell is switched, the cell change duration T corresponding to the switch access is written into the first queue. Then, the modem determines whether the cell change duration T is equal to or greater than the 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 impossible to be in high-speed rail mode. The modem clears the first queue and then continues monitoring.
[0165] If T<T2, the modem further determines whether the number of cell change durations T in the first queue is less than a threshold L.
[0166] If the number of cell change durations T is less than the threshold L (the number of T < L), it means that the number of switched access cellular cells has not reached L, and the average value is temporarily not calculated and monitoring continues.
[0167] If the number of cell change durations T is equal to or greater than the threshold L (the number of T ≥ L), the L most recent cell change durations T are selected from the end of the first queue to calculate the average value to obtain the average cell change duration aT.
[0168] Finally, the modem determines whether the average cell change duration aT is less than the duration T1. If aT≥T1, it is determined that the mobile terminal is in high-speed rail mode, and the second terminal mode is non-high-speed rail mode. If aT<T1, it is determined that the mobile terminal is in high-speed rail mode, and the second terminal mode is high-speed rail mode.
[0169] S504: The modem determines whether the modem (or the mobile terminal) enters the high-speed rail mode according to 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 uses the second terminal mode as the terminal mode of the mobile terminal. 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 uses the first terminal mode as the terminal mode of the mobile terminal.
[0171] That is to say, when both of the above two modems believe that the mobile terminal is currently in high-speed rail mode, the modem (or mobile terminal) is determined to enter the high-speed rail mode. That is, in the embodiment of the present application, no matter whether the first terminal mode or the second terminal mode is a high-speed rail mode or a non-high-speed rail mode, as long as the first terminal mode and the second terminal mode are different, the modem uses the high-speed rail mode as the current terminal mode of 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, selecting any one of them will have the same effect, so 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 the high-speed rail mode or the non-high-speed rail mode.
[0173] It should be understood that Figure 5 and Figure 6 Although the steps are coded in sequence according to Arabic numerals, the coding does not limit 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, in high-speed mobile scenarios, after a mobile terminal accesses a cellular cell, there are usually some unique change characteristics. For example, in a high-speed rail scenario, after a mobile terminal accesses a cellular cell, its signal change trend usually becomes stronger first and then weaker. Therefore, these change characteristics can be further used to 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 recognition.
[0175] Based on this, the terminal mode switching method may also include: the modem monitors the first signal change trend of the mobile terminal in each accessed cellular 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 is the signal change trend of the mobile terminal when accessing the cellular cell. The second signal change trend is the signal change trend corresponding to the mobile terminal in the high-speed mobile scenario. For example, in the high-speed rail scenario, the second signal change trend is strong first and then weak. The first signal change trend can be determined by some signal data generated by the mobile terminal in the process of accessing the cellular cell. The timing of determining the first signal change trend can be set according to actual needs.
[0177] For example, in order to determine as early as possible, the modem can determine the first signal change trend of the mobile terminal in the cellular cell before the mobile terminal is disconnected from the cellular cell, that is, while it is still in the middle of the access. Alternatively, in order to obtain complete signal data during the access period, the modem can also determine the first signal change trend of the mobile terminal in the cellular cell based on the complete signal data after the mobile terminal is disconnected from the cellular cell.
[0178] Then, the modem compares the first signal change trend with the second signal change trend. If the first signal change trend is consistent with the second signal change trend, it can be characterized that the mobile terminal meets the inherent change characteristics in the high-speed mobile scenario, and the current mobile terminal may be in high-speed rail mode. If the first signal change trend is inconsistent with the second signal change trend, it can be characterized that the mobile terminal does not meet the inherent change characteristics in the high-speed mobile scenario, and it can be determined that the mobile terminal cannot be in high-speed rail mode at the moment.
[0179] If it is determined that the mobile terminal is no longer in high-speed rail mode based on the signal change trend, the cell change duration T that the modem has recorded in history is useless data. Therefore, the modem can clear all the recorded cell change durations T. If the cell change duration T is recorded in the first queue, the first queue is cleared.
[0180] In the embodiment of the present application, if the record is cleared as soon as the first signal change trend that does not conform to the second signal change trend appears, an erroneous judgment may occur because the clearing condition is too strict. 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 is inconsistent with the second signal change trend, the first signal change trend can be stored first, until the modem determines that the number of accumulated stored first signal change trends exceeds a preset number, and then clears the recorded cell change duration.
[0182] In some embodiments, if the cell change duration is recorded using the first queue, then the cell change duration that is cleared out of the first queue due to first-in-first-out is actually no longer of reference significance. Then, correspondingly, the first signal change trend of the cellular cell corresponding to this cell change duration may also be of no reference significance. Therefore, when the modem stores the first signal change trend, it can be associated with the corresponding cell change duration. If the cell change duration associated with the first signal change trend is cleared out of the queue, then this first signal change trend can also be cleared synchronously. This ensures that the recorded first signal change trends are of reference significance and minimizes the probability of erroneous record clearing.
[0183] In some embodiments, due to the high-speed movement of the mobile terminal in the high-speed movement scenario, it is generally impossible for the mobile terminal to return to the same cellular cell signal coverage area within a period of time. Therefore, based on this feature, the first terminal mode output based on the motion data collected by the motion sensor can be corrected accordingly to ensure the accuracy of the first terminal mode.
[0184] like Fig. 9 As shown, a first terminal mode correction process diagram is provided, including steps S901-S910. Fig. 9 The first terminal mode correction process in the embodiment of the present application is described in detail.
[0185] S901, the modem sets a second queue, and writes a cell identifier and access time point corresponding to each cellular cell accessed by the mobile terminal into the second queue.
[0186] Among them, the second queue is a queue set by the modem for recording the cell identity and the access time point, and the length of the second queue can be equal to the threshold L. The cell identity is an identifier used to characterize the cellular cell, which can be a cell number (cell identity, CID), location area code (location area code, LAC), tracking area code (tracking area code, TAC), etc., which can be set according to the actual application scenario requirements, and the embodiment of the present application is not limited here. The access time point is the time point when the mobile terminal accesses the cellular cell.
[0187] S902: The modem receives a first terminal mode of the mobile terminal.
[0188] S903, the modem determines whether the first terminal mode is the high-speed rail mode. If yes, proceed to S904, if not, return to S902.
[0189] S904: The modem obtains the first cell identifier and the first access time point from the second queue.
[0190] The first cell identifier is a cell identifier obtained from the end of the second queue, and the first access time point is an access time point corresponding to the obtained cell identifier. It can be understood that the first cell identifier and the first access time point are the cell identifier and access time point that are last added to the second queue.
[0191] That is, after the modem receives the first terminal mode, in order to identify whether the first terminal mode output based on the motion data collected by the motion sensor has errors and needs to be further corrected and modified, the modem obtains the cell identifier and access time point of the cellular cell that the mobile terminal has most recently accessed, that is, obtains the first cell identifier and the first access time point from the end of the queue.
[0192] S905: The modem traverses the cell identifiers starting from the head of the second queue.
[0193] S906, the modem determines whether there is a second cell identifier in the second queue. If the second cell identifier is in the second queue, the process proceeds to S907. If the second cell identifier is not in the second queue, the process returns to S902.
[0194] The second cell identifier is a cell identifier that is the same as the first cell identifier and is written into the second queue in history. The first cell identifier and the second cell identifier differ only in the time of being written into the second queue, and the second cell identifier is written into the second queue earlier than the first cell identifier.
[0195] S907: The modem obtains a 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] S909, the modem determines whether the time difference is equal to or greater than the duration T3. If the time difference ≥ T3, proceed to S910. If the time difference < T3, return to S902.
[0198] S910: The modem changes the first terminal mode from the high-speed rail mode to the non-high-speed rail mode.
[0199] Specifically, after the modem obtains the first cell identifier, it traverses the cell identifiers from the head of the second queue to find whether the second cell identifier exists in the second queue. If the second cell identifier exists in the second queue, it may be that the mobile terminal has not left the cell, or it may be that the mobile terminal has returned to the cell. If it has returned to the cell, it can be determined that it is not the high-speed rail mode.
[0200] Therefore, the modem needs to further determine whether to return to the 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 access time point and the second access time point. The time difference is compared with the preset duration T3. Among them, the duration T3 is a value set based on experience and measured data. For example, in a high-speed rail scenario, it is usually impossible for a mobile terminal to stay in the same cell signal coverage area after 60 seconds, and it is impossible to return to the cell within 60 seconds. Therefore, T3 can be set to 60s. In other words, if the time difference is ≥60s, it means that the mobile terminal cannot be in high-speed rail mode at the moment. Therefore, the modem changes the first terminal mode from high-speed rail mode to non-high-speed rail mode. If the time difference is <60s, it may be that the mobile terminal has not left the cell, so it may be in high-speed rail mode, so 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, in the case where the subway mode is misidentified as the high-speed rail mode based on motion data, correction changes can be made through geo-fencing.
[0203] Based on this, if the first terminal mode of the mobile terminal received by the modem is the high-speed rail mode, the terminal mode switching method may also include: the modem obtains the cellular cell and high-speed rail geographic fence currently connected to the mobile terminal; wherein, the high-speed rail geographic fence is a geographic fence constructed by cellular cells along the high-speed rail line; when the currently connected cellular cell is not included in the high-speed rail geographic fence, the modem changes the first terminal mode from the high-speed rail mode to the non-high-speed rail mode.
[0204] Specifically, the modem pre-acquires the cellular cells along the high-speed rail line, and constructs a geo-fence based on the cellular cells to obtain the high-speed rail geo-fence. For example, the high-speed rail geo-fence can be constructed based on the cell identifiers of the cellular cells.
[0205] Furthermore, when the first terminal mode received by the Modem is the high-speed rail mode, an event of correcting and changing the first terminal mode based on the high-speed rail geographic fence can be triggered.
[0206] That is to say, if the first terminal mode received by the modem is the high-speed rail mode, the cellular cell currently accessed by the mobile terminal is obtained. Among them, the currently accessed cellular cell may be the cellular cell in which the mobile terminal is currently communicating. If the modem sets a first queue to record the cell change duration T or sets a second queue to record the cell identifier of the latest accessed cellular cell, the currently accessed cellular cell may also be the cellular cell corresponding to the cell change duration T recorded at the end of the first queue or the cellular cell corresponding to the cell identifier recorded at the end of the second queue. If the high-speed rail geographic fence is constructed by the cell identifier of the cellular cell, the corresponding cell identifier can also be directly obtained from the end of the second queue.
[0207] Then, the modem further determines whether the high-speed rail geo-fence includes the currently accessed cellular cell. If it does, it indicates that the mobile terminal is currently within the range of the high-speed rail geo-fence, and accordingly indicates 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 range of the high-speed rail geo-fence, and accordingly indicates that the mobile terminal cannot be in high-speed rail mode. Then, the modem changes the first terminal mode from high-speed rail mode to non-high-speed rail mode.
[0208] In the embodiment of the present application, the accuracy of the first terminal mode can be improved by correcting and changing the recognition result of the first terminal mode through the geographic fence.
[0209] In some embodiments, in order to ensure the stability of the mobile terminal network in high-speed mobile scenarios, there is a dedicated network that provides services for high-speed mobile terminals, namely, a high-speed dedicated network (HSDN). Compared with the ordinary public network (Public Network), HSDN has stronger coverage and can reduce the number of cell switching and cell reselection times of mobile terminals in a continuous high-speed mobile state, thereby providing better services for mobile terminals. Therefore, existing mobile terminals will also give priority to 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, the embodiment of the present application can also determine whether the mobile terminal has access to HSDN by judging whether the communication network protocol of the cellular cell currently accessed by the mobile terminal carries the HSDN identifier. If the modem confirms that the mobile terminal has access 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 then the modem can 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 switching access to each cellular cell, it is necessary to wait until the number of cellular cells switched to access reaches a certain number. For example, after the number reaches L, the average cell change duration is calculated to determine the second terminal mode. Therefore, in general, the time required to determine the second terminal mode will be longer than the time required to determine the first terminal mode.
[0212] That is, the mobile terminal will first determine that the mobile terminal is in the first terminal mode, and then determine that the mobile terminal is in the second terminal mode. That is, there will be a certain time interval between the determination of the first terminal mode and the second terminal mode.
[0213] Based on this, in order to avoid the mobile terminal being unable to enter the high-speed rail mode during this time interval due to waiting for the determination of the second terminal mode, thereby affecting the implementation of the communication scheme that relies on the high-speed rail mode. In an embodiment of the present application, it is possible to first determine whether the mobile terminal enters the high-speed rail mode according to the result of the first terminal mode. After the second terminal mode is determined, whether the mobile terminal enters the high-speed rail mode is adjusted accordingly based on whether the mobile terminal has currently entered the high-speed rail mode and the result of the second terminal mode.
[0214] Specifically, at the first moment, if the mobile terminal is determined to be in a non-high-speed rail mode based on the motion data collected by the motion sensor, since the mobile terminal is determined not to be in a high-speed rail mode based on the motion data at this time, the mobile terminal does not enter or exit the high-speed rail mode. That is, when it is determined that the first terminal mode is a non-high-speed rail mode, if the mobile terminal is currently in a state of not entering the high-speed rail mode, it does not enter the high-speed rail mode. If the current mobile terminal has entered the high-speed rail mode, it exits the high-speed rail mode. Then, at the second moment, if the mobile terminal is determined to be in a high-speed rail mode based on the change in the duration of switching access to each cellular cell, it is determined that the mobile terminal is in a high-speed rail mode. At this time, the mobile terminal is in a state of not entering the high-speed rail mode according to the first terminal mode at the first moment, and the second terminal mode currently determined is the high-speed rail mode, then the mobile terminal is adjusted to enter the high-speed rail mode. Among them, this second moment is after this first moment.
[0215] Alternatively, at the third moment, if the mobile terminal is determined to be in high-speed rail mode based on the motion data collected by the motion sensor, since the mobile terminal has been determined to be in high-speed rail mode based on the motion data at this time, then regardless of whether the current mobile terminal is in the state of entering the high-speed rail mode, the mobile terminal is first allowed to enter the high-speed rail mode. Then, at the fourth moment, if the mobile terminal is determined to be in non-high-speed rail mode based on the change in the duration of the mobile terminal switching access to each cellular cell. Then, at this time, the mobile terminal is in the state of entering the high-speed rail mode, and the principle of high-speed rail mode shall prevail, and the mobile terminal will not exit the high-speed rail mode at this time. Among them, this fourth moment is after this third moment.
[0216] In summary, in an embodiment of the present application, as long as the first terminal mode is determined, it is first determined whether the mobile terminal enters the high-speed rail mode according to the actual result of the first terminal mode. That is, if the first terminal mode is the high-speed rail mode, the mobile terminal enters the high-speed rail mode. If the first terminal mode is not the high-speed rail mode, the mobile terminal does not enter or exit the high-speed rail mode. Then, if the second terminal mode is determined, as long as the second terminal mode is the high-speed rail mode, regardless of whether the current mobile terminal is in the state of entering the high-speed rail mode, the mobile terminal will be adjusted to enter the second terminal. If the second terminal mode is not the high-speed rail mode, regardless of whether the current mobile terminal is in the state of entering the high-speed rail mode, no adjustment will be made, that is, no action will be performed.
[0217] For example, Fig.10 A schematic diagram of terminal mode switching is shown based on a tree structure.
[0218] In addition, in the embodiment of the present application, the specific implementation of determining that the mobile terminal is in the high-speed rail mode based on the change in the duration of the mobile terminal switching to access each cellular cell can refer to the description of the above embodiment, which will not be repeated here. At the same time, the embodiment of the present application can also refer to the method described in the above embodiment to correct and change the first terminal mode, which will not be repeated here.
[0219] Another embodiment of the present application provides a mobile terminal, including: one or more motion sensors, one or more processors, a memory and a mobile communication module; the motion sensor, the memory and the mobile communication module are respectively coupled to the processor; the motion sensor is 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; one or more computer program codes are stored in the memory, and the computer program code includes computer instructions; when the processor executes the computer instructions, the mobile terminal executes 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, which is used to cooperate with the mobile communication module to support the mobile terminal to access the cellular network.
[0221] The modem can also be used to perform the steps of determining whether the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular cell in the terminal mode switching method described in any of the above embodiments. And the modem is also used to perform the steps of determining whether to enter the high-speed rail mode according to the first terminal mode and the second terminal mode. For details, please refer to the description of the above embodiments, which will not be repeated here.
[0222] In some embodiments, the motion sensor includes any one or more of a magnetometer sensor, an acceleration sensor, and a gyroscope sensor.
[0223] Another embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor in a mobile terminal, the mobile terminal implements the terminal mode switching method described in any of the above embodiments.
[0224] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step in the above method embodiment.
[0225] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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 the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0227] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0228] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0229] If the integrated unit is implemented in the form of 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 solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0230] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A terminal mode switching method, characterized in that: Applied to a mobile terminal, the mobile terminal includes one or more motion sensors; the motion sensors are used to collect motion data of the mobile terminal, and the method includes: Based on the motion data collected by the motion sensor, determining that the mobile terminal is in a first terminal mode; Determining that the mobile terminal is in the second terminal mode based on a change in the duration of the mobile terminal switching access to each cellular 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 according to claim 1, characterized in that The method further comprises: If the first terminal mode is the high-speed rail mode and the second terminal mode is the 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 includes a modem; the method further includes: The Modem receives the first terminal mode; The determining that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular 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, including: The modem determines that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching to access each cellular 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 any one of claims 1 to 3, characterized in that The determining that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular cell includes: Each time the mobile terminal switches to access a new cellular cell, a cell change duration is recorded; the cell change duration is the total access duration of the new cellular cell corresponding to the previous cellular cell; When the number of recorded cell change durations reaches a threshold value L, the average value of L cell change durations whose recorded time is closest to the current time is calculated to obtain an average cell change duration; If the average cell change duration is less than the duration T1, determining that the second terminal mode is a high-speed rail mode; If the average cell change duration is equal to or greater than duration T1, it is determined that the second terminal mode is a non-high-speed rail mode.
5. The method according to claim 4, characterized in that When the number of the recorded cell change durations reaches a threshold value L, calculating the average value of L cell change durations whose recording time is closest to the current time to obtain the average cell change duration, including: Setting a first queue, and writing 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 the cell change durations written in the first queue reaches L, the L cell change durations are obtained from the end of the queue to calculate the average value, so as to obtain the average cell change duration.
6. The method according to claim 4 or 5, characterized in that: After recording a cell change duration, the method further includes: when the recorded cell change duration is equal to or greater than duration T2, clearing all recorded cell change durations.
7. The method according to any one of claims 4 to 6, characterized in that: The method further comprises: Monitoring a first signal change trend of the mobile terminal in each of the accessed cellular cells; If there are a preset number of the first signal change trends that do not match the second signal change trends, clear all recorded cell change durations; wherein the second signal change trend is the signal change trend corresponding to the mobile terminal in a high-speed moving scenario.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Setting a second queue, writing the cell identifier and access time point corresponding to each cellular cell accessed by the mobile terminal into the second queue; wherein the length of the second queue is equal to the threshold L; If the first terminal mode is the high-speed rail 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 end of the queue, and the first access time point is an access time point corresponding to the obtained cell identifier; Traverse the cell identifiers from the head of the second queue, and if the second cell identifier exists in the second queue, obtain 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, the first terminal mode is changed from the high-speed rail mode to the non-high-speed rail mode.
9. The method according to any one of claims 1 to 8, characterized in that If the first terminal mode is a high-speed rail mode, the method further includes: Acquire the cellular cell and high-speed rail geo-fence currently accessed by the mobile terminal; wherein the high-speed rail geo-fence is a geo-fence constructed by cellular cells along the high-speed rail line; When the currently accessed cellular cell is not included in the high-speed rail geo-fence, the first terminal mode is changed from the high-speed rail mode to the non-high-speed rail mode.
10. The method according to any one of claims 1 to 9, characterized in that If the first terminal mode is a high-speed rail mode, the method further includes: Obtaining a communication network protocol corresponding to the cellular cell currently accessed by the mobile terminal; When the communication network protocol does not carry the high-speed dedicated network HSDN identifier, the first terminal mode is changed from the high-speed rail mode to the non-high-speed rail mode.
11. A terminal mode switching method, characterized in that: Applied to a mobile terminal, the mobile terminal includes one or more motion sensors; the motion sensors are used to collect motion data of the mobile terminal, and the method includes: At a first moment, based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in a non-high-speed rail mode, and the mobile terminal does not enter or exit the high-speed rail mode; At the second moment, based on the change in the duration of the mobile terminal switching to access each cellular cell, it is determined that the mobile terminal is in high-speed rail mode, and the mobile terminal enters the high-speed rail mode; wherein the second moment is after the first moment.
12. The method according to claim 11, characterized in that The method further comprises: At a third moment, based on the motion data collected by the motion sensor, it is determined that the mobile terminal is in the high-speed rail mode, and the mobile terminal enters the high-speed rail mode; At the fourth moment, based on the change in the duration of the mobile terminal switching access to each cellular cell, it is determined that the mobile terminal is in a non-high-speed rail mode, and the mobile terminal does not enter or exit the high-speed rail mode; wherein the fourth moment is after the third moment.
13. A mobile terminal, characterized in that: include: One or more motion sensors, one or more processors, a memory and a mobile communication module; the motion sensor, the memory and the mobile communication module are respectively coupled to the processor; the motion sensor is 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, and the computer program codes include computer instructions; when the processor executes the computer instructions, the mobile terminal executes the terminal mode switching method as described in any one of claims 1 to 12.
14. The mobile terminal according to claim 13, characterized in that: The processor includes a modem; the modem is used to cooperate with the mobile communication module to support the mobile terminal to access the cellular network; The modem is also used to perform the steps of determining that the mobile terminal is in the second terminal mode based on the change in the duration of the mobile terminal switching access to each cellular cell in the terminal mode switching method; Furthermore, the modem is also used to execute the steps in the terminal mode switching method, which are related to confirming 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 in that: The motion sensor includes any one or more sensors selected from the group consisting of a magnetometer sensor, an acceleration sensor, and a gyroscope sensor.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the terminal mode switching method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Cell switching method, information transmitting method, and related equipment
CN106332197A
High-speed rail mobile terminal user cell switching method and system
CN110505665A
User terminal mode control method and device and terminal
CN113973282A
Base station cell handover method and device, terminal and computer-readable storage medium
WO2022083311A1