A method for controlling a flight mode of a terminal device, a terminal device, an electronic device, and a storage medium

By acquiring the location and motion data of the terminal device within a preset time period, and matching the aircraft motion data with the base station number and sensor data, the flight mode of the terminal device is automatically controlled. This solves the problems of high power consumption and poor user experience caused by accidental activation in the existing technology, and achieves more efficient flight mode control.

CN116886816BActive Publication Date: 2025-12-26XI AN FIBOCOM WIRELESS SOFTWARE INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310923605.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-12-26
Estimated Expiration
2043-07-25

AI Technical Summary

Technical Problem

In existing technologies, mobile terminal devices suffer from problems such as accidental activation of flight mode, leading to high power consumption and poor user experience. In particular, it is easy to accidentally activate the flight mode based on ticket information and terminal location, and continuous GPS positioning is required.

Method used

By acquiring the location and motion data of the terminal device within a preset time period, and matching the aircraft takeoff/landing motion data with the base station number database and sensor data, the system automatically controls the terminal device to turn its flight mode on and off.

Benefits of technology

It reduces the power consumption of terminal devices, reasonably controls the activation and deactivation of flight mode, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886816B_ABST
    Figure CN116886816B_ABST
Patent Text Reader

Abstract

The application provides a method for controlling the flight mode of a terminal device, the terminal device and related devices. The method comprises: determining whether the first system time of the terminal device is within the first preset time period. If it is determined that the first system time of the terminal device is within the first preset time period, the first real-time position information of the terminal device is obtained, and it is determined whether the terminal device is within the first preset area according to the first real-time position information. If 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. If it is determined that the first motion data matches the preset motion data, the flight mode of the terminal device is started. By using the above method, the power consumption of the terminal device is reduced, and the flight mode of the terminal device is reasonably controlled.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent terminals, and in particular to a flight mode control method of a terminal device, a terminal device and related devices. BACKGROUND

[0002] Mobile terminal devices have become necessities of life for people, and mobile terminal devices with communication functions are also increasing. When a user needs to take a plane, the mobile terminal device in a normal mode, i.e., without opening a flight mode, has an impact on the flight safety of the plane. To ensure the flight safety of the plane, the user needs to manually open the flight mode to avoid the impact of the communication signal on the flight safety. However, the user manually opening the flight mode may have the problem of the user forgetting to open the flight mode, and is not intelligent and convenient.

[0003] In the prior art, whether to open the flight mode can be determined by ticket information and a terminal position, or a message for enabling the flight mode issued by a wireless access point (AP) of the plane, or starting the flight mode when detecting that the flight height of the plane is greater than a threshold, restarting the mobile phone and prohibiting loading of a modem module. However, the prior art has the defects that determining whether to open the flight mode only by the ticket information and the terminal position is likely to cause the terminal device to mistakenly open the flight mode, which interferes with the normal use of the user, and the terminal position needs to be continuously obtained by a global positioning system (GPS), which causes large power consumption of the terminal. In addition, the wireless AP of the plane may not be turned on or deployed, and the method of determining the flight height cannot timely open the flight mode, and the method of restarting the mobile phone and prohibiting loading of the modem module affects the normal use of the user, thereby causing poor user experience. Therefore, how to reasonably control the flight mode of the terminal device has become one of the problems to be solved. SUMMARY

[0004] The embodiments of the present application provide a flight mode control method of 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.

[0005] In a first aspect, an embodiment of the present application provides a flight mode control method of a terminal device. The method comprises: determining whether a first system time of the terminal device is located within a first preset time period. If it is determined that the first system time of the terminal device is located within the first preset time period, first real-time position information of the terminal device is acquired, and it is determined whether the terminal device is within a first preset area according to the first real-time position information. If 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 a starting time of the second preset time period is after an ending time of the first preset time period, and a time length of the second preset time period is less than a first preset time length, the motion data of the terminal device comprises linear acceleration data and angular motion data. If it is determined that the first motion data matches preset take-off motion data, a flight mode of the terminal device is started.

[0006] In the embodiment of the present application, the terminal device acquires position information of the terminal device within the first preset time period to determine whether the terminal device is within a take-off airport area. After it is determined that the terminal device is within the first preset area, motion data of the terminal device within a second preset time period is acquired, and it is determined whether to start the flight mode of the terminal device according to the motion data. By using the above method, the power consumption of the terminal device can be reduced, and the flight mode of the terminal device is reasonably controlled.

[0007] In combination with the first aspect, in a feasible implementation manner, the first real-time position information is a target base station number accessed by the terminal device, and the determination of whether the terminal device is within the first preset area according to the first real-time position information comprises: determining whether the target base station number is contained in a preset base station number database, wherein the preset base station number database at least comprises base station numbers corresponding to one or more base stations within the first preset area. If it is determined that the target base station number is contained in the preset base station number database, it is determined that the terminal device is within the first preset area. If it is determined that the target base station number is not contained in the preset base station number database, it is determined that the terminal device is not within the first preset area.

