Flight status detection method, device, equipment and storage medium

By performing spectrum analysis on the acceleration data of electronic equipment, determining the flight status of the aircraft and adjusting the search frequency, the problem of low flight status detection accuracy in the prior art is solved, and timely adjustment of the search frequency of electronic equipment and improving the signal quality is achieved.

CN119743818APending Publication Date: 2025-04-01SHANGHAI JINSHENG COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411951263.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

The existing precision of detecting the flight status of the aircraft is not high, resulting in insufficient timely adjustment of the network search frequency of electronic equipment.

Method used

By performing spectrum analysis on the acceleration data of electronic devices, the jump of the main frequency is obtained, the flight status of the aircraft (takeoff status or landing status) is determined based on the jump status, and the search frequency of the electronic device is adjusted according to the flight status.

Benefits of technology

The detection accuracy of flight status is improved, so that the network search frequency of electronic devices can be adjusted in time, and signal quality and equipment power consumption are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743818A_ABST
    Figure CN119743818A_ABST
Patent Text Reader

Abstract

The present application provides a flight status detection method, device, equipment and storage medium. The flight status detection method may include: performing spectrum analysis on acceleration data of an electronic device to obtain the jump of the main frequency; determining the flight status of the aircraft according to the jump, the flight status is a take-off state or a landing state; adjusting the network search frequency of the electronic device according to the flight status. By implementing this method, the network search frequency of the electronic device can be adjusted in a timely manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a flight status detection method, device, equipment and storage medium. Background Art

[0002] When a user is on an airplane, the network search frequency of the user's electronic device is usually related to the flight status of the airplane. However, the accuracy of the existing detection of the flight status of the airplane is not high, which often leads to the electronic device's network search frequency not being adjusted in a timely manner. Summary of the invention

[0003] The present application provides a flight status detection method, device, equipment and storage medium, which can timely adjust the network search frequency of electronic equipment.

[0004] A first aspect of an embodiment of the present application provides a method for detecting a flight status, comprising:

[0005] Perform spectrum analysis on the acceleration data of electronic equipment to obtain the jump of main frequency;

[0006] Determining a flight state of the aircraft according to the jump condition, wherein the flight state is a take-off state or a landing state;

[0007] According to the flight status, the network search frequency of the electronic device is adjusted.

[0008] A second aspect of an embodiment of the present application provides a flight status detection device, including:

[0009] An acquisition unit is used to perform spectrum analysis on the acceleration data of the electronic device to obtain the jump of the main frequency;

[0010] A determination unit, used to determine the flight state of the aircraft according to the jump condition, wherein the flight state is a take-off state or a landing state;

[0011] An adjustment unit is used to adjust the network search frequency of the electronic device according to the flight status.

[0012] A third aspect of the embodiments of the present application provides an electronic device, including:

[0013] A memory storing executable program code;

[0014] and a processor coupled to the memory;

[0015] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the first aspect of the embodiment of the present application.

[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method disclosed in the first aspect of the embodiment of the present application is implemented.

[0017] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect of the embodiments of the present application.

[0018] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect of the embodiment of the present application.

[0019] It can be seen from the above technical solutions that the embodiments of the present application have at least the following advantages:

[0020] Perform spectrum analysis on the acceleration data of the electronic device to obtain the jump situation of the main frequency; determine the flight state of the aircraft based on the jump situation, the flight state is take-off state or landing state; adjust the network search frequency of the electronic device based on the flight state.

[0021] By implementing this method, the acceleration data of the electronic device is subjected to spectrum analysis to obtain the jump of the main frequency, and then the flight state of the aircraft is determined to be a take-off state or a landing state based on the jump, and finally the network search frequency of the electronic device is adjusted based on the determined flight state. Since the aircraft is determined to be a take-off state or a landing state based on the jump of the main frequency, it is beneficial to improve the detection accuracy of the flight state, and thus the network search frequency of the electronic device can be adjusted in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of a scenario disclosed in an embodiment of the present application;

[0023] Figure 2 It is a flowchart of the flight status detection method disclosed in the embodiment of the present application;

[0024] Figure 3A The embodiment of the present application discloses a frequency spectrum corresponding to the acceleration modulus value of the electronic device during daily use;

[0025] Figure 3B The embodiment of the present application discloses a frequency spectrum corresponding to the acceleration modulus value of the electronic device after the aircraft engine is started;

[0026] Figure 4 is another flowchart of the flight status detection method disclosed in the embodiment of the present application;

[0027] Figure 5 is a schematic diagram of the heading angle disclosed in the embodiment of the present application;

[0028] Figure 6 It is another flowchart of the flight status detection method disclosed in the embodiment of the present application;

[0029] Figure 7 It is a structural diagram of an electronic device disclosed in an embodiment of the present application;

[0030] Figure 8 It is a structural diagram of a flight status detection device disclosed in an embodiment of the present application;

[0031] Fig. 9 It is another structural diagram of the electronic device disclosed in the embodiment of the present application. DETAILED DESCRIPTION

[0032] The present application provides a flight status detection method, device, equipment and storage medium, which can timely adjust the network search frequency of electronic equipment.

[0033] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.

[0034] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0035] "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or plural.

[0036] See also Figure 1, Figure 1 This is a schematic diagram of a scenario disclosed in the embodiment of this application. Figure 1 The schematic scene diagram shown includes an aircraft 10 , a user 20 , and an electronic device 30 .

