Screen control method, readable medium, and electronic device of an electronic device

By first switching the display screen and then switching the processing permissions of the touch screen in the electronic device, and receiving touch data through the second processor, the user interface loss and lag caused by the dual processor solution is solved, and senseless switching and better user experience is achieved.

CN115033122BActive Publication Date: 2025-06-27HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110236124.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-03
Publication Date
2025-06-27
Estimated Expiration
2041-03-03

AI Technical Summary

Technical Problem

In electronic devices, the dual processor solution causes problems such as loss of points and lags in the user interface when the system is switched, resulting in poor user experience.

Method used

During the screen switching process, the processing permissions of the display screen are first switched, and then the processing permissions of the touch screen are switched, and during the touch screen switching process, the first processor receives touch data through the second processor to ensure that the complete touch data is received.

Benefits of technology

It realizes avoiding data loss during screen switching, ensuring accurate analysis and response of user operation events, improving user experience, and realizing senseless switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033122B_ABST
    Figure CN115033122B_ABST
Patent Text Reader

Abstract

The present application discloses a screen control method, a readable medium, and an electronic device for an electronic device. The method includes: a second processor of the electronic device processes information related to a display screen and a touch screen; when the electronic device detects that a user starts a first touch operation, it switches the processing authority of the display screen from the second processor to the first processor, and sends first touch data of the detected first touch operation to the first processor via the second processor, and when the electronic device detects the end of the first touch operation, it switches the processing authority of the touch screen from the second processor to the first processor. In the screen switching process of the solution of the present application, the processing authority of the display screen is switched first and then the processing authority of the touch screen is switched, and the first processor receives touch data through the second processor, so that the first processor can receive complete touch data, thereby accurately responding to the user's touch event, realizing seamless switching, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and particularly to a screen control method, a readable medium, and an electronic device for an electronic device. Background Art

[0002] As a carrier for human-computer interaction, the touch screen of an electronic device is widely used in various intelligent electronic devices. Users can operate the electronic device simply by touching the touch screen of the intelligent electronic device, thus achieving a more intuitive and convenient human-computer interaction.

[0003] In order to achieve a higher energy efficiency ratio, a dual-processor scheme is usually adopted in the hardware architecture of an electronic device, that is, a high-performance main processor is responsible for the operation of the operating system and processes tasks with high computing volume, such as functions like maps, navigation, and calls. A low-power coprocessor is responsible for some tasks with low computing volume, such as the acquisition and processing of sensor data. In this way, since the high-performance main processor and the low-power coprocessor share a set of display screen and touch screen, problems such as missing points and stuttering of the user interface are likely to occur when switching between systems. Summary of the Invention

[0004] The embodiments of this application provide a screen control method, a readable medium, and an electronic device for an electronic device. In the process of screen switching in the solution of this application, the processing authority of the display screen is first switched, and then the processing authority of the touch screen is switched after the display screen switching is completed. And during the switching process of the touch screen, the first processor receives touch data through the second processor, so that the first processor can receive complete touch data, thereby accurately parsing the user's current operation event corresponding to the current complete touch data, and then accurately responding to the user's current operation event. It avoids the loss of data generated by the electronic device corresponding to the user operation during the screen switching process, thus avoiding the problem of a non-smooth sliding experience brought to the user. It realizes seamless switching and improves the user experience.

[0005] In a first aspect, the embodiments of this application provide a screen control method for an electronic device, including:

[0006] The second processor of the electronic device processes the relevant information of the display screen and the touch screen; when the electronic device detects that the user starts a first touch operation, it switches the processing authority of the display screen from the second processor to the first processor, and sends the first touch data of the detected first touch operation to the first processor via the second processor, and when the electronic device detects the end of the first touch operation, it switches the processing authority of the touch screen from the second processor to the first processor.

[0007] Among them, the relevant information of the display screen and the touch screen includes but is not limited to: one or more types of data, such as touch data corresponding to a user's touch operation; one or more types of signaling, such as, in Figure 5 the embodiment shown, the wake-up instruction sent by the coprocessor application layer to the main processor; one or more types of messages, such as, in Figure 5 the embodiment shown, the interrupt message sent by the touch chip to the coprocessor touch drive; 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.

[0008] For example, in some embodiments, when the electronic device is in the sleep state, the second processor processes the relevant information of the display screen and the touch screen. When the electronic device detects that the user starts to slide on the screen, it switches the processing authority of the display screen from the second processor to the first processor, and sends the first touch data of the detected first touch operation to the first processor via the second processor. And when the electronic device detects that the user's finger leaves the screen, it determines that the user's current touch operation ends, and switches the processing authority of the touch screen from the second processor to the first processor. During the switching of the touch screen, the first processor receives the touch data through the second processor, so that the first processor can receive the complete touch data, thereby accurately parsing the user's current operation event corresponding to the complete touch data, and then accurately responding to the user's current operation event. Achieve seamless switching and improve the user experience.

[0009] It should be understood that: in this article, the "processing authority of the display screen" refers to the processing authority of the relevant information of the display screen, and the "processing authority of the touch screen" refers to the processing authority of the relevant information of the touch screen.

[0010] In a possible implementation of the first aspect above, the method further includes: the electronic device includes a virtual touch drive, the electronic device sends the first touch data of the first touch operation to the virtual touch drive via the second processor, and the first processor receives the first touch data via the virtual touch drive.

[0011] In some embodiments, the first processor is the main processor, which can run a high-performance operating system and process high-computation tasks with low usage frequencies. For example, the main processor runs the system, supporting functions such as navigation, phone, map, chat, music playback, etc.

[0012] In some embodiments, the second processor is a coprocessor, which can run a low-power lightweight system and process low-computation tasks with high usage frequencies. For example, the coprocessor runs a lightweight embedded system, is responsible for the acquisition and processing of sensor data, and supports functions such as time display, calculator, timer, alarm clock, heart rate measurement, step counting, altitude measurement, etc.

[0013] In some embodiments, the virtual touch drive is Figure 3 the main virtual touch drive in the illustrated embodiment, which is used to read the touch data sent by the coprocessor through the main virtual touch drive when the processing permission of the display screen has been switched to the main processor while the processing permission of the touch screen remains with the coprocessor.

[0014] In a possible implementation of the above first aspect, the above method further includes: when the electronic device detects that the user starts a first touch operation, switching the processing permission of the display screen from the second processor to the first processor includes:

[0015] When the electronic device detects that the user starts a first touch operation, it sends a wake-up instruction to the first processor through the second processor; after receiving the wake-up instruction, the first processor responds to the wake-up instruction and sends an interrupt request for screen switching to the second processor; after receiving the interrupt request for screen switching, the second processor responds to the interrupt request and switches the processing permission of the display screen from the second processor to the first processor.

[0016] In some embodiments, the first processor is the main processor and the second processor is the coprocessor, and the electronic device sends a wake-up instruction to the main processor through the coprocessor application layer.

[0017] In a possible implementation of the above first aspect, the above method further includes:

[0018] The first processor of the electronic device processes the relevant information of the display screen and the touch screen; when the electronic device detects that the user has an interaction operation with a set application of the electronic device, it switches the processing permission of the display screen and the touch screen from the first processor to the second processor, and the second processor of the electronic device processes the relevant information of the display screen and the touch screen.

[0019] Among them, the set application refers to applications such as calculators, timers, alarms, and sports that require processing by the second processor and have a relatively high usage frequency and a relatively low computational workload. Letting the second processor replace the first processor to process applications with a high usage frequency and a long time can achieve power consumption reduction and improve the battery life of the electronic device.

[0020] In a possible implementation of the above first aspect, the above method further includes: when the electronic device detects that the user has an interaction operation with a set application of the electronic device, switching the processing permission of the display screen and the touch screen from the first processor to the second processor, and the second processor of the electronic device processes the relevant information of the display screen and the touch screen includes:

[0021] When the electronic device detects that the user has an interaction operation on the set application of the electronic device, it switches the processing permission of the display screen from the first processor to the second processor; after the electronic device determines that the processing permission of the display screen is switched from the first processor to the second processor, it switches the processing permission of the touch screen from the first processor to the second processor.

[0022] In this way, it is possible to avoid the loss of user touch data during the screen switching process, achieve a seamless switch, and improve the user experience.

[0023] In a possible implementation of the above first aspect, the above method further includes: the first processor of the electronic device processes relevant information of the display screen and the touch screen; when the electronic device detects that the user starts a second touch operation, it sends the second touch data of the detected second touch operation to the first processor.

[0024] For example, in some embodiments, the first processor that is currently running the electronic device controls the display screen and the touch screen. When the user's finger slides on the screen of the electronic device, the first processor reads the touch data corresponding to the user's current touch operation generated by the touch chip.

[0025] In a possible implementation of the above first aspect, the above method further includes: the electronic device includes a display screen switching switch, the display screen switching switch is electrically connected to the display screen, and when the electronic device detects that the user starts a first touch operation, it switches the processing permission of the display screen from the second processor to the first processor in the following manner:

[0026] When the electronic device detects that the user starts a first touch operation, it controls the display screen switching switch to disconnect from the second processor and controls the display screen switching switch to connect to the first processor.

[0027] 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. When the electronic device detects that the user starts a first touch operation, it controls switch S2 to disconnect from the second processor and controls switch S2 to connect to the first processor.

[0028] In a possible implementation of the above first aspect, the above method further includes: the electronic device includes a touch screen switching switch, the touch screen switching switch is electrically connected to the touch screen, and when the electronic device detects the end of the first touch operation, it switches the processing permission of the touch screen from the second processor to the first processor in the following manner:

[0029] When the electronic device detects the end of the first touch operation, it controls the touch screen switching switch to disconnect from the second processor and controls the touch screen switching switch to connect to the first processor.

[0030] For example, in some embodiments, the I2C interfaces of the first processor and the second processor are connected to the I2C interface of the touch screen through a switch S1. When the electronic device detects the end of the first touch operation, it controls the switch S1 to disconnect from the second processor and controls the switch S1 to connect to the first processor.

[0031] In a second aspect, an embodiment of the present application provides a readable medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device is caused to execute any one of the screen control methods in the first aspect and various possible implementations of the first aspect.

[0032] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0033] A screen, which includes a display screen and a touch screen;

[0034] A memory, configured to store instructions executed by one or more processors of the electronic device, and

[0035] A first processor, which is one of the processors of the electronic device;

[0036] 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 in the first aspect and various possible implementations of the first aspect. Description of the Drawings

[0037] FIG. 1(a) shows a timing diagram of a single screen switching of an electronic device in a related art solution;

[0038] FIG. 1(b), according to some embodiments of the present application, shows a timing diagram of a single screen switching of an electronic device when the electronic device executes the screen switching control method provided by the present application;

[0039] FIG. 1(c), according to some embodiments of the present application, shows an application scenario of a screen switching control method provided by the present application;

[0040] Figure 2 According to some embodiments of the present application, a hardware structure block diagram of the smart watch shown in FIG. 1 is shown;

[0041] Figure 3 According to some embodiments of the present application, a system architecture diagram of the smart watch shown in FIG. 1 is shown;

[0042] Figure 4 (a) According to some embodiments of the present application, an interface diagram of the smart watch in a screen-off state is shown;

[0043] Figure 4(b) According to some embodiments of the present application, an interface diagram showing the smartwatch screen lighting up after the user raises the wrist / presses a button is shown;

[0044] Figure 4 (c) According to some embodiments of the present application, a desktop diagram shown on the smartwatch after the user slides the screen is shown;

[0045] Figure 5 According to some embodiments of the present application, an interaction diagram of a screen switching control method provided by the present application is shown;

[0046] Figure 6 According to some embodiments of the present application, a schematic diagram of the coprocessor switching the display screen is shown;

[0047] Figure 7 (a) According to some embodiments of the present application, a schematic diagram showing the user clicking on the sports application on the smartwatch desktop is shown;

[0048] Figure 7 (b) According to some embodiments of the present application, an interface diagram showing the user entering the sports application after clicking on the sports application on the smartwatch desktop is shown;

[0049] Figure 8 According to some embodiments of the present application, an interaction diagram of another screen switching control method provided by the present application is shown;

[0050] Figure 9 According to some embodiments of the present application, a flowchart of a system interaction method provided by the present application is shown. Detailed implementation manners

[0051] Embodiments of the present application include, but are not limited to, a screen control method, a readable medium, and an electronic device of an electronic device.

[0052] To solve the problems of data loss and screen lag that occur when switching the screen in an electronic device with a dual-processor, embodiments of the present application provide a screen control method for an electronic device. Specifically, when the electronic device switches systems in some scenarios, the processing authority of the display screen is switched first, and after the switching of the processing authority of the display screen is completed, the processing authority of the touch screen is switched. For example, the electronic device is a dual-processor device with a main processor and a coprocessor. When the user wears the electronic device on the wrist and raises the wrist wearing the electronic device, the coprocessor of the electronic device will be awakened, and the coprocessor controls the display screen and the touch screen. When the user's finger slides on the screen of the electronic device, the electronic device first switches the processing authority of the display screen to the main processor, and after the user's current sliding operation is completed, the electronic device switches the processing authority of the touch screen to the main processor.

[0053] In related technical solutions, as shown in FIG. 1(a), at time t1, when the electronic device in the screen-off state receives a user's key operation, the coprocessor is awakened, and the coprocessor controls the display screen and the touch screen; 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 permissions of both the display screen and the touch screen to the main processor, and the main processor controls the display screen and the touch screen. This may cause the processing permission of the relevant information of the touch screen to be switched from the coprocessor to the main processor before the user's one complete touch operation is completed, resulting in partial loss of the user's touch data during the switching process of the touch screen, so that the main processor cannot fully receive the touch data, and thus cannot accurately parse the user's operation event corresponding to the user's touch data, and further cannot accurately respond to the user's operation event, resulting in a stuttering phenomenon during the screen switching process, affecting the user experience.