[0008] In combination with the first aspect, in a feasible implementation manner, if it is determined that the terminal device is not within the first preset area, the method further comprises: acquiring a second system time of the terminal device when a preset determination period is detected, and determining whether the second system time is located within the first preset time period. If it is determined that the second system time is located within the first preset time period, second real-time position 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 position information.

[0009] With reference to the first aspect, in a possible implementation manner, the first preset region is a take-off airport region, the first preset time length is a take-off time length of the airplane, the first preset motion data is motion data possessed by the terminal device in a take-off process of the airplane, and the first preset time period includes a take-off time of the airplane.

[0010] With reference to the first aspect, in a possible implementation manner, the method further includes: fitting a first linear acceleration curve and a first angular motion curve according to linear acceleration data and angular motion data included in the first motion data of the terminal device in the second preset time period. Determining a second linear acceleration curve and a second angular motion curve according to the first preset motion data. If it is determined that a similarity of the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and a similarity of 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. If it is determined that the similarity of the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity of the first angular motion curve and the second angular motion curve is less than the second preset similarity, it is determined that the first motion data does not match the first preset motion data.

[0011] With reference to the first aspect, in a possible implementation manner, the method further includes: if it is determined that the first motion data does not match the first preset motion data, obtaining third motion data of the terminal device in a fourth preset time period, wherein a start time of the fourth preset time period is after an end time of the second preset time period, and a time length of the fourth preset time period is less than the first preset time length. If it is determined that the third motion data matches the first preset motion data, starting the flight mode of the terminal device.

[0012] With reference to the first aspect, in a possible implementation manner, after the flight mode of the terminal device is started, the method further includes: obtaining third real-time location information of the terminal device, and determining whether the terminal device is in a second preset region according to the third real-time location information. If it is determined that the terminal device is in the second preset region, obtaining second motion data of the terminal device in a third preset time period, wherein a start time of the third preset time period is after a time when it is determined that the terminal device is in the second preset region, and a time length of the third preset time period is less than a second preset time length. If it is determined that the second motion data matches second preset motion data, closing the flight mode of the terminal device.

[0013] With reference to the first aspect, in a possible implementation, the second preset area is a landing airport area, the second preset time length is a landing time length of the airplane, and the second preset motion data is motion data possessed by the terminal device during landing of the airplane. The third real-time position information of the terminal device is obtained by determining a real-time motion speed of the terminal device according to linear acceleration data of the terminal device, and determining the third real-time position information of the terminal device according to the real-time motion speed, a starting time length of the flight mode of the terminal device, and route information of the airplane.

[0014] With reference to the second aspect, in a possible 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 in the first preset area. The processing unit is further configured to determine that the terminal device is in the first preset area if it is determined that the target base station number is included in the preset base station number database. The processing unit is further configured to determine that the terminal device is not in the first preset area if it is determined that the target base station number is not included in the preset base station number database.

[0015] With reference to the second aspect, in a possible implementation, the processing unit is further configured to, when detecting that a preset determination period arrives, obtain a second system time of the terminal device, and determine whether the second system time is located in the first preset time period. The processing unit is further configured to obtain second real-time position information of the terminal device if it is determined that the second system time is located in the first preset time period, and determine whether the terminal device is in the first preset area according to the second real-time position information.

[0016] With reference to the second aspect, in a possible implementation, the processing unit is further configured to, when detecting that a preset determination period arrives, obtain a second system time of the terminal device, and determine whether the second system time is located in the first preset time period. The processing unit is further configured to obtain second real-time position information of the terminal device if it is determined that the second system time is located in the first preset time period, and determine whether the terminal device is in the first preset area according to the second real-time position information.

[0017] With reference to the second aspect, in a possible implementation manner, the first preset area is an airport takeoff area, the first preset time length is a takeoff time length of the airplane, the first preset motion data is motion data possessed by the terminal device in a takeoff process of the airplane, and the first preset time period includes a takeoff time of the airplane.

[0018] With reference to the second aspect, in a possible implementation manner, the processing unit is further configured to fit a first linear acceleration curve and a first angular motion curve according to linear acceleration data and angular motion data included in the first motion data of the terminal device in the second preset time period. The processing unit is further configured to determine a second linear acceleration curve and a second angular motion curve according to the first preset motion data. The processing unit is further configured to determine that the first motion data matches the first preset motion data, if it is determined that a similarity of the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and a similarity of 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, if it is determined that the similarity of the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity of the first angular motion curve and the second angular motion curve is less than the second preset similarity.

[0019] With reference to the second aspect, in a possible implementation manner, the processing unit is further configured to acquire third real-time location information of the terminal device, and determine whether the terminal device is in a second preset area according to the third real-time location information. The processing unit is further configured to acquire second motion data of the terminal device in a third preset time period, if it is determined that the terminal device is in the second preset area, wherein a start time of the third preset time period is after a time when the determination that the terminal device is in the second preset area is made, and a time length of the third preset time period is less than a second preset time length. The processing unit is further configured to turn off the flight mode of the terminal device, if it is determined that the second motion data matches second preset motion data.

