Patent Description:
In response to the development of communications technologies, wireless communication technology is more and more widely used in a terminal device. When performing wireless communication, a certain amount of electromagnetic radiation is generated. If the power of the electromagnetic radiation is too large, damage to the body of a user may be caused. Therefore, national ministries and commissions such as the Ministry of Industry and Information Technology, as well as international organizations such as the Institute of Electrical and Electronics Engineers (Institute of Electrical and Electronics Engineers, IEEE) and the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP), formulate relevant regulations on the relevant transmission power of the terminal device for the wireless communication. As a result, the power of the terminal device in use needs to meet the restrictions of relevant regulations, that is, the power of the terminal device is not greater than z maximum safety limit stipulated by the regulations.

Currently, a plurality of terminal devices support a variety of configuration change, such as a mobile phone, a tablet computer, a portable laptop, a virtual\ mixed\ augmented reality device, a navigation device, and another device. When the configuration of the terminal device changes, an actual antenna gain and a radiation range also changes. When the configuration change of the terminal device changes, the antenna gain is not adjusted, so it is impossible to optimize a total radiated power (Total Radiated Power, TRP) of the terminal device under a condition of meeting regulatory restrictions.

<CIT> discusses sensing a folding state of an electronic device using a sensor and controlling an antenna depending on the folding state. <CIT> discusses an electronic device including a foldable housing, a flexible display, a wireless communication circuit, a grip sensor, at least one sensor, a processor and a memory. <CIT> an antenna power adjustment method and device, a storage medium and an intelligent terminal. <CIT> discusses a a terminal equipment power control method, a terminal equipment power control device and terminal equipment.

Based on the above, a power management method, a terminal, and a storage medium are necessarily to be provided.

According to a first aspect, an implementation of this application provides a power management method according to claim <NUM> applicable to a foldable terminal device.

According to a second aspect, an implementation of this application provides a power management method according to claim <NUM> applicable to a foldable terminal device.

According to a third aspect, an embodiment of this application provides a foldable terminal according to claim <NUM>.

According to a fourth aspect, an implementation of this application provides a computer-readable storage medium according to claim <NUM>.

According to the power management method applicable to the foldable terminal device, the terminal device, and the storage medium provided by the implementation of this application, the antenna gain of the terminal device can be adjusted based on the configuration of the terminal device, and an actual antenna gain of the terminal device is optimized while satisfying relevant regulatory requirements.

This application is further described in the following specific implementations with reference to the accompanying drawings.

The following clearly and completely describes the technical solutions in the implementations of this application with reference to the accompanying drawings in the implementations of this application. Apparently, the described implementations are merely some but not all of the implementations of this application.

It should be noted that in embodiments of this application, "at least one" refers to one or more, and "a plurality of" refers to two or more. Unless otherwise defined, all technical and scientific terms as used herein have the same meanings as those usually understood by a person skilled in the art of this application. The terms used in the specification of this application are merely intended to describe specific embodiments, but are not intended to limit this application.

It should be noted that in descriptions of embodiments of this application, terms such as "first" and "second" are merely used for distinguishing descriptions, and cannot be understood as an indication or implication of relative importance, or an indication or implication of a sequence. features defined by "first" and "second" may explicitly or implicitly include one or more of the features. In the descriptions of embodiments of this application, the words such as "for example" and "such as" are used to mean an example, an illustration, or a description. Any embodiment or design scheme described by using "exemplarily" or "for example" in embodiments of this application should not be explained as being more preferred or having more advantages than another embodiment or design scheme. In particular, the terms such as "exemplary" and "example" as used herein are intended to present the related concept in a specific implementation.

In response to the development of communications technologies, wireless communication technology is more and more widely used in a terminal device.

When performing wireless communication, a certain amount of electromagnetic radiation is generated. If the power of the electromagnetic radiation is too large, damage to the body of a user may be caused. Therefore, national ministries and commissions such as the Ministry of Industry and Information Technology, as well as international organizations such as the Institute of Electrical and Electronics Engineers (Institute of Electrical and Electronics Engineers, IEEE) and the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP), formulate relevant regulations on the relevant transmission power of the terminal device for the wireless communication. As a result, the power of the terminal device in use needs to meet the restrictions of relevant regulations, that is, the power of the terminal device is not greater than z maximum safety limit stipulated by the regulations.

Currently, a plurality of terminal devices support a variety of configuration changes. When the configuration of the terminal device changes, an actual antenna gain and a radiation range also changes. When the configuration change of the terminal device changes, the antenna gain is not adjusted, so it is impossible to achieve a maximum power spectral density while meeting regulatory restrictions.

Based on the foregoing problems, embodiments of this application provide a power management method applicable to a foldable terminal device, a terminal device, and a storage medium. The antenna gain of the terminal device can be adjusted based on the configuration of the terminal device. An actual antenna gain of the terminal device is optimized while satisfying relevant regulatory requirements.

Some implementations of this application are described below in detail with reference to the accompanying drawings. The following embodiments and features in the embodiments may be mutually combined in a case that no conflict occurs.