[0037] It is found in practice that the network search frequency of the electronic device 30 of the user 20 is usually adjusted based on the flight status of the aircraft 10. In related technologies, detecting the flight status of the aircraft 10 usually means detecting whether the aircraft 10 is flying or not flying. The detection granularity is large, resulting in poor detection accuracy of the flight status. Therefore, the adjustment of the network search frequency of the existing electronic device 30 is often not timely enough.

[0038] To solve this problem, the embodiment of the present application discloses a flight status detection method, device, equipment and storage medium, which can timely adjust the network search frequency of the electronic device 30. The flight status detection method may include: performing spectrum analysis on the acceleration data of the electronic device 30 to obtain the jump of the main frequency; determining the flight status of the aircraft 10 according to the jump, the flight status is the take-off state or the landing state; adjusting the network search frequency of the electronic device 30 according to the flight status.

[0039] By implementing this method, the acceleration data of the electronic device 30 is subjected to spectrum analysis to obtain the jump of the main frequency, and then the flight state of the aircraft 10 is detected based on the jump, whether it is a take-off state or a landing state, and finally, based on the determined flight state, the network search frequency of the electronic device 30 is adjusted. Since the take-off state or the landing state is detected based on the jump of the main frequency, the detection granularity of the flight state of the aircraft 10 is refined, which is conducive to improving the detection accuracy of the flight state, and further, the adjustment of the network search frequency of the electronic device 30 can be made more timely.

[0040] The electronic device 30 in the embodiment of the present application may include a general handheld screen electronic device, such as a mobile phone, a smart phone, a portable terminal, a terminal, a personal digital assistant (PDA), a portable multimedia player (Personal Media Player, PMP) device, a laptop computer, a notebook (Note Pad), a wireless broadband (Wireless Broadband, Wibro) terminal, a tablet computer (Personal Computer, PC) and a smart PC, etc.

[0041] The electronic device 30 may also include a wearable device. A wearable device is a portable electronic device that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but can also realize powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: computing function, positioning function, and alarm function. At the same time, they can also connect to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the foot (such as shoes, socks or other products worn on the legs), glasses supported by the head (such as glasses, helmets, headbands, etc.), and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.

[0042] The flight status detection method disclosed in the embodiment of the present application is described in detail below in conjunction with specific implementation methods.

[0043] See also Figure 2 , Figure 2 FIG. 1 is a flowchart of the flight status detection method disclosed in the embodiment of the present application. Figure 2 The flight status detection method shown may include the following steps:

[0044] 201. The electronic device performs spectrum analysis on the acceleration data of the electronic device to obtain the jump status of the main frequency.

[0045] In an embodiment of the present application, the acceleration data of the electronic device may include an acceleration modulus value, which is used to indicate the magnitude of the acceleration of the electronic device, and the acceleration modulus value may be obtained by calculating the square root of the sum of squares of acceleration components. The acceleration components may be acquired by an accelerometer of the electronic device, and the acceleration components may include horizontal acceleration components, vertical acceleration components, and depth acceleration components.

[0046] Exemplarily, the calculation formula of the acceleration modulus at any moment is:

[0047] Among them, acc norm Indicates the acceleration modulus, acc x ,acc y ,acc z They represent the horizontal acceleration component, the vertical acceleration component and the depth acceleration component respectively.

[0048] Among them, the jump of the main frequency can be used to reflect the change of the main frequency.

[0049] It is understandable that the electronic device can obtain multiple groups of acceleration module values, and perform spectrum analysis on each group of acceleration module values ​​to obtain the frequency of the main frequency corresponding to each group of acceleration module values, and based on the frequency of the main frequency corresponding to each group of acceleration module values, obtain the jump situation of the main frequency.

[0050] Optionally, the electronic device may pre-create a buffer for storing the main frequency and its frequency. When the buffer reaches an upper limit, the electronic device obtains the jump status of the main frequency based on the frequency of the main frequency in the buffer.

[0051] In some embodiments, after obtaining the acceleration modulus value, the electronic device may first filter the acceleration modulus value, and perform spectrum analysis on the filtered acceleration modulus value to obtain the jump condition of the main frequency.

[0052] It is understandable that the electronic device filters each group of acceleration module values, performs spectrum analysis on each group of filtered acceleration module values, obtains the main frequency corresponding to each group of acceleration module values, and obtains the jump of the main frequency according to the frequency of each main frequency.

[0053] Optionally, the manner in which the electronic device filters the acceleration modulus value may include, but is not limited to, at least one of the following: smoothing filtering, bandpass filtering, arithmetic square filtering, and Kalman filtering.

[0054] Optionally, the electronic device may perform spectrum analysis on the filtered acceleration modulus value through fast Fourier transform to obtain the main frequency.

[0055] It should be noted that the electronic device first filters the acceleration modulus value and then performs spectrum analysis on the filtered acceleration modulus value, which is conducive to obtaining an accurate main frequency.

[0056] 202. The electronic equipment determines the flight state of the aircraft according to the jump situation, and the flight state is a take-off state or a landing state.

[0057] The take-off state may refer to a state in which the aircraft is moving from being stationary on the ground to flying in the air, and the landing state may refer to a state in which the aircraft is gradually descending from flying in the air to the ground.

[0058] In some embodiments, the electronic device determines the flight status of the aircraft according to the jump situation, which may include:

[0059] In a case where the jump condition indicates that the main frequency jumps from the first frequency interval to the second frequency interval, determining that the aircraft is in a take-off state, wherein the frequency value of the first frequency interval is greater than the frequency value of the second frequency interval;

[0060] When the jump condition indicates that the main frequency jumps from the third frequency interval to the fourth frequency interval, it is determined that the aircraft is in a landing state, wherein the frequency value of the third frequency interval is less than the frequency value of the fourth frequency interval.