[0020] With reference to the second aspect, in a possible implementation manner, the processing unit is further configured to determine a real-time motion speed of the terminal device according to linear acceleration data of the terminal device. The processing unit is further configured to determine third real-time location information of the terminal device according to the real-time motion speed, a turn-on time length of the flight mode of the terminal device, and route information of the airplane.

[0021] With reference to the second aspect, in a possible implementation manner, the processing unit is further configured to acquire third motion data of the terminal device in a fourth preset time period if it is determined that the first motion data does not match the first preset motion data, wherein a start time point of the fourth preset time period is after an end time point of the second preset time period, and a time length of the fourth preset time period is less than the first preset time length. The processing unit is further configured to start the flight mode of the terminal device if it is determined that the third motion data matches the first preset motion data.

[0022] In a third aspect, a computer readable storage medium is provided, which is configured to store a computer program. When the computer program is run on a computer, the computer is caused to execute the flight mode control method of the terminal device provided in any possible implementation manner of the first aspect, and thus the beneficial effects of the flight mode control method of the terminal device provided in the first aspect can also be achieved.

[0023] In a fourth aspect, an electronic device is provided, which can include a processor and a memory. The processor and the memory are connected to each other. 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 of the terminal device provided in the first aspect, and thus the beneficial effects of the flight mode control method of the terminal device provided in the first aspect can also be achieved.

[0024] By implementing the embodiments of the present application, the terminal device acquires the position information of the terminal device in the first preset time period and determines whether it is in the takeoff airport area according to the ticket information. After it is determined that the terminal device is in the takeoff airport area, the motion data of the terminal device in the second preset time period can be acquired, and it is determined whether to start the flight mode of the terminal device according to the motion data. Through the above method, the power consumption of the terminal device is reduced, and the flight mode of the terminal device is reasonably controlled. BRIEF DESCRIPTION OF DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0026] Figure 1 is a flowchart of a flight mode control method of a terminal device provided by an embodiment of the present application;

[0027] Figure 2is a display schematic diagram of flight information provided by an embodiment of the present application;

[0028] Figure 3 is a display schematic diagram of a reminder message of a terminal device provided by an embodiment of the present application;

[0029] Figure 4 is another flow schematic diagram of a control method of a flight mode of a terminal device provided by an embodiment of the present application;

[0030] Figure 5 is a structural schematic diagram of a terminal device provided by an embodiment of the present application;

[0031] Figure 6 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to enable personnel in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application.

[0033] In the prior art, a terminal device can determine whether to start a flight mode by ticket information and a terminal location, or by a message of starting the flight mode issued by an access point (AP) of an airplane, or by starting the flight mode when detecting that the flight height of the airplane is greater than a threshold, restarting the terminal device and prohibiting loading of a modem module. However, the prior art has problems such as large power consumption of the terminal device and false start of the flight mode, thereby resulting in poor user experience. Therefore, the technical problem to be solved by the present application is how to reasonably control the flight mode of the terminal device.

[0034] In the embodiments of the present application, the terminal device can be any form of electronic device with communication capability, such as a smart phone, a portable notebook computer, a tablet computer, a wearable device, a head-mounted device, etc. The implementation form of the terminal device is not specifically limited in the present application.

[0035] Please refer to Figure 1 , Figure 1 is a flow schematic diagram of a control method of a flight mode of a terminal device provided by an embodiment of the present application. The method can be applied to the terminal device described above. As shown in Figure 1 , the method can specifically include the following steps:

[0036] S101, determining whether a first system time of the terminal device is located within a first preset time period.

[0037] In some possible implementation manners, the terminal device can determine whether the first system time of the terminal device is located in the first preset time period. The first system time of the terminal device can be obtained by the terminal device itself. Optionally, the first preset time period can be obtained by the target time and a preset time offset.

[0038] Optionally, when the target time is the takeoff time of the airplane, the first preset time period can be obtained by the takeoff time of the airplane and the preset time offset. Specifically, the start time of the first preset time period is the difference between the takeoff time and the preset time offset, and the end time of the first preset time period is the sum of the takeoff time and the preset time offset. For example, it is assumed that the takeoff time of the airplane is 9:00, and the preset time offset is 30 min, the start time of the first preset time period is 8:30, and the end time of the first preset time period is 9:30, and thus the first preset time period is 8:30-9:30.

[0039] Optionally, the takeoff time of the airplane can be obtained by obtaining the flight information of the user and extracting the takeoff time contained in the flight information after the user authorization. Specifically, there are three ways to obtain the flight information of the user. The first way is to extract the notification message of the ticket booking application to determine the flight information of the user. The second way is to extract the ticket message received by the terminal device to determine the flight information of the user. The third way is that the user can manually add the flight information.

[0040] Optionally, after the terminal device obtains the flight information of the user, the terminal device can extract the takeoff time of the airplane, the landing time of the airplane, the takeoff airport, and the landing airport information contained in the flight information according to the obtained flight information by using text extraction and other technologies.