[0054] In some embodiments of the present application, as shown in FIG. 1(b), at time t1, when the electronic device in the screen-off state receives a user's key operation, the coprocessor is awakened, and the coprocessor controls the display screen and the touch screen; at time t2, when the user's finger starts to slide on the screen of the electronic device, the main processor is awakened, and the electronic device first switches the processing permission of the display screen to the main processor, and the main processor controls the display screen, while the processing permission of the touch screen remains in the coprocessor; at time t3, when the user's finger lifts from the screen of the electronic device, that is, after the current sliding operation ends, the electronic device then switches the processing permission of the touch screen to the main processor.

[0055] 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 while the processing permission of the touch screen remains in the coprocessor, the electronic device receives the touch data sent by the coprocessor by creating a virtual driver corresponding to the touch screen in the main processor (hereinafter simply referred to as the main virtual touch driver for simplicity of description). Thus, when the main processor has started to control the display screen to display images frame by frame and the touch screen has not completed the switching process, the main processor can receive the complete touch data corresponding to the user's current touch operation through the main virtual touch driver. Furthermore, the main processor can accurately parse the user's current operation event corresponding to the complete touch data received, and then accurately respond to the user's current operation event. This avoids the loss of data generated by the electronic device corresponding to the user's operation during the system switching process, thus preventing the problem of a non-smooth sliding experience for the user. It realizes seamless switching and improves the user experience.

[0056] It can be understood that when the processing authority of the touch screen is with the main processor, the main processor is responsible for processing the touch data corresponding to the user's touch operation generated by the electronic device; when the processing authority of the touch screen is with the coprocessor, the coprocessor is responsible for processing the touch data corresponding to the user's touch operation generated by the electronic device.

[0057] The embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0058] FIG. 1(c) shows an application scenario of a screen control method provided by the present application according to some embodiments of the present application. Among them, a smart watch 100 with a dual-processor is worn on the left wrist of the user. The smart watch 100 includes a main processor and a coprocessor, and the main processor and the coprocessor share a screen.

[0059] Among them, the main processor can run a high-performance operating system and process high-computation tasks with a low usage frequency. For example, the main processor runs the system, supporting functions such as navigation, phone calls, maps, chat, music playback, etc. The coprocessor can run a low-power lightweight system and process low-computation tasks with a high usage frequency. For example, the coprocessor runs a lightweight embedded operating system, is responsible for the acquisition and processing of sensor data, and supports functions such as time display, calculator, timer, alarm clock, heart rate measurement, step counting, altitude measurement, etc. By using the low-power coprocessor to replace the main processor to process tasks with a high usage frequency and a low computation amount, the power consumption is reduced, and the battery life of the smart watch 100 is improved.

[0060] In addition, the main processor and the coprocessor share a screen, and the screen includes a display screen and a touch screen. In some embodiments, the screen can be composed of a touch screen and a display screen stacked together. Based on the hardware architecture of the dual-processor, when the smart watch 100 is in the screen-off state, both the main processor and the coprocessor are in the sleep state, and the coprocessor controls the display screen and the touch screen; when the sleeping coprocessor detects a touch operation of the user on the touch screen or a key operation of the user, the processing authority of the display screen and the touch screen is switched to the main processor; during the process of the main processor controlling the display screen and the touch screen, if the main processor detects that the user clicks some applications that need to be processed by the coprocessor, the processing authority of the display screen and the touch screen is switched to the coprocessor again.

[0061] However, in the related art, during the switching process of the processing authority of the display screen and the touch screen between the main processor and the coprocessor, some of the user's touch data is missing, the user's sliding on the touch screen is not smooth, and the interface displayed to the user is stuck.

[0062] To solve the above problems, when the processing permissions of the display screen and touch screen of the smart watch 100 are switched between the main processor and the coprocessor, the smart watch 100 executes the screen switching control method provided by the embodiments of the present application, first switches the processing permission of the display screen, and then switches the processing permission of the touch screen after the switching of the processing permission of the display screen is completed. For example, during the process of switching the processing permissions of the display screen and the touch screen from the coprocessor to the main processor, the main processor receives the touch data sent by the coprocessor through the main virtual touch driver. Thus, it is ensured that during the switching process of the display screen and the touch screen, the smart watch 100 can completely obtain the data corresponding to the user's touch operation generated by the touch screen, so as to accurately respond to the user's touch operation and execute the corresponding tasks. While reducing the overall power consumption of the machine, seamless switching is achieved, improving the user experience.

[0063] It can be understood that the technical solution of the present application can be applied to various electronic devices with dual processors, display screens, and touch screens. 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 in which one or more processors are embedded or coupled, or other electronic devices capable of accessing the network.

[0064] In the following description, for the sake of simplicity, the smart watch 100 is taken as an example to introduce the technical solution of the present application.

[0065] Figure 2 According to some embodiments of the present application, the hardware structure block diagram of the smart watch 100 shown in FIG. 1 is shown. As Figure 2 shown, the smart watch 100 includes a touch screen 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 switching switch S1 of the touch screen 101, a switching switch S2 of the display screen 102, a power management system 109, a touch chip 110, etc.

[0066] The touch screen 101, which can also be called a touch panel, can collect the touch operations of the user on the screen, such as clicks and swipes. In some embodiments, the touch screen 101 can communicate with the main processor 103 and the coprocessor 104 through the I2C (Inter-Integrated Circuit) bus. The touch screen 101 can be a resistive, surface capacitive, projected capacitive, infrared, surface acoustic wave, flexural wave, active digital switch, or optical imaging touch screen.

[0067] The touch chip 110 is electrically connected to the touch screen 101. When the touch screen 101 is working, the touch chip 110 will scan the touch screen 101 at a certain scanning frequency to obtain the touch data of the user, such as the coordinates, pressure, area, and trimming value of the touch point and other data. Then, the obtained touch data of the user is reported to the main processor 103 or the coprocessor 104 for processing. After the main processor 103 or the coprocessor 104 processes the touch data, the images corresponding to the user's touch operations are displayed frame by frame.

[0068] The display screen 102 can be used to display the information input by the user, the prompt information provided to the user, various menus on the smart watch 100, the operation interfaces of various application programs on the smart watch 100, and so on. For example, the display screen 102 can be used to display the current time, the heart rate of the user measured by the health detection application, the number of steps of the user during exercise calculated by the sports application, and so on. In some embodiments, the display screen 102 can communicate with the main processor 103 and the coprocessor 104 through a Mobile Industry Processor Interface (MIPI) bus. The display screen 102 can include a display panel, and the display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or 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.

[0069] The main processor 103 includes multiple processing units and can run operating systems such as those used to process tasks related to applications such as navigation, phone calls, maps, chats, music playback, etc., and to process the data generated by the user's touch on the touch screen 101 in the case where the processing permissions of the touch screen 101 and the display screen 102 of the smart watch 100 are switched to the main processor 103.

[0070] The co-processor 104 can run a lightweight embedded operating system and is responsible for collecting and processing sensor data, handling tasks related to applications such as time display, calculator, timer, alarm clock, heart rate measurement, step counting, altitude measurement, etc., and handling data touched by the user on the touch screen 101 of the smart watch 100 when the processing permissions of the touch screen 101 and the display screen 102 of the smart watch 100 are switched to the co-processor 104. In some embodiments, the co-processor 104 may include processing modules or processing circuits such as a Digital Signal Processor (DSP), a Microcontroller Unit (MCU), a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), etc.

