System response method and apparatus, electronic device, computer readable storage medium
By detecting physical buttons in multiple system devices and activating the appropriate system response function, the problem of slow response speed in traditional methods is solved, and fast system switching and function response are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-20
- Publication Date
- 2026-03-31
AI Technical Summary
Traditional system response methods rely on clicking icons or virtual buttons on the screen, resulting in slow response times, especially when switching between different operating systems.
By detecting the triggering of physical buttons, the function of the currently running system can be directly obtained. If the corresponding function does not exist, the second system with the function is woken up and run to respond to the button operation, thus avoiding the step of virtual buttons calling the low-level driver through the upper-level application.
It improves system response speed and simplifies operation procedures, especially in multi-system devices where physical buttons can be used to directly trigger corresponding functions.
Smart Images

Figure CN115658159B_ABST
Abstract
Description
Technical Field
[0001] This application relates to computer technology, and in particular to a system response method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] With the development of computer technology, many smart devices have emerged, such as smartphones and smartwatches. These smart devices typically run multiple operating systems, such as Android and Linux. The functionalities of these different systems vary significantly. When a user needs to use a function from one of these systems, they must first switch systems before the desired function can be accessed.
[0003] However, traditional system response methods involve clicking icons or virtual buttons on the screen, which triggers the system response through an upper-level application that then calls a lower-level driver, resulting in slow response times. Summary of the Invention
[0004] This application provides a system response method, apparatus, electronic device, and computer-readable storage medium that can improve the speed of system response.
[0005] A system response method is applied to an electronic device comprising at least two systems, the electronic device being equipped with physical buttons, the method comprising:
[0006] When the physical button is detected to be triggered, the currently running first system is obtained, and it is determined whether the first system has the function corresponding to the physical button;
[0007] When the first system does not have the function corresponding to the physical button, a second system is determined from the at least two systems; the second system has the function corresponding to the physical button.
[0008] The second system is woken up and run, and the second system responds to the functions corresponding to the physical buttons.
[0009] A system response device is applied to an electronic device comprising at least two systems, the electronic device being equipped with physical buttons, comprising:
[0010] The judgment module is used to obtain the currently running first system and determine whether the first system has the function corresponding to the physical button when the physical button is detected to be triggered.
[0011] The second system determination module is used to determine a second system from the at least two systems when the first system does not have the function corresponding to the physical button; the second system has the function corresponding to the physical button.
[0012] The second system response module is used to wake up and run the second system, and respond to the functions corresponding to the physical buttons through the second system.
[0013] An electronic device includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the system response method described above.
[0014] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.
[0015] The aforementioned system response method, apparatus, electronic device, and computer-readable storage medium are applied to an electronic device comprising at least two systems, wherein the electronic device is equipped with physical buttons. When a physical button is detected to be triggered, the currently running first system can be directly obtained to determine whether the first system has the function corresponding to the physical button, avoiding the need for virtual buttons to respond through steps such as calling low-level drivers via upper-level applications. If the first system does not have the function corresponding to the physical button, a second system is determined from at least two systems. If the second system has the function corresponding to the physical button, the second system is woken up and run, and the function corresponding to the physical button is responded to through the second system, thereby improving the system response speed. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of an image processing circuit in one embodiment;
[0018] Figure 2 Here is a flowchart of a system response method in one embodiment;
[0019] Figure 3 This is a schematic diagram of the system response structure in one embodiment;
[0020] Figure 4 This is a schematic diagram of the system response structure in another embodiment;
[0021] Figure 5 This is a flowchart of the system switching process in one embodiment;
[0022] Figure 6 This is a flowchart illustrating the system response in another embodiment;
[0023] Figure 7 This is a flowchart illustrating the system response in another embodiment;
[0024] Figure 8 This is a structural block diagram of the system response device in one embodiment;
[0025] Figure 9 This is a schematic diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0027] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, the first system may be referred to as the second system, and similarly, the second system may be referred to as the first system. Both the first system and the second system are systems, but they are not the same system.
[0028] This application provides an electronic device. The electronic device includes an image processing circuit, which can be implemented using hardware and / or software components and may include various processing units that define an ISP (Image Signal Processing) pipeline. Figure 1 This is a schematic diagram of an image processing circuit in one embodiment. For example... Figure 1 As shown, for ease of explanation, only aspects of the image processing technology related to the embodiments of this application are shown.
[0029] like Figure 1 As shown, the image processing circuit includes a camera 120, a first system 130, and a second system 140. Images captured by the camera 120 are transmitted to the second system 140 for processing. After processing by the second system 140, the images can be stored in an image memory 150. The second system 140 can also read images stored in the image memory 150 for further processing. Alternatively, after processing by the second system 140, the images can be directly sent to a display 160 for display. The display 160 can also read images from the image memory 150 for display.
[0030] The second system 140 processes image data pixel by pixel in various formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits. The second system 140 can perform one or more image processing operations on the image data and collect statistical information about the image data. The image processing operations may be performed with the same or different bit depth precision.
[0031] Image memory 160 may be part of a memory device, a storage device, or a separate dedicated memory within an electronic device, and may include DMA (Direct Memory Access) features.
[0032] The second system 140 can perform one or more image processing operations on the image, such as temporal filtering. The processed image data can be sent to the image memory 150 for further processing before display. The second system 140 receives processed data from the image memory 150 and performs image data processing in the RGB and YCbCr color spaces on the processed data. The processed image data can be output to the display 170 for user viewing and / or further processed by a graphics engine or GPU (Graphics Processing Unit). Furthermore, the output of the second system 140 can also be sent to the image memory 160, and the display 160 can read image data from the image memory 150. In one embodiment, the image memory 150 can be configured to implement one or more frame buffers.
[0033] In one embodiment, when the physical button 110 is detected to be triggered, the electronic device obtains the currently running first system 130, determines whether the first system 130 has the function corresponding to the physical button 110; when the first system does not have the function corresponding to the physical button, it determines the second system and runs the second system 140 corresponding to the second system; and responds to the function corresponding to the physical button through the second system 140 of the second system.
[0034] In one embodiment, when the physical button corresponds to the function of taking a photo, the second system can call the camera 120 to take a photo, while the first system does not have a photo-taking function. When the physical button 110 is triggered, the second system 140 is run, and the camera 120 is called to take a photo. The second system 140 can store the captured photo in the image memory 150. When switching from the second system to the first system, the captured photo can be retrieved from the image memory 150 through the first system 130.
[0035] In one embodiment, before switching from the first system to the second system, the current interface of the first system displayed on the display screen 160 can be recorded; the first system is switched to the second system, and the function corresponding to the physical button is responded to by the second system; after the response is completed, the second system is switched back to the first system, and the display screen 160 is switched to the current interface of the first system.
[0036] Figure 2 This is a flowchart of a system response method in one embodiment. For example... Figure 2 As shown, the system response method includes steps 202 to 206. This system response method is applied to an electronic device comprising at least two systems, the electronic device being equipped with physical buttons.
[0037] Step 202: When a physical button is detected to be triggered, obtain the currently running first system and determine whether the first system has the function corresponding to the physical button.
[0038] An electronic device can have at least two operating systems installed, such as Android, iOS, or Linux. Different systems have different functions and operate differently. Each system can have a corresponding processor to handle the instructions specific to that system. This electronic device can be a terminal, server, watch, or bracelet, among other things.
[0039] The functions corresponding to physical buttons can be pre-set. For example, a physical button could correspond to at least one of the following functions: taking a photo, providing a compass, positioning, voice detection, or emergency call. When a physical button is triggered, the currently running primary system is retrieved. In an electronic device, there can be only one currently running primary system, or there can be multiple primary systems running simultaneously. When there are multiple primary systems running, the primary system the user is currently interacting with is the foreground primary system, while the others are background primary systems.
[0040] In an electronic device comprising multiple systems, the function corresponding to a physical button can exist in one system or in multiple systems. For example, if the physical button corresponds to a camera function, and the electronic device comprises three systems, system A has the camera function corresponding to the physical button, system B does not have the camera function corresponding to the physical button, and system C has the camera function corresponding to the physical button. When the physical button is triggered, the electronic device determines whether the currently running first system has the function corresponding to the physical button.
[0041] Physical buttons refer to physical buttons, as opposed to virtual buttons. In electronic devices with only virtual buttons, if a user needs to trigger a virtual button to use its corresponding function, the screen must first be turned on; while physical buttons can be triggered at any time, including when the screen is off, which can improve the speed at which physical buttons are triggered.
[0042] On the other hand, in electronic devices with only virtual buttons, after a user triggers a virtual button, the virtual button needs to go through an upper-layer application and then call a lower-layer driver to obtain the corresponding instruction, which results in a long delay. When a physical button is triggered, an interrupt instruction is generated immediately to respond, shortening the delay.
[0043] Step 204: When the first system does not have a function corresponding to the physical button, determine the second system from at least two systems; the second system has a function corresponding to the physical button.
[0044] If the function corresponding to a physical button does not exist in the currently running first system, then the currently running first system cannot respond to the function corresponding to that physical button. Therefore, it is necessary to determine the second system that has the function corresponding to that physical button.
[0045] Specifically, the electronic device pre-stores identifiers of the functions existing in each system. When a physical button is triggered, the identifier of the function corresponding to that physical button is matched one by one with the identifiers of the functions existing in each system until a matching system is selected as the second system. There can be one or more second systems, and it is not limited to this.
[0046] Step 206: Wake up and run the second system, and respond to the functions corresponding to the physical buttons through the second system.
[0047] Optionally, the running second system can run in the foreground or in the background. The second system contains the function corresponding to the physical button, thus allowing the second system to respond to the function corresponding to the physical button.
[0048] For example, the physical button might correspond to the function of taking a photo, allowing the second system to access the camera for this purpose. Therefore, when the physical button is triggered, the second system is activated and runs, accessing the camera to take a photo and fulfilling the function corresponding to the physical button.
[0049] The aforementioned system response method, apparatus, electronic device, and computer-readable storage medium are applied to an electronic device comprising at least two systems, wherein the electronic device is equipped with physical buttons. When a physical button is detected to be triggered, the currently running first system can be directly obtained to determine whether the first system has the function corresponding to the physical button, avoiding the need for virtual buttons to respond through steps such as calling low-level drivers via upper-level applications. If the first system does not have the function corresponding to the physical button, a second system is determined from at least two systems. If the second system has the function corresponding to the physical button, the second system is woken up and run, and the function corresponding to the physical button is responded to through the second system, thereby improving the system response speed.
[0050] In one embodiment, waking up and running the second system includes: sending a wake-up command to the second system through the first system; the wake-up command is used to wake up the second system and initialize the functions corresponding to the physical buttons; and running the second system when it is woken up.
[0051] The second system possesses the function corresponding to the physical button, but it is not currently running. Therefore, it needs to be woken up first. A wake-up command is sent to the second system from the currently running first system. Upon waking up the second system, the function corresponding to the physical button is initialized. For example, if the function corresponding to the physical button is taking a picture, initializing the function includes steps such as calling the camera, adjusting various camera parameters, and obtaining the camera's data storage location.
[0052] When the second system is woken up, the function corresponding to the physical button is also initialized, and the second system runs to respond to the function corresponding to the physical button.
[0053] In this embodiment, the second system is woken up by sending a wake-up command through the currently running first system, and the function corresponding to the physical button is initialized at the same time, which can improve the speed of waking up the second system and activating the function corresponding to the physical button.
[0054] In one embodiment, the method further includes: acquiring each currently running system; and controlling each currently running system to connect to a physical button via an analog switch.
[0055] An analog switch is a virtual switch that can turn the system on or off. Before a physical button is triggered, the currently running system is the first system. The analog switch controls the connection between the first system and the physical button, so when the physical button is triggered, the first system can receive the command generated by the physical button being triggered.
[0056] After a physical button is triggered, if the first system does not have the function corresponding to the physical button, a second system is determined from at least two systems and run. The currently running system also includes the second system. An analog switch controls the connection between the second system and the physical button, so that when the physical button is triggered again, the second system can continue to respond to the function corresponding to that physical button.
[0057] In one embodiment, such as Figure 3 As shown, the physical button 310 corresponds to the function of taking a picture. The second system 304 can call the camera 302 to take a picture, while the first system does not have a picture-taking function. The currently running system is the first system 306, which is connected to the physical button via the analog switch 308. When the physical button 310 is triggered, the first system 306 receives the trigger command and determines whether the first system has the function corresponding to the physical button. If the first system does not have the function corresponding to the physical button, the second system 304 is run, and the camera 302 is called to take a picture via the second system. The analog switch 308 is used to control the connection between the currently running second system 304 and the physical button 310. When the physical button 310 is triggered again, the camera 302 can be called directly via the second system 304 to take a picture.
[0058] In another embodiment, such as Figure 4 As shown, the physical button 408 corresponds to the function of taking a picture. The first system 404 can call the camera 402 to take a picture. The second system 406 does not have the function corresponding to the physical button 408. The physical button is connected to the first system 404. When the physical button 408 is triggered, the first system 404 can be run directly and the camera 402 can be called to take a picture.
[0059] In one embodiment, such as Figure 5 As shown, before running the second system, the following is also included:
[0060] Step 502: Record the current interface of the first system.
[0061] Generally, the current interface of the first running system is the interface the user is currently interacting with. Recording the current interface of the first system can generate a log, storing the address of the current interface in the log. When returning to the current interface of the first system, the address of the current interface in the log is retrieved, and the user is redirected to the current interface of the first system based on that address.
[0062] The second system is run, and it responds to the functions corresponding to the physical buttons, including:
[0063] Step 504: Switch the first system to the second system and use the second system to respond to the functions corresponding to the physical buttons.
[0064] The system is switched from the first system to the second system, meaning the system running in the foreground is the second system. Furthermore, the display interface on the electronic device's screen can be either the interface corresponding to the second system or the interface corresponding to the function of the physical button. For example, if the first system is a Linux system and does not have the function to call the camera to take pictures, while the second system is an Android system and does have the function to call the camera to take pictures, then the physical button corresponds to the photo-taking function. Before the physical button is triggered, the display interface on the electronic device's screen is the interface of the first system; after the physical button is triggered, the system is switched from the first system to the second system, and the display interface on the electronic device's screen can be the preview image captured by the camera.
[0065] Step 506: After the second system completes the function corresponding to the physical button, switch the second system to the first system and return to the current interface of the first system.
[0066] Specifically, after the second system completes the function corresponding to the physical button, the electronic device switches from the second system to the first system, queries the address of the current interface of the first system before the switch, and returns the current interface of the first system based on that address. The address of the current interface can be stored in a log.
[0067] In this embodiment, the current interface of the first system is recorded. When the first system switches to the second system, after the second system completes the function corresponding to the physical button, it can switch back to the first system and return to the current interface of the first system. It can accurately return to the interface operated by the user before the physical button was triggered.
[0068] In one embodiment, the method further includes: storing the data generated by responding to the function corresponding to the physical button in a first system; after switching the current system to the first system, when a query command for data is detected, querying the data through the first system.
[0069] Understandably, during the process of the second system responding to the function corresponding to the physical button, several data points will be generated. For example, if the function corresponding to the physical button is to take a photo, data such as the preview image, the captured image, the shooting location, the captured image size, and the exposure time will be generated. Similarly, if the function corresponding to the physical button is voice recognition, data such as the user's input voice during the voice recognition process and the result of the voice recognition will be generated.
[0070] In one embodiment, the electronic device can send data generated by the second system in response to the function corresponding to the physical button, along with a storage instruction, to the first system; the first system then stores the data in its storage area according to the storage instruction. The storage instruction instructs the first system to store the data in its storage area.
[0071] After the second system switches to the first system, the data generated by the function corresponding to the physical button can be queried through the first system, thus realizing the acquisition of data generated by the second system within the first system.
[0072] In one embodiment, the electronic device can store the data generated by the second system in response to the function corresponding to the physical button in a common storage area; after switching the second system to the first system, when a query command for data is detected, the data is queried from the common storage area through the first system.
[0073] A shared storage area refers to an area in an electronic device where all systems can store and retrieve data. The electronic device stores data generated by the second system in response to the function corresponding to a physical button in this shared storage area. When the second system switches to the first system, the data can be retrieved from this shared storage area through the first system, thus enabling the retrieval of data generated by the second system within the first system.
[0074] In one embodiment, the method further includes: when the first system has a function corresponding to a physical button, responding to the function corresponding to the physical button.
[0075] When the first system has functions corresponding to physical buttons, the functions corresponding to physical buttons can be responded to directly through the first system.
[0076] In one embodiment, such as Figure 6 As shown, in step 602, when the physical button is triggered, step 604 is executed to determine whether the currently running first system has a function corresponding to the physical button. If the determination is negative, step 606 is executed to record the current interface of the first system; step 608 is executed to wake up and run the second system; step 610 is executed to respond to the function corresponding to the physical button through the second system; after the second system completes the response to the function corresponding to the physical button, step 612 is executed to return to the current interface of the first system. If the determination is positive, step 614 is executed to respond to the function corresponding to the physical button through the first system; after the first system completes the response to the function corresponding to the physical button, step 616 is executed to return to the current interface of the first system.
[0077] In one embodiment, such as Figure 7As shown in step 702, when the physical button is triggered, step 704 is executed to determine whether the currently running first system has the function corresponding to the physical button. If the determination is no, step 706 is executed to wake up the second system 706. Specifically, the second system can be woken up in the background through the dedicated control pin of the first system, and the function corresponding to the physical button can be initialized, such as initializing the camera. After the second system is woken up, step 708 is executed to return a signal to the first system; step 710 is executed to record the current interface of the first system; step 712 is executed to switch the currently running first system to the second system. Specifically, the display screen operation of the first system can be stopped first, and a screen operation handover signal can be fed back to the second system; after receiving the screen operation handover signal, the second system starts to transmit data to the display screen, and the display screen displays the data of the second system, such as the preview screen of the camera, completing the switch from the currently running first system to the second system, indicating that the second system is running.
[0078] Execute step 714 to respond to the function corresponding to the physical button through the second system; after the second system completes the response to the function corresponding to the physical button, execute step 716 to return to the current interface of the first system. If the determination is yes, execute step 718 to respond to the function corresponding to the physical button through the first system; after the first system completes the response to the function corresponding to the physical button, execute step 720 to return to the current interface of the first system.
[0079] In one embodiment, when at least two systems in the electronic device are operational, the CPU utilization of each system is detected through the first system. When the first system does not have a function corresponding to a physical button, a second system is determined from the at least two systems, including: when the first system does not have a function corresponding to a physical button, determining at least one candidate system with a function corresponding to a physical button from the at least two systems; and determining the second system from the at least one candidate system based on the CPU utilization of each candidate system.
[0080] It is understandable that every system has a corresponding processor, namely CPU (central processing unit). The higher the CPU utilization, the more tasks the system needs to process.
[0081] When the first system lacks a function corresponding to a physical button, the electronic device determines at least one candidate system from at least two systems that has a function corresponding to a physical button. When only one candidate system is determined, that candidate system can be directly designated as the second system. When at least two candidate systems are determined, the second system is selected from each candidate system based on the CPU utilization rate of each candidate system. Optionally, the candidate system with the lowest CPU utilization rate can be selected as the second system, or the candidate system with the second lowest CPU utilization rate can be selected as the second system; it is not limited to this.
[0082] In this embodiment, the second system is determined based on the CPU utilization rate. A candidate system with a suitable CPU utilization rate can be selected as the second system, which can balance the resources of each system.
[0083] It should be understood that, although Figure 2 and Figure 5 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2 and Figure 5 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0084] Figure 8 This is a structural block diagram of a system response device according to one embodiment. Figure 8 As shown, a system response device 800 is provided, applied to an electronic device including at least two systems. The electronic device is equipped with physical buttons and includes: a judgment module 802, a second system determination module 804, and a second system response module 806, wherein:
[0085] The judgment module 802 is used to obtain the currently running first system and determine whether the first system has the function corresponding to the physical button when the physical button is detected to be triggered.
[0086] The second system determination module 804 is used to determine the second system from at least two systems when the first system does not have a function corresponding to the physical button; the second system has a function corresponding to the physical button.
[0087] The second system response module 806 is used to wake up and run the second system, and respond to the functions corresponding to the physical buttons through the second system.
[0088] The aforementioned system response device is applied to an electronic device comprising at least two systems, the electronic device being equipped with physical buttons. When a physical button is detected to be triggered, the device can directly obtain the currently running first system to determine whether the first system has the function corresponding to the physical button, avoiding the need for virtual buttons to respond through steps such as calling low-level drivers via upper-level applications. If the first system does not have the function corresponding to the physical button, the device determines the second system from at least two systems. If the second system has the function corresponding to the physical button, the device wakes up and runs the second system, responding to the function corresponding to the physical button through the second system, thereby improving the system response speed.
[0089] In one embodiment, the second system response module 806 is further configured to send a wake-up command to the second system through the first system; the wake-up command is used to wake up the second system and initialize the functions corresponding to the physical buttons; when the second system is woken up, the second system is run.
[0090] In one embodiment, the system response device 800 further includes a connection module for acquiring the currently running systems and controlling each currently running system to connect to a physical button via an analog switch.
[0091] In one embodiment, the system response device 800 further includes a recording module for recording the current interface of the first system. Running the second system and responding to the functions corresponding to the physical buttons through the second system includes: switching from the first system to the second system and responding to the functions corresponding to the physical buttons through the second system; after the second system completes responding to the functions corresponding to the physical buttons, switching back to the first system and returning to the current interface of the first system.
[0092] In one embodiment, the system response device 800 further includes a storage module for storing data generated by the function corresponding to the physical button in the first system; after switching from the second system to the first system, when a query command for data is detected, the data is queried through the first system.
[0093] In one embodiment, the system response device 800 further includes a first system response module, which is used to respond to the function corresponding to the physical button when the first system has a function corresponding to the physical button.
[0094] In one embodiment, the second system determination module 804 is further configured to detect the CPU utilization of each system through the first system when at least two systems in the electronic device are in operation. When the first system does not have a function corresponding to a physical button, determining the second system from the at least two systems includes: when the first system does not have a function corresponding to a physical button, determining at least one candidate system with a function corresponding to a physical button from the at least two systems; and determining the second system from the at least one candidate system based on the CPU utilization of each candidate system.
[0095] The division of the various modules in the above system response device is only for illustrative purposes. In other embodiments, the system response device can be divided into different modules as needed to complete all or part of the functions of the above system response device.
[0096] Figure 9 This is a schematic diagram of the internal structure of an electronic device in one embodiment. For example... Figure 9 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor provides computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. The non-volatile storage media stores an operating system and computer programs. The computer programs can be executed by the processor to implement a system response method provided in the following embodiments. The internal memory provides a cached runtime environment for the operating system computer programs in the non-volatile storage media. The electronic device may be a mobile phone, tablet computer, personal digital assistant, or wearable device, etc.
[0097] The implementation of each module in the system response device provided in this application embodiment can be in the form of a computer program. This computer program can run on a terminal or server. The program modules constituted by this computer program can be stored in the memory of the terminal or server. When the computer program is executed by a processor, it implements the steps of the method described in the embodiments of this application.
[0098] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of a system response method.
[0099] A computer program product containing instructions that, when run on a computer, cause the computer to perform a system response method.
[0100] Any references to memory, storage, database, or other media used in the embodiments of this application may include non-volatile and / or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0101] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A system response method, characterized by, The method is applied to an electronic device comprising at least two systems, and the electronic device is configured with a physical button, and the method comprises: when detecting that the physical button is triggered, obtaining a first system currently running, and determining whether the physical button corresponding function exists in the first system; the physical button corresponding function exists in one system or in multiple systems respectively; when the first system does not exist the physical button corresponding function, determining a second system from the at least two systems; the second system exists the physical button corresponding function; waking up and running the second system, and responding to the physical button corresponding function through the second system; when the first system exists the physical button corresponding function, responding to the physical button corresponding function.
2. The method of claim 1, wherein, The method further comprises: obtaining each system currently running; connecting each system currently running with the physical button through an analog switch.
3. The method according to any one of claims 1 to 2, characterized in that, The electronic device has a display screen, and the method further comprises: under the condition that the second system is woken up, the first system stops display screen operation, and feeds back a screen operation handover signal to the second system; in response to the screen operation handover signal, the second system transmits data to the display screen, the display screen displays the data of the second system, indicating that the electronic device currently runs the second system.
4. The method of claim 2, wherein, The method further comprises: recording a current interface of the first system; The method further comprises:
5. The method of claim 1, wherein, switching the first system to the second system, and responding to the physical button corresponding function through the second system; after the second system responds to the physical button corresponding function, switching the second system to the first system, and returning to the current interface of the first system. The method further comprises: storing data generated in response to the physical button corresponding function into the first system; after switching the second system to the first system, when detecting a query instruction for the data, querying the data through the first system.
6. The method of claim 5, wherein, The method further comprises: storing data generated in response to the physical button corresponding function in a common storage area; after switching the second system to the first system, when detecting a query instruction for the data, querying the data from the common storage area through the first system.
7. The method of claim 5, wherein, The method further comprises: the physical button corresponding function can be set in advance; after the second system is woken up and run, the system currently running further comprises the second system. The method further comprises:
8. The method of any of claims 1, 2, or 5, wherein, when the at least two systems in the electronic device are in a working state, detecting a CPU usage rate of each system through the first system; 9. The method of any of claims 1, 2, or 5, wherein, The second system is determined from the at least two systems when the first system does not have the function corresponding to the physical button. When the first system does not have the function corresponding to the physical button, at least one candidate system having the function corresponding to the physical button is determined from the at least two systems. The second system is determined from the at least one candidate system according to the CPU usage of each candidate system.
10. A system response device characterized by, The device is applied to an electronic device including at least two systems, and the electronic device is configured with a physical button. A judging module is configured to, when detecting that the physical button is triggered, acquire a first system currently running, and determine whether the first system has a function corresponding to the physical button; the function corresponding to the physical button exists in one system or exists in multiple systems respectively. A second system determining module is configured to, when the first system does not have the function corresponding to the physical button, determine a second system from the at least two systems; the second system has the function corresponding to the physical button. A second system responding module is configured to wake up and run the second system, and respond to the function corresponding to the physical button through the second system. A first system responding module is configured to, when the first system has the function corresponding to the physical button, respond to the function corresponding to the physical button. 11.An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to make the processor execute the steps of the system responding method according to any one of claims 1 to 9.
12. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 9.
13. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Independent camera system-based shooting method and mobile terminal
CN105338249A
System response method and device, electronic equipment and computer readable storage medium
CN112825021A