[0041] For example, referring to Figure 2 , Figure 2 is a display schematic diagram of flight information provided by an embodiment of the present application. As shown in Figure 2 , the terminal device can extract the takeoff time of the airplane as 13:00, the landing time of the airplane as 15:25, the takeoff airport as A airport, and the landing airport as B airport from the flight information by using text extraction and other technologies.

[0042] S102, if it is determined that the first system time of the terminal device is located in the first preset time period, obtaining the first real-time location information of the terminal device, and determining whether the terminal device is in the first preset area according to the first real-time location information.

[0043] In some possible implementation manners, if the terminal device determines that the first system time of the terminal device is located in the first preset time period, the terminal device can obtain the first real-time position information of the terminal device, and can determine whether the terminal device is in the first preset area according to the first real-time position information of the terminal device. The first real-time position information is position information of the terminal device obtained when the terminal device determines that the current system time is located in the first preset time period.

[0044] In an optional implementation manner, the first real-time position information can be a target base station number accessed by the terminal device. After the terminal device determines that the first system time is located in the first preset time period, the terminal device can obtain the target base station number accessed by the terminal device, and further determine whether the target base station number accessed by the terminal device is included in preset base station number data. The preset base station number data can include at least one or more base station numbers corresponding to base stations in the first preset area.

[0045] Further, if the terminal device determines that the target base station number accessed by the terminal device is included in the preset base station number database, the terminal device can determine that the terminal device is in the first preset area. If the terminal device determines that the target base station number accessed by the terminal device is not included in the preset base station number database, the terminal device can determine that the terminal device is not in the first preset area.

[0046] In another optional implementation manner, after the terminal device determines that the first system time is located in the first preset time period, the terminal device can obtain the target base station number accessed by the terminal device, and determine the first real-time position information of the terminal device according to the target base station number. For example, the terminal device can search a website of a mobile base station number, such as Cellmapper, to query a geographic position of the mobile base station. The Cellmapper website provides a map, and the number of the mobile base station can be searched to query the geographic position.

[0047] Further, the terminal device can determine whether the terminal device is in the first preset area according to the determined first real-time position information of the terminal device.

[0048] In the implementation manner, the terminal device can determine the position of the terminal device by searching a base station position database, so that the satellite positioning is avoided, and the power consumption of the terminal device can be reduced.

[0049] In another optional implementation manner, after the terminal device determines that the first system time is located in the first preset time period, the terminal device can obtain the first real-time position information of the terminal device by using a built-in GPS (Global Positioning System) module of the terminal device, and further determine whether the terminal device is in the first preset area according to the first real-time position information.

[0050] Optionally, if the terminal device determines that it is not in the takeoff airport area, the terminal device can obtain a second system time of the terminal device when detecting that a preset judgment period arrives, and determine whether the second system time is located in the first preset time period. Further, if it is determined that the second system time is located in the first preset time period, the terminal device can obtain second real-time position information of the terminal device, and can determine whether the terminal device is in the first preset area according to the second real-time position information. It should be understood that the preset judgment period should be less than the time offset of determining the first preset time period.

[0051] It should be noted that the terminal device can obtain its system time in a preset time period according to a preset judgment period multiple times until it is determined that its system time is in the first preset time period, and then stop obtaining its system time. The preset time period should be greater than the time period corresponding to the first preset time period.

[0052] It should be noted that the method of determining whether the terminal device is in the first preset area according to the second real-time position information is similar to the method of determining whether the terminal device is in the first preset area according to the first real-time position information described above.

[0053] In the above implementation, the terminal device obtains the position information of the terminal device only when it is close to the takeoff time of the aircraft, which can effectively reduce the power consumption of the terminal device.

[0054] S103, if it is determined that the terminal device is in the first preset area, obtaining first motion data of the terminal device in a second preset time period.

[0055] In some possible implementation manners, if the terminal device determines that it is in the first preset area, the terminal device can obtain first motion data of the terminal device in a second preset time period. The start time of the second preset time period is after the end time of the first preset time period, and the time length of the second preset time period is less than the first preset time length. The motion data of the terminal device can include linear acceleration data and angular motion data.

[0056] Optionally, the motion data of the terminal device can be obtained by sensors such as accelerometers and gyroscopes. Specifically, the terminal device can obtain linear acceleration data of the terminal device through an accelerometer, and can obtain angular motion data of the terminal device through a gyroscope.

[0057] It should be understood that if the terminal device determines that it is in the first preset area, the terminal device can continuously obtain the first motion data of the terminal device in the second preset time period through sensors such as accelerometers and gyroscopes to determine the current motion state of the terminal device.

[0058] S104, if it is determined that the first motion data matches the first preset motion data, starting the flight mode of the terminal device.

[0059] In some possible embodiments, after the terminal device acquires the first motion data of the terminal device in the second preset time period, if it is determined that the first motion data matches the first preset motion data, the terminal device can start the flight mode of the terminal device.