[0071] In some embodiments, the I2C interfaces of the main processor 103 and the co-processor 104 are connected to the I2C interface of the touch screen 101 through the switch S1, and the MIPI interfaces of the main processor 103 and the co-processor 104 are connected to the MIPI interface of the display screen 102 through the switch S2. Also, the main processor 103 and the co-processor 104 are connected to the switch S2 through a General-Purpose Input / Output (GPIO) interface (not shown in the figure). The main processor 103 sends a switching request for the display screen 102 to the co-processor 104 by raising or lowering the level of the GPIO interface. After the processing permission of the display screen 102 is completed, the processing permission of the touch screen 101 is switched.

[0072] The memory 105 is used to store software programs and data. The processor 203 executes various functional applications and data processing of the smart watch 100 by running the software programs and data stored in the memory 105. For example, in some embodiments of the present application, the memory 105 can store data such as air pressure and temperature collected by sensors during the user's exercise; store the user's sleep data, heart rate data, etc. At the same time, the memory 105 can also store the user's registration information, login information, etc.

[0073] The communication module 106 can be used to enable the smart watch 100 to communicate with other electronic devices and connect to the network through other electronic devices. For example, the smart watch 100 establishes a connection with electronic devices such as a mobile phone and a server through the communication module 106 for data transmission.

[0074] The sensor module 107 may include a proximity light sensor, a pressure sensor, a gyroscope sensor, a barometric 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, etc.

[0075] The power supply 108 is used to supply power to each component of the smartwatch 100. The power supply 108 may be a battery.

[0076] The power management system 109 is used to manage the charging of the power supply 108 and the power supply from the power supply 108 to other modules.

[0077] It can be understood that Figure 2 The illustrated smartwatch 100 is merely an exemplary structure for implementing the functions of the smartwatch 100 in the technical solution of the present application, and does not constitute a specific limitation on the smartwatch 100. In some other embodiments of the present application, the smartwatch 100 may include more or fewer components than Figure 2 those shown, or combine certain components, or split certain components, or have different component arrangements. Figure 2 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0078] Figure 3 According to some embodiments of the present application, there is shown Figure 2 the architecture diagrams of two operating systems (such as system and a lightweight embedded operating system) running under the control of the main processor 103 and the coprocessor 104 in the illustrated smartwatch 100. As Figure 3 shown, both of the two operating systems running on the main processor 103 and the coprocessor 104 of the smartwatch 100 include an application layer 302, a driver layer 301, and a device layer 300, so no distinction is made here, and the specific components in each layer are distinguished. Among them, the main processor 103 and the coprocessor 104 share the display screen 102, the touch screen 101, and the touch chip 110.

[0079] As Figure 3 shown, the device layer 300 includes the display screen 102, the touch screen 101, a switching switch S2 of the display screen 102, a switching switch S1 of the touch screen 101, the main processor 103, the coprocessor 104, and the touch chip 110, etc. For the functions of each device in the device layer 300, please refer to the above Figure 2 text description of the relevant part, and details are not described herein again.

[0080] The driver layer 301 is used to drive each device in the above-mentioned device layer 300 to implement functions such as read / write access and interrupt setting for each device.

[0081] As Figure 3As shown, in the lightweight embedded operating system running on the coprocessor 104, the driver layer 301 includes, but is not limited to, the co-touch driver 301a. The co-touch driver 301a can be a software program in the lightweight embedded operating system running on the coprocessor 104 for driving the touch screen 101 and capable of reading the touch data generated by the touch chip 110.

[0082] For example, in the embodiment shown in Fig. 1(b), at time t1, when the smartwatch 100 in the screen-off state receives a user's key operation, the coprocessor 104 is awakened, and the coprocessor 104 processes the relevant information of the display screen 102 and the touch screen 101. Among them, the relevant information of the display screen 102 and the touch screen 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 signaling, such as, in Figure 5 the embodiment shown, the wake-up instruction sent by the coprocessor application layer to the main processor 103; one or more types of messages, such as, in Figure 5 the embodiment shown, the interrupt message sent by the touch chip 110 to the co-touch driver 301a; 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 touch screen 101 through the co-touch driver 301a and reads the user's touch data.

[0083] It should be understood that in this article, "the processing authority of the display screen 102" refers to the processing authority of the relevant information of the display screen 101, and "the processing authority of the touch screen 101" refers to the processing authority of the relevant information of the touch screen 101.

[0084] In the system running on the main processor 103, the driver layer 301 includes, but is not limited to, the main virtual touch driver 301b, the main touch driver 301c, etc. for receiving and sending the user's touch data. Among them, the main touch driver 301c is a software program in the high-performance operating system running on the main processor 103 for driving the touch screen 101 and capable of reading Figure 3 the switched touch data generated by the touch chip 110 as shown in

[0085] The main virtual touch drive 301b is a virtual drive corresponding to the touch screen 101 created by the main processor 103 during initialization. It is used to receive touch data sent by the coprocessor application layer 302a when the processing authority of the display screen 102 has been switched to the main processor 103, while the processing authority of the touch screen 101 is still with the coprocessor 104.

[0086] 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 smart watch 100, the main processor 103 is awakened. The smart watch 100 first switches the processing authority of the display screen 102 to the main processor 103, and the main processor 103 processes the data of the display screen 102, while the processing authority of the touch screen 101 remains with the coprocessor 104. In the case where the processing authority of the display screen 102 has been switched to the main processor 103, while the processing authority of the touch screen 101 remains with the coprocessor 104, the main processor 103 reads the touch data sent by the coprocessor 104 through the main virtual touch drive 301b.

[0087] At time t3, when the user's finger is lifted from the screen of the smart watch 100, that is, after this sliding operation ends, the smart watch 100 switches the processing authority of the touch screen 101 to the main processor 103. The main processor 103 reads the touch data sent by the coprocessor 104 through the main touch drive 301c.

[0088] Continue to refer to Figure 3 In some embodiments, in the lightweight embedded operating system running on the coprocessor 104, the application layer 302 includes the coprocessor application layer 302a. The coprocessor application layer 302a is used to calculate the touch data read by the coprocessor touch drive 301a of the coprocessor 104 from the touch chip 110 when the processing authorities of the display screen 102 and the touch screen 101 are with the coprocessor 104, determine the type of the user's touch event corresponding to the touch data, and then respond through the application program according to the determined event type.

[0089] For example, in the embodiment shown in FIG. 1(b), at time t1, when the smart watch 100 in the screen-off state receives the user's key operation, the coprocessor 104 is awakened, and the coprocessor 104 processes the relevant information of the display screen 102 and the touch screen 101. The coprocessor 104 drives the touch screen 101 through the coprocessor touch drive 301a and reads the user's touch data. The coprocessor application layer 302a calculates the user's touch data reported by the coprocessor touch drive 301a, determines the type of the user's touch event corresponding to the touch data, and then responds through the application program according to the determined event type.

