Flight mode control method for terminal device, and terminal device and related device
The flight mode is controlled by judging the system's time and matching motion data in the terminal device, and the problem of high power consumption and poor user experience in existing technologies has been solved, and more reasonable flight mode control is achieved.
Patent Information
- Application Number
- PCT/CN2024/093693
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-25
- Filing Date
- 2024-05-16
- Publication Date
- 2025-01-30
AI Technical Summary
When controlling the flight mode of the terminal equipment, the prior art has problems such as high power consumption, falsely turning on the flight mode, and poor user experience, making it difficult to reasonably control the flight mode.
By determining whether the system of the terminal equipment is at the preset period, the real -time location information and motion data are obtained, and the preset motion data is matched to determine whether to start or turn off the flight mode.
Reduce the power consumption of the terminal equipment, reasonably control the flight mode, and improve the user experience.
Smart Images

Figure CN2024093693_30012025_PF_FP_ABST
Abstract
Description
Flight mode control method of terminal device, terminal device and related devices
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 25, 2023, with application number 202310923605.7 and application name “A flight mode control method for a terminal device, a terminal device and related devices”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of intelligent terminal technology, and in particular to a flight mode control method for a terminal device, the terminal device, and related devices. Background Art
[0003] Mobile devices have become an essential necessity, and an increasing number of them feature communication capabilities. When a user needs to board an airplane, if their mobile device is in normal mode (i.e., not in airplane mode), the communication signals it generates can impact flight safety. To ensure flight safety, users are required to manually enable airplane mode to prevent communication signals from impacting flight safety. However, manually enabling airplane mode can lead to users forgetting to enable it, and is not a very smart or convenient method.
[0004] In traditional technology, whether to turn on flight mode can be determined by ticket information and terminal location, or by a message to enable flight mode sent by the aircraft's wireless access point (AP), or by starting flight mode when the mobile phone detects that the aircraft's flight altitude is greater than a threshold, restarting the mobile phone and prohibiting the loading of the modem module. However, the defects of traditional technology are that judging only by ticket information and terminal location can easily cause the terminal device to mistakenly turn on flight mode, interfering with the user's normal use, and requiring continuous use of the global positioning system (GPS) to obtain the terminal location, resulting in high terminal power consumption. In addition, the aircraft may not be turned on or deployed with a wireless AP, and the method of judging the flight altitude cannot turn on flight mode in time, and restarting the mobile phone and prohibiting the loading of the modem module will affect the user's normal use, resulting in a poor user experience. Therefore, how to reasonably control the flight mode of the terminal device has become one of the problems that need to be solved urgently.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a flight mode control method for a terminal device, a terminal device, and related devices, which reduce the power consumption of the terminal device and reasonably control the flight mode of the terminal device.
[0007] In the first aspect, an embodiment of the present application provides a flight mode control method for a terminal device. The method includes: determining whether the first system moment of the terminal device is within a first preset time period. When it is determined that the first system moment of the terminal device is within the first preset time period, the first real-time location information of the terminal device is obtained, and whether the terminal device is within the first preset area is determined based on the first real-time location information. When it is determined that the terminal device is within the first preset area, the first motion data of the terminal device within the second preset time period is obtained, wherein the starting moment of the second preset time period is after the end moment of the first preset time period, and the duration of the second preset time period is less than the first preset duration, and the motion data of the terminal device includes linear acceleration data and angular motion data. When it is determined that the first motion data matches the preset takeoff motion data, the flight mode of the terminal device is activated.
[0008] In combination with the first aspect, in a feasible implementation, the first real-time location information is the target base station number accessed by the terminal device, and determining whether the terminal device is within the first preset area based on the first real-time location information includes: determining whether the target base station number is included in the preset base station number database, wherein the preset base station number database includes at least the base station numbers corresponding to one or more base stations within the first preset area. When it is determined that the preset base station number database contains the target base station number, it is determined that the terminal device is within the first preset area. When it is determined that the preset base station number database does not contain the target base station number, it is determined that the terminal device is not within the first preset area.
[0009] In conjunction with the first aspect, in one feasible implementation, when it is determined that the terminal device is not within the first preset area, the method further includes: upon detecting that a preset judgment period has expired, obtaining a second system time of the terminal device, and determining whether the second system time is within the first preset time period. When it is determined that the second system time is within the first preset time period, obtaining second real-time location information of the terminal device, and determining whether the terminal device is within the first preset area based on the second real-time location information.
[0010] In combination with the first aspect, in a feasible implementation method, the first preset area is the departure airport area, the first preset time is the take-off time of the aircraft, the first preset motion data is the motion data possessed by the terminal device during the aircraft take-off process, and the first preset time period includes the aircraft take-off time.
[0011] In conjunction with the first aspect, in a feasible implementation, the method further includes: fitting a first linear acceleration curve and a first angular motion curve based on the linear acceleration data and angular motion data included in the first motion data of the terminal device within the second preset time period. Determining a second linear acceleration curve and a second angular motion curve based on the first preset motion data. When it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and the similarity between the first angular motion curve and the second angular motion curve is greater than or equal to a second preset similarity, then determining that the first motion data matches the first preset motion data. When it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity between the first angular motion curve and the second angular motion curve is less than the second preset similarity, then determining that the first motion data does not match the first preset motion data.
[0012] In conjunction with the first aspect, in one feasible implementation, the method further includes: when it is determined that the first motion data does not match the first preset motion data, obtaining third motion data of the terminal device within a fourth preset time period, wherein the start time of the fourth preset time period is after the end time of the second preset time period and the duration of the fourth preset time period is less than the first preset duration. When it is determined that the third motion data matches the first preset motion data, activating flight mode of the terminal device.
[0013] In combination with the first aspect, in a feasible implementation, after the flight mode of the terminal device is activated, the method further includes: obtaining third real-time location information of the terminal device, and determining whether the terminal device is within a second preset area based on the third real-time location information. When it is determined that the terminal device is within the second preset area, second motion data of the terminal device within a third preset time period is obtained, wherein the starting time of the third preset time period is after the time when the terminal device is determined to be within the second preset area, and the duration of the third preset time period is less than the second preset duration. When it is determined that the second motion data matches the second preset motion data, the flight mode of the terminal device is turned off.
[0014] In conjunction with the first aspect, in one feasible implementation, the second preset area is a landing airport area, the second preset duration is the landing duration of the aircraft, and the second preset motion data is motion data of the terminal device during the aircraft landing process. Acquiring the third real-time location information of the terminal device includes: determining the real-time motion speed of the terminal device based on the linear acceleration data of the terminal device. Determining the third real-time location information of the terminal device is based on the real-time motion speed, the duration of the terminal device's flight mode being on, and the aircraft's route information.
[0015] In the second aspect, an embodiment of the present application provides a terminal device, which includes: a judgment unit for judging whether the first system moment of the terminal device is within a first preset time period. A processing unit for obtaining the first real-time location information of the terminal device when it is determined that the first system moment of the terminal device is within the first preset time period, and determining whether the terminal device is within a first preset area based on the first real-time location information. The processing unit is also used to obtain the first motion data of the terminal device within a second preset time period when it is determined that the terminal device is within the first preset area, wherein the starting moment of the second preset time period is after the ending moment of the first preset time period, and the duration of the second preset time period is less than the first preset duration, and the motion data of the terminal device includes linear acceleration data and angular motion data. The processing unit is also used to activate the flight mode of the terminal device when it is determined that the first motion data matches the first preset motion data.
[0016] In conjunction with the second aspect, in a feasible implementation, the processing unit is further configured to determine whether the target base station number is included in a preset base station number database, wherein the preset base station number database includes at least base station numbers corresponding to one or more base stations within the first preset area. The processing unit is further configured to determine that the terminal device is within the first preset area when it is determined that the preset base station number database contains the target base station number. The processing unit is further configured to determine that the terminal device is not within the first preset area when it is determined that the preset base station number database does not contain the target base station number.
[0017] In conjunction with the second aspect, in one feasible implementation, the processing unit is further configured to, upon detecting the arrival of a preset judgment period, obtain a second system time of the terminal device and determine whether the second system time is within the first preset time period. The processing unit is further configured to, upon determining that the second system time is within the first preset time period, obtain second real-time location information of the terminal device and determine whether the terminal device is within the first preset area based on the second real-time location information.
[0018] In combination with the second aspect, in a feasible implementation method, the first preset area is the departure airport area, the first preset time is the take-off time of the aircraft, the first preset motion data is the motion data possessed by the terminal device during the aircraft take-off process, and the first preset time period includes the aircraft take-off time.
[0019] In conjunction with the second aspect, in one feasible implementation, the processing unit is further configured to fit a first linear acceleration curve and a first angular motion curve based on the linear acceleration data and angular motion data included in the first motion data of the terminal device within the second preset time period. The processing unit is further configured to determine a second linear acceleration curve and a second angular motion curve based on the first preset motion data. The processing unit is further configured to determine that the first motion data matches the first preset motion data when it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and the similarity between the first angular motion curve and the second angular motion curve is greater than or equal to a second preset similarity. The processing unit is further configured to determine that the first motion data does not match the first preset motion data when it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity between the first angular motion curve and the second angular motion curve is less than the second preset similarity.
[0020] In combination with the second aspect, in a feasible implementation, the processing unit is further used to obtain third real-time location information of the terminal device, and determine whether the terminal device is within a second preset area based on the third real-time location information. The processing unit is also used to obtain second motion data of the terminal device within a third preset time period when it is determined that the terminal device is within the second preset area, wherein the starting time of the third preset time period is after the time when the terminal device is determined to be within the second preset area, and the duration of the third preset time period is less than the second preset duration. The processing unit is also used to turn off the flight mode of the terminal device when it is determined that the second motion data matches the second preset motion data.
[0021] In conjunction with the second aspect, in one feasible implementation, the processing unit is further configured to determine the real-time motion speed of the terminal device based on the linear acceleration data of the terminal device. The processing unit is further configured to determine third real-time location information of the terminal device based on the real-time motion speed, the duration of the terminal device's flight mode being on, and the aircraft's route information.
[0022] In conjunction with the second aspect, in one feasible implementation, the processing unit is further configured to, upon determining that the first motion data does not match the first preset motion data, obtain third motion data of the terminal device within a fourth preset time period, wherein the start time of the fourth preset time period is after the end time of the second preset time period, and the duration of the fourth preset time period is less than the first preset duration. The processing unit is further configured to, upon determining that the third motion data matches the first preset motion data, activate flight mode of the terminal device.
[0023] In a third aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program. When the computer program runs on a computer, the computer executes the flight mode control method of the terminal device provided by any possible implementation method in the first aspect above, and can also achieve the beneficial effects of the flight mode control method of the terminal device provided by the first aspect.
[0024] In a fourth aspect, embodiments of the present application provide an electronic device, which may include a processor and a memory, the processor and memory being interconnected. The memory is configured to store a computer program, and the processor is configured to execute the computer program to implement the flight mode control method for a terminal device provided in the first aspect, thereby achieving the beneficial effects of the flight mode control method for a terminal device provided in the first aspect.
[0025] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the embodiments of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] FIG1 is a flow chart of a method for controlling an airplane mode of a terminal device provided by an embodiment of the present application;
[0028] FIG2 is a schematic diagram showing flight information provided by an embodiment of the present application;
[0029] FIG3 is a schematic diagram showing a reminder message of a terminal device provided in an embodiment of the present application;
[0030] FIG4 is another flowchart of a method for controlling the flight mode of a terminal device provided in an embodiment of the present application;
[0031] FIG5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
[0032] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0034] In the prior art, a terminal device can determine whether to turn on flight mode based on ticket information and terminal location, or through a message to enable flight mode sent by the aircraft's wireless access point (AP), or by activating flight mode when the mobile phone detects that the aircraft's flight altitude is greater than a threshold, restarting the phone and prohibiting the loading of the modem module. However, the prior art has problems such as high power consumption of the terminal device and mistaken activation of flight mode, resulting in a poor user experience. Therefore, the technical problem to be solved by this application is: how to reasonably control the flight mode of the terminal device.
[0035] In the embodiments of the present application, the terminal device may be any electronic device with communication capabilities, such as a smartphone, a portable laptop, a tablet computer, a wearable device, a head-mounted device, etc. The present application does not impose any specific restrictions on the implementation form of the terminal device.
[0036] Please refer to Figure 1, which is a flow chart of a method for controlling the flight mode of a terminal device provided in an embodiment of the present application. The method can be applied to the terminal device described above. As shown in Figure 1, the method may specifically include the following steps:
[0037] S101, determining whether a first system time of a terminal device is within a first preset time period.
[0038] In some feasible implementations, the terminal device may determine whether its first system time is within a first preset time period. The first system time of the terminal device may be obtained by the terminal device itself. Alternatively, the first preset time period may be obtained by combining the target time with a preset time offset.
[0039] Optionally, when the target time is the aircraft take-off time, the first preset period can be obtained by the aircraft take-off time and the preset time offset. Specifically, the start time of the first preset period is the difference between the take-off time and the preset time offset, and the end time of the first preset period is the sum of the take-off time and the preset time offset. For example, assuming that the aircraft take-off time is 9:00 and the preset time offset is 30 minutes, the start time of the first preset period can be determined to be 8:30 and the end time of the first preset period is 9:30. Therefore, the first preset period is 8:30 to 9:30.
[0040] Optionally, after user authorization, flight departure times can be obtained by obtaining the user's flight information and extracting the departure time contained in the flight information. Specifically, there are three ways to obtain a user's flight information. Method 1: Determine the user's flight information by extracting notification messages from the booking application. Method 2: Determine the user's flight information by extracting SMS notifications received by the terminal device. Method 3: The user can manually add flight information.
[0041] Optionally, after the terminal device obtains the user's flight information, the terminal device can extract the aircraft take-off time, aircraft landing time, departure airport and landing airport information contained in the flight information through text extraction and other technologies based on the obtained flight information.
[0042] For example, see Figure 2, which is a schematic diagram showing flight information provided by an embodiment of the present application. As shown in Figure 2, the terminal device can extract from the flight information the flight departure time of 13:00, the flight landing time of 15:25, the departure airport of Airport A, and the landing airport of Airport B using text extraction techniques.
[0043] S102: When it is determined that the first system moment of the terminal device is within a first preset time period, first real-time location information of the terminal device is obtained, and whether the terminal device is within a first preset area is determined according to the first real-time location information.
[0044] In some feasible implementations, when the terminal device determines that the first system time of the terminal device is within a first preset time period, the terminal device may obtain first real-time location information of the terminal device, and may determine whether the terminal device is within a first preset area based on the first real-time location information of the terminal device. The first real-time location information is the location information of the terminal device itself obtained when it determines that its current system time is within the first preset time period.
[0045] In an optional embodiment, the first real-time location information may be the number of the target base station accessed by the terminal device. After the terminal device determines that the first system moment is within the first preset time period, the terminal device may obtain the number of the target base station accessed by the terminal device. The terminal device may further determine whether the preset base station number data includes the number of the target base station accessed by the terminal device. The preset base station number data may include at least base station numbers corresponding to one or more base stations within the first preset area.
[0046] Further, when the terminal device determines that the preset base station number database contains the target base station number accessed by the terminal device, it can be determined that the terminal device is within the first preset area. When the terminal device determines that the preset base station number database does not contain the target base station number accessed by the terminal device, it can be determined that the terminal device is not within the first preset area.
[0047] In another optional embodiment, after the terminal device determines that the first system moment is within the first preset time period, the terminal device can obtain the number of the target base station accessed by the terminal device, and can determine the first real-time location information of the terminal device based on the target base station number. Exemplarily, the terminal device can query the geographic location of the mobile base station by searching a website for mobile base station numbers, such as Cellmapper. The Cellmapper website provides a map that can be used to search for the number of a mobile base station to query its geographic location.
[0048] Furthermore, the terminal device may determine whether the terminal device is within the first preset area based on the determined first real-time location information of the terminal device.
[0049] In the above implementation, the terminal device can determine the location of the terminal device by querying the base station location database, avoiding starting satellite positioning, thereby reducing the power consumption of the terminal device.
[0050] In another optional embodiment, after the terminal device determines that the first system moment is within the first preset time period, the terminal device may obtain first real-time location information of the terminal device through its built-in GPS (Global Positioning System) module, and further determine whether the terminal device is within the first preset area based on the first real-time location information.
[0051] Optionally, when the terminal device determines that it is not within the departure airport area, the terminal device may obtain the second system time of the terminal device upon detecting the expiration of a preset judgment period, and determine whether the second system time is within the first preset time period. Furthermore, when it is determined that the second system time is within the first preset time period, the terminal device may obtain its second real-time location information and determine whether the terminal device is within the first preset area based on the second real-time location information. It should be understood that the preset judgment period should be less than the time offset for determining the first preset time period described above.
[0052] It should be noted that the terminal device may obtain its system time multiple times according to a preset judgment period within a preset duration, and stop obtaining its system time until it is determined that its system time is within the first preset period. The preset duration should be greater than the duration corresponding to the first preset period.
[0053] It should be noted that the method for determining whether the terminal device is within the first preset area based on the second real-time location information is similar to the method for determining whether the terminal device is within the first preset area based on the first real-time location information described above.
[0054] In the above implementation, the terminal device obtains the location information of the terminal device only when the aircraft is close to taking off, which can effectively reduce the power consumption of the terminal device.
[0055] S103: When it is determined that the terminal device is within the first preset area, first motion data of the terminal device within a second preset time period is obtained.
[0056] In some feasible implementations, when the terminal device determines that it is within the first preset area, first motion data of the terminal device within a second preset time period may be obtained. The start time of the second preset time period is after the end time of the first preset time period, and the duration of the second preset time period is less than the first preset time period. The motion data of the terminal device may include linear acceleration data and angular motion data.
[0057] Optionally, the motion data of the terminal device can be obtained by sensors such as an accelerometer and a gyroscope. Specifically, the terminal device can obtain linear acceleration data of the terminal device through the accelerometer and angular motion data of the terminal device through the gyroscope.
[0058] It should be understood that when the terminal device determines that it is within the first preset area, the terminal device can continuously obtain the first motion data of the terminal device through sensors such as accelerometers and gyroscopes within a second preset time period to determine the current motion state of the terminal device.
[0059] S104: When it is determined that the first motion data matches the first preset motion data, the flight mode of the terminal device is activated.
[0060] In some feasible implementations, after the terminal device obtains its first motion data within the second preset time period, the terminal device may activate the flight mode of the terminal device when it determines that the first motion data matches the first preset motion data.
[0061] In an optional embodiment, when the first preset area is a takeoff airport area, the first preset duration is the takeoff duration of an aircraft, and the first preset motion data is the motion data of the terminal device during the aircraft's takeoff, after obtaining the first motion data within the second preset time period, the terminal device may fit the first linear acceleration curve and the first angular motion curve based on the linear acceleration data and angular motion data included in the first motion data. The terminal device may determine the second linear acceleration curve and the second angular motion curve based on the first preset motion data. Further, when the terminal device determines that the similarity between the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and the similarity between the first angular motion curve and the second angular motion curve is greater than or equal to a second preset similarity, the terminal device may determine that the first motion data matches the first preset motion data. When the terminal device determines that the similarity between the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity between the first angular motion curve and the second angular motion curve is less than the second preset similarity, the terminal device may determine that the first motion data does not match the first preset motion data.
[0062] Optionally, after the terminal device determines that the first motion data matches the first preset motion data, the terminal device may call a related interface to enable the flight mode of the terminal device. If the terminal device determines that the first motion data does not match the first preset motion data, the terminal device does not perform any processing.
[0063] In an optional embodiment, when the terminal device determines that the first motion data does not match the first preset motion data, it can obtain its third motion data within a fourth preset time period. Further, when the terminal device determines that the third motion data matches the first preset motion data, it can activate the terminal device's flight mode. The start time of the fourth preset time period is after the end time of the second preset time period, and the duration of the fourth preset time period is less than the first preset duration. It should be understood that the time interval between the fourth preset time period and the second preset time period should not be too long.
[0064] Optionally, the length of the fourth preset period may be the same as or different from the length of the second preset period described above. The embodiment of the present application does not impose any specific restrictions on this and can be set according to user needs.
[0065] It should be noted that, when the terminal device determines that the motion data still does not match the first preset motion data, it may obtain the motion data multiple times at a preset period within a preset duration until the terminal device determines that the motion data matches the first preset motion data, or, if the terminal device determines that the number of times it has obtained the motion data exceeds the preset number, it stops obtaining the motion data and determining whether the data matches. The preset duration should be greater than the duration of the second preset period and the duration of the fourth preset period, and less than the first preset duration.
[0066] Optionally, when the terminal device still determines that its motion data does not match the preset takeoff motion data after obtaining its motion data multiple times within a preset time period and comparing it with the first preset motion data, or when the terminal device determines that the number of times its motion data is obtained is greater than a preset number, a reminder message can be sent through the terminal device to remind the user to turn on the flight mode of the terminal device.
[0067] For example, see Figure 3, which is a schematic diagram showing a reminder message of a terminal device provided in an embodiment of the present application. As shown in Figure 3, if the terminal device still determines that the first motion data does not match the preset takeoff motion data within a preset time period, the terminal device can send a reminder message "Please turn on airplane mode in time" to remind the user to turn on airplane mode of the terminal device.
[0068] In an embodiment of the present application, the terminal device can obtain its location information within a first preset time period and determine whether it is within the departure airport area based on the ticket information. After determining that the terminal device is within the departure airport area, its motion data within a second preset time period can be obtained, and based on the motion data, it can be determined whether to turn on the flight mode of the terminal device. By adopting the above method, the power consumption of the terminal device can be reduced and the flight mode of the terminal device can be reasonably controlled.
[0069] In some feasible implementations, please refer to FIG4 , which is another flow chart of a method for controlling the flight mode of a terminal device provided in an embodiment of the present application. It should be understood that step S105 should be performed after step S104. As shown in FIG4 , the method may include the following steps:
[0070] S105: Acquire third real-time location information of the terminal device, and determine whether the terminal device is within a second preset area according to the third real-time location information.
[0071] In some feasible implementations, after the flight mode of the terminal device is activated, the terminal device can obtain its third real-time location information and determine whether the terminal device is within the second preset area based on its third real-time location information.
[0072] Optionally, when the second preset area is a landing airport area, the second preset duration is the aircraft landing duration, and the second preset motion data is the motion data of the terminal device during the aircraft landing process, after activating the flight mode of the terminal device, the terminal device can determine the real-time motion speed of the terminal device based on the linear acceleration data included in its first motion data. Furthermore, the terminal device can determine third real-time location information of the terminal device based on the real-time motion speed, the duration of the terminal device's flight mode activation, and the aircraft's route information.
[0073] After the flight mode of the terminal device is activated, the terminal device can determine the time when the flight mode is activated. Further, the terminal device can determine the duration of the flight mode activation of the terminal device based on the time when the flight mode is activated and the current system time.
[0074] Among them, the route information of the aircraft is pre-planned and set, and can be obtained by the terminal device.
[0075] S106: When it is determined that the terminal device is within the second preset area, second motion data of the terminal device within a third preset time period is obtained.
[0076] In some feasible implementations, when the terminal device determines that the terminal device is within the second preset area, the terminal device may obtain second motion data of the terminal device within a third preset time period. The start time of the third preset time period is after the time when the terminal device is determined to be within the second preset area, and the duration of the third preset time period is less than the second preset duration.
[0077] Optionally, when the terminal device determines that the terminal device is not within the second preset area, it may determine the second real-time location information of the terminal device again after a preset period based on the real-time movement speed of the terminal device, the duration of the terminal device's flight mode being enabled, and the aircraft's route information, and further determine whether the terminal device is within the second preset area based on the second real-time location information. It should be understood that the preset period here should be less than the second preset duration.
[0078] It should be noted that the terminal device may determine whether it is within the second preset area multiple times according to a preset period within a preset time period until it is determined that it is within the second preset area and then stops determining. The preset time period should be less than the second preset time period.
[0079] S107: When it is determined that the second motion data matches the second preset data, the flight mode of the terminal device is turned off.
[0080] In some feasible implementations, after the terminal device obtains its second motion data within the third preset time period, the terminal device may turn off the flight mode of the terminal device when determining that the second motion data matches the second preset motion data.
[0081] In an optional embodiment, when the second preset area is a landing airport area, the second preset duration is the landing duration of an aircraft, and the second preset motion data is motion data of the terminal device during the aircraft landing process, the terminal device may respectively fit a third linear acceleration curve and a third angular motion curve based on the linear acceleration data and angular motion data included in the second motion data of the terminal device within a third preset time period. The terminal device may determine a fourth linear acceleration curve and a fourth angular motion curve based on the second preset motion data. Furthermore, when the terminal device determines that the similarity between the third linear acceleration curve and the fourth linear acceleration curve is greater than or equal to a third preset similarity, and the similarity between the third angular motion curve and the fourth angular motion curve is greater than or equal to a fourth preset similarity, the terminal device may determine that the second motion data matches the second preset motion data. When the terminal device determines that the similarity between the third linear acceleration curve and the fourth linear acceleration curve is less than the third preset similarity, and / or the similarity between the third angular motion curve and the fourth angular motion curve is less than a fourth preset similarity, the terminal device may determine that the second motion data does not match the second preset motion data.
[0082] Optionally, after the terminal device determines that the second motion data matches the second preset motion data, the terminal device can call a related interface to turn off the flight mode. When the terminal device determines that the second motion data does not match the second preset motion data, the terminal device does not perform any processing.
[0083] Optionally, when the terminal device determines that its motion data does not match the second preset motion data, it can obtain its motion data multiple times at a preset period within a preset time length until the terminal device determines that its motion data matches the second preset motion data; or, when the terminal device determines that the number of times its motion data is obtained is greater than the preset number, it stops obtaining the motion data and determining whether the data matches.
[0084] Optionally, if the terminal device still determines that its motion data does not match the second preset motion data after obtaining its motion data multiple times within a preset time period and comparing it with the second preset motion data, or if the terminal device determines that the number of times it has obtained its motion data exceeds a preset number, the terminal device may send a reminder to remind the user to turn off the flight mode of the terminal device. The preset time period should be longer than the third preset time period and shorter than the second preset time period.
[0085] In the above implementation, the terminal device can obtain its own relevant data. The base station number database and take-off / landing movement data can be preset in the terminal device in advance, and these data can be processed locally on the terminal device without uploading to the cloud, thereby effectively protecting the user's data security.
[0086] It should be understood that although the various steps in the flowcharts of Figures 1 and 4 are shown in sequence as indicated by the arrows, such steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be performed in other orders. Moreover, at least some of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their indicated order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0087] Please refer to Figure 5, which is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. As shown in Figure 5, the terminal device may include a judgment unit 51 and a processing unit 52.
[0088] In a specific implementation, the judgment unit 51 is used to judge whether the first system moment of the terminal device is within the first preset time period. The processing unit 52 is used to obtain the first real-time location information of the terminal device when it is determined that the first system moment of the terminal device is within the first preset time period, and determine whether the terminal device is within the first preset domain based on the first real-time location information. The processing unit 52 is also used to obtain the first motion data of the terminal device within the second preset time period when it is determined that the terminal device is within the first preset area, wherein the start time of the second preset time period is after the end time of the first preset time period, and the duration of the second preset time period is less than the first preset duration, and the motion data of the terminal device includes linear acceleration data and angular motion data. The processing unit 52 is also used to start the flight mode of the terminal device when it is determined that the first motion data matches the first preset motion data.
[0089] In an optional embodiment, processing unit 52 is further configured to determine whether a preset base station number database contains the target base station number, wherein the preset base station number database includes at least base station numbers corresponding to one or more base stations within the first preset area. Processing unit 52 is further configured to, upon determining that the preset base station number database contains the target base station number, determine that the terminal device is within the first preset area. Processing unit 52 is further configured to, upon determining that the preset base station number database does not contain the target base station number, determine that the terminal device is not within the first preset area.
[0090] In an optional embodiment, the processing unit 52 is further configured to, upon detecting the arrival of a preset determination period, obtain a second system time of the terminal device and determine whether the second system time is within a first preset time period. The processing unit 52 is further configured to, upon determining that the second system time is within the first preset time period, obtain second real-time location information of the terminal device and determine whether the terminal device is within the first preset area based on the second real-time location information.
[0091] In an optional embodiment, the processing unit 52 is further configured to fit a first linear acceleration curve and a first angular motion curve based on the linear acceleration data and angular motion data included in the first motion data of the terminal device within a second preset time period. The processing unit 52 is further configured to determine a second linear acceleration curve and a second angular motion curve based on the first preset motion data. The processing unit 52 is further configured to determine that the first motion data matches the first preset motion data when it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is greater than or equal to the first preset similarity, and the similarity between the first angular motion curve and the second angular motion curve is greater than or equal to the second preset similarity. The processing unit 52 is further configured to determine that the first motion data does not match the first preset motion data when it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity between the first angular motion curve and the second angular motion curve is less than the second preset similarity.
[0092] In an optional embodiment, processing unit 52 is further configured to, upon determining that the first motion data does not match the first preset motion data, obtain third motion data of the terminal device within a fourth preset time period, wherein the start time of the fourth preset time period is after the end time of the second preset time period, and the duration of the fourth preset time period is less than the first preset duration. Processing unit 52 is further configured to, upon determining that the third motion data matches the first preset motion data, activate flight mode of the terminal device.
[0093] In an optional embodiment, the processing unit 52 is further configured to obtain third real-time location information of the terminal device and determine whether the terminal device is within a second preset area based on the third real-time location information. The processing unit 52 is further configured to, upon determining that the terminal device is within the second preset area, obtain second motion data of the terminal device within a third preset time period, wherein the start time of the third preset time period is after the time when the terminal device is determined to be within the second preset area, and the duration of the third preset time period is less than the second preset duration. The processing unit 52 is further configured to, upon determining that the second motion data matches the second preset motion data, disable the flight mode of the terminal device.
[0094] In an optional embodiment, the processing unit 52 is further configured to determine the real-time motion speed of the terminal device based on the linear acceleration data of the terminal device. The processing unit 52 is further configured to determine third real-time location information of the terminal device based on the real-time motion speed, the duration of the terminal device's flight mode being enabled, and the aircraft's route information.
[0095] Please refer to Figure 6, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. This electronic device may be the terminal device described in the above embodiment, and may be used to implement the steps of the terminal device flight mode control method described in the above embodiment. The electronic device may include a processor 61, a memory 62, and a bus system 63.
[0096] The memory 62 includes, but is not limited to, RAM, ROM, EPROM, or CD-ROM, and is used to store relevant instructions and data. The memory 62 stores the following elements, executable modules, or data structures, or subsets thereof, or extended sets thereof:
[0097] Operation instructions: include various operation instructions, used to implement various operations.
[0098] Operating system: includes various system programs used to implement various basic services and process hardware-based tasks.
[0099] FIG6 shows only one memory. Of course, the number of memories may also be multiple as needed.
[0100] As shown in Figure 6, the electronic device may further include an input / output device 64, which may be a communication module or a transceiver circuit. In the embodiments of the present application, the input / output device 64 is used to perform the transmission and reception of data or signaling such as real-time location information involved in the embodiments.
[0101] The processor 61 may be a controller, a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein. The processor 61 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0102] In specific applications, the various components of the electronic device are coupled together via a bus system 63. In addition to a data bus, bus system 63 may also include a power bus, a control bus, and a status signal bus. However, for clarity, FIG6 depicts each bus system as a bus system 63. For ease of illustration, FIG6 illustrates the bus system only schematically.
[0103] It should be noted that in practical applications, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed.
[0104] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0105] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the method or steps executed by the terminal device in the above embodiment are implemented.
[0106] An embodiment of the present application further provides a computer program product, which, when executed by a computer, implements the method or steps executed by the terminal device in the above embodiment.
[0107] It should be noted that for the embodiments of the flight mode control method for any of the above-mentioned terminal devices, for the sake of simplicity, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that this application is not limited to the order of the actions described, because according to this application, some of its steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by this application.
[0108] The terms "first," "second," and so on, in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps is not limited to the listed steps but may optionally include steps not listed, or may optionally include other steps inherent to the process, method, product, or apparatus.
[0109] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0110] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the present application to be protected, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components or steps. The fact that certain measures are recorded in different dependent claims does not mean that these measures cannot be combined to produce good results.
[0111] Those skilled in the art will understand that all or part of the steps in the various methods of the method embodiments of the method for controlling the flight mode of any of the above-mentioned terminal devices can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a disk or an optical disk, etc.
[0112] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the flight mode control method of a terminal device, the terminal device, and related devices of the present application. The description of the above embodiments is used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, based on the flight mode control method of a terminal device, the terminal device, and related devices of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0113] Those skilled in the art will appreciate that, in one or more of the examples above, the functions described herein may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one location to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0114] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of this application. It should be understood that the above description is only the specific implementation methods of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application should be included in the scope of protection of this application.
Claims
1. A flight mode control method for a terminal device, characterized in that: The method comprises: Determining whether the first system time of the terminal device is within a first preset time period; When it is determined that the first system moment of the terminal device is located within the first preset time period, obtaining first real-time location information of the terminal device, and determining whether the terminal device is within the first preset area according to the first real-time location information; When it is determined that the terminal device is within the first preset area, first motion data of the terminal device within a second preset time period is acquired, wherein the start time of the second preset time period is after the end time of the first preset time period, and the duration of the second preset time period is less than the first preset duration, and the motion data of the terminal device includes linear acceleration data and angular motion data; When it is determined that the first motion data matches the first preset motion data, the flight mode of the terminal device is activated.
2. The method according to claim 1, characterized in that The first real-time location information is a target base station number accessed by the terminal device, and determining whether the terminal device is within a first preset area according to the first real-time location information includes: Determine whether the target base station number is included in a preset base station number database, wherein the preset base station number database at least includes base station numbers corresponding to one or more base stations in the first preset area; When it is determined that the preset base station number database contains the target base station number, it is determined that the terminal device is within the first preset area; When it is determined that the preset base station number database does not include the target base station number, it is determined that the terminal device is not within the first preset area.
3. The method according to claim 1 or 2, characterized in that: When it is determined that the terminal device is not within the first preset area, the method further includes: When the preset judgment period is detected to have arrived, obtaining the second system time of the terminal device, and determining whether the second system time is within the first preset time period; When it is determined that the second system is always located within the first preset time period, the second real-time location information of the terminal device is acquired, and it is determined whether the terminal device is within the first preset area according to the second real-time location information.
4. The method according to claim 3, characterized in that The first preset area is the departure airport area, the first preset duration is the take-off duration of the aircraft, the first preset motion data is the motion data of the terminal device during the take-off process of the aircraft, and the first preset time period includes the take-off time of the aircraft.
5. The method according to claim 4, characterized in that The method further comprises: Fitting a first linear acceleration curve and a first angular motion curve according to the linear acceleration data and the angular motion data included in the first motion data of the terminal device within the second preset time period; Determining a second linear acceleration curve and a second angular motion curve according to the first preset motion data; When it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and the similarity between the first angular motion curve and the second angular motion curve is greater than or equal to a second preset similarity, it is determined that the first motion data matches the first preset motion data; When it is determined that the similarity between the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or, the similarity between the first angular motion curve and the second angular motion curve is less than the second preset similarity, then it is determined that the first motion data does not match the first preset motion data.
6. The method according to claim 1 or 2, characterized in that: After starting the flight mode of the terminal device, the method further includes: Acquire third real-time location information of the terminal device, and determine whether the terminal device is within a second preset area according to the third real-time location information; When it is determined that the terminal device is within the second preset area, second motion data of the terminal device within a third preset time period is acquired, wherein the start time of the third preset time period is after the time when the terminal device is determined to be within the second preset area, and the duration of the third preset time period is less than the second preset duration; When it is determined that the second motion data matches the second preset motion data, the flight mode of the terminal device is turned off.
7. The method according to claim 6, characterized in that The second preset area is a landing airport area, the second preset duration is a landing duration of the aircraft, the second preset motion data is motion data of the terminal device during the landing of the aircraft, and the obtaining of the third real-time location information of the terminal device includes: Determine the real-time movement speed of the terminal device according to the linear acceleration data of the terminal device; The third real-time location information of the terminal device is determined according to the real-time movement speed, the duration of the flight mode of the terminal device being turned on, and the route information of the aircraft.
8. A terminal device, characterized in that: The terminal device comprises: A determination unit, configured to determine whether the first system time of the terminal device is within a first preset time period; a processing unit, configured to obtain first real-time location information of the terminal device when determining that the first system moment of the terminal device is located within the first preset time period, and determine whether the terminal device is within a first preset area according to the first real-time location information; The processing unit is further configured to, when determining that the terminal device is within the first preset area, obtain first motion data of the terminal device within a second preset time period, wherein a start time of the second preset time period is after an end time of the first preset time period, and a duration of the second preset time period is less than the first preset duration, and the motion data of the terminal device includes linear acceleration data and angular motion data; The processing unit is further configured to activate the flight mode of the terminal device when it is determined that the first motion data matches the first preset motion data.
9. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
Citation Information
Patent Citations
Automatic control method and automatic control system for flight mode
CN105376417A
Terminal equipment control method and terminal equipment control device
CN105472096A
Method and device for reducing power consumption, mobile terminal and storage medium
CN109788140A
Positioning method, positioning device and storage medium
CN112464112A
Method for positioning geographic position and electronic equipment
CN115022943A