[0060] In an optional embodiment, when the first preset region is a takeoff airport region, the first preset time length is a takeoff time length of an airplane, and the first preset motion data is motion data possessed by the terminal device in a takeoff process of the airplane, after the terminal device acquires the first motion data of the terminal device in the second preset time period, the terminal device can fit a first linear acceleration curve and a first angular motion curve according to linear acceleration data and angular motion data contained in the first motion data, respectively. The terminal device can determine a second linear acceleration curve and a second angular motion curve according to the first preset motion data. Further, if it is determined that a similarity of the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and a similarity of the first angular motion curve and the second angular motion curve is greater than or equal to a second preset similarity, the terminal device can determine that the first motion data matches the first preset motion data. If it is determined that the similarity of the first linear acceleration curve and the second linear acceleration curve is less than the first preset similarity, and / or the similarity of the first angular motion curve and the second angular motion curve is less than the second preset similarity, the terminal device can determine that the first motion data does not match the first preset motion data.

[0061] Optionally, after the terminal device determines that the first motion data matches the first preset motion data, the terminal device can call a related interface to start 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.

[0062] In an optional embodiment, if the terminal device determines that the first motion data does not match the first preset motion data, the terminal device can acquire third motion data of the terminal device in a fourth preset time period. Further, if the terminal device determines that the third motion data matches the first preset motion data, the terminal device can start the flight mode of the terminal device. The starting time of the fourth preset time period is after the ending time of the second preset time period, and the time length of the fourth preset time period is less than the first preset time length. 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.

[0063] Optionally, the fourth preset time period can have the same length as the second preset time period, or can have a different length from the second preset time period, and the embodiments of the present application do not make a specific limitation thereon, and the length can be set according to user demand.

[0064] It should be noted that if the terminal device determines that the motion data still does not match the first preset motion data, the terminal device can acquire the motion data multiple times at a preset period within a preset time period until the terminal device determines that the motion data matches the first preset motion data, or the terminal device determines that the number of times of acquiring the motion data is greater than a preset number, and then stops acquiring the motion data and determining whether the data matches. The preset time period should be greater than the length of the second preset time period and the length of the fourth preset time period, and less than the first preset time period.

[0065] Optionally, if the terminal device determines that the motion data still does not match the preset takeoff motion data after comparing the motion data acquired multiple times within the preset time period, or the terminal device determines that the number of times of acquiring the motion data is greater than a preset number, the terminal device can send a reminder message to remind the user to turn on the flight mode of the terminal device.

[0066] For example, referring to Figure 3 , Figure 3 is a display schematic diagram of a reminder message of a terminal device provided by an embodiment of the present application. As shown in Figure 3 , if the terminal device determines that the first motion data still does not match the preset takeoff motion data within the preset time period, the terminal device can send a reminder message "please turn on the flight mode in time" to remind the user to turn on the flight mode of the terminal device.

[0067] In the embodiments of the present application, the terminal device can acquire the position information of the terminal device within the first preset time period and determine whether the terminal device is in the takeoff airport area according to the ticket information. After determining that the terminal device is in the takeoff airport area, the terminal device can acquire the motion data of the terminal device within the second preset time period, and determine whether to turn on the flight mode of the terminal device according to the motion data. By using 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.

[0068] In some possible implementation manners, referring to Figure 4 , Figure 4 is another flow schematic diagram of a control method of a flight mode of a terminal device provided by an embodiment of the present application. It should be understood that step S105 should be executed after step S104. As shown in Figure 4 , the method can include the following steps:

[0069] S105, acquiring third real-time position information of the terminal device, and determining whether the terminal device is in a second preset area according to the third real-time position information.

[0070] In some possible implementation manners, after starting the flight mode of the terminal device, the terminal device can acquire third real-time location information of the terminal device, and determine whether the terminal device is in the second preset area according to the third real-time location information.

[0071] Optionally, when the second preset area is a landing airport area, the second preset time length is a landing time length of the airplane, and the second preset motion data is motion data possessed by the terminal device in the process of landing of the airplane, after starting the flight mode of the terminal device, the terminal device can determine a real-time motion speed of the terminal device according to linear acceleration data contained in the first motion data. Further, the terminal device can determine third real-time location information of the terminal device according to the real-time motion speed, the starting time length of the flight mode of the terminal device, and the flight route information of the airplane.

[0072] Optionally, the terminal device can determine a time when the flight mode of the terminal device is started. Further, the terminal device can determine the starting time length of the flight mode of the terminal device according to the time when the flight mode of the terminal device is started and a current system time.

[0073] Optionally, the flight route information of the airplane is pre-planned and set, and can be acquired by the terminal device.

[0074] S106, if it is determined that the terminal device is in the second preset area, second motion data of the terminal device in a third preset time period is acquired.

[0075] In some possible implementation manners, if it is determined that the terminal device is in the second preset area, the terminal device can acquire second motion data of the terminal device in a third preset time period. The starting time of the third preset time period is after the time when it is determined that the terminal device is in the second preset area, and the time length of the third preset time period is less than the second preset time length.

