Control method, control circuit and electronic equipment
By using the main processor and coprocessor to switch connection status in the terminal device, the problem of high power consumption in multi-processor and multi-display devices is solved, and low-power transmission control and rich display scenarios are achieved. .
Patent Information
- Application Number
- CN202310820022.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2043-07-05
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 the main processor and coprocessor into the terminal device and switching the connection state between the two through the switching circuit, multiple connection states between the processor and the display screen can be realized according to different scenarios and application requirements to reduce the function Consumption. The main processor and coprocessor can control the display data separately and switch the operating mode when needed to optimize power consumption.
It effectively reduces the power consumption of terminal devices, enriches the display control scenarios, and optimizes resource usage in different scenarios, improving the battery life of the device.
Smart Images

Figure CN119271027A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] With the rapid development of terminal technology, terminal devices with dual display screens are increasingly widely used by users. Such terminal devices are called dual-screen terminals. In a dual-screen terminal, the display screen located on the front of the terminal device is called the front screen or the main screen, and the display screen located on the back is called the back screen or the secondary screen.
[0003] Terminal devices are generally equipped with a central processing unit (CPU), and may also be equipped with a coprocessor to assist the CPU in completing some simple functions, such as receiving sensor detection data and performing simple processing on the sensor detection data before sending it to the CPU for further processing.
[0004] Currently, for terminal devices with multiple processors and multiple display screens, how to realize the processor's control of the display screen's display process with low power consumption is a technical problem that needs to be solved. Summary of the invention
[0005] The embodiments of the present application provide a control method, a control circuit and an electronic device for realizing the control of the display process of the processor on the display screen with low power consumption for an electronic device with multiple screens and multiple processors.
[0006] In a first aspect, a control circuit is provided, which can be applied to an electronic device having multiple processors and multiple display screens. The control circuit may 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 second processor from the first display screen according to the first control of the first processor; disconnect the second processor from the first display screen and open the first processor from the first display screen according to the second control of the second processor; disconnect the second processor from the second display screen and open the first processor from the second display screen according to the third control of the second processor; disconnect the first processor from the second display screen and open the first processor from the second display screen according to the fourth control of the first processor. The first processor controls the switch circuit and drives the first display screen or the second display screen connected to the first processor to display the data of the 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 the data of the application program run by the second processor. Optionally, the first display screen is the main display screen and the second display screen is the auxiliary display screen.
[0007] In the above implementation, the first processor and the second processor can switch between multiple connection states between the processor and the display screen by controlling the switch circuit, so as to achieve the purpose of reducing power consumption based on different scenarios. For example, in some scenarios, switching from the first processor being connected to the first display screen to the second processor being connected to the first display screen can effectively reduce the power consumption of the electronic device because the second processor has lower power consumption and higher energy efficiency.
[0008] In addition, in some scenarios, switching from connecting the second processor to the second display screen to connecting the first processor to the second display screen can enrich the display control scenarios.
[0009] In one possible implementation, the first processor is specifically 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.
[0010] In a possible implementation, the first processor is further used to: send a first notification to the second processor, the first notification being used to notify the second processor to take over the first processor to run the application. With this implementation, the application can be migrated from running under the main operating system to running under the lightweight operating system.
[0011] 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.
[0012] 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.
[0013] In a possible implementation, the second processor is further used to send a second notification to the first processor, the second notification being used to notify the first processor to take over the second processor to run the application. With this implementation, the application can be migrated from running under the lightweight operating system to running under the main operating system.
[0014] 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.
[0015] 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.
[0016] Optionally, the first processor body is used to: if it is determined that a condition for switching from the first display screen to the second display screen is met, then execute the fifth control. Optionally, the first processor is also used to: suspend or close a first application running on the first processor, the first application being set to run only on the first processor. Optionally, the first processor enters a sleep state or is powered off after executing the fifth control.
[0017] 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 the sixth control. Optionally, the second processor enters a sleep state or powers off after executing the sixth control.
[0018] In a possible implementation, the switch circuit is further used to: disconnect the first processor from the first display screen and open the first processor from the second display screen according to the seventh control of the first processor. Optionally, the first processor is specifically used to: if it is determined that the conditions for switching from the first display screen to the second display screen are met, but the second processor cannot meet the conditions for running the third application, then execute the seventh control, wherein the third application is the application currently running in the first processor.
[0019] In one possible implementation, the switching circuit is also used to: according to the eighth control of the first processor, maintain the connection between the first processor and the first display screen, and open the connection between the first processor and the second display screen; according to the ninth control of the first processor, maintain the connection between the first processor and the first display screen, and disconnect the connection between the first processor and the second display screen; according to the tenth control of the first processor, maintain the connection between the first processor and the second display screen, and open the connection between the first processor and the first display; according to the eleventh control of the first processor, maintain the connection between the first processor and the second display screen, and disconnect the connection between the first processor and the first display screen.
[0020] 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.
[0021] 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.
[0022] In a possible implementation, the first processor carries a main operating system, and the second processor carries a lightweight operating system. Optionally, the main operating system is Hongmeng operating system, and the lightweight operating system is Hongmeng lightweight operating system.
[0023] In a second aspect, a control method is provided, which is applied to the control circuit provided in the first aspect, and the method includes: when the first processor is connected to the first display screen, controlling the switch circuit 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, controlling the switch circuit 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 an application program run by the second processor, and the first processor is used to drive the second display screen connected to the first processor to display data of an application program run by 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 open the connection between the second processor and the second display screen.
[0024] The operations performed by the above-mentioned first processor, second processor and control circuit can refer to the relevant content in the first aspect.
[0025] In a third aspect, an electronic device is provided, the electronic device comprising the above control circuit, and further comprising a first display screen and a second display screen, wherein the first display screen or the second display screen is connected to the first processor or the second processor via the switch circuit. Optionally, the first display screen is a main display screen, and the second display screen is an auxiliary display screen.
[0026] According to a fourth aspect, a readable storage medium is provided, comprising a computer program, wherein when the computer program is executed on a device, the device executes the method described in the second aspect.
[0027] According to 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.
[0028] In a sixth aspect, a chip system is provided, comprising: a processor; when the processor calls and runs a computer program from a memory, a device equipped with the chip system executes the method described in the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 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;
[0030] Figure 2 A schematic diagram of a folding screen mobile phone with an inner screen and an outer screen applicable to an embodiment of the present application;
[0031] Figure 3 A schematic diagram of a control circuit applied to an electronic device provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of the connection status of a dual processor and a dual display screen in an embodiment of the present application;
[0033] Figure 5 This is another schematic diagram of the connection status of dual processors and dual display screens in an embodiment of the present application;
[0034] Figure 6 This is another schematic diagram of the connection status of dual processors and dual display screens in an embodiment of the present application;
[0035] Figure 7 This is another schematic diagram of the connection status of dual processors and dual display screens in an embodiment of the present application;
[0036] Figure 8 This is another schematic diagram of the connection status of dual processors and dual display screens in an embodiment of the present application;
[0037] Fig. 9This is another schematic diagram of the connection status of dual processors and dual display screens in an embodiment of the present application;
[0038] Fig.10 A schematic diagram of connection state switching in a scenario in an embodiment of the present application;
[0039] Fig.11 This is a schematic diagram of connection state switching under scenario 2 in an embodiment of the present application;
[0040] Fig.12 This is a schematic diagram of connection state switching under scenario three in an embodiment of the present application;
[0041] Fig.13 A schematic diagram of connection state switching under scenario 4 in an embodiment of the present application;
[0042] Fig.14 A schematic diagram of a second processor connected to a peripheral device in an embodiment of the present application;
[0043] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0044] Fig.16 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] 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 next associated objects are in an "or" relationship.
[0047] 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 an order.
[0048] First, the technical terms involved in the embodiments of the present application are introduced.
[0049] (1) Main processor and coprocessor
[0050] In electronic devices with a main processor and a coprocessor, the main processor, such as an application processor (AP), is usually a CPU, which is used to perform most processing operations. A coprocessor is a processor that is specifically used to collaborate with the main processor to complete certain computing tasks. For example, a coprocessor may include a microcontroller unit (MCU, or single-chip microcomputer), a digital signal processor (DSP), a graphics processing unit (GPU), etc. A coprocessor may also be a small core in a system on chip (SoC). Compared with the main processor, the coprocessor usually has lower performance, lower bottom current, higher energy efficiency, and lower power consumption.
[0051] Optionally, in the embodiment of the present application, the coprocessor may include one or more of the following components: communication components (such as low-power Bluetooth communication components), power systems, navigation and positioning system related components (such as positioning system protocol stacks), near field communication components, graphic code payment related components, call service related components, short message related components, all-weather display (always on display, AOD) related components, etc. Among them, the navigation and positioning system may include a global navigation satellite system (global navigation satellite system, GNSS), etc., which is not limited in the embodiment of the present application.
[0052] 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.
[0053] 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.
[0054] (2) Main operating system and lightweight operating system
[0055] 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, thereby saving system resources and improving system efficiency. Exemplarily, 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. Another exemplary main operating system can be Android system The lightweight operating system may be an Android lightweight system. In another exemplary embodiment, the main operating system may be a Microsoft operating system. The lightweight operating system may be Microsoft Lightweight Operating System.
[0056] An application can run on a main operating system or a lightweight operating system. When it runs on a lightweight operating system, it occupies fewer system resources (such as memory) than when it runs on a main operating system. When an application runs on a lightweight operating system, it may only be able to implement some of the functions of the application. For example, for an audio player, when it runs on a lightweight operating system, it can only implement the functions of play, pause, play the previous song, and play the next song, but cannot implement the functions provided by the audio player such as selecting a music album. Therefore, the application running on a lightweight operating system can also be called a simplified version of the application.
[0057] In some embodiments of the present application, for some applications that have high requirements for system resources, such as some game applications, they 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.
[0058] The embodiments of the present application may be applicable to electronic devices. The electronic devices may be, for example, mobile phones, tablet computers, laptop computers, netbooks, vehicle-mounted devices, business intelligent terminals (including videophones, conference desktop intelligent terminals, etc.), personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, etc. The embodiments of the present application do not limit the specific form of the electronic devices.
[0059] 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).
[0060] 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 folding screen mobile phone or a straight-screen mobile phone. The dual-screen electronic device has two display screens.
[0061] For example, Figure 1 A schematic diagram of a dual-screen bar phone is shown. Figure 1 As shown, the front of the mobile phone 100 is provided with a main screen 101 (also called the front screen), and the back of the mobile phone 100 is provided with a sub-screen 102 (also called the back screen) and a rear camera 103. The size of the sub-screen 102 is usually smaller than that of the main screen 101. The resolution of the sub-screen 102 may be lower than that of the main screen, and some scenes only require a high-efficiency 2D graphics subsystem to meet the needs. The sub-screen 102 can support screen-off display, and can also customize the display time, notification messages or custom wallpapers. The camera function can be turned on on the sub-screen, so that selfies can be taken with the rear camera with better photo effects. Optionally, when the main screen 101 is off, the rear sub-screen 102 can display various push messages of the application; optionally, the user operation of sliding up and down on the sub-screen 102 can be performed to select the song to be listened to when listening to the song; optionally, different wallpapers can be set for the sub-screen 102.
[0062] For example, Figure 2 A schematic diagram of a dual-screen folding screen mobile phone is shown. Figure 2As shown, 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 a main screen) and an outer screen 202 (also called a small screen or a secondary screen). The inner screen 201 and the outer screen 202 are arranged back to back, that is, they are 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 customized wallpapers, etc. Optionally, in a closed state, the outer screen 202 can display various push messages of the application; optionally, when listening to songs, the user can also select the song to be listened to by sliding up and down on the outer screen 202.
[0063] In the following description of the embodiments of the present application, for a dual-screen electronic device, 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 a touch function.
[0064] 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.
[0065] See also Figure 3 , is a control circuit inside an electronic device provided in an embodiment of the present application, the control circuit is arranged inside the electronic device, and can realize 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.
[0066] The first processor 310 is a main processor, and the second processor 320 is a coprocessor. In one possible implementation, the second processor 320 may 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 may be implemented by a SoC chip, wherein the first processor 310 and the second processor 320 are two independent cores in the SoC chip.
[0067] 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 components in the second processor 320 are less than those in 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.
[0068] 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 works in a master-slave mode and usually has a MISO (master in slave out, master input slave output) input line (master device data input), a MOSI output line (master device data output), a serial clock (serial clock, SCLK) line and a chip select (chip selected, CS) line. Another exemplary embodiment, the serial bus can also be a secure digital input and output (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. Asynchronous communication can also be performed between the first processor 310 and the second processor 320, for example, a low power universal synchronous asynchronous receiver transmitter (LPUART) can be used for asynchronous communication.
[0069] 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 (LiteOS).
[0070] 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 (such as the first processor and the second processor) and the display screen (such as the first display screen and the second display screen). In a 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 interface of the first processor 310, the second processor 320, the first display screen 340 and the second display screen 350. MIPI is an open standard and a specification initiated by the MIPI Alliance for mobile application processors. The use of a MIPI switch can reduce the implementation cost and technical implementation difficulty.
[0071] The first display screen 340 is the main screen, and the second display screen 350 is the secondary screen. Figure 1 As shown, the first display screen is the main screen 101, and the second display screen is the secondary screen 102; another example can be as follows Figure 2 As shown, the first display screen is the inner screen 201 , and the second display screen is the outer screen 202 .
[0072] In a possible implementation, the first display screen 340 has a touch panel (TP), which can detect the user's touch operation on the first display screen 340. When the touch panel of the first display screen 340 detects the 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 the SPI interface, and accordingly, the touch information can be transmitted to the first processor 310 through the SPI interface. Optionally, the first processor 310 can also request to obtain the state of the first display screen 340 through the SPI interface.
[0073] In a possible implementation, the second display screen 350 has a touch panel that can detect the user's touch operation on the second display screen 350. When the touch panel of the second display screen 350 detects the 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 the SPI interface, and accordingly, the touch information can be transmitted to the second processor 320 through 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.
[0074] exist Figure 3 In the control circuit 300 shown in FIG. 1 , the switch circuit 330 can accept the control of the first processor 310 and the second processor 320 to control the connection state between the first processor 310, the second processor 320 and the first display screen 340, the second display screen 350. The connection state between the first processor 310, the second processor 320 and the first display screen 340, the second display screen 350 can be as follows: Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 and Fig. 9 shown.
[0075] like Figure 4 As shown, 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 connection state, an application is run in the first processor 310 (it can be understood that the application is run under the main operating system), and the first processor 310 generates (or refreshes) 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.
[0076] like Figure 5As shown, 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 connection state, an application is run in the second processor 320 (it can be understood that the application is run under a lightweight operating system), and the second processor 320 generates (or refreshes) 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 dormant state or a power-off state. Optionally, the first display screen 340 may be in a screen-off state.
[0077] like Figure 6 As shown, 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 connection state, the application is run in the first processor 310 (it can be understood that the application is run 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. The application is run in the second processor 320 (it can be understood that the application is run in a lightweight operating system), and the second processor 320 generates (or refreshes) the display data of the application, and the display data 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 application program running in the first processor 310 may be different from the application program running in the second processor 320, for example, a game application program is running in the first processor 310, and an application program for displaying a calendar is running in the second processor 320. Optionally, the application program running in the first processor 310 may be the same as the application program running in the second processor 320, for example, an audio player application program is running in the first processor, and a simplified version of the audio player application program is running in the second processor.
[0078] like Figure 7As shown, 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 connection state, an application is run in the first processor 310 (it can be understood that the application is run in the main operating system), and the first processor 310 generates (or refreshes) 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 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.
[0079] like Figure 8 As shown, 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 connection state, an application is run in the second processor 320 (it can be understood that the application is run under a lightweight operating system), and the second processor 320 generates (or refreshes) 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 dormant state or a power-off state. Optionally, the second display screen 350 may be in a screen-off state.
[0080] like Fig. 9 As shown, 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 connection state, the first processor 310 runs an application (it can be understood that the application runs under the main operating system), and the first processor 310 generates (or refreshes) 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, and 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.
[0081] Figures 4 to 9In the description, the cache unit 360 is taken as an internal storage unit (or memory) of the first processor 310. It can be understood that the cache unit 360 can also be a storage unit (or memory) independent of the first processor 310, and the embodiment of the present application does not limit this. Similarly, the cache unit 370 can also be a storage unit (or memory) independent of the second processor 320.
[0082] In the embodiment of the present application, the switch circuit 330 can be controlled by the first processor 310 or the second processor 320. Figures 4 to 9 The following describes several possible switching scenarios.
[0083] Switching scene 1: From Figure 4 The connection status shown switches to Figure 8 Displays the connection status.
[0084] Fig.10 The schematic diagram of the connection state switching in a switching scenario of an embodiment of the present application is exemplarily shown. Figure 4 The connection status shown switches to Figure 8 The first control is performed when the connection state is shown, so as to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 8 Displays the connection status.
[0085] Optionally, the first processor 310 may perform the first control in the following cases:
[0086] Case 1-1: If the first processor 310 determines that the second processor 320 meets the condition to take over the first processor 310, the first control is performed.
[0087] In some scenarios, the first processor 310 may run a small number of applications or applications with simpler functions, and the capabilities of the second processor 320 can meet the needs of 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 a lightweight operating system.
[0088] For example, when the first processor 310 determines that the memory usage is lower than the set threshold, it indicates that the capability of the second processor 320 can support the migration of the application currently running under the main operating system to the lightweight operating system, so the first processor 310 can execute the first control to switch to the second processor 320. Exemplarily, the user is editing a document using a document editing application through the first display screen 340, and 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.
[0089] For another example, if the first processor 310 has a QR code scanning and recognition component, and the second processor 320 does not have the component, then after the application running in the first processor 310 completes the QR code scanning and recognition operation, the first processor 310 can execute the first control to switch to the second processor 320. 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, so that the second processor 320 takes over the first processor 310 for subsequent processing to reduce the power consumption of the terminal device.
[0090] Case 1-2: If the first processor 310 determines that the first application running on the first processor is closed, the first control is performed, wherein the first application is set to run only on the first processor.
[0091] In specific implementation, an application list may be set, and the application list includes relevant information of the application, such as the application name. The applications in the application list may only run in the first processor 310, that is, they may only run under the main operating system, such as some game applications, because they occupy more system resources or require components that may not be available in the second processor. The application list may be set by the system or by the user, such as providing a setting interface for the user to select an application through the setting interface, thereby implementing the setting operation of the application list.
[0092] 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 application list, the second processor 320 can be responsible for the operation of the application, so the first processor 310 can execute the first control.
[0093] Case 1-3: If the first processor 310 determines to enter the first operating mode, the first control is executed.
[0094] 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 (wireless local area network, WLAN), negative one screen and other functions will be turned off to save power consumption. The ultra-long battery life mode can be entered in a variety of ways, and the embodiment of the present application is 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 chooses to enter the ultra-long battery life mode, the first control can be executed; or, when the power of the electronic device is reduced 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.
[0095] Optionally, the implementation process of the first control may include: the first processor 310 sends a control instruction to the switch circuit 330; the switch 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, and the display data is displayed on the first display screen 340 after rendering. 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.
[0096] Optionally, the first processor 310 determines that it is necessary to Figure 4 The connection state switches to Figure 8 After the connection state shown, a first notification may also be sent to the second processor 320, the first notification being used to notify the second processor 320 to take over the execution of the application program from the first processor 310. Optionally, the first notification may include relevant information of the application program, so that the second processor 320 is responsible for the execution of the corresponding application program, so that the application program runs under the lightweight operating system in the second processor 320.
[0097] 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.
[0098] After the connection state is switched as shown in the scenario 1, in order to ensure the transmission of touch information, in a possible implementation, after the first display screen 340 detects the user's touch operation, the touch information is sent to the first processor 310 through the interface between the first display screen 340 and the first processor 310, and the first processor 310 sends the touch information to the second processor 320 through the interface between the first processor 320, so that the second processor 320 responds. Optionally, if the first processor 310 is in a dormant state, it can be awakened after receiving the touch information, so as 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 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, that is, either both connections are disconnected or both connections are opened. Exemplarily, in the following scenario, the switch circuit 330 can disconnect the connection for transmitting display data and the connection for transmitting touch information between the first processor 310 and the first display screen 340 according to the first control of the first processor 310, and open the connection for transmitting display data and the connection for transmitting touch information between the second processor 320 and the first display screen 340, so that after the first display screen 340 detects the user's touch operation, the touch information can be sent to the second processor 320 through the connection, so that the second processor 320 responds. Compared with the above implementation method of forwarding touch information through the first processor, the on-off state of the two connections is controlled at the same time, which can avoid waking up the first processor, thereby further saving the power consumption of the terminal device.
[0099] Switching scene 2: From Figure 8 The connection status shown switches to Figure 4 Displays the connection status.
[0100] Fig.11 The schematic diagram of the connection state switching in the switching scenario 2 of the embodiment of the present application is exemplarily shown. Figure 8 The connection status shown switches to Figure 4 The second control is performed when the connection state is shown, so as to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 4 Displays the connection status.
[0101] Optionally, the second processor 320 may perform the second control in the following cases:
[0102] 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 .
[0103] 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 perform the second control so that the first processor 310 can assume the operation of the application, that is, the application is migrated from running under the lightweight operating system to running under the main operating system so as to use the corresponding components in the first processor 310. Exemplarily, the application currently running in the second processor 320 calls the QR code scanning and recognition related components, but the components are located in the first processor 310, so the second processor 320 performs the second control to switch to the first processor 310 so that the first processor 310 performs the QR code recognition function.
[0104] In other scenarios, when the memory overhead of the second processor 320 is higher than a set threshold, it indicates that the resource consumption of the second processor 320 is too high and may not be able to handle the running of the application. Therefore, the second processor 320 can execute the second control to switch to the first processor 310.
[0105] 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. Exemplarily, the user is using a document editing application through the first display screen 340, and no editing operation is currently being performed. 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 the 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.
[0106] Case 2-3: If the second processor 320 determines to exit the first operating mode, the second control is executed.
[0107] Optionally, after exiting the first working mode, the second processor 320 may determine whether to execute the second control 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 may be executed so that after switching to the first processor 310, the first processor 310 interacts with the network side through its communication component.
[0108] Optionally, the implementation process of the second control may include: the second processor 320 sends a control instruction to the switch circuit 330; the switch circuit 330 disconnects the second processor 320 from the first display screen 340 and opens the connection between the first processor 310 and the first display screen 340 according to the control instruction. After disconnecting the second processor 320 from the first display screen 340 and opening the connection between the first processor 310 and the first display screen 340, the first processor 310 may drive the first display screen 340 connected to the first processor 310 to display the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the first display screen 340 after being rendered. Since the first processor 310 can support more complex or richer functions, it can meet the needs of users.
[0109] Optionally, the second processor 320 determines that it is necessary to Figure 8 The connection status shown switches to Figure 4 After the connection state is shown, a second notification may be sent to the first processor 310, the second notification being used to notify the first processor 310 to take over the second processor 320 to run the application. Optionally, the second notification may include relevant information of the application, so that the application runs in the main operating system in the first processor 310.
[0110] To further reduce power consumption, in one possible manner, the second processor 320 may enter a sleep state or a power-off state after executing the second control (eg, sending a control instruction).
[0111] After the connection state is switched as shown in the scenario 2, in a possible implementation, after the first display screen 340 detects the user's touch operation, the touch information is sent to the first processor 310 through the existing interface between the first display screen 340 and the first processor 310, so that the first processor 310 responds. In another possible implementation, the second 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. Exemplarily, in the scenario 2, the switch circuit 330 can disconnect the connection for transmitting display data and the connection for transmitting touch information between the second processor 320 and the first display screen 340 according to the second control of the second processor 320, and open the connection for transmitting display data and the connection for transmitting touch information between the first processor 310 and the first display screen 340, so that after the first display screen 340 detects the user's touch operation, it can be sent to the first processor 310 through the connection, so that the first processor 310 responds.
[0112] Scene 3: From Figure 5 The connection status shown switches to Figure 7 Displays the connection status.
[0113] Fig.12 The schematic diagram of the connection state switching in the switching scenario 3 of the embodiment of the present application is exemplarily shown. Figure 5 The connection status shown switches to Figure 7 The third control is executed when the connection state is shown, so as to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 7 Displays the connection status.
[0114] Optionally, the second processor 320 may perform the third control in the following cases:
[0115] Case 3-1: If the second processor 320 determines that it does not have the conditions to run the second application, the third control is performed.
[0116] In some scenarios, the second application may need to use components that the second processor 320 does not have. In this case, the second processor 320 can execute the third control so that the first processor 310 can assume the operation of the application, that is, the application is migrated from running under the lightweight operating system to running under the main operating system so as to use the corresponding components in the first processor 310. 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 assume the operation of the application, so the second processor 320 can execute the third control to switch to the first processor 310.
[0117] 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.
[0118] For example, in a possible application scenario, the current connection status between the processor and the display screen is as follows: Figure 5 As shown, when the user performs a touch operation on the second display screen 350, the touch operation is used to open the camera application to take a selfie, and the touch operation information is sent to the second processor 320. In response, the second processor 320 determines that the camera application can only be run under the main operating system. Therefore, referring to the above scenario three, the second processor 320 executes the third control, thereby switching to the following scenario Figure 7 In the connection state shown, the first processor 310 calls the rear camera to take a selfie, and the second display screen 350 displays the selfie. Since the photo quality of the rear camera is higher than that of the front camera, a higher quality selfie can be obtained.
[0119] Case 3-3: If the second processor 320 determines to exit the first operating mode, the third control is executed.
[0120] Optionally, after exiting the first working mode, the second processor 320 can determine whether to execute the third 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, it can be determined 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.
[0121] Optionally, the implementation process of the third control may include: the second processor 320 sends a control instruction to the switch circuit 330; the switch circuit 330 disconnects the second processor 320 from the second display screen 350 and opens the connection between the first processor 310 and the second display screen 350 according to the control instruction. After disconnecting the second processor 320 from the second display screen 350 and opening the connection between the first processor 310 and the second display screen 350, the first processor 310 may drive the second display screen 350 connected to the first processor 310 to display the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the second display screen 350 after rendering. In this switching scenario, the first processor 310 and the second processor 320 can cooperate with each other, and the first processor 310 can switch to the second display screen 350, so that the display data of the application program run under the main operating system can be displayed on the second display screen 350, for example, the second display screen 350 can display a complex image or a user interface of a complex application program, thereby enriching the application scenario of the second display screen 350. Enables low-power all-day display (AOD).
[0122] Optionally, the second processor 320 determines that it needs to switch to Figure 7 After the connection state shown, a third notification may be sent to the first processor 310, and the third notification is used to notify the first processor 310 to take over the second processor 320 to run the application. Optionally, the third notification may include relevant information of the application so that the first processor 310 is responsible for running the corresponding application, so that the application runs under the main operating system in the first processor 310.
[0123] To further reduce power consumption, in one possible manner, the second processor 320 may enter a sleep state or a power-off state after executing the third control (eg, sending a control instruction).
[0124] 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, the touch information is sent to the second processor 320 through the interface between the second display screen 350 and the second processor 320, and the second processor 320 sends the touch information to the first processor 310 through the interface between the second display screen 350 and the first processor 310, so that the first processor 310 responds. 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 second processor 320 on the switch circuit 330 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. Exemplarily, in scenario three, the switch 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.
[0125] Scene 4: From Figure 7 The connection status shown switches to Figure 5 Displays the connection status.
[0126] Fig.13 A schematic diagram of a connection state switching in the above-mentioned switching scenario in an embodiment of the present application is exemplarily shown. Figure 7 The connection status shown switches to Figure 5 When the connection state shown in FIG. 1 is reached, the fourth control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the state shown in FIG. Figure 5 Displays the connection status.
[0127] Optionally, similar to the above scenario 1, the first processor 310 may perform the fourth control in the following cases:
[0128] Case 4-1: If the first processor 310 determines that the second processor 320 meets the condition to take over the first processor 310, the fourth control is executed.
[0129] Case 4-2: If the first processor 310 determines that the first application running on the first processor is closed, the fourth control is performed, wherein the first application is set to run only on the first processor.
[0130] Case 4-3: If the first processor 310 determines to enter the first operating mode, the fourth control is executed.
[0131] 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 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, and the display data is displayed on the second display screen 350 after rendering. 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.
[0132] Optionally, the first processor 310 determines that it needs to switch to Figure 5 After the connection state shown, a fourth notification may also be sent to the second processor 320, the fourth notification being used to notify the second processor 320 to take over the first processor 310 to run the application. Optionally, the fourth notification may include relevant information of the application so that the second processor 320 is responsible for running the corresponding application, so that the application runs under the lightweight operating system in the second processor 320.
[0133] To further reduce power consumption, in one possible manner, after executing the fourth control (such as sending a control instruction), the first processor 310 may also enter a sleep state or a power-off state.
[0134] After the connection state is switched as shown in scenario 4, in a possible implementation, after the second display screen 350 detects the user's touch operation, the touch information is sent to the second processor 320 through the existing interface between the second display screen 350 and the second processor 320, so that the second processor 320 responds. In another possible implementation, the fourth 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. Exemplarily, in scenario 4, the switch circuit 330 can 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 according to the fourth control of the first processor 310, 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, so that after the second display screen 340 detects the user's touch operation, the touch information can be sent to the second processor 320 through the connection, so that the second processor 320 responds.
[0135] Scene 5: From Figure 4 The connection status shown switches to Figure 5 Displays the connection status.
[0136] When the first processor 310 determines that it needs to Figure 4 The connection status shown switches to Figure 5 The fifth control is executed when the connection state is shown, so as to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 5 Displays the connection status.
[0137] Optionally, the first processor 310 may perform the fifth control in the following case: if the first processor 310 determines that the condition for switching from the first display screen to the second display screen is met, the fifth control is performed. Optionally, if the first processor 310 detects the following situation, it may be determined that it is necessary to switch from the first display screen to the second display screen:
[0138] 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 an unfolded state or an intermediate state to a folded state (also called a closed state), or when the second display screen 320 lights up, it can be determined that it is necessary to switch from the first display screen to the second display screen, and therefore the fifth control is executed to switch to the second processor 320 and switch to the second display screen 350 for display.
[0139] Case 5-2: Taking the electronic device as a dual-screen candy-bar mobile phone as an example, when the first processor 310 detects that the first display screen 340 is off, or the second display screen 350 is on, or the user flips the phone to view the content displayed on the second display screen 350, it can be determined that it is necessary to switch from the first display screen to the second display screen, so the fifth control is executed to switch to the second processor 320, and switch to the second display screen 350 for display.
[0140] The above merely exemplifies several examples of triggering switching from the first display screen to the second display screen, and the embodiments of the present application are not limited thereto.
[0141] Optionally, the implementation process of the fifth control may include: the first processor 310 sends a control instruction to the switch circuit 330; the switch 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 program run by the second processor 320. For example, the second processor 320 generates (or refreshes) the display data of the application program, and the display data is displayed on the second display screen 350 after rendering. 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.
[0142] Optionally, the first processor 310 determines that it needs to switch to Figure 5 After the connection state shown, a fifth notification may also be sent to the second processor 320, and the fifth notification is used to notify the second processor 320 to take over the first processor 310 to run the application. Optionally, the fifth notification may include relevant information of the application so that the second processor 320 is responsible for running the corresponding application, so that the application runs under the lightweight operating system in the second processor 320.
[0143] 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 the first application runs only under the main operating system.
[0144] To further reduce power consumption, in one possible manner, after executing the fifth control (such as sending a control instruction), the first processor 310 may also enter a sleep state or a power-off state.
[0145] After the connection state shown in the scenario 5 is switched, the second display screen 350 can send the touch information to the second processor 320 through the existing interface between the second display screen 350 and the second processor 320, so that the second processor 320 responds. In another possible implementation, the fifth 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.
[0146] Scene 6: From Figure 5 The connection status shown switches to Figure 4 Displays the connection status.
[0147] When the second processor 320 determines that it needs to Figure 5 The connection status shown switches to Figure 4 The sixth control is executed when the connection state is shown, so as to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 4 Displays the connection status.
[0148] 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, the sixth control is executed.
[0149] 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:
[0150] 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, and therefore the sixth control is executed to switch to the first processor 310 and switch to the first display screen 340 for display.
[0151] Case 6-2: Taking the electronic device as a dual-screen candy-bar mobile phone as an example, when the second processor 320 detects that the second display screen 350 is off, or the first display screen 340 is on, or the user flips the phone to view the content displayed on the first display screen 340, it can be determined that it is necessary to switch from the second display screen to the first display screen, so the sixth control is executed to switch to the first processor 310, and switch to the first display screen 340 for display.
[0152] The above merely exemplifies several examples of triggering switching from the second display screen to the first display screen, and the embodiments of the present application are not limited thereto.
[0153] Optionally, the implementation process of the sixth control may include: the second processor 320 sends a control instruction to the switch circuit 330; the switch circuit 330 disconnects the second processor 320 from the second display screen 350 and opens the connection between the first processor 310 and the first display screen 340 according to the control instruction. After disconnecting the second processor 320 from the second display screen 350 and opening the connection between the first processor 310 and the first display screen 340, the first processor 310 may drive the first display screen 340 connected to the first processor 310 to display the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the first display screen 340 after being rendered.
[0154] Optionally, the second processor 320 determines that it needs to switch to Figure 4 After the connection state shown, a sixth notification may be sent to the first processor 310, and the sixth notification is used to notify the first processor 310 to take over the second processor 320 to run the application. Optionally, the sixth notification may include relevant information of the application so that the first processor 310 is responsible for the operation of the corresponding application, so that the application runs under the main operating system in the first processor 310.
[0155] To further reduce power consumption, in one possible manner, the second processor 320 may enter a sleep state or a power-off state after executing the sixth control (eg, sending a control instruction).
[0156] After the connection state is switched as shown in scenario six, the first display screen 340 can send the touch information to the first processor 310 through the existing interface between the first display screen 340 and the first processor 310, so that the first processor 310 responds. In another possible implementation, the sixth 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. The specific implementation principle is the same as that of the aforementioned embodiment, and will not be repeated.
[0157] Scene 7: From Figure 4 The connection status shown switches to Figure 7 Displays the connection status.
[0158] When the first processor 310 determines that it needs to Figure 4 The connection status shown switches to Figure 7The seventh control is executed when the connection state is shown, so as to control the switch circuit 330 to perform the corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 7 Displays the connection status.
[0159] Optionally, the first processor 310 may perform the seventh control in the following cases:
[0160] Case 7-1: If the first processor 310 determines that the condition for switching from the first display screen to the second display screen is met, but the second processor 320 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.
[0161] In some scenarios, although the first processor 310 determines that the conditions for switching from the first display screen to the second display screen are met (for example, Figure 2 The folding screen of the mobile phone shown is closed), but since 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 replacing the first processor 310, so the processor is switched again. For details, please refer to the relevant description of the above scenario 4.
[0162] For example, Figure 2 Taking the folding screen mobile phone 200 shown 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 in the folding screen mobile phone 200. The current folding screen mobile phone is in the unfolded state and the user is making a call. At this time, the call application runs on the first processor 310, and the inner screen 201 displays the interface of the call application. When the user folds the folding screen mobile phone 200, the first processor 310 detects the state change of the folding screen and switches to the outer screen 202 for display. Since the call is in progress, the call application is kept running on the first processor 310 to avoid call interruption. At this time, the call application runs on the first processor 310, and the interface of the call application 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 following state. Figure 5 The connection state shown is such that the second processor 320 takes over the first processor 310 while the user interface is still displayed on the second display screen 350 .
[0163] Optionally, the implementation process of the seventh control may include: the first processor 310 sends a control instruction to the switch circuit 330; the switch circuit 330 disconnects the first processor 310 from 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. After disconnecting the first processor 310 from the first display screen 340 and opening the connection between the first processor 310 and the second display screen 350, the first processor 310 can drive the second display screen 350 to display the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the second display screen 350 after rendering. In this switching scenario, the first processor 310 and the second processor 320 can cooperate with each other, and the first processor 310 can switch to the second display screen 350, so that the display data of the application program running under the main operating system can be displayed on the second display screen 350, for example, the second display screen 350 can display a complex image or a user interface of a complex application program, thereby enriching the application scenario of the second display screen 350. A low-power all-weather display (AOD) is realized.
[0164] After the connection state is switched as shown in the scene seven, in a possible implementation, the second display screen 350 may send touch information to the second processor 320 through the interface between the second processor 320, and the second processor 320 may send touch information to the first processor 310 through the interface between the second processor 310 and the first processor 310, so that the first processor 310 responds. Optionally, if the second processor 320 is in a dormant state, it may 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.
[0165] Scene 8: From Figure 4 The connection status shown switches to Fig. 9 Displays the connection status.
[0166] When the first processor 310 determines that it needs to Figure 4 The connection status shown switches to Fig. 9 When the connection state is shown, the eighth control is executed to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the state shown in FIG. Fig. 9 Displays the connection status.
[0167] Optionally, the first processor 310 may execute the eighth control in the following case: the first display screen 340 is already lit, in which case the first processor 310 detects that the second display screen 350 is lit, and then executes the eighth control, so that the user interface of the application running in the first processor 310 can be displayed through the two display screens at the same time. In the embodiment of the present application, when the first display screen 340 is already lit, the specific implementation method of lighting up 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.
[0168] 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 may drive the first display screen 340 and the second display screen 350 to display the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, 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 may switch to the second display screen 350, so that the user interface of the application program run under the main operating system may be displayed on the second display screen 350, for example, a complex image or a user interface of a complex application program may be displayed on the second display screen 350, thereby enriching the application scenario of the second display screen 350.
[0169] After the connection state is switched as shown in the scenario eight, in a possible implementation, the second display screen 350 can send touch information to the second processor 320 through the interface between the second processor 320, and the second processor 320 can send touch information to the first processor 310 through the interface between the second processor 310 and the first processor 310, so that the first processor 310 responds; the first display screen 340 can send touch information to the first processor 310 through the existing interface between 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 eighth control of the first processor 310 on the switch circuit 330 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 the implementation principle of the aforementioned embodiment, and will not be repeated.
[0170] Scene 9: From Fig. 9 The connection status shown switches to Figure 4Displays the connection status.
[0171] When the first processor 310 determines that it needs to Fig. 9 The connection status shown switches to Figure 4 The ninth control is executed when the connection state is shown, so as to control the switch circuit 330 to perform the corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 4 Displays the connection status.
[0172] Optionally, the first processor 310 may execute the ninth control in the following case: the first display screen 340 and the second display screen 350 are both lit, 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 lit, the specific implementation method of turning off 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.
[0173] Optionally, the implementation process of the ninth 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 disconnects 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 the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the first display screen 340 after being rendered.
[0174] After the connection state is switched as shown in the ninth scenario, in a possible implementation, the first display screen 340 may send touch information to the first processor 310 through the existing interface between the first display screen 340 and the first processor 310, so that the first processor 310 responds. In another possible implementation, the ninth 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.
[0175] Scene 10: From Figure 7 The connection status shown switches to Fig. 9 Displays the connection status.
[0176] When the first processor 310 determines that it needs to Figure 7 The connection status shown switches to Fig. 9The tenth control is executed when the connection state is shown, so as to control the switch circuit 330 to perform the corresponding switching operation, thereby switching to the connection state as shown in FIG. Fig. 9 Displays the connection status.
[0177] Optionally, the first processor 310 may execute the tenth control in the following case: the second display screen 350 is already lit, in which case the first processor 310 detects that the first display screen 340 is lit, and then executes the tenth control, so that the user interface of the application running in the first processor 310 can be displayed through the two display screens at the same time. In the embodiment of the present application, when the second display screen 350 is already lit, the specific implementation method of lighting up 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.
[0178] Optionally, the implementation process of the tenth 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 second display screen 350 and opens 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 the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the first display screen 340 and the second display screen 350 after being rendered.
[0179] After the connection state is switched as shown in the scenario 10, in a possible implementation, the second display screen 350 can send touch information to the second processor 320 through the interface between the second processor 320, and the second processor 320 can send touch information to the first processor 310 through the interface between the second processor 310 and the first processor 310, so that the first processor 310 responds; the first display screen 340 can send touch information to the first processor 310 through the existing interface between 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 tenth control of the first processor 310 on the switch circuit 330 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.
[0180] Scene 11: From Fig. 9 The connection status shown switches to Figure 7 Displays the connection status.
[0181] When the first processor 310 determines that it needs to Fig. 9 The connection status shown switches to Figure 7 The eleventh control is executed when the connection state is shown, so as to control the switch circuit 330 to perform a corresponding switching operation, thereby switching to the connection state as shown in FIG. Figure 7 Displays the connection status.
[0182] Optionally, the first processor 310 may execute the eleventh control in the following case: the first display screen 340 and the second display screen 350 are both turned on. In this case, the first processor 310 detects that the first display screen 340 is turned 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 turned on, the specific implementation method of turning off 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.
[0183] Optionally, the implementation process of the ninth 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 second display screen 350 and disconnects 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 the display data of the application program run by the first processor 310. For example, the first processor 310 generates (or refreshes) the display data of the application program, and the display data is displayed on the second display screen 350 after being rendered.
[0184] After the connection state is switched as shown in the scenario eleven, in a possible implementation, the second display screen 350 may send touch information to the second processor 320 through the interface between the second processor 320, and the second processor 320 may send touch information to the first processor 310 through the interface between the second processor 310 and the first processor 310, so that the first processor 310 responds. Optionally, if the second processor 320 is in a dormant state, it may 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.
[0185] 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 making 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.
[0186] 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 operating 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, while other areas are off, to reduce power consumption.
[0187] The above examples are only several possible switching scenarios, which are not limited in the present application. The present application 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.
[0188] In some embodiments of the present application, the second processor 320 may also be connected to one or more peripherals (external devices) and may control the peripherals or process data from the peripherals to reduce the burden of the first processor 310, thereby reducing the power consumption of the electronic device.
[0189] In a possible implementation, the second processor 320 may be connected to one or more of the following types of peripherals:
[0190] (1) Memory, for example, may include one or more of random access memory (RAM) and read-only memory (ROM) to improve data access efficiency. Optionally, the RAM and / or ROM may be selected for connection according to the service carried by the second processor 320.
[0191] (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 counting steps), etc. For example, the microphone may be a main microphone for voice wake-up. The microphone is usually a normally on device. Compared with connecting the microphone to the first processor 310 and processing the audio data received by the microphone by the first processor 310, the embodiment of the present application connects the microphone to the second processor 320, and the second processor 320 processes the audio data received by the microphone, which can reduce power consumption.
[0192] (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:
[0193] A charging module (such as a charging protocol integrated circuit), where the charging protocol is completed by the second processor, and the charging speed can be increased during standby charging;
[0194] Short-range communication integrated circuits, such as Wi-Fi chips or Bluetooth (blue tooth, BT) chips.
[0195] For example, Fig.14 A schematic diagram of the connection between the second processor 320 and the peripherals is shown. The second processor 320 can be connected to the RAM through 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) through an I2C interface, the second processor 320 can be connected to the sensor through an I2C interface, the second processor 320 can be connected to the microphone through an ADF interface, and the second processor 320 can be connected to the short-range IC / GPS through a universal asynchronous receiver transmitter (UART) interface.
[0196] The above only exemplifies several peripherals connected to the second processor 320 . It can be understood that other peripherals that need to be always on and have higher power consumption requirements can also be connected to the second processor 320 .
[0197] In one or more of the above 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 switch circuit and coordinating with each other, so as to achieve one or more of various effects such as reducing power consumption, optimizing resources, and enriching display scenes based on different scenarios. For example, switching from the first processor to 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 second processor to the second display screen can improve the display effect and enrich the display scene based on the performance of the first processor.
[0198] In some other embodiments of the present application, there is no need to set a switch circuit, and the first processor and the second processor can control the state of the interface connected to the display screen to achieve the 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.
[0199] Taking the connection state switching shown in the above scenario 1 as an example, when the first processor determines that it needs to switch from the current Figure 4 The connection status shown switches to Figure 8 In the connection state shown, the first processor sets the first interface to a high impedance state and notifies the second processor to connect to the first display screen; the second processor sets the third interface to a low impedance state according to the notification, thereby connecting the second processor to the first display screen. In other switching scenarios, the first processor and the second processor control the state of the interface to switch the connection state, which will not be described here.
[0200] Based on the above control circuit 300, Fig.15 1 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 a 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 embodiment, and will not be repeated here. The second processor 320 in the control circuit 300 may also be connected to one or more peripherals. An example of the peripherals connected to the second processor 320 may be as shown in FIG. Fig.14 shown.
[0201] Based on the above control circuit 300, Fig.16 FIG. 1 shows a schematic diagram of the structure of another electronic device provided by 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. An example of a peripheral connected to the second processor 320 may be as follows: Fig.14The difference between the electronic device 1600 and the electronic device 1500 is that the control of the switch 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 connection for transmitting display data and the connection for transmitting touch information are subjected to the same switching control.
[0202] Based on the above embodiments, the present application further provides an electronic device, which includes 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 specific implementations.
[0203] Based on the above embodiments, the present application also provides an electronic device, which includes at least one processor and at least one memory, and 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.
[0204] 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 instruction), when the computer program is run, the methods described in the embodiments of the present application are executed.
[0205] 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 instruction), which, when executed by a computer, enables the computer to execute the methods described in the embodiments of the present application.
[0206] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.
[0207] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the 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 of the computer device. The chip system can be composed of a chip, or it can include a chip 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 a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt 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.) including a computer-usable program code.
[0208] 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 process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0209] These computer program instructions may also be stored in a computer-readable memory capable of directing 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 an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0210] 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, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0211] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the protection scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also 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 an application program run by the second processor, and the first processor is used to drive the second display screen connected to the first processor to display data of an application program run 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
A method for controlling screen display and electronic equipment
CN109917956A
Electronic equipment
CN113031751A
Picture display method and device, electronic equipment and storage medium
CN115113993A
Auxiliary display within a primary display system
US20070268200A1
Cited By
Control method and electronic equipment
CN121680601A