<FIG> is a schematic structural diagram of a mobile phone according to an embodiment of this application. Although <FIG> takes a mobile phone as an example to illustrate a structure of an electronic device, a person skilled in the art should understand that the structure of the mobile phone in <FIG> is also applicable to another electronic device that has a camera and support mode switching. As shown in <FIG>, the mobile phone <NUM> may include a processor <NUM>, an external memory interface <NUM>, an internal memory <NUM>, a USB interface <NUM>, a charging management module <NUM>, a power management module <NUM>, a battery <NUM>, an antenna <NUM>, an antenna <NUM>, a mobile communication module <NUM>, a wireless communication module <NUM>, an audio module <NUM>, a loudspeaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module <NUM>, a button <NUM>, a motor <NUM>, an indicator <NUM>, a camera <NUM>, a display screen <NUM>, a subscriber identification module (subscriber identification module, SIM) card interface <NUM>, and the like. The sensor module <NUM> may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a range sensor 180F, a proximity light sensor <NUM>, a fingerprint sensor <NUM>, a temperature sensor 180J, a touch sensor <NUM>, an ambient light sensor <NUM>, a bone conduction sensor <NUM>, and the like.

It may be understood that the structures illustrated in embodiments of this application do not constitute a specific limitation on the mobile phone <NUM>. In some other embodiments of this application, the mobile phone <NUM> may include more or fewer components than those shown in the figure, or some components may be combined, or some components may be split, or components are arranged in different manners. The components shown in the figure may be implemented by hardware, software or a combination of software and hardware.

The processor <NUM> may include one or more processing units. For example, the processor <NUM> may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural-network processing unit (neural-network processing unit, NPU). Different processing units may be separate devices, or may be integrated into one or more processors.

The controller may generate an operation control signal according to instruction operation code and a time-sequence signal, and control obtaining and executing of instructions.

A memory may also be arranged in the processor <NUM>, and is configured to store instructions and data. In some embodiments, the memory in the processor <NUM> is a cache memory. The memory may store instructions or data that have just been used or recycled by the processor <NUM>. If the processor <NUM> needs to use the instructions or the data again, the processor may directly call the instructions or the data from the memory. Therefore, repeated access is avoided, a waiting time of the processor <NUM> is shortened, and system efficiency is improved.

The USB interface <NUM> is an interface that conforms to the USB standard specification, and may be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like, which can support various USB specifications including USB1. <NUM>, USB2. <NUM>, USB3. <NUM> and USB4. <NUM> or higher standard USB specifications. For example, the USB interface <NUM> may include one or more USB interfaces.

Moreover, the processor <NUM> is further configured to obtain instructions for implementing a power management method provided in embodiments of this application, and obtain, from a sensor, a state (a folded state or an unfolded state) of the corresponding mobile phone <NUM> or an unfolding angle of the mobile phone <NUM> to implement the power management method for the mobile phone <NUM>.

Moreover, it may be understood that a schematic interface connection relationship between the modules in this embodiment is merely an example for description, and constitutes no limitation on the structure of the mobile phone <NUM>. In some other embodiments of this application, the mobile phone <NUM> may also adopt an interface connection manner different from that in the foregoing embodiment, or adopt a combination of a plurality of interface connection manners.

The charging management module <NUM> is configured to receive a charging input from a charger. The power management module <NUM> is configured to be connected to the battery <NUM>, the charging management module <NUM>, and the processor <NUM>. A wireless communication function of the mobile phone <NUM> may be implemented through the antenna <NUM>, the antenna <NUM>, the mobile communication module <NUM>, the wireless communication module <NUM>, the modem processor, the baseband processor, and the like.

The antenna <NUM> and the antenna <NUM> are configured to transmit and receive an electromagnetic wave signal. Each antenna in the mobile phone <NUM> may be configured to cover one or more communication frequency bands. Different antennas may further be multiplexed to improve utilization of the antennas. For example, the antenna <NUM> may be multiplexed into a diversity antenna of a wireless local area network. In some other embodiments, the antennas may be used with a tuning switch.

The mobile communication module <NUM> may provide a solution to wireless communication such as <NUM>/<NUM>/<NUM>/<NUM> applied to the mobile phone <NUM>. The mobile communications module <NUM> may include at least one filter, a switch, a power amplifier, a low noise amplifier (low noise amplifier, LNA), and the like. The mobile communications module <NUM> may receive an electromagnetic wave by using the antenna <NUM>, perform processing such as filtering and amplification on the received electromagnetic wave, and send the electromagnetic wave to the modem processor for demodulation. The mobile communications module <NUM> may further amplify a signal modulated by the modem processor, and convert the signal into an electromagnetic wave by using the antenna <NUM> for radiation. In some embodiments, at least some functional modules of the mobile communication module <NUM> may be arranged in the processor <NUM>. In some embodiments, at least some of the functional modules of the mobile communication module <NUM> may be arranged in a same device as at least some modules of the processor <NUM>.