[0090] Correspondingly, in the In the system, the application layer 302 includes the main processor application layer 302b. The main processor application layer 302b is used to calculate the touch data read by the main touch drive 301c of the main processor 103 from the touch chip 110 when the processing permissions of the display screen 102 and the touch screen 101 are on the main processor 103, determine the touch event of the user corresponding to the touch data, and then respond through the application program according to the determined event.

[0091] 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 smart watch 100, the main processor 103 is awakened, and the smart watch 100 first switches the processing permission of the display screen 102 to the main processor 103. At time t3, when the user's finger is lifted from the screen of the smart watch 100, that is, after this sliding operation ends, the smart watch 100 switches the processing permission of the touch screen 101 to the main processor 103. The main processor 103 processes the relevant information of the display screen 102 and the touch screen 101. When the user clicks the screen again, the touch chip 110 generates touch data corresponding to the user's click operation. After the main touch drive 301c reads the touch data from the touch chip 110, it reports the touch data to the main processor application layer 302b. The main processor application layer 302b identifies the data of the user clicking on the screen, determines that the user's operation is to click on the icon of the music playback application, and then opens the music playback application.

[0092] The following will refer to Figures 2 to 6 to introduce in detail a screen control method provided by the solution of the present application in the scenario where the smart watch 100 is in the screen-off state, the user raises the wrist or presses a button to wake up the co-processor 104, and the user touches the screen with a finger.

[0093] For example, in Figure 4 (a) the shown embodiment, the smart watch 100 is in the screen-off state, and both the main processor 103 and the co-processor 104 are in the sleep state. In Figure 4 (b) the shown embodiment, when the user raises the wrist or presses the button 111 of the smart watch 100, the screen lights up, and the dial shows the time interface. The co-processor 104 is awakened, and the processing permissions of the display screen 102 and the touch screen 101 are on the co-processor 104. The co-processor 104 processes the touch data of the user generated by the touch chip 110, and after processing the touch data, controls the display screen 102 to display frame by frame. After the screen lights up, if no touch operation of the user is detected after the set time, the smart watch 100 turns off the screen again, and the main processor 103 and the co-processor 104 enter the sleep state again. If a touch operation of the user is detected within the set time, for example, the user is in Figure 4After swiping on the time interface displayed on the smartwatch 100 shown in (b), it enters the desktop of the smartwatch 100 shown in Figure 4 (c), which includes multiple application icons, such as a navigation icon, a sports application icon, a calculator icon, a weather icon, a settings icon, etc. Then, the smartwatch 100 switches the processing permissions of the display screen 102 and the touch screen 101 to the main processor 103 by executing the screen control method provided by the solution of this application, that is, the main processor 103 processes the touch data of the user generated by the touch chip 110, and after the main processor 103 processes the touch data, it controls the display screen 102 to display frame by frame.

[0094] Specifically, in some embodiments, as Figure 5 shown, when the processing permissions of the display screen 102 and the touch screen 101 are in the coprocessor 104, the process of the coprocessor 104 switching the processing permissions of the display screen 102 and the touch screen 101 to the main processor 103 when detecting a touch operation of the user includes the following steps:

[0095] Step 501: The smartwatch 100 generates touch data of the user. For example, in some embodiments, the user touches the screen, and the touch chip 110 generates data such as the coordinates, pressure, area, and trimming value of the user's touch point.

[0096] In addition, it can be understood that the touch operation of the user on the smartwatch 100 can be operations such as clicking, long pressing, double clicking, swiping, etc. For example, the user clicks on the touch screen 101 with a finger, or the user's finger slides from one position on the touch screen 101 to another position. The touch operation of the user on the smartwatch 100 can be performed by the user with a finger, or can be performed by the user with a stylus or other touch device.

[0097] Step 502: The touch chip 110 of the smartwatch 100 reports an interrupt message to the co-touch drive 301a of the coprocessor 104.

[0098] Among them, the interrupt message refers to a trigger signal generated when the touch chip 110 receives a touch operation of the user. If there is an interrupt message, it indicates that the user has started a touch operation on the touch screen 101, and then enters step 503; if there is no interrupt message, it indicates that the user has not performed a touch operation on the touch screen 101 and has not triggered the touch chip 110 to generate touch data of the user, and returns to step 501.

[0099] Step 503: After receiving the interrupt message, the co-touch drive 301a of the coprocessor 104 reads the touch data from the touch chip 110.

[0100] For example, in some embodiments, after the co-touch drive 301a of the co-processor 104 receives an interrupt message, it reads touch data from the touch chip 110 through the Serial Peripheral Interface (SPI).

[0101] Step 504: The co-touch drive 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 drive 301a, the co-processor application layer 302a executes Step 505.

[0102] Step 505: After receiving the touch data, the co-processor application layer 302a of the co-processor 104 sends a wake-up instruction to the main processor 103. After receiving the wake-up instruction, the main processor 103 simultaneously executes Step 506 and Step 507.

[0103] Step 506: After receiving the wake-up instruction, the main processor 103 powers on the internal MIPI interface. That is, it powers on the hardware interface connected to the switching switch S2 of the main processor 103 and the display screen 102, so that when the switching switch S2 of the display screen 102 is switched to the main processor 103, the main processor 103 can communicate with the MIPI interface of the display screen 102 through the MIPI interface.

[0104] Step 507: The main processor 103 sends an interrupt request to the co-processor 104, requesting to control the screen. That is, it requests the co-processor 104 to switch the processing permissions of the display screen 102 and the touch screen 101 to the main processor 103.

[0105] Step 508: After receiving the interrupt request sent by the main processor 103, the co-processor 104 responds to the interrupt request and first switches the processing permission of the display screen 102 to the main processor 103.

[0106] For example, as Figure 6 shown, the main processor 103 can pull up the GPIO interface level for sending the switching request, and the co-processor 104 also pulls up the GPIO interface level for switching the switching switch S2 controlling the display screen 102, then the switch S2 is switched to the main processor 103, that is, the display screen 102 is connected to the main processor 103 through the switch S2, and the main processor 103 processes the relevant information of the display screen 102. After the processing permission of the display screen 102 is switched from the co-processor 104 to the main processor 103, Step 509 is entered.

[0107] Step 509: The main virtual touch drive 301b of the main processor 103 reads the user's touch data from the co-processor application layer 302a. Among them, the user's touch data is the data generated by the touch chip 110 during the process that the processing permission of the display screen 102 is successfully switched from the co-processor 104 to the main processor 103, while the touch screen 101 has not completed the switch yet, that is, the processing permission of the display screen 102 has been switched to the main processor 103, and the processing permission of the touch screen 101 remains in the co-processor 104.

[0108] It should be noted that if the processing permission of the touch screen 101 is switched from the co-processor 104 to the main processor 103 before a user's complete touch operation is finished, for example, the user's finger or the touch device held by the user has not been lifted from the screen, it will cause partial loss of the user's touch data, resulting in the main processor 103 being unable to fully receive the touch data, thus unable to accurately parse the user's operation event corresponding to the user's touch data, and further unable to accurately respond to the user's operation event, resulting in a lag phenomenon during the screen switching process and affecting the user experience. Therefore, the co-processor 104 first switches the display screen 102 to the main processor 103. After the user's one touch operation is completed, that is, after the user's finger or the touch device held by the user is lifted from the screen, the touch screen 101 is then switched to the main processor 103, and step 512 is entered.