[0061] In the embodiment of the present application, the third frequency interval may be the same as the second frequency interval, and the fourth frequency interval may be the same as the first frequency interval.

[0062] Among them, the first frequency range can be obtained by counting the frequency of the main frequency in the frequency spectrum corresponding to the acceleration modulus of the electronic device during daily use, and the second frequency range can be obtained by counting the frequency of the main frequency in the frequency spectrum corresponding to the acceleration modulus of the electronic device after the aircraft engine is started.

[0063] It should be noted that when users use electronic devices in daily life, such as swinging arms when walking and small pitching movements when reading, the frequency range is in a relatively high frequency range. The frequency peak of the main signal in the spectrum graph corresponding to the acceleration modulus value of the electronic device appears around 2.3Hz, as shown below Figure 3A When a user is on an airplane, the vibration and acceleration / deceleration motion caused by the start of the airplane engine is a relatively low-frequency motion. The frequency peak of the main signal in the spectrum graph corresponding to the acceleration modulus of the electronic device appears around 0.1 Hz, as shown in Figure 1. Figure 3B As shown. Among them, Figure 3A-3B The horizontal axis represents the frequency, and the vertical axis represents the intensity of the electric quantity or voltage.

[0064] Exemplarily, the first frequency interval may be [1.5 Hz, 5 Hz], and the second frequency interval may be [0, 0.5 Hz].

[0065] 203. Electronic devices adjust their network search frequency according to flight status.

[0066] The network search frequency of the electronic device may refer to the frequency at which the electronic device searches for network signals. The higher the network search frequency, the greater the power consumption of the electronic device.

[0067] In some embodiments, the electronic device adjusts the network search frequency of the electronic device according to the flight state, which may include: when the flight state is a take-off state, the electronic device reduces the network search frequency of the electronic device.

[0068] Optionally, the electronic device reducing the network search frequency of the electronic device may include: the electronic device reducing the network search frequency of the electronic device to a first frequency. The first frequency may be a preset lower frequency, the first frequency may be 0 or a frequency close to 0, etc., which is not limited in the embodiment of the present application.

[0069] It is understandable that when the aircraft is in the take-off state, the distance between the electronic equipment and the ground base station begins to become farther, and the signal quality decreases. At this time, the electronic equipment reduces the network search frequency to reduce the electronic equipment doing useless work, which is beneficial to reducing the power consumption of the electronic equipment.

[0070] In some embodiments, the electronic device adjusts the network search frequency of the electronic device according to the flight state, which may include: when the flight state is a landing state, the electronic device increases the network search frequency of the electronic device.

[0071] Optionally, the electronic device increasing the network search frequency of the electronic device may include: the electronic device increasing the network search frequency of the electronic device to a second frequency. The second frequency may be a preset higher frequency, and the electronic device can quickly connect to the network by searching the network at the second frequency.

[0072] It is understandable that when the plane is in the landing state, the distance between the electronic equipment and the ground base station begins to get closer, and the signal quality improves. At this time, the electronic equipment increases the network search frequency, which is conducive to the electronic equipment to quickly access the network.

[0073] In the embodiment of the present application, when the flight state is the take-off state, the electronic device can also continue to detect the landing state.

[0074] The electronic device may continue to detect the landing status in such a way that, after a preset time period, the electronic device continues to perform spectrum analysis on the acceleration data of the electronic device to obtain the jump situation of the main frequency, so as to determine the flight status of the aircraft according to the jump situation.

[0075] The preset duration may be the shortest flight duration obtained by statistics. For example, the preset duration may be 1000 seconds.

[0076] It is understandable that when the flight state is the take-off state, the electronic device may not perform take-off state (landing state) detection within a preset time period, until after the preset time period, the electronic device continues to perform landing state detection, which is beneficial to reducing the amount of calculation of the electronic device.

[0077] By implementing Figure 2 The method shown performs spectrum analysis on the acceleration data of the electronic device to obtain the jump of the main frequency, and then detects whether the flight state of the aircraft is take-off or landing based on the jump, and finally adjusts the network search frequency of the electronic device based on the determined flight state. Since the take-off state or landing state is detected based on the jump of the main frequency, the detection granularity of the flight state is refined, which is conducive to improving the detection accuracy of the flight state, and thus the adjustment of the network search frequency of the electronic device can be more timely.

[0078] See also Figure 4 , Figure 4 FIG. 1 is another flowchart of the flight status detection method disclosed in the embodiment of the present application. Figure 4 The flight status detection method shown may include the following steps:

[0079] 401. The electronic device performs spectrum analysis on acceleration data of the electronic device to obtain a jump condition of a main frequency.

[0080] 402. The electronic equipment determines the flight state of the aircraft according to the jump situation, and the flight state is a take-off state or a landing state.

[0081] For a detailed description of step 401 - step 402 , please refer to the above description of step 201 - step 202 , which will not be repeated here.

[0082] 403. The electronic device determines the confidence level corresponding to the flight state by using the frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump.

[0083] Among them, the confidence level corresponding to the flight state can be used to indicate the reliability of the flight state. The greater the confidence level, the more reliable and accurate the flight state determined by the electronic device. The frequency difference can be used to indicate the jump amplitude of the main frequency. When the flight state of the aircraft is the take-off state, the frequency difference can be obtained by subtracting the frequency of the main frequency after the jump from the frequency of the main frequency before the jump. When the flight state of the aircraft is the landing state, the frequency difference can be obtained by subtracting the frequency of the main frequency before the jump from the frequency of the main frequency after the jump.