The wireless communication module <NUM> may provide solutions of wireless communications applied to the mobile phone <NUM>, including a wireless local area network (wireless local area network, WLAN) (such as a wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), and an infrared (infrared, IR) technology. The wireless communications module <NUM> may be one or more devices into which at least one communication processing module is integrated. The wireless communications module <NUM> receives an electromagnetic wave by using the antenna <NUM>, performs frequency modulation on and filters the electromagnetic wave signal, and sends a processed signal to the processor <NUM>. The wireless communications module <NUM> may further receive a to-be-sent signal from the processor <NUM>, perform frequency modulation on and amplify the to-be-sent signal, and convert the to-be-sent signal into an electromagnetic wave by using the antenna <NUM> for radiation.

In some embodiments, the antenna <NUM> and the mobile communication module <NUM> of the mobile phone <NUM> are coupled, and the antenna <NUM> and the wireless communication module <NUM> of the mobile phone are coupled, so that the mobile phone <NUM> can communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, and the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS) and/or satellite based augmentation systems (satellite based augmentation systems, SBAS).

The mobile phone <NUM> may implement a photographing function through the ISP, the camera <NUM>, the video codec, the GPU, the display screen <NUM>, the application processor, and the like. The external memory interface <NUM> may be configured to connect to an external storage card such as a micro SD card, to extend a storage capability of the mobile phone <NUM>. The external storage card communicates with the processor <NUM> by using the external memory interface <NUM>, to implement a data storage function. For example, files such as music and a video are stored into the external storage card.

The mobile phone <NUM> may implement an audio function through the audio module <NUM>, the loudspeaker 170A, the receiver 170B, the microphone 170C, the headset jack 170D, the application processor, and the like. The audio function includes, for example, music playing and sound recording.

<FIG> is a schematic diagram of an antenna radiation direction of a terminal device according to an embodiment of this application.

Referring to <FIG> together, <FIG> shows a schematic diagram of the antenna radiation direction of the terminal device <NUM> in an unfolded state. <FIG> shows a schematic diagram of the antenna radiation direction of the terminal device <NUM> at an unfolded angle of <NUM>°. <FIG> shows a schematic diagram of the antenna radiation direction of the terminal device <NUM> at an unfolded angle of <NUM>°. <FIG> shows a schematic diagram of the antenna radiation direction of the terminal device <NUM> in a folded state.

It may be understood that the terminal device <NUM> in <FIG> uses the same antenna <NUM>. The dashed line indicates the antenna radiation direction of the terminal device <NUM>. A beam with the largest radiation intensity is a main lobe, and a beam with a smaller radiation intensity is a side lobe. It may be understood that a narrower main lobe and a smaller side lobe in an antenna radiation pattern led to energy radiation of the antenna <NUM> be more concentrated, that is, gain (Gain, G) of the antenna <NUM> is high. Referring to <FIG> together, when the configuration of the terminal device <NUM> is converted from the unfolded state to the folded state, the main lobe in the antenna radiation pattern is narrowed and the side lobe is reduced, that is, the gain of the antenna <NUM> is gradually increased.

It may be understood that a metal plate <NUM> is generally arranged in the terminal device <NUM>. For example, one or more metal plates <NUM> may be arranged on the terminal device <NUM> to achieve functions such as fixed elements, electromagnetic shielding, and wireless charging. Therefore, when the configuration of the terminal device <NUM> is converted from the unfolded state to the folded state, the metal plate <NUM> around the antenna <NUM> of the terminal device <NUM> can function as a reflective surface to change the radiation direction of the main lobe, and concentrate the energy located in the direction of the side lobe towards the main lobe, thereby improving the antenna gain G of the terminal device <NUM> in the radiation direction of the main lobe. As a result, when the configuration of the terminal device <NUM> is converted from the unfolded state to the folded state, the gain G of the antenna <NUM> is increased, while the radiation range of the antenna <NUM> is correspondingly reduced.

In combination with Table <NUM>, parameters of the terminal device <NUM> in the folded state and the unfolded state are described below.

As shown in Table <NUM>, P<NUM> is a maximum power that the terminal device <NUM> can support, G is an antenna gain, PSD is an upper limit of a power spectral density (Power Spectral Density, PSD) specified by regulations, P<NUM>' is a fallback power, P is an actual power of the terminal device <NUM>, P + G is an actual power spectral density, PSD- (P + G) is a margin between the actual power and the regulations, E is an antenna efficiency, and TRP is total radiated power (Total Radiated Power, TRP). It may be understood that units of the values in Table <NUM> are dB.

The power spectral density PSD generally satisfies the following formula (<NUM>).

That is to say, the power spectral density PSD is a sum of the actual power (P) of the terminal device <NUM> and the antenna gain (G). The power spectral density PSD shall be less than or equal to the maximum safety limit stipulated by the relevant regulations, that is, the mobile phone power P and antenna gain G shall be less than or equal to the maximum safety limit stipulated by the relevant regulations.

In addition, the total radiated power TRP generally satisfies the following formula (<NUM>).