[0109] Step 510: The main virtual touch drive 301b of the main processor 103 reports the read user's touch data to the main processor application layer 302b.

[0110] That is, before the touch screen 101 completes the switch, the processing permission of the touch screen 101 remains in the co-processor 104. After the main processor 103 reads the user's touch data from the co-processor application layer 302a through the main virtual touch drive 301b, the read user's touch data is reported to the main processor application layer 302b for processing.

[0111] Step 511: After receiving the user's touch data, the main processor application layer 302b responds to the user's touch operation.

[0112] For example, in some embodiments, after receiving the user's touch data, the main processor application layer 302b calculates the touch data to determine the user's touch event corresponding to the touch data, and then responds according to the determined event.

[0113] 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 hard at the same position for a long time, the response corresponding to this operation is: forwarding, collecting, editing, deleting, multi-selecting, or referencing the information in the information record of the smart watch 100, etc.

[0114] Step 512: After the coprocessor 104 switches the display screen 102 to the main processor 103, it determines whether the current touch operation has ended. If it has ended, it indicates that the touch screen 101 can be switched to the main processor 103, and it proceeds to step 513; otherwise, it indicates that the touch screen 101 cannot be switched to the main processor 103 temporarily, and it returns to step 509.

[0115] In some embodiments, the coprocessor 104 can determine whether a touch operation has ended by judging whether 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 a set time threshold. For example, if the set time threshold for a sliding operation is 10 milliseconds, and 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, then the coprocessor 104 can determine that a sliding operation has ended; otherwise, the coprocessor 104 determines that a sliding operation has not ended.

[0116] Step 513: After the coprocessor 104 determines that the current touch has ended, it switches the touch screen 101 to the main processor 103.

[0117] For example, as Figure 2 shown, the coprocessor 104 controls the switching switch S1 of the touch screen 101 to switch to the main processor 103, so that the I2C interface of the touch screen 101 is connected to the I2C interface of the main processor 103, that is, the touch screen 101 is switched to the main processor 103.

[0118] Step 514: When the main processor 103 successfully controls the screen (that is, the main processor 103 processes the relevant information of the display screen 102 and the touch screen 101), that is, when the processing permissions of both the display screen 102 and the touch screen 101 have been successfully switched to the main processor 103, if the user touches the screen again, the main processor 103 will read the touch data corresponding to the user's again touch generated by the touch chip 110 from the touch chip 110.

[0119] If the user touches the screen again, the touch chip 110 of the smart watch 100 will report an interrupt message to the main touch drive 301c of the main processor 103. Among them, the interrupt message refers to the trigger signal generated when the touch chip 110 receives the user's again touch operation. If there is an interrupt message, it indicates that the user has started a touch operation on the touch screen 101, and it proceeds to step 515; if there is no interrupt message, it indicates that the user has not touched the touch screen 101 again and has not triggered the touch chip 110 to generate the user's again touch data, and the process ends.

[0120] Step 515: After the main touch drive 301c of the main processor 103 receives the interruption message of the user's re-touch, it reads the re-touch data from the touch chip 110.

[0121] For example, after the main touch drive 301c receives the interruption message, it reads the touch data from the touch chip 110 through the Serial Peripheral Interface (SPI).

[0122] Step 516: The main touch drive 301c of the main processor 103 reports the read re-touch data to the main processor application layer 302b for processing.

[0123] Step 517: After receiving the user's re-touch data, the main processor application layer 302b responds to the user's re-touch operation.

[0124] For example, after the main processor application layer 302b receives the user's re-touch data, it calculates the touch data to determine the user's touch event corresponding to the touch data, and then responds according to the determined event. For example, the main processor application layer 302b identifies the data of the user clicking on the screen, determines that the user's operation is to continuously long-press at different positions on the screen of the smart watch 100 with the user's finger, then the response corresponding to this operation is: the smart watch 100 drags the information record to roll over to display the information records of different time periods.

[0125] For example, when the user's finger Figure 4 slides on the time interface of the smart watch 100 shown in (b), the main processor 103 is awakened, and the smart watch 100 enters the desktop of the smart watch 100 shown in Figure 4 (c), which includes multiple application icons, such as a navigation icon, a sports application icon, a calculator icon, a weather icon, a settings icon, etc. During the process of the user's finger sliding on the time interface of the smart watch 100 shown in Figure 4 (b), the smart watch 100 switches the processing permissions of both the display screen 102 and the touch screen 101 to the main processor 103 by executing the screen control method shown in Figure 5 . After that, 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.

[0126] The following will introduce in detail the process in which, when the main processor 103 controls the screen (that is, the processing permissions of the display screen 102 and the touch screen 101 are in the main processor 103), after the user clicks on the icon of the settings application on the desktop of the smart watch 100, the main processor 103 switches the processing permissions of the display screen 102 and the touch screen 101 to the co-processor 104.

[0127] The set application refers to an application with a high usage frequency and a low computational load, such as a calculator, a timer, an alarm clock, and a sports application, which needs to be processed by the coprocessor 104. The coprocessor 104 replaces the main processor 103 to process the above-mentioned applications with a high usage frequency and a long time, which can reduce power consumption and improve the battery life of the smart watch 100.

[0128] For example, in Figure 7 In the embodiment shown in (a), the interface currently displayed by the smart watch 100 is a desktop, which includes icons of multiple applications, such as a navigation icon, an icon of a sports application, a calculator icon, a weather icon, a setting icon, etc. When the user clicks the icon 112 of the sports application, the smart watch 100 runs the sports application and enters the following screen: Figure 7 (b) shows the interface showing the number of kilometers and pace of the user's running. The interface showing the number of kilometers and pace of the user's running is currently displayed by the coprocessor 104 controlling the display screen 102. Since the sports application is run by the coprocessor 104, when the user clicks the icon 112 of the sports application, the display screen 102 and the touch screen 101 of the smart watch 100 need to be switched from the main processor 103 to the coprocessor 104.

[0129] In some embodiments, the applications executed by the main processor 103 and the coprocessor 104 are shown in Table 1.

[0130] Applications executed by the main processor 103 Applications executed by the coprocessor 104 Navigation Sports Phone Calculator Chat Clock Shopping Weather Tickets Scientific sleep Taking pictures Intelligent heart rate Mobile payment Blood oxygen saturation

[0131] Table 1

[0132] It should be noted that the applications listed in Table 1 such as navigation, phone, chat, shopping, ticket, photo, mobile payment, etc., which are executed by the main processor, are usually third-party applications; and the applications such as sports, calculator, clock, weather, scientific sleep, smart heart rate, and blood oxygen saturation listed in Table 1 are usually independently developed by the device manufacturer. It is understandable that the application names listed in Table 1 do not constitute a specific limitation on the present application solution.

[0133] The following will refer to Figure 1, Figure 2 , Figures 6 to 8 , a process is described in detail in which a user clicks on the icon 112 of a sports application on the desktop of a smart watch 100 , triggering the main processor 103 to switch the processing authority of the display screen 102 and the touch screen 101 to the coprocessor 104 .