[0084] The electronic device determines the confidence corresponding to the flight state by using the frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump, which may include: the electronic device calculates the confidence corresponding to the flight state by using the frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump and the first calculation formula.

[0085] It should be noted that the first calculation formula is a formula for the frequency difference. Exemplarily, the first calculation formula may be: wherein, prob represents the confidence level corresponding to the flight status, and deltaFreq is the frequency difference.

[0086] For example, if the main frequency jumps from 1.5 Hz to 0.5 Hz, the flight state is the take-off state. If the main frequency jumps from 0.5Hz to 4Hz, the flight state is landing state,

[0087] 404. The electronic device determines whether the confidence level corresponding to the flight status is greater than or equal to a confidence level threshold.

[0088] If yes, execute step 405; if no, execute step 406-step 407.

[0089] The confidence threshold may be obtained through a large number of experiments. For example, the confidence threshold may be 60%, 65%, etc.

[0090] 405. The electronic device adjusts the network search frequency according to the flight status.

[0091] It should be noted that when the confidence level is greater than or equal to the confidence level threshold, it indicates that the reliability of the above-mentioned flight status determined by the electronic device is relatively high, and it is believed that a take-off event or a landing event has occurred. The electronic device then directly adjusts the network search frequency of the electronic device according to the flight status.

[0092] It is understandable that the electronic device can not only determine the flight status based on the jump of the main frequency, but also determine the confidence level corresponding to the flight status, and then judge whether a take-off or landing event occurs based on the confidence level, which is conducive to further improving the detection accuracy of the flight status.

[0093] 406. The electronic device obtains a heading angle change parameter.

[0094] The heading angle variation parameter in step 406 is the heading angle variation parameter actually calculated at present. When the confidence level is less than the confidence level threshold, it indicates that the reliability of the flight state determined by the electronic device is low, and it is impossible to determine whether a take-off event or a landing event occurs. The electronic device further makes a judgment based on the heading angle variation parameter.

[0095] It should be noted that when the aircraft takes off and lands, there will be corresponding changes in the heading angle. For example, when taking off, the aircraft will perform a step-by-step climb, and will make a spiral-like upward movement, at which time the heading angle will change greatly. When the aircraft lands, the aircraft will follow the principle of "five-side takeoff and landing" to move, and at this time the heading angle will also change greatly. Based on this, the heading angle change parameter can be used to further confirm the occurrence of a takeoff event or a landing event.

[0096] The heading angle refers to the angle between the north end of the meridian at the aircraft's location and the projection of the aircraft's longitudinal axis on the horizontal plane in a clockwise direction. For an illustration of the heading angle, see Figure 5 The heading angle change parameter can be used to indicate the discrete degree of the heading angle change.

[0097] Optionally, the heading angle change parameter may include but is not limited to the variance of the heading angle change, or the standard deviation of the heading angle change.

[0098] The electronic device obtains the heading angle change parameter, which may include:

[0099] The electronic device obtains multiple heading angles within a target time period;

[0100] The electronic device calculates the heading angle difference between each pair of consecutive heading angles;

[0101] The electronic device sums up all heading angle differences to obtain a total difference;

[0102] The electronic device divides the sum of the differences by the number of heading angle differences to obtain the average change;

[0103] The electronic device obtains a first calculated value corresponding to each heading angle difference by subtracting the average change amount from each heading angle difference;

[0104] The first calculated value corresponding to each heading angle difference of the electronic device is squared and then summed to obtain a second calculated value;

[0105] The electronic device divides the second calculated value by the number of heading angle difference values ​​to obtain the variance of the heading angle change.

[0106] Furthermore, the electronic device may calculate the square root of the variance of the heading angle change to obtain the standard deviation of the heading angle change.

[0107] Optionally, the heading angle at any time within the target time period can be calculated using the dual-vector attitude determination principle; wherein the dual vectors can include the earth's gravity acceleration vector measured by an accelerometer and the geomagnetic vector measured by a magnetometer, and the main principle is:

[0108] For the vector V in the electronic device coordinate system b , the reference vector V in the reference coordinate system r , the two can be transformed through the rotation matrix, that is:

[0109]

[0110] The earth's gravity acceleration vector measured by the accelerometer and the geomagnetic vector measured by the magnetometer can be expressed as and The reference vectors corresponding to these two measured quantities can be obtained through model calculation and can be considered as known quantities, which are and pass and A new vector can be constructed: Through the correspondence between these three pairs of vectors: The following rotation matrix can be obtained:

[0111]

[0112] The rotation matrix is ​​then converted into an attitude angle, which includes a heading angle.

[0113] In addition, since the value range of the heading angle is [0, 360), directly calculating the difference of the heading angle will cause a jump problem due to 0 / 360 degree crossing. Therefore, the value range of the heading angle difference can be limited to [0, 90].

[0114] 407. When the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device adjusts the network search frequency of the electronic device according to the flight status.

[0115] It should be noted that the electronic device can obtain the parameter variation range according to the heading angle variation parameter when the aircraft takes off and / or lands multiple times, and the first parameter threshold can be the lower limit value in the parameter variation range.

[0116] Among them, when the heading angle change parameter is the variance of the heading angle change, the first parameter threshold may be a first variance threshold; when the heading angle change parameter is the standard deviation of the heading angle change, the first parameter threshold may be a first standard deviation threshold.

[0117] It can be understood that before step 407, the electronic device can also determine whether the heading angle change parameter is greater than or equal to the first parameter threshold. If the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device believes that the reliability of the above-mentioned flight state determined is high, and confirms that a take-off or landing event has occurred, then the network search frequency of the electronic device is adjusted; if the heading angle change parameter is less than the first parameter threshold, the electronic device believes that the reliability of the above-mentioned flight state determined is low, and confirms that no take-off or landing event has occurred, then the network search frequency of the electronic device is not adjusted.