That is, total radiated power (TRP) = actual mobile phone power (P) + antenna efficiency (E). If the value of the total radiated power (TRP) is higher, which means a radiation performance of the terminal device is better. It may be understood that for the same device, since the antenna efficiency (E) is constant, the radiation performance of the terminal device is better if the actual power (P) of the terminal device is higher.

It may be understood that the actual power P of the terminal device = the maximum power P<NUM>+ that the terminal device can support + the fallback power P1'. It may be understood that the maximum power P<NUM> that the terminal device <NUM> can support is usually set to be greater than or equal to a maximum safety limit of the power spectral density PSD specified by the relevant regulations. Therefore, the fallback power P<NUM>' is usually negative, so that the terminal device <NUM> meets the maximum safety limit of the power spectral density PSD specified by the relevant regulations.

For example, the power spectral density PSD specified by the regulations is used as <NUM>dB as an example. The antenna gain G of the terminal device <NUM> in the folded state is <NUM>dB, and in order to meet the requirements of the regulations, the actual power P of the terminal device <NUM> needs to be set to <NUM>dB. In this case, the fallback power P1' = -4dB is necessarily to be set, so that the terminal device <NUM> is adjusted from the maximum power P<NUM> = 18dB to the actual power P = 14dB. In this case, the total radiated power TRP of the terminal device <NUM> is <NUM>dB. Obviously, with reference to Table <NUM>, the margin between the actual power of the terminal device <NUM> and the regulations is <NUM>, and the terminal device <NUM> can achieve an optimal performance under the regulations.

For another example, the antenna gain of the terminal device <NUM> in the unfolded state is <NUM>dB. In this case, the actual power P of the terminal device <NUM> is set to <NUM>dB. In this case, the terminal device <NUM> in the unfolded state and the device in the folded state perform the same power setting, that is, the fallback power P<NUM>' = -<NUM>dB, so that the terminal device <NUM> is adjusted from the maximum power P<NUM> = 18dB to the actual power P = <NUM>dB. Obviously, with reference to Table <NUM>, the margin between the actual power of the terminal device <NUM> and the regulations is 2dB, and the terminal device <NUM> does not achieve an optimal performance under the regulations. Although the total radiated power TRP of the terminal device <NUM> in this case is <NUM>dB, which is the same as the performance in the folded state, the total radiated power TRP of the terminal device <NUM> can reach <NUM>dB under the premise of complying with regulations.

The embodiment of this application provides a power management method, which can detect the configuration of the terminal device <NUM>, and adjust the transmit power of the terminal device <NUM> based on the current configuration of the terminal device <NUM>, so that the total radiated power TRP of the terminal device <NUM> can reach the optimal value under the regulations.

<FIG> is a schematic structural diagram of a terminal device <NUM> according to embodiments of this application.

The terminal device <NUM> in embodiments of this application may also be referred to as a user equipment (User Equipment, UE), an access terminal, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user apparatus. Typically, the terminal device <NUM> may be a mobile phone, a tablet computer, a portable notebook computer, a virtual\ hybrid\ augmented reality device, a navigation device, a session initiation protocol (Session Initiation Protocol, SIP) phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device with communication capabilities, a computing device or another processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a <NUM> network, a future evolved public land mobile network (Public Land Mobile Network, PLMN) or another communication system in the future terminal device, or the like.

Referring to <FIG>, the terminal device <NUM> includes a first component <NUM>, a second component <NUM>, a first sensor <NUM>, and a processor <NUM>.

An angle between the first component <NUM> and the second component <NUM> within the terminal device <NUM> may vary to adjust the configuration of the terminal device <NUM> from a first configuration to a second configuration, or from the second configuration to the first configuration. It may be understood that the antenna gain changes when the configuration of the terminal device <NUM> is adjusted from the first configuration to the second configuration or from the second configuration to the first configuration.

For example, the first component <NUM> and the second component <NUM> may be independent components, may be a main screen and a secondary screen, or may be two parts of a flexible screen, which is not limited in this application.

For example, the manner the terminal device <NUM> changes the configuration includes but is not limited to outer folding, inner folding, sliding cover, flip cover, multi-folding, reel stretching, and the like, which is not limited in this application.

It may be understood that the processor <NUM> of the terminal device <NUM> is an application processor (Application Processor, AP). The processor <NUM> may obtain state information from the first sensor <NUM> and control the terminal device <NUM> to adjust the antenna power based on the state information of the first sensor <NUM>.

For example, the first sensor <NUM> may be a motion sensor, a Hall (Hall) sensor, or another sensor. As a type of the motion sensor, an accelerometer sensor may detect a magnitude of acceleration in various directions (generally three axes), and may detect a magnitude and a direction of gravity when static, which can be configured to identify an angle of the terminal device <NUM> and a relative displacement between the first component <NUM> and the second component <NUM>. It may be understood that when the first sensor <NUM> is the Hall sensor, the Hall sensor can be configured to detect the configuration change of the terminal device <NUM>, and output a corresponding electrical signal based on the first configuration or the second configuration of the terminal device <NUM>, such as <NUM> or <NUM>. The first sensor <NUM> may further include a pressure sensor, a gyroscope, a barometer, an infrared sensor, and the like, which are not described herein in detail.

