A control method, control circuit and electronic device
Patent Information
- Application Number
- CN202310820022.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-07-05
Smart Images

Figure CN119271027B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a control method, control circuit and electronic device. Background Technology
[0002] With the rapid development of terminal technology, terminal devices with dual displays are becoming increasingly popular among users; these devices are called dual-screen terminals. In a dual-screen terminal, the display on the front of the device is called the front screen or main screen, and the display on the back is called the rear screen or secondary screen.
[0003] Terminal devices are generally equipped with a central processing unit (CPU), and can also be equipped with a coprocessor to assist the CPU in performing some simple functions, such as receiving sensor detection data, performing simple processing on the sensor detection data, and sending it to the CPU for further processing.
[0004] Currently, for terminal devices with multiple processors and multiple displays, how to achieve low-power control of the processor's display delivery process is a technical problem that needs to be solved. Summary of the Invention
[0005] This application provides a control method, control circuit, and electronic device for low-power control of the processor's display sending process to the display screen in electronic devices with multiple screens and multiple processors.
[0006] In a first aspect, a control circuit is provided, which can be applied to an electronic device having multiple processors and multiple displays. The control circuit may include: a first processor, a second processor, and a switching circuit, wherein the first processor is a main processor and the second processor is a coprocessor. The switching circuit is used to, according to a first control of the first processor, disconnect the connection between the first processor and a first display and open the connection between the second processor and the first display; according to a second control of the second processor, disconnect the connection between the second processor and the first display and open the connection between the first processor and the first display; according to a third control of the second processor, disconnect the connection between the second processor and the second display and open the connection between the first processor and the second display; and according to a fourth control of the first processor, disconnect the connection between the first processor and the second display and open the connection between the second processor and the second display. The first processor controls the switching circuit and drives the first display or the second display connected to the first processor to display data of an application running on the first processor; the second processor controls the switching circuit and drives the second display or the first display connected to the second processor to display data of an application running on the second processor. Optionally, the first display is the main display and the second display is the auxiliary display.
[0007] In the above implementation, the first and second processors can switch between various connection states between the processor and the display screen by controlling the switching circuit, thereby reducing power consumption based on different scenarios. For example, in some scenarios, switching from the connection between the first processor and the first display screen to the connection between the second processor and the first display screen can effectively reduce the power consumption of electronic devices because the second processor has lower power consumption and higher energy efficiency.
[0008] In addition, in some scenarios, switching from connecting the second processor to the second display screen to connecting the first processor to the second display screen can enrich the display control scenarios.
[0009] In one possible implementation, the first processor is specifically configured to: execute a first control or a fourth control if it is determined that the second processor meets the conditions for taking over the first processor; or, execute a first control or a fourth control if it is determined that the first application running on the first processor is closed, wherein the first application is configured to run only on the first processor; or, execute a first control or a fourth control if it is determined that a first operating mode is entered, wherein only the second processor runs in the first operating mode.
[0010] In one possible implementation, the first processor is further configured to: send a first notification to a second processor, the first notification notifying the second processor to take over the execution of the application from the first processor. This implementation allows the application to be migrated from running under a main operating system to running under a lightweight operating system.
[0011] In one possible implementation, the first processor enters a sleep state or powers down after executing the first control or the fourth control, thereby further saving the power consumption of the electronic device.
[0012] In one possible implementation, the second processor is specifically configured to: if it is determined that the first application is started, execute a second control or a third control, wherein the first application is configured to run only on the first processor; or, if it is determined that the second processor does not have the conditions to run the second application, execute a second control or a third control; or, if it is determined to exit the first working mode, execute a second control or a third control, wherein only the second processor runs in the first working mode.
[0013] In one possible implementation, the second processor is further configured to: send a second notification to the first processor, the second notification notifying the first processor to take over running the application from the second processor. This implementation allows the application to be migrated from running under a lightweight operating system to running under a main operating system.
[0014] In one possible implementation, the second processor enters a sleep state or powers down after executing the second or third control, thereby further saving the power consumption of the electronic device.
[0015] In one possible implementation, the switching circuit is further configured to: disconnect the connection between the first processor and the first display screen and open the connection between the second processor and the second display screen according to the fifth control of the first processor; and disconnect the connection between the second processor and the second display screen and open the connection between the first processor and the first display screen according to the sixth control of the second processor.
[0016] Optionally, the first processor is configured to: execute a fifth control if it is determined that the conditions for switching from the first display screen to the second display screen are met. Optionally, the first processor is further configured to: suspend or close a first application running on the first processor, the first application being configured to run only on the first processor. Optionally, the first processor enters a sleep state or powers down after executing the fifth control.
[0017] Optionally, the second processor is specifically configured to: execute a sixth control if it is determined that the conditions for switching from the second display screen to the first display screen are met. Optionally, after executing the sixth control, the second processor enters a sleep state or powers down.
[0018] In one possible implementation, the switching circuit is further configured to: disconnect the connection between the first processor and the first display screen, and open the connection between the first processor and the second display screen, according to the seventh control of the first processor. Optionally, the first processor is specifically configured to: if it is determined that the conditions for switching from the first display screen to the second display screen are met, but the conditions for the second processor to run a third application are not met, then execute the seventh control, wherein the third application is the application currently running in the first processor.
[0019] In one possible implementation, the switching circuit is further configured to: maintain the connection between the first processor and the first display screen and open the connection between the first processor and the second display screen according to the eighth control of the first processor; maintain the connection between the first processor and the first display screen and disconnect the connection between the first processor and the second display screen according to the ninth control of the first processor; maintain the connection between the first processor and the second display screen and open the connection between the first processor and the first display according to the tenth control of the first processor; and maintain the connection between the first processor and the second display screen and disconnect the connection between the first processor and the first display screen according to the eleventh control of the first processor.
[0020] In one possible implementation, the first processor is specifically configured to: if the first display screen is already lit, and the second display screen is detected to be lit, then execute an eighth control; or if the first display screen and the second display screen are already lit, and the second display screen is detected to be off, then execute a ninth control; or if the second display screen is already lit, and the first display screen is detected to be lit, then execute a tenth control; or if the first display screen and the second display screen are already lit, and the first display screen is detected to be off, then execute an eleventh control.
[0021] In one possible implementation, the second processor is also connected to one or more of the following peripherals: memory, microphone, speaker, camera, short-range integrated circuit device, positioning device, and charging module.
[0022] In one possible implementation, the first processor carries a main operating system, and the second processor carries a lightweight operating system. Optionally, the main operating system is HarmonyOS, and the lightweight operating system is HarmonyOS Lightweight.
[0023] In a second aspect, a control method is provided, applied to the control circuit provided in the first aspect. The method includes: when a first processor is connected to a first display screen, controlling a switching circuit to disconnect the connection between the first processor and the first display screen and to open the connection between a second processor and the first display screen; wherein the first processor is used to drive the first display screen connected to the first processor to display data of an application running on the first processor, and the second processor is used to drive the first display screen connected to the second processor to display data of an application running on the second processor. When the second processor is connected to the first display screen, controlling the switching circuit to disconnect the connection between the second processor and the first display screen and to open the connection between the first processor and the first display screen; wherein the second processor is used to drive the second display screen connected to the second processor to display data of an application running on the second processor, and the first processor is used to drive the second display screen connected to the first processor to display data of an application running on the first processor. When the second processor is connected to the first display screen, controlling the switching circuit to disconnect the connection between the first processor and the second display screen and to open the connection between the second processor and the second display screen.
[0024] The operations performed by the first processor, the second processor, and the control circuit described above can be referred to the relevant content in the first aspect.
[0025] Thirdly, an electronic device is provided, comprising the aforementioned control circuit, and further comprising a first display screen and a second display screen, wherein the first display screen or the second display screen is connected to the first processor or the second processor via the switching circuit. Optionally, the first display screen is the main display screen, and the second display screen is the auxiliary display screen.
[0026] Fourthly, a readable storage medium is provided, including a computer program that, when run on a device, causes the device to perform the method described in the second aspect above.
[0027] Fifthly, a computer program product is provided that, when run on a device, causes the device to perform the method described in the second aspect above.
[0028] A sixth aspect provides a chip system comprising: a processor; wherein, when the processor retrieves and executes a computer program from a memory, a device having the chip system mounted thereon performs the method described in the second aspect above. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of a candybar mobile phone with a main screen and a secondary screen, applicable to embodiments of this application;
[0030] Figure 2 This is a schematic diagram of a foldable screen phone with an inner screen and an outer screen, applicable to embodiments of this application;
[0031] Figure 3 A schematic diagram of a control circuit applied to an electronic device, provided as an embodiment of this application;
[0032] Figure 4 This is a schematic diagram illustrating the connection state of a dual processor and a dual display screen in an embodiment of this application;
[0033] Figure 5 This is a schematic diagram illustrating another connection state between a dual processor and a dual display screen in an embodiment of this application.
[0034] Figure 6 This is a schematic diagram illustrating another connection state between a dual processor and a dual display screen in an embodiment of this application.
[0035] Figure 7 This is a schematic diagram illustrating another connection state between a dual processor and a dual display screen in an embodiment of this application.
[0036] Figure 8 This is a schematic diagram illustrating another connection state between a dual processor and a dual display screen in an embodiment of this application.
[0037] Figure 9This is a schematic diagram illustrating another connection state between a dual processor and a dual display screen in an embodiment of this application.
[0038] Figure 10 This is a schematic diagram of connection state switching in one of the embodiments of this application;
[0039] Figure 11 This is a schematic diagram of the connection state switching under scenario two in the embodiments of this application;
[0040] Figure 12 This is a schematic diagram of the connection state switching under scenario three in the embodiments of this application;
[0041] Figure 13 This is a schematic diagram of the connection state switching in scenario four of the embodiments of this application;
[0042] Figure 14 This is a schematic diagram illustrating the connection between a second processor and a peripheral device in one embodiment of this application;
[0043] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0044] Figure 16 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0046] It should be understood that in the embodiments of this application, "at least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple. "Multiple" 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: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0047] In addition, it should be understood that in the description of this application, the words "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance or order.
[0048] First, the technical terms involved in the embodiments of this application will be introduced.
[0049] (1) Main processor and coprocessor
[0050] In electronic devices with a main processor and coprocessors, the main processor, such as the application processor (AP), is typically the CPU and performs most processing operations. A coprocessor is a processor specifically designed to assist the main processor in completing certain computational tasks. For example, a coprocessor can include a microcontroller unit (MCU), a digital signal processor (DSP), a graphics processing unit (GPU), etc., and can also be a small core within a system-on-a-chip (SoC). Compared to the main processor, coprocessors typically have lower performance, lower current consumption, higher energy efficiency, and lower power consumption.
[0051] Optionally, in this embodiment, the coprocessor may include one or more of the following components: communication components (such as Bluetooth Low Energy communication components), power system, navigation and positioning system related components (such as positioning system protocol stack), near-field communication components, graphic code payment related components, call service related components, short message related components, and always-on display (AOD) related components. The navigation and positioning system may include a Global Navigation Satellite System (GNSS), etc., and this embodiment does not limit this.
[0052] Taking a coprocessor that includes the aforementioned components as an example, since the coprocessor can have communication components, it can support voice call services, thus saving power by eliminating the need to switch to the main processor to perform voice call services; since the coprocessor can have near-field communication components, it can support near-field communication-related functions, thus saving power by eliminating the need to switch to the main processor to perform near-field communication services; since the coprocessor can have graphic code payment-related components, it can support graphic code payment-related functions, thus saving power by eliminating the need to switch to the main processor to perform graphic code payment services; and as another example, since the coprocessor can have navigation and positioning system-related components, it can support navigation and positioning services, thus saving power by eliminating the need to switch to the main processor to perform navigation and positioning services.
[0053] Since the coprocessor can include the aforementioned components, it can still be used to make calls, send and receive text messages, navigate, make QR code payments, and process steps even after the terminal device enters ultra-long battery life mode, thereby saving power consumption.
[0054] (2) Main operating system and lightweight operating system
[0055] In this embodiment, the main processor of the terminal device can run a main operating system, and the coprocessor can run a lightweight operating system (LiteOS). The main operating system and the lightweight operating system are relatively independent. Compared to the main operating system, a lightweight operating system refers to a type of operating system that is small, flexible, fast, and easy to use. Compared to the main operating system, a lightweight operating system has fewer functions and consumes relatively fewer resources, thereby saving system resources and improving system efficiency. For example, the main operating system can be... Operating System (Harmony) A lightweight operating system could be Harmony Lite OS, such as HarmonyL3 or later versions, which can serve as the primary operating system. As another example, the primary operating system could be Android. A lightweight operating system could be a lightweight version of Android. As another example, the primary operating system could be a Microsoft operating system. A lightweight operating system could be a Microsoft lightweight operating system.
[0056] An application can run on either the main operating system or a lightweight operating system. When running on a lightweight operating system, it consumes fewer system resources (including memory) than when running on the main operating system. An application running on a lightweight operating system may only implement some of its functionalities. For example, an audio player running on a lightweight operating system may only support play, pause, previous, and next playback functions, lacking features like album selection. Therefore, an application running on a lightweight operating system can be called a simplified version of the application.
[0057] In some embodiments of this application, for applications with high system resource requirements, such as certain game applications, it may be possible to allow them to run only on the main operating system and not on a lightweight operating system. Optionally, an application list can be set, and the applications in this list can only run on the main operating system and not on a lightweight operating system. Optionally, the application list may include the application's identification information, such as the application name.
[0058] The embodiments of this application can be applied to electronic devices. These electronic devices may include, for example, mobile phones, tablets, laptops, netbooks, in-vehicle devices, and business intelligent terminals (including video phones, conference desktop intelligent terminals, etc.), personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, etc. The embodiments of this application do not limit the specific form of the electronic device.
[0059] The electronic devices to which this application's embodiments can be applied may include, but are not limited to, those equipped with Harmony. Or other electronic devices with different operating systems. The aforementioned electronic devices can also be other electronic devices, such as laptops with touch-sensitive surfaces (e.g., touch panels).
[0060] The electronic device in this application embodiment may have multiple processors and multiple displays. Taking a dual-screen electronic device as an example, the dual-screen electronic device may be a foldable screen phone or a candybar phone, and the dual-screen electronic device has two displays.
[0061] For example, Figure 1 A schematic diagram of a dual-screen candybar phone is shown. (For example...) Figure 1 As shown, the front of the phone 100 features a main screen 101 (also known as the front screen), while the back of the phone 100 features a secondary screen 102 (also known as the rear screen) and a rear camera 103. The secondary screen 102 is typically smaller than the main screen 101. The resolution of the secondary screen 102 may be lower than that of the main screen; in some scenarios, a high-efficiency 2D graphics subsystem is sufficient. The secondary screen 102 can support always-on display and allows for customization of the display time, notification messages, or custom wallpapers. The camera function can be activated on the secondary screen, allowing for selfies using the better-quality rear camera. Optionally, when the main screen 101 is off, the rear secondary screen 102 can display various application push notifications; optionally, users can select songs by swiping up and down on the secondary screen 102 while listening to music; optionally, different wallpapers can be set for the secondary screen 102.
[0062] For example, Figure 2 A schematic diagram of a dual-screen foldable phone is shown. Figure 2As shown, phone 200 is an inward-folding screen phone. Phone 200 includes an inner screen 201 (also called the large screen or main screen) and an outer screen 202 (also called the small screen or secondary screen). The inner screen 201 and the outer screen 202 are arranged back-to-back, that is, they are respectively set on two opposite planes of phone 200. The size of the outer screen 202 is usually smaller than the size of the inner screen 201. The resolution of the outer screen 202 may be lower than that of the main screen. The outer screen 202 can support always-on display, and can also customize the display time, notification messages, or custom wallpapers, etc. Optionally, in the closed state, the outer screen 202 can display various push messages from applications; optionally, users can also select the song to listen to by performing up and down swiping operations on the outer screen 202 while listening to music.
[0063] In the following description of the embodiments of this application, for dual-screen electronic devices, the main screen or large screen is collectively referred to as the first display screen, and the secondary screen or small screen is collectively referred to as the second display screen. Optionally, the size of the first display screen is larger than the size of the second display screen. Optionally, the display performance of the first display screen is higher than that of the second display screen, for example, the resolution of the first display screen is higher than that of the second display screen. Optionally, the power consumption of the second display screen is lower than that of the first display screen. Optionally, the first display screen and / or the second display screen includes a touch panel and supports touch functionality.
[0064] In this embodiment of the application, for electronic devices with dual screens and dual processors, in addition to the first processor controlling the first display screen and the second processor controlling the second display screen, the system can also switch between the first processor and the second processor (or between the main operating system and the lightweight operating system) and between the first display screen and the second display screen, depending on the specific application scenario. For example, the first processor may run the first application and control the first display screen, while the system switches to the second processor running the first application and controlling the second display screen, or vice versa, to reduce power consumption.
[0065] See Figure 3 This application provides a control circuit for an electronic device. The control circuit is located inside the electronic device and can control the display. As shown in the figure, the control circuit 300 includes a first processor 310, a second processor 320, and a switching circuit 330.
[0066] The first processor 310 is the main processor, and the second processor 320 is the coprocessor. In one possible implementation, the second processor 320 can be independent of the first processor 310; for example, the first processor 310 and the second processor 320 can be implemented by different chips. In another possible implementation, the second processor 320 and the first processor 310 are integrated into a single SoC (System-on-a-Chip), meaning that the first processor 310 and the second processor 320 can be implemented by a single SoC chip, where the first processor 310 and the second processor 320 are two independent cores within that SoC chip.
[0067] Optionally, the processing power of the second processor 320 is lower than that of the first processor 310. For example, the memory of the second processor 320 is lower than that of the first processor 310; another example is that the second processor 320 has fewer components than the first processor 310. For instance, the first processor 310 has components for implementing graphic code scanning and recognition, while the second processor 320 does not have such components.
[0068] The first processor 310 and the second processor 320 can communicate via a serial bus. For example, the serial bus can be a Serial Peripheral Interface (SPI), a high-speed, full-duplex, synchronous communication bus that operates in a master-slave mode and typically has MISO (master in slave out) input lines (master data input), MOSI output lines (master data output), a serial clock (SCLK) line, and a chip selected (CS) line. Alternatively, the serial bus can also be a Secure Digital Input and Output (SDIO) interface. In some embodiments of this application, the first processor 310 and the second processor 320 can send control information, such as instructing the second processor 320 to run a corresponding application, via the serial bus; the second processor 320 can also send control information, such as instructing the first processor 310 to run a corresponding application, via the same serial bus. Specific implementation details can be found below. The first processor 310 and the second processor 320 can also communicate asynchronously, for example, by using a low-power universal synchronous asynchronous receiver-transmitter (LPUART).
[0069] In one possible implementation, the first processor 310 carries a first operating system, and the second processor 320 carries a second operating system, wherein the first operating system is the main operating system, and the second operating system is a lightweight operating system (LiteOS).
[0070] The switching circuit 330 is independent of the first processor 310 and the second processor 320. The first processor 310 and the second processor 320 can control the switching circuit 330 to switch the connection between the processor (e.g., including both the first and second processors) and the display screen (e.g., including both the first and second displays). In one possible implementation, the switching circuit 330 can be implemented using a Mobile Industry Processor Interface (MIPI) switch, which can be connected to the MIPI interfaces of the first processor 310, the second processor 320, the first display screen 340, and the second display screen 350. MIPI is an open standard and specification for mobile application processors initiated by the MIPI Alliance. Using a MIPI switch can reduce implementation costs and technical implementation difficulty.
[0071] The first display screen 340 is the main screen, and the second display screen 350 is the secondary screen. One example could be as follows: Figure 1 As shown, the first display screen is the main screen 101, and the second display screen is the secondary screen 102; another example could be as follows: Figure 2 As shown, the first display screen is the inner screen 201, and the second display screen is the outer screen 202.
[0072] In one possible implementation, the first display screen 340 has a touch panel (TP) that can detect user touch operations on the first display screen 340. When the touch panel of the first display screen 340 detects a user touch operation, it can send touch information (represented as TP_SPI in the figure) to the first processor 310, so that the first processor 310 responds to the user operation and performs corresponding processing. Optionally, the first processor 310 and the first display screen 340 can communicate based on an SPI interface, and correspondingly, touch information can be transmitted to the first processor 310 through this SPI interface. Optionally, the first processor 310 can also request to obtain the status of the first display screen 340 through this SPI interface.
[0073] In one possible implementation, the second display screen 350 has a touch panel that can detect user touch operations on the second display screen 350. When the touch panel of the second display screen 350 detects a user touch operation, it can send touch information (represented as TP_SPI in the figure) to the second processor 320, so that the second processor 320 responds to the user operation and performs corresponding processing. Optionally, the second processor 320 and the second display screen 350 can communicate based on an SPI interface, and correspondingly, touch information can be transmitted to the second processor 320 through this SPI interface. Optionally, the second processor 320 can also request to obtain the status of the second display screen 350 through this SPI interface.
[0074] exist Figure 3 In the control circuit 300 shown, the switch circuit 330 can be controlled by the first processor 310 and the second processor 320, controlling the connection status between the first processor 310, the second processor 320 and the first display screen 340 and the second display screen 350. The connection status between the first processor 310, the second processor 320 and the first display screen 340 and the second display screen 350 can be as follows: Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 and Figure 9 As shown.
[0075] like Figure 4 As shown, the first processor 310 is connected to the first display screen 340, while the connections between the second processor 320 and both the first display screen 340 and the second display screen 350 are disconnected. In this connection state, the first processor 310 runs an application (understandably, the application runs under the main operating system), and the first processor 310 generates (or refreshes) display data for the application, which is stored in the cache unit 360. Based on the control of the first processor 310, the display data stored in the cache unit 360 is transmitted to the first display screen 340 for display through the connection between the first processor 310 and the first display screen 340. Optionally, the second processor 320 may be in a sleep state or a power-off state. Optionally, the second display screen 350 may be in a screen-off state.
[0076] like Figure 5As shown, the second processor 320 is connected to the second display screen 350, while the connections between the first processor 310 and the first display screen 340 and the second display screen 350 are both disconnected. In this connected state, an application runs in the second processor 320 (understandably, the application runs on a lightweight operating system), and the second processor 320 generates (or refreshes) display data for the application, which is stored in the cache unit 370. Based on the control of the second processor 320, the display data stored in the cache unit 370 is transmitted to the second display screen 350 for display through the connection between the second processor 320 and the second display screen 350. Optionally, the first processor 310 may be in a sleep state or a power-off state. Optionally, the first display screen 340 may be in a screen-off state.
[0077] like Figure 6 As shown, a first processor 310 is connected to a first display screen 340, and a second processor 320 is connected to a second display screen 350. In this connection state, an application runs in the first processor 310 (which can be understood as running under a main operating system). The first processor 310 generates (or refreshes) display data for the application, which is stored in a cache unit 360. Based on the control of the first processor 310, the display data stored in the cache unit 360 is transmitted to the first display screen 340 for display via the connection between the first processor 310 and the first display screen 340. Similarly, an application runs in the second processor 320 (which can be understood as running under a lightweight operating system). The second processor 320 generates (or refreshes) display data for the application, which is stored in a cache unit 370. Based on the control of the second processor 320, the display data stored in the cache unit 370 is transmitted to the second display screen 350 for display via the connection between the second processor 320 and the second display screen 350. Optionally, the application running in the first processor 310 may be different from the application running in the second processor 320. For example, the first processor 310 may run a game application, while the second processor 320 may run an application for displaying a calendar. Alternatively, the application running in the first processor 310 may be the same as the application running in the second processor 320. For example, the first processor may run an audio player application, while the second processor may run a simplified version of the audio player application.
[0078] like Figure 7As shown, the first processor 310 is connected to the second display screen 350, while the connections between the second processor 320 and both the first display screen 340 and the second display screen 350 are disconnected. In this connection state, an application runs in the first processor 310 (understandably, the application runs in the main operating system), and the first processor 310 generates (or refreshes) display data for the application, which is stored in the cache unit 360. Based on the control of the first processor 310, the display data stored in the cache unit 360 is transmitted to the second display screen 350 for display through the connection between the first processor 310 and the second display screen 350. Optionally, the second processor 320 may be in a sleep state or a power-off state. Optionally, the first display screen 340 may be in a screen-off state.
[0079] like Figure 8 As shown, the second processor 320 is connected to the first display screen 340, while the connections between the first processor 310 and both the first display screen 340 and the second display screen 350 are disconnected. In this connected state, an application runs in the second processor 320 (understandably, the application runs on a lightweight operating system), and the second processor 320 generates (or refreshes) display data for the application, which is stored in the cache unit 370. Based on the control of the second display screen 320, the display data stored in the cache unit 370 is transmitted to the first display screen 340 for display via the connection between the second processor 320 and the first display screen 340. Optionally, the first processor 310 may be in a sleep state or a power-off state. Optionally, the second display screen 350 may be in a screen-off state.
[0080] like Figure 9 As shown, the first processor 310 is connected to the first display screen 340 and the second display screen 350, while the connection between the second processor 320 and both the first display screen 340 and the second display screen 350 is disconnected. In this connection state, the first processor 310 runs an application (understandably, the application runs under the main operating system), and the first processor 310 generates (or refreshes) display data for the application, which is stored in the cache unit 360. Based on the control of the first processor 310, the display data stored in the cache unit 360 is transmitted to the first display screen 340 for display via the connection between the first processor 310 and the first display screen 340, and also transmitted to the second display screen 350 for display via the connection between the first processor 310 and the second display screen 350. Optionally, the second processor 320 may be in a sleep state or a power-off state.
[0081] Figures 4 to 9The example described uses cache unit 360 as an internal storage unit (or memory) of the first processor 310. It can be understood that cache unit 360 can also be a storage unit (or memory) independent of the first processor 310, and this application embodiment does not limit this. Similarly, cache unit 370 can also be a storage unit (or memory) independent of the second processor 320.
[0082] In this embodiment, the switching circuit 330 can be controlled by the first processor 310 or the second processor 320, in accordance with the above... Figures 4 to 9 Switching between the various connection states shown. Several possible switching scenarios are described below.
[0083] Switch to Scene 1: From Figure 4 The connection status shown has switched to Figure 8 The connection status is shown.
[0084] Figure 10 An exemplary diagram illustrates a connection state switching scenario under an embodiment of this application. When the first processor 310 determines that it needs to switch from the current state... Figure 4 The connection status shown has been switched to as follows: Figure 8 When the connection state is as shown, the first control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 8 The connection status is shown.
[0085] Optionally, the first processor 310 may perform first control in the following situations:
[0086] Case 1-1: If the first processor 310 determines that the second processor 320 meets the conditions for taking over from the first processor 310, then the first control is executed.
[0087] In some scenarios, the first processor 310 may run a small number of applications or applications with simple functions. The second processor 320 is capable of running these applications. In this case, the first processor 310 can perform first control so that the second processor can take over the operation of these applications. That is, to migrate these applications from running under the main operating system to running under the lightweight operating system.
[0088] For example, when the first processor 310 determines that the memory usage is below a set threshold, it indicates that the second processor 320 is capable of migrating applications currently running on the main operating system to a lightweight operating system. Therefore, the first processor 310 can execute the first control to switch to the second processor 320. For instance, a user is editing a document using a document editing application on the first display screen 340. This document editing application is currently running on the first processor 310 (i.e., on the main operating system). After the user stops editing the document, the memory usage of the first processor 310 drops below the set threshold. At this time, the first processor 310 can execute the first control, allowing the second processor 320 to take over from the first processor 310, thereby reducing the power consumption of the terminal device.
[0089] For another example, if the first processor 310 has a QR code scanning and recognition component, while the second processor 320 does not, then after the application running in the first processor 310 completes the QR code scanning and recognition operation, the first processor 310 can execute the first control to switch to the second processor 320. For instance, the terminal device is performing a QR code scanning operation using the QR code scanning component in the first processor 310. After the QR code scanning and recognition operation is completed, since subsequent processing (such as online payment) can be performed under a lightweight operating system, the first processor 310 executes the first control, allowing the second processor 320 to take over the subsequent processing from the first processor 310, thereby reducing the power consumption of the terminal device.
[0090] Case 1-2: If the first processor 310 determines that the first application running on the first processor is closed, then it executes the first control. Here, the first application is configured to run only on the first processor.
[0091] In practice, an application list can be set up, including relevant information such as the application name. Applications in this list that consume significant system resources or require components that the second processor may not have, can only run on the first processor 310, i.e., only under the main operating system; some games are examples of such applications. This application list can be set by the system or by the user, for example, by providing a settings interface for the user to select applications, thus enabling the configuration of the application list.
[0092] If the first application running on the first processor 310 is closed, for example, if the first processor 310 determines that the game is closed based on touch information from the first display screen and the game is in the above application list, then the second processor 320 can take over the operation of the application, and thus the first processor 310 can perform the first control.
[0093] Cases 1-3: If the first processor 310 determines to enter the first working mode, then execute the first control.
[0094] In this first operating mode, only the second processor 320 runs. This first operating mode can also be called an ultra-long battery life mode. To minimize power consumption and extend the usage time of the electronic device, only the second processor 320 runs in this mode, while the first processor 310 can be in a sleep or power-off state. Compared to the normal operating mode, in ultra-long battery life mode, only some functions are available. For example, mobile network, wireless local area network (WLAN), and the negative one screen are turned off to save power. Ultra-long battery life mode can be entered in various ways, and this application embodiment does not limit this. For example, the electronic device can provide a system settings interface, and the user can select to enter ultra-long battery life mode through the ultra-long battery life mode switch option in the system settings interface. When the terminal device determines that the user has selected to enter ultra-long battery life mode, it can execute the first control; or, when the battery level of the electronic device drops to a set threshold, it can automatically enter ultra-long battery life mode, and the first processor 310 will execute the first control.
[0095] Optionally, the implementation process of the first control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, disconnecting the connection between the first processor 310 and the first display screen 340, and opening the connection between the second processor 320 and the first display screen 340. After disconnecting the connection between the first processor 310 and the first display screen 340 and opening the connection between the second processor 320 and the first display screen 340, the second processor 320 can drive the first display screen 340 connected to the second processor 320 to display the display data of the application running on the second processor 320. For example, the second processor 320 generates (or refreshes) the display data of the application, which is then rendered and displayed on the first display screen 340. Because the second processor 320 has a low current draw, low power consumption, and high energy efficiency, running the application on the second processor can reduce the power consumption of the electronic device. In this switching scenario, the first processor 310 and the second processor 320 can work together. The second processor 320 can switch to the first display screen 340, so that the processing of applications running under the lightweight operating system and the control of the display screen are offloaded to the low-power second processor 320, thereby reducing power consumption.
[0096] Optionally, the first processor 310 determines that it needs to obtain data from the current source. Figure 4 The connection state is switched to, for example Figure 8 After the connection status is established, a first notification can be sent to the second processor 320. This first notification is used to notify the second processor 320 to take over the operation of the application from the first processor 310. Optionally, the first notification may include relevant information about the application so that the second processor 320 can take over the operation of the corresponding application, allowing the application to run under a lightweight operating system within the second processor 320.
[0097] To further reduce power consumption, in one possible way, the first processor 310 can enter a sleep state after executing the first control (such as sending a control command). Since the power consumption in the sleep state is low, the power consumption of the electronic device can be further reduced. In another possible way, the first processor 310 can also power down after executing the first control, that is, disconnect from the power supply system, thereby further reducing power consumption.
[0098] After the connection state switch shown in Scenario 1, to ensure the transmission of touch information, in one possible implementation, after the first display screen 340 detects the user's touch operation, it sends the touch information to the first processor 310 through the interface between the first display screen 340 and the first processor 310. The first processor 310 then sends the touch information to the second processor 320 through the interface between the first display screen 340 and the second processor 320, so that the second processor 320 can respond. Optionally, if the first processor 310 is in a sleep state, it can be woken up after receiving the touch information so that it can send the touch information to the second processor 320. In another possible implementation, the first control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information. The same switching control is applied to both the connection used for transmitting display data and the connection used for transmitting touch information; that is, either both connections are disconnected or both connections are opened. For example, in one scenario, the switching circuit 330, according to the first control of the first processor 310, can disconnect the connection between the first processor 310 and the first display screen 340 for transmitting display data and the connection for transmitting touch information, and open the connection between the second processor 320 and the first display screen 340 for transmitting display data and the connection for transmitting touch information. Thus, after the first display screen 340 detects a user touch operation, it can send the touch information to the second processor 320 through this connection, so that the second processor 320 can respond. Compared with the above implementation method of forwarding touch information through the first processor, controlling the on / off state of both connections simultaneously avoids waking up the first processor, thereby further saving power consumption of the terminal device.
[0099] Switch to Scene 2: From Figure 8 The connection status shown has switched to Figure 4 The connection status is shown.
[0100] Figure 11 An exemplary diagram illustrates a connection state switching scenario two according to an embodiment of this application. When the second processor 320 determines that it needs to switch from the current state... Figure 8 The connection status shown has been switched to as follows: Figure 4 When the connection state is as shown, the second control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 4 The connection status is shown.
[0101] Optionally, the second processor 320 may perform second control in the following situations:
[0102] Case 2-1: If the second processor 320 determines that it does not have the conditions to run the second application, it sends a control command to the switching circuit 330.
[0103] In some scenarios, the second application may need to use components not available in the second processor 320. In such cases, the second processor 320 can execute a second control to allow the first processor 310 to take over the operation of the application. That is, the application is migrated from running under a lightweight operating system to running under the main operating system so that it can use the corresponding components in the first processor 310. For example, the application currently running in the second processor 320 calls a component related to QR code scanning and recognition, but this component resides in the first processor 310. Therefore, the second processor 320 executes a second control to switch to the first processor 310 so that the first processor 310 can perform the QR code recognition function.
[0104] In other scenarios, when the memory overhead of the second processor 320 exceeds a set threshold, it indicates that the resource consumption of the second processor 320 is too high and may not be able to support the operation of the application. Therefore, the second processor 320 can perform a second control to switch to the first processor 310.
[0105] Scenario 2-2: If the second processor 320 determines that the first application has been launched, it executes the second control. Here, the first application is configured to run only on the first processor. For example, a user is using a document editing application on the first display screen 340, and no editing operation is currently being performed. This document editing application is currently running on the second processor 320 (i.e., running on a lightweight operating system). After the user begins to perform an editing operation, the memory usage of the second processor 320 increases and exceeds a set threshold. At this time, the second processor 320 can execute the second control, allowing the first processor 310 to take over from the second processor 320 to ensure the performance of the document editing operation.
[0106] Case 2-3: If the second processor 320 determines to exit the first working mode, then the second control is executed.
[0107] Optionally, after exiting the first working mode, the second processor 320 may determine whether to execute the second control based on the specific circumstances. For example, if the second processor 320 determines that it needs to interact with the network side through the communication component in the first processor 310, it may execute the second control so that after switching to the first processor 310, the first processor 310 can interact with the network side through its communication component.
[0108] Optionally, the implementation process of the second control may include: the second processor 320 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, disconnecting the second processor 320 from the first display screen 340 and opening the connection between the first processor 310 and the first display screen 340. After disconnecting the second processor 320 from the first display screen 340 and opening the connection between the first processor 310 and the first display screen 340, the first processor 310 can drive the first display screen 340 connected to the first processor 310 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the first display screen 340. Since the first processor 310 can support more complex or richer functions, it can meet the needs of users.
[0109] Optionally, the second processor 320 determines the need to extract from the current... Figure 8 The connection status shown has been switched to as follows: Figure 4 After the connection status is established, a second notification can be sent to the first processor 310. This second notification instructs the first processor 310 to take over the operation of the application from the second processor 320. Optionally, the second notification may include relevant information about the application, enabling the application to run on the main operating system of the first processor 310.
[0110] To further reduce power consumption, in one possible way, the second processor 320 can also enter a sleep state or a power-down state after executing the second control (such as sending control instructions).
[0111] After the connection state switch shown in Scenario 2, in one possible implementation, after the first display screen 340 detects a user touch operation, it sends the touch information to the first processor 310 through the existing interface between the first display screen 340 and the first processor 310, so that the first processor 310 can respond. In another possible implementation, the second control of the switching circuit 330 by the second processor 320 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information. For example, in Scenario 2, the switching circuit 330 can, according to the second control of the second processor 320, disconnect the connection between the second processor 320 and the first display screen 340 used for transmitting display data and the connection used for transmitting touch information, and open the connection between the first processor 310 and the first display screen 340 used for transmitting display data and the connection used for transmitting touch information. In this way, after the first display screen 340 detects a user touch operation, it can send the information to the first processor 310 through this connection, so that the first processor 310 can respond.
[0112] Scenario 3: From Figure 5 The connection status shown has switched to Figure 7 The connection status is shown.
[0113] Figure 12 An exemplary diagram illustrates a connection state switching scenario three according to an embodiment of this application. When the second processor 320 determines that it needs to switch from the current state... Figure 5 The connection status shown has been switched to as follows: Figure 7 When the connection state is shown, the third control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 7 The connection status is shown.
[0114] Optionally, the second processor 320 may perform third control in the following situations:
[0115] Case 3-1: If the second processor 320 determines that it does not have the conditions to run the second application, then it executes the third control.
[0116] In some scenarios, the second application may need to use components that the second processor 320 does not have. In this case, the second processor 320 can execute third control to allow the first processor 310 to take over the operation of the application. That is, the application is migrated from running under a lightweight operating system to running under the main operating system so that it can use the corresponding components in the first processor 310. In other scenarios, when the memory overhead of the second processor 320 exceeds a set threshold, it indicates that the resource consumption of the second processor 320 is too high and may not be able to handle the operation of the application. Therefore, the second processor 320 can execute third control to switch to the first processor 310.
[0117] Case 3-2: If the second processor 320 determines that the first application has been launched, then third control is executed. Here, the first application is configured to run only on the first processor.
[0118] For example, in one possible application scenario, the current connection status between the processor and the display is as follows: Figure 5 As shown, when a user performs a touch operation on the second display screen 350 to open the camera application for a selfie, the touch operation information is sent to the second processor 320. In response, the second processor 320 determines that the camera application can only run under the main operating system. Therefore, referring to scenario three above, the second processor 320 executes the third control, thereby switching to... Figure 7 In the connected state shown, the first processor 310 calls the rear camera to take a selfie, and the second display screen 350 displays the selfie photo. Because the rear camera's image quality is higher than the front camera's, a higher quality selfie can be obtained.
[0119] Case 3-3: If the second processor 320 determines to exit the first working mode, then the third control is executed.
[0120] Optionally, after exiting the first working mode, the second processor 320 may determine whether to execute the third control based on the specific circumstances. For example, if the second processor 320 determines that it needs to interact with the network side through the communication component in the first processor 310, it may determine to execute the third control so that after switching to the first processor 310, the first processor 310 can interact with the network side through its communication component.
[0121] Optionally, the implementation process of the third control may include: the second processor 320 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, disconnecting the connection between the second processor 320 and the second display screen 350, and opening the connection between the first processor 310 and the second display screen 350. After disconnecting the connection between the second processor 320 and the second display screen 350 and opening the connection between the first processor 310 and the second display screen 350, the first processor 310 can drive the second display screen 350 connected to the first processor 310 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the second display screen 350. In this switching scenario, the first processor 310 and the second processor 320 can cooperate with each other. The first processor 310 can switch to the second display screen 350, so that the display data of the application running under the main operating system can be displayed on the second display screen 350. For example, the second display screen 350 can display complex images or the user interface of complex applications, thereby enriching the application scenarios of the second display screen 350. Achieve low-power, all-day display (AOD).
[0122] Optionally, the second processor 320, upon determining the need to switch to, such as Figure 7 After the connection status shown, a third notification can be sent to the first processor 310. This third notification instructs the first processor 310 to take over the operation of the application from the second processor 320. Optionally, the third notification may include application-related information so that the first processor 310 can run the application, allowing it to run under the main operating system on the first processor 310.
[0123] To further reduce power consumption, one possible approach is that the second processor 320 can enter a sleep state or a power-down state after executing third control (such as sending control instructions).
[0124] After the connection state switch shown in Scenario 3, in one possible implementation, after the second display screen 350 detects the user's touch operation, it sends the touch information to the second processor 320 through the interface between the second display screen 350 and the second processor 320. The second processor 320 then sends the touch information to the first processor 310 through the interface between the second display screen 350 and the first processor 310, so that the first processor 310 can respond. Optionally, if the second processor 320 is in a sleep state, it can be woken up after receiving the touch information so that it can send the touch information to the first processor 310. In another possible implementation, the third control of the switching circuit 330 by the second processor 320 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for both the connection used for transmitting display data and the connection used for transmitting touch information. For example, in scenario three, the switch circuit 330 can, according to the third control of the second processor 320, disconnect the connection between the second processor 320 and the second display screen 350 for transmitting display data and the connection for transmitting touch information, and open the connection between the first processor 310 and the second display screen 350 for transmitting display data and the connection for transmitting touch information. In this way, after the second display screen 350 detects the user's touch operation, it can send the touch information to the first processor 310 through the connection so that the first processor 310 can respond.
[0125] Scenario 4: From Figure 7 The connection status shown has switched to Figure 5 The connection status is shown.
[0126] Figure 13 An exemplary diagram illustrates a connection state switching scenario described above in an embodiment of this application. When the first processor 310 determines that it needs to switch from the current state... Figure 7 The connection status shown has been switched to as follows: Figure 5 When the connection state is as shown, the fourth control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 5 The connection status is shown.
[0127] Optionally, similar to scenario one above, the first processor 310 may execute fourth control in the following situations:
[0128] Case 4-1: If the first processor 310 determines that the second processor 320 meets the conditions for taking over from the first processor 310, then the fourth control is executed.
[0129] Case 4-2: If the first processor 310 determines that the first application running on the first processor is closed, then the fourth control is executed. Here, the first application is configured to run only on the first processor.
[0130] Case 4-3: If the first processor 310 determines to enter the first working mode, then the fourth control is executed.
[0131] Optionally, the implementation process of the fourth control may include: the first processor 310 sending a fourth control command to the switching circuit 330; the switching circuit 330, according to the control command, disconnecting the connection between the first processor 310 and the second display screen 350, and opening the connection between the second processor 320 and the second display screen 350. After disconnecting the connection between the first processor 310 and the second display screen 350 and opening the connection between the second processor 320 and the second display screen 350, the second processor 320 can drive the second display screen 350 connected to the second processor 320 to display the display data of the application running on the second processor 320. For example, the second processor 320 generates (or refreshes) the display data of the application, which is then rendered and displayed on the second display screen 350. Because the second processor 320 has a low current draw, low power consumption, and high energy efficiency, running the application on the second processor can reduce the power consumption of the electronic device.
[0132] Optionally, the first processor 310, upon determining the need to switch to, as Figure 5 After the connection status shown, a fourth notification can be sent to the second processor 320. This fourth notification instructs the second processor 320 to take over the operation of the application from the first processor 310. Optionally, the fourth notification may include application-related information so that the second processor 320 can run the application, allowing it to run under a lightweight operating system within the second processor 320.
[0133] To further reduce power consumption, one possible approach is that the first processor 310 can enter a sleep state or a power-down state after executing the fourth control (such as sending control instructions).
[0134] After the connection state switch shown in Scenario 4, in one possible implementation, after the second display screen 350 detects a user touch operation, it sends the touch information to the second processor 320 through the existing interface between the second display screen 350 and the second processor 320, so that the second processor 320 can respond. In another possible implementation, the fourth control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information. For example, in Scenario 4, the switching circuit 330 can, according to the fourth control of the first processor 310, disconnect the connection between the first processor 310 and the second display screen 350 used for transmitting display data and the connection used for transmitting touch information, and open the connection between the second processor 320 and the second display screen 350 used for transmitting display data and the connection used for transmitting touch information. In this way, after the second display screen 340 detects a user touch operation, it can send the touch information to the second processor 320 through this connection, so that the second processor 320 can respond.
[0135] Scene 5: From Figure 4 The connection status shown has switched to Figure 5 The connection status is shown.
[0136] When the first processor 310 determines that it needs to obtain from the current... Figure 4 The connection status shown has been switched to as follows: Figure 5 When the connection state is as shown, the fifth control is executed to control the switching circuit 330 to perform the corresponding switching operation, thereby switching to the state shown. Figure 5 The connection status is shown.
[0137] Optionally, the first processor 310 may execute the fifth control if it determines that the conditions for switching from the first display screen to the second display screen are met. Alternatively, the first processor 310 may determine that a switch from the first display screen to the second display screen is necessary if it detects the following:
[0138] Case 5-1: Taking a mobile phone with an inward-folding screen as an example, when the first processor 310 detects that the folding screen switches from the unfolded state or intermediate state to the folded state (also known as the closed state), or when the second display screen 320 is turned on, it can be determined that it is necessary to switch from the first display screen to the second display screen. Therefore, the fifth control is executed to switch to the second processor 320 and switch to the second display screen 350 for display.
[0139] Case 5-2: Taking a dual-screen candybar mobile phone as an example, when the first processor 310 detects that the first display screen 340 is off, or the second display screen 350 is on, or the user flips the phone to view the content displayed on the second display screen 350, it can be determined that it is necessary to switch from the first display screen to the second display screen. Therefore, the fifth control is executed to switch to the second processor 320 and switch to the second display screen 350 for display.
[0140] The above are merely examples of several ways to trigger a switch from the first display screen to the second display screen, and the embodiments of this application do not limit this.
[0141] Optionally, the implementation process of the fifth control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, disconnecting the connection between the first processor 310 and the first display screen 340, and opening the connection between the second processor 320 and the second display screen 350. After disconnecting the connection between the first processor 310 and the first display screen 340 and opening the connection between the second processor 320 and the second display screen 350, the second processor 320 can drive the second display screen 350 connected to the second processor 320 to display the display data of the application running on the second processor 320. For example, the second processor 320 generates (or refreshes) the display data of the application, which is then rendered and displayed on the second display screen 350. Because the second processor 320 has a low current draw, low power consumption, and high energy efficiency, running the application on the second processor can reduce the power consumption of the electronic device.
[0142] Optionally, the first processor 310, upon determining the need to switch to, as Figure 5 After the connection status shown, a fifth notification can be sent to the second processor 320. This fifth notification instructs the second processor 320 to take over the operation of the application from the first processor 310. Optionally, the fifth notification may include application-related information so that the second processor 320 can run the application, allowing it to run under a lightweight operating system within the second processor 320.
[0143] Optionally, if a first application is running on the first processor 310, the first processor 310 can also suspend or close the first application. The first application is configured to run only on the first processor 310, or in other words, the first application runs only under the main operating system.
[0144] To further reduce power consumption, one possible approach is that the first processor 310 can enter a sleep state or a power-down state after executing the fifth control (such as sending control instructions).
[0145] After the connection state switch shown in Scenario 5, the second display screen 350 can send touch information to the second processor 320 through the existing interface with the second processor 320, so that the second processor 320 can respond. In another possible implementation, the fifth control of the switching circuit 330 by the first processor 310 may include not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information. The same switching control is applied to both the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments and will not be repeated here.
[0146] Scene Six: From Figure 5 The connection status shown has switched to Figure 4 The connection status is shown.
[0147] When the second processor 320 determines that it needs to obtain from the current... Figure 5 The connection status shown has been switched to as follows: Figure 4 When the connection state is as shown, the sixth control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 4 The connection status is shown.
[0148] Optionally, the second processor 320 may execute the sixth control if the second processor 320 determines that the conditions for switching from the second display screen to the first display screen are met.
[0149] Optionally, the second processor 320 can determine whether it needs to switch from the second display to the first display if it detects the following:
[0150] Case 6-1: Taking a mobile phone with an inward-folding screen as an example, when the second processor 320 detects that the folding screen switches from the folded state to the unfolded state or the intermediate state, or when the first display screen 310 is turned on, it can be determined that it is necessary to switch from the second display screen to the first display screen. Therefore, the sixth control is executed to switch to the first processor 310 and switch to the first display screen 340 for display.
[0151] Case 6-2: Taking a dual-screen candybar mobile phone as an example, when the second processor 320 detects that the second display screen 350 is off, or the first display screen 340 is on, or the user flips the phone to view the content displayed on the first display screen 340, it can be determined that it is necessary to switch from the second display screen to the first display screen. Therefore, the sixth control is executed to switch to the first processor 310 and switch to the first display screen 340 for display.
[0152] The above are merely examples of several ways to trigger a switch from the second display screen to the first display screen, and the embodiments of this application do not limit this.
[0153] Optionally, the implementation process of the sixth control may include: the second processor 320 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, disconnecting the connection between the second processor 320 and the second display screen 350, and opening the connection between the first processor 310 and the first display screen 340. After disconnecting the connection between the second processor 320 and the second display screen 350 and opening the connection between the first processor 310 and the first display screen 340, the first processor 310 can drive the first display screen 340 connected to the first processor 310 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the first display screen 340.
[0154] Optionally, the second processor 320, upon determining the need to switch to, such as Figure 4 After the connection status shown, a sixth notification can be sent to the first processor 310. The sixth notification is used to notify the first processor 310 to take over the operation of the application from the second processor 320. Optionally, the sixth notification may include relevant information about the application so that the first processor 310 can take over the operation of the corresponding application, allowing the application to run under the main operating system in the first processor 310.
[0155] To further reduce power consumption, one possible approach is that the second processor 320 can enter a sleep state or a power-down state after executing the sixth control (such as sending control instructions).
[0156] After the connection state switch shown in Scenario Six, the first display screen 340 can send touch information to the first processor 310 through the existing interface with the first processor 310, so that the first processor 310 can respond. In another possible implementation, the sixth control of the switching circuit 330 by the second processor 320 may include not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information. The same switching control is applied to both the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments and will not be repeated here.
[0157] Scene 7: From Figure 4 The connection status shown has switched to Figure 7 The connection status is shown.
[0158] When the first processor 310 determines that it needs to obtain from the current... Figure 4 The connection status shown has been switched to as follows: Figure 7When the connection state is as shown, the seventh control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 7 The connection status is shown.
[0159] Optionally, the first processor 310 may perform seventh control in the following situations:
[0160] Case 7-1: If the first processor 310 determines that the conditions for switching from the first display screen to the second display screen are met, but the second processor 320 cannot meet the conditions for running the third application, then the seventh control is executed. The third application is the application currently running in the first processor.
[0161] In some scenarios, although the first processor 310 determines that the conditions for switching from the first display screen to the second display screen are met (e.g., Figure 2 (The foldable screen of the phone shown is closed). However, since the third application currently running in the first processor 310 cannot run in the second processor 320 (e.g., the second processor 320 lacks the components required by the third application), the display screen can be switched without switching the processor to ensure that the third application is not interrupted. Optionally, after the third application is closed, the second processor 320 can meet the conditions to take over from the first processor 310, so the processor switch is then performed. For details, please refer to the relevant description in Scenario 4 above.
[0162] For example, with Figure 2 Taking the foldable phone 200 as an example, the third application is a calling application. The communication components required for the third application are located in the first processor 310 of the foldable phone 200. When the foldable phone is currently in its unfolded state and the user is making a call, the calling application runs on the first processor 310, and the inner screen 201 displays the calling application's interface. When the user folds the foldable phone 200, the first processor 310 detects the change in the folding screen's state and switches to the outer screen 202 for display. Since the call is in progress, the calling application continues to run on the first processor 310 to avoid call interruption. At this time, the first processor 310 runs the calling application, and the outer screen 202 displays the calling application's interface. When the call ends, the first processor 310 can control the switching circuit 330 to switch to the... Figure 5 The connection state is shown, so that the second processor 320 takes over from the first processor 310, while the user interface is displayed on the second display screen 350.
[0163] Optionally, the implementation process of the seventh control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330 disconnecting the first processor 310 from the first display screen 340 and opening the connection between the first processor 310 and the second display screen 350 according to the control command. After disconnecting the first processor 310 from the first display screen 340 and opening the connection between the first processor 310 and the second display screen 350, the first processor 310 can drive the second display screen 350 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the second display screen 350. In this switching scenario, the first processor 310 and the second processor 320 can cooperate with each other. The first processor 310 can switch to the second display screen 350, so that the display data of the application running under the main operating system can be displayed on the second display screen 350. For example, the second display screen 350 can display complex images or the user interface of complex applications, thereby enriching the application scenarios of the second display screen 350. This achieves low-power all-day display (AOD).
[0164] After the connection state switch shown in Scenario 7, in one possible implementation, the second display screen 350 can send touch information to the second processor 320 through the interface between the second display screen 350 and the second processor 320, and the second processor 320 can send touch information to the first processor 310 through the interface between the second processor 320 and the first processor 310, so that the first processor 310 can respond. Optionally, if the second processor 320 is in a sleep state, it can be woken up after receiving touch information. In another possible implementation, the seventh control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments, and will not be repeated here.
[0165] Scene 8: From Figure 4 The connection status shown has switched to Figure 9 The connection status is shown.
[0166] When the first processor 310 determines that it needs to start from the current Figure 4 The connection status shown has been switched to as follows: Figure 9 When the connection state is as shown, the eighth control is executed to control the switching circuit 330 to perform the corresponding switching operation, thereby switching to the state shown. Figure 9 The connection status is shown.
[0167] Optionally, the first processor 310 may execute the eighth control when the first display screen 340 is already lit. In this case, if the first processor 310 detects that the second display screen 350 is lit, it executes the eighth control. This allows the user interface of the application running in the first processor 310 to be displayed simultaneously on both displays. In this embodiment, the specific method of lighting up the second display screen 350 when the first display screen 340 is already lit is not limited; for example, it can be achieved through voice commands or by the user touching the second display screen 350.
[0168] Optionally, the implementation process of the eighth control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, maintaining the connection between the first processor 310 and the first display screen 340, and opening the connection between the first processor 310 and the second display screen 350. Thereafter, the first processor 310 can drive the first display screen 340 and the second display screen 350 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the first display screen 340 and the second display screen 350. In this switching scenario, the first processor 310 can switch to the second display screen 350, allowing the user interface of the application running under the main operating system to be displayed on the second display screen 350. For example, the second display screen 350 can display complex images or the user interface of complex applications, thereby enriching the application scenarios of the second display screen 350.
[0169] After the connection state switch shown in Scenario 8, in one possible implementation, the second display screen 350 can send touch information to the second processor 320 through the interface between the second display screen 350 and the second processor 320, and the second processor 320 can send touch information to the first processor 310 through the interface between the second processor 320 and the first processor 310, so that the first processor 310 can respond; the first display screen 340 can send touch information to the first processor 310 through the existing interface between the first display screen 340 and the first processor 310. Optionally, if the second processor 320 is in a sleep state, it can be woken up after receiving touch information. In another possible implementation, the eighth control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments, and will not be repeated here.
[0170] Scene Nine: From Figure 9 The connection status shown has switched to Figure 4The connection status is shown.
[0171] When the first processor 310 determines that it needs to obtain from the current... Figure 9 The connection status shown has been switched to as follows: Figure 4 When the connection state is shown, the ninth control is executed to control the switching circuit 330 to perform the corresponding switching operation, thereby switching to the state shown. Figure 4 The connection status is shown.
[0172] Optionally, the first processor 310 may execute the ninth control under the following circumstances: both the first display screen 340 and the second display screen 350 are lit. In this case, if the first processor 310 detects that the second display screen 350 is off, it will execute the ninth control. In this embodiment, when the first display screen 340 and the second display screen 350 are lit, the specific implementation method of turning off the second display screen 350 is not limited. For example, it can be achieved by voice or by the user touching the second display screen 350.
[0173] Optionally, the implementation process of the ninth control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, maintaining the connection between the first processor 310 and the first display screen 340, and disconnecting the connection between the first processor 310 and the second display screen 350. Thereafter, the first processor 310 can drive the first display screen 340 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the first display screen 340.
[0174] After the connection state switch shown in Scenario Nine, in one possible implementation, the first display screen 340 can send touch information to the first processor 310 through the existing interface with the first processor 310, so that the first processor 310 can respond. In another possible implementation, the ninth control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for both the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments and will not be repeated here.
[0175] Scene 10: From Figure 7 The connection status shown has switched to Figure 9 The connection status is shown.
[0176] When the first processor 310 determines that it needs to... Figure 7 The connection status shown has been switched to as follows: Figure 9When the connection state is as shown, the tenth control is executed to control the switching circuit 330 to perform the corresponding switching operation, thereby switching to the state shown. Figure 9 The connection status is shown.
[0177] Optionally, the first processor 310 can execute the tenth control under the following circumstances: the second display screen 350 is lit. In this case, the first processor 310 detects that the first display screen 340 is lit and then executes the tenth control. In this way, the user interface of the application running in the first processor 310 can be displayed on both displays simultaneously. In this embodiment, when the second display screen 350 is lit, the specific implementation method of lighting up the first display screen 340 is not limited. For example, it can be achieved by voice or by the user touching the first display screen 340.
[0178] Optionally, the implementation process of the tenth control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, maintaining the connection between the first processor 310 and the second display screen 350, and opening the connection between the first processor 310 and the first display screen 340. Thereafter, the first processor 310 can drive the first display screen 340 and the second display screen 350 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the first display screen 340 and the second display screen 350.
[0179] After the connection state switch shown in Scenario 10, in one possible implementation, the second display screen 350 can send touch information to the second processor 320 through the interface between the second display screen 350 and the second processor 320, and the second processor 320 can send touch information to the first processor 310 through the interface between the second processor 320 and the first processor 310, so that the first processor 310 can respond; the first display screen 340 can send touch information to the first processor 310 through the existing interface between the first display screen 340 and the first processor 310. Optionally, if the second processor 320 is in a sleep state, it can be woken up after receiving touch information. In another possible implementation, the tenth control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments, and will not be repeated here.
[0180] Scene Eleven: From Figure 9 The connection status shown has switched to Figure 7 The connection status is shown.
[0181] When the first processor 310 determines that it needs to obtain from the current... Figure 9 The connection status shown has been switched to as follows: Figure 7 When the connection state is shown, the eleventh control is executed to control the switching circuit 330 to perform a corresponding switching operation, thereby switching to the state shown. Figure 7 The connection status is shown.
[0182] Optionally, the first processor 310 may execute the eleventh control under the following circumstances: both the first display screen 340 and the second display screen 350 are lit. In this case, if the first processor 310 detects that the first display screen 340 is off, it will execute the eleventh control. In this embodiment, when the first display screen 340 and the second display screen 350 are lit, the specific implementation method of turning off the first display screen 340 is not limited. For example, it can be achieved by voice or by the user touching the first display screen 340.
[0183] Optionally, the implementation process of the ninth control may include: the first processor 310 sending a control command to the switching circuit 330; the switching circuit 330, according to the control command, maintaining the connection between the first processor 310 and the second display screen 350, or disconnecting the connection between the first processor 310 and the first display screen 340. Afterwards, the first processor 310 can drive the second display screen 350 to display the display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application, which is then rendered and displayed on the second display screen 350.
[0184] After the connection state switch shown in Scenario 11, in one possible implementation, the second display screen 350 can send touch information to the second processor 320 through the interface between the second display screen 350 and the second processor 320, and the second processor 320 can send touch information to the first processor 310 through the interface between the second processor 320 and the first processor 310, so that the first processor 310 can respond. Optionally, if the second processor 320 is in a sleep state, it can be woken up after receiving touch information. In another possible implementation, the eleventh control of the switching circuit 330 by the first processor 310 includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiments, and will not be repeated here.
[0185] In some embodiments of this application, after the electronic device enters a first working mode (such as an ultra-long battery life mode), when making a call or data service, the second processor 320 can communicate with the modem to complete the call and data service, and the first processor 310 can be wake-up-free to maintain low power consumption.
[0186] In some other embodiments of this application, for an electronic device having a main processor and a coprocessor but only one display screen, under normal use, the main processor is running and controls the display screen to display in full screen; when the electronic device enters a first working mode (such as an ultra-long battery life mode), it can switch to the coprocessor to run, and the main processor can enter a sleep state or a power-off state, and the coprocessor controls the display screen to display partially, such as only lighting up a part of the display screen while the other parts are in a screen-off state, so as to reduce power consumption.
[0187] The above examples only illustrate a few possible switching scenarios, and the embodiments of this application do not limit these scenarios. The embodiments of this application can also design corresponding connection state switching strategies for other possible scenarios, based on business needs and user habits, thereby balancing power saving and user experience.
[0188] In some embodiments of this application, the second processor 320 may also be connected to one or more peripherals (external devices) and may control the peripherals or process data from the peripherals in order to reduce the burden on the first processor 310 and thereby reduce the power consumption of the electronic device.
[0189] In one possible implementation, the second processor 320 can connect to one or more of the following types of peripherals:
[0190] (1) Memory, such as one or more of random access memory (RAM) and read-only memory (ROM), to improve the efficiency of data access. Optionally, RAM and / or ROM can be connected depending on the services carried by the second processor 320.
[0191] (2) Devices that need to be constantly on may include, for example, a microphone (e.g., a pickup), a speaker (e.g., a camera), and various sensors (e.g., sensors for step counting). For example, the microphone may be a main microphone used for voice wake-up. The microphone is typically a constantly on device. Compared to connecting the microphone to the first processor 310 and having the first processor 310 process the audio data received by the microphone, this embodiment connects the microphone to the second processor 320, and has the second processor 320 process the audio data received by the microphone, which can reduce power consumption.
[0192] (3) A device that meets the requirements of the ultra-long battery life mode, or a device that may be used in the ultra-long battery life mode, which may include one or more of the following:
[0193] The charging module (such as a charging protocol integrated circuit) has its charging protocol implemented by a second processor, which can improve the charging speed during standby charging.
[0194] Short-range communication integrated circuits, such as Wi-Fi chips or Bluetooth (BT) chips.
[0195] For example, Figure 14 A schematic diagram illustrating the connection between a second processor 320 and peripherals is shown. The second processor 320 can be connected to RAM via a high-speed serial peripheral interface (H_SPI), to an integrated circuit (IC) via an I2C interface, to a sensor via an I2C interface, to a microphone via an ADF interface, and to a short-range IC / GPS via a universal asynchronous receiver-transmitter (UART) interface.
[0196] The above are just examples of a few peripherals that can be connected to the second processor 320. It can be understood that other peripherals that need to be always on and have high power consumption requirements can also be connected to the second processor 320.
[0197] In one or more embodiments of this application, the first processor and the second processor, by controlling the switching circuit and coordinating with each other, can switch between various connection states between the processor and the display screen. This allows for the achievement of one or more effects, such as reduced power consumption, resource optimization, and enriched display scenarios, based on different scenarios. For example, switching from a connection between the first processor and the first display screen to a connection between the second processor and the first display screen reduces the power consumption of the electronic device because the second processor has lower power consumption and higher energy efficiency. Furthermore, switching from a connection between the second processor and the second display screen to a connection between the first processor and the second display screen improves the display effect and enriches the display scenarios based on the performance of the first processor.
[0198] In other embodiments of this application, no switching circuit is required. The state of the interface connected to the display screen can be controlled by the first processor and the second processor to switch the connection state between the processor and the display screen. For example, the first processor can connect to the first display screen through a first interface and to the second display screen through a second interface; the second processor can connect to the first display screen through a third interface and to the second display screen through a fourth interface. The first processor can control the connection relationship between itself and the first and second display screens by setting the states of the first and second interfaces; the second processor can control the connection relationship between itself and the first and second display screens by setting the states of the third and fourth interfaces. For example, if the first processor blocks the first interface, or sets the first interface to a high-impedance state, the connection between the first processor and the first display screen can be disconnected.
[0199] Taking the connection state switching shown in Scenario 1 above as an example, when the first processor determines that it needs to switch from the current state, such as... Figure 4 The connection status shown has been switched to as follows: Figure 8 In the connection state shown, the first processor sets the first interface to a high-impedance state and notifies the second processor to connect to the first display screen; based on this notification, the second processor sets the third interface to a low-impedance state, thereby establishing the connection between the second processor and the first display screen. In other switching scenarios, the first and second processors control the state of the interfaces to switch the connection state, which will not be elaborated here.
[0200] Based on the aforementioned control circuit 300, Figure 15 This diagram illustrates the structure of an electronic device according to an embodiment of this application. The electronic device 1500 may include a control circuit 300, a first display screen 340, and a second display screen 350. The structure of the control circuit 300 is as described in the foregoing embodiments and will not be repeated here. The second processor 320 in the control circuit 300 may also be connected to one or more peripherals. An example of a peripheral connected to the second processor 320 is as follows... Figure 14 As shown.
[0201] Based on the aforementioned control circuit 300, Figure 16 This illustration shows a schematic diagram of another electronic device provided in an embodiment of this application. The electronic device 1600 may include a control circuit 300, a first display screen 340, and a second display screen 350. The second processor 320 in the control circuit 300 may also be connected to one or more peripherals. An example of a peripheral connected to the second processor 320 is as follows: Figure 14As shown. The difference between electronic device 1600 and electronic device 1500 includes: the control of the switching circuit by the first processor or the second processor includes not only switching control of the connection used for transmitting display data, but also switching control of the connection used for transmitting touch information, wherein the same switching control is performed for the connection used for transmitting display data and the connection used for transmitting touch information.
[0202] Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact with each other to realize the functions performed by the electronic device in the methods described in the embodiments of this application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0203] Based on the above embodiments, this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the electronic device is running, the at least one processor performs the functions performed by the electronic device in the various methods described in the embodiments of this application.
[0204] Based on the above embodiments, this application also provides a computer program product, which includes a computer program (also referred to as code or instructions) that, when run, causes the methods described in the embodiments of this application to be executed.
[0205] Based on the above embodiments, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program (also referred to as code or instructions), which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.
[0206] Based on the above embodiments, this application also provides a chip. The chip is used to read a computer program stored in a memory and implement the methods described in the embodiments of this application.
[0207] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible embodiment, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Those skilled in the art will understand that the embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0208] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0209] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0210] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0211] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A control circuit, characterized in that, include: The system comprises a first processor, a second processor, and a switching circuit, wherein the first processor is a main processor, the second processor is a coprocessor, and the switching circuit is a hardware circuit independent of the first processor and the second processor. The switching circuit is used to disconnect the connection between the first processor and the first display screen and open the connection between the second processor and the first display screen according to the first control of the first processor. According to the second control of the second processor, disconnect the connection between the second processor and the first display screen, and open the connection between the first processor and the first display screen; According to the third control of the second processor, disconnect the connection between the second processor and the second display screen, and open the connection between the first processor and the second display screen; According to the fourth control of the first processor, the connection between the first processor and the second display screen is disconnected, and the connection between the second processor and the second display screen is opened; wherein, the switching circuit switches the connection between the processor and the display screen, including simultaneously switching the display connection used for transmitting display data and the control connection used for transmitting touch information; the switching circuit is a Mobile Industry Processor Interface (MIPI) switch, and the MIPI switch is physically connected between the MIPI interfaces of the first processor, the second processor, the first display screen, and the second display screen; wherein, the first display screen and the second display screen are two independent physical display screens; The first processor is used to control the switching circuit and drive the first display screen or the second display screen connected to the first processor to display data of the application running on the first processor; The second processor is used to control the switching circuit and drive the second display screen or the first display screen connected to the second processor to display data of the application running on the second processor.
2. The control circuit as described in claim 1, characterized in that, The first processor is specifically used for: If it is determined that the second processor meets the conditions for taking over from the first processor, then the first control or the fourth control is executed; or If it is determined that the first application running on the first processor is closed, then the first control or the fourth control is executed, and the first application is set to run only on the first processor; or If it is determined that the first working mode is entered, the first control or the fourth control is executed, and in the first working mode only the second processor runs.
3. The control circuit as described in claim 2, characterized in that, After executing the first control or the fourth control, the first processor enters a sleep state or is powered off.
4. The control circuit according to any one of claims 1-3, characterized in that, The first processor is further configured to: A first notification is sent to the second processor, which is used to notify the second processor to take over the operation of the application from the first processor.
5. The control circuit as described in any one of claims 1-3, characterized in that, The second processor is specifically used for: If it is determined that the first application is launched, the second control or the third control is executed, and the first application is configured to run only on the first processor; or If it is determined that the second processor does not meet the requirements for running the second application, then the second control or the third control is executed; or If it is determined to exit the first working mode, then the second control or the third control is executed, in which only the second processor runs in the first working mode.
6. The control circuit as described in claim 5, characterized in that, After executing the second control or the third control, the second processor enters a sleep state or is powered off.
7. The control circuit according to any one of claims 1-3, characterized in that, The second processor is also used for: A second notification is sent to the first processor, which instructs the first processor to take over the operation of the application from the second processor.
8. The control circuit according to any one of claims 1-3, characterized in that, The switching circuit is also used for: According to the fifth control of the first processor, the connection between the first processor and the first display screen is disconnected, and the connection between the second processor and the second display screen is opened; according to the sixth control of the second processor, the connection between the second processor and the second display screen is disconnected, and the connection between the first processor and the first display screen is opened.
9. The control circuit as described in claim 8, characterized in that, The first processor is specifically used for: If it is determined that the conditions for switching from the first display screen to the second display screen are met, then the fifth control is executed.
10. The control circuit as described in claim 9, characterized in that, The first processor is further configured to: Suspend or close a first application running on the first processor, the first application being configured to run only on the first processor.
11. The control circuit as described in claim 9, characterized in that, After executing the fifth control, the first processor enters a sleep state or is powered off.
12. The control circuit as described in claim 8, characterized in that, The second processor is specifically used for: If it is determined that the conditions for switching from the second display screen to the first display screen are met, then the sixth control is executed.
13. The control circuit as described in claim 12, characterized in that, After executing the sixth control, the second processor enters a sleep state or is powered off.
14. The control circuit according to any one of claims 1-3, characterized in that, The switching circuit is also used for: According to the seventh control of the first processor, the connection between the first processor and the first display screen is disconnected, and the connection between the first processor and the second display screen is opened.
15. The control circuit as described in claim 14, characterized in that, The first processor is specifically used for: If it is determined that the conditions for switching from the first display screen to the second display screen are met, but the second processor cannot meet the conditions for running the third application, then the seventh control is executed, wherein the third application is the application currently running in the first processor.
16. The control circuit according to any one of claims 1-3, characterized in that, The switching circuit is also used for: According to the eighth control of the first processor, maintain the connection between the first processor and the first display screen, and open the connection between the first processor and the second display screen; according to the ninth control of the first processor, maintain the connection between the first processor and the first display screen, and disconnect the connection between the first processor and the second display screen; according to the tenth control of the first processor, maintain the connection between the first processor and the second display screen, and open the connection between the first processor and the first display screen; according to the eleventh control of the first processor, maintain the connection between the first processor and the second display screen, and disconnect the connection between the first processor and the first display screen.
17. The control circuit as described in claim 16, characterized in that, The first processor is specifically used for: If the second display screen is detected to be lit when the first display screen is already lit, then the eighth control is executed; or If the second display screen is detected to be off when both the first and second display screens are lit, then the ninth control is executed. or If the first display screen is detected to be lit when the second display screen is already lit, then the tenth control is executed; or If the first display screen is detected to be off when both the first and second display screens are on, then the eleventh control is executed.
18. The control circuit according to any one of claims 1-3, characterized in that, The second processor is also connected to one or more of the following peripherals: memory, microphone, speaker, camera, short-range integrated circuit device, positioning device, and charging module.
19. The control circuit according to any one of claims 1-3, characterized in that, The first processor carries a main operating system, while the second processor carries a lightweight operating system.
20. The control circuit as described in claim 19, characterized in that, The main operating system is HarmonyOS, and the lightweight operating system is HarmonyOS Lightweight.
21. An electronic device, characterized in that, The system includes the control circuit as described in any one of claims 1-20, and further includes a first display screen and a second display screen, wherein the first display screen or the second display screen is connected to the first processor or the second processor via the switching circuit.
22. The electronic device as claimed in claim 21, characterized in that, The first display screen is the main display screen, and the second display screen is the auxiliary display screen.
23. A control method, characterized in that, The method is applied to a control circuit, which includes a first processor, a second processor, and a switching circuit. The switching circuit is a hardware circuit independent of the first processor and the second processor. The switching circuit is a Mobile Industry Processor Interface (MIPI) switch, and the MIPI switch is physically connected between the MIPI interfaces of the first processor, the second processor, the first display screen, and the second display screen. The method includes: When the first processor is connected to the first display screen, it controls the switching circuit to disconnect the display connection and control connection between the first processor and the first display screen, and to open the display connection and control connection between the second processor and the first display screen; wherein, the first processor is used to drive the first display screen connected to the first processor to display data of the application running on the first processor, and the second processor is used to drive the first display screen connected to the second processor to display data of the application running on the second processor; When the second processor is connected to the first display screen, the switching circuit is controlled to disconnect the display connection and control connection between the second processor and the first display screen, and to open the display connection and control connection between the first processor and the first display screen. When the second processor is connected to the second display screen, it controls the switching circuit to disconnect the display connection and control connection between the second processor and the second display screen, and to open the display connection and control connection between the first processor and the second display screen; wherein, the second processor is used to drive the second display screen connected to the second processor to display the data of the application running on the second processor, and the first processor is used to drive the second display screen connected to the first processor to display the data of the application running on the first processor; When the first processor is connected to the second display screen, the switching circuit is controlled to disconnect the display connection and control connection between the first processor and the second display screen, and to open the display connection and control connection between the second processor and the second display screen. The display connection is used to transmit display data, the control connection is used to transmit touch information, and the first display screen and the second display screen are two independent physical display screens.
24. A readable storage medium, characterized in that, Includes a computer program that, when run on the device, causes the device to perform the method as described in claim 23.
25. A computer program product, characterized in that, When it is operated on the device, it causes the device to perform the method as described in claim 23.
26. A chip system, characterized in that, include: processor; When the processor retrieves and runs a computer program from memory, the device on which the chip system is installed performs the method as described in claim 23.
Citation Information
Patent Citations
Electronic equipment
CN113031751A
Auxiliary display within a primary display system
US20070268200A1