[0118] In some embodiments, when the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device adjusts the network search frequency of the electronic device according to the flight state, which may include:

[0119] When the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device can directly adjust the network search frequency of the electronic device according to the flight state;

[0120] or,

[0121] When the heading angle change parameter is greater than or equal to a first parameter threshold, the electronic device increases the confidence level, wherein the increased confidence level is greater than or equal to the confidence threshold; and the network search frequency of the electronic device is adjusted according to the flight status.

[0122] It is understandable that when the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device directly adjusts the network search frequency of the electronic device according to the flight status, which is conducive to improving the flexibility of the algorithm. When the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device can increase the confidence level to greater than the confidence level threshold to trigger the execution of adjusting the network search frequency of the electronic device according to the flight status, which is conducive to reducing the complexity of the algorithm calculation.

[0123] Optionally, the electronic device raising the confidence level may include: the electronic device raising the confidence level to a target confidence level.

[0124] For example, when the confidence threshold is 65%, the target confidence may be 65%, 70%, etc., which is not limited in the embodiments of the present application.

[0125] It can be understood that when the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device can directly increase the confidence to a target confidence that is greater than the confidence threshold. At this time, the new confidence (target confidence) is greater than the confidence threshold, and the electronic device adjusts the network search frequency of the electronic device according to the flight status.

[0126] Optionally, the electronic device raising the confidence level may include: the electronic device calculating the confidence increase amount using the heading angle change parameter, the first parameter threshold, and the second parameter threshold; and summing the above confidence level and the confidence increase amount to obtain the raised confidence level.

[0127] The second parameter threshold may be an upper limit value in the above parameter variation range, and the second parameter threshold is greater than or equal to the heading angle variation parameter. When the heading angle variation parameter is the variance of the heading angle variation, the second parameter threshold may be a second variance threshold, and when the heading angle variation parameter is the standard deviation of the heading angle variation, the second parameter threshold may be a second standard deviation threshold.

[0128] Optionally, the electronic device calculates the confidence increase using the heading angle change parameter, the first parameter threshold, and the second parameter threshold, which may include:

[0129] The electronic device subtracts the first parameter threshold from the heading angle change parameter to obtain a first difference;

[0130] The electronic device subtracts the first parameter threshold from the second parameter threshold to obtain a second difference;

[0131] Dividing the first difference by the second difference to obtain a target ratio;

[0132] The target ratio is multiplied by the specified factor to obtain the confidence increase.

[0133] When the heading angle change parameter is the standard deviation of the heading angle change, the coefficient is specified to be 0.35.

[0134] Exemplarily, the calculation formula for the confidence increase may be: Among them, std_in represents the standard deviation of the current actual heading angle change, std_min represents the first standard deviation threshold, and std_max represents the second standard deviation threshold.

[0135] Furthermore, the calculation formula for the increased confidence level is:

[0136] It can be understood that when the heading angle change parameter is greater than or equal to the first parameter threshold, the electronic device can calculate the confidence increase based on the heading angle change parameter, the first parameter threshold and the second parameter threshold, which is conducive to improving the calculation accuracy of the confidence.

[0137] In some embodiments, the electronic device adjusts the network search frequency of the electronic device according to the flight status, which may include: the electronic device adjusts the network search frequency according to the flight status and the confidence level corresponding to the flight status.

[0138] It is understandable that the flight state can be used to determine the adjustment direction (reduction or increase) of the network search frequency. For example, when the flight state is the take-off state, the adjustment direction of the network search frequency is reduction; for another example, when the flight state is the landing state, the adjustment direction of the network search frequency is increase. The confidence level can be used to determine the adjustment range of the network search frequency. The higher the confidence level, the larger the corresponding adjustment range.

[0139] Based on this, the electronic device may adjust the network search frequency according to the flight status and the corresponding confidence level, including:

[0140] When the flight state is the take-off state, the electronic device determines the frequency drop amplitude according to the confidence level corresponding to the flight state; the electronic device obtains the current network search frequency of the terminal device by subtracting the frequency drop amplitude from the network search frequency of the electronic device at the previous moment;

[0141] When the flight state is a descending state, the frequency increase amplitude is determined according to the confidence level corresponding to the flight state; the electronic device uses the network search frequency of the electronic device at the previous moment plus the frequency increase amplitude to obtain the current network search frequency of the terminal device.

[0142] It should be noted that the electronic device adjusts the network search frequency based on the flight status and the corresponding confidence level, which can make the adjustment of the network search frequency more flexible.

[0143] In some embodiments, when the flight state is the take-off state and the confidence corresponding to the take-off state is greater than the confidence threshold, the electronic device continues to perform spectral analysis on the acceleration data of the electronic device after a preset time to obtain the jump situation of the main frequency to determine the flight state of the aircraft based on the jump situation.

[0144] The preset duration may be the shortest flight duration obtained by statistics.

[0145] It is understandable that when the flight state is the take-off state and the reliability of the take-off state is relatively high, the electronic device may not perform take-off state (landing state) detection within a preset time period, and continue to perform take-off state detection after the preset time period, which is beneficial to reducing the amount of calculation of the electronic device.

[0146] Based on the above embodiments, the electronic device uses two low-power sensors, an accelerometer and a magnetometer, when detecting a takeoff event or a landing event. Both sensors do not need to receive external signals and do not radiate signals to the outside, which is beneficial to reducing the power consumption of the electronic device.