For example, when the first sensor <NUM> is the Hall sensor, the terminal device <NUM> may be detected in the first configuration or the second configuration. When the configuration of the terminal device <NUM> is changed, the state information is outputted. For example, if the terminal device <NUM> is in the first configuration, <NUM> is outputted, and if the terminal device <NUM> is in the second configuration, <NUM> is outputted, which are not limited in this application.

For example, when the first sensor <NUM> is the accelerometer sensor, it can detect the magnitude of the acceleration in each direction of the terminal device <NUM>, and obtain the relative displacement and the angle between the first component <NUM> and the second component <NUM>, so as to obtain the current state of the terminal device <NUM> is the first configuration or the second configuration, and output the state information corresponding to the state.

For example, the first configuration may be the unfolded state or the folded state, and the second configuration may be the folded state or the unfolded state, which is not limited in this application.

It may be understood that the first sensor <NUM> does not output the state information when the unfolding angle of the terminal device <NUM> is between the first configuration and the second configuration, so as to avoid adjusting the actual power before the terminal device <NUM> is not completed in the configuration of switching, resulting in a case where the power of the terminal device <NUM> is higher than the regulatory limit.

Referring to <FIG> together, <FIG> is a schematic flowchart of a power management method according to an embodiment of this application.

The power management method provided by the embodiment of this application is described below by taking the terminal device <NUM> as an example. The power management method includes the following steps.

It may be understood that the state information from the first sensor <NUM> is obtained.

S200: Determine whether a state of the terminal device changes.

It may be understood that the state of the terminal device <NUM> is determined to change based on the state information of the first sensor <NUM>.

It may be understood that if the state of the terminal device <NUM> does not change, the process returns to step S200 to continue monitoring whether the configuration of the terminal device <NUM> changes, and the actual power of the antenna of the terminal device <NUM> can be adjusted in time when the configuration changes. If the state of the terminal device <NUM> is changed, step S300 is performed to continue to determine the current configuration of the terminal device <NUM>.

S300: Determine whether the configuration of the terminal device is changed from the first configuration to the second configuration.

It may be understood that, after obtaining the change of the configuration of the terminal device <NUM>, it is further determined whether the configuration of the terminal device <NUM> is changed from the first configuration to the second configuration. It may be understood that the first sensor <NUM> only generates the state information when the terminal device <NUM> switches from the first configuration to the second configuration, or switches from the second configuration to the first configuration, so if the terminal device <NUM> is not the second configuration, the terminal device is the first configuration. If the configuration of the terminal device <NUM> is changed from the first configuration to the second configuration, step S410 is performed. If the configuration of the terminal device <NUM> is changed from the second configuration to the first configuration, step S420 is performed.

S410: Obtain a fallback power of the second configuration.

It may be understood that, if the current configuration of the terminal device <NUM> is the second configuration, a preset output power level truth table is searched based on the second configuration.

The matching mechanism of the truth table is described below in conjunction with Table <NUM>.

It may be understood that the output power level truth table is stored in the application processor <NUM>. The preset power level and the fallback power in the truth table are set based on the antenna gain of the terminal device <NUM> in different configurations. Specifically, the output power corresponding to the fallback power is the maximum power that the terminal device <NUM> meets the regulatory requirements in the current configuration.

It may be understood that the application processor <NUM> matches the power level corresponding to the terminal device <NUM> based on the current configuration. When the application processor <NUM> obtains the configuration of the terminal device <NUM> is the second configuration, the application processor searches the table and obtains the power level corresponding to the second configuration as <NUM>.

It may be understood that, after the application processor <NUM> obtains the power level corresponding to the second configuration is <NUM>, the application processor continues to obtain the corresponding fallback power P2, and controls the terminal device <NUM> to set the fallback power to P2.

For example, that the maximum power P<NUM> supported by the terminal device <NUM> is <NUM> dB, the fallback power P1 is -<NUM> dB, and the fallback power P2 is -<NUM> dB is used as an example. When the first sensor <NUM> detects that the terminal device <NUM> is in the first configuration, the output power level truth table is used for obtaining that the level of the terminal device <NUM> is <NUM>, the fallback power is P1, and the output power of terminal device <NUM> is adjusted to P<NUM> + P1 = <NUM> + (-<NUM>) = 15dB, so that the terminal device <NUM> can reach the maximum power that meets the regulatory requirements in the first configuration.

S420: Obtain a first configuration power level.

It may be understood that, if the current configuration of the terminal device <NUM> is the first configuration, the truth table is searched based on the first configuration.

It may be understood that, after the application processor <NUM> obtains the power level corresponding to the first configuration is <NUM>, the application processor continues to obtain the corresponding fallback power P1, and controls the terminal device <NUM> to set the fallback power to P1.

S500: Output a corresponding power value.

