Control methods, devices, electronic equipment, and storage media for flight mode of equipment
By detecting cabin pressure in real time and automatically controlling the flight mode of electronic devices, it solves the problems of inconvenient and low safety of manual control and improves the convenience and safety of flight mode.
Patent Information
- Application Number
- CN202211538419.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-12-02
AI Technical Summary
When operating multiple electronic devices on an airplane, manually controlling the flight mode is inconvenient and easy to miss, resulting in poor flight safety.
By detecting cabin pressure in real time, it can automatically control electronic devices to enter or exit flight mode according to preset pressurization and pressure relief conditions, improving convenience and accuracy.
It realizes automatic control of the flight mode of electronic equipment, improves the convenience and accuracy of flight mode control, and enhances the safety of aircraft flight.
Smart Images

Figure CN116132571B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of mobile communication technology, and in particular, to a method, device, electronic device and storage medium for controlling a flight mode of a device. Background Art
[0002] When electronic equipment with communication functions is on board an aircraft, in order to ensure flight safety, the communication module of the electronic equipment must be turned off or the electronic equipment must be turned off before the aircraft takes off.
[0003] In the prior art, most electronic devices in civil aircraft are manually turned off or turned on in flight mode to ensure flight safety. However, when there are a large number of electronic devices or the electronic devices are placed in an inconvenient location for operation, manually controlling the flight mode of the electronic devices is less convenient and is prone to omission, resulting in poor flight safety. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for controlling the flight mode of an equipment, which realize automatic control of the flight state of the electronic equipment according to the detected cabin pressure during flight, and have high control convenience and high accuracy.
[0005] In a first aspect, the present application provides a method for controlling a flight mode of a device, which is applied to a device transported on an aircraft, and the method comprises:
[0006] detecting the cabin pressure; and controlling the device to enter flight mode if the cabin pressure satisfies a preset pressurization condition after the cabin pressure remains stable for a first time.
[0007] Optionally, the cabin pressure satisfies a preset pressurization condition, including:
[0008] The cabin pressure increased during the second period is greater than the pre-boost pressure difference threshold.
[0009] Optionally, if the cabin pressure does not meet a preset pressurization condition, the method further includes:
[0010] Determining whether a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold;
[0011] If yes, control the device to enter flight mode;
[0012] Wherein, the third time is greater than the second time.
[0013] Optionally, the third time is at least 10 times the second time.
[0014] Optionally, after the device is in the flight mode, the method further includes:
[0015] Generate and issue flight prompt information.
[0016] Optionally, after controlling the device to enter the flight mode, the method further includes:
[0017] Continue to test the cabin pressure;
[0018] After the cabin pressure remains stable for a fourth time, if the cabin pressure meets a preset decompression condition, controlling the device to exit the flight mode.
[0019] Optionally, the cabin pressure satisfies a preset decompression condition, including:
[0020] The cabin pressure decreases to a preset range within a fifth time, and is stabilized at the decreased pressure for a sixth time.
[0021] Optionally, the method further includes:
[0022] When the device is in the flight mode for a seventh time, the device is controlled to exit the flight mode.
[0023] In a second aspect, the present application further provides a device for controlling a flight mode of a device, the device being applied to a device transported on an aircraft, the device comprising:
[0024] A cabin pressure detection module, used to detect cabin pressure;
[0025] The flight mode activation module is used to control the device to enter the flight mode if the cabin pressure meets a preset pressurization condition after the cabin pressure remains stable for a first time.
[0026] Optional, flight mode on module, specifically used for:
[0027] After the cabin pressure remains stable for a first time, if the cabin pressure increases by more than a pre-boost pressure difference threshold within a second time, the device is controlled to enter an airplane mode.
[0028] Optionally, the device further comprises:
[0029] a climb pressure difference determination module, configured to determine whether a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold value if the cabin pressure does not meet a preset pressurization condition;
[0030] a control module, configured to control the device to enter a flight mode if a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold;
[0031] Wherein, the third time is greater than the second time.
[0032] Optionally, the device further comprises:
[0033] The information sending module is used to generate and send flight prompt information after the device is in flight mode.
[0034] Optionally, the device further comprises:
[0035] The first flight mode closing module is used to continue to detect the cabin pressure after controlling the device to enter the flight mode; after the cabin pressure remains stable for a fourth time, if the cabin pressure meets a preset decompression condition, control the device to exit the flight mode.
[0036] Optionally, the first flight mode closing module is specifically used to:
[0037] After controlling the device to enter the flight mode, continue to detect the cabin pressure; after the cabin pressure remains stable for a fourth time, if the cabin pressure drops to a preset range within a fifth time and remains stable at the reduced pressure for a sixth time, control the device to exit the flight mode.
[0038] Optionally, the device further comprises:
[0039] The second flight mode closing module controls the device to exit the flight mode when the device is in the flight mode for a seventh time.
[0040] In a third aspect, the present application also provides an electronic device comprising: a memory and at least one processor; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method provided in any embodiment corresponding to the first aspect of the present application.
[0041] In a fourth aspect, the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method provided in any embodiment corresponding to the first aspect of the present application.
[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the method provided in any embodiment corresponding to the first aspect of the present application.
[0043] The control method, apparatus, electronic device and storage medium of the device flight mode provided in the embodiments of the present application are for electronic devices transported on an aircraft. The cabin pressure is detected in real time by the electronic device or the control device of the electronic device, and based on the change of the cabin pressure, it is determined whether the aircraft is in a take-off state. That is, if the cabin pressure detected after the cabin pressure is stable for a period of time meets the preset pressurization condition, it is determined that the aircraft is in a take-off state, so that the electronic device is controlled to be in flight mode, thereby realizing automatic control of the device flight mode, improving the convenience and accuracy of flight mode control, and improving the safety of aircraft flight. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0045] Figure 1 An application scenario diagram of the method for controlling the flight mode of a device provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a flow chart of a method for controlling a flight mode of a device provided in one embodiment of the present application;
[0047] Figure 3 A schematic diagram of a boost control curve provided by an embodiment of the present application;
[0048] Figure 4 A schematic flow chart of a method for controlling a flight mode of a device provided in another embodiment of the present application;
[0049] Figure 5 A schematic diagram of a flow chart of a method for controlling a flight mode of a device provided in yet another embodiment of the present application;
[0050] Figure 6 A schematic diagram of the structure of a device flight mode control device provided in one embodiment of the present application;
[0051] Figure 7 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application.
[0052] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0055] The application scenarios of the embodiments of the present application are explained below:
[0056] Figure 1 An application scenario diagram of the device flight mode control method provided in the embodiment of the present application, such as Figure 1 As shown, when an electronic device 100 with communication function is transported on an aircraft 200, in order to ensure the safe flight of the aircraft, it is necessary to turn on the flight mode or shut down the device to prevent the communication signal of the electronic device 100 from interfering with the communication of the aircraft 200, such as interfering with the communication between the aircraft 200 and a radar installed on the ground.
[0057] In some embodiments, the electronic device 100 may be a device with communication functions such as a mobile phone, a cargo tracking device, etc. The cargo tracking device is used to locate the transported cargo.
[0058] In the prior art, the electronic device 100 is often turned off manually or the electronic device 100 is turned off manually.
[0059] However, when the number of electronic devices 100 is large or the position of the electronic devices 100 is not convenient for corresponding operations, the manual operation method is less convenient and the user experience is poor.
[0060] Poor.
[0061] In order to improve the convenience of flight mode control of electronic equipment during aircraft transportation, this application provides an automatic control method for equipment flight mode, which determines whether the aircraft is in a stable state by detecting the cabin pressure in real time.
[0062] During the take-off phase, if yes, the electronic equipment is controlled to enter the flight mode, realizing the automatic control of the flight mode, improving the convenience of equipment control, and at the same time, ensuring the safe flight of the aircraft.
[0063] Figure 2A flowchart of a method for controlling a flight mode of a device provided in one embodiment of the present application. The method for controlling a flight mode of a device may be executed by an electronic device or other device that communicates with the electronic device. The electronic device is a device transported on an aircraft. Figure 1 The electronic device 100 in the illustrated embodiment.
[0064] 5. Figure 2 As shown, the method for controlling the flight mode of the device provided in this embodiment includes the following steps:
[0065] Step S201, detecting cabin pressure.
[0066] The cabin pressure can be expressed as cabin altitude, which can be expressed in m or ft (foot,
[0067] The cabin altitude refers to the standard atmospheric pressure corresponding to the cabin internal pressure.
[0068] Force height.
[0069] Specifically, the cabin pressure can be detected by a barometer set on the device. The barometer can detect the cabin pressure in real time according to a certain period, such as 1 minute, 30 seconds, 10 seconds or other periods.
[0070] Whether to turn on the flight mode or turn off the turned-on flight mode is determined based on the cabin pressure.
[0071] Furthermore, the device is provided with a positioning system. When the positioning system detects that the device is at an airport, the controller in the device controls the barometer to detect the pressure of the external environment according to a preset period. For the sake of ease of description, the pressure of the external environment is recorded as the cabin pressure.
[0072] In some embodiments, a control center that is in communication with the device may also send a flight mode control start instruction to the device, so that the device responds to the flight mode control start instruction, detects the cabin pressure, and determines whether the conditions for entering or exiting the flight mode are met based on the cabin pressure, thereby controlling the device response.
[0073] In one embodiment, the barometer on the device can remain turned on to continuously detect the pressure in the external environment for subsequent condition determination.
[0074] Step S202, after the cabin pressure remains stable for a first time, if the cabin pressure meets a preset pressurization condition, controlling the device to enter an airplane mode.
[0075] The preset pressurization condition is used to determine whether the cabin pressure is increased sufficiently within a period of time. The first time may be a time in minutes, such as 5 minutes, 10 minutes, 12 minutes or other values.
[0076] Controlling the device to enter the flight mode may be to turn off the device's radio frequency signal, to turn on the device's flight mode, or to turn off the device, so that the device cannot transmit radio frequency signals.
[0077] Specifically, it can be determined based on the detected cabin pressure whether the aircraft is in the take-off phase, and if so, the device is controlled to enter the flight mode.
[0078] In order to ensure that the aircraft is at a safe cabin altitude, such as below 2400m or 8000ft, the control characteristics of the cabin pressure by the in-flight pressurization system are different at different stages. Figure 3 A schematic diagram of a boost control curve provided by an embodiment of the present application, such as Figure 3 As shown in the figure, the flight phases of an aircraft include take-off, climb, cruise, descent and landing. Figure 3 Curve 1 in the middle is a curve between time and aircraft flight altitude or cabin altitude, and curve 2 is a curve between time and cabin pressure difference, where the cabin pressure difference is the difference between the external atmospheric pressure and the cabin pressure.
[0079] Depend on Figure 3 It can be seen that during the takeoff phase, since the outflow valve of the aircraft is closed during the takeoff taxiing, the internal pressurization system performs pre-pressurization, the cabin pressure rises and the cabin pressure difference decreases, so that the cabin pressure difference reaches -0.1psi, thereby effectively preventing pressure fluctuations when the aircraft takes off.
[0080] During the climb phase, the cabin pressure is related to the take-off airport altitude H1 and the pre-selected flight altitude H2. During the climb, the cabin altitude is controlled according to the change curve from the take-off airport altitude H1 to the pre-selected flight altitude H2. When the pre-selected flight altitude H1 is low, such as less than or equal to 18,300ft, the cabin altitude is 0 and the cabin ascent and descent rate is 0. When 18,300ft < pre-selected flight altitude H1 < 28,000ft, isobaric control is performed, and the cabin pressure difference is fixed at 7.45psi. After take-off, the cabin altitude begins to change from 0 to 5,000ft. When the pre-selected flight altitude H2 is higher than or equal to 28,000ft, the cabin pressure difference is fixed at 7.8psi. During the cruise phase, the cabin pressure remains stable.
[0081] During the descent phase, the aircraft descends from the pre-selected flight altitude H2 to the set landing altitude H3, and pressurization control is performed from the pre-selected flight altitude H2 to the set landing altitude H3. The cabin pressure will drop from the stable cabin pressure during the cruise phase to 0.15 psi below the landing airport pressure to prevent pressure fluctuations during landing.
[0082] During the landing phase, after the ground procedure conditions are met, the cabin is depressurized until the cabin pressure is consistent with the outside air pressure.
[0083] In order to accurately determine the take-off status of the aircraft, it is possible to first determine whether the collected cabin pressure remains stable for a period of time, such as being stable at a first pressure for a first time. The first pressure may be a fixed value, or a pressure with a smaller fluctuation among the detected cabin pressures.
[0084] Whether the cabin pressure is stable at the first pressure can be determined by judging whether the pressure difference between the detected cabin pressure and the first pressure is less than the first pressure difference. The first pressure difference can be 50Pa, 100Pa, 150Pa or other values.
[0085] Specifically, it can be determined whether the fluctuation between the cabin pressures detected within the first time is less than the first pressure difference. If so, it is determined that the cabin pressure is stable at the first pressure for a first time, wherein the first pressure may be an average value or a median value of the cabin pressures detected within the first time.
[0086] After determining that the cabin pressure is stable at the first pressure for the first time, based on the subsequently detected cabin pressure, it is judged whether the cabin pressure meets the preset pressurization condition. If so, it means that the aircraft is currently in the take-off stage and the operating mode of the equipment needs to be switched to the flight mode, thereby realizing the automatic opening of the flight mode of the equipment and improving the convenience of equipment control.
[0087] Meeting the preset pressurization condition may include the cabin pressure continuously increasing for a period of time, such as 30 seconds, 60 seconds, 2 minutes, etc.
[0088] Optionally, the cabin pressure satisfies a preset pressurization condition, including:
[0089] The cabin pressure increased during the second period is greater than the pre-boost pressure difference threshold.
[0090] The second time may be between 30s and 100s, such as 60s, and the pre-boost pressure difference threshold may be between 500Pa and 1000Pa, such as 600Pa.
[0091] It should be understood that the values of the thresholds such as time and pressure corresponding to the various conditions in this application can be adjusted according to actual conditions.
[0092] When the detected cabin pressure remains stable for a certain period of time, if the subsequently detected cabin pressure meets the preset pressurization condition, it is determined that the aircraft on which the device is riding is in the take-off phase, and the control device is in flight mode.
[0093] The stable cabin pressure referred to in the embodiments of the present application means that the cabin pressure fluctuation is small, such as less than 50Pa, 100Pa, etc.
[0094] By detecting whether the cabin pressure increases significantly in a short period of time, it is determined whether the aircraft is in the take-off phase. The judgment logic is simple, easy to implement, and has high accuracy.
[0095] The device flight mode control method provided in the embodiment of the present application is for electronic equipment transported on an aircraft. The cabin pressure is detected in real time by the electronic equipment or the control device of the electronic equipment, and based on the change of the cabin pressure, it is determined whether the aircraft is in a take-off state. That is, if the cabin pressure detected after the cabin pressure is stable for a period of time meets the preset pressurization condition, it is determined that the aircraft is in a take-off state, so as to control the electronic equipment to be in flight mode, thereby realizing automatic control of the device flight mode, improving the convenience and accuracy of flight mode control, and improving the safety of aircraft flight.
[0096] Figure 4 This is a flow chart of a method for controlling the flight mode of a device provided in another embodiment of the present application. The method for controlling the flight mode of a device provided in this embodiment is Figure 2 On the basis of the method for controlling the flight mode of the device provided in the illustrated embodiment, step S202 is refined, and steps related to exiting the flight mode are added after step S202.
[0097] like Figure 4 As shown, the method for controlling the flight mode of a device provided in this embodiment may include the following steps:
[0098] Step S401, detecting cabin pressure.
[0099] Step S402, after the cabin pressure remains stable for a first time, determine whether the cabin pressure meets a preset pressurization condition; if so, execute step S403; if not, execute step S404.
[0100] Step S403, controlling the device to enter flight mode.
[0101] Step S404, determining whether the change value of the cabin pressure within the third time is greater than the climb pressure difference threshold; if so, executing step S403; if not, not adjusting the operating mode of the device, continuing to detect the cabin pressure, so as to control the flight mode of the device based on the subsequently collected cabin pressure.
[0102] Among them, the third time is greater than the second time.
[0103] In some embodiments, the third time is at least 10 times longer than the second time.
[0104] Exemplarily, the third time may be between 15min and 45min, such as 30min. The climbing pressure difference threshold may be between 3000Pa and 9000Pa, such as 6100Pa. If the cabin pressure decreases by 6100Pa, it means that the aircraft climbs about 600m. The altitude of 600m is significantly higher than the value of the normal altitude change of the device. Therefore, based on the above supplementary conditions, it can be determined whether to control the device to be in flight mode.
[0105] When the cabin pressure does not meet the preset pressurization condition, in order to improve the accuracy of flight mode control, as a supplementary condition, it can be determined whether the change value of the cabin pressure detected after stabilization for a long time is greater than the climb pressure difference threshold. If so, it is determined that the aircraft is in the climb stage and the control device is in flight mode.
[0106] Step S405: After the device is in the flight mode for a seventh time, control the device to exit the flight mode.
[0107] The seventh time can be determined according to the flight time of the aircraft that the device takes, and the seventh time can be a value greater than the flight time of the aircraft. The seventh time can also be a fixed value, such as a fixed value greater than the flight time of various existing aircraft, such as 18 hours, 20 hours, 24 hours, etc.
[0108] In this embodiment, when the take-off stage of the aircraft is not successfully determined based on the detected cabin pressure, that is, after the cabin pressure remains stable for the first time, the detected cabin pressure does not meet the preset pressurization condition, the device can be timely controlled to be in flight mode by determining whether the aircraft is in the climbing stage, specifically, determining whether the change value of the cabin pressure within the third time is greater than the climbing pressure difference threshold. If so, it is determined that the aircraft is in the climbing stage, and the operation mode of the device is switched to flight mode, thereby avoiding interference with the aircraft's communication due to the failure to control the device in flight mode during the take-off stage. After the device is controlled to be in flight mode for the seventh time, the operation mode of the device is automatically restored, thereby automatically exiting the flight mode, improving the convenience of device control, so that the device can automatically restore the operation mode before turning on the flight mode.
[0109] Figure 5This is a flow chart of a method for controlling the flight mode of a device provided by another embodiment of the present application. The method for controlling the flight mode of a device provided by this embodiment is based on the method for controlling the flight mode of a device provided by the previous embodiment, and adds steps related to controlling the device to exit the flight mode based on the cabin pressure, such as Figure 5 As shown, after the device is controlled to enter the flight mode, the device flight mode control method provided in this embodiment further includes the following steps to exit the flight mode:
[0110] Step S501, continue to detect the cabin pressure.
[0111] Step S502: after the cabin pressure remains stable for a fourth time, if the cabin pressure satisfies a preset decompression condition, controlling the device to exit the flight mode.
[0112] The fourth time may be a time in minutes, such as 5 minutes, 10 minutes, 15 minutes or other values.
[0113] The cabin pressure remains stable, that is, the cabin pressure fluctuation is small, such as less than 50Pa, 100Pa or other values.
[0114] Specifically, it may be determined whether the cabin pressure is stable and whether the second pressure reaches a fourth time, and the second pressure may be the cabin pressure when the aircraft is in a cruising phase.
[0115] After the control device is in flight mode, in order to realize automatic exit from flight mode, the cabin pressure can continue to be detected. If the continuously detected cabin pressure remains stable for a fourth time, it is determined whether the subsequently detected cabin pressure meets the preset decompression condition. If so, the control device exits flight mode.
[0116] In some embodiments, the fourth time may be equal to the first time, such as 10 minutes.
[0117] The preset decompression condition may be that the cabin pressure drops to a larger pressure difference within a shorter period of time, such as within the fifth period of time.
[0118] Optionally, the cabin pressure satisfies a preset decompression condition, including:
[0119] The cabin pressure decreases to a preset range within a fifth time, and is stabilized at the decreased pressure for a sixth time.
[0120] The fifth time may be 30s, 60s, 2min or other values, the upper limit of the preset range may be 1200Pa, 1000Pa or other values, the lower limit may be 400Pa, 600Pa or other values, such as the preset range may be 400Pa to 1200Pa. The sixth time may be 2min, 3min or other values.
[0121] In some embodiments, the fifth time may be equal to the second time, and the sixth time may be greater than the fifth time.
[0122] For the cabin pressure collected after the flight mode is turned on, after it is detected that the cabin pressure continues to decrease within the fifth time and the rate of change of the decrease is within the set range, then after it is determined that the subsequently detected cabin pressure remains stable for at least the sixth time, the change in the cabin pressure during the fifth time of continuous decrease is calculated, and if the change is greater than the decompression pressure difference threshold, the control device exits the flight mode.
[0123] By setting the above-mentioned preset decompression conditions and the setting of the pressure being reduced to a sixth time, it is possible to effectively prevent the situation where the detected cabin pressure continues to decrease due to unstable aircraft flight or incorrect cabin pressure detection when the equipment is transported by aircraft, thereby erroneously exiting the flight mode, thereby improving the accuracy of flight mode exit control.
[0124] In this embodiment, based on the cabin pressure collected after the flight mode is turned on, the automatic exit control of the device flight mode is realized, which improves the comprehensiveness and convenience of the device flight mode control. And through the reasonable setting of the preset decompression conditions, it is accurately identified that the aircraft is in the landing stage, so as to automatically control the device to exit the flight mode to carry out normal data interaction, such as cargo tracking, which improves the accuracy of the flight mode exit and ensures the normal operation of the functions of the device.
[0125] Figure 6 A schematic diagram of a control device for a flight mode of a device provided in one embodiment of the present application is shown in FIG. Figure 6 As shown, the device flight mode control apparatus provided in this embodiment includes: a cabin pressure detection module 610 and a flight mode activation module 620 .
[0126] Wherein, the cabin pressure detection module 610 is used to detect the cabin pressure;
[0127] The flight mode activation module 620 is configured to control the device to enter the flight mode if the cabin pressure satisfies a preset pressurization condition after the cabin pressure remains stable for a first period of time.
[0128] Optionally, the flight mode activation module 620 is specifically configured to:
[0129] After the cabin pressure remains stable for a first time, if the cabin pressure increases by more than a pre-boost pressure difference threshold within a second time, the device is controlled to enter an airplane mode.
[0130] Optionally, the device further comprises:
[0131] a climb pressure difference determination module, configured to determine whether a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold value if the cabin pressure does not meet a preset pressurization condition;
[0132] a control module, configured to control the device to enter a flight mode if a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold;
[0133] Wherein, the third time is greater than the second time.
[0134] Optionally, the device further comprises:
[0135] The information sending module is used to generate and send flight prompt information after the device is in flight mode.
[0136] Optional, continue to see Figure 6 , the device further comprises:
[0137] The first flight mode closing module 630 is used to continue to detect the cabin pressure after controlling the device to enter the flight mode; after the cabin pressure remains stable for a fourth time, if the cabin pressure meets a preset decompression condition, control the device to exit the flight mode.
[0138] Optionally, the first flight mode closing module 630 is specifically configured to:
[0139] After controlling the device to enter the flight mode, continuing to detect the cabin pressure;
[0140] After the cabin pressure remains stable for a fourth time, if the cabin pressure decreases to a preset range within a fifth time and remains stable at the reduced pressure for a sixth time, the device is controlled to exit the flight mode.
[0141] Optional, continue to see Figure 6 , the device further comprises:
[0142] The second flight mode off module 640 controls the device to exit the flight mode when the device is in the flight mode for a seventh time.
[0143] The device for controlling the flight mode of the device provided in the embodiment of the present application can execute the method for controlling the flight mode of the device provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0144] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown as follows: Figure 7 As shown, the electronic device includes: a memory 710 and at least one processor 720.
[0145] The memory 710 stores computer-executable instructions, and at least one processor 720 executes the computer-executable instructions stored in the memory 710, so that at least one processor 720 executes the computer-executable instructions as described in the present application. Figure 2 , Figure 4 and Figure 5 A method for controlling the flight mode of a device provided in any one of the corresponding embodiments.
[0146] The memory 710 and the processor 720 are connected via a bus 730 .
[0147] For related instructions, please refer to Figure 2 , Figure 4 and Figure 5 The relevant descriptions and effects corresponding to the steps are understood, and no further elaboration is given here.
[0148] In some embodiments, the electronic device is further provided with a barometer for detecting the pressure of the environment in which the electronic device is located, such as the cabin pressure of an airplane.
[0149] In some embodiments, the electronic device may be a device bound to the transported goods for tracking the goods.
[0150] In some embodiments, the electronic device may be a handheld device or a wearable device, such as a mobile phone, a bracelet, etc.
[0151] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the present application is implemented. Figure 2 , Figure 4 and Figure 5 A method for controlling the flight mode of a device provided in any one of the corresponding embodiments.
[0152] Among them, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0153] The present application also provides a computer program product, including a computer program, which implements the present application when executed by a processor. Figure 2 , Figure 4 and Figure 5 A method for controlling the flight mode of a device provided in any one of the corresponding embodiments.
[0154] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0155] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0156] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for controlling a flight mode of a device, characterized in that: The method is applied to equipment transported on an aircraft, and the method comprises: Check cabin pressure; After the cabin pressure remains stable for a first time, if the cabin pressure increases by more than a pre-boost pressure difference threshold within a second time, controlling the device to enter a flight mode; If the pressure increase of the cabin pressure within the second time is less than or equal to the pre-boost pressure difference threshold, determining whether the change value of the cabin pressure within the third time is greater than the climb pressure difference threshold; If yes, control the device to enter flight mode; Wherein, the third time is greater than the second time.
2. The method according to claim 1, characterized in that: The third time is at least 10 times the second time.
3. The method according to claim 1 or 2, characterized in that: After controlling the device to enter the flight mode, the method further includes: Continue to test the cabin pressure; After the cabin pressure remains stable for a fourth time, if the cabin pressure satisfies a preset decompression condition, controlling the device to exit the flight mode; and / or, When the device is in the flight mode for a seventh time, the device is controlled to exit the flight mode.
4. The method according to claim 3, characterized in that The cabin pressure meets the preset decompression conditions, including: The cabin pressure decreases to a preset range within a fifth time, and is stabilized at the decreased pressure for a sixth time.
5. A device for controlling flight mode of a device, characterized in that: The device is applied to equipment transported on an aircraft, and the device comprises: A cabin pressure detection module, used to detect cabin pressure; an airplane mode activation module, configured to control the device to enter an airplane mode if, after the cabin pressure remains stable for a first time, the pressure increased by the cabin pressure within a second time is greater than a pre-boost pressure difference threshold; a climb pressure difference determination module, configured to determine whether a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold value if the pressure increase of the cabin pressure within the second time is less than or equal to a pre-boost pressure difference threshold value; a control module, configured to control the device to enter a flight mode if a change value of the cabin pressure within a third time is greater than a climb pressure difference threshold; Wherein, the third time is greater than the second time.
6. The device according to claim 5, characterized in that The device also includes: a first flight mode closing module, configured to continue detecting the cabin pressure after controlling the device to enter the flight mode; and, after the cabin pressure remains stable for a fourth time, if the cabin pressure satisfies a preset decompression condition, controlling the device to exit the flight mode; and / or, The second flight mode closing module controls the device to exit the flight mode when the device is in the flight mode for a seventh time.
7. An electronic device, characterized in that: include: memory and at least one processor; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 4 is implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