[0147] Optionally, the process of electronic equipment detecting takeoff events and landing events can be found in Figure 6 ,like Figure 6 The method shown may include the following steps:

[0148] 601. The electronic device performs smoothing filtering on the acceleration modulus value.

[0149] 602. The electronic device analyzes the filtered acceleration modulus value spectrum to obtain a main frequency, and records the main frequency and its corresponding frequency in a buffer.

[0150] 603. The electronic device determines whether the buffer has reached an upper limit.

[0151] If yes, continue to execute step 604; if no, return to execute step 601.

[0152] 604. The electronic device obtains the jump status of the main frequency in the buffer.

[0153] 605. When the jump condition indicates that the main frequency jumps from the first frequency interval to the second frequency interval, the electronic device determines that the aircraft is in a take-off state.

[0154] 606. The electronic device determines the confidence level corresponding to the take-off state by using the frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump.

[0155] 607. The electronic device determines whether the confidence level is greater than or equal to a confidence level threshold.

[0156] If yes, execute step 609 - step 610 ; if no, execute step 608 .

[0157] 608. The electronic device determines whether the heading angle change parameter is greater than or equal to a first parameter threshold.

[0158] If yes, continue to execute step 609 - step 610 ; if no, continue to execute step 601 .

[0159] 609. The electronic equipment determined that a takeoff event had occurred.

[0160] 610. Setting a timer and preset duration for an electronic device.

[0161] It should be noted that after step 610, the electronic device continues to execute step 611 to detect the landing event.

[0162] 611. The electronic device determines whether it is within a preset time period.

[0163] If not, continue to execute step 601 - step 602 ; if so, continue to execute step 611 .

[0164] 612. When the jump condition indicates that the main frequency jumps from the third frequency interval to the fourth frequency interval, the electronic device determines that the aircraft is in a landing state.

[0165] 613. The electronic device determines the confidence level corresponding to the landing state by using the frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump.

[0166] 614. The electronic device determines whether the confidence level is greater than or equal to a confidence level threshold.

[0167] If yes, execute step 616 , if no, continue to execute step 615 .

[0168] 615. The electronic device determines whether the heading angle change parameter is greater than or equal to a first parameter threshold.

[0169] If yes, continue to execute step 613, if no, continue to execute step 601.

[0170] 616. Electronic equipment determined that a landing event had occurred.

[0171] By implementing Figure 4In the method shown, the electronic device first performs spectrum analysis on the acceleration data of the electronic device to obtain the jump of the main frequency, and determines the flight state of the aircraft and its corresponding confidence based on the jump, and when the confidence is high, adjusts the network search frequency of the electronic device based on the flight state, and when the confidence is low, further judges the credibility of the flight state based on the heading angle change, which is conducive to improving the detection accuracy of the flight state. Furthermore, since the electronic device detects the take-off state or the landing state based on the jump of the main frequency, the detection granularity of the flight state is refined, which can make the adjustment of the network search frequency of the electronic device more timely.

[0172] See also Figure 7 , Figure 7 is a structural diagram of an electronic device disclosed in an embodiment of the present application, such as Figure 7 The electronic device shown includes an aircraft take-off and landing detection algorithm module 701. The electronic device can implement Figure 6 Steps shown.

[0173] It should be noted that Figure 7 The electronic device shown may also include other units, modules or devices, which are not limited in the embodiments of the present application.

[0174] For example, Figure 7 The electronic device shown may also include a low-power co-processing module, and the aircraft take-off and landing detection algorithm module 701 may be implemented in the low-power co-processing module to further save the power consumption of the electronic device.

[0175] See also Figure 8 , Figure 8 FIG. 1 is a structural diagram of a flight status detection device disclosed in an embodiment of the present application. Figure 8 The flight status detection device shown may include an acquisition unit 801, a determination unit 802 and an adjustment unit 803; wherein:

[0176] The acquisition unit 801 is used to perform spectrum analysis on the acceleration data of the electronic device to obtain the jump of the main frequency;

[0177] A determination unit 802 is used to determine the flight state of the aircraft according to the jump situation, where the flight state is a take-off state or a landing state;

[0178] The adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight status.

[0179] In some embodiments, the manner in which the determination unit 802 is used to determine the flight state of the aircraft according to the jump condition may specifically include: the determination unit 802 is used to determine that the aircraft is in a take-off state when the jump condition indicates that the main frequency jumps from a first frequency interval to a second frequency interval, wherein the frequency value of the first frequency interval is greater than the frequency value of the second frequency interval;

[0180] Furthermore, the manner in which the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight state may specifically include: the adjustment unit 803 is used to reduce the network search frequency of the electronic device when the flight state is the take-off state.

[0181] In some embodiments, the manner in which the determination unit 802 determines the flight state of the aircraft according to the jump condition may specifically include: the determination unit 802 is configured to determine that the aircraft is in a landing state when the jump condition indicates that the main frequency jumps from the third frequency interval to the fourth frequency interval, wherein the frequency value of the third frequency interval is less than the frequency value of the fourth frequency interval;

[0182] Furthermore, the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight state, which may specifically include: the adjustment unit 803 is used to increase the network search frequency of the electronic device when the flight state is the landing state.

[0183] In some embodiments, the determination unit 802 is further configured to determine the confidence level corresponding to the flight state by using the frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump after determining the flight state of the aircraft according to the jump situation;

[0184] Furthermore, the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight status, which may specifically include: the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight status when the confidence is greater than or equal to the confidence threshold.