It may be understood that the terminal device <NUM> sets the output power of the terminal device <NUM> based on the obtained fallback power P1 or P2.

It may be understood that the use of the power management method provided by embodiments of this application can enable the terminal device <NUM> to achieve the maximum transmit power under regulatory conditions in different configurations, and improve the total radiated power of the terminal device <NUM>.

It may be understood that, in some embodiments, when the terminal device <NUM> switches to the first configuration or the second configuration, a built-in software system generates the corresponding configuration information. The application processor <NUM> may obtain the current configuration of the terminal device <NUM> by reading configuration information in the software system, and reads the truth table based on the current configuration of the terminal device <NUM>.

It may be understood that the power management method provided by embodiments of this application can be applied to a communication manner where relevant regulations limit the transmission power, such as Wi-Fi, a cellular network, NFC, Bluetooth, GPS, and Beidou.

<FIG> is a schematic flowchart of a power management method according to another embodiment of this application.

It may be understood that step S100 to step S500 in the power management method shown in <FIG> are the same as step S100 to step S500 in <FIG>, which are not described herein in detail.

It may be understood that, compared with <FIG>, the power management method shown in <FIG> further includes the following steps.

S010: The terminal device is powered on.

It may be understood that the application processor <NUM> detects whether the terminal device <NUM> is in a power-on state, and if the terminal device <NUM> is turned on, the state of the first sensor <NUM> is continuously detected, that is, step S200 is performed.

S600: Determine whether the terminal device is turned off.

It may be understood that the application processor also monitors whether the terminal device <NUM> has performed a shutdown operation when the application processor <NUM> monitors the state of the first sensor <NUM>. If the terminal device <NUM> has performed the shutdown operation, step S700 is performed. If it is determined that the terminal device <NUM> does not perform the shutdown operation, the process returns to step S200 to continue monitoring the terminal device.

It may be understood that the terminal device <NUM> is controlled to complete the shutdown operation when the application processor <NUM> detects that the terminal device <NUM> performs the shutdown operation. That is, the performing of the power management method is stopped.

It may be understood that the power management method shown in <FIG> adds a switch detection function. Obviously, after the switch detection function is added, the application processor <NUM> may continue to monitor the state of the first sensor <NUM> after the terminal device <NUM> is turned on, to monitor the configuration of the terminal device <NUM> throughout the whole process after the startup.

Referring to <FIG>, compared with <FIG>, the terminal device <NUM> further includes a second sensor <NUM>, a third sensor <NUM> and a fourth sensor <NUM>.

It may be understood that the first sensor <NUM> and the second sensor <NUM> are arranged on the first component <NUM>, to detect acceleration and gravity of the first component <NUM>.

For example, the first sensor <NUM> and the second sensor <NUM> may be the motion sensor or another sensor. As a type of the motion sensor, an accelerometer sensor may detect a magnitude of acceleration in various directions (generally three axes), and may detect a magnitude and a direction of gravity when static, which can be configured to identify the angle of the terminal device <NUM> and the displacement and the angle of the first component <NUM>. The first sensor <NUM> and the second sensor <NUM> may further include a pressure sensor, a gyroscope, a barometer, an infrared sensor, and the like, which are not described herein in detail.

It may be understood that the third sensor <NUM> and the fourth sensor <NUM> are arranged on the second component <NUM>, to detect acceleration and gravity of the first component <NUM>.

For example, the third sensor <NUM> and the fourth sensor <NUM> may be the motion sensor or another sensor. As a type of the motion sensor, an accelerometer sensor may detect a magnitude of acceleration in various directions (generally three axes), and may detect a magnitude and a direction of gravity when static, which can be configured to identify the angle of the terminal device <NUM> and the displacement and the angle of the second component <NUM>. The third sensor <NUM> and the fourth sensor <NUM> may further include a pressure sensor, a gyroscope, a barometer, an infrared sensor, and the like, which are not described herein in detail.

It may be understood that, after obtaining the magnitude and the direction of the gravity of the first component <NUM> and the second component <NUM>, a Cartesian coordinate system can be established on the first component <NUM> and the second component <NUM>, respectively, and the included angle between the first component <NUM> and the second component <NUM> can be calculated based on the Cartesian coordinate system.

It may be understood that, after calculating the included angle between the first component <NUM> and the second component <NUM>, the power of the terminal device <NUM> is adjusted based on the antenna gain corresponding to the included angle of the terminal device <NUM>.

Referring to <FIG> together, the terminal device <NUM> in <FIG> further shows directions of a Cartesian coordinate system O1, a Cartesian coordinate system O2, and gravity G.

For example, corresponding coordinate systems may be provided on the first component <NUM> and the second component <NUM>, respectively. For example, the Cartesian coordinate system O1 may be provided in the second component <NUM>. An x-axis is parallel to a short side of the second component <NUM>, a y-axis is parallel to a long side of the second component <NUM>, and a z-axis points outward relative to the second component <NUM> perpendicularly to a plane composed of the x-axis and the y-axis in the Cartesian coordinate system O1. Similarly, the Cartesian coordinate system O2 may be provided in the first component <NUM>. The x-axis is parallel to a short side of the first component <NUM>, the y-axis is parallel to a long side of the first component <NUM>, and the z-axis points inward relative to the first component <NUM> perpendicularly to the plane composed of the x-axis and the y-axis in the Cartesian coordinate system O2.