[0134] As shown in Figure 1(b), at time t3, after the coprocessor 104 switches the processing authority of the touch screen 101 to the main processor 103, the main processor 103 processes the relevant information of the display screen 102 and the touch screen 101. At time t4, when the user clicks the icon 112 of the sports application on the desktop of the smart watch 100, the main processor 103 is triggered to send an interrupt request for screen switching to the coprocessor 104, requesting the coprocessor 104 to control the display screen 102 and the touch screen 101. After receiving the interrupt request from the main processor 103, the coprocessor 104 responds to the interrupt request, controls the switching switch S2 of the display screen 102 to connect to the coprocessor 104, and when the display screen 102 completes the switching, controls the switching switch S1 of the touch screen 101 to connect to the coprocessor 104. At this point, the main processor 103 switches the processing authority of the display screen 102 and the touch screen 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 Figure 8 As shown, after the user clicks the icon 112 of the sports application on the desktop of the smart watch 100, the process in which the main processor 103 switches the processing authority of the display screen 102 and the touch screen 101 to the coprocessor 104 includes the following steps:

[0135] Step 801: The sports application of the smart watch 100 sends a screen-off instruction to the main processor 103. After receiving the screen-off instruction, the main processor 103 executes steps 802 and 803 simultaneously.

[0136] Step 802: the main processor 103 completes powering off the internal MIPI interface, that is, the hardware interface connecting the main processor 103 and the switch S2 of the display screen 102 is powered off to disconnect the connection between the MIPI interface of the main processor 103 and the MIPI interface of the display screen 102.

[0137] Step 803 : the main processor 103 sends an interrupt request to the coprocessor 104 , requesting to switch screens, that is, the main processor 103 requests the coprocessor 104 to switch the processing rights of the display screen 102 and the touch screen 101 from the main processor 103 to the coprocessor 104 .

[0138] Step 804 : after receiving the interrupt request for switching screens, the coprocessor 104 responds and switches the processing authority of the display screen 102 from the main processor 103 to the coprocessor 104 .

[0139] For example, Figure 6As shown, the main processor 103 can pull down the GPIO interface level used by the main processor 103 to send a switching request, and the coprocessor 104 also pulls down the GPIO interface level for controlling the switching of the switching switch S2 of the display screen 102. Then, the switch S2 switches to the coprocessor 104, that is, the display screen 102 is connected to the coprocessor 104 through the switch S2, and the coprocessor 104 starts to process the relevant information of the display screen 102.

[0140] Step 805: After the coprocessor 104 waits for the display screen 102 to complete the switching, it switches the processing permission of the touch screen 101 from the main processor 103 to the coprocessor 104.

[0141] For example, as Figure 2 shown, the coprocessor 104 controls the switching switch S1 of the touch screen 101 to switch to the coprocessor 104, so that the I2C interface of the touch screen 101 is connected to the I2C interface of the coprocessor 104. Thus, the coprocessor 104 is connected to the touch screen 101. When the user touches the screen of the smart watch 100, the coprocessor 104 reads and processes the touch data corresponding to the user touch operation generated by the touch chip 110.

[0142] As described above, after introducing the Figure 5 process of switching the processing permission of the display screen 102 and the touch screen 101 from the coprocessor 104 to the main processor 103 as shown, and Figure 8 the process of switching the processing permission of the display screen 102 and the touch screen 101 from the main processor 103 to the coprocessor 104 as shown. The following will continue to take the smart watch 100 as an example to introduce a system interaction method provided by the present application. For example, the smart watch 100 realizes the switching between the main processor 103 and the coprocessor 104 in different scenarios by executing the system interaction method as Figure 9 shown.

[0143] It can be understood that when the smart watch 100 switches between the main processor 103 and the coprocessor 104, it can realize the switching of the display screen 102 and the touch screen 101 from the coprocessor 104 to the main processor 103 by executing, for example, the screen control method as Figure 5 shown above. And the smart watch 100 can realize the switching of the display screen 102 and the touch screen 101 from the main processor 103 to the coprocessor 104 by executing, for example, the screen control method as Figure 8 shown above. Specifically, as Figure 9 shown, the system interaction method provided by the present application includes the following steps:

[0144] Step 901: When the smart watch 100 in the sleep state detects a user's setting operation, the coprocessor 104 is awakened, and the coprocessor 104 processes information related to the display screen 102 and the touch screen 101.

[0145] Among them, the user's setting operation can be an operation such as the user raising the wrist wearing the smart watch 100, the user pressing the button of the smart watch 100, and the user instructing the smart watch 100 to wake up through a voice command. This application does not limit this.

[0146] Among them, the information related to the display screen 102 and the touch screen 101 includes but is not limited to: one or more types of data, for example, touch data corresponding to the user's touch operation; one or more types of signaling, for example, in Figure 5 In the illustrated embodiment, the wake-up instruction sent by the coprocessor application layer to the main processor; one or more types of messages, for example, in Figure 5 In the illustrated embodiment, the interrupt message sent by the touch chip 110 to the coprocessor touch drive 301a; 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.

[0147] Step 902: The coprocessor 104 determines whether there is a user's touch operation. If so, it indicates that the coprocessor 104 has detected the user's touch operation, and then enters step 903a; if not, it indicates that the coprocessor 104 has not detected the user's touch operation, and enters step 903b.

[0148] 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. Among them, the interrupt message is a trigger signal generated when the touch chip 110 receives the user's touch operation. If there is an interrupt message, it indicates that the user has started a touch operation on the touch screen 101, and then step 903a is performed; if there is no interrupt message, it indicates that the user has not performed a touch operation on the touch screen 101, and enters step 903b.

[0149] Step 903a: After the coprocessor 104 detects the user's touch operation, the main processor 103 is awakened, and the coprocessor 104 switches the processing authority of the display screen 102 and the touch screen 101 to the main processor 103.

[0150] For example, in some embodiments, the touch chip 110 generates touch data and sends an interrupt message to the co-touch drive 301a of the co-processor 104. After receiving the interrupt message, the co-touch drive 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 instruction to the main processor 103. After receiving the wake-up instruction, the main processor 103 completes internal power-on and sends an interrupt request to the co-processor 104, that is, the main processor 103 requests the co-processor 104 to switch the processing permissions of the display screen 102 and the touch screen 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. In the case where the display screen 102 has been switched but the touch screen 101 has not been switched yet, in order to avoid screen stuttering during the switching process, the co-processor application layer 302a sends the touch data to the main virtual touch drive 301b of the main processor 103. After the user's current touch ends, the co-processor 104 then switches the touch screen 101 to the main processor 103. For the detailed process, please refer to the text description of the screen control method part as described above Figure 5 and will not be elaborated here.

[0151] Step 903b: The smartwatch 100 times out and turns off the screen. After the co-processor 104 is awakened, if no user touch operation is detected within the set time, the co-processor 104 sends a screen-off instruction to the display screen 102 to control the display screen 102 to turn off. For example, after the co-processor 104 is awakened and controls the display screen 102 to light up, if no user touch operation is detected within 5 seconds, the co-processor 104 enters the sleep state, and at the same time the main processor 103 continues to maintain the sleep state, and the display screen 102 turns off.