[0185] In some embodiments, the adjustment unit 803 is also used to obtain a heading angle change parameter when the confidence level is less than the confidence level threshold; and to adjust the network search frequency of the electronic device according to the flight status when the heading angle change parameter is greater than or equal to a first parameter threshold.

[0186] In some embodiments, the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight status when the heading angle change parameter is greater than or equal to the first parameter threshold. The method may specifically include: the adjustment unit 803 is used to increase the confidence level when the heading angle change parameter is greater than or equal to the first parameter threshold, wherein the increased confidence level is greater than or equal to the confidence threshold; and, adjust the network search frequency of the electronic device according to the flight status.

[0187] In some embodiments, when the heading angle change parameter is greater than or equal to a first parameter threshold, the adjustment unit 803 is used to increase the confidence level in a manner that specifically may include: the adjustment unit 803 is used to calculate an increase in confidence level using the heading angle change parameter, the first parameter threshold, and a second parameter threshold, wherein the second parameter threshold is greater than or equal to the heading angle change parameter; and, summing the confidence level and the increase in confidence level to obtain an increased confidence level.

[0188] In some embodiments, the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight status, which may specifically include: the adjustment unit 803 is used to adjust the network search frequency of the electronic device according to the flight status and the confidence level corresponding to the flight status.

[0189] In some embodiments, the flight state is the take-off state, and the acquisition unit 801 is further used to continue to perform spectrum analysis on the acceleration data of the electronic device after a preset time period to obtain the jump situation of the main frequency, so as to determine the flight state of the aircraft according to the jump situation.

[0190] In some embodiments, the acquisition unit 801 is used to perform spectrum analysis on the acceleration data of the electronic device, and the manner of obtaining the jump of the main frequency may specifically include:

[0191] The acquisition unit 801 is used to filter the acceleration modulus value of the electronic device; and perform spectrum analysis on the filtered acceleration modulus value to obtain the jump status of the main frequency.

[0192] See also Fig. 9 , Fig. 9 FIG. 1 is another structural diagram of the electronic device disclosed in the embodiment of the present application. Fig. 9 The electronic device shown may include components such as a processor 901 , a memory 902 , a display unit 903 , an input unit 904 , a sensor 905 , and an audio circuit 906 .

[0193] The processor 901 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 902, and calling data stored in the memory 902, so as to monitor the electronic device as a whole. Optionally, the processor 901 may include one or more processing units; optionally, the processor 901 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0194] The memory 902 can be used to store software programs and modules. The processor 901 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating devices, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, phone book, etc.), etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0195] The display unit 903 can be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 903 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 901 to determine the type of touch event. Subsequently, the processor 901 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not in contact with each other. Fig. 9 The touch panel and the display panel can be used as two independent components to realize the input and output functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.

[0196] The input unit 904 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 904 may include a touch panel and other input devices. A touch panel, also referred to as a touch screen, can collect user touch operations on or near it (such as operations performed by a user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a pre-set program. In addition, a variety of types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel. In addition to the touch panel, the input unit 904 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control buttons, switch buttons, etc.), trackballs, joysticks, etc.

[0197] The electronic device may also include at least one sensor 905, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the electronic device, and the gyroscope sensor can be used to determine the motion posture of the electronic device. It can be used for anti-shake shooting, and can also be used for navigation and somatosensory game scenes. As a type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; As for other sensors that can be configured in the electronic device, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0198] The audio circuit 906 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 906 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 906 and converted into audio data, and then the audio data is output to the processor 901 for processing, and then sent to another device through the video circuit, or the audio data is output to the memory 902 for further processing.

[0199] Although not shown, the electronic device may further include a power supply and a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.

[0200] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0201] In the embodiment of the present application, the processor 901 also has the following functions:

[0202] Perform spectrum analysis on the acceleration data of electronic equipment to obtain the jump of main frequency;

[0203] Determining a flight state of the aircraft according to the jump condition, wherein the flight state is a take-off state or a landing state;

[0204] According to the flight status, the network search frequency of the electronic device is adjusted.

[0205] In the embodiment of the present application, the processor 901 also has the following functions:

[0206] In a case where the jump condition indicates that the main frequency jumps from the first frequency interval to the second frequency interval, determining that the aircraft is in a take-off state, wherein the frequency value of the first frequency interval is greater than the frequency value of the second frequency interval;

[0207] When the flight state is the take-off state, the network search frequency of the electronic device is reduced.

[0208] In the embodiment of the present application, the processor 901 also has the following functions:

[0209] In a case where the jump condition indicates that the main frequency jumps from the third frequency interval to the fourth frequency interval, determining that the aircraft is in a landing state, wherein the frequency value of the third frequency interval is less than the frequency value of the fourth frequency interval;

[0210] When the flight state is the landing state, the network search frequency of the electronic device is increased.

[0211] In the embodiment of the present application, the processor 901 also has the following functions:

[0212] Determining the confidence level corresponding to the flight state by using a frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump;

[0213] When the confidence level is greater than or equal to a confidence level threshold, the network search frequency of the electronic device is adjusted according to the flight status.

[0214] In the embodiment of the present application, the processor 901 also has the following functions:

[0215] When the confidence level is less than the confidence level threshold, obtaining a heading angle change parameter;

[0216] When the heading angle change parameter is greater than or equal to a first parameter threshold, the network search frequency of the electronic device is adjusted according to the flight status.

[0217] In the embodiment of the present application, the processor 901 also has the following functions:

[0218] When the heading angle variation parameter is greater than or equal to a first parameter threshold, increasing the confidence level, wherein the increased confidence level is greater than or equal to the confidence level threshold;