For example, the third sensor <NUM> and the fourth sensor <NUM> in the second component <NUM> may detect the magnitude and the direction of the gravity G in the Cartesian coordinate system O1, and the first sensor <NUM> and the second sensor <NUM> in the first component <NUM> can detect the magnitude and the direction of the gravity G in the Cartesian coordinate system O2. Since the direction of the y-axis in the Cartesian coordinate system O1 and the Cartesian coordinate system O2 is the same, a component G1 of the gravity G on the x-axis and z-axis planes in the Cartesian coordinate system O1 is equal in magnitude but different in direction from the component G2 of the gravity G on the x-axis and z-axis planes in the Cartesian coordinate system O2. In this case, an included angle between the component G1 and the component G2 is β, and the included angle α = <NUM>° -β between the second component <NUM> and the first component <NUM>.

It may be understood that the electronic device <NUM> obtains the included angle α between the second component <NUM> and the first component <NUM> by calculating the included angle β between the component G1 of the gravity G in the Cartesian coordinate system O1 and the component G2 of the gravity G in the Cartesian coordinate system O2.

In some other embodiments, as shown in <FIG>, since the direction of the y-axis in the Cartesian coordinate system O1 and the Cartesian coordinate system O2 is the same, the included angle between the x-axis in the Cartesian coordinate system O1 and the x-axis in the Cartesian coordinate system O2 is also equal to β. That is to say, the terminal device <NUM> can also detect the included angle β between the x-axis in the Cartesian coordinate system O1 and the x-axis in the Cartesian coordinate system O2, and then calculate the included angle α = <NUM>° - β between the second component <NUM> and the first component <NUM>.

For example, when the terminal device <NUM> of the second component <NUM> and the first component <NUM> move inward, the included angle α between the second component <NUM> and the first component <NUM> may vary within a closed interval composed of <NUM>° to <NUM>°. For example, when the terminal device <NUM> of the second component <NUM> and the first component <NUM> move outward, the included angle α between the second component <NUM> and the first component <NUM> may vary within a closed interval composed of <NUM>° to <NUM>°. Alternatively, the included angle α between the second component <NUM> and the first component <NUM> may also vary within a closed interval composed of <NUM> ° to <NUM>°, which is not limited in this embodiment of this application.

For example, the angle values of the included angle between the first component <NUM> and the second component <NUM> are respectively obtained at a plurality of sampling time points in a preset time period. If one angle value of the included angle between the first component <NUM> and the second component <NUM> can be obtained at one sampling time point, a plurality of angle values of the included angle between the first component <NUM> and the second component <NUM> can be obtained at a plurality of sampling time points. The plurality of angle values are obtained to accurately determine the angle value between the first component <NUM> and the second component <NUM>.

It should be noted that if the terminal device <NUM> includes three or more components, the angle value of the included angle of the terminal device <NUM> includes the angle value of the included angle between all adjacent two components. For example, if the terminal device <NUM> includes three components, the angle value of the included angle of the terminal device <NUM> includes an angle value of the included angle between the first component <NUM> and the second component <NUM>, and an angle value of the included angle between the second component <NUM> and the third component, which are not enumerated here.

It may be understood that the application processor <NUM> obtains the included angle α between the first component <NUM> and the second component <NUM> calculated based on the Cartesian coordinate system O1 and the Cartesian coordinate system O2.

It may be understood that the calculation manner of the included angle α between the first component <NUM> and the second component <NUM> is the same as that shown in <FIG>.

S210: Determine whether the included angle α is in a first interval.

It may be understood that the application processor <NUM> determines whether the included angle α is in the first interval after obtaining the included angle α. If the included angle α is in the first interval, step S430 is performed to match the power of the terminal device <NUM> to a first interval truth table.

S220: Determine whether the included angle α is in a second interval.

It may be understood that the application processor <NUM> determines whether the included angle α is in the second interval after obtaining the included angle α. If the included angle α is in the second interval, step S440 is performed to match the power of the terminal device <NUM> to a second interval truth table.

S230: Determine whether the included angle α is in a third interval.

It may be understood that the application processor <NUM> determines whether the included angle α is in the third interval after obtaining the included angle α. If the included angle α is in the third interval, step S450 is performed to match the power of the terminal device <NUM> to a third interval truth table.

It may be understood that the power management method shown in <FIG> sets three different intervals based on the included angle α. The antenna gain of the terminal device <NUM> is different in each interval, and the transmit power of the terminal device <NUM> at different unfolding angle intervals can be optimized by using the power management method provided by the embodiment of this application, so that the terminal device <NUM> has a higher total radiated power.