[0152] Step 904: The main processor 103 determines whether there is an interaction operation for the set application. If so, it indicates that the main processor 103 has detected a user interaction operation for the set application, and proceeds to step 905; otherwise, it indicates that the main processor 103 has not detected a user interaction operation for the set application. In some embodiments, if the main processor 103 does not detect any user operation within the set time, it times out and turns off the screen.

[0153] Among them, the set application refers to applications such as calculators, timers, alarms, sports, etc. that need to be processed by the co-processor 104 and have a relatively high usage frequency and a relatively low computational workload. The co-processor 104 is used to process the aforementioned applications with a high usage frequency and a long time instead of the main processor 103, thereby reducing power consumption and improving the battery life of the smartwatch 100.

[0154] Step 905: The main processor 103 wakes up the coprocessor 104, and the main processor 103 switches the display screen 102 and the touch screen 101 to the coprocessor 104.

[0155] For example, when the user clicks on the sports application of the smart watch 100, the sports application of the smart watch 100 sends a screen-off instruction to the main processor 103. After receiving the screen-off instruction, the main processor 103 powers down the internal MIPI interface, that is, powers down the hardware interface connected to the switching switch S2 of the display screen 102 by the main processor 103, so as to disconnect the connection between the MIPI interface of the main processor 103 and the MIPI interface of the display screen 102. Moreover, the main processor 103 sends an interrupt request to the coprocessor 104, requesting to switch the screen, that is, requesting to switch the display screen 102 and the touch screen 101. After receiving the interrupt request for switching the screen, the coprocessor 104 responds and switches the display screen 102. After the display screen 102 completes the switching, the touch screen 101 is switched. For the detailed process, please refer to the text description of the screen control method part shown above. Figure 8 It will not be elaborated here.

[0156] The embodiments disclosed in the present application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device.

[0157] The program code can be applied to the input instructions to execute the various functions described in the present application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of the present application, the processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.

[0158] The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When necessary, the program code can also be implemented in assembly language or machine language. In fact, the mechanisms described in the present application are not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.

[0159] 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 or stored on one or more transient or non-transient 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 via a network or via other computer-readable media. Thus, machine-readable media 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, floppy disks, optical disks, optical discs, CD-ROMs, magneto-optical discs, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) in electrical, optical, acoustic, or other forms via the Internet. Thus, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).

[0160] In the drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or ordering may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Additionally, the inclusion of a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0161] It should be noted that each unit / module mentioned in the device embodiments of this application is a logical unit / module. Physically, a logical unit / module may be a physical unit / module, a part of a physical unit / module, or may be implemented as a combination of multiple physical units / module. The physical implementation manner of these logical units / module themselves is not the most important. The combination of the functions implemented by these logical units / module is the key to solving the technical problems proposed in this application. In addition, in order to highlight the innovative part of this application, the above device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that there are no other units / modules in the above device embodiments.

[0162] It should be noted that in the examples and the description of this patent, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one" does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0163] Although this application has been illustrated and described by reference to certain preferred embodiments thereof, those of ordinary skill in the art should understand that various changes may be made therein in form and detail without departing from the spirit and scope of this application.

Claims

1. A screen control method for an electronic device, the electronic device including a screen, a first processor, and a second processor, wherein the screen includes a display screen and a touch screen, characterized in that Including: A second processor of the electronic device processes relevant information of the display screen and the touch screen; When the electronic device detects that the user starts a first touch operation, it switches the processing authority of the display screen from the second processor to the first processor, and sends first touch data of the detected first touch operation to the first processor via the second processor, and When the electronic device detects the end of the first touch operation, it switches the processing authority of the touch screen from the second processor to the first processor.

2. The method according to claim 1, characterized in that, The electronic device includes a virtual touch drive. The electronic device sends the first touch data of the first touch operation to the virtual touch drive via the second processor, and the first processor receives the first touch data via the virtual touch drive.

3. The method according to claim 1 or 2, characterized in that, When the electronic device detects that the user starts a first touch operation, switching the processing authority of the display screen from the second processor to the first processor includes: When the electronic device detects that the user starts a first touch operation, it sends a wake-up instruction to the first processor through the second processor; After receiving the wake-up instruction, the first processor responds to the wake-up instruction and sends an interrupt request for screen switching to the second processor; After receiving the interrupt request for screen switching, the second processor responds to the interrupt request and switches the processing authority of the display screen from the second processor to the first processor.

4. The method according to any one of claims 1 to 3, characterized in that Further including: A first processor of the electronic device processes relevant information of the display screen and the touch screen; When the electronic device detects that the user has an interaction operation with a set application of the electronic device, it switches the processing authority of the display screen and the touch screen from the first processor to the second processor, and the second processor of the electronic device processes relevant information of the display screen and the touch screen.

5. The method according to claim 4, wherein When the electronic device detects that the user has an interaction operation with a set application of the electronic device, switching the processing authority of the display screen and the touch screen from the first processor to the second processor, and the second processor of the electronic device processes relevant information of the display screen and the touch screen includes: When the electronic device detects that the user has an interaction operation with a set application of the electronic device, it switches the processing authority of the display screen from the first processor to the second processor; After the electronic device determines that the processing authority of the display screen is switched from the first processor to the second processor, it switches the processing authority of the touch screen from the first processor to the second processor.

6. The method according to any one of claims 1 to 5, characterized in that Further including: A first processor of the electronic device processes relevant information of the display screen and the touch screen; When the electronic device detects that the user starts a second touch operation, it sends second touch data of the detected second touch operation to the first processor.

7. The method according to any one of claims 1 to 6, characterized in that The electronic device includes a display screen switching switch. The display screen switching switch is electrically connected to the display screen, and When the electronic device detects that the user starts a first touch operation, it switches the processing authority of the display screen from the second processor to the first processor in the following manner: When the electronic device detects that the user starts a first touch operation, it controls the display screen switching switch to disconnect from the second processor and controls the display screen switching switch to connect to the first processor.

8. The method according to any one of claims 1 to 6, characterized in that, The electronic device includes a touch screen switching switch, and the touch screen switching switch is electrically connected to the touch screen, and When the electronic device detects the end of the first touch operation, it switches the processing authority of the touch screen from the second processor to the first processor in the following manner: When the electronic device detects the end of the first touch operation, it controls the touch screen switching switch to disconnect from the second processor and controls the touch screen switching switch to connect to the first processor.

9. A readable medium, characterized in that, Instructions are stored on the readable medium, and when executed on the electronic device, the instructions cause the electronic device to execute the screen control method according to any one of claims 1-8.

10. An electronic device, characterized in that, including: a screen, the screen including a display screen and a touch screen; a memory for storing instructions executed by one or more processors of the electronic device, and a first processor, which is one of the processors of the electronic device; a second processor, which is one of the processors of the electronic device and is used to cooperate with the first processor to execute the screen control method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Electronic device and detection method

    CN107223232A

  • Processor awakening method and device, terminal and storage medium

    CN110347439A