[0219] The network search frequency of the electronic device is adjusted according to the flight status.

[0220] In the embodiment of the present application, the processor 901 also has the following functions:

[0221] Calculating a confidence increase using the heading angle change parameter, the first parameter threshold, and a second parameter threshold, wherein the second parameter threshold is greater than or equal to the heading angle change parameter;

[0222] The confidence level and the confidence level increase are summed to obtain an increased confidence level.

[0223] In the embodiment of the present application, the processor 901 also has the following functions:

[0224] The network search frequency of the electronic device is adjusted according to the flight status and the confidence level corresponding to the flight status.

[0225] In the embodiment of the present application, the flight state is the take-off state, and the processor 901 also has the following functions:

[0226] After the preset time, the acceleration data of the electronic device is continuously subjected to spectrum analysis to obtain the jump condition of the main frequency, so as to determine the flight status of the aircraft according to the jump condition.

[0227] In the embodiment of the present application, the processor 901 also has the following functions:

[0228] Filtering the acceleration modulus value of the electronic device;

[0229] Perform spectrum analysis on the filtered acceleration modulus value to obtain the jump of the main frequency.

[0230] An embodiment of the present application discloses a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method executed by the electronic device in the embodiment of the present application is implemented.

[0231] The embodiment of the present application discloses a computer program product. When the computer program product is executed on a computer, the computer implements the method executed by the electronic device in the embodiment of the present application.

[0232] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer implements the method executed by the electronic device in the embodiment of the present application.

[0233] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0234] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0235] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0236] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0237] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0238] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0239] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0240] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0241] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0242] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0243] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0244] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0245] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting a flight state, characterized in that: include: Perform spectrum analysis on the acceleration data of electronic equipment to obtain the jump of main frequency; Determining a flight state of the aircraft according to the jump condition, wherein the flight state is a take-off state or a landing state; According to the flight status, the network search frequency of the electronic device is adjusted.

2. The method according to claim 1, characterized in that Determining the flight state of the aircraft according to the jump condition includes: In a case where the jump condition indicates that the main frequency jumps from a first frequency interval to a second frequency interval, determining that the aircraft is in a take-off state, wherein the frequency value of the first frequency interval is greater than the frequency value of the second frequency interval; and The adjusting the network search frequency of the electronic device according to the flight status includes: When the flight state is the take-off state, the network search frequency of the electronic device is reduced.

3. The method according to claim 1, characterized in that Determining the flight state of the aircraft according to the jump condition includes: In a case where the jump condition indicates that the main frequency jumps from the third frequency interval to the fourth frequency interval, determining that the aircraft is in a landing state, wherein the frequency value of the third frequency interval is less than the frequency value of the fourth frequency interval; and The adjusting the network search frequency of the electronic device according to the flight status includes: When the flight state is the landing state, the network search frequency of the electronic device is increased.

4. The method according to claim 1, characterized in that: After determining the flight state of the aircraft according to the jump condition, the method further includes: Determining the confidence level corresponding to the flight state by using a frequency difference between the frequency of the main frequency before the jump and the frequency of the main frequency after the jump; The adjusting the network search frequency of the electronic device according to the flight status includes: When the confidence level is greater than or equal to a confidence level threshold, the network search frequency of the electronic device is adjusted according to the flight status.

5. The method according to claim 4, characterized in that The method further comprises: When the confidence level is less than the confidence level threshold, obtaining a heading angle change parameter; When the heading angle change parameter is greater than or equal to a first parameter threshold, the network search frequency of the electronic device is adjusted according to the flight status.

6. The method according to claim 5, characterized in that When the heading angle variation parameter is greater than or equal to a first parameter threshold, adjusting the network search frequency of the electronic device according to the flight state includes: When the heading angle variation parameter is greater than or equal to a first parameter threshold, increasing the confidence level, wherein the increased confidence level is greater than or equal to the confidence level threshold; The network search frequency of the electronic device is adjusted according to the flight status.

7. The method according to claim 6, characterized in that When the heading angle variation parameter is greater than or equal to a first parameter threshold, raising the confidence level includes: Calculating a confidence increase using the heading angle change parameter, the first parameter threshold, and a second parameter threshold, wherein the second parameter threshold is greater than or equal to the heading angle change parameter; The confidence level and the confidence level increase are summed to obtain an increased confidence level.

8. The method according to any one of claims 4 to 7, characterized in that: The adjusting the network search frequency of the electronic device according to the flight status includes: The network search frequency of the electronic device is adjusted according to the flight status and the confidence level corresponding to the flight status.

9. The method according to any one of claims 1 to 7, characterized in that: The flight state is the take-off state, and the method further includes: After the preset time, the acceleration data of the electronic device is continuously subjected to spectrum analysis to obtain the jump condition of the main frequency, so as to determine the flight status of the aircraft according to the jump condition.

10. The method according to any one of claims 1 to 7, characterized in that: The frequency spectrum analysis of the acceleration data of the electronic device to obtain the jump of the main frequency includes: Filtering the acceleration modulus value of the electronic device; Perform spectrum analysis on the filtered acceleration modulus value to obtain the jump of the main frequency.

11. A flight status detection device, characterized in that: include: An acquisition unit is used to perform spectrum analysis on the acceleration data of the electronic device to obtain the jump of the main frequency; A determination unit, used to determine the flight state of the aircraft according to the jump condition, wherein the flight state is a take-off state or a landing state; An adjustment unit is used to adjust the network search frequency of the electronic device according to the flight status.

12. An electronic device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 10.

13. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method according to any one of claims 1 to 10 is implemented.