[0076] Optionally, if it is determined that the terminal device is not in the second preset area, the terminal device can determine second real-time location information of the terminal device again according to the real-time motion speed of the terminal device, the starting time length of the flight mode of the terminal device, and the flight route information of the airplane after a preset period, and further determine whether the terminal device is in the second preset area according to the second real-time location information. It should be understood that the preset period is less than the second preset time length.

[0077] It should be noted that the terminal device can determine whether the terminal device is in the second preset area for a preset time length and a preset period until it is determined that the terminal device is in the second preset area, and then the determination is stopped. The preset time length is less than the second preset time length.

[0078] S107, if it is determined that the second motion data matches the second preset data, then the terminal device closes the flight mode.

[0079] In some possible embodiments, after the terminal device acquires the second motion data of the terminal device in the third preset time period, if it is determined that the second motion data matches the second preset motion data, then the terminal device can close the flight mode of the terminal device.

[0080] In an optional embodiment, when the second preset region is a landing airport region, the second preset time length is a landing time length of the airplane, and the second preset motion data is motion data possessed by the terminal device during the landing of the airplane, the terminal device can fit a third linear acceleration curve and a third angular motion curve according to linear acceleration data and angular motion data contained in the second motion data of the terminal device in the third preset time period. The terminal device can determine a fourth linear acceleration curve and a fourth angular motion curve according to the second preset motion data. Further, if it is determined that a similarity of the third linear acceleration curve and the fourth linear acceleration curve is greater than or equal to a third preset similarity, and a similarity of the third angular motion curve and the fourth angular motion curve is greater than or equal to a fourth preset similarity, then the terminal device can determine that the second motion data matches the second preset motion data. If it is determined that the similarity of the third linear acceleration curve and the fourth linear acceleration curve is less than the third preset similarity, and / or the similarity of the third angular motion curve and the fourth angular motion curve is less than the fourth preset similarity, then the terminal device can determine that the second motion data does not match the second preset motion data.

[0081] Optionally, after the terminal device determines that the second motion data matches the second preset motion data, the terminal device can call a relevant interface to close the flight mode. If 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.

[0082] Optionally, if the terminal device determines that the motion data thereof does not match the second preset motion data, the terminal device can acquire the motion data thereof multiple times at a preset period within a preset time length, until the terminal device determines that the motion data thereof matches the second preset motion data, or the terminal device determines that the number of times of acquiring the motion data thereof is greater than a preset number of times, and then stops acquiring the motion data and determining whether the data matches.

[0083] Optionally, if the terminal device determines that the motion data thereof does not match the second preset motion data after comparing the motion data thereof acquired multiple times within a preset time length with the second preset motion data, or the terminal device determines that the number of times of acquiring the motion data thereof is greater than a preset number of times, then the terminal device can send a reminder through the terminal device to remind a user that the flight mode of the terminal device can be closed. The preset time period should be greater than a time length of the third preset time period and less than the second preset time length.

[0084] In the implementation, the terminal device can obtain its own related data, and the base station number database and the take-off / landing motion data can be preconfigured in the terminal device in advance. The terminal device can perform local processing based on the data, and does not need to upload to the cloud, thereby effectively protecting the data security of the user.

[0085] Please refer to Figure 5 , Figure 5 is a structural schematic diagram of a terminal device provided by an embodiment of the present application. As Figure 5 indicated, the terminal device can include a judgment unit 51 and a processing unit 52.

[0086] In a specific implementation, the judgment unit 51 is configured to judge whether a first system time of the terminal device is located within a first preset time period. The processing unit 52 is configured to, if it is determined that the first system time of the terminal device is located within the first preset time period, obtain first real-time position information of the terminal device, and determine whether the terminal device is within a first preset region according to the first real-time position information. The processing unit 52 is further configured to, if it is determined that the terminal device is within the first preset region, 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 time length of the second preset time period is less than a time length of the first preset time period. The motion data of the terminal device includes linear acceleration data and angular motion data. The processing unit 52 is further configured to, if it is determined that the first motion data matches first preset motion data, start a flight mode of the terminal device.

[0087] In an optional implementation, the processing unit 52 is further configured to determine whether a 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 within the first preset region. The processing unit 52 is further configured to, if it is determined that the target base station number is included in the preset base station number database, determine that the terminal device is within the first preset region. The processing unit 52 is further configured to, if it is determined that the target base station number is not included in the preset base station number database, determine that the terminal device is not within the first preset region.

[0088] In an optional implementation, the processing unit 52 is further configured to, when detecting that a preset judgment period arrives, obtain a second system time of the terminal device, and determine whether the second system time is located within the first preset time period. The processing unit 52 is further configured to, if it is determined that the second system time is located within the first preset time period, obtain second real-time position information of the terminal device, and determine whether the terminal device is within the first preset region according to the second real-time position information.

