Display method, device and electronic equipment of foldable screen
By using a compass to obtain magnetic flux and combining it with an accelerometer and gyroscope to detect the foldable screen status, the half-screen display problem caused by Hall sensor damage was solved, enabling full-screen display and improving the user experience.
Patent Information
- Application Number
- CN202310459067.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2043-04-20
AI Technical Summary
In existing technologies, when the Hall sensor is damaged, electronic devices cannot detect when the foldable screen switches from a folded state to an unfolded state, resulting in only half-screen display and inability to display the interface in full screen.
By using a compass to obtain magnetic flux in electronic devices, combined with an accelerometer and gyroscope, the unfolded and folded states of the foldable screen are detected to achieve the display of the interface.
Without increasing hardware costs, the collapse and unfold functionality has been fixed, improving the user experience and ensuring that the interface can be displayed in full screen in different states.
Smart Images

Figure CN118824115B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to a display method, apparatus and electronic device for a foldable screen. Background Technology
[0002] With the development of flexible screen technology, foldable screens have been applied to electronic devices, allowing users to fold or unfold the screen to meet their needs for different screen sizes. Typically, the foldable screen installed in an electronic device can fold into different states depending on the user's orientation; for example, a user can fold the screen to switch it from an unfolded to a folded state.
[0003] Existing technologies use Hall effect sensors, accelerometers (ACC), and gyroscopes (gyro) to detect the unfolded and folded states of foldable screens. Therefore, if a Hall effect sensor malfunctions, the electronic device cannot detect the event of the screen switching from a folded to an unfolded state, resulting in the device only being able to display half the screen. Summary of the Invention
[0004] This application provides a display method, apparatus, and electronic device for a foldable screen. It also provides a computer-readable storage medium to enable an electronic device to obtain magnetic flux via a compass, detect the unfolded and folded states of the foldable screen based on the magnetic flux, and thus display the electronic device's interface through the folded or unfolded screen in the corresponding state. This achieves the restoration of the folding / unfolding function without increasing hardware costs, thereby improving the user experience.
[0005] In a first aspect, embodiments of this application provide a display method for a foldable screen, applied to an electronic device including a foldable screen. The foldable screen can be folded to form at least two screens, the at least two screens including a first screen and a second screen. In the folded state, the first screen and the second screen face away from each other. The method includes: activating a compass in the electronic device to obtain magnetic flux; activating an accelerometer and a gyroscope in the electronic device based on the magnetic flux to obtain acceleration data and angular velocity data; and displaying the interface of the electronic device on the first screen and / or the second screen based on the acceleration data and the angular velocity data.
[0006] In the above-described foldable screen display method, the electronic device activates its compass to obtain magnetic flux. Then, based on the magnetic flux, it activates the accelerometer and gyroscope to obtain acceleration and angular velocity data. Finally, based on the acceleration and angular velocity data, it displays the electronic device's interface on the first and / or second screen. This allows the electronic device to obtain magnetic flux through the compass, detect the unfolded and folded states of the foldable screen based on the magnetic flux, and then display the electronic device's interface through the unfolded or folded screen in the corresponding state. This restores the folding and unfolding function without increasing hardware costs, thus improving the user experience.
[0007] In one possible implementation, the electronic device includes a Hall sensor; activating the compass in the electronic device includes activating the compass in the electronic device after detecting that the Hall sensor is damaged.
[0008] In one possible implementation, detecting the damage to the Hall sensor includes: after the electronic device is powered on, communicating with the Hall sensor to identify whether the Hall sensor is in place; when the Hall sensor is not in place, determining that the Hall sensor is damaged.
[0009] In one possible implementation, after detecting that the Hall sensor is damaged, the method further includes: removing the Hall sensor from the sensor list of the electronic device.
[0010] In one possible implementation, activating the compass in the electronic device includes: acquiring the state of the electronic device; and activating the compass in the electronic device after the electronic device exits the static state.
[0011] In one possible implementation, activating the compass in the electronic device includes adding the compass in the electronic device to the sensor list of the electronic device.
[0012] In one possible implementation, acquiring the magnetic flux includes: periodically acquiring the magnetic flux; activating the accelerometer and gyroscope in the electronic device based on the magnetic flux includes: calculating the change in magnetic flux acquired in two adjacent periods based on the periodically acquired magnetic flux; and activating the accelerometer and gyroscope in the electronic device when the change is greater than or equal to a change threshold.
[0013] In one possible implementation, displaying the interface of the electronic device on the first screen and / or the second screen based on the acceleration data and the angular velocity data includes: determining the angle between the first screen and the second screen based on the acceleration data and the angular velocity data; and displaying the interface of the electronic device on the first screen and / or the second screen based on the angle.
[0014] In one possible implementation, displaying the interface of the electronic device on the first screen and / or the second screen according to the included angle includes: when the included angle is greater than or equal to an angle threshold, determining that the foldable screen is in an unfolded state, and displaying the interface of the electronic device on the first screen and the second screen; when the included angle is less than the angle threshold, determining that the foldable screen is in a folded state, and displaying the interface of the electronic device on the first screen or the second screen.
[0015] In one possible implementation, the electronic device includes a first processor and a second processor; activating the compass in the electronic device to obtain magnetic flux includes: the first processor activating the compass in the electronic device to obtain magnetic flux; activating the accelerometer and gyroscope in the electronic device based on the magnetic flux to obtain acceleration data and angular velocity data includes: the first processor activating the accelerometer and gyroscope in the electronic device based on the magnetic flux to obtain acceleration data and angular velocity data; determining the angle between the first screen and the second screen based on the acceleration data and the angular velocity data includes: the first processor determining the angle between the first screen and the second screen based on the acceleration data and the angular velocity data.
[0016] In one possible implementation, after the first processor acquires the magnetic flux, it further includes: the first processor activating the angle sensor in the electronic device based on the magnetic flux; after the first processor determines the angle between the first screen and the second screen based on the acceleration data and the angular velocity data, it further includes: the first processor waking up the second processor and reporting the angle to the second processor through the angle sensor, so that the second processor can display the interface of the electronic device on the first screen and / or the second screen based on the angle.
[0017] In one possible implementation, after activating the angle sensor in the electronic device, the first processor further includes turning off the angle sensor after the screen of the electronic device is turned off.
[0018] Secondly, embodiments of this application provide a foldable screen display device, which is included in an electronic device and has the function of implementing the behaviors of the electronic device in the first aspect and possible implementations of the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a startup module and a display module.
[0019] Thirdly, embodiments of this application provide an electronic device, including: one or more processors; a memory; multiple application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the method provided in the first aspect.
[0020] It should be understood that the second and third aspects of the embodiments of this application are consistent with the technical solutions of the first aspect of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again.
[0021] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect.
[0022] Fifthly, embodiments of this application provide a computer program that, when executed by a computer, performs the method provided in the first aspect.
[0023] In one possible design, the program in the fifth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0024] Figure 1 A schematic diagram of the angle between folded screens provided for existing related technologies;
[0025] Figure 2 A schematic diagram of a half-screen display for an electronic device provided by existing related technologies;
[0026] Figure 3 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0027] Figure 4 A flowchart illustrating a foldable screen display method according to an embodiment of this application;
[0028] Figure 5A schematic diagram illustrating the change in magnetic flux of a foldable screen as it unfolds, provided in one embodiment of this application;
[0029] Figure 6 A flowchart illustrating a foldable screen display method according to another embodiment of this application;
[0030] Figure 7 A flowchart illustrating a foldable screen display method provided in yet another embodiment of this application;
[0031] Figure 8 A flowchart illustrating a foldable screen display method provided in yet another embodiment of this application;
[0032] Figure 9 A schematic diagram of the structure of an electronic device provided in another embodiment of this application;
[0033] Figure 10 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0034] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.
[0035] A device with a foldable screen (also referred to as a "foldable electronic device", "foldable screen device" or "electronic device") specifically refers to an electronic device with a foldable display screen. The foldable display screen in the electronic device can be a single flexible display screen, or a splicing display screen composed of multiple flexible display screens and a hinge between each two flexible display screens, or a splicing display screen composed of multiple rigid screens and a flexible screen between each two rigid screens, or a splicing display screen composed of multiple rigid screens and a hinge between each two rigid screens, etc. The embodiments of this application do not limit this.
[0036] Folded state refers to the posture / shape of an electronic device's display screen after it has been folded. Users can adjust the angle between the folded screens by folding the display screen, thus creating a folded state. Therefore, the folded state of a display screen can be characterized by the angle between the folded screens. Figure 1 A schematic diagram illustrating the angle between folded screens provided for existing related technologies. Figure 1 In the diagram, ∠β is the angle between the folded screens.
[0037] In existing related technologies, Hall effect sensors, accelerometers, and gyroscopes are used to detect the unfolded and folded states of a foldable screen. Each of the two screens of the foldable screen has one accelerometer and one gyroscope. To save power, the Hall effect sensors, two accelerometers, and two gyroscopes are all located on the sensor hub side. The accelerometer provides data on gravitational acceleration in three dimensions, corresponding to the three axes: x-axis, y-axis, and z-axis. The gyroscope provides data on angular velocity in three dimensions, corresponding to the three axes: x-axis, y-axis, and z-axis.
[0038] Because a magnet is installed on one of the screens of the foldable screen, the magnetic flux detected by the Hall sensor will change when the state of the foldable screen changes. After acquiring the magnetic flux reported by the Hall sensor, the sensor hub determines whether the magnetic flux reported by the Hall sensor is greater than a threshold value. If it is greater, the sensor hub activates the virtual angle sensor in the electronic device, and then activates two accelerometers and two gyroscopes. After acquiring the acceleration data provided by the two accelerometers and the angular velocity data provided by the two gyroscopes, the sensor hub can calculate the angle between the two screens of the foldable screen based on the above acceleration data and angular velocity data.
[0039] Then, the sensor hub wakes up the application processor (AP) and reports the angle to the AP via the angle sensor. The AP then determines whether the foldable screen is in an unfolded or folded state based on the angle. In this way, the AP can display the electronic device's interface in full screen or half screen depending on the state of the foldable screen.
[0040] However, if the Hall sensor is damaged, it cannot detect magnetic flux. Consequently, the sensor hub cannot acquire the magnetic flux, and therefore the angle sensor will not activate. Consequently, it cannot report the angle between the two screens to the access point (AP). The AP cannot determine the foldable screen's state based on this angle. Thus, when the foldable screen changes from a folded to an unfolded state, the AP cannot recognize the change and cannot adjust the half-screen display to a full-screen display, resulting in the electronic device only being able to display half-screen. Figure 2 A schematic diagram of a half-screen display in an electronic device provided by existing related technologies, such as... Figure 2 As shown, after the foldable screen of an electronic device changes from a folded state to an unfolded state, the electronic device still only displays the interface of the electronic device on the left half of the screen, and cannot display the interface of the electronic device in full screen.
[0041] In existing technologies, only replacing the motherboard can solve the problem of half-screen display in electronic devices.
[0042] Based on the above problems, this application provides a display method for a foldable screen, which enables electronic devices to obtain magnetic flux through a compass, detect the unfolded and folded states of the foldable screen based on the magnetic flux, and thus display the interface of the electronic device through the folded or unfolded foldable screen in the corresponding state, thereby improving the user experience.
[0043] The foldable screen display method provided in this application embodiment can be applied to electronic devices, wherein the aforementioned electronic devices can be smartphones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc.; this application embodiment does not impose any restrictions on the specific type of electronic device.
[0044] For example, Figure 3 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application, as shown below. Figure 3 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope 180B, a compass 180C, a Hall sensor 180D, an accelerometer 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0045] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0046] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0047] In one embodiment of this application, the electronic device 100 may include two processing units. One processing unit has strong processing power and high power consumption, and is used to handle complex tasks, such as application-related tasks; this processing unit is, for example, an application processing unit (AP). The other processing unit has weaker processing power and lower power consumption, and is used to handle simple tasks, such as collecting Bluetooth data and sensor data and determining the location of the terminal device; this processing unit is, for example, a sensor hub. The two processing units may be physically separate and transmit information via wired or wireless communication; alternatively, the two processing units may be integrated on a single substrate.
[0048] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0049] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0050] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0051] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (DCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0052] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0053] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0054] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0055] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0056] The GPIO interface is configurable via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0057] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0058] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0059] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via a USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 via the power management module 141.
[0060] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0061] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0062] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0063] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0064] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0065] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0066] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-CDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0067] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0068] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include N displays 194, where N is a positive integer greater than 1.
[0069] In this embodiment, the display screen 194 is also referred to as a foldable touchscreen, a foldable screen, or a foldable display, etc. The display screen 194 can be folded to form at least two screens, the at least two screens including a first screen and a second screen, and the first screen and the second screen face away from each other when the display screen 194 is folded.
[0070] As the display screen 194 changes from displaying the application interface as a single, complete screen before folding to displaying the application interface on each screen after folding, it can be understood that the display screen 194 forms a visually "independent screen" after folding.
[0071] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0072] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0073] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0074] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0075] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0076] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0077] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0078] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0079] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0080] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0081] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0082] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0083] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0084] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0085] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0086] The gyroscope 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope 180B can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The gyroscope 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope 180B can also be used in navigation and motion-sensing game scenarios.
[0087] The Compass 180C, also known as an "electronic compass," is a magnetic sensor based on the Hall effect that measures the direction of the Earth's magnetic field, thus indicating the geographic North and South Poles.
[0088] The Hall sensor 180D is a magnetic sensor. The electronic device 100 can use the Hall sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the Hall sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic unlocking of the flip cover can be set.
[0089] Hall sensor 180D is used to detect magnetic flux. In electronic device 100 with a foldable screen, since a magnet is installed on one of the screens of the foldable screen, the magnetic flux detected by Hall sensor 180D changes when the folded / unfolded state of the foldable screen changes. Based on the change in magnetic flux detected by Hall sensor 180D, processor 110 can recognize that the folded / unfolded state of the foldable screen has changed.
[0090] It should be noted that, in the embodiments of this application, the electronic device 100 may or may not include the Hall sensor 180D.
[0091] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0092] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0093] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0094] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0095] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0096] Temperature sensor 180J is used to detect temperature. In some embodiments, terminal device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, terminal device 100 reduces the performance of the processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, terminal device 100 heats battery 142 to prevent abnormal shutdown of terminal device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, terminal device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0097] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0098] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.
[0099] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0100] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0101] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0102] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0103] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 3 Taking the electronic device 100 with the structure shown as an example, and in conjunction with the accompanying drawings and application scenarios, the display method of the foldable screen provided in this application embodiment will be specifically described.
[0104] Figure 4 This is a flowchart of a foldable screen display method provided in one embodiment of this application. The foldable screen display method can be applied to an electronic device 100 including a foldable screen. The foldable screen can be folded to form at least two screens, including a first screen and a second screen. In the folded state, the first screen and the second screen face away from each other.
[0105] like Figure 4 As shown, the above-mentioned display method for foldable screens may include:
[0106] Step 401: Electronic device 100 activates the compass 180C in electronic device 100 to obtain magnetic flux.
[0107] Specifically, the electronic device 100 can activate the compass 180C in the electronic device 100 by adding the compass 180C in the electronic device 100 to the sensor list of the electronic device 100.
[0108] In addition, in a specific implementation, the electronic device 100 can first detect whether the compass 180C is damaged. After confirming that the compass 180C is not damaged, the first processor adds the compass 180C to the sensor list of the electronic device 100.
[0109] Step 402: Based on the above magnetic flux, the electronic device 100 activates the accelerometer 180E and gyroscope 180B in the electronic device 100 to acquire acceleration data and angular velocity data.
[0110] Specifically, because a magnet is installed on one of the screens of the foldable screen, the magnetic flux reported by the compass 180C will change when the state of the foldable screen changes. Figure 5 This is a schematic diagram illustrating the change in magnetic flux of a foldable screen as it unfolds, according to one embodiment of this application. Figure 5 As can be seen, during the process of the folding screen unfolding, the magnetic flux along the z-axis changes from 600 to -600. In addition, the magnetic flux along the x-axis and y-axis also changes significantly. Therefore, the electronic device 100 can identify the change in the state of the folding screen based on the change in magnetic flux.
[0111] In a specific implementation, the electronic device 100 acquires the magnetic flux periodically. Based on this magnetic flux, the electronic device 100 activates the accelerometer 180E and gyroscope 180B by calculating the change in magnetic flux acquired between adjacent periods. When this change is greater than or equal to a threshold value, the accelerometer 180E and gyroscope 180B are activated. This threshold value can be set according to system performance and / or implementation requirements. This embodiment does not limit the value of the threshold value; for example, it can be 500.
[0112] In addition, in this embodiment, the period for the electronic device 100 to acquire magnetic flux can be set by itself. For example, the above period can be 200 milliseconds. This embodiment does not limit the period for the electronic device 100 to acquire magnetic flux.
[0113] Step 403: The electronic device 100 displays its interface on the first screen and / or the second screen based on the acceleration data and angular velocity data mentioned above.
[0114] The aforementioned acceleration data may include gravitational acceleration data corresponding to the three axes in a three-dimensional coordinate system, and the aforementioned angular velocity data may include angular velocity data corresponding to the three axes in a three-dimensional coordinate system. The aforementioned acceleration and angular velocity data can describe the attitude of the electronic device 100. Therefore, based on the aforementioned acceleration and angular velocity data, the electronic device 100 can determine the angle between the first screen and the second screen, and then display the interface of the electronic device 100 on the first screen and / or the second screen according to the aforementioned angle.
[0115] Specifically, based on the aforementioned included angle, the interface of the electronic device 100 displayed on the first screen and / or the second screen can be as follows: when the included angle is greater than or equal to an angle threshold, the electronic device 100 determines that the foldable screen is in an unfolded state and displays the interface of the electronic device 100 on the first screen and the second screen; when the included angle is less than the aforementioned angle threshold, the electronic device 100 determines that the foldable screen is in a folded state and displays the interface of the electronic device 100 on the first screen or the second screen. The aforementioned angle threshold can be set by the device itself according to system performance and / or implementation requirements during specific implementation. This embodiment does not limit the size of the aforementioned angle threshold; for example, the aforementioned angle threshold can be 70 degrees.
[0116] In the above-described foldable screen display method, the electronic device 100 activates the compass 180C to obtain magnetic flux. Then, based on the magnetic flux, it activates the accelerometer 180E and gyroscope 180B to obtain acceleration and angular velocity data. Finally, based on the acceleration and angular velocity data, it displays the interface of the electronic device 100 on the first and / or second screen. This allows the electronic device 100 to obtain magnetic flux through the compass 180C, detect the unfolded and folded states of the foldable screen based on the magnetic flux, and thus display the interface of the electronic device 100 through the folded or unfolded screen in the corresponding state. This achieves the restoration of the folding and unfolding function without increasing hardware costs, thereby improving the user experience.
[0117] Figure 6 This is a flowchart illustrating a foldable screen display method according to another embodiment of this application. In this embodiment, the electronic device 100 may include a Hall sensor 180D. Figure 6 As shown, this application Figure 4 In the illustrated embodiment, step 401 can be:
[0118] Step 601: After the electronic device 100 detects that the Hall sensor 180D is damaged, it activates the compass 180C in the electronic device 100 to obtain the magnetic flux.
[0119] Specifically, the electronic device 100 can detect a malfunction in the Hall sensor 180D as follows: after powering on, the electronic device 100 communicates with the Hall sensor 180D to determine whether the Hall sensor 180D is present; if the Hall sensor 180D is not present, it is determined that the Hall sensor 180D is malfunctioning. In a more concrete implementation, the electronic device 100 can communicate with the Hall sensor 180D via an inter-integrated circuit (I2C) to determine whether the Hall sensor 180D is present.
[0120] In other words, after the electronic device 100 is powered on, it first checks whether the Hall sensor 180D is damaged. If the Hall sensor 180D is not damaged, the electronic device 100 directly obtains the magnetic flux through the Hall sensor 180D; if the Hall sensor 180D is damaged, the electronic device 100 activates the compass 180C and obtains the magnetic flux through the compass 180C.
[0121] Furthermore, after the electronic device 100 detects that the Hall sensor 180D is damaged, it may also include:
[0122] Step 602, the electronic device 100 removes the Hall sensor 180D from the sensor list of the electronic device 100.
[0123] In this embodiment, after detecting damage to the Hall sensor 180D, the electronic device 100 can obtain the magnetic flux through the compass 180C. When the change in the magnetic flux is greater than or equal to the change threshold, the electronic device 100 activates the accelerometer 180E and the gyroscope 180B. Based on the acceleration data detected by the accelerometer 180E and the angular velocity data detected by the gyroscope 180B, the angle between the first screen and the second screen is determined. Then, the electronic device 100 can display its interface on the first screen and / or the second screen according to the angle. This solves the problem of half-screen display caused by damage to the Hall sensor 180D, which could only be solved by replacing the motherboard. Without increasing hardware costs, the folding and unfolding function is repaired, improving the user experience.
[0124] Figure 7 This is a flowchart illustrating a foldable screen display method according to another embodiment of this application. In this embodiment, the electronic device 100 may not include the Hall sensor 180D. Figure 7 As shown, this application Figure 4 In the illustrated embodiment, step 401 may include:
[0125] Step 701: Electronic device 100 acquires its own status.
[0126] Step 702: After the electronic device 100 exits the stationary state, the electronic device 100 activates the compass 180C in the electronic device 100 to obtain the magnetic flux.
[0127] In other words, in this embodiment, the compass 180C replaces the Hall sensor 180D. After the electronic device 100 is detected to have exited the stationary state, the electronic device 100 can activate the compass 180C to detect magnetic flux. The electronic device 100 then acquires the magnetic flux detected by the compass 180C. When the change in the magnetic flux is greater than or equal to a threshold value, the electronic device 100 activates the accelerometer 180E and the gyroscope 180B. Based on the acceleration data detected by the accelerometer 180E and the angular velocity data detected by the gyroscope 180B, the angle between the first screen and the second screen is determined. Then, based on the angle, the interface of the electronic device 100 can be displayed on the first screen and / or the second screen. This solves the problem of half-screen display caused by damage to the Hall sensor 180D, which can only be solved by replacing the motherboard, thus improving the user experience. Furthermore, since the compass 180C is used instead of the Hall sensor 180D in this embodiment, one Hall sensor 180D can be saved, reducing the hardware cost of the electronic device 100.
[0128] Figure 8The flowchart below illustrates a foldable screen display method according to another embodiment of this application. In this embodiment, the electronic device 100 may include a first processor and a second processor. The first processor has low power consumption and can only handle simple tasks, such as determining the angle between the first screen and the second screen. The second processor has higher power consumption and can handle more complex tasks, such as displaying the interface of the electronic device 100 on the first screen and / or the second screen according to the aforementioned angle. For example, the first processor may be a sensor hub, and the second processor may be an access point (AP).
[0129] like Figure 8 As shown, the above-mentioned display method for foldable screens may include:
[0130] Step 801: The first processor activates the compass 180C in the electronic device 100 to obtain the magnetic flux.
[0131] In one implementation, the first processor activates the compass 180C in the electronic device 100 to obtain the magnetic flux. This can be achieved by the first processor detecting that the Hall sensor 180D is damaged and then activating the compass 180C in the electronic device 100 to obtain the magnetic flux.
[0132] Specifically, the first processor can detect that the Hall sensor 180D is damaged as follows: After the electronic device 100 is powered on, the first processor communicates with the Hall sensor 180D to identify whether the Hall sensor 180D is present; when the Hall sensor 180D is not present, the first processor determines that the Hall sensor 180D is damaged. In a specific implementation, the first processor can communicate with the Hall sensor 180D via an inter-integrated circuit (I2C) to identify whether the Hall sensor 180D is present.
[0133] Furthermore, after the first processor detects that the Hall sensor 180D is damaged, the first processor can also delete the Hall sensor 180D from the sensor list.
[0134] In another implementation, the first processor activates the compass 180C in the electronic device 100 to obtain the magnetic flux. This can be achieved by the first processor acquiring the state of the electronic device 100, and after the electronic device 100 exits the stationary state, the first processor activates the compass 180C in the electronic device 100 to obtain the magnetic flux.
[0135] Step 802: The first processor activates the accelerometer 180E and gyroscope 180B in the electronic device 100 according to the above magnetic flux to acquire acceleration data and angular velocity data; and activates the angle sensor in the electronic device 100 according to the above magnetic flux.
[0136] Furthermore, after the first processor activates the angle sensor in the electronic device 100, the process may also include: after the screen of the electronic device 100 is turned off, the first processor turns off the aforementioned angle sensor.
[0137] Step 803: The first processor determines the angle between the first screen and the second screen based on the acceleration data and the angular velocity data.
[0138] Step 804: The first processor wakes up the second processor and reports the angle to the second processor via the angle sensor, so that the second processor can display the interface of the electronic device 100 on the first screen and / or the second screen according to the angle.
[0139] Specifically, the second processor can display the interface of the electronic device 100 on the first screen and / or the second screen according to the aforementioned angle: when the aforementioned angle is greater than or equal to an angle threshold, the second processor determines that the foldable screen is in an unfolded state and displays the interface of the electronic device 100 on the first screen and the second screen; when the aforementioned angle is less than the angle threshold, the second processor determines that the foldable screen is in a folded state and displays the interface of the electronic device 100 on the first screen or the second screen. The aforementioned angle threshold can be set by the system based on performance and / or implementation requirements during specific implementation. This embodiment does not limit the size of the aforementioned angle threshold; for example, the aforementioned angle threshold can be 70 degrees.
[0140] In the above-mentioned foldable screen display method, the first processor activates the compass 180C in the electronic device 100, obtains the magnetic flux reported by the compass 180C, and activates the angle sensor in the electronic device 100, as well as the accelerometer 180E and gyroscope 180B in the electronic device 100 based on the magnetic flux. Then, the first processor acquires the acceleration data detected by the accelerometer 180E and the angular velocity data detected by the gyroscope 180B. Based on the acceleration and angular velocity data, it determines the angle between the first and second screens. Finally, the first processor wakes up the second processor and reports the angle to the second processor via the angle sensor. The second processor then displays the interface of the electronic device 100 on the first and / or second screens based on the angle. This allows the electronic device to detect the unfolded and folded state of the folding screen based on the magnetic flux reported by the compass 180C, and thus display the interface of the electronic device through the folded or unfolded screen in the corresponding state. This solves the problem that the angle sensor cannot be turned on after the Hall sensor 180D is damaged, resulting in the electronic device 100 only being able to display half the screen. Without increasing hardware costs, the folding and unfolding function is repaired, improving the user experience and avoiding the problem of having to replace the motherboard when a single component is damaged.
[0141] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.
[0142] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithm steps of the examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0143] This embodiment can divide the electronic device into functional modules according to the above method embodiment. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0144] Figure 9 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. The electronic device 900 may include a foldable screen, which can be folded to form at least two screens, including a first screen and a second screen. In the folded state, the first screen and the second screen face away from each other. This is further illustrated by dividing the functional modules according to their respective functions. Figure 9 A schematic diagram of a possible composition of the electronic device 900 involved in the above embodiments is shown, such as... Figure 9 As shown, the electronic device 900 may include: a startup module 901 and a display module 902;
[0145] Among them, the startup module 901 is used to start the compass 180C in the electronic device 900 to obtain the magnetic flux;
[0146] The startup module 901 is also used to start the accelerometer 180E and gyroscope 180B in the electronic device 100 according to the above magnetic flux to obtain acceleration data and angular velocity data;
[0147] Display module 902 is used to display the interface of electronic device 100 on a first screen and / or a second screen based on the above-mentioned acceleration data and angular velocity data.
[0148] In this embodiment, the startup module 901 is specifically used to add the compass 180C in the electronic device 900 to the sensor list of the electronic device 900.
[0149] It should be noted that this application Figure 4 All relevant content of each step involved in the method embodiment shown can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0150] The electronic device 900 provided in this embodiment is used to execute this application. Figure 4 The foldable screen display method provided in the illustrated embodiment can achieve the same effect as the method described above.
[0151] Figure 10 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Figure 10 In one implementation of the electronic device 900 shown, the electronic device 900 may include a Hall sensor 180D; and a startup module 901, specifically used to start the compass 180C in the electronic device 900 after detecting that the Hall sensor 180D is damaged.
[0152] The electronic device 900 may also include: a detection module 903;
[0153] The detection module 903 is used to communicate with the Hall sensor 180D after the electronic device 900 is powered on to identify whether the Hall sensor 180D is in place; when the Hall sensor 180D is not in place, it is determined that the Hall sensor 180D is damaged.
[0154] Furthermore, the electronic device 900 may also include a deletion module 904, used to delete the Hall sensor 180D from the sensor list of the electronic device 900 after the detection module 903 detects that the Hall sensor 180D is damaged.
[0155] In another implementation, the startup module 901 is specifically used to obtain the state of the electronic device 900, and to start the compass in the electronic device 900 after the electronic device 900 exits the static state.
[0156] In this embodiment, the startup module 901 is specifically used to periodically acquire magnetic flux and calculate the change in magnetic flux acquired in two adjacent periods based on the periodically acquired magnetic flux. When the change is greater than or equal to the change threshold, the accelerometer 180E and gyroscope 180B in the electronic device 900 are activated.
[0157] The display module 902 is specifically used to determine the angle between the first screen and the second screen based on the acceleration data and the angular velocity data mentioned above; and to display the interface of the electronic device 900 on the first screen and / or the second screen based on the angle mentioned above.
[0158] Specifically, the display module 902 is used to determine that the folding screen is in an unfolded state when the included angle is greater than or equal to an angle threshold, and to display the interface of the electronic device 900 on the first screen and the second screen; and to determine that the folding screen is in a folded state when the included angle is less than an angle threshold, and to display the interface of the electronic device 900 on the first screen or the second screen.
[0159] It should be noted that this application Figures 4-8 All relevant content of each step involved in the method embodiment shown can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0160] The electronic device 900 provided in this embodiment is used to execute this application. Figures 4-8 The foldable screen display method provided in the illustrated embodiment can achieve the same effect as the method described above.
[0161] It should be understood that electronic device 900 can correspond to Figure 3 The electronic device 100 shown. The functions of the startup module 901, display module 902, detection module 903, and deletion module 904 can be determined by… Figure 3 The processor 110 in the electronic device 100 shown is implemented.
[0162] When using integrated units, the electronic device 900 may include a processing module, a storage module, and a communication module.
[0163] The processing module can be used to control and manage the actions of the electronic device 900, for example, it can support the electronic device 900 in executing the steps performed by the aforementioned modules. The storage module can be used to support the electronic device 900 in storing program code and data. The communication module can be used to support communication between the electronic device 900 and other devices.
[0164] The processing module can be a processor or controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as radio frequency circuitry, a Bluetooth chip, and / or a Wi-Fi chip.
[0165] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device 800 involved in this embodiment can be a device having... Figure 3 The device with the structure shown.
[0166] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute this application. Figures 4-8 The method provided in the illustrated embodiment.
[0167] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute this application. Figures 4-8 The method provided in the illustrated embodiment.
[0168] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0169] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0170] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0171] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0172] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A display method for a foldable screen, characterized in that, The method is applied to an electronic device including a foldable screen, the foldable screen can be folded to form at least two screens including a first screen and a second screen, in a folded state, the first screen and the second screen face away from each other, and the method includes: starting a compass in the electronic device to obtain magnetic flux; starting an acceleration sensor and a gyroscope in the electronic device according to the magnetic flux to obtain acceleration data and angular velocity data; displaying an interface of the electronic device on the first screen and / or the second screen according to the acceleration data and the angular velocity data; wherein the obtaining of the magnetic flux includes: periodically obtaining the magnetic flux; the starting of the acceleration sensor and the gyroscope in the electronic device according to the magnetic flux includes: calculating a change amount of the magnetic flux obtained in two adjacent periods according to the periodically obtained magnetic flux; when the change amount is greater than or equal to a change amount threshold, starting the acceleration sensor and the gyroscope in the electronic device.
2. The method of claim 1, wherein, The electronic device includes a Hall sensor; the starting of the compass in the electronic device includes: after detecting that the Hall sensor is damaged, starting the compass in the electronic device.
3. The method of claim 2, wherein, The detection of the damage of the Hall sensor includes: after the electronic device is started, communicating with the Hall sensor to identify whether the Hall sensor is in place; when the Hall sensor is not in place, determining that the Hall sensor is damaged.
4. The method according to claim 2 or 3, characterized in that, After the detection of the damage of the Hall sensor, the method further includes: deleting the Hall sensor from a sensor list of the electronic device.
5. The method of claim 1, wherein, The starting of the compass in the electronic device includes: obtaining a state of the electronic device; after the electronic device exits a static state, starting the compass in the electronic device.
6. The method of claim 1, wherein, The starting of the compass in the electronic device includes: adding the compass in the electronic device to a sensor list of the electronic device.
7. The method of claim 1, wherein, The displaying of the interface of the electronic device on the first screen and / or the second screen according to the acceleration data and the angular velocity data includes: determining an included angle between the first screen and the second screen according to the acceleration data and the angular velocity data; displaying the interface of the electronic device on the first screen and / or the second screen according to the included angle.
8. The method of claim 7, wherein, The displaying of the interface of the electronic device on the first screen and / or the second screen according to the included angle includes: when the included angle is greater than or equal to an angle threshold, determining that the foldable screen is in an unfolded state, and displaying the interface of the electronic device on the first screen and the second screen; when the included angle is less than the angle threshold, determining that the foldable screen is in a folded state, and displaying the interface of the electronic device on the first screen or the second screen.
9. The method of claim 7, wherein, The electronic device includes a first processor and a second processor; The starting of the compass in the electronic device to obtain the magnetic flux includes: the first processor starts the compass in the electronic device to obtain the magnetic flux; The starting of the acceleration sensor and the gyroscope in the electronic device according to the magnetic flux to obtain the acceleration data and the angular velocity data includes: The first processor starts an acceleration sensor and a gyroscope in the electronic device according to the magnetic flux, and obtains acceleration data and angular velocity data; The determining the included angle between the first screen and the second screen according to the acceleration data and the angular velocity data comprises: The first processor determines the included angle between the first screen and the second screen according to the acceleration data and the angular velocity data.
10. The method of claim 9, wherein, After the first processor obtains the magnetic flux, the first processor further comprises: The first processor starts an angle sensor in the electronic device according to the magnetic flux; After the first processor determines the included angle between the first screen and the second screen according to the acceleration data and the angular velocity data, the first processor further comprises: The first processor wakes up the second processor, and reports the included angle to the second processor through the angle sensor, so that the second processor displays the interface of the electronic device on the first screen and / or the second screen according to the included angle.
11. The method of claim 10, wherein, After the angle sensor in the electronic device is started, the first processor further comprises: After the electronic device is turned off, the first processor turns off the angle sensor. 12.A display device of a foldable screen, characterized by, The display device is arranged in an electronic device comprising a foldable screen, the foldable screen can be folded to form at least two screens, the at least two screens comprise a first screen and a second screen, and the first screen and the second screen face away from each other in a folded state; the display device comprises: The starting module is configured to start a compass in the electronic device to obtain magnetic flux; The starting module is further configured to start an acceleration sensor and a gyroscope in the electronic device according to the magnetic flux, and obtain acceleration data and angular velocity data; The display module is configured to display an interface of the electronic device on the first screen and / or the second screen according to the acceleration data and the angular velocity data. The starting module is specifically configured to periodically obtain magnetic flux, and calculate a change amount of the magnetic flux obtained in two adjacent periods according to the periodically obtained magnetic flux; when the change amount is greater than or equal to a change amount threshold, the starting module starts the acceleration sensor and the gyroscope in the electronic device.
13. An electronic device, comprising: Comprise: At least two processors; Memory; A plurality of application programs; And one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs comprise instructions, when the instructions are executed by the electronic device, the instructions make the electronic device execute the method in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, when the computer program is run on a computer, the computer program makes the computer execute the method in any one of claims 1-11.
Citation Information
Patent Citations
Method for displaying application through folding screen and electronic equipment
CN110286972A
Folding angle detection method and device, electronic equipment and readable storage medium
CN115876074A