It may be understood that the power management method provided by the embodiment of this application can set different included angle intervals based on the antenna gain of the terminal device <NUM> at different unfolding angles. For example, two, four, or more included angle intervals may be arranged, which is not limited in this application.

In combination with Table <NUM>, parameters of the terminal device <NUM> at different unfolding angles are described below.

It may be understood that the parameter explanation and units in Table <NUM> refer to Table <NUM>. As shown in Table <NUM>, the application processor <NUM> can adjust the actual power of the terminal device <NUM> based on the antenna gain change when the terminal device <NUM> is in different angle intervals, and may have a higher total radiated power if the regulations are met.

It may be understood that if the antenna gain in the interval where the terminal device <NUM> is located is a range value, the maximum antenna gain within the range value is taken to set the actual power to avoid the power spectral density of terminal device <NUM> from exceeding the regulatory limit.

For example, if the unfolding angle of the terminal device <NUM> is in the second interval, and the antenna gain of the terminal device <NUM> when in the second interval is <NUM> dB to <NUM> dB, the antenna gain of <NUM> dB is taken to calculate the actual power when calculating the maximum value of the actual power, to obtain the actual power of <NUM> dB. It may be understood that the actual power is <NUM> dB if the antenna gain is <NUM> dB. When the terminal device <NUM> is in a region adjacent to the first interval in the second interval, the terminal device may exceed the power spectral density specified by the regulations.

S430: Obtain a first interval power level.

It may be understood that the application processor <NUM> stores the output power level truth table.

It may be understood that, referring to <FIG> and <FIG>, the application processor <NUM> performs the same manner as in <FIG> and Table <NUM> for matching the truth table after obtaining the included angle interval.

It may be understood that the application processor <NUM> obtains the first interval power level, and reads the corresponding fallback power based on the first interval level.

S440: Obtain a second interval power level.

It may be understood that the application processor <NUM> obtains the second interval power level, and reads the corresponding fallback power based on the second interval level.

S450: Obtain a third interval power level.

It may be understood that the application processor <NUM> obtains the third interval power level, and reads the corresponding fallback power based on the third interval level.

It may be understood that the application processor <NUM> adjusts the output power of the terminal device <NUM> based on the corresponding fallback level, to optimize the total radiated power of the terminal device <NUM> within the range specified by the regulations and the communication performance of the terminal device <NUM>.

It may be understood that, similar to the embodiment in <FIG>, the power management method shown in <FIG> may further include a switch detection. For details, reference may be made steps S010, S600, and S700 in <FIG>, which are not described herein in detail.

It may be understood that, when the terminal device <NUM> and the terminal device <NUM> have different communication modes and the different communication modes have limits on the transmit power, the power management method provided by embodiments of this application can consider the transmission power limits of different regulations for different or the same communication manners.

The power management mechanism under different regulations is described below in conjunction with Table <NUM>.

It may be understood that, taking an example that terminal device <NUM> or the terminal device <NUM> needs to satisfy both regulations, when the terminal device <NUM> or terminal device <NUM> is in the first configuration, the first regulation power limit (P1) and the second regulation power limit (P2) are obtained, and a smaller value of the first regulation power limit (P1) and the second regulation power limit (P2) is a highest power limit of the terminal device <NUM> or the terminal device <NUM>.

It may be understood that, when the terminal device <NUM> or the terminal device <NUM> is in the second configuration, a smaller value of the third regulation power limit (P3) and the fourth regulation power limit (P4) is a maximum power limit of the terminal device <NUM> or the terminal device <NUM>.

An embodiment of this application further provides a storage medium configured to store a computer program. When the computer program is executed by the processor, the power management method shown in step S200 to step S500 in <FIG>, step S010 to step S700 in <FIG>, and step S110 to step S610 in <FIG> provided by the embodiment of this application is realized.

The storage medium includes volatile and nonvolatile media, and removable and non-removable media implemented by using any method or technology used for storing information (such as computer readable instructions, data structures, program modules, or other data). The storage medium includes but are not limited to a random access memory (Random Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a flash memory or another memory, a compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), a digital versatile disc (Digital Versatile Disc, DVD) or another optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or another magnetic storage apparatus, or any other medium that can be used for storing desired information and can be accessed by a computer.

<FIG> is a terminal device <NUM> according to another embodiment of this application. As shown in <FIG>, the terminal device <NUM> includes a sensor <NUM>, a processor <NUM>, a memory <NUM>, and a connection module <NUM>.

Claim 1:
A power management method applicable to a foldable terminal device, the method comprising:
obtaining a configuration change signal of the terminal device (S300) in response to a configuration change of a terminal device (S200);
searching a preset output power level truth table of the terminal device based on the configuration change signal of the terminal device, wherein the output power level truth table comprises a power level and a fallback power of the terminal device in the configuration;
obtaining the power level and the fallback power of the terminal device based on the output power level truth table (S410);
setting an output power of the terminal device based on the fallback power of the terminal device, wherein the output power is a maximum power that meets regulatory requirements in a current configuration; and
outputting a corresponding power value based on the power level (S500).