[0089] In an optional implementation, the processing unit 52 is further configured to fit a first linear acceleration curve and a first angular motion curve according to linear acceleration data and angular motion data contained in the first motion data of the terminal device in the second preset time period. The processing unit 52 is further configured to determine a second linear acceleration curve and a second angular motion curve according to 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 if a similarity between the first linear acceleration curve and the second linear acceleration curve is greater than or equal to a first preset similarity, and a 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 52 is further configured to determine that the first motion data does not match the first preset motion data if 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.

[0090] In an optional implementation, the processing unit 52 is further configured to obtain third motion data of the terminal device in a fourth preset time period if it is determined that the first motion data does not match the first preset motion data, wherein a starting time of the fourth preset time period is after an ending time of the second preset time period, and a time length of the fourth preset time period is less than the first preset time length. The processing unit 52 is further configured to start the flight mode of the terminal device if it is determined that the third motion data matches the first preset motion data.

[0091] In an optional implementation, 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 in a second preset area according to the third real-time location information. The processing unit 52 is further configured to obtain second motion data of the terminal device in a third preset time period if it is determined that the terminal device is in the second preset area, wherein a starting time of the third preset time period is after a time when it is determined that the terminal device is in the second preset area, and a time length of the third preset time period is less than a second preset time length. The processing unit 52 is further configured to close the flight mode of the terminal device if it is determined that the second motion data matches the second preset motion data.

[0092] In an optional implementation, the processing unit 52 is further configured to determine a real-time motion speed of the terminal device according to 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 according to the real-time motion speed, an opening time length of the flight mode of the terminal device, and route information of the airplane.

[0093] See Figure 6 , Figure 6This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be a terminal device as described in the above embodiments, and can be used to implement the steps of the flight mode control method for a terminal device executed by the terminal device as described in the above embodiments. The electronic device may include: a processor 61, a memory 62, and a bus system 63.

[0094] The memory 62 includes, but is not limited to, RAM, ROM, EPROM, or CD-ROM, and is used to store related instructions and data. The memory 62 stores executable modules or data structures, or subsets thereof, or extended sets thereof:

[0095] Operation instructions: This includes various operation instructions used to perform various operations.

[0096] Operating system: includes various system programs used to implement various basic business functions and handle hardware-based tasks.

[0097] Figure 6 Only one memory is shown in the image; of course, multiple memory can be configured as needed.

[0098] like Figure 6 As shown, the electronic device may further include an input / output device 64, which may be a communication module or a transceiver circuit. In this embodiment, 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 embodiment.

[0099] Processor 61 may be a controller, CPU, general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in connection with the embodiments of this application. Processor 61 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of DSP and microprocessor, etc.

[0100] In practical applications, the various components of the electronic device are coupled together through a bus system 63. This bus system 63 may include, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 6 All buses are labeled as Bus System 63. For ease of representation, in... Figure 6 The image shown is only schematic.

[0101] It should be noted that in actual applications, the processor in the embodiments of the present application can be an integrated circuit chip with a signal processing capability. In the implementation process, each step of the method embodiments described above can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The processor described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Each method, step and logic block diagram disclosed in the embodiments of the present application can be implemented or executed.

[0102] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example and not limitation, many forms of RAM can be used, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (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 not limited to these and any other suitable types of memory.

[0103] The embodiments of the present application also provide a computer readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method or steps performed by the terminal device in the above embodiments.

[0104] The 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.

[0105] It should be noted that, for the above-mentioned embodiments of the flight mode control method of the terminal device, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the present application.

[0106] The terms "first", "second", etc. in the specification and claims of the present application and the above-described drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps is not limited to the listed steps, but can optionally include steps not listed, or can optionally include other steps inherent to the process, method, product or device.

[0107] In this document, the term "embodiment" means that the specific features, structures, or characteristics described in connection with the embodiment can be included in at least one embodiment of the present application. The phrase appears in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily independent or alternative to other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0108] Although the present application is described herein in conjunction with various embodiments, other variations of the disclosed embodiments can be understood and implemented by those skilled in the art with reference to the attached drawings, disclosure, and appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude a plurality. Some measures described in mutually different dependent claims can be combined to produce a good result.

[0109] Those skilled in the art can understand that all or part of the steps in the various method embodiments of the control method of the flight mode of any one of the terminal devices described above can be instructed by programs to relevant hardware, and the programs can be stored in a computer readable memory, which can include a flash disk, a read-only memory (English: Read-Only Memory, for short: ROM), a random access memory (English: Random Access Memory, for short: RAM), a magnetic disk or an optical disk, etc.

[0110] The above describes the embodiments of the present application in detail, and the principles and implementation manners of the control method of the flight mode of a terminal device, the terminal device and related devices are described by applying specific examples in this paper. The above description of the 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, according to the idea of the control method of the flight mode of a terminal device, the terminal device and related devices, there will be changes in the specific implementation manner and application range; in view of the above, the content of the specification should not be understood as a limitation of the present application.

[0111] Those skilled in the art should realize that in one or more examples described above, the functions described in the present application can be realized by hardware, software, firmware or any combination thereof. When realized by software, these functions can be stored in a computer readable medium or transmitted as one or more instructions or codes on a computer readable medium. The computer readable medium includes computer storage medium and communication medium, wherein the communication medium includes any medium facilitating the transmission of computer programs from one place to another. The storage medium can be any available medium accessible by a general or special purpose computer.

