Control method, control circuit, and electronic device
By using the main processor and coprocessor to switch connection states in the terminal device, the low power consumption characteristics of the coprocessor are used to solve the problem of high power consumption in multi-processor and multi-display devices, and low power is achieved Consume and enrich the effect of displaying the scene.
Patent Information
- Application Number
- PCT/CN2024/097874
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-05
- Filing Date
- 2024-06-06
- Publication Date
- 2025-01-09
AI Technical Summary
The prior art is difficult to implement the processor's display transmission process control of the display screen at low power consumption in multi-processor and multi-display terminal devices, resulting in high device power consumption.
By introducing a main processor and a coprocessor in a terminal device and switching the connection state between the two through a switching circuit, the low power consumption characteristics of the coprocessor are used to run as needed, or in the main processor. Run high-efficiency applications on to enable low-power display control.
It effectively reduces the power consumption of terminal devices, extends the battery life of the device, and enriches the display control scenarios to adapt to the needs of different usage scenarios.
Smart Images

Figure CN2024097874_09012025_PF_FP_ABST
Abstract
Description
A control method, a control circuit and an electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on July 5, 2023, with application number 202310820022.1 and application name “A control method, control circuit and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of terminal technology, and in particular to a control method, a control circuit, and an electronic device. Background Art
[0004] With the rapid development of terminal technology, devices with dual displays are becoming increasingly popular. 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 primary screen, while the display on the back is called the back screen or secondary screen.
[0005] Terminal devices are generally equipped with a central processing unit (CPU), and can also be equipped with a coprocessor to assist the CPU in completing 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.
[0006] Currently, for terminal devices with multiple processors and multiple display screens, how to achieve low-power consumption control of the processor's display process on the display screen is a technical problem that needs to be solved.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide a control method, a control circuit, and an electronic device for realizing processor-to-display control of a display screen with low power consumption for an electronic device with multiple screens and multiple processors.
[0009] In a first aspect, a control circuit is provided. The control circuit can be applied to an electronic device with multiple processors and multiple displays. The control circuit may include: a first processor, a second processor, and a switching circuit. The first processor is a main processor, and the second processor is a coprocessor. The switching circuit is configured to, based on a first control by the first processor, disconnect the first processor from the first display and connect the second processor to the first display; based on a second control by the second processor, disconnect the second processor from the first display and connect the first processor to the first display; based on a third control by the second processor, disconnect the second processor from the second display and connect the first processor to the second display; and based on a fourth control by the first processor, disconnect the first processor from the second display and connect the second processor to 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 from 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 from an application running on the second processor. Optionally, the first display is the main display, and the second display is the auxiliary display.
[0010] In the above implementation, the first and second processors can switch between various connection states between the processors and the display screen by controlling the switching circuit, thereby reducing power consumption based on different scenarios. For example, in some scenarios, 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 can effectively reduce the power consumption of the electronic device due to the lower power consumption and higher energy efficiency of the second processor.
[0011] 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.
[0012] In one possible implementation, the first processor is specifically used to: if it is determined that the second processor meets the conditions for replacing the first processor, execute the first control or the fourth control; or, if it is determined that the first application running on the first processor is closed, execute the first control or the fourth control, and the first application is set to run only on the first processor; or, if it is determined to enter the first working mode, execute the first control or the fourth control, and only the second processor runs in the first working mode.
[0013] In one possible implementation, the first processor is further configured to send a first notification to the second processor, the first notification being used to notify the second processor to take over running the application on behalf of the first processor. This implementation allows the application to be migrated from running on the main operating system to running on the lightweight operating system.
[0014] In a possible implementation, the first processor enters a sleep state or powers off after executing the first control or the fourth control, thereby further saving power consumption of the electronic device.
[0015] In one possible implementation, the second processor is specifically used to: if it is determined that the first application is started, execute the second control or the third control, and the first application is set 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 the second control or the third control; or, if it is determined to exit the first working mode, execute the second control or the third control, and only the second processor runs in the first working mode.
[0016] In one possible implementation, the second processor is further configured to send a second notification to the first processor, the second notification being configured to notify the first processor to take over the execution of the application from the second processor. This implementation allows the application to be migrated from running under the lightweight operating system to running under the main operating system.
[0017] In a possible implementation, the second processor enters a sleep state or powers off after executing the second control or the third control, thereby further saving power consumption of the electronic device.
[0018] In one possible implementation, the switching circuit is also used 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; 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.
[0019] Optionally, the first processor is configured to: execute a fifth control if it is determined that a condition for switching from the first display screen to the second display screen is 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, after executing the fifth control, the first processor enters a dormant state or powers down.
[0020] Optionally, the second processor is specifically configured to: if it is determined that a condition for switching from the second display screen to the first display screen is met, execute a sixth control. Optionally, the second processor enters a sleep state or powers off after executing the sixth control.
[0021] In one possible implementation, the switching circuit is further configured to, in accordance with the seventh control of the first processor, disconnect the first processor from the first display and connect the first processor to the second display. Optionally, the first processor is specifically configured to, if it is determined that a condition for switching from the first display to the second display is met, but the second processor cannot meet a condition for running a third application, execute the seventh control, where the third application is the application currently running on the first processor.
[0022] In one possible implementation, the switching circuit is further used 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 screen according to the tenth 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 according to the eleventh control of the first processor.
[0023] In one possible implementation, the first processor is specifically used to: when the first display screen is lit, if it is detected that the second display screen is lit, then execute the eighth control; or, when the first display screen and the second display screen are lit, if it is detected that the second display screen is off, then execute the ninth control; or, when the second display screen is lit, if it is detected that the first display screen is lit, then execute the tenth control; or, when the first display screen and the second display screen are lit, if it is detected that the first display screen is off, then execute the eleventh control.
[0024] In a possible implementation, the second processor is further connected to one or more of the following peripherals: a memory, a microphone, a player, a camera, a short-range integrated circuit device, a positioning device, and a charging module.
[0025] In one possible implementation, the first processor is equipped with a main operating system, and the second processor is equipped with a lightweight operating system. Optionally, the main operating system is Hongmeng OS, and the lightweight operating system is Hongmeng lightweight OS.
[0026] In a second aspect, a control method is provided, applied to the control circuit provided in the first aspect. The method comprises: when the first processor is connected to a first display screen, controlling the switch circuit to disconnect the first processor from the first display screen and to connect the second processor to the first display screen; wherein the first processor is configured 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 configured 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 switch circuit to disconnect the second processor from the first display screen and to connect the first processor to the first display screen. When the second processor is connected to the second display screen, controlling the switch circuit to disconnect the second processor from the second display screen and to connect the first processor to the second display screen; wherein the second processor is configured 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 configured 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 switch circuit to disconnect the first processor from the second display screen and to connect the second processor to the second display screen.
[0027] The operations performed by the above-mentioned first processor, second processor and control circuit can refer to the relevant content in the first aspect.
[0028] In a third aspect, an electronic device is provided, comprising the control circuit described above, 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 switch circuit. Optionally, the first display screen is a primary display screen, and the second display screen is a secondary display screen.
[0029] In a fourth aspect, a readable storage medium is provided, comprising a computer program, which, when executed on a device, causes the device to execute the method described in the second aspect above.
[0030] In a fifth aspect, a computer program product is provided, which, when executed on a device, enables the device to execute the method described in the second aspect above.
[0031] In a sixth aspect, a chip system is provided, comprising: a processor; when the processor calls and runs a computer program from a memory, the device equipped with the chip system executes the method described in the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1 is a schematic diagram of a candy-bar mobile phone with a main screen and a secondary screen applicable to an embodiment of the present application;
[0033] FIG2 is a schematic diagram of a foldable screen mobile phone with an inner screen and an outer screen applicable to an embodiment of the present application;
[0034] FIG3 is a schematic diagram of a control circuit applied to an electronic device provided in an embodiment of the present application;
[0035] FIG4 is a schematic diagram showing a connection state of a dual processor and a dual display screen according to an embodiment of the present application;
[0036] FIG5 is a schematic diagram showing another connection state of dual processors and dual display screens in an embodiment of the present application;
[0037] FIG6 is a schematic diagram showing another connection state between dual processors and dual display screens in an embodiment of the present application;
[0038] FIG7 is a schematic diagram showing another connection state of dual processors and dual display screens in an embodiment of the present application;
[0039] FIG8 is a schematic diagram showing another connection state of dual processors and dual display screens in an embodiment of the present application;
[0040] FIG9 is a schematic diagram showing another connection state of dual processors and dual display screens in an embodiment of the present application;
[0041] FIG10 is a schematic diagram of connection state switching in a scenario 1 according to an embodiment of the present application;
[0042] FIG11 is a schematic diagram of connection state switching under scenario 2 in an embodiment of the present application;
[0043] FIG12 is a schematic diagram of connection state switching under scenario three in an embodiment of the present application;
[0044] FIG13 is a schematic diagram of connection state switching under scenario 4 in an embodiment of the present application;
[0045] FIG14 is a schematic diagram of a connection between a second processor and a peripheral device according to an embodiment of the present application;
[0046] FIG15 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0047] FIG16 is a schematic structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0049] It should be understood that in the embodiments of the present application, "at least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural 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, c can be single or multiple. "Multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.
[0050] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0051] First, the technical terms involved in the embodiments of the present application are introduced.
[0052] (1) Main processor and coprocessor
[0053] In electronic devices with a main processor and coprocessors, the main processor, such as an application processor (AP), typically a CPU, performs the majority of processing operations. A coprocessor is a processor specifically designed to collaborate with the main processor to complete certain computing tasks. For example, a coprocessor can include a microcontroller unit (MCU, also known as a single-chip microcomputer), a digital signal processor (DSP), a graphics processing unit (GPU), etc. A coprocessor can also be a small core in a system on chip (SoC). Compared to the main processor, a coprocessor typically has lower performance, lower current consumption, higher energy efficiency, and lower power consumption.
[0054] Optionally, in an embodiment of the present application, the coprocessor may include one or more of the following components: a communication component (such as a low-power Bluetooth communication component), a power system, a navigation and positioning system-related component (such as a positioning system protocol stack), a near-field communication component, a graphic code payment-related component, a call service-related component, a short message-related component, an always-on display (AOD)-related component, etc. The navigation and positioning system may include a global navigation satellite system (GNSS), etc., which is not limited in the embodiment of the present application.
[0055] Taking the above-mentioned components included in the coprocessor as an example, since the coprocessor may have a communication component, the coprocessor can support call services, so there is no need to switch to the main processor to execute call services, thereby saving power consumption; since the coprocessor may have a near-field communication component, the coprocessor can support near-field communication-related functions, so there is no need to switch to the main processor to execute near-field communication services, thereby saving power consumption; since the coprocessor may have a graphic code payment-related component, the coprocessor can support graphic code payment-related functions, so there is no need to switch to the main processor to execute graphic code payment services, thereby saving power consumption; for another example, since the coprocessor may have a navigation and positioning system-related component, the coprocessor can support navigation and positioning services, so there is no need to switch to the main processor to execute navigation and positioning services, thereby saving power consumption.
[0056] Since the coprocessor can include the above components, after the terminal device enters the ultra-long battery life mode, the coprocessor can still be used to make calls, send and receive text messages, navigate and locate, pay with QR codes, count steps, etc., thereby saving power consumption.
[0057] (2) Main operating system and lightweight operating system
[0058] In the embodiment of the present application, the main processor in the terminal device can be equipped with a main operating system, and the coprocessor can be equipped with a lightweight operating system (LiteOS), and the main operating system and the lightweight operating system are relatively independent. Compared with the main operating system, the lightweight operating system refers to a type of operating system that is small, flexible, small in size, fast in operation, and easy to use. Compared with the main operating system, the lightweight operating system has fewer functions and relatively small resource consumption, which can save system resources and improve system efficiency. For example, the main operating system can be Operating System (Harmony ), the lightweight operating system can be Harmony lite OS, such as Harmony L3 or above, which can be used as the main operating system. For example, the main operating system can be Android system The lightweight operating system can be an Android lightweight system. For example, the main operating system can be a Microsoft operating system. The lightweight operating system may be Microsoft Lightweight Operating System.
[0059] An application can run on either a main operating system or a lightweight operating system. When running on a lightweight operating system, it occupies fewer system resources (such as memory) than when running on the main operating system. When running on a lightweight operating system, an application may only be able to implement some of the application's functions. For example, when running on a lightweight operating system, an audio player can only implement the play, pause, play previous, and play next functions, but cannot implement functions such as selecting a music album provided by the audio player. Therefore, the application running on a lightweight operating system can also be called a simplified version of the application.
[0060] In some embodiments of the present application, certain applications that require high system resources, such as certain gaming applications, may be allowed to run only on the main operating system and not on the lightweight operating system. Optionally, an application list may be set, and the applications in the application list can only run on the main operating system and cannot run on the lightweight operating system. Optionally, the application list may include identification information of the application, such as the application name.
[0061] The embodiments of the present application may be applicable to electronic devices. These electronic devices may include, for example, mobile phones, tablet computers, laptop computers, netbooks, in-vehicle devices, business intelligence terminals (including videophones, conference desktop intelligent terminals, etc.), personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, and the embodiments of the present application do not limit the specific form of the electronic devices.
[0062] The electronic devices to which the embodiments of the present application can be applied include, but are not limited to, electronic devices equipped with Harmony Or electronic devices with other operating systems. The electronic device may also be other electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface (eg, a touch panel).
[0063] The electronic device in the embodiment of the present application may have multiple processors and multiple display screens. Taking a dual-screen electronic device as an example, the dual-screen electronic device may be a foldable screen mobile phone or a straight-screen mobile phone, and the dual-screen electronic device has two display screens.
[0064] For example, Figure 1 shows a schematic diagram of a dual-screen candy-bar phone. As shown in Figure 1, the front of the phone 100 is provided with a main screen 101 (also called the front screen), and the back of the phone 100 is provided with a secondary screen 102 (also called the rear screen) and a rear camera 103. The size of the secondary screen 102 is generally smaller than that of the main screen 101. The resolution of the secondary screen 102 may be lower than that of the main screen, and some scenarios only require a high-efficiency 2D graphics subsystem. The secondary screen 102 can support an always-on display and can also be customized to display the time, notification messages, or wallpaper. The camera function can be activated on the secondary screen, allowing users to take selfies with the rear camera for better photo quality. Optionally, when the main screen 101 is off, the rear secondary screen 102 can display various push notifications from applications. Optionally, users can also 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.
[0065] For example, FIG2 shows a schematic diagram of a dual-screen folding screen mobile phone. As shown in FIG2 , the mobile phone 200 is an inward-folding folding screen mobile phone. The mobile phone 200 includes an inner screen 201 (also called a large screen or main screen) and an outer screen 202 (also called a small screen or sub-screen). The inner screen 201 and the outer screen 202 are arranged back to back, that is, they are respectively arranged on two opposite planes of the mobile phone 200. The size of the outer screen 202 is usually smaller than that 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 screen-off 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 of the application; optionally, when listening to music, the user can also select the song to listen to by sliding up and down on the outer screen 202.
[0066] In the following description of the embodiments of the present 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 the display performance of the second display screen, for example, the resolution of the first display screen is higher than the resolution of the second display screen. Optionally, the power consumption of the second display screen is lower than the power consumption of the first display screen. Optionally, the first display screen and / or the second display screen includes a touch panel and supports touch function.
[0067] In an embodiment of the present application, for an electronic device with dual screens and dual processors, on the basis of the first processor controlling the first display screen for display and the second processor controlling the second display screen for display, it is also possible to switch between the first processor and the second processor (or switch between the main operating system and the lightweight operating system) and switch between the first display screen and the second display screen according to the specific application scenario, such as the first processor running the first application and controlling the first display screen for display, switching to the second processor running the first application and controlling the second display screen for display, or switching to the second processor running the first application and controlling the first display screen for display, so as to reduce power consumption.
[0068] 3 , which illustrates a control circuit within an electronic device provided by an embodiment of the present application, wherein the control circuit is disposed within the electronic device and can implement display control. As shown in the figure, the control circuit 300 includes a first processor 310 , a second processor 320 , and a switch circuit 330 .
[0069] The first processor 310 is a main processor, and the second processor 320 is a 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 are implemented by different chips. In another possible implementation, the second processor 320 and the first processor 310 are integrated into a SoC, that is, the first processor 310 and the second processor 320 can be implemented by a single SoC chip, wherein the first processor 310 and the second processor 320 are two independent cores within the SoC chip.
[0070] Optionally, the processing capability 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. For another example, the second processor 320 has fewer components than the first processor 310. For example, the first processor 310 has a component for implementing graphic code scanning and recognition, while the second processor 320 does not have this component.
[0071] The first processor 310 and the second processor 320 can communicate with each other through a serial bus. Exemplarily, the serial bus can be a serial peripheral interface (SPI), which is a high-speed, full-duplex, synchronous communication bus that operates in a master-slave mode and typically has a MISO (master in slave out) input line (master device data input), a MOSI output line (master device data output), a serial clock (SCLK) line, and a chip select (CS) line. As another example, the serial bus can also be a secure digital input and output (SDIO) interface. In some embodiments of the present application, the first processor 310 and the second processor 320 can send control information to the second processor 320 through the serial bus, such as notifying the second processor 320 to run a corresponding application; the second processor 320 can also send control information to the first processor 310 through the serial bus, such as notifying the first processor 310 to run a corresponding application. The specific implementation method can be referred to below. The first processor 310 and the second processor 320 may also perform asynchronous communication, for example, by using a low power universal synchronous asynchronous receiver transmitter (LPUART) for asynchronous communication.
[0072] In a possible implementation, the first processor 310 is equipped with a first operating system, and the second processor 320 is equipped with a second operating system, wherein the first operating system is a main operating system, and the second operating system is a lightweight operating system (Lite OS).
[0073] The switch 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 switch circuit 330 to switch the connection between the processor (e.g., including the first processor and the second processor) and the display (e.g., including the first display and the second display). In one possible implementation, the switch circuit 330 can be implemented by a mobile industry processor interface (MIPI) switch, and the switch circuit 330 can be connected to the MIPI interfaces of the first processor 310, the second processor 320, the first display 340, and the second display 350. MIPI is an open standard and specification initiated by the MIPI Alliance for mobile application processors. Using a MIPI switch can reduce implementation costs and technical implementation difficulties.
[0074] The first display screen 340 is the main screen, and the second display screen 350 is the secondary screen. In one example, as shown in FIG1 , the first display screen is the main screen 101 and the second display screen is the secondary screen 102; in another example, as shown in FIG2 , the first display screen is the inner screen 201 and the second display screen is the outer screen 202.
[0075] In one possible implementation, the first display screen 340 has a touch panel (TP) that can detect a user's touch operation on the first display screen 340. When the touch panel of the first display screen 340 detects a user's touch operation on the first display screen 340, the touch information (represented as TP_SPI in the figure) can be sent 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 accordingly, the touch information can be transmitted to the first processor 310 via the SPI interface. Optionally, the first processor 310 can also request to obtain the status of the first display screen 340 through the SPI interface.
[0076] In one possible implementation, the second display screen 350 has a touch panel that can detect a user's touch operation on the second display screen 350. When the touch panel of the second display screen 350 detects a user's touch operation on the second display screen 350, the touch information (represented as TP_SPI in the figure) can be sent 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 accordingly, the touch information can be transmitted to the second processor 320 via the SPI interface. Optionally, the second processor 320 can also request to obtain the status of the second display screen 350 through the SPI interface.
[0077] In the control circuit 300 shown in FIG3 , the switch circuit 330 can accept the control of the first processor 310 and the second processor 320 to control the connection status between the first processor 310, the second processor 320 and the first display screen 340, the second display screen 350. The connection status between the first processor 310, the second processor 320 and the first display screen 340, the second display screen 350 can be shown in FIG4 , FIG5 , FIG6 , FIG7 , FIG8 , and FIG9 .
[0078] As shown in Figure 4, the first processor 310 is connected to the first display screen 340, and the connections between the second processor 320 and the first display screen 340 and the second display screen 350 are all disconnected. In this connected state, an application is running in the first processor 310 (it can be understood that the application runs under the main operating system), and the first processor 310 generates (or refreshes) the display data of the application, and the display data 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 through the connection between the first processor 310 and the first display screen 340 for display. Optionally, the second processor 320 may be in a dormant state or a power-off state. Optionally, the second display screen 350 may be in a screen-off state.
[0079] As shown in Figure 5, the second processor 320 is connected to the second display screen 350, and the connections between the first processor 310 and the first display screen 340 and the second display screen 350 are all disconnected. In this connected state, an application is run in the second processor 320 (it can be understood that the application runs under a lightweight operating system), and the second processor 320 generates (or refreshes) the display data of 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 through the connection between the second processor 320 and the second display screen 350 for display. 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.
[0080] As shown in Figure 6, the first processor 310 is connected to the first display screen 340, and the second processor 320 is connected to the second display screen 350. In this connected state, the first processor 310 runs an application (it is understood that the application runs under the main operating system), and the first processor 310 generates (or refreshes) the display data of the application, which is stored in the cache unit 360. Under 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. The second processor 320 runs an application (it is understood that the application runs under a lightweight operating system), and the second processor 320 generates (or refreshes) the display data of the application, which is stored in the cache unit 370. Under 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 on the first processor 310 may be different from the application running on 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. Optionally, the application running on the first processor 310 may be the same as the application running on 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.
[0081] As shown in Figure 7, the first processor 310 is connected to the second display screen 350, and the connections between the second processor 320 and the first display screen 340 and the second display screen 350 are all disconnected. In this connected state, an application is running in the first processor 310 (it can be understood that the application runs in the main operating system), and the first processor 310 generates (or refreshes) the display data of 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 through the connection between the first processor 310 and the second display screen 350 for display. Optionally, the second processor 320 may be in a dormant state or a power-off state. Optionally, the first display screen 340 may be in a screen-off state.
[0082] As shown in Figure 8, the second processor 320 is connected to the first display screen 340, and the connections between the first processor 310 and the first display screen 340 and the second display screen 350 are all disconnected. In this connected state, an application is run in the second processor 320 (it can be understood that the application runs under a lightweight operating system), and the second processor 320 generates (or refreshes) the display data of 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 through the connection between the second processor 320 and the first display screen 340 for display. 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.
[0083] As shown in Figure 9, the first processor 310 is connected to the first display screen 340 and the second display screen 350, respectively, and the connections between the second processor 320 and the first display screen 340 and the second display screen 350 are both disconnected. In this connected state, the first processor 310 runs an application (it will be understood that 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 is 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 dormant state or powered off.
[0084] 4 to 9 illustrate the cache unit 360 as an internal storage unit (or memory) of the first processor 310. It is understood that the cache unit 360 may also be a storage unit (or memory) independent of the first processor 310, and this embodiment of the present application is not limited thereto. Similarly, the cache unit 370 may also be a storage unit (or memory) independent of the second processor 320.
[0085] In the embodiment of the present application, the switch circuit 330 can switch between the various connection states shown in Figures 4 to 9 according to the control of the first processor 310 or the second processor 320. Several possible switching scenarios are described below.
[0086] Switching scenario 1: Switching from the connection state shown in FIG4 to the connection state shown in FIG8.
[0087] Figure 10 illustrates a schematic diagram of a connection state switching scenario according to an embodiment of the present application. When the first processor 310 determines that a switch is required from the current connection state shown in Figure 4 to the connection state shown in Figure 8 , the first processor 310 executes a first control to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in Figure 8 .
[0088] Optionally, the first processor 310 may perform the first control in the following cases:
[0089] Case 1-1: If the first processor 310 determines that the second processor 320 meets the conditions for taking over the first processor 310, the first control is performed.
[0090] In some scenarios, the first processor 310 may run a smaller number of applications or applications with simpler functions, and the capabilities of the second processor 320 can meet the requirements for running these applications. In this case, the first processor 310 can execute the first control so that the second processor can take over the operation of these applications, that is, migrate these applications from running under the main operating system to running under the lightweight operating system.
[0091] For example, when the first processor 310 determines that the memory usage is lower than a set threshold, it indicates that the capabilities of the second processor 320 can support migrating the application currently running under the main operating system to run under the lightweight operating system. Therefore, the first processor 310 can execute the first control to switch to the second processor 320. For example, the user is editing a document using a document editing application through the first display screen 340. The document editing application is currently running on the first processor 310 (i.e., running on the main operating system). After the user stops the document editing operation, 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, so that the second processor 320 takes over the first processor 310 to reduce the power consumption of the terminal device.
[0092] For another example, if the first processor 310 has a QR code scanning and recognition component, but the second processor 320 does not have such a component, then after the application running in the first processor 310 completes the QR code scanning and recognition operation, the first processor 310 may execute a first control to switch to the second processor 320. Exemplarily, the terminal device is performing a QR code scanning operation through 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, and the second processor 320 takes over the subsequent processing from the first processor 310 to reduce the power consumption of the terminal device.
[0093] Case 1-2: If the first processor 310 determines that the first application running on the first processor is closed, the first control is performed, wherein the first application is set to run only on the first processor.
[0094] During specific implementation, an application list may be set, which includes relevant information about the applications, such as the application names. Applications in this application list may only run on the first processor 310, that is, only run under the main operating system, because they occupy a large amount of system resources or require components that may not be available on the second processor. For example, some gaming applications may be examples. The application list may be set by the system or by the user, such as by providing a settings interface for the user to select applications through the settings interface, thereby implementing settings for the application list.
[0095] If the first application running on the first processor 310 is closed, for example, the first processor 310 determines that the game is closed based on the touch information from the first display screen, and the game is in the above-mentioned application list, the second processor 320 can take over the operation of the application, so the first processor 310 can execute the first control.
[0096] Case 1-3: If the first processor 310 determines to enter the first operating mode, the first control is executed.
[0097] Among them, in the first working mode, only the second processor 320 runs. The first working mode can also be called the ultra-long battery life mode. In order to reduce power consumption as much as possible and extend the use time of the electronic device, in this mode, only the second processor 320 runs, and the first processor 310 can be in a dormant state or a power-off state. Compared with the normal working mode, in the ultra-long battery life mode, only some functions are available, such as mobile network, wireless local area network (WLAN), negative one screen and other functions will be turned off to save power. The ultra-long battery life mode can be entered in a variety of ways, and the embodiments of the present application are not limited to this. For example, the electronic device can provide a system setting interface, and the user can choose to enter the ultra-long battery life mode through the ultra-long battery life mode switch option in the system setting interface. When the terminal device determines that the user has chosen to enter the ultra-long battery life mode, the first control can be executed; or when the power of the electronic device drops to a set threshold, the ultra-long battery life mode can be automatically entered, and the first control is executed by the first processor 310.
[0098] Optionally, the implementation process of the first control may include: the first processor 310 sends a control instruction to the switching circuit 330; the switching circuit 330 disconnects the first processor 310 from the first display screen 340 and opens the connection between the second processor 320 and the first display screen 340 according to the control instruction. After disconnecting the first processor 310 from the first display screen 340 and opening the connection between the second processor 320 and the first display screen 340, the second processor 320 may drive the first display screen 340 connected to the second processor 320 to display the display data of the application program run by the second processor 320. For example, the second processor 320 generates (or refreshes) the display data of the application program, which is rendered and displayed on the first display screen 340. Since the bottom current of the second processor 320 is low, the power consumption is low, and the energy efficiency is high, running the application program 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 cooperate with each other, and 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 transferred to the low-power second processor 320, thereby reducing power consumption.
[0099] Optionally, after determining that it is necessary to switch from the current connection state shown in FIG. 4 to the connection state shown in FIG. 8 , the first processor 310 may further send a first notification to the second processor 320, where the first notification is used to notify the second processor 320 to take over running the application from the first processor 310. Optionally, the first notification may include relevant information about the application so that the second processor 320 takes over running the corresponding application, causing the application to run under the lightweight operating system in the second processor 320.
[0100] To further reduce power consumption, in one possible way, the first processor 310 can also enter a sleep state after executing the first control (such as sending a control instruction). 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 off after executing the first control, that is, disconnect from the power supply system, thereby further reducing power consumption.
[0101] After the connection state is switched as shown in scenario 1, to ensure the transmission of touch information, 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 via 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 via the interface between the first display screen 340 and the first processor 310, so that the second processor 320 can respond. Optionally, if the first processor 310 is in a dormant state, it can be awakened after receiving the touch information to send the touch information to the second processor 320. In another possible implementation, the first processor 310's first control of the switch circuit 330 includes not only switching control over the connection used to transmit display data, but also switching control over the connection used to transmit touch information. The connection used to transmit display data and the connection used to transmit touch information are subjected to the same switching control, that is, both connections are either disconnected or both connections are opened. For example, in the following scenario, the switch circuit 330 can, based on the first control of the first processor 310, 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. In this way, after the first display screen 340 detects a user touch operation, it can send the touch information to the second processor 320 via this connection so that the second processor 320 can respond. Compared with the above-mentioned implementation method of forwarding touch information through the first processor, the simultaneous control of the on / off status of the two connections can avoid waking up the first processor, thereby further saving power consumption of the terminal device.
[0102] Switching scenario 2: Switching from the connection state shown in FIG8 to the connection state shown in FIG4 .
[0103] Figure 11 illustrates a schematic diagram of a connection state switching scenario 2 according to an embodiment of the present application. When the second processor 320 determines that it is necessary to switch from the current connection state shown in Figure 8 to the connection state shown in Figure 4, the second processor 320 executes a second control to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in Figure 4.
[0104] Optionally, the second processor 320 may perform the second control in the following cases:
[0105] Case 2-1: If the second processor 320 determines that it does not have the conditions to run the second application program, it sends a control instruction to the switch circuit 330 .
[0106] 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 the second control so that the first processor 310 can assume the operation of the application. In other words, the application is migrated from running under the lightweight operating system to running under the main operating system so that the corresponding components in the first processor 310 can be used. Exemplarily, the application currently running in the second processor 320 calls the QR code scanning and recognition related components, but this component is located in the first processor 310. Therefore, the second processor 320 executes the second control to switch to the first processor 310 so that the first processor 310 can perform the QR code recognition function.
[0107] In other scenarios, when the memory overhead of the second processor 320 is higher than the 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 the second control to switch to the first processor 310.
[0108] Case 2-2: If the second processor 320 determines that the first application is started, the second control is executed. The first application is set to run only on the first processor. For example, the user is using a document editing application through the first display screen 340 and is not currently performing an editing operation. The document editing application is currently running on the second processor 320 (i.e., running on a lightweight operating system). After the user starts to perform an editing operation, the memory usage of the second processor 320 increases and has exceeded the set threshold. At this time, the second processor 320 can execute the second control, so that the first processor 310 takes over the second processor 320 to ensure the performance of the document editing operation.
[0109] Case 2-3: If the second processor 320 determines to exit the first operating mode, the second control is executed.
[0110] Optionally, after exiting the first working mode, the second processor 320 can determine whether to execute the second control according to the specific circumstances. For example, if the second processor 320 determines that it is necessary to interact with the network side through the communication component in the first processor 310, the second control can be executed so that after switching to the first processor 310, the first processor 310 interacts with the network side through its communication component.
[0111] Optionally, the second control implementation process may include: the second processor 320 sending a control instruction to the switch circuit 330; and the switch circuit 330, in accordance with the control instruction, disconnecting the second processor 320 from the first display screen 340 and reconnecting the first processor 310 to the first display screen 340. After disconnecting the second processor 320 from the first display screen 340 and reconnecting the first processor 310 to the first display screen 340, the first processor 310 may drive the first display screen 340 connected to the first processor 310 to display display data of an application running on the first processor 310. For example, the first processor 310 generates (or refreshes) display data for the application, which is then rendered and displayed on the first display screen 340. Because the first processor 310 can support more complex or richer functions, it can meet user needs.
[0112] Optionally, after determining that the connection state shown in FIG. 8 needs to be switched to the connection state shown in FIG. 4 , the second processor 320 may further send a second notification to the first processor 310, where the second notification is used to notify the first processor 310 to take over the execution of the application program from the second processor 320. Optionally, the second notification may include relevant information about the application program, so that the application program runs in the main operating system in the first processor 310.
[0113] To further reduce power consumption, in one possible approach, the second processor 320 may enter a sleep state or a power-off state after executing the second control (eg, sending a control instruction).
[0114] After the connection state is switched as shown in scenario 2, in one possible implementation, after the first display screen 340 detects a user touch operation, it sends touch information to the first processor 310 via 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 processor 320's second control of the switch circuit 330 includes not only switching control over the connection used to transmit display data, but also switching control over the connection used to transmit touch information, wherein the same switching control is performed on the connection used to transmit display data and the connection used to transmit touch information. For example, in scenario 2, the switch circuit 330 can, based on the second control of the second processor 320, disconnect the connection used to transmit display data and the connection used to transmit touch information between the second processor 320 and the first display screen 340, and open the connection used to transmit display data and the connection used to transmit touch information between the first processor 310 and the first display screen 340. In this way, after the first display screen 340 detects a user touch operation, it can send the information to the first processor 310 via this connection, so that the first processor 310 can respond.
[0115] Scenario 3: Switching from the connection state shown in Figure 5 to the connection state shown in Figure 7.
[0116] Figure 12 illustrates a schematic diagram of a connection state switching scenario 3 according to an embodiment of the present application. When the second processor 320 determines that a switch is required from the current connection state shown in Figure 5 to the connection state shown in Figure 7 , the third control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in Figure 7 .
[0117] Optionally, the second processor 320 may perform the third control in the following cases:
[0118] Case 3-1: If the second processor 320 determines that it does not have the conditions to run the second application, it performs the third control.
[0119] In some scenarios, the second application may require components not available on the second processor 320. In this case, the second processor 320 may execute the third control to allow the first processor 310 to take over the operation of the application. In other words, the application is migrated from running under the lightweight operating system to running under the main operating system so that it can use the corresponding components of 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 it may be unable to handle the operation of the application. Therefore, the second processor 320 may execute the third control to switch to the first processor 310.
[0120] Case 3-2: If the second processor 320 determines that the first application is started, the third control is performed, wherein the first application is set to run only on the first processor.
[0121] For example, in one possible application scenario, the current connection state between the processor and the display is shown in FIG5 . When a user performs a touch operation on the second display 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 the above scenario three, the second processor 320 performs the third control, thereby switching to the connection state shown in FIG7 . The first processor 310 uses the rear camera to take a selfie, and the second display 350 displays the selfie. Since the rear camera has a higher quality than the front camera, a higher quality selfie can be obtained.
[0122] Case 3-3: If the second processor 320 determines to exit the first operating mode, the third control is executed.
[0123] Optionally, after exiting the first working mode, the second processor 320 can 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 can determine to execute the third control so that after switching to the first processor 310, the first processor 310 interacts with the network side through its communication component.
[0124] Optionally, the third control implementation process may include: the second processor 320 sending a control instruction to the switching circuit 330; and the switching circuit 330, in accordance with the control instruction, disconnecting the second processor 320 from the second display screen 350 and reconnecting the first processor 310 to the second display screen 350. After disconnecting the second processor 320 from the second display screen 350 and reconnecting the first processor 310 to the second display screen 350, the first processor 310 may drive the second display screen 350 connected to the first processor 310 to display display data of an application running on the first processor 310. For example, the first processor 310 generates (or refreshes) display data for an 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 may collaborate with each other, with the first processor 310 switching to the second display screen 350 so that display data of applications 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 user interfaces of complex applications, thereby enriching the application scenarios of the second display screen 350. Enables low-power all-day display (AOD).
[0125] Optionally, after determining that it is necessary to switch to the connection state shown in FIG7 , the second processor 320 may further send a third notification to the first processor 310, where the third notification is used to notify the first processor 310 to take over the execution of the application from the second processor 320. Optionally, the third notification may include relevant information about the application so that the first processor 310 takes over the execution of the corresponding application, causing the application to run under the main operating system in the first processor 310.
[0126] To further reduce power consumption, in one possible approach, the second processor 320 may enter a sleep state or a power-off state after executing the third control (eg, sending a control instruction).
[0127] After the connection state is switched as shown in scenario three, in one possible implementation, after the second display screen 350 detects a user touch operation, it sends touch information to the second processor 320 via the interface between the second display screen 350 and the second processor 320. The second processor 320 sends the touch information to the first processor 310 via 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 dormant state, it can be awakened after receiving the touch information so as to send the touch information to the first processor 310. In another possible implementation, the third control of the switch circuit 330 by the second processor 320 includes not only switching control of the connection for transmitting display data, but also switching control of the connection for transmitting touch information, wherein the same switching control is performed on the connection for transmitting display data and the connection for transmitting touch information. For example, in scenario three, the switching circuit 330 can disconnect the connection for transmitting display data and the connection for transmitting touch information between the second processor 320 and the second display screen 350, and open the connection for transmitting display data and the connection for transmitting touch information between the first processor 310 and the second display screen 350 according to the third control of the second processor 320. In this way, after the second display screen 350 detects a user touch operation, it can send the touch information to the first processor 310 through the connection so that the first processor 310 can respond.
[0128] Scenario 4: Switching from the connection state shown in Figure 7 to the connection state shown in Figure 5.
[0129] Figure 13 illustrates a schematic diagram of a connection state switching scenario according to an embodiment of the present application. When the first processor 310 determines that it is necessary to switch from the current connection state shown in Figure 7 to the connection state shown in Figure 5, it executes a fourth control to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in Figure 5.
[0130] Optionally, similar to the above scenario 1, the first processor 310 may perform the fourth control in the following circumstances:
[0131] Case 4-1: If the first processor 310 determines that the second processor 320 meets the conditions for taking over the first processor 310, the fourth control is executed.
[0132] Case 4-2: If the first processor 310 determines that the first application running on the first processor is closed, the fourth control is executed, wherein the first application is set to run only on the first processor.
[0133] Case 4-3: If the first processor 310 determines to enter the first operating mode, the fourth control is executed.
[0134] Optionally, the implementation process of the fourth control may include: the first processor 310 sends a fourth control instruction to the switch circuit 330; the switch circuit 330 disconnects the first processor 310 from the second display screen 350 and opens the connection between the second processor 320 and the second display screen 350 according to the control instruction. After disconnecting the first processor 310 from the second display screen 350 and opening the connection between the second processor 320 and the second display screen 350, the second processor 320 may drive the second display screen 350 connected to the second processor 320 to display display data of the application running on the second processor 320. For example, the second processor 320 generates (or refreshes) display data of the application, which is rendered and displayed on the second display screen 350. Since the second processor 320 has a low bottom current, low power consumption, and high energy efficiency, running the application on the second processor can reduce the power consumption of the electronic device.
[0135] Optionally, after determining that it is necessary to switch to the connection state shown in Figure 5, the first processor 310 may further send a fourth notification to the second processor 320, where the fourth notification is used to notify the second processor 320 to take over the execution of the application program from the first processor 310. Optionally, the fourth notification may include relevant information about the application program so that the second processor 320 takes over the execution of the corresponding application program, so that the application program runs under the lightweight operating system in the second processor 320.
[0136] To further reduce power consumption, in one possible approach, the first processor 310 may enter a sleep state or a power-off state after executing the fourth control (eg, sending a control instruction).
[0137] After the connection state is switched as shown in scenario 4, in one possible implementation, after the second display screen 350 detects a user touch operation, it sends touch information to the second processor 320 via 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 first processor 310's fourth control of the switch circuit 330 includes not only switching control over the connection for transmitting display data, but also switching control over the connection for transmitting touch information, wherein the same switching control is performed on the connection for transmitting display data and the connection for transmitting touch information. For example, in scenario 4, the switch circuit 330 can, based on the fourth control of the first processor 310, disconnect the connection for transmitting display data and the connection for transmitting touch information between the first processor 310 and the second display screen 350, and open the connection for transmitting display data and the connection for transmitting touch information between the second processor 320 and the second display screen 350. In this way, after the second display screen 350 detects a user touch operation, it can send touch information to the second processor 320 via this connection, so that the second processor 320 can respond.
[0138] Scenario 5: Switching from the connection state shown in Figure 4 to the connection state shown in Figure 5.
[0139] When the first processor 310 determines that the current connection state shown in FIG. 4 needs to be switched to the connection state shown in FIG. 5 , the fifth control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 5 .
[0140] Optionally, the first processor 310 may execute the fifth control in the following circumstances: If the first processor 310 determines that the conditions for switching from the first display screen to the second display screen are met, then the fifth control is executed. Optionally, if the first processor 310 detects the following circumstances, then it may be determined that it is necessary to switch from the first display screen to the second display screen:
[0141] Case 5-1: Taking the electronic device as 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 the intermediate state to the folded state (also called the closed state), or when the second display screen 350 is lit, it can be determined that it is necessary to switch from the first display screen to the second display screen, so the fifth control is executed to switch to the second processor 320 and switch to the second display screen 350 for display.
[0142] Case 5-2: Taking the electronic device as a dual-screen bar 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, so the fifth control is executed to switch to the second processor 320 and switch to the second display screen 350 for display.
[0143] The above merely exemplifies several examples of triggering switching from the first display screen to the second display screen, and the embodiments of the present application do not limit this.
[0144] Optionally, the implementation process of the fifth control may include: the first processor 310 sends a control instruction to the switching circuit 330; the switching circuit 330 disconnects the first processor 310 from the first display screen 340 and opens the connection between the second processor 320 and the second display screen 350 according to the control instruction. After disconnecting the first processor 310 from 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, and the display data is rendered and displayed on the second display screen 350. Since the bottom current of the second processor 320 is low, the power consumption is low, and the energy efficiency is high, running the application on the second processor can reduce the power consumption of the electronic device.
[0145] Optionally, after determining that it is necessary to switch to the connection state shown in FIG5 , the first processor 310 may further send a fifth notification to the second processor 320, where the fifth notification is used to notify the second processor 320 to take over the execution of the application from the first processor 310. Optionally, the fifth notification may include relevant information about the application so that the second processor 320 takes over the execution of the corresponding application, allowing the application to run under the lightweight operating system in the second processor 320.
[0146] Optionally, if the first application is running on the first processor 310, the first processor 310 may also suspend the first application 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.
[0147] To further reduce power consumption, in one possible approach, the first processor 310 may enter a sleep state or a power-off state after executing the fifth control (eg, sending a control instruction).
[0148] After the connection state is switched in scenario five, the second display screen 350 can send touch information to the second processor 320 via 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 first processor 310's fifth control of the switch circuit 330 includes not only switching control over the connection used to transmit display data, but also switching control over the connection used to transmit touch information. The same switching control is performed on the connection used to transmit display data and the connection used to transmit touch information. The specific implementation principle is the same as that of the previous embodiment and will not be repeated here.
[0149] Scenario 6: Switching from the connection state shown in Figure 5 to the connection state shown in Figure 4.
[0150] When the second processor 320 determines that the current connection state shown in FIG. 5 needs to be switched to the connection state shown in FIG. 4 , the sixth control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 4 .
[0151] Optionally, the second processor 320 may execute the sixth control in the following case: if the second processor 320 determines that the condition for switching from the second display screen to the first display screen is met, then the sixth control is executed.
[0152] Optionally, if the second processor 320 detects the following situation, it may be determined that it is necessary to switch from the second display screen to the first display screen:
[0153] Case 6-1: Taking the electronic device as a mobile phone with an inward-folding screen as an example, when the second processor 320 detects that the folding screen switches from a folded state to an unfolded state or an intermediate state, or when the first display screen 310 is lit, it can be determined that it is necessary to switch from the second display screen to the first display screen, so the sixth control is executed to switch to the first processor 310 and switch to the first display screen 340 for display.
[0154] Case 6-2: Taking the electronic device as a dual-screen bar 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, so the sixth control is executed to switch to the first processor 310 and switch to the first display screen 340 for display.
[0155] The above merely exemplifies several examples of triggering switching from the second display screen to the first display screen, and the embodiments of the present application do not limit this.
[0156] Optionally, the implementation process of the sixth control may include: the second processor 320 sending a control instruction to the switch circuit 330; and the switch circuit 330, in accordance with the control instruction, disconnecting the second processor 320 from the second display screen 350 and reconnecting the first processor 310 from the first display screen 340. After disconnecting the second processor 320 from the second display screen 350 and reconnecting the first processor 310 from the first display screen 340, the first processor 310 may drive the first display screen 340 connected to the first processor 310 to display display data of an application program running on the first processor 310. For example, the first processor 310 generates (or refreshes) display data for the application program, which is then rendered and displayed on the first display screen 340.
[0157] Optionally, after determining that it is necessary to switch to the connection state shown in FIG4 , the second processor 320 may further send a sixth notification to the first processor 310, where the sixth notification is used to notify the first processor 310 to take over the execution 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 takes over the execution of the corresponding application, causing the application to run under the main operating system in the first processor 310.
[0158] To further reduce power consumption, in one possible approach, the second processor 320 may enter a sleep state or a power-off state after executing the sixth control (eg, sending a control instruction).
[0159] After the connection state is switched in scenario six, the first display screen 340 can send touch information to the first processor 310 via 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 processor 320's sixth control of the switch circuit 330 includes not only switching control over the connection used to transmit display data, but also switching control over the connection used to transmit touch information. The same switching control is performed on the connection used to transmit display data and the connection used to transmit touch information. The specific implementation principle is the same as that of the previous embodiment and will not be repeated here.
[0160] Scenario 7: Switching from the connection state shown in Figure 4 to the connection state shown in Figure 7.
[0161] When the first processor 310 determines that it is necessary to switch from the current connection state shown in FIG. 4 to the connection state shown in FIG. 7 , the seventh control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 7 .
[0162] Optionally, the first processor 310 may perform the seventh control in the following cases:
[0163] 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, the seventh control is executed. The third application is the application currently running in the first processor.
[0164] 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 (for example, the folding screen of the mobile phone shown in Figure 2 is closed), the third application currently running in the first processor 310 cannot be run in the second processor 320. For example, the second processor 320 does not have the components required by the third application. In order to ensure that the third application is not interrupted, the display screen can be switched but the processor is not switched. Optionally, after the third application is closed, the second processor 320 can meet the conditions for taking over the first processor 310, so the processor is switched. For details, please refer to the relevant description of the above scenario four.
[0165] For example, using the foldable phone 200 shown in FIG2 as an example, the third application is a call application, and the communication components required by the third application are located in the first processor 310 of the foldable phone 200. When the foldable phone is currently unfolded and the user is in a call, the call application runs on the first processor 310, and the inner screen 201 displays the call application interface. When the user folds the foldable phone 200, the first processor 310 detects the change in the foldable screen state and switches the display to the outer screen 202. Since the call is in progress, the call application continues to run on the first processor 310 to avoid call interruption. At this time, the call application runs on the first processor 310, and the call application interface is displayed on the outer screen 202. When the call is completed, the first processor 310 can control the switch circuit 330 to switch to the connected state shown in FIG5, so that the second processor 320 takes over from the first processor 310, while the user interface remains displayed on the second display 350.
[0166] Optionally, the seventh control step may include: the first processor 310 sending a control instruction to the switching circuit 330; and the switching circuit 330 disconnecting the first processor 310 from the first display 340 and reconnecting the first processor 310 from the second display 350 in accordance with the control instruction. After disconnecting the first processor 310 from the first display 340 and reconnecting the first processor 310 from the second display 350, the first processor 310 may drive the second display 350 to display display data of an application running on the first processor 310. For example, the first processor 310 generates (or refreshes) display data for an application, which is then rendered and displayed on the second display 350. In this switching scenario, the first processor 310 and the second processor 320 may collaborate with each other, with the first processor 310 switching to the second display 350 so that display data of applications running under the main operating system can be displayed on the second display 350. For example, the second display 350 can display complex images or user interfaces of complex applications, thereby enriching the application scenarios of the second display 350. This achieves a low-power all-day display (AOD).
[0167] After the connection state is switched as shown in scenario seven, in one possible implementation, the second display screen 350 may 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 may send 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 dormant state, it can be awakened after receiving the touch information. In another possible implementation, the seventh control of the switch circuit 330 by the first processor 310 includes not only switching control of the connection for transmitting display data, but also switching control of the connection for transmitting touch information, wherein the same switching control is performed on the connection for transmitting display data and the connection for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiment and will not be repeated here.
[0168] Scenario 8: Switching from the connection state shown in Figure 4 to the connection state shown in Figure 9.
[0169] When the first processor 310 determines that it is necessary to switch from the current connection state shown in FIG. 4 to the connection state shown in FIG. 9 , it executes the eighth control to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 9 .
[0170] Optionally, the first processor 310 may execute the eighth control in the following circumstances: the first display screen 340 is already illuminated. In this case, the first processor 310 detects that the second display screen 350 is illuminated, and then executes the eighth control. In this way, the user interface of the application running on the first processor 310 can be displayed simultaneously on the two display screens. In the embodiment of the present application, when the first display screen 340 is already illuminated, the specific implementation method of illuminating the second display screen 350 is not limited, for example, it can be implemented by voice or by the user touching the second display screen 350.
[0171] Optionally, the implementation process of the eighth control may include: the first processor 310 sends a control instruction to the switch circuit 330; the switch circuit 330 maintains the connection between the first processor 310 and the first display screen 340 and opens the connection between the first processor 310 and the second display screen 350 according to the control instruction. 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, and the display data is 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, so that the user interface 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.
[0172] After the connection state is switched as shown in scenario eight, in one possible implementation, the second display screen 350 can send touch information to the second processor 320 via the interface between the second display screen 350 and the second processor 320, and the second processor 320 can send the touch information to the first processor 310 via the interface between the second display screen 350 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 via the existing interface between the first display screen 340 and the first processor 310. Optionally, if the second processor 320 is in a dormant state, it can be awakened after receiving the touch information. In another possible implementation, the first processor 310's eighth control of the switch circuit 330 includes not only switching control of the connection used to transmit display data, but also switching control of the connection used to transmit touch information, wherein the same switching control is performed on the connection used to transmit display data and the connection used to transmit touch information. The specific implementation principle is the same as that of the previous embodiment and will not be repeated here.
[0173] Scenario 9: Switching from the connection state shown in FIG9 to the connection state shown in FIG4.
[0174] When the first processor 310 determines that it is necessary to switch from the current connection state shown in FIG. 9 to the connection state shown in FIG. 4 , the ninth control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 4 .
[0175] Optionally, the first processor 310 may execute the ninth control in the following circumstances: when both the first display screen 340 and the second display screen 350 are turned on, in which case the first processor 310 detects that the second display screen 350 is off, and then executes the ninth control. In the embodiment of the present application, when the first display screen 340 and the second display screen 350 are turned on, 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.
[0176] Optionally, the ninth control implementation process may include: the first processor 310 sending a control instruction to the switch circuit 330; the switch circuit 330 maintaining the connection between the first processor 310 and the first display screen 340 and disconnecting the first processor 310 from the second display screen 350 according to the control instruction. Thereafter, the first processor 310 may drive the first display screen 340 to display display data of the application program executed by the first processor 310. For example, the first processor 310 generates (or refreshes) display data for the application program, which is then rendered and displayed on the first display screen 340.
[0177] After the connection state is switched as shown in scenario nine, in one possible implementation, the first display screen 340 can send touch information to the first processor 310 via an 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 first processor 310's ninth control of the switch circuit 330 includes not only switching control over the connection used to transmit display data, but also switching control over the connection used to transmit touch information. The same switching control is performed on the connection used to transmit display data and the connection used to transmit touch information. The specific implementation principle is the same as that of the previous embodiment and will not be repeated here.
[0178] Scenario 10: Switching from the connection state shown in FIG. 7 to the connection state shown in FIG. 9 .
[0179] When the first processor 310 determines that it is necessary to switch from the connection state shown in FIG. 7 to the connection state shown in FIG. 9 , the tenth control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 9 .
[0180] Optionally, the first processor 310 may execute the tenth control in the following circumstances: the second display screen 350 is already illuminated. In this case, the first processor 310 detects that the first display screen 340 is illuminated and executes the tenth control. In this way, the user interface of the application running on the first processor 310 can be displayed simultaneously on the two display screens. In the embodiment of the present application, when the second display screen 350 is already illuminated, the specific implementation method of illuminating the first display screen 340 is not limited, for example, it can be implemented by voice or by the user touching the first display screen 340.
[0181] Optionally, the implementation process of the tenth control may include: the first processor 310 sending a control instruction to the switch circuit 330; the switch circuit 330 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 according to the control instruction. Thereafter, the first processor 310 may drive the first display screen 340 and the second display screen 350 to display 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, and the display data is rendered and displayed on the first display screen 340 and the second display screen 350.
[0182] After the connection state is switched as shown in scenario 10, in one possible implementation, the second display screen 350 can send touch information to the second processor 320 via the interface between the second display screen 350 and the second processor 320, and the second processor 320 can send the touch information to the first processor 310 via the interface between the second display screen 350 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 via the existing interface between the first display screen 340 and the first processor 310. Optionally, if the second processor 320 is in a dormant state, it can be awakened after receiving the touch information. In another possible implementation, the first processor 310's tenth control of the switch circuit 330 includes not only switching control of the connection used to transmit display data, but also switching control of the connection used to transmit touch information. The same switching control is performed on the connection used to transmit display data and the connection used to transmit touch information. The specific implementation principle is the same as that of the previous embodiment and will not be repeated here.
[0183] Scenario 11: Switching from the connection state shown in FIG. 9 to the connection state shown in FIG. 7 .
[0184] When the first processor 310 determines that it is necessary to switch from the current connection state shown in FIG. 9 to the connection state shown in FIG. 7 , the eleventh control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state shown in FIG. 7 .
[0185] Optionally, the first processor 310 may execute the eleventh control in the following circumstances: the first display screen 340 and the second display screen 350 are both illuminated. In this case, the first processor 310 detects that the first display screen 340 is off, and then executes the eleventh control. In the embodiment of the present application, when the first display screen 340 and the second display screen 350 are illuminated, 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.
[0186] Optionally, the ninth control implementation process may include: the first processor 310 sending a control instruction to the switch circuit 330; the switch circuit 330 maintaining the connection between the first processor 310 and the second display screen 350 and disconnecting the first processor 310 from the first display screen 340 according to the control instruction. Thereafter, the first processor 310 may drive the second display screen 350 to display display data of the application running on the first processor 310. For example, the first processor 310 generates (or refreshes) display data for the application, which is then rendered and displayed on the second display screen 350.
[0187] After the connection state is switched as shown in the scenario eleven, in one possible implementation, the second display screen 350 may 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 may send 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 dormant state, it can be awakened after receiving the touch information. In another possible implementation, the eleventh control of the switch circuit 330 by the first processor 310 includes not only switching control of the connection for transmitting display data, but also switching control of the connection for transmitting touch information, wherein the same switching control is performed on the connection for transmitting display data and the connection for transmitting touch information. The specific implementation principle is the same as that of the aforementioned embodiment and will not be repeated here.
[0188] In some embodiments of the present application, after the electronic device enters the first operating mode (such as the ultra-long battery life mode), when conducting calls or data services, the second processor 320 can communicate with the modem to complete the calls and data services, and the first processor 310 can be awakened to maintain low power consumption.
[0189] In other embodiments of the present application, for an electronic device with a main processor and a coprocessor and only one display screen, under normal usage scenarios, the main processor is in an operating state 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 locally, such as lighting up only a local area of the display screen, and the other areas are in an off state, so as to reduce power consumption.
[0190] The above examples are only examples of possible switching scenarios, which are not limited in the present embodiment. The present embodiment can also design corresponding connection state switching strategies for other possible scenarios according to business needs and user usage habits, so as to balance power saving and user experience.
[0191] In some embodiments of the present application, the second processor 320 can also be connected to one or more peripherals (external devices) and can control the peripherals or process data from the peripherals to reduce the burden on the first processor 310, thereby reducing the power consumption of the electronic device.
[0192] In one possible implementation, the second processor 320 may be connected to one or more of the following types of peripherals:
[0193] (1) Memory, such as random access memory (RAM) and read-only memory (ROM), to improve data access efficiency. Optionally, RAM and / or ROM may be selected for connection based on the services carried by the second processor 320.
[0194] (2) Devices that need to be always on, such as a microphone (such as a microphone), a speaker (such as a speaker), a camera, various sensors (such as a sensor for pedometer), etc. For example, the microphone can be a main microphone for voice wake-up. The microphone is usually a always-on device. Compared with connecting the microphone to the first processor 310 and having the first processor 310 process the audio data received by the microphone, the embodiment of the present application 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.
[0195] (3) Devices that meet the requirements of the ultra-long battery life mode, or devices that may be used in the ultra-long battery life mode, may include one or more of the following:
[0196] Charging module (such as charging protocol integrated circuit), the charging protocol is completed by the second processor, and the charging speed can be increased when charging in standby mode;
[0197] Short-range communication integrated circuits, such as Wi-Fi chips or Bluetooth (blue tooth, BT) chips.
[0198] For example, FIG14 shows a schematic diagram of a connection between the second processor 320 and peripherals. The second processor 320 can be connected to the RAM via a high-speed serial peripheral interface (H_SPI in the figure), the second processor 320 can be connected to the charging protocol integrated circuit (IC) via an I2C interface, the second processor 320 can be connected to the sensor via an I2C interface, the second processor 320 can be connected to the microphone via an ADF interface, and the second processor 320 can be connected to the short-range IC / GPS via a universal asynchronous receiver transmitter (UART) interface.
[0199] The above examples only list several peripheral devices connected to the second processor 320 . It is understandable that other peripheral devices that need to be always on and have higher power consumption requirements can also be connected to the second processor 320 .
[0200] In one or more of the above-mentioned embodiments of the present application, the first processor and the second processor can switch between various connection states between the processor and the display screen by controlling the switching circuit and coordinating with each other, thereby achieving one or more of various effects such as reduced power consumption, resource optimization, and enriched display scenes based on different scenarios. For example, 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 reduce the power consumption of the electronic device due to the lower power consumption and higher energy efficiency of the second processor; for another example, switching from the connection between the second processor and the second display screen to the connection between the first processor and the second display screen can improve the display effect and enrich the display scene based on the performance of the first processor.
[0201] In other embodiments of the present application, there is no need to set a switching circuit, and the first processor and the second processor can control the state of the interface connected to the display screen to achieve switching of the connection state between the processor and the display screen. For example, the first processor can be connected to the first display screen through the first interface and to the second display screen through the second interface, and the second processor can be connected to the first display screen through the third interface and to the second display screen through the fourth interface. The first processor can control the connection relationship between the first processor and the first display screen and the second display screen by setting the state of the first interface and the second interface; the second processor can control the connection relationship between the first processor and the first display screen and the second display screen by setting the state of the third interface and the fourth interface. 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.
[0202] Taking the connection state switching illustrated in Scenario 1 above as an example, when the first processor determines that it needs to switch from the current connection state shown in Figure 4 to the connection state shown in Figure 8, the first processor sets the first interface to a high-impedance state and notifies the second processor to connect to the first display. Based on this notification, the second processor sets the third interface to a low-impedance state, thereby establishing a connection between the second processor and the first display. In other switching scenarios, the first and second processors control the states of the interfaces to achieve connection state switching, which will not be further described here.
[0203] Based on the above-mentioned control circuit 300, FIG15 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1500 may include the control circuit 300, a first display screen 340, and a second display screen 350. The structure of the control circuit 300 may be as described in the above-mentioned embodiment and will not be repeated here. The second processor 320 in the control circuit 300 may also be connected to one or more peripheral devices. An example of a peripheral device connected to the second processor 320 may be shown in FIG14.
[0204] Based on the above-mentioned control circuit 300, FIG16 shows a schematic diagram of the structure of another electronic device provided in an embodiment of the present 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, and an example of a peripheral connected to the second processor 320 may be shown in FIG14. The difference between the electronic device 1600 and the 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 for transmitting display data, but also switching control of the connection for transmitting touch information, wherein the same switching control is performed on the connection for transmitting display data and the connection for transmitting touch information.
[0205] Based on the above embodiments, the present application further provides an electronic device comprising multiple functional modules; the multiple functional modules interact with each other to implement the functions performed by the electronic device in each method described in the embodiments of the present 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 the specific implementation.
[0206] Based on the above embodiments, the present 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 executes the functions performed by the electronic device in each method described in the embodiments of the present application.
[0207] Based on the above embodiments, the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which enables the various methods described in the embodiments of the present application to be executed when the computer program is run.
[0208] Based on the above embodiments, the present application further 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 the present application.
[0209] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory and implement the methods described in the embodiments of the present application.
[0210] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the various methods described in the embodiments of the present application. In a possible embodiment, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include chips and other discrete devices. It should be understood by those skilled in the art that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present 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.) containing computer-usable program code.
[0211] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.
[0212] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0213] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0214] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A control circuit, characterized in that: include: A first processor, a second processor and a switch circuit, wherein the first processor is a main processor and the second processor is a coprocessor; The switch circuit is used to disconnect the first processor from 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, disconnecting the second processor from the first display screen and opening the connection between the first processor and the first display screen; According to the third control of the second processor, disconnecting the second processor from the second display screen and opening the connection between the first processor and the second display screen; According to the fourth control of the first processor, disconnecting the first processor from the second display screen and opening the connection between the second processor and the second display screen; The first processor is used to control the switch circuit and drive the first display screen or the second display screen connected to the first processor to display data of an application program run by the first processor; The second processor is used to control the switch circuit and drive the second display screen or the first display screen connected to the second processor to display data of the application program run by the second processor.
2. The control circuit according to claim 1, characterized in that: The first processor is specifically configured to: If it is determined that the second processor satisfies the condition for taking over the first processor, 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, the first control or the fourth control is performed, and the first application is set to run only on the first processor; or If it is determined to enter the first working mode, the first control or the fourth control is executed, and only the second processor runs in the first working mode.
3. The control circuit according to claim 2, characterized in that: The first processor enters a sleep state or powers off after executing the first control or the fourth control.
4. The control circuit according to any one of claims 1 to 3, characterized in that: The first processor is further configured to: A first notification is sent to the second processor, where the first notification is used to notify the second processor to take over the execution of an application program by the first processor.
5. The control circuit according to any one of claims 1 to 4, characterized in that: The second processor is specifically configured to: If it is determined that the first application is started, the second control or the third control is performed, and the first application is set to run only on the first processor; or If it is determined that the second processor does not have the condition to run the second application program, the second control or the third control is executed; or If it is determined to exit the first working mode, the second control or the third control is executed, and only the second processor runs in the first working mode.
6. The control circuit according to claim 5, characterized in that: The second processor enters a sleep state or powers off after executing the second control or the third control.
7. The control circuit according to any one of claims 1 to 6, characterized in that: The second processor is further configured to: A second notification is sent to the first processor, where the second notification is used to notify the first processor to take over the execution of an application program by the second processor.
8. The control circuit according to any one of claims 1 to 7, characterized in that: The switch 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 according to claim 8, characterized in that: The first processor is specifically configured to: If it is determined that the condition for switching from the first display screen to the second display screen is satisfied, the fifth control is executed.
10. The control circuit according to claim 9, characterized in that: The first processor is further configured to: A first application program running on the first processor is suspended or closed, where the first application program is set to run only on the first processor.
11. The control circuit according to any one of claims 9 to 10, characterized in that: After executing the fifth control, the first processor enters a sleep state or is powered off.
12. The control circuit according to claim 8, characterized in that: The second processor is specifically configured to: If it is determined that the condition for switching from the second display screen to the first display screen is satisfied, the sixth control is performed.
13. The control circuit according to 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 to 13, characterized in that: The switch 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 according to claim 14, characterized in that: The first processor is specifically configured to: If it is determined that the condition for switching from the first display screen to the second display screen is met, but the second processor cannot meet the condition for running the third application, 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 to 15, characterized in that: The switch circuit is also used for: According to the eighth control of the first processor, the connection between the first processor and the first display screen is maintained, and the connection between the first processor and the second display screen is opened; according to the ninth control of the first processor, the connection between the first processor and the first display screen is maintained, and the connection between the first processor and the second display screen is disconnected; according to the tenth control of the first processor, the connection between the first processor and the second display screen is maintained, and the connection between the first processor and the first display screen is opened; according to the eleventh control of the first processor, the connection between the first processor and the second display screen is maintained, and the connection between the first processor and the first display screen is disconnected.
17. The control circuit according to claim 16, characterized in that: The first processor is specifically configured to: When the first display screen is already lit, it is detected that the second display screen is lit, and the eighth control is performed; or When the first display screen and the second display screen are on, if it is detected that the second display screen is off, the ninth control is executed; or When the second display screen is already lit, it is detected that the first display screen is lit, and the tenth control is executed; or When the first display screen and the second display screen are turned on, if it is detected that the first display screen is turned off, the eleventh control is executed.
18. The control circuit according to any one of claims 1 to 17, characterized in that: The second processor is also connected to one or more of the following peripherals: a memory, a microphone, a player, a camera, a short-range integrated circuit device, a positioning device, and a charging module.
19. The control circuit according to any one of claims 1 to 18, characterized in that: The first processor carries a main operating system, and the second processor carries a lightweight operating system.
20. The control circuit according to claim 19, characterized in that: The main operating system is the Hongmeng operating system, and the lightweight operating system is the Hongmeng lightweight operating system.
21. An electronic device, characterized in that: It includes the control circuit as described in any one of claims 1-20, and also includes a first display screen and a second display screen, and the first display screen or the second display screen is connected to the first processor or the second processor through the switching circuit.
22. The electronic device according to claim 21, characterized in that The first display screen is a main display screen, and the second display screen is an auxiliary display screen.
23. A control method, characterized in that: Applied to a control circuit, the control circuit includes a first processor, a second processor and a switch circuit, and the method includes: When the first processor is connected to the first display screen, the switch circuit is controlled to disconnect the first processor from the first display screen and to open the 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 an application program run by 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 program run by the second processor; When the second processor is connected to the first display screen, controlling the switch circuit to disconnect the second processor from the first display screen and to open the connection between the first processor and the first display screen; When the second processor is connected to the second display screen, the switch circuit is controlled to disconnect the second processor from the second display screen and to open the 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 data of the application program run by the second processor, and the first ... The second display screen connected to the first processor displays data of an application program executed by the first processor; When the second processor is connected to the first display screen, the switch circuit is controlled to disconnect the first processor from the second display screen and to open the connection between the second processor and the second display screen.
24. A readable storage medium, characterized in that: It comprises a computer program which, when run on a device, causes the device to perform the method as claimed in claim 23.
25. A computer program product, characterized in that When it is run on a device, it causes the device to perform the method as claimed in claim 23.
26. A chip system, characterized in that: include: processor; When the processor calls and runs the computer program from the memory, the device equipped with the chip system executes the method as claimed in claim 23.
Citation Information
Patent Citations
Double-screen control method and terminal
CN105930125A
Display method and device, mobile terminal and storage medium
CN108762466A
Multi-screen display low-power-consumption control method, display equipment and electronic price tag system
CN115712334A
Display control method and display device
CN116088781A
Electronic device for displaying screen through display in low-power mode and operating method thereof
US20220013053A1