Electronic device screen control method, readable medium, and electronic device
By prioritizing display screen processing permissions and using a virtual touch driver to capture complete touch data, the method addresses data loss and freezing issues in dual processor devices, improving user experience through seamless screen transitions.
Patent Information
- Application Number
- JP2023552060
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-03
- Filing Date
- 2022-02-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-02-25
AI Technical Summary
Dual processor electronic devices experience data loss and on-screen freezing during screen switching due to improper handling of processing permissions between the high-performance main processor and low-power co-processor, leading to an uneven user experience.
The method involves switching display screen processing permissions to the main processor first, followed by switching touchpad processing permissions after the display screen switch is completed, with the main processor receiving touch data via a virtual touch driver to ensure complete data capture and accurate user interaction analysis.
This approach prevents data loss during screen switching, achieves imperceptible transitions, and enhances user experience by ensuring accurate response to user interactions.
Smart Images

Figure 0007548662000006 
Figure 0007548662000012 
Figure 0007548662000004
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202110236124.X, entitled “ELECTRONIC DEVICE SCREEN CONTROL METHOD, READABLE MEDIUM, AND ELECTRONIC DEVICE”, filed with the State Intellectual Property Office of the People's Republic of China on March 3, 2021, which is incorporated herein by reference in its entirety.
[0002] [Technical field] The present application relates to the field of terminal technology, and in particular to an electronic device screen control method, a readable medium, and an electronic device. [Background technology]
[0003] As a carrier of human-machine interaction, electronic device touchpads are widely used in various smart electronic devices. Users only need to touch the touchpad of a smart electronic device with their fingers to perform operations on the electronic device, which realizes more intuitive and convenient human-machine interaction.
[0004] In order to achieve a higher energy efficiency ratio, a dual processor solution is usually used in the hardware architecture of electronic devices. Specifically, a high-performance main processor is responsible for running the operating system and processing tasks that require high computational load, such as maps, navigation, or phone functions. A low-power coprocessor is responsible for some tasks that require low computational load, such as sensor data collection and processing. In this way, the high-performance main processor and the low-power coprocessor share a set of display screen and touchpad, which can easily cause problems such as point loss and freezing on the user interface during switching between systems. Summary of the Invention
[0005] The embodiments of the present application provide an electronic device screen control method, a readable medium, and an electronic device. In the present application, during a screen switching process, the processing permission of the display screen is switched first, and the processing permission of the touchpad is switched after the display screen switching is completed. Furthermore, in the process of switching the touchpad, the first processor receives touch data through the second processor, so that the first processor can receive the complete touch data, accurately analyze the user's current operation event corresponding to the complete touch data, and then accurately respond to the user's current operation event. This prevents the data generated by the electronic device and corresponding to the user operation from being lost in the screen switching process, and avoids the problem of an unsmooth sliding experience for the user. An imperceptible switching is implemented, and the user experience is improved.
[0006] According to a first aspect, an embodiment of the present application provides an electronic device screen control method, including:
[0007] A second processor of the electronic device processes information related to the display screen and the touchpad. When the electronic device detects that a user starts a first touch operation, the electronic device switches permission to process the display screen from the second processor to the first processor and transmits first touch data of the detected first touch operation to the first processor via the second processor. When the electronic device detects that the first touch operation ends, the electronic device switches permission to process the touchpad from the second processor to the first processor.
[0008] The related information of the display screen and the touchpad includes, but is not limited to, one or more types of data, such as touch data corresponding to a user touch operation; one or more types of instructions, such as a wake-up instruction sent by the co-processor application layer to the main processor in one embodiment according to FIG. 5A; one or more types of messages, such as an interrupt message sent by the touch chip to the co-touch driver in one embodiment according to FIG. 5A; one or more types of notifications, one or more types of requests, one or more types of responses, one or more types of signals, etc.
[0009] For example, in some embodiments, when the electronic device is in a dormant state, the second processor processes the related information of the display screen and the touchpad. When detecting that the user starts to slide on the screen, the electronic device switches the processing permission of the display screen from the second processor to the first processor, and transmits the first touch data of the detected first touch operation to the first processor via the second processor. Furthermore, when detecting that the user's finger has left the screen, the electronic device determines that the user's current touch operation has ended, and switches the processing permission of the touchpad from the second processor to the first processor. Furthermore, in the process of switching the touchpad, the first processor receives the touch data via the second processor, so that the first processor can receive the complete touch data, accurately analyze the user's current operation event corresponding to the complete touch data, and then accurately respond to the user's current operation event. Imperceptible switching is realized, and the user experience is improved.
[0010] It should be understood that in this document, "permission to process the display screen" refers to permission to process information related to the display screen, and "permission to process the touchpad" refers to permission to process information related to the touchpad.
[0011] In one possible implementation of the first aspect, the method further includes: the electronic device includes a virtual touch driver, the electronic device transmits first touch data of the first touch operation to the virtual touch driver via the second processor, and the first processor receives the first touch data via the virtual touch driver.
[0012] In some embodiments, the first processor is a main processor that may run a high performance operating system and handle tasks characterized by low usage and high computational load, for example, the main processor runs the Harmony® system and supports features including navigation, phone calls, maps, chat, music playback, etc.
[0013] In some embodiments, the second processor is a co-processor and may run a lightweight, low-power system and handle tasks characterized by high usage and low computational load, for example, the co-processor may run a lightweight embedded system and be responsible for sensor data collection and processing, supporting functions such as time display, calculator, timer, alarm clock, heart rate measurement, step counting, height measurement, etc.
[0014] In some embodiments, the virtual touch driver is the main virtual touch driver in one embodiment according to Figure 3. When the processing permission of the display screen is switched to the main processor and the processing permission of the touchpad is still in the coprocessor, the main processor reads the touch data sent by the coprocessor through the main virtual touch driver.
[0015] In one possible implementation of the first aspect, the method further includes: when the electronic device detects that a user has initiated a first touch operation, switching a processing permission of the display screen from the second processor to the first processor further includes:
[0016] When the electronic device detects that a user has started a first touch operation, the electronic device transmits a wake-up command to the first processor via the second processor. After receiving the wake-up command, the first processor transmits a screen switching interrupt request to the second processor in response to the wake-up command. After receiving the screen switching interrupt request, the second processor switches the permission to process the display screen from the second processor to the first processor in response to the interrupt request.
[0017] In some embodiments, the first processor is a main processor and the second processor is a co-processor, and the electronic device sends a wake-up command to the main processor via the co-processor application layer.
[0018] In one possible implementation of the first aspect, the method further includes:
[0019] A first processor of the electronic device processes information related to the display screen and the touchpad, and when the electronic device detects that a user has performed an interaction operation on a designated application of the electronic device, the electronic device switches processing permission of the display screen and the touchpad from the first processor to the second processor, and the second processor of the electronic device processes the information related to the display screen and the touchpad.
[0020] The designated application refers to an application that needs to be processed by the second processor and is characterized by high usage frequency and low computational load, such as a calculator, timer, alarm clock, or exercise application, etc. The second processor takes over from the first processor to process the frequently used and long-term applications, thereby reducing power consumption and improving the battery life of the electronic device.
[0021] In one possible implementation of the first aspect, the method further includes: when the electronic device detects that a user has performed an interaction operation on a specified application of the electronic device, switching processing permission of the display screen and the touchpad from the first processor to the second processor, and the second processor of the electronic device processing related information of the display screen and the touchpad includes:
[0022] The electronic device switches processing permission for the display screen from the first processor to the second processor when the electronic device detects that the user has performed an interaction on a designated application of the electronic device, and after the electronic device determines that processing permission for the display screen has been switched from the first processor to the second processor, the electronic device switches processing permission for the touchpad from the first processor to the second processor.
[0023] In this way, loss of user touch data during screen switching processing can be avoided, realizing imperceptible switching and improving the user experience.
[0024] In one possible implementation of the first aspect, the method further includes: a first processor of the electronic device processes related information of the display screen and the touch pad, and when the electronic device detects that the user has initiated a second touch operation, sends second touch data of the detected second touch operation to the first processor.
[0025] For example, in some embodiments, a first processor currently running an electronic device controls a display screen and a touchpad, and when a user's finger slides across the screen of the electronic device, the first processor reads touch data generated by the touch chip and corresponding to the user's current touch operation.
[0026] In one possible implementation of the first aspect, the method further includes: the electronic device includes a display screen changeover switch, the display screen changeover switch is electrically connected to the display screen, and when the electronic device detects that a user has initiated a first touch operation, the electronic device switches processing permission for the display screen from the second processor to the first processor in the following manner:
[0027] When the electronic device detects that the user has initiated a first touch operation, the electronic device controls a display screen changeover switch to disconnect from the second processor and controls the display screen changeover switch to communicate with the first processor.
[0028] For example, in some embodiments, the MIPI interfaces of the first processor and the second processor are connected to the MIPI interface of the display screen through switch S2, and when the electronic device detects that a user initiates a first touch operation, it controls switch S2 to disconnect from the second processor and control switch S2 to communicate with the first processor.
[0029] In one possible implementation of the first aspect, the method further includes: the electronic device includes a touchpad changeover switch; the touchpad changeover switch is electrically connected to the touchpad; when the electronic device detects that the first touch operation is ended, the electronic device switches processing permission of the touchpad from the second processor to the first processor in the following manner:
[0030] When the electronic device detects that the first touch operation has ended, it controls the touchpad changeover switch to disconnect from the second processor and controls the touchpad changeover switch to communicate with the first processor.
[0031] For example, in some embodiments, the I2C interfaces of the first processor and the second processor are connected to the I2C interface of the touchpad through switch S1. When detecting that the first touch operation is terminated, the electronic device controls switch S1 to disconnect from the second processor and controls switch S1 to communicate with the first processor.
[0032] According to a second aspect, an embodiment of the present application provides a readable medium storing instructions which, when executed on an electronic device, cause the electronic device to perform any one of the screen control methods according to the first aspect or any one of the possible implementations of the first aspect.
[0033] According to a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a screen, the screen including a display screen and a touch pad; a memory configured to store instructions for execution by one or more processors of the electronic device; a first processor, the first processor being one of the processors of the electronic device; and a second processor, which is one of the processors of the electronic device and is configured to cooperate with the first processor to execute any one of the screen control methods according to the first aspect or any one of the possible implementations of the first aspect. [Brief description of the drawings]
[0034] [Figure 1(a)] FIG. 1 is a sequence diagram of one screen switching of an electronic device in a related technical solution. [Figure 1(b)] 1 is a sequence diagram of one screen switching of an electronic device when the electronic device executes the screen switching control method provided in the present application according to some embodiments of the present application. [Figure 1(c)] 1 illustrates an application scenario of the screen switching control method provided in the present application according to some embodiments of the present application. [Diagram 2] FIG. 1(c) is a block diagram of a hardware structure of the smart watch shown in FIG. 1(c) according to some embodiments of the present application. [Diagram 3] FIG. 1(c) is a diagram of a system architecture of the smartwatch shown in FIG. 1(c) according to some embodiments of the present application. [Figure 4] FIG. 4(a) is a diagram of a smartwatch interface in a screen-off state according to some embodiments of the present application; FIG. 4(b) is a diagram of a smartwatch interface with the screen turned on after the user raises their wrist or presses a button according to some embodiments of the present application; and FIG. 4(c) is a diagram of the desktop displayed by the smartwatch after the user slides the screen according to some embodiments of the present application. [Figure 5A] 2 is an interaction diagram of a screen switching control method provided in the present application, according to some embodiments of the present application. FIG. [Figure 5B] 2 is an interaction diagram of a screen switching control method provided in the present application, according to some embodiments of the present application. FIG. [Figure 6] FIG. 2 is a diagram of the principle of switching display screens by a co-processor according to some embodiments of the present application. [Figure 7] FIG. 7(a) is a schematic diagram of a user tapping an exercise application on a smartwatch desktop according to some embodiments of the present application, and FIG. 7(b) is a diagram of an interface shown after a user enters the exercise application by tapping the exercise application on the smartwatch desktop according to some embodiments of the present application. [Figure 8] 2 is an interaction diagram of another screen switching control method provided in the present application, according to some embodiments of the present application. [Figure 9] 1 is a flowchart of a system interaction method according to some embodiments of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0035] Embodiments of the present application include, but are not limited to, an electronic device screen control method, a readable medium, and an electronic device.
[0036] In order to solve the problem of data loss and freezing on the screen when a dual-processor electronic device switches screens, an embodiment of the present application provides a screen control method for an electronic device. Specifically, when an electronic device switches systems in some scenarios, the processing permission of the display screen is switched first, and the processing permission of the touchpad is switched after the display screen switching is completed. For example, assume that the electronic device is a dual-processor device with a main processor and a coprocessor, and the user wears the electronic device on his / her wrist. When the user lifts up the wrist on which the electronic device is worn, the coprocessor of the electronic device is woken up, and the coprocessor controls the display screen and the touchpad. When the user's finger slides on the screen of the electronic device, the electronic device first switches the processing permission of the display screen to the main processor, and after the user's current sliding operation is completed, the electronic device switches the processing permission of the touchpad to the main processor.
[0037] In the related technical solution, as shown in FIG. 1(a), at time t1, after the electronic device in the screen-off state receives a user's button pressing operation, the coprocessor is woken up, and the coprocessor controls the display screen and the touchpad. At time t2, when the user's finger starts to slide on the screen of the electronic device, the electronic device simultaneously switches the processing permission of both the display screen and the touchpad to the main processor, and the main processor controls the display screen and the touchpad. In this way, when the user's complete touch operation is not completed, the electronic device switches the processing permission of the touchpad-related information from the coprocessor to the main processor. As a result, the user's touch data is partially lost in the touchpad switching process, so that the main processor cannot completely receive the touch data, and therefore cannot accurately analyze the user operation event corresponding to the user touch data, and further cannot accurately respond to the user operation event. As a result, the screen freezes in the screen switching process, which affects the user experience.
[0038] However, in some embodiments of the present application, as shown in FIG. 1(b), at time t1, after the electronic device in a screen-off state receives a user's button press operation, the coprocessor is woken up and the coprocessor controls the display screen and the touchpad. At time t2, when the user's finger starts to slide on the screen of the electronic device, the main processor is woken up. The electronic device first switches the processing permission of the display screen to the main processor, so that the main processor controls the display screen, and the processing permission of the touchpad is still in the coprocessor. At time t3, when the user's finger is lifted from the screen of the electronic device, specifically, after the current slide operation is finished, the electronic device switches the processing permission of the touchpad to the main processor.
[0039] It should be noted that in some embodiments of the present application, when the processing permission of the display screen is switched to the main processor and the processing permission of the touchpad remains in the coprocessor, the electronic device creates a virtual driver corresponding to the touchpad in the main processor (hereinafter referred to as the main virtual touch driver for the sake of simplicity) to receive the touch data sent by the coprocessor. When the main processor starts to control the display screen to display an image frame by frame, but the touchpad has not completed switching, the main processor may receive the complete touch data corresponding to the user's current touch operation through the main virtual touch driver. In this way, the main processor can accurately analyze the user's current operation event corresponding to the complete touch data based on the received complete touch data, and then accurately respond to the user's current operation event. This prevents the data generated by the electronic device and corresponding to the user operation from being lost in the system switching process, and avoids the problem of an unsmooth sliding experience for the user. Imperceptible switching is realized, and the user experience is improved.
[0040] It can be understood that when the touchpad processing permission is in the main processor, the main processor is responsible for processing touch data generated by the electronic device and corresponding to the user's touch operation, and when the touchpad processing permission is in the coprocessor, the coprocessor is responsible for processing touch data generated by the electronic device and corresponding to the user's touch operation.
[0041] The embodiments of the present application are further described in detail below with reference to the accompanying drawings.
[0042] 1(c) illustrates an application scenario of the screen control method according to some embodiments of the present application. A dual-processor smart watch 100 is worn on the left wrist of a user. The smart watch 100 includes a main processor and a coprocessor. The main processor and the coprocessor share one screen.
[0043] The main processor can run a high-performance operating system and handle tasks characterized by low usage and high computational load. For example, the main processor runs the Harmony® system and supports functions including navigation, phone, maps, chat, music playback, etc. The second processor is a coprocessor and can run a lightweight and low-power consumption system and handle tasks characterized by high usage and low computational load. For example, the coprocessor runs a lightweight embedded operating system and is responsible for sensor data collection and processing, and supports functions such as time display, calculator, timer, alarm clock, heart rate measurement, step counting, height measurement, etc. The low-power consumption coprocessor replaces the main processor and handles tasks characterized by high usage and low computational load to reduce power consumption and improve the battery life of the smartwatch 100.
[0044] Furthermore, the main processor and the coprocessor share one screen, which includes a display screen and a touchpad. In some embodiments, the screen can include a touchpad and a display screen stacked together. Based on the dual-processor hardware architecture, when the smartwatch 100 is in a screen-off state, both the main processor and the coprocessor are in a dormant state, and the coprocessor controls the display screen and the touchpad. When the coprocessor in the dormant state detects a touch operation performed by a user on the touchpad or a button press operation performed by a user, the processing permission for the display screen and the touchpad is switched to the main processor. In the process of the main processor controlling the display screen and the touchpad, if the main processor detects that the user has tapped on some applications that need to be processed by the coprocessor, the processing permission for the display screen and the touchpad is switched to the coprocessor.
[0045] However, in the related art, when the processing permission of the display screen and the touchpad is switched between the main processor and the coprocessor, some of the user's touch data is lost, the user's sliding on the touchpad is not smooth, and the interface displayed to the user freezes.
[0046] To solve the above-mentioned problem, when the processing permission of the display screen and the processing permission of the touchpad of the smart watch 100 are switched between the main processor and the coprocessor, the smart watch 100 first switches the processing permission of the display screen according to the screen switching control method provided in this embodiment of the present application. The processing permission of the display screen is switched first, and the processing permission of the touchpad is switched after the display screen switching is completed. For example, in the process of switching the processing permission of the display screen and the touchpad from the coprocessor to the main processor, the main processor receives the touch data sent by the coprocessor through the main virtual touch driver. Therefore, in the process of switching the display screen and the touchpad, the smart watch 100 can obtain the complete data generated by the touchpad and corresponding to the user's touch operation, so as to accurately respond to the user's touch operation and perform the corresponding task. This reduces the overall power consumption of the machine, realizes imperceptible switching, and improves the user experience.
[0047] It may be understood that the technical solutions in this application may be applied to electronic devices having dual processors, display screens, and touch pads, including, but not limited to, smart watches, laptop computers, desktop computers, tablet computers, mobile phones, servers, wearable devices, head mounted displays, mobile email devices, portable game consoles, portable music players, reader devices, televisions embedded with or coupled with one or more processors, or other electronic devices capable of accessing a network.
[0048] In the following description, for the sake of simplicity, the smart watch 100 is used as an example to describe the technical solutions of the present application.
[0049] 2 is a block diagram of the hardware structure of the smart watch 100 shown in FIG. 1(c) according to some embodiments of the present application. As shown in FIG. 2, the smart watch 100 includes a touch pad 101, a display screen 102, a main processor 103, a coprocessor 104, a memory 105, a communication module 106, a sensor module 107, a power supply 108, a changeover switch S1 of the touch pad 101, a changeover switch S2 of the display screen 102, a power management system 109, a touch chip 110, etc.
[0050] The touchpad 101, sometimes called a touch panel, can collect touch operations such as user taps and slides on a screen. In some embodiments, the touchpad 101 may communicate with the main processor 103 and the coprocessor 104 via an Inter-Integrated Circuit (I2C) bus. The touchpad 101 may be a resistive type, a surface capacitive type, a projected capacitive type, an infrared type, a surface acoustic wave type, a bending wave type, an active digital switcher type, or an optical imaging type.
[0051] The touch chip 110 is electrically connected to the touch pad 101. When the touch pad 101 is operated, the touch chip 110 scans the touch pad 101 at a certain scanning frequency to obtain user touch data, such as the coordinates, pressure, area and tangent value of the touch point. The obtained touch data of the user is then reported to the main processor 103 or the co-processor 104 for processing. After processing the touch data, the main processor 103 or the co-processor 104 displays an image corresponding to the user's touch operation frame by frame.
[0052] The display screen 102 can be configured to display information input by a user, prompt information provided to a user, various menus on the smartwatch 100, operation interfaces of various application programs of the smartwatch 100, etc. For example, the display screen 102 may be configured to display the current time, the user's heart rate measured by a health monitoring application, the number of steps calculated by an exercise application when the user is exercising, etc. In some embodiments, the display screen 102 can communicate with the main processor 103 and the co-processor 104 via a Mobile Industry Processor Interface (MIPI) bus. The display screen 102 may include a display panel, which may be a Liquid Crystal Display (LCD), an Organic Light-emitting Diode (OLED), an Active-matrix Organic Light-emitting Diode (AMOLED), a Flexible Light-emitting Diode (FLED), a Mini LED, a Micro LED, a Micro OLED, a Quantum Dot Light-emitting Diode (QLED), etc.
[0053] The main processor 103 includes multiple processing units and is capable of running operating systems such as Android® and Harmony® that are configured to process tasks associated with applications such as navigation, phone, maps, chat, and music playback, process data generated when a user touches the touchpad 101 when processing permission for the touchpad 101 and display screen 102 of the smartwatch 100 is switched to the main processor 103, and the like.
[0054] The coprocessor 104 may execute a lightweight embedded operating system configured to collect and process sensor data, handle tasks related to applications such as time display, calculator, timer, alarm clock, heart rate measurement, step counting, and height measurement, process data of a user touching the touchpad 101 when processing permission of the touchpad 101 and display screen 102 of the smartwatch 100 is switched to the coprocessor 104, etc. In some embodiments, the coprocessor 104 may include processing modules or circuits such as a Digital Signal Processor (DSP), a Micro-controller Unit (MCU), a Field Programmable Gate Array (FPGA), and an Application Specific Integrated Circuit (ASIC).
[0055] In some embodiments, the I2C interfaces of the main processor 103 and the coprocessor 104 are connected to the I2C interface of the touchpad 101 via a changeover switch S1. The MIPI interfaces of the main processor 103 and the coprocessor 104 are connected to the MIPI interface of the display screen 102 via a changeover switch S2. Furthermore, the main processor 103 and the coprocessor 104 are connected to the changeover switch S2 via a general-purpose input / output (GPIO) interface (not shown). The main processor 103 pulls up / down the level of the GPIO interface to send a request to switch the display screen 102 to the coprocessor 104, and after the processing permission of the display screen 102 is switched, the processing permission of the touchpad 101 is switched.
[0056] The memory 105 is configured to store software programs and data. The processor 203 executes the software programs and data stored in the memory 105 to realize various functional applications and data processing of the smartwatch 100. For example, in some embodiments of the present application, the memory 105 can store data such as atmospheric pressure and temperature collected by sensors during a user's exercise, and also stores user data such as sleep data and heart rate data. The memory 105 can also store user information such as registration information and login information.
[0057] The communication module 106 can be configured to enable the smartwatch 100 to communicate with another electronic device and connect to a network via the other electronic device. For example, the smartwatch 100 can be connected to an electronic device such as a mobile phone or a server via the communication module 106 for data transmission.
[0058] The sensor module 107 may include an optical proximity sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0059] The power source 108 is configured to provide power to each component of the smartwatch 100. The power source 108 may be a battery.
[0060] The power management system 109 is configured to manage the charging of the power source 108 and the provision of power by the power source 108 to the other modules.
[0061] It may be understood that the smart watch 100 shown in Fig. 2 is merely an exemplary structure for realizing the functions of the smart watch 100 in the technical solution of the present application, and does not constitute a specific limitation on the smart watch 100. In some other embodiments of the present application, the smart watch 100 may include more or less components than those shown in Fig. 2, or some components may be combined, or some components may be divided, or the components may be arranged in a different manner. The components shown in Fig. 2 may be implemented by hardware, software, or a combination of software and hardware.
[0062] 3 shows an architecture diagram of two operating systems (e.g., Harmony® system and lightweight embedded operating system) controlled by the main processor 103 and coprocessor 104 executed in the smartwatch 100 shown in FIG. 2 according to some embodiments of the present application. As shown in FIG. 3, the two operating systems executed by the main processor 103 and coprocessor 104 of the smartwatch 100, respectively, both include an application layer 302, a driver layer 301, and a device layer 300. Thus, although no distinction is made herein, specific originals in each layer are distinguished. The main processor 103 and the coprocessor 104 share the display screen 102, the touchpad 101, and the touch chip 110.
[0063] As shown in Fig. 3, the device layer 300 includes the display screen 102, the touchpad 101, the changeover switch S2 of the display screen 102, the changeover switch S1 of the touchpad 101, the main processor 103, the coprocessor 104, the touch chip 110, etc. For the functions of each component in the device layer 300, please refer to the above text description of Fig. 2. The details will not be described again here.
[0064] The driver layer 301 drives each component in the device layer 300 to realize functions such as read / write access and interrupt settings for each component.
[0065] 3, in the lightweight embedded operating system executed by the co-processor 104, the driver layer 301 includes, but is not limited to, a co-touch driver 301a. The co-touch driver 301a may be a software program in the lightweight embedded operating system executed by the co-processor 104 that is configured to drive the touchpad 101 and can read touch data generated by the touch chip 110.
[0066] For example, in some embodiments shown in FIG. 1(b), at time t1, after the smart watch 100 in the screen-off state receives a user's button press operation, the coprocessor 104 is woken up, and the coprocessor 104 processes the related information of the display screen 102 and the touchpad 101. The related information of the display screen 102 and the touchpad 101 includes, but is not limited to, one or more types of data, such as touch data corresponding to the user's touch operation; one or more types of instructions, such as a wake-up instruction sent by the coprocessor application layer to the main processor 103 in some embodiments according to FIG. 5A; one or more types of messages, such as an interrupt message sent by the touch chip 110 to the co-touch driver 301a in some embodiments according to FIG. 5A; and one or more types of notifications, one or more types of requests, one or more types of responses, one or more types of signals, etc. The coprocessor 104 drives the touchpad 101 through the co-touch driver 301a and reads the user's touch data.
[0067] In this specification, "permission to process the display screen 102" means permission to process the display screen 10 2 It should be understood that “processing permission of the touchpad 101” refers to the processing permission of the relevant information of the touchpad 101, and “processing permission of the touchpad 101” refers to the processing permission of the relevant information of the touchpad 101.
[0068] In the Harmony system executed by the main processor 103, the driver layer 301 includes, but is not limited to, a main virtual touch driver 301b, a main touch driver 301c, etc., configured to receive and transmit user touch data. The main touch driver 301c is a software program in the high-performance operating system running in the main processor 103, configured to drive the touchpad 101. When the processing permission of the display screen 102 and the processing permission of the touchpad 101 are both switched to the main processor 103, the main touch driver 301c can read the switched touch data generated by the touch chip 110, as shown in FIG. 3 (specifically, after the processing permission of the display screen 102 and the touchpad 101 are both switched to the main processor 103, the user touches the screen again, and the touch chip 110 generates data corresponding to the user's re-touch operation).
[0069] The main virtual touch driver 301b is a virtual driver corresponding to the touchpad 101 created by the main processor 103 during initialization and is configured to receive touch data sent from the coprocessor application layer 302a when processing permission for the display screen 102 has been switched to the main processor 103 and processing permission for the touchpad 101 is still with the coprocessor 104.
[0070] For example, in the embodiment shown in FIG. 1(b), at time t2, when the user's finger starts to slide on the screen of the smartwatch 100, the main processor 103 is woken up, and the smartwatch 100 first switches the processing permission of the display screen 102 to the main processor 103. The main processor 103 processes the data of the display screen 102, and the processing permission of the touchpad 101 is still with the coprocessor 104. When the processing permission of the display screen 102 is switched to the main processor 103 but the processing permission of the touchpad 101 is still with the coprocessor 104, the main processor 103 reads the touch data sent by the coprocessor 104 via the main virtual touch driver 301b.
[0071] At time t3, when the user's finger is lifted from the screen of the smartwatch 100, specifically after the current slide operation is finished, the smartwatch 100 switches the processing permission of the touchpad 101 to the main processor 103. The main processor 103 reads the touch data sent by the coprocessor 104 via the main touch driver 301c.
[0072] 3, in some embodiments, in the lightweight embedded operating system running on the coprocessor 104, the application layer 302 includes a coprocessor application layer 302a. The coprocessor application layer 302a is configured to perform calculations on touch data read by the co-touch driver 301a of the coprocessor 104 from the touch chip 110 when the coprocessor 104 has permission to process the display screen 102 and the touchpad 101, determine a user touch event type corresponding to the touch data, and then respond to the application program based on the determined event type.
[0073] For example, in some embodiments shown in FIG. 1(b), at time t1, after the smart watch 100 in the screen-off state receives a user's button press operation, the coprocessor 104 is woken up, and the coprocessor 104 processes the relevant information of the display screen 102 and the touch pad 101. The coprocessor 104 drives the touch pad 101 through the co-touch driver 301a and reads the user's touch data. The coprocessor application layer 302a performs calculations after receiving the user's touch data reported by the co-touch driver 301a, determines the user's touch event type corresponding to the touch data, and then responds through the application program according to the determined event type.
[0074] Correspondingly, in the Harmony® system executed by the main processor 103, the application layer 302 includes a main processor application layer 302b, which is configured to perform calculations on touch data read by the touch driver 301c of the main processor 103 from the touch chip 110 when the main processor 103 has permission to process the display screen 102 and the touchpad 101, determine a user touch event type corresponding to the touch data, and then respond based on the determined event type via an application program.
[0075] For example, in the embodiment shown in FIG. 1(b), when the user's finger starts to slide on the screen of the smartwatch 100 at time t2, the main processor 103 is woken up, and the smartwatch 100 first switches the processing permission of the display screen 102 to the main processor 103. When the user's finger is lifted from the screen of the smartwatch 100 at time t3, specifically, after the current sliding operation is completed, the smartwatch 100 switches the processing permission of the touchpad 101 to the main processor 103. The main processor 103 processes the related information of the display screen 102 and the touchpad 101. When the user taps the screen again, the touch chip 110 generates touch data corresponding to the user's tap operation. After reading the touch data from the touch chip 110, the main touch driver 301c reports the touch data to the main processor application layer 302b. The main processor application layer 302b identifies the data of the user tapping the screen, determines that the user's operation is tapping the icon of the music playback application, and further opens the music playback application.
[0076] Please refer to Figures 2 to 6. The following describes in detail the screen control method according to the solution of the present application in a scenario where the smart watch 100 is in a screen-off state, the user raises his / her wrist or presses a button to wake up the coprocessor 104, and the user touches the screen with his / her finger.
[0077] For example, in the embodiment shown in FIG. 4(a), the smart watch 100 is in a screen-off state, and both the main processor 103 and the coprocessor 104 are in a sleep state. In the embodiment shown in FIG. 4(b), after the user raises his / her wrist or presses the button 111 of the smart watch 100, the screen is turned on, the dial displays a time interface, the coprocessor 104 is woken up, and the processing permission of the display screen 102 and the touch pad 101 is in the coprocessor 104. The coprocessor 104 processes the user's touch data generated by the touch chip 110. After processing the touch data, the coprocessor 104 controls the display screen 102 to display data frame by frame. After the screen is turned on, if the user's touch operation is not detected within a set time, the smart watch 100 turns off the screen again, and the main processor 103 and the coprocessor 104 enter a sleep state again. If the user's touch operation is detected within the set time, for example, after sliding on the displayed time interface of the smart watch 100 shown in Fig. 4(b), the user enters the desktop of the smart watch 100 shown in Fig. 4(c), which includes multiple application icons, such as a navigation icon, an exercise application icon, a calculator icon, a weather icon, or a setting icon. In this case, the smart watch 100 switches the processing permission of the display screen 102 and the touch pad 101 to the main processor 103 by executing the screen control method according to the solution of the present application. In other words, the main processor 103 processes the user's touch data generated by the touch chip 110, and after processing the touch data, the main processor 103 controls the display screen 102 to display the data frame by frame.
[0078] Specifically, in some embodiments, as shown in Figures 5A and 5B, when the coprocessor 104 has processing permission for the display screen 102 and the touchpad 101 and the coprocessor 104 detects a user's touch operation, the process of switching the processing permission for the display screen 102 and the touchpad 101 to the main processor 103 includes the following steps.
[0079] Step 501: The smartwatch 100 generates user touch data. For example, in some embodiments, the user touches the screen, and the touch chip 110 generates data such as the coordinates, pressure, area, and tangent value of the user's touch point.
[0080] It may further be understood that the touch operation on the smartwatch 100 by the user may be an operation such as tap, touch and hold, double tap, slide, etc. For example, the user taps the touchpad 101 via a finger, or the user's finger slides from one position to another position on the touchpad 101. The touch operation performed by the user on the smartwatch 100 may be via a finger, or via a stylus or another touch device.
[0081] Step 502: The touch chip 110 of the smart watch 100 reports an interrupt message to the co-touch driver 301a of the co-processor 104.
[0082] The interrupt message is a trigger signal generated when the touch chip 110 receives a user's touch operation. If there is an interrupt message, it indicates that the user starts a touch operation on the touch pad 101, and enters step 503. If there is no interrupt message, it indicates that the user does not perform a touch operation on the touch pad 101. The touch chip 110 is not triggered to generate user's touch data, and returns to step 501.
[0083] Step 503: The co-touch driver 301a of the co-processor 104 reads the touch data from the touch chip 110 after receiving the interrupt message.
[0084] For example, in some embodiments, after receiving the interrupt message, the co-touch driver 301a of the co-processor 104 reads the touch data from the touch chip 110 via a Serial Peripheral Interface (SPI).
[0085] Step 504: The co-touch driver 301a of the co-processor 104 reports the read touch data to the co-processor application layer 302a of the co-processor 104. After receiving the touch data reported by the co-touch driver 301a, the co-processor application layer 302a executes step 505.
[0086] Step 505: After receiving the touch data, the coprocessor application layer 302a of the coprocessor 104 sends a wake-up command to the main processor 103. After receiving the wake-up command, the main processor 103 executes steps 506 and 507 simultaneously.
[0087] Step 506: After receiving the wake-up command, the main processor 103 completes power-on of the internal MIPI interface. Specifically, the power-on of the hardware interface connected between the main processor 103 and the changeover switch S2 of the display screen 102 is completed, so that when the changeover switch S2 of the display screen 102 is changed over to the main processor 103, the main processor 103 can communicate with the MIPI interface of the display screen 102 through the MIPI interface.
[0088] Step 507: The main processor 103 sends an interrupt request to the coprocessor 104 to request control of the screen. Specifically, the coprocessor 104 is requested to switch the processing permission of the display screen 102 and the touch pad 101 to the main processor 103.
[0089] Step 508: After the coprocessor 104 first receives the interrupt request sent by the main processor 103, it switches the processing permission for the display screen 102 to the main processor 103 in response to the interrupt request.
[0090] For example, as shown in Fig. 6, the main processor 103 may pull up the level of a GPIO interface configured to send a switching request, and the coprocessor 104 also pulls up the level of a GPIO interface configured to control the changeover switch S2 of the display screen 102. In this case, the changeover switch S2 is switched to the main processor 103. Specifically, the display screen 102 communicates with the main processor 103 through the changeover switch S2, and the main processor 103 processes the related information of the display screen 102. After the processing permission of the display screen 102 is switched from the coprocessor 104 to the main processor 103, step 509 is entered.
[0091] Step 509: The main virtual touch driver 301b of the main processor 103 reads the user's touch data from the coprocessor application layer 302a. The user's touch data is generated by the touch chip 110 and corresponds to the user's touch operation in the process where the processing permission of the display screen 102 is successfully switched from the coprocessor 104 to the main processor 103 but the switching of the touchpad 101 is not completed, in other words, the processing permission of the display screen 102 is switched to the main processor 103 but the processing permission of the touchpad 101 is in the coprocessor 104.
[0092] It should be noted that if the processing permission of the touchpad 101 is switched from the coprocessor 104 to the main processor 103 before the user's complete touch operation is completed, for example, before the user's finger or the touch device held by the user is lifted off the screen, some of the user's touch data will be lost. As a result, the main processor 103 cannot receive the touch data completely, and therefore cannot accurately analyze the user operation event corresponding to the user touch data, and further cannot accurately respond to the user operation event, which causes a freeze on the screen in the screen switching process and affects the user experience. Therefore, the coprocessor 104 first switches the display screen 102 to the main processor 103, and then switches the touchpad 101 to the main processor 103 after the user's touch operation is completed, in other words, after the user's finger or the touch device held by the user is lifted off the screen, and enters step 512.
[0093] Step 510: The main virtual touch driver 301b of the main processor 103 reports the user's read touch data to the main processor application layer 302b.
[0094] Specifically, before the switching of the touchpad 101 is completed, the processing permission of the touchpad 101 remains in the coprocessor 104. After the main processor 103 reads the user's touch data from the coprocessor application layer 302a via the main virtual touch driver 301b, the user's read touch data is then reported to the main processor application layer 302b for processing.
[0095] Step 511: After the main processor application layer 302b receives the user's touch data, it responds to the user's touch operation.
[0096] For example, in some embodiments, after receiving the user's touch data, the main processor application layer 302b calculates the touch data, determines a user's touch event corresponding to the touch data, and then responds according to the determined event.
[0097] For example, in some embodiments, when the main processor application layer 302b determines that the user's operation type is that the user's finger presses and holds the same thing, the response corresponding to the operation means that the information in the information record of the smart watch 100 is transferred, added to favorites, edited, deleted, multi-selected, referenced, etc.
[0098] Step 512: After the coprocessor 104 switches the display screen 102 to the main processor 103, it determines whether the current touch operation is finished. If the processing is finished, it indicates that the touchpad 101 can be switched to the main processor 103, and enters step 513. If not, it indicates that the touchpad 101 cannot be temporarily switched to the main processor 103, and returns to step 509.
[0099] In some embodiments, the coprocessor 104 may determine whether the touch operation has ended by determining whether the difference between the time when the user's finger leaves the screen and the time when the user starts touching the screen is greater than a specified time threshold. For example, assuming that the time threshold for the slide operation is set to 10 milliseconds, if the time difference between the time when the user's finger leaves the screen and the time when the user starts touching the screen is greater than 10 milliseconds, the coprocessor 104 may determine that the slide operation has ended, or the coprocessor 104 may determine that one slide operation has not been completed.
[0100] Step 513: After the co-processor 104 determines that the current touch has ended, it switches the touchpad 101 to the main processor 103.
[0101] For example, as shown in FIG. 2, the coprocessor 104 controls the changeover switch S1 of the touchpad 101 to switch to the main processor 103, so that the I2C interface of the touchpad 101 communicates with the I2C interface of the main processor 103, in other words, the touchpad 101 is switched to the main processor 103.
[0102] Step 514: When the main processor 103 successfully controls the screen (specifically, the main processor 103 processes the relevant information of the display screen 102 and the touchpad 101), in other words, when the processing permission of the display screen 102 and the touchpad 101 is successfully switched to the main processor 103, if the user touches the screen again, the main processor 103 reads the touch data generated by the touch chip 110 and corresponding to the user's re-touch from the touch chip 110.
[0103] If the user touches the screen again, the touch chip 110 of the smart watch 100 reports an interrupt message to the main touch driver 301c of the main processor 103. The interrupt message is a trigger signal generated when the touch chip 110 receives the user's retouch operation. If the interrupt message exists, it indicates that the user has started a touch operation on the touchpad 101, and enters step 515. If the interrupt message does not exist, it indicates that the user does not perform a retouch operation on the touchpad 101. The touch chip 110 is not triggered to generate the user's retouch data, and the process ends.
[0104] Step 515: The main touch driver 301c of the main processor 103 reads the retouch data from the touch chip 110 after receiving the interrupt message indicating the user's retouch.
[0105] For example, after receiving the interrupt message, the main touch driver 301c reads the touch data from the touch chip 110 via a Serial Peripheral Interface (SPI).
[0106] Step 516: The main touch driver 301c of the main processor 103 reports the read retouch data to the main processor application layer 302b for processing.
[0107] Step 517: After receiving the user's retouch data, the main processor application layer 302b responds to the user's retouch operation.
[0108] For example, after receiving the user's retouch data, the main processor application layer 302b calculates the retouch data, determines the user's touch event corresponding to the retouch data, and then responds according to the determined event. For example, the main processor application layer 302b identifies the data that the user taps on the screen, and determines that the user's operation is the continuous touch and hold of the user's finger at different positions on the screen of the smart watch 100. In this case, the response corresponding to the operation means that the smart watch 100 drags and rolls the information record to display the information record in different periods.
[0109] For example, after the user's finger slides on the time interface of the smart watch 100 shown in Fig. 4(b), the main processor 103 is woken up, and the smart watch 100 enters the desktop of the smart watch 100 shown in Fig. 4(c), which includes multiple application icons, such as a navigation icon, an exercise application icon, a calculator icon, a weather icon, a setting icon, etc. In the process of the user's finger sliding on the time interface of the smart watch 100 shown in Fig. 4(b), the smart watch 100 switches the processing permission of the display screen 102 and the touch pad 101 to the main processor 103 by executing the screen control method shown in Fig. 5A and Fig. 5B. Then, when the user touches the screen again, the main processor 103 processes the user's touch data generated by the touch chip 110 and controls the display screen 102 to display frame by frame.
[0110] The following describes a process in which, when the main processor 103 controls the screen (in other words, the main processor 103 has processing permission for the display screen 102 and touchpad 101), the user taps the icon of a set application on the desktop of the smart watch 100, triggering the main processor 103 to switch processing permission for the display screen 102 and touchpad 101 to the coprocessor 104.
[0111] The configured applications refer to applications that need to be processed by the coprocessor 104, such as calculators, timers, alarm clocks, or exercise applications that feature higher usage frequency and less calculation amount. The coprocessor 104 takes over from the main processor 103 to process the aforementioned applications that are frequently used and used for a long time, thereby reducing power consumption and improving the battery life of the smartwatch 100.
[0112] For example, in the embodiment shown in FIG. 7A, the currently displayed interface on the smartwatch 100 is a desktop, which includes icons of multiple applications, such as a navigation icon, an athletic application icon, a calculator icon, a weather icon, a setting icon, etc. After the user taps the icon 112 of the athletic application, the smartwatch 100 executes the athletic application and enters into an interface displaying the running distance and speed, as shown in FIG. 7B. However, the currently displayed interface of the user running running distance and pace is displayed by the coprocessor 104, which controls the display screen 102. Because the athletic application is executed by the coprocessor 104, after the user taps the icon 112 of the athletic application, the display screen 102 and the touchpad 101 of the smartwatch 100 need to be switched from the main processor 103 to the coprocessor 104.
[0113] In some embodiments, applications executed separately by main processor 103 and co-processor 104 are shown in Table 1. [Table 1]
[0114] It should be noted that the applications listed in Table 1 and executed by the main processor, such as navigation, phone, chat, shopping, tickets, photos, and mobile payment, are typically third-party applications, and the applications listed in Table 1, such as exercise, calculator, clock, weather, scientific sleep, smart heart rate monitoring, and blood oxygen saturation, are typically applications developed by device manufacturers. It can be understood that the application names listed in Table 1 do not constitute any particular limitation on the solution of the present application.
[0115] With reference to Figures 1(a) to (c), 2, and 6 to 8, the following provides a detailed description of the process in which the main processor 103 is triggered to switch processing permission for the display screen 102 and touchpad 101 to the coprocessor 104 after a user taps the exercise application icon 112 on the desktop of the smart watch 100.
[0116] As shown in FIG. 1(b), at time t3, after the coprocessor 104 switches the processing permission of the touchpad 101 to the main processor 103, the main processor 103 processes the related information of the display screen 102 and the touchpad 101. At time t4, after the user taps the icon 112 of the exercise application on the desktop of the smartwatch 100, the main processor 103 is triggered to send a screen switching interrupt request to the coprocessor 104 to request the coprocessor 104 to control the display screen 102 and the touchpad 101. After receiving the interrupt request sent by the main processor 103, the coprocessor 104 controls the changeover switch S2 of the display screen 102 to communicate with the coprocessor 104 in response to the interrupt request. After the switching of the display screen 102 is completed, the changeover switch S1 of the touchpad 101 is controlled to communicate with the coprocessor 104. In this way, the main processor 103 switches the processing permission of the display screen 102 and the touchpad 101 to the coprocessor 104, and the coprocessor 104 is responsible for reading and processing the user's touch data and controlling the display screen 102 to display frame by frame. Specifically, as shown in FIG. 8, after the user taps the icon 112 of the exercise application on the desktop of the smart watch 100, the process of the main processor 103 switching the processing permission of the display screen 102 and the touchpad 101 to the coprocessor 104 includes the following steps:
[0117] Step 801: The exercise application of the smart watch 100 sends a screen-off command to the main processor 103. After receiving the screen-off command, the main processor 103 executes steps 802 and 803 simultaneously.
[0118] Step 802: The main processor 103 completes power-off of the internal MIPI interface. Specifically, to disconnect the connection between the MIPI interface of the main processor 103 and the MIPI interface of the display screen 102, the main processor 103 and the hardware interface connected to the changeover switch S2 of the display screen 102 are powered off.
[0119] Step 803: The main processor 103 sends an interrupt request to the coprocessor 104 for screen switching. Specifically, the main processor 103 requests the coprocessor 104 to switch processing permission for the display screen 102 and the touchpad 101 from the main processor 103 to the coprocessor 104.
[0120] Step 804: After the coprocessor 104 receives the screen switching interrupt request, it switches the processing permission for the display screen 102 from the main processor 103 to the coprocessor 104 in response to the screen switching interrupt request.
[0121] For example, as shown in Fig. 6, the main processor 103 may pull down a level of a GPIO interface of the main processor 103 configured to send a switching request, and the coprocessor 104 also pulls down a level of a GPIO interface configured to control a changeover switch S2 of the display screen 102. In this case, the changeover switch S2 is switched to the coprocessor 104. Specifically, the display screen 102 communicates with the coprocessor 104 through the changeover switch S2, and the coprocessor 104 processes the related information of the display screen 102.
[0122] Step 805: After the switching of the display screen 102 is completed, the coprocessor 104 switches the processing permission of the touchpad 101 from the main processor 103 to the coprocessor 104.
[0123] 2, the coprocessor 104 controls the changeover switch S1 of the touchpad 101 to switch to the coprocessor 104, so that the I2C interface of the touchpad 101 communicates with the I2C interface of the coprocessor 104. Thus, the coprocessor 104 communicates with the touchpad 101, and when the user touches the screen of the smart watch 100, the coprocessor 104 reads and processes the touch data generated by the touch chip 110 and corresponding to the user's touch operation.
[0124] As described above, after the process of switching the processing permission of the display screen 102 and the touchpad 101 from the coprocessor 104 to the main processor 103 shown in Figures 5A and 5B and the process of switching the processing permission of the display screen 102 and the touchpad 101 from the main processor 103 to the coprocessor 104 shown in Figure 8 are described, the system interaction method according to the present application will be described below by continuing to use the smart watch 100 as an example. For example, the smart watch 100 executes the system interaction method shown in Figure 9 to realize switching between the main processor 103 and the coprocessor 104 of the smart watch 100 in different scenarios.
[0125] It can be understood that when switching between the main processor 103 and the coprocessor 104, the smart watch 100 may switch the display screen 102 and the touchpad 101 from the coprocessor 104 to the main processor 103, for example, by executing the screen control method shown in Figures 5A and 5B. Furthermore, the smart watch 100 may switch the display screen 102 and the touchpad 101 from the main processor 103 to the coprocessor 104, for example, by executing the screen control method shown in Figure 8. Specifically, as shown in Figure 9, the system interaction method according to the present application includes the following steps.
[0126] Step 901: The smart watch 100 in hibernation wakes up the coprocessor 104, and the coprocessor 104 processes information related to the display screen 102 and the touchpad 101 after detecting a user's setting operation.
[0127] The user's setting operation may be an operation in which the user raises the wrist on which the smart watch 100 is worn, the user presses a button on the smart watch 100, or the user instructs the smart watch 100 to wake up via a voice command, which is not limited in this application.
[0128] The related information of the display screen 102 and the touchpad 101 includes, but is not limited to, one or more types of data, such as touch data corresponding to a user touch operation; one or more types of instructions, such as a wake-up instruction sent by the coprocessor application layer to the main processor in one embodiment according to FIG. 5A; one or more types of messages, such as an interrupt message sent by the touch chip 110 to the co-touch driver 301a in some embodiments according to FIG. 5A; and one or more types of notifications, one or more types of requests, one or more types of responses, one or more types of signals, etc.
[0129] Step 902: The coprocessor 104 judges whether there is a user's touch operation. If there is a user's touch operation, it indicates that the coprocessor 104 has detected the user's touch operation, and the process goes to step 903a. If there is no user's touch operation, it indicates that the coprocessor 104 has not detected the user's touch operation, and the process goes to step 903b.
[0130] For example, in some embodiments, after the touch chip 110 detects a user's touch operation, the touch chip 110 sends an interrupt message to the coprocessor 104. The interrupt message is a trigger signal generated when the touch chip 110 receives a user's touch operation. If the interrupt message exists, it indicates that the user has started a touch operation on the touchpad 101, and step 903a is executed. If the interrupt message does not exist, it indicates that the user has not performed a touch operation on the touchpad 101, and step 903b is entered.
[0131] Step 903 a : The coprocessor 104 wakes up the main processor 103 . After detecting a touch operation by the user, the coprocessor 104 switches the processing permission for the display screen 102 and the touch pad 101 to the main processor 103 .
[0132] For example, in some embodiments, the touch chip 110 generates touch data and sends an interrupt message to the co-touch driver 301a of the co-processor 104. After receiving the interrupt message, the co-touch driver 301a reads the touch data from the touch chip 110 and reports the read touch data to the co-processor application layer 302a. After receiving the touch data, the co-processor application layer 302a sends a wake-up command to the main processor 103. After receiving the wake-up command, the main processor 103 completes internal power-on and sends an interrupt request to the co-processor 104, in other words, the main processor 103 requests the co-processor 104 to switch the processing permission of the display screen 102 and the touchpad 101 to the main processor 103. After receiving the interrupt request sent by the main processor 103, the co-processor 104 first switches the display screen 102 to the main processor 103. When the display screen 102 has been switched but the touchpad 101 has not been switched temporarily, in order to avoid the problem of freezing on the screen in the process of screen switching, the coprocessor application layer 302a sends the touch data to the main virtual touch driver 301b of the main processor 103. After the user's current touch is finished, the coprocessor 104 switches the touchpad 101 to the main processor 103. For detailed processing, please refer to the above text description of the part of the screen control method shown in Figures 5A and 5B. The details will not be described again here.
[0133] Step 903b: The smart watch 100 turns off the screen due to a timeout. After the coprocessor 104 is woken up, if the user's touch operation is not detected within a set time, the coprocessor 104 sends a screen-off command to the display screen 102 to control the display screen 102 to turn off the screen. For example, after being woken up, the coprocessor 104 controls the display screen 102 to be lit, and the user's touch operation is not detected within 5 seconds. In this case, the coprocessor 104 enters a sleep state. The main processor 103 continues to stay in the sleep state, and the display screen 102 is turned off.
[0134] Step 904: The main processor 103 determines whether there is an interaction with the set application. If there is an interaction with the set application, it indicates that the main processor 103 detects an interaction performed by the user with the set application, and enters step 905. If not, it indicates that the main processor 103 does not detect a user interaction with the set application. In some embodiments, if no user interaction is detected within a set time, the main processor 103 turns off the screen due to a timeout.
[0135] The configured applications refer to applications that need to be processed by the coprocessor 104, such as calculators, timers, alarm clocks, or exercise applications that feature higher usage frequency and less calculation amount. The coprocessor 104 takes over from the main processor 103 to process the aforementioned applications that are frequently used and used for a long time, thereby reducing power consumption and improving the battery life of the smartwatch 100.
[0136] Step 905 : The main processor 103 wakes up the co-processor 104 , and the main processor 103 switches the display screen 102 and the touchpad 101 to the co-processor 104 .
[0137] For example, the user taps the exercise application of the smart watch 100, and the exercise application of the smart watch 100 sends a screen-off command to the main processor 103. After receiving the screen-off command, the main processor 103 completes the power-off of the internal MIPI interface, specifically, the power-off of the hardware interface connected to the main processor 103 and the changeover switch S2 of the display screen 102 is completed to disconnect the connection between the MIPI interface of the main processor 103 and the MIPI interface of the display screen 102. In addition, the main processor 103 sends an interrupt request to the coprocessor 104 for screen switching, specifically, requests to switch the display screen 102 and the touchpad 101. The coprocessor 104 switches the display screen 102 in response to the screen switching interrupt request. After the switching of the display screen 102 is completed, the touchpad 101 is switched. For detailed processing, please refer to the above text description of the part of the screen control method shown in FIG. 8. The details will not be described again here.
[0138] The embodiments disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of this application may be implemented as a computer program or program code executed on a programmable system. The programmable system includes at least one processor, a storage system (including volatile memory, non-volatile memory, and / or storage elements), at least one input device, and at least one output device.
[0139] Program code may be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices, in known fashion. For purposes of this application, a processing system includes any system having a processor, such as a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
[0140] The program code may be implemented in a high level or object oriented programming language to communicate with a processing system. The program code may also be implemented in assembly or machine language, if desired. The mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
[0141] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or via other computer-readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, a floppy disk, a compact disk, an optical disk, a read-only memory (CD-ROM), a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic or optical card, a flash memory, or a tangible machine-readable memory configured to transmit information over the Internet using electrical, optical, acoustical, or other forms of transmission signals (e.g., carrier waves, infrared signals, and digital signals). Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0142] In the figures, some structural or method features may be shown in a particular arrangement and / or sequence. However, it should be understood that such a particular arrangement and / or sequence may not be required. Rather, in some embodiments, features may be arranged in other ways and / or orders than those shown in the example figures. Furthermore, the inclusion of structural or method features in a particular figure is not meant to indicate that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0143] It should be noted that all units / modules mentioned in the device embodiments of the present application are logical units / modules. Physically, one logical unit / module may be one physical unit / module, or may be a part of one physical unit / module, or may be realized by a combination of multiple physical units / modules. The physical implementation of these logical units / modules is not the most important, and the combination of functions implemented by these logical units / modules is the key to solving the technical problem raised in the present application. Furthermore, in order to highlight the innovative part of the present application, the aforementioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problem proposed in the present application. This does not indicate that there are no other units / modules in the aforementioned device embodiments.
[0144] It should be noted that in the examples and specification of this patent, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or indicate any such actual relationship or order between these entities or operations. Furthermore, the terms "include", "includes", or any other variations are intended to cover a non-exclusive inclusion, whereby a process, method, article, or device that includes a set of elements not only includes such elements, but also includes other elements not expressly listed, or may further include elements inherent to the process, method, article, or device. Without further limitation, an element qualified by "include a / an" does not exclude the presence of other identical elements within the process, method, article, or device that includes the element.
[0145] While the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the present application.
Claims
1. 1. A screen control method for an electronic device, the electronic device including a screen, a first processor, and a second processor, the screen including a display screen and a touch pad, the method comprising: processing information related to the display screen and the touchpad by the second processor of the electronic device; when the electronic device detects the start of a first touch operation by a user, switching permission for processing the display screen from the second processor to the first processor, and transmitting first touch data of the first touch operation that is continuously detected to the first processor via the second processor; switching a processing permission of the touchpad from the second processor to the first processor when the electronic device detects an end of the ongoing first touch operation; A method comprising:
2. 2. The method of claim 1 , wherein the electronic device includes a virtual touch driver, the electronic device transmits the first touch data of the first touch operation to the virtual touch driver via the second processor, and the first processor receives the first touch data via the virtual touch driver.
3. switching a permission to process the display screen from the second processor to the first processor when the electronic device detects a start of a first touch operation by a user, sending a wake-up command to the first processor via the second processor when the electronic device detects the initiation of the first touch operation of the user; after receiving the wake-up command, the first processor transmits a screen switching interrupt request to the second processor in response to the wake-up command; after the second processor receives the screen switching interrupt request, switching the processing permission for the display screen from the second processor to the first processor in response to the screen switching interrupt request; The method of claim 1 or 2, comprising:
4. processing the associated information of the display screen and the touchpad by the first processor of the electronic device; when the electronic device detects that the user has performed an interaction on a designated application of the electronic device, switching the processing permission of the display screen and the touchpad from the first processor to the second processor, and the second processor of the electronic device processes the related information of the display screen and the touchpad; The method of claim 1 , further comprising:
5. switching the processing permission of the display screen and the touchpad from the first processor to the second processor when the electronic device detects that the user has performed an interaction operation on a designated application of the electronic device, and having the second processor of the electronic device process the related information of the display screen and the touchpad; switching the processing permission of the display screen from the first processor to the second processor when the electronic device detects that the user has performed the interaction on the specified application of the electronic device; switching the processing permission of the touchpad from the first processor to the second processor after the electronic device determines that the processing permission of the display screen has been switched from the first processor to the second processor; The method of claim 4 , comprising:
6. processing the associated information of the display screen and the touchpad by the first processor of the electronic device; when the electronic device detects that the user has initiated a second touch operation, sending second touch data of the detected second touch operation to the first processor; The method of claim 1 , further comprising:
7. The electronic device includes a display screen changeover switch, the display screen changeover switch being electrically connected to the display screen; Upon detecting the initiation of the first touch operation of the user, the electronic device transmits the processing permission of the display screen from the second processor to the first processor in the following manner:
7. The method of claim 1, wherein the electronic device switches by controlling the display screen changeover switch to disconnect from the second processor and to communicate with the first processor when the electronic device detects the initiation of the first touch operation of the user.
8. the electronic device includes a touchpad changeover switch, the touchpad changeover switch being electrically connected to the touchpad; When detecting the end of the first touch operation, the electronic device transfers the processing permission of the touchpad from the second processor to the first processor in the following manner:
7. The method of claim 1, wherein the electronic device switches when it detects the end of the first touch operation by controlling the touchpad toggle switch to disconnect from the second processor and controlling the touchpad toggle switch to communicate with the first processor.
9. A readable medium storing instructions which, when executed on an electronic device, enable the electronic device to perform a screen control method according to any one of claims 1 to 8.
10. 1. An electronic device comprising: a screen, the screen including a display screen and a touch pad; a memory configured to store instructions for execution by one or more processors of the electronic device; a first processor, the first processor being one of the processors of the electronic device; a second processor, being one of the processors of the electronic device and configured to cooperate with the first processor to execute the screen control method according to any one of claims 1 to 8; 2. An electronic device comprising:
Citation Information
Patent Citations
Cascaded touch to wake for split architecture
CN108369445A
System interaction method and wearable equipment
CN110908496A
Method and Electronic Device for Bringing a Primary Processor Out of Sleep Mode
US20140351617A1