[0112] The above specific implementation manner further describes the purpose, technical solution and beneficial effects of the present application, and it should be understood that the above description is only a specific implementation manner of the present application and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present application should be included in the protection scope of the present application.

Claims

1. A flight mode control method for a terminal device, characterized in that, The method includes: Determine whether the first system time of the terminal device is within the first preset time period; If it is determined that the first system time of the terminal device is within the first preset time period, then the first real-time location information of the terminal device is obtained, and the terminal device is determined to be within the first preset area based on the first real-time location information. If it is determined that the terminal device is within the first preset area, then the first motion data of the terminal device within a second preset time period is obtained, 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. The first motion data of the terminal device includes linear acceleration data and angular motion data. If it is determined that the first motion data matches the first preset motion data, then the flight mode of the terminal device is activated; Wherein, the first preset area is the takeoff airport area, the first preset duration is the takeoff duration of the aircraft, the first preset motion data is the motion data of the terminal device during the takeoff process of the aircraft, the first preset time period includes the takeoff time of the aircraft, the start time of the first preset time period is the difference between the takeoff time and the preset time offset, and the end time of the first preset time period is the sum of the takeoff time and the preset time offset.

2. The method according to claim 1, characterized in that, The first real-time location information is the target base station number accessed by the terminal device. Determining whether the terminal device is within a first preset area based on the first real-time location information includes: Determine whether the target base station number is contained in the preset base station number database, wherein the preset base station number database includes at least one or more base station numbers corresponding to base stations in the first preset area; If it is determined that the target base station number is contained in the preset base station number database, then it is determined that the terminal device is in the first preset area; If it is determined that the target base station number is not contained in the preset base station number database, then it is determined that the terminal device is not in the first preset area.

3. The method according to claim 1 or 2, characterized in that, If 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, the second system time of the terminal device is obtained, and it is determined whether the second system time is within the first preset time period; If it is determined that the second system time is within the first preset time period, then the second real-time location information of the terminal device is obtained, and the terminal device is determined to be within the first preset area based on the second real-time location information.

4. The method according to claim 3, characterized in that, The method further includes: The first linear acceleration curve and the first angular motion curve are respectively fitted based on the linear acceleration data and angular motion data contained in the first motion data of the terminal device during the second preset time period. The second linear acceleration curve and the second angular motion curve are determined based on the first preset motion data; If 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 it is determined that the first motion data matches the first preset motion data. If 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.

5. The method according to claim 1 or 2, characterized in that, After activating the flight mode of the terminal device, the method further includes: Obtain the third real-time location information of the terminal device, and determine whether the terminal device is in the second preset area based on the third real-time location information; If it is determined that the terminal device is in the second preset area, then the second motion data of the terminal device within a third preset time period is obtained, wherein the start time of the third preset time period is after the time when the terminal device is determined to be in the second preset area, and the duration of the third preset time period is less than the second preset duration, and the second motion data includes linear acceleration data and angular motion data; If it is determined that the second motion data matches the second preset motion data, then the flight mode of the terminal device is turned off; Wherein, the second preset area is the landing airport area, the second preset duration is the landing duration of the aircraft, and the second preset motion data is the motion data of the terminal device during the aircraft landing process.

6. The method according to claim 5, characterized in that, The step of obtaining the third real-time location information of the terminal device includes: The real-time motion speed of the terminal device is determined based on the linear acceleration data of the terminal device. The third real-time location information of the terminal device is determined based on the real-time movement speed, the duration of the flight mode of the terminal device, and the flight route information of the aircraft.

7. A terminal device, characterized in that, The terminal device includes: The judgment unit is used to determine whether the first system time of the terminal device is within a first preset time period; The processing unit is configured to, if it is determined that the first system time of the terminal device is within the first preset time period, acquire the first real-time location information of the terminal device, and determine whether the terminal device is within the first preset area based on the first real-time location information. The processing unit is further configured to, if it is determined that the terminal device is in the first preset area, acquire first motion data of the terminal device within a second preset time period, 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 first 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 if it is determined that the first motion data matches the first preset motion data. Wherein, the first preset area is the takeoff airport area, the first preset duration is the takeoff duration of the aircraft, the first preset motion data is the motion data of the terminal device during the takeoff process of the aircraft, the first preset time period includes the takeoff time of the aircraft, the start time of the first preset time period is the difference between the takeoff time and the preset time offset, and the end time of the first preset time period is the sum of the takeoff time and the preset time offset.

8. 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 6.

9. An electronic device, characterized in that, The method includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Flight mode control method and mobile terminal

    CN104853040A

  • Equipment controlling method and apparatus

    CN105182777A

  • Automatic control method and automatic control system for flight mode

    CN105376417A

  • Mobile terminal and method for controlling flight mode thereof

    CN105721691A

  • Terminal equipment control method and device, equipment and medium

    CN113923667A