Switching method, electronic device, computer-readable storage medium, and computer program product

By maintaining the display of the last frame during system switching of electronic devices and completing the switching within the period of software and hardware interruption signals, the problem of display abnormalities during dual-system switching is solved, achieving smooth system switching and highly fluid display effects.

WO2026066592A1PCT designated stage Publication Date: 2026-04-02ZTE CORP
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-07-25
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

Electronic devices often experience display anomalies such as black frames and screen distortion during the switching between dual systems, resulting in choppy screen display.

Method used

During system switching, the display unit continues to display the last frame of the image, and the switching is completed within the time interval between the generation of software interrupt signal and hardware interrupt signal to ensure the complete transmission of display data. Data interruption and signal loss are avoided by switching the control and data switching units.

Benefits of technology

It effectively prevents display anomalies such as black frames and screen tearing, improves the smoothness of the display and user experience, and reduces visual discomfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025110591_02042026_PF_FP_ABST
    Figure CN2025110591_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a switching method, an electronic device, a computer-readable storage medium, and a computer program product. The switching method is applied to an electronic device having a first system and a second system, and comprises: when a currently running system is the first system, in response to a first switching instruction, switching the currently running system from the first system to the second system on the basis of a first target switching period; wherein the first target switching period is a period between a first node that generates a first software interrupt signal and a second node that generates a first hardware interrupt signal, the first software interrupt signal is generated in response to the first system completing transmission of one frame of first display data, the first hardware interrupt signal is generated in response to a display unit completing display of a first display screen image, and the first display image is an image corresponding to the first display data.
Need to check novelty before this filing date? Find Prior Art

Description

Switching method, electronic device, computer-readable storage medium and computer program product

[0001] Related applications

[0002] The present application claims priority to Chinese Patent Application No. 202411385765.1, filed on September 30, 2024, the contents of which are incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to the field of communication technology, in particular to a switching method, an electronic device, a computer-readable storage medium and a computer program product. BACKGROUND

[0004] With the increasing requirements of system computing power, power consumption, security performance and the like, the architecture design of electronic devices is becoming more and more delicate and complex. In order to balance the support and expansion of electronic device product functions and good endurance performance, dual operating systems (one processor corresponding to one operating system) are also being applied more and more.

[0005] However, due to the dual system of the electronic device, the screen of the electronic device often appears abnormal display phenomena such as black frame and screen flower during system switching, resulting in unsmooth picture display. SUMMARY

[0006] The main purpose of the embodiments of the present application is to provide a switching method, an electronic device, a computer-readable storage medium and a computer program product.

[0007] To achieve the above-mentioned purpose, the embodiments of the present application provide a switching method, which is applied to an electronic device having a first system and a second system, and the method comprises: in the case that a currently running system is the first system, in response to a first switching instruction, switching the currently running system from the first system to the second system based on a first target switching period, wherein during the system switching to the second system, a display unit of the electronic device keeps displaying a first display picture, and the first display picture is a picture of the last frame displayed before the first system performs system switching; wherein the first target switching period is a period between a first node of generating a first software interrupt signal and a second node of generating a first hardware interrupt signal, the first software interrupt signal is generated in response to the first system transmitting a frame of first display data, the first hardware interrupt signal is generated in response to the display unit displaying a first display picture, and the first display picture is a picture corresponding to the first display data.

[0008] In addition, to achieve the above object, the embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a switching program stored in the memory and executable on the processor, and the switching program implements the steps of the switching method when executed by the processor.

[0009] In addition, to achieve the above object, the embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a switching program, and the switching program implements the steps of the switching method when executed by a processor.

[0010] In addition, to achieve the above object, the embodiment of the present application further provides a computer program product, wherein the computer program product comprises a switching program, and the switching program implements the steps of the switching method when executed by a processor. BRIEF DESCRIPTION OF DRAWINGS

[0011] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from the structures shown in the drawings without creative labor.

[0013] Fig. 1 is a flow diagram provided by the switching method embodiment one of the present application;

[0014] Fig. 2 is a flow diagram provided by the switching method embodiment two of the present application;

[0015] Fig. 3 is a double system switching structure framework diagram in the related art;

[0016] Fig. 4 is a double system switching structure framework improvement diagram provided by a specific embodiment of the present application;

[0017] Fig. 5 is a first control switch switching diagram provided by a specific embodiment of the present application;

[0018] Fig. 6 is a second control switch switching diagram provided by a specific embodiment of the present application;

[0019] Fig. 7 is a first data switch switching diagram provided by a specific embodiment of the present application;

[0020] Fig. 8 is a second data switch switching diagram provided by a specific embodiment of the present application;

[0021] FIG. 9 is a schematic diagram of data switch on according to an embodiment of the present application;

[0022] FIG. 10 is a schematic diagram of data switch off according to an embodiment of the present application;

[0023] FIG. 11 is a timing sequence diagram of switching from SYS-A to SYS-B according to an embodiment of the present application;

[0024] FIG. 12 is a timing sequence diagram of switching from SYS-B to SYS-A according to an embodiment of the present application;

[0025] FIG. 13 is a schematic diagram of a device structure of a hardware running environment involved in the switching method according to an embodiment of the present application.

[0026] The purposes, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0027] The exemplary embodiments will be described in detail herein with reference to the accompanying drawings. The following description is with reference to the drawings, in which like numerals represent like elements, unless otherwise described in detail. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.

[0028] It should be understood that the specific embodiments described herein merely serve to explain the technical solutions of the present application and do not limit the present application.

[0029] Currently, in the process of switching between two systems of an electronic device, the screen of the electronic device often displays abnormal phenomena such as black frames and screen flicker, resulting in unsmooth picture display.

[0030] The applicant has spent a lot of manpower and material resources to conduct a large number of researches and experiments, and found that the problem is mainly caused by the fact that the display data packet is interrupted during the transmission of a frame of data, and when switching to another processor control, the screen cannot receive a complete frame of display data. That is, the first half or the second half of a frame of image frame appears all-zero data, resulting in abnormal combination of the first half and the second half of a frame of image frame.

[0031] For example, the electronic device includes system A and system B. When the switching occurs during the transmission of a frame of data of system A or system B, the incomplete transmission data part will be truncated or recorded as all-zero value, resulting in the situation that the first half frame or the second half frame of the display content is missing, and further causing screen display abnormality.

[0032] Based on this, the main solution of the embodiment of the present application is a switching method, the method is applied to an electronic device with a first system and a second system, the method comprises: in the case that the currently running system is the first system, in response to a first switching instruction, switching the currently running system from the first system to the second system based on a first target switching period, wherein during the system switching to the second system, the display unit of the electronic device keeps displaying a first display picture, the first display picture is the picture of the last frame displayed before the first system performs system switching; wherein the first target switching period is the period between a first node of generating a first software interrupt signal and a second node of generating a first hardware interrupt signal, the first software interrupt signal is generated in response to the first system transmitting a frame of first display data, the first hardware interrupt signal is generated in response to the display unit displaying a first display picture, and the first display picture is the picture corresponding to the first display data.

[0033] The embodiment of the present application avoids the system switching node occurring in the transmission interval between two frames of complete display data of the first system, thereby avoiding the incomplete transmission data part being truncated or recorded as all zero values in a frame of complete display data (if the first half or the second half of a frame of image frame appears all zero data, it often leads to abnormal combination of the first half and the second half of a frame of image frame, and generates a flower frame phenomenon), and the occurrence of the situation that the first half frame or the second half frame of the display content is missing, effectively preventing the display abnormal phenomena such as black frame and flower screen, improving the smoothness of picture display, and further solving the technical problem of display abnormality such as black frame and flower screen caused by the switching between the two systems in the related art.

[0034] In addition, the embodiment of the present application can ensure that the display unit does not appear black frame during system switching by keeping the display unit of the electronic device displaying the first display picture during system switching, and the first display picture is the picture of the last frame displayed before the first system performs system switching. That is, under the condition that the power supply and the control signal do not change, after the data interrupt transmission of the DSI, the content displayed by the display screen will maintain the picture of the last frame (that is, if there is no new display data transmission after the display data is interrupted, the display unit of the display device will continue to display the last picture), further avoiding the problem of display abnormality such as black frame caused by the switching between the two systems.

[0035] The execution subject of the present application can include, but is not limited to, a mobile terminal such as a mobile phone (i.e., a cell phone), a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Portable Application Description), a PMP (Portable Media Player), a vehicle-mounted terminal (e.g., a vehicle-mounted navigation terminal), and the like, and a fixed terminal such as a digital TV (Television), a desktop computer, and the like, or any electronic device capable of implementing the above functions, and the present application does not specifically limit the same. The following describes each embodiment of the present application with the electronic device as an execution subject.

[0036] In order to better understand the technical solutions of the present application, the following will be described in detail in combination with the accompanying drawings and specific embodiments.

[0037] Please refer to FIG. 1, which is a flowchart of the switching method according to Embodiment 1 of the present application.

[0038] In the present embodiment, the switching method is applied to an electronic device having a first system and a second system, and the method includes the following step S100:

[0039] In step S100, in the case where the currently running system is the first system, the system is switched from the first system to the second system based on a first target switching period in response to a first switching instruction, wherein during the system switching to the second system, the display unit of the electronic device keeps displaying a first display picture, and the first display picture is the last frame of the picture displayed before the system switching of the first system is performed.

[0040] The first target switching period is the period between a first node at which a first software interrupt signal is generated and a second node at which a first hardware interrupt signal is generated, the first software interrupt signal is generated in response to the transmission of a frame of first display data by the first system, the first hardware interrupt signal is generated in response to the display of a first display picture by the display unit, and the first display picture is the picture corresponding to the first display data.

[0041] Those skilled in the art know that in the field of computer technology, there is a special computer system composed of two independent processor systems sharing a set of human-computer interaction devices (i.e. external devices, peripherals). The two processor systems run different operating systems to meet the different needs of users. For example, one processor system has a higher security level than the other, the processor system with a higher security level is used to process sensitive information, and the processor system with a lower security level is used for daily operations, thereby providing higher security when processing sensitive information and higher flexibility in daily work, ensuring the security of the device and data while ensuring the convenience of users in daily use.

[0042] Currently, the dual-system electronic device usually switches the control right of the peripherals between the two systems through a high-speed digital switch to ensure the continuity and stability of data transmission during the switching process and support high-speed data transmission.

[0043] The two independent processor systems have different permissions and are responsible for processing different transactions and communicating with each other through a bridge. One of the processor systems has the permission to control the high-speed digital switch to switch systems.

[0044] By way of example, the first system refers to the processor system that has the permission to control the high-speed digital switch to switch systems, the second system refers to the other processor system that does not have the permission to control the high-speed digital switch to switch systems, and the first switching instruction is used to switch the currently running system from the first system to the second system.

[0045] Display data refers to a set of information used to present an image on a display unit, usually including color values and brightness values of pixels used to build a complete frame of picture. The first display data refers to the last frame of display data transmitted by the first system to the display unit in response to the first switching instruction. That is, the first display picture refers to the last frame of picture displayed by the display unit before the first system performs system switching in response to the first switching instruction, which is also the picture corresponding to the first display data. Or, the first display picture is the picture presented by the display unit based on the first display data after receiving the first display data.

[0046] In addition, in this embodiment, the software interrupt signal refers to a signal generated after a complete frame of display data is transmitted by the currently running system to the display unit, which is used to indicate that the transmission of the current frame of display data is complete, and the hardware interrupt signal refers to a signal generated after a complete frame of picture is displayed by the display unit, which is used to indicate that the display of the current frame of picture is complete.

[0047] Those skilled in the art can know that, in the electronic device with dual systems, the display data from different processor systems all need to be transmitted to the display unit for display through the high-speed digital switch. After the processor system transmits a frame of display data through the high-speed digital switch, a software interrupt signal is generated to indicate the display unit that a frame of display data from the processor system needs to be displayed. After the display unit displays the frame of display data, a hardware interrupt signal is generated to indicate the processor system that a frame of display data has been displayed and the transmission and display of the next frame of display data can be started. After detecting the hardware interrupt signal, the processor system starts to transmit the next frame of display data through the high-speed digital switch, and the above process is repeated in a loop until there is no new display data to be displayed.

[0048] In the embodiment, the first software interrupt signal refers to a software interrupt signal generated after the currently running first system transmits a frame of complete first display data to the display unit, and is used to indicate that the transmission of a frame of complete first display data is completed. The first hardware interrupt signal refers to a hardware interrupt signal generated after the display unit displays a frame of complete first display picture, and is used to indicate that the display of a frame of complete first display picture is completed. The first node refers to a time node at which the first software interrupt signal is generated, i.e., a time node at which the currently running first system transmits a frame of complete first display data to the display unit. The second node refers to a time node at which the first hardware interrupt signal is generated, i.e., a time node at which the display unit displays a frame of complete first display picture. The first target switching period refers to a period between the first node and the second node.

[0049] In the case where the currently running system is the first system, the embodiment responds to the first switching instruction, and performs system switching based on the first target switching period, starting from the first node at which the first system completely transmits the first display data, to switch the currently running system from the first system to the second system through the high-speed digital switch, so as to ensure the complete transmission of the first display data, and prevent the display unit from failing to receive a frame of complete first display data due to interruption of the transmission of the first display data, and thus prevent the display screen of the electronic device from having display abnormal phenomena such as mura and tearing, and further solve the display abnormality of the electronic device with dual systems due to interruption of the transmission of the display data from the first system during system switching from the first system to the second system.

[0050] The embodiment accurately controls the system switching time point of switching the first system to the second system through cooperation of the first software interrupt signal and the first hardware interrupt signal, ensures that the system switching occurs at an appropriate time point, and makes the switching process more smooth, so that the user almost cannot perceive the switching.

[0051] In addition, during system switching to the second system, the display unit of the electronic device keeps displaying the first display screen, so that the display screen of the electronic device does not appear abnormal display phenomena such as black frame and white screen due to long system switching time (i.e. the system switching time exceeds the first target switching period) during system switching, thereby solving the display abnormality of the electronic device with double systems due to long system switching time during system switching.

[0052] The embodiment keeps stably displaying the last frame of picture during system switching, effectively avoids the problems such as black frame and screen flower during switching, reduces the visual discomfort of the user, and improves the overall user experience.

[0053] In the embodiment, in response to the first switching instruction, if the first system is transmitting a frame of display data to the display unit through the high-speed digital switch, the frame of display data is determined as the first display data, and after the first system transmits the frame of display data and generates the first software interrupt signal, the system switching is started to switch the currently running system from the first system to the second system.

[0054] If the first system has just transmitted a frame of display data through the high-speed digital switch and generates a software interrupt signal, but has not detected or just detected the time node of the hardware interrupt signal generated by the display unit (the time node has not started the transmission of the next frame of display data), the system switching is immediately performed (wherein the frame of display data just transmitted through the high-speed digital switch is determined as the first display data), and the currently running system is switched from the first system to the second system.

[0055] Although the embodiment keeps stably displaying the last frame of picture during system switching until the system switching is completed and the display data transmitted by the second system through the high-speed digital switch is started to be displayed, there is a certain time delay during system switching of the electronic device with double systems, but the time delay is small and belongs to the range that can be accepted by the human eye, i.e. the human eye cannot perceive the image lag.

[0056] Therefore, the embodiment allows an error of a certain number of frames when performing system switching in response to the first switching instruction, does not require determining the display data of a frame being transmitted or just transmitted by the first system as the first display data and immediately performing system switching after receiving the first switching instruction, but allows determining the display data of the next frame or the frame after the next frame as the first display data within the error of the certain number of frames, and then performing system switching, so that the user experience is not affected, and the phenomenon of a frame being cut off or recorded as all zero values (if the first half or the second half of a frame of image frames appears all zero data, causing the first half and the second half of the frame of image frames to abnormally combine and generate a frame phenomenon), and the situation of missing the first half frame or the second half frame of the display content occurs, and the phenomenon of a frame being cut off or recorded as all zero values is effectively reduced.

[0057] In addition, in the embodiment, the step of switching the currently running system from the first system to the second system based on the first target switching time period in step S100 can include steps S110-S130:

[0058] In step S110, based on the first target switching time period, the display data of the first system is prohibited from being output to the display unit.

[0059] In the embodiment, in order to avoid the first system continuing to transmit display data of a new frame after transmitting the first display data during system switching to the second system, causing the display to fail to maintain the display of the last frame of the picture, i.e., the first display picture, and finally causing display abnormalities such as black frames, screen tearing, and the like, which brings inconvenience to the user, the embodiment prohibits the display data of the first system from being output to the display unit at the first time when the first target switching time period starts to perform system switching, so as to ensure that the display unit can maintain stable display of the first display picture, and further effectively avoid display abnormalities such as black frames, screen tearing, and the like during system switching, reduce the visual discomfort of the user, and improve the overall user experience.

[0060] Since the display data of different processor systems needs to be transmitted to the display unit through a high-speed digital switch, the embodiment can prohibit the display data of the first system from being output to the display unit by prohibiting the high-speed digital switch from transmitting data to the display unit.

[0061] In addition to the above manner, the embodiment can also prohibit the display data of the first system from being output to the display unit by directly prohibiting the display data transmission function of the first system, or by disconnecting the connection between the high-speed digital switch and the first system.

[0062] According to actual requirements, any one or more of the above manners can be adopted to realize the output of the display data of the second system to the display unit being prohibited.

[0063] In step S120, the current system in which the control switch unit and the data switch unit are turned on is switched from the first system to the second system based on the first target switching period, wherein the control switch unit is used to perform interaction of control signals between the current system in which the control switch unit is turned on and the display unit, and the data switch unit is used to output display data of the current system in which the data switch unit is turned on to the display unit.

[0064] As known by those skilled in the art, at present, the display device commonly used is a DSI (Display Serial Interface) data interface which combines two groups of control signals of reset and interruption, wherein the display data (i.e. DSI data, also referred to as DSI signal) transmitted by the DSI data interface is a high-speed signal, and the control signal is a low-speed signal. The high-speed signal needs to be transmitted through a high-speed switch, i.e. a high-speed digital switch is used to transmit the display data. Since the data channel of the high-speed digital switch is limited, the transmission of the control signal cannot be combined, and therefore a low-speed switch needs to be added to synchronously transmit the control signal, thereby completing the system switching.

[0065] In the embodiment, the control switch unit is a low-speed switch used to perform interaction of control signals between the current system in which the control switch unit is turned on and the display unit in the dual-system electronic device, and the data switch unit is a high-speed switch, i.e. a high-speed digital switch, used to output display data of the current system in which the data switch unit is turned on to the display unit.

[0066] In the embodiment, the electronic device quickly switches the control right of the display unit between the first system and the second system through the data switch unit and the control switch unit, ensures the continuity and stability of the transmission of the display data and the control signal in the switching process, and supports high-speed transmission of the display data and synchronous transmission of the control signal.

[0067] In the case where the currently running system is the first system, the control switch unit and the data switch unit turn on the first system, so as to ensure the control right of the first system to the display unit.

[0068] When the currently running system is switched from the first system to the second system, in order to ensure that the display data of the second system can be stably and high-speed transmitted to the display unit after the switching to the second system, and the picture is normally displayed after the system switching, the system in which the control switch unit and the data switch unit are turned on needs to be switched from the first system to the second system, so as to ensure the control right of the second system to the display unit.

[0069] Therefore, the embodiment switches the current system, in which the control switch unit and the data switch unit are turned on, from the first system to the second system immediately after the display data of the first system is prohibited from being output to the display unit and it is ensured that the display unit can maintain stable display of the first display screen, so that the control right of the peripheral display unit is quickly switched, and it is ensured that the display data and the control signal of the second system can be transmitted to the display unit through the data switch unit and the control switch unit, thereby reducing the system switching time length and avoiding display abnormal phenomena such as black frames and screen flowers caused by the fact that the display data and the control signal of the second system cannot be normally transmitted to the display unit after system switching.

[0070] In the embodiment, the step of switching, in step S120, the current system, in which the control switch unit and the data switch unit are turned on, from the first system to the second system based on the first target switching time period can include steps S121-S122.

[0071] In step S121, the signal transmitted to the control switch unit is converted from a first level signal to a second level signal by the switching control unit connected with the first system based on the first target switching time period, wherein the control switch unit turns on the first system when the signal transmitted to the control switch unit is the first level signal, and the control switch unit turns on the second system when the signal transmitted to the control switch unit is the second level signal.

[0072] In step S122, the signal transmitted to the data switch unit is converted from a third level signal to a fourth level signal by the switching control unit connected with the first system based on the first target switching time period, wherein the data switch unit turns on the first system when the signal transmitted to the data switch unit is the third level signal, and the data switch unit turns on the second system when the signal transmitted to the data switch unit is the fourth level signal.

[0073] In the embodiment, the switching control unit is a key component for switching the system, in which the control switch unit and the data switch unit are turned on, between the first system and the second system by transmitting different level signals to the control switch unit and the data switch unit during system switching. The first system has the right to quickly switch the control right of the peripheral display unit between the first system and the second system by being connected with the switching control unit, so as to perform system switching.

[0074] In the embodiment, the first level signal is used to control the control switch unit to turn on the first system, the second level signal is used to control the control switch unit to turn on the second system, the third level signal is used to control the data switch unit to turn on the first system, and the fourth level signal is used to control the data switch unit to turn on the second system.

[0075] The embodiment immediately converts the signal sent to the control switch unit from the first level signal to the second level signal through the switching control unit connected with the first system after the display data of the first system is prohibited from being output to the display unit, so as to switch the current system in which the control switch unit is turned on from the first system to the second system, and converts the signal sent to the data switch unit from the third level signal to the fourth level signal, so as to switch the current system in which the data switch unit is turned on from the first system to the second system, and switches the current system in which the control switch unit and the data switch unit are turned on from the first system to the second system as soon as possible within the first target switching period, so as to quickly complete the system switching, and avoid the abnormal display phenomenon such as freezing, black frame, and screen flicker of the electronic device caused by the long time consumption of the system switching.

[0076] In step S130, the display data of the second system is allowed to be output to the display unit based on the first target switching period.

[0077] In the embodiment, in order to ensure that the display data of the second system can be output to the display unit in time after being switched to the second system, and the picture displayed by the display unit is updated, and the long freezing time is not perceived by the user, the embodiment releases the display data transmission between the second system and the display unit after the current system in which the control switch unit and the data switch unit are turned on is switched from the first system to the second system, allows the display data of the second system to be output to the display unit, updates the picture displayed by the display unit in time, and reduces the freezing time, so as to improve the picture fluency of the system switching, and brings good user experience.

[0078] In contrast to the step S110 of prohibiting the display data of the first system from being output to the display unit based on the first target switching period, the embodiment needs to adopt a corresponding way to allow the display data of the second system to be output to the display unit for various ways of prohibiting the display data from the processor system from being output to the display unit, for example, releasing the prohibition for the high-speed digital switch, releasing the prohibition for the display data transmission function of the second system, and the like.

[0079] The enable timing of allowing the display data of the second system to output to the display unit (in an embodiment, the enable manner of allowing the display data of the second system to output to the display unit can be that the enable signal sent by the second system to the control switch unit is converted from the second enable signal to the first enable signal, which will be described below, and is not described here, and in this embodiment, the enable timing refers to the timing of converting the enable signal sent by the second system to the control switch unit from the second enable signal to the first enable signal) is the first target switching period, that is, the transmission interval period between two frames of complete display data. This is because during the system switching from the first system to the second system, there will be a short signal loss phenomenon caused by the handover period, that is, during the system switching from the first system to the second system, the interrupt signal, the communication signal and the related peripheral resources managed by the first system are handed over to the second system. In the handover process, there will be a short period of time when the first system and the second system cannot manage these interrupt signals, communication signals and related peripheral resources. This part of the short period of time may cause some display data loss. If part of the data in a frame of complete display data A is lost, and the second system displays data immediately after switching to the second system, only part of the data in the frame of display data A will be displayed after switching to the second system, and the previous part of the data in the display data A is truncated and recorded as all zero values due to the handover period of the double system, thereby causing the frame phenomenon.

[0080] Therefore, even if the second system is switched, the display data of the second system is not immediately allowed to output to the display unit, but whether it is in the first target switching period is determined, and the display data of the second system is allowed to output to the display unit only when it is in the first target switching period. The first target switching period refers to the transmission interval period between two frames of complete display data, which avoids the situation that part of the data in a frame of complete display data is truncated and recorded as all zero values due to the short period of time when both systems cannot respond during the handover period, thereby causing the first half frame of the display content to be lost, and effectively preventing the display abnormal phenomenon such as black frame and screen flower from occurring.

[0081] Exemplarily, in this embodiment, the step S110 of prohibiting the display data of the first system from outputting to the display unit based on the first target switching period can include the step S111 of:

[0082] Step S111, based on the first target switching period, the first system sends the enable signal to the control switch unit from the first enable signal to the second enable signal, the first enable signal is used to trigger the control switch unit to control the signal transmission state of the data switch unit to be in the allowed state, and the second enable signal is used to trigger the control switch unit to control the signal transmission state of the data switch unit to be in the forbidden state.

[0083] Wherein, when the signal transmission state is in the allowed state, the data switch unit can normally output display data to the display unit; and when the signal transmission state is in the forbidden state, the data switch unit cannot normally output display data to the display unit.

[0084] In the embodiment, the output enable control pin of the control switch unit is connected with the data switch unit. In the embodiment, different enable signals are sent to the control switch unit, and then the output enable control pin of the data switch unit is used to control the signal transmission state of the data switch unit, so as to prohibit or allow the data switch unit to output display data to the display unit.

[0085] In the embodiment, the first system and the second system can both send enable signals to the control switch unit to modify the signal transmission state of the data switch unit, so as to control the on-off of the display data transmission between the data switch unit and the display unit.

[0086] In the embodiment, the first system sends the enable signal to the control switch unit from the first enable signal to the second enable signal, triggers the control switch unit to modify the signal transmission state of the data switch unit to the forbidden state, so that the data switch unit cannot normally output display data to the display unit, and the effect of prohibiting the display data of the first system from being output to the display unit is achieved. That is, the display data of the first system is prohibited from being output to the display unit by prohibiting the high-speed digital switch (i.e. the data switch unit) from transmitting data to the display unit. Then, during the system switching to the second system, the display unit receives the first display data, displays the first display picture corresponding to the first display data, and will not receive display data from the first system, so that the display unit keeps displaying the first display picture during the system switching, until the system is switched to the second system, and the display unit will not receive display data other than the first display data during the system switching, so that the display unit will not display abnormal display phenomena such as black frame and screen flower.

[0087] Correspondingly, in the embodiment, the step S130 of allowing the display data of the second system to be output to the display unit based on the first target switching period can include step S131:

[0088] Step S131, based on the first target switching period, the second system sends the enable signal to the control switch unit from the second enable signal to the first enable signal.

[0089] The embodiment adopts the mode of prohibiting the high-speed digital switch (i.e. the data switch unit) from transmitting data to the display unit, and triggers the control switch unit to modify the signal transmission state of the data switch unit to the prohibited state by converting the enable signal sent by the first system to the control switch unit from the first enable signal to the second enable signal, so that the data switch unit cannot normally output the display data to the display unit, thereby achieving the effect of prohibiting the display data of the first system from being output to the display unit. Correspondingly, after the current system in which the control switch unit and the data switch unit are turned on is switched from the first system to the second system, the enable signal sent by the second system to the control switch unit needs to be converted from the second enable signal to the first enable signal to trigger the control switch unit to modify the signal transmission state of the data switch unit to the allowed state, so that the data switch unit can normally output the display data to the display unit, thereby achieving the effect of allowing the display data of the second system to be output to the display unit, and then after switching to the second system, the display data from the second system is output to the display unit at the first time, the display picture is updated in time, the picture fluency is improved, and the user's perception of picture lag due to the long time of displaying the first display picture is avoided.

[0090] After the current system in which the control switch unit is turned on is switched from the first system to the second system, the enable signal from the first system cannot reach the control switch unit or cannot affect the operation of the control switch unit, and therefore the signal transmission state of the data switch unit depends on the enable signal from the second system.

[0091] In addition, in order to ensure that the display picture is updated at the first time after switching to the second system, the embodiment wakes up the second system at the first time after receiving the first switching instruction, so that the second system enters the preparation stage and prepares for the subsequent display picture update.

[0092] Exemplarily, in a possible implementation, the method can further include step S200:

[0093] Step S200, during the system switching to the second system, a first command prompt (CMD) instruction is sent from the first system to the second system, wherein the first CMD instruction is used to trigger the second system to enter a preset ready state.

[0094] As known by those skilled in the art, the CMD (Command, command prompt) is an interface for inputting commands and interacting with the operating system, and the CMD instruction is an instruction for controlling the behavior of the computer system.

[0095] In the embodiment, the first CMD instruction is a CMD instruction for triggering the second system to enter a preset ready state, and the ready state is a state that can be immediately put into use after the system switching is completed, and seamlessly connected.

[0096] In the embodiment, during the system switching to the second system, the first system sends the first CMD instruction to the second system to trigger the second system to enter a preset ready state, so that the second system wakes up from the low-power consumption or sleep mode, and starts to load necessary resources and services, and ensures that all necessary parts are in an operable state, so as to enter a state that can be immediately put into use, that is, the ready state, and then after switching to the second system, the display screen can be seamlessly connected, and the display screen update in the system switching process is completed in the first time, and the display screen update in the system switching process is completed in the first time, and the user is not aware of the screen freezing during the system switching process.

[0097] In the embodiment, because the second system has been prepared before the formal switching, the system switching time is greatly shortened in the actual switching process, and the switching efficiency is greatly improved. In this way, the embodiment can realize smooth switching of the system without affecting the display service, improve the availability and reliability of the entire system, provide almost no-awareness double-system switching for the user, greatly improve the screen smoothness, and improve the user experience.

[0098] In a feasible implementation, the method further includes:

[0099] During the system switching to the second system, the first system, the second system and the display unit are in a working state.

[0100] In the embodiment, if the second system is originally in a working state instead of a sleep state, the second system does not need to be woken up, and the first CMD instruction only serves to prompt the second system to start to load necessary resources and services, and enter the ready state, thereby avoiding the time required for waking up the second system, and greatly improving the system switching efficiency.

[0101] The embodiment avoids the situation that the display content is missing in the first half frame or the second half frame by avoiding the system switching node occurring in the transmission interval between two frames of complete display data of the first system, thereby effectively preventing the display abnormal phenomenon such as black frame and screen flower, improving the smoothness of picture display, and further solving the technical problem of display abnormality such as black frame and screen flower caused by switching between the two systems in the related art.

[0102] In addition, the embodiment can ensure that the display unit does not appear black frame during system switching by keeping the display unit of the electronic device displaying the first display picture during system switching, the first display picture being the picture of the last frame displayed before the first system performs system switching. That is, when the power supply and the control signal do not change, the content displayed by the display screen will maintain the picture of the last frame after the DSI data is interrupted (that is, if there is no new display data transmission after the display data is interrupted, the display unit of the display device will continue to display the last picture), further avoiding the problem of display abnormality such as black frame caused by switching between the two systems.

[0103] Please refer to FIG. 2, which is a flowchart of the switching method provided in Embodiment Two of the present application.

[0104] In the embodiment, the same or similar contents as those in the above embodiments can be referred to the above description, and will not be described in detail hereinafter.

[0105] In the embodiment, the method can further include step S300:

[0106] Step S300, in the case that the currently running system is the second system, in response to the second switching instruction, switching the currently running system from the second system to the first system based on a second target switching period, wherein during the system switching to the first system, the display unit of the electronic device keeps displaying a second display picture, the second display picture being the picture of the last frame displayed before the second system performs system switching.

[0107] The second target switching period is the period between a third node of generating a second software interrupt signal and a fourth node of generating a second hardware interrupt signal, the second software interrupt signal being generated in response to the second system completing the transmission of a frame of second display data, the second hardware interrupt signal being generated in response to the display unit completing the display of a second display picture, the second display picture being the picture corresponding to the second display data.

[0108] In the embodiment, the second switching instruction is used to switch the currently running system from the second system to the first system, the second display data refers to the last frame of display data transmitted by the second system to the display unit in response to the second switching instruction, and the second display picture refers to the last frame of picture displayed by the display unit before the system switching of the second system is performed in response to the second switching instruction, which is also the picture corresponding to the second display data. Alternatively, the second display picture is the picture presented by the display unit based on the second display data after the second display data is received.

[0109] The second software interrupt signal refers to a software interrupt signal generated after a complete frame of second display data is transmitted by the currently running second system to the display unit, and is used to indicate that the transmission of the complete frame of second display data is completed. The second hardware interrupt signal refers to a hardware interrupt signal generated after a complete frame of second display picture is displayed by the display unit, and is used to indicate that the display of the complete frame of second display picture is completed. The third node refers to a time node at which the second software interrupt signal is generated, that is, a time node at which a complete frame of second display data is transmitted by the currently running second system to the display unit. The fourth node refers to a time node at which the second hardware interrupt signal is generated, that is, a time node at which a complete frame of second display picture is displayed by the display unit. The second target switching period refers to a period between the third node and the fourth node.

[0110] In the embodiment, when the currently running system is the second system, the system switching is performed based on the second target switching period from the first node at which the second display data is completely transmitted by the second system in response to the second switching instruction. The currently running system is switched from the second system to the first system by the high-speed digital switch, so that the complete transmission of the second display data is ensured, and the display abnormal phenomenon such as screen tearing of the display screen of the electronic device caused by the interruption of the transmission of the second display data and the failure of the display unit to receive a complete frame of second display data is avoided. Thus, the display abnormality of the electronic device with double systems caused by the interruption of the transmission of the display data from the second system during the system switching from the second system to the first system is solved.

[0111] In the embodiment, the system switching time point of the second system to the first system is accurately controlled by the cooperation of the second software interrupt signal and the second hardware interrupt signal, so that the system switching occurs at an appropriate time point, and the switching process is smoother, and the user almost cannot perceive the switching.

[0112] In addition, during the system switching to the first system, the display unit of the electronic device keeps displaying the second display screen, so that the display screen of the electronic device does not appear abnormal display phenomena such as black frame and white screen due to the long system switching time (i.e. the system switching time exceeds the second target switching period) during the system switching, thereby solving the display abnormality of the electronic device with double systems due to the long system switching time during the system switching.

[0113] The embodiment keeps displaying the last frame of screen during the system switching, effectively avoids the black frame and other problems in the switching process, reduces the visual discomfort of the user, and improves the overall user experience.

[0114] In the embodiment, in response to the second switching instruction, if the second system is transmitting a frame of display data to the display unit through the high number digital switch, the frame of display data is determined as the second display data, and after the second system transmits the frame of display data and generates the second software interrupt signal, the system switching is started to switch the currently running system from the second system to the first system.

[0115] If the second system has just transmitted a frame of display data through the high number digital switch and generates a software interrupt signal, but has not detected or just detected the hardware interrupt signal generated by the display unit (the time node has not started the transmission of the next frame of display data), the system switching is immediately executed (wherein the frame of display data just transmitted through the high number digital switch is determined as the second display data), and the currently running system is switched from the second system to the first system.

[0116] Although the embodiment keeps the last frame of the display stable during the system switching until the system switching is completed and the display data transmitted by the first system through the high-speed digital switch is displayed, a certain time delay of the electronic device of the dual system during the system switching is inevitable. However, the time delay is small and within the range acceptable by the human eye, that is, the human eye cannot perceive the image freezing. Therefore, when the system switching is performed in response to the second switching instruction, the embodiment allows a certain frame error, does not require that the display data of the frame being transmitted or just transmitted by the second system is determined as the second display data immediately after the second switching instruction is received, and the system switching is performed immediately, but allows the next frame or the frame after the next frame of the display data to be determined as the second display data within a certain frame error, and then the system switching is performed, so that the user experience is not affected, and the part of the data not completed transmission in a complete frame of display data is prevented from being truncated or recorded as all zero values (if the first half or the second half of a frame of image frame appears all zero data, the first half and the second half of the frame of image frame are abnormally combined, and the image frame phenomenon occurs), and the display content is prevented from appearing the missing of the first half frame or the second half frame, and the screen tearing phenomenon during the switching between the dual systems is effectively reduced.

[0117] In addition, in the embodiment, the step of switching the currently running system from the second system to the first system based on the second target switching time period in step S300 can include steps S310-S330.

[0118] In step S310, based on the second target switching time period, the display data of the second system is prohibited from being output to the display unit.

[0119] In the embodiment, in order to avoid the second system continuing to transmit the display data of the next frame after the transmission of the second display data is completed during the system switching to the first system, the display cannot keep displaying the last frame of the picture, that is, the second display picture, and finally the display abnormal phenomenon such as black frame, screen tearing, and the like occurs, which brings inconvenience to the user, the display data of the second system is prohibited from being output to the display unit at the first time when the system switching is performed based on the second target switching time period, so that the display unit can keep displaying the second display picture stably, and the display abnormal problems such as black frame and screen tearing during the system switching are effectively avoided, the visual discomfort of the user is reduced, and the overall user experience is improved.

[0120] Since the display data of different processor systems needs to be transmitted to the display unit through the high-speed digital switch, the display data of the second system is prohibited from being output to the display unit by prohibiting the high-speed digital switch from transmitting data to the display unit.

[0121] In addition to the above manner, the embodiment can also inhibit the display data of the second system from being output to the display unit by directly inhibiting the display data transmission function of the second system, or by disconnecting the connection between the high-speed digital switch and the second system.

[0122] According to actual needs, any one or more of the above manners can be used to inhibit the display data of the second system from being output to the display unit.

[0123] In step S320, the current system with the control switch unit and the data switch unit turned on is switched from the second system to the first system based on the second target switching period, where the control switch unit is used to perform the interaction of control signals between the current system with the turned-on and the display unit, and the data switch unit is used to output the display data of the current system with the turned-on to the display unit.

[0124] In the case where the current running system is the second system, the control switch unit and the data switch unit are turned on for the second system to ensure the control right of the second system over the external display unit.

[0125] When the current running system is switched from the second system to the first system, in order to ensure that the display data of the first system can be stably and high-speed transmitted to the display unit after the switching to the first system, and the display of the system after the switching is normal, the system with the control switch unit and the data switch unit turned on needs to be switched from the second system to the first system, so as to ensure the control right of the first system over the external display unit.

[0126] Therefore, after the display data of the second system is inhibited from being output to the display unit and the display unit is ensured to keep displaying the second display screen stably, the current system with the control switch unit and the data switch unit turned on is immediately switched from the second system to the first system in the embodiment, the control right over the external display unit is quickly switched, and it is ensured that the display data and the control signal of the first system can be transmitted to the display unit through the data switch unit and the control switch unit, so as to reduce the system switching time and avoid the display abnormal phenomena such as black frame and screen flower caused by the fact that the display data and the control signal of the first system cannot be normally transmitted to the display unit after the system switching.

[0127] In the embodiment, the step of switching the current system with the control switch unit and the data switch unit turned on from the second system to the first system based on the second target switching period in step S320 can include steps S321-S322.

[0128] Step S321, based on the second target switching period, the first target CMD instruction is sent to the first system through the second system, wherein the first target CMD instruction is used to trigger the switching control unit connected to the first system to convert the signal sent to the control switch unit from the second level signal to the first level signal, wherein when the signal sent to the control switch unit is the first level signal, the control switch unit turns on the first system, and when the signal sent to the control switch unit is the second level signal, the control switch unit turns on the second system.

[0129] Step S322, and based on the second target switching period, the second target CMD instruction is sent to the first system through the second system, wherein the second target CMD instruction is used to trigger the switching control unit connected to the first system to convert the signal sent to the data switch unit from the fourth level signal to the third level signal, wherein when the signal sent to the data switch unit is the third level signal, the data switch unit turns on the first system, and when the signal sent to the data switch unit is the fourth level signal, the data switch unit turns on the second system.

[0130] After the display data of the second system is prohibited from being output to the display unit in the embodiment, the first target CMD instruction is sent to the first system through the second system to trigger the switching control unit connected to the first system to convert the signal sent to the control switch unit from the second level signal to the first level signal, so as to switch the current system turned on by the control switch unit from the second system to the first system, and at the same time, the second target CMD instruction is sent to the first system through the second system to trigger the switching control unit connected to the first system to convert the signal sent to the data switch unit from the fourth level signal to the third level signal, so as to switch the current system turned on by the data switch unit from the second system to the first system. As far as possible, the current system turned on by the control switch unit and the data switch unit is switched from the second system to the first system within the second target switching period, so as to quickly complete system switching and avoid abnormal display phenomena such as freezing, black frame, and screen flicker of the electronic device caused by too long system switching time.

[0131] Step S330, based on the second target switching period, the display data of the first system is allowed to be output to the display unit.

[0132] In the embodiment, in order to ensure that the display data of the first system can be output to the display unit in time after switching to the first system, update the picture displayed by the display unit, and avoid the user perceiving that the stall time is too long, the embodiment releases the display data transmission between the first system and the display unit after switching the current system in which the control switch unit and the data switch unit are turned on from the second system to the first system, allows the display data of the first system to be output to the display unit, updates the picture displayed by the display unit in time, reduces the stall time, thereby improving the picture fluency of system switching, and brings good user experience.

[0133] In contrast to the step S310 of prohibiting the display data of the second system from being output to the display unit based on the second target switching period, for the multiple ways of prohibiting the display data from the processor system from being output to the display unit, the embodiment needs to use the corresponding way to allow the display data of the first system to be output to the display unit, for example, releasing the prohibition on the high-speed digital switch, releasing the prohibition on the display data transmission function of the first system, and the like.

[0134] Specifically, the enable time of allowing the display data of the first system to be output to the display unit (in one specific embodiment, the enable way of allowing the display data of the first system to be output to the display unit is that the enable signal sent by the first system to the control switch unit is converted from the second enable signal to the first enable signal, which will be described below, and is not described here, and in this specific embodiment, the enable time refers to the time when the enable signal sent by the second system to the control switch unit is converted from the second enable signal to the first enable signal) is the second target switching period, that is, the transmission interval period between two frames of complete display data. This is because during the system switching from the second system to the first system, there will be a short signal loss phenomenon caused by the handover period, that is, during the system switching from the second system to the first system, the interrupt signal, the communication signal and the related peripheral resource managed by the second system are handed over to the first system. In the handover process, there will be a short period of time when the first system and the second system cannot manage these interrupt signals, communication signals and related peripheral resources. This part of the short period of time may cause some display data loss. If part of the data in a frame of complete display data B is lost, the first system immediately displays data after switching to the first system, which will cause the first system to display only part of the data in the frame of display data B after switching to the first system, and the previous front part of the display data B is truncated and recorded as all zero values due to the fact that both systems cannot respond during the handover period, thereby causing the frame loss phenomenon.

[0135] Therefore, the embodiment of the present application does not allow the display data of the first system to be output to the display unit immediately after switching to the first system, but needs to judge whether it is in the second target switching period, and allows the display data of the first system to be output to the display unit only when it is in the second target switching period. The second target switching period refers to the transmission interval period between two frames of complete display data, which avoids the situation that part of the data in a frame of complete data is truncated and recorded as all zero values due to the short period of time when both systems cannot respond during the handover in a frame of complete display data of the first system, thereby causing the loss of the first half frame of the display content, and further effectively preventing the display abnormal phenomena such as black frame and screen flower from occurring.

[0136] Exemplarily, in the embodiment, the step S310 of prohibiting the display data of the second system from being output to the display unit based on the second target switching period can include the step S311 of:

[0137] The step S311 converts the enable signal sent by the second system to the control switch unit from the first enable signal to the second enable signal based on the second target switching period.

[0138] The embodiment converts the enable signal sent by the second system to the control switch unit from the first enable signal to the second enable signal, triggers the control switch unit to modify the signal transmission state of the data switch unit to the prohibited state, so that the data switch unit cannot normally output the display data to the display unit, thereby achieving the effect of prohibiting the display data of the second system from being output to the display unit. That is, by prohibiting the high-speed digital switch (i.e., the data switch unit) from transmitting data to the display unit, the display data of the second system is prohibited from being output to the display unit, and further, during the system switching to the first system, the display unit receives the second display data, displays the second display picture corresponding to the second display data, and then no longer receives the display data from the second system, so as to ensure that the display unit displays the second display picture during the system switching, until switching to the first system, thereby preventing the display unit from receiving display data other than the second display data during the system switching, and causing the display abnormal phenomena such as black frame and screen flower to occur.

[0139] In the embodiment, the step S330 of allowing the display data of the first system to be output to the display unit based on the second target switching period can include the step S331 of:

[0140] The step S331 converts the enable signal sent by the first system to the control switch unit from the second enable signal to the first enable signal based on the second target switching period.

[0141] The embodiment adopts a manner of prohibiting the high-speed digital switch (i.e., the data switch unit) from transmitting data to the display unit, and triggers the control switch unit to modify the signal transmission state of the data switch unit to the prohibited state by converting the enable signal sent by the second system to the control switch unit from the first enable signal to the second enable signal, so that the data switch unit cannot normally output the display data to the display unit, thereby achieving the effect of prohibiting the display data of the second system from being output to the display unit. Correspondingly, after the current system in which the control switch unit and the data switch unit are turned on is switched from the second system to the first system, the enable signal sent by the first system to the control switch unit needs to be converted from the second enable signal to the first enable signal to trigger the control switch unit to modify the signal transmission state of the data switch unit to the allowed state, so that the data switch unit can normally output the display data to the display unit, thereby achieving the effect of allowing the display data of the first system to be output to the display unit, and then outputting the display data from the first system to the display unit at the first time after switching to the first system, updating the display picture in time, improving the picture fluency, and avoiding the time length of displaying the second display picture being too long to be perceived by the user as picture lag.

[0142] After the current system in which the control switch unit is turned on is switched from the second system to the first system, the enable signal from the second system will not reach the control switch unit or will not affect the operation of the control switch unit, and therefore, the signal transmission state of the data switch unit depends on the enable signal from the first system at this time.

[0143] In addition, in order to ensure that the display picture is updated at the first time after switching to the first system, the embodiment wakes up the first system at the first time after receiving the second switching instruction, so that the first system enters the preparation stage and prepares for the subsequent display picture update.

[0144] Exemplarily, in a feasible implementation manner, the method can further include step S400:

[0145] In step S400, a second command prompt (CMD) instruction is sent to the first system by the second system during the system switching to the first system, and the second CMD instruction is used to trigger the first system to enter a preset ready state.

[0146] In the embodiment, the second CMD instruction is a CMD instruction used to trigger the first system to enter the preset ready state.

[0147] The second system sends a second CMD instruction to the first system during system switching to the first system, triggers the first system to enter a preset ready state, wakes up the first system from a low-power consumption or sleep mode, and starts loading necessary resources and services, so as to ensure that all necessary parts are in an operable state, thereby entering a state that can be immediately put into use, that is, the ready state, and then after switching to the first system, the display screen can be updated seamlessly and the display screen updating in the system switching process can be completed in the first time without the user perceiving the screen freezing.

[0148] In the embodiment, because the first system has been prepared before formal switching, the system switching time is greatly shortened in the actual switching process, and the switching efficiency is greatly improved. In this way, the embodiment can realize smooth switching of the system without affecting the screen display service, improve the availability and reliability of the entire system, provide almost imperceptible double-system switching for the user, greatly improve the screen smoothness, and improve the user experience.

[0149] In a possible implementation, the method further includes:

[0150] During system switching to the first system, the first system, the second system, and the display unit are all in a working state.

[0151] In the embodiment, if the first system is originally in a working state instead of a sleep state, the second system does not need to be woken up, the second CMD instruction only serves to prompt the first system to start loading necessary resources and services and enter the ready state, the time required for waking up the first system is avoided, and the system switching efficiency is greatly improved.

[0152] The embodiment avoids the system switching node occurring in the transmission interval between two frames of complete display data of the second system, thereby avoiding the incomplete transmission data part being cut off or recorded as all-zero values in a frame of complete display data (if the first half or the second half of a frame of image frames appears all-zero data, the first half and the second half of the frame of image frames often appear abnormal combination, and a flower frame phenomenon occurs), and the display content appears missing in the first half frame or the second half frame, effectively preventing the display abnormal phenomena such as black frames and flower screens, improving the smoothness of the screen display, and further solving the technical problems of display abnormalities such as black frames and flower screens caused by switching between double systems in the related art.

[0153] In addition, the embodiment of the present application can ensure that the display unit does not appear black frames during system switching by keeping the display unit of the electronic device to display the second display screen during system switching, the second display screen being the last frame of the screen displayed by the second system before system switching. That is, when the power supply and control signals do not change, the content displayed by the display screen will maintain the last frame of the screen after the DSI data transmission is interrupted, that is, when the display data transmission is interrupted, if there is no new display data transmission, the display unit of the display device will continue to display the last screen, thereby further avoiding the problem of display abnormalities such as black frames caused by switching between the two systems.

[0154] In order to facilitate understanding of the technical concept or technical principle of the above-mentioned embodiment of the switching method of the present application, a specific embodiment is listed:

[0155] In the related art, a secure mobile phone with a dual-processor system is taken as an example. The secure mobile phone has a processor system SYS-A (System-A, system-A, that is, the first system) with a higher security level and a processor system SYS-B (System-B, system-B, that is, the second system) with a lower security level, and uses a high-speed digital switch (that is, a data switch unit) to realize the switching requirement of a shared peripheral. The high-speed digital switch is controlled by SYS-A, and SYS-B obtains the use permission of the peripheral through a data channel (for example, a bridge) interconnecting the processor systems after requesting authorization. SYS-A controls the use of the peripheral according to user operations and the preset permission level of the mobile phone.

[0156] At present, the display device (that is, the display unit) on the secure mobile phone commonly uses two groups of control signals of reset and interruption combined with the DSI data interface. The display data transmitted by the DSI data interface is a high-speed signal, and the two groups of control signals of reset and interruption are low-speed signals. The high-speed DSI signal uses a corresponding high-speed switch (that is, a data switch unit), and since the commonly used high-speed switch has only 10 data channels, the control signals cannot be combined for control, and a low-speed switch (that is, a control switch unit) needs to be added for synchronous switching.

[0157] As shown in FIG. 3, in the related art, SYS-A and SYS-B communicate through a bridge chip, both systems output DSI data to a display screen (i.e., a display unit) through a data switch (i.e., a data switch unit) for display, a SYNC (Synchronization) signal is used to ensure that the display screen can correctly identify and process the DSI data, and a control switch (i.e., a control switch unit) is used to perform interaction of control signals between the display screen, including a reset RST (Reset) control signal and an interrupt INT (Interrupt) control signal, and the data switch and the control switch share a same switch control signal SW-Ctrl (Switch-Control) given by SYS-A to synchronously switch the system in which the data switch and the control switch are turned on. That is, the control switch unit is used to perform interaction of control signals between the current system turned on and the display unit, and the data switch unit is used to output display data of the current system turned on to the display unit.

[0158] However, in the switching process, this switching mode often encounters abnormal display problems such as black frames and screen flowers. The main reason for this problem is that the display data packet is interrupted in the process of one frame of data transmission, and then switched to another processor control.

[0159] In this regard, those skilled in the art synchronize the frame synchronization of the display of the two independent processors by a software card frame method to eliminate the abnormal display problem. However, due to the communication efficiency and transmission delay, the set delay often needs tens of frames or even dozens of frames to synchronize the frame synchronization of the display of the two independent processors, which can better eliminate the abnormal display problem, and often brings the user a sense of lag during switching.

[0160] In view of the above problems, the present embodiment proposes a new switching scheme.

[0161] As shown in FIG. 4, the present embodiment further improves the hardware circuit on the basis of FIG. 3, adds a channel for transmitting EM (Enable) data (i.e., an EN signal) between the processor system and the control switch, and also adds a channel for transmitting EM data between the data switch and the control switch, and connects the output enable control pin of the data switch, so that the processor system can transmit different enable signals to the control switch, and finally to the output enable control pin of the data switch, to control whether the data switch can normally transmit DSI data to the display screen, and realize the functions of controlling DSI data output and prohibiting output.

[0162] As shown in FIG. 5 and FIG. 6, when the SW-Ctrl signal (also called SW signal) is high (i.e. first level signal), i.e. SW = 1, the control switch is turned on SYS-A, and the interaction of the control signal is performed between SYS-A and the display screen; when the SW-Ctrl signal is low (i.e. second level signal), i.e. SW = 0, the control switch is turned on SYS-B, and the interaction of the control signal is performed between SYS-B and the display screen.

[0163] That is, when the signal sent to the control switch unit is the first level signal, the control switch unit is turned on the first system; when the signal sent to the control switch unit is the second level signal, the control switch unit is turned on the second system.

[0164] As shown in FIG. 7 and FIG. 8, when the SW-Ctrl signal is high (i.e. third level signal), i.e. SW = 1, the data switch is turned on SYS-A, and the DSI data from SYS-A is transmitted to the display screen for display; when the SW-Ctrl signal is low (i.e. fourth level signal), i.e. SW = 0, the data switch is turned on SYS-B, and the DSI data from SYS-B is transmitted to the display screen for display.

[0165] That is, when the signal sent to the data switch unit is the third level signal, the data switch unit is turned on the first system; when the signal sent to the data switch unit is the fourth level signal, the data switch unit is turned on the second system.

[0166] As shown in FIG. 9 and FIG. 10, the output of the data switch signal is controlled by the EN signal. When the EN signal is low (i.e. first enable signal), the data switch is normally turned on, and the output signal = input signal. When the EN signal is high (i.e. second enable signal), the data switch cannot be turned on, and the output signal is low.

[0167] That is, the first enable signal is used to trigger the control switch unit to control the signal transmission state of the data switch unit to be in the allowed state, and the second enable signal is used to trigger the control switch unit to control the signal transmission state of the data switch unit to be in the forbidden state. Wherein, when the signal transmission state is in the allowed state, the data switch unit can normally output the display data to the display unit; when the signal transmission state is in the forbidden state, the data switch unit cannot normally output the display data to the display unit.

[0168] In the embodiment, when the power supply and control signal do not change, the display screen displays the last frame of the picture (i.e., the first display picture or the second display picture) after the DSI data interruption transmission. That is, when the DSI data is interrupted, if there is no new display data transmission, the display device will continue to display the last picture, and in the user's visual field, the display is stuck and does not change. It is found through research that when the freezing time exceeds 1 / 50 second, the user will perceive it. Therefore, as long as the freezing time is short enough, the user will not perceive it, and it can be considered that freezing does not occur.

[0169] In the embodiment, after the security mobile phone is started, the initial state of the EN signal needs to be determined because the EN signal is added. According to the design requirement, the initial state of the EN signal needs to be adjusted according to the difference of the foreground system (i.e., the currently running system).

[0170] If the current system is SYS-A, the signal of EN-A (the EN signal sent by SYS-A to the control switch, i.e., the enable signal sent by the first system to the control switch unit) is kept at a low level, and the signal of EN-B (the EN signal sent by SYS-B to the control switch, i.e., the enable signal sent by the second system to the control switch unit) is kept at a high level. After passing through the control switch, the EN signal turns on EN-A, which is also at a low level. At this time, the data switch is turned on, and normal display is maintained.

[0171] If the current system is SYS-B, the signal of EN-B is kept at a low level, and the signal of EN-A is kept at a high level. After passing through the control switch, the EN signal turns on EN-B, which is also at a low level. At this time, the data switch is turned on, and normal display is maintained.

[0172] Specifically, in the embodiment, when the display picture is switched from SYS-A to SYS-B, the following process is performed:

[0173] 1. The user clicks the icon to start the switching action.

[0174] In the embodiment, after the user clicks the picture corresponding to the switching system, the first system receives the first switching instruction generated by the operation to start the switching action and perform system switching, i.e., in the case where the currently running system is the first system, the currently running system is switched from the first system to the second system in response to the first switching instruction.

[0175] 2. SYS-A sends a first CMD instruction to SYS-B to notify SYS-B.

[0176] In the embodiment, after receiving the first switching instruction, SYS-A sends a first CMD instruction to SYS-B through the bridge to notify SYS-B to wake up in advance, load necessary components, and prepare for taking over the security mobile phone at the first time after switching. That is, during the system switching to the second system, the first system sends a first command prompt (CMD) instruction to the second system. The first CMD instruction is used to trigger the second system to enter a preset ready state.

[0177] 3. SYS-A stops DSI data transmission. EN-A changes from low level to high level. At this time, EN-B of SYS-B is high level, the control switch is connected to SYS-A, and the output EN of the data switch changes to the disabled state, thereby closing the DSI data output of the data switch.

[0178] That is, the enable signal sent by the first system to the control switch unit is converted from the first enable signal to the second enable signal to disable the display data output of the first system to the display unit.

[0179] When the current frame data of DSI-A is transmitted, a software interrupt signal is generated to trigger the software interrupt function of SYS-A to inform SYS-A that the current frame data has been transmitted. Before the next frame data of DSI-A is transmitted, the software interrupt function of SYS-A captures the hardware falling edge signal (that is, the hardware interrupt signal) of the display screen to trigger the transmission of the next frame data of DSI-A.

[0180] In the embodiment, the system switching time from SYS-A to SYS-B is defined as the time from the end of a frame of DSI-A data (DSI data transmitted by SYS-A, that is, display data of the first system) to the start of the next frame, that is, the time between the generation of the software interrupt signal of the current frame data of DSI-A and the capture of the next hardware falling edge signal of the display screen. This is because if the system switching time is during the transmission of a frame of DSI-A data, that is, before the generation of the software interrupt signal, the display screen cannot receive a complete frame of data. At this time, the display screen can only receive part of the frame data, resulting in abnormal phenomena such as partial black screen, white screen, or abnormal screen in the final display.

[0181] That is, the first target switching period is the period between the first node of generating the first software interrupt signal and the second node of generating the first hardware interrupt signal. The first software interrupt signal is generated in response to the transmission of a frame of first display data by the first system. The first hardware interrupt signal is generated in response to the display of a first display screen by the display unit. The first display screen is the screen corresponding to the first display data.

[0182] 4、SYS-A changes the switch (data, control) channel from SYS-A to SYS-B, and the SW signal changes from high level to low level. At this time, EN-A and EN-B are both high level, and the output of the data switch remains in the disabled state.

[0183] That is, through the switching control unit of the first system, the signal sent to the control switch unit is converted from the first level signal to the second level signal, and the signal sent to the data switch unit is converted from the third level signal to the fourth level signal, so as to switch the current system in which the control switch unit and the data switch unit are turned on from the first system to the second system.

[0184] 5、SYS-B receives the first CMD instruction, opens the DSI data output of the data switch, and the level of EN-B changes from high level to low level. At this time, the control switch is connected to SYS-B, so the output EN of the data switch also changes from high level to low level, and the output of the data switch becomes the allowed state.

[0185] That is, through the first system, the first command prompt CMD instruction is sent to the second system, the second system is triggered to enter the preset ready state, and the enable signal sent by the second system to the control switch unit is converted from the second enable signal to the first enable signal, the signal transmission state of the control switch unit controlling the data switch unit is triggered to the allowed state, so as to allow the display data of the second system to be output to the display unit.

[0186] In this specific embodiment, SYS-B enters the preset ready state after receiving the first CMD instruction, loads the corresponding components, sends DSI-B data (display data of SYS-B) to the data switch, and selects an appropriate time to change the level of EN-B from high level to low level to open the DSI data output of the data switch, and complete the picture switching after system switching.

[0187] After completing the system switching, SYS-B changes the level of EN-B to open the DSI data output of the data switch. The time node is similar to the time node of SYS-A performing system switching, and is selected to be after the end of DSI-B data to the beginning of the next frame, so as to ensure that the first frame displayed after the system switching is completed is a complete picture from SYS-B.

[0188] As shown in FIG. 11, the process of switching from SYS-A to SYS-B can be reflected by five signals of SYNC, DSI, EN, SW and CMD, wherein SYNC is a synchronization signal, DSI is a display serial interface signal, EN is an enable signal, SW is a switch control signal, and CMD is a first CMD instruction.

[0189] The embodiment receives the first switching instruction, and then SYS-A sends the first CMD instruction to SYS-B to wake up SYS-B and make it enter the preset ready state. After the current frame data transmission of DSI-A is completed, the EN signal is changed from low level to high level before the next frame data transmission of DSI-A starts, so that the output EN of the data switch is changed to the forbidden state, thereby closing the DSI data output of the data switch. Then, the SW signal is changed from high level to low level, so that the switch (data, control) channel is changed from SYS-A to SYS-B, and the system switching from SYS-A to SYS-B is completed. The dashed line part of the five signals with the same characteristics in FIG. 11 means that there is a short signal loss phenomenon caused by the handover period during the system switching from SYS-A to SYS-B. That is, during the system switching from SYS-A to SYS-B, the interrupt signal, communication signal and related peripheral resources managed by SYS-A are handed over to SYS-B. During the handover process, there is a short period of time when SYS-A and SYS-B cannot manage these interrupt signals, communication signals and related peripheral resources. The dashed line part of the DSI signal in FIG. 11 means that SYS-B discards part of the half-frame display data or one frame of complete display data that is not displayed (because even after switching to the SYS-B system, the display data output of the SYS-B system is not immediately allowed to be output to the display unit, but needs to be allowed to be output to the display unit at the first target switching period. The first target switching period refers to the transmission interval period between two frames of complete display data, which avoids the situation that part of the data in one frame of complete display data is truncated and recorded as all zero values due to the short period of time when both systems cannot respond during the handover period, thereby causing the front half frame of the display content to be lost, and further effectively preventing the display abnormal phenomenon such as black frame and screen flower from occurring). Then, after switching to SYS-B, SYS-B changes the EN signal from high level to low level before the next frame data transmission of DSI-B starts after the current frame data transmission of DSI-B is completed, so that the output EN of the data switch is changed to the allowed state, thereby turning on the DSI data output of the data switch, and displaying the picture corresponding to the next frame data of DSI-B.

[0190] Correspondingly, the dashed line part of DSI-B in FIG. 11 represents the DSI-B current frame data that should be transmitted to the display screen. Since the EN signal is changed from high level to low level after the transmission of the DSI-B current frame data, the DSI data output of the data switch is allowed, the half frame display data of the dashed line part of DSI-B (the half frame data can also be regarded as part of the complete DSI-B display data) is not actually transmitted to the display screen, and the display screen still displays the picture corresponding to the DSI-A in the solid line part of FIG. 11, that is, the picture corresponding to the DSI-A current frame data, that is, the first display picture, until the transmission of the DSI-B in the solid line part of FIG. 11, that is, the DSI-B next frame data, the display data from SYS-B is displayed, that is, the picture corresponding to the DSI-B next frame data. The situation that the display content in the second half frame is recorded as all zero values due to the incomplete transmission of the data part in a complete frame of display data and the display abnormal phenomenon such as black frame and screen flower is effectively prevented.

[0191] On the contrary, in the embodiment, when the display picture is switched from SYS-B to SYS-A, the process is as follows:

[0192] 1. The user clicks the icon to start the switching action.

[0193] In the embodiment, after the user clicks the picture corresponding to the switching system, the second system receives the second switching instruction generated by the operation to start the switching action and execute the system switching, that is, in the case that the currently running system is the second system, the currently running system is switched from the first system to the first system in response to the second switching instruction.

[0194] 2. SYS-B sends a second CMD instruction to SYS-A to notify SYS-A.

[0195] In the embodiment, after receiving the second switching instruction, SYS-B sends a second CMD instruction to SYS-A through bridging to notify SYS-A, wakes up SYS-A in advance, loads the necessary components, and prepares for the first time takeover of the security mobile phone after the switching, that is, during the system switching to the first system, the second system sends a second command prompt CMD instruction to the first system, wherein the second CMD instruction is used to trigger the first system to enter a preset ready state.

[0196] 3. SYS-B stops DSI data transmission. EN-B is changed from low level to high level, EN-A of SYS-A is high level at this time, the control switch is connected to SYS-B, and the output EN of the data switch is changed to the prohibited state, so that the DSI data output of the data switch is closed.

[0197] That is, the enable signal sent by the second system to the control switch unit is converted from the first enable signal to the second enable signal to prohibit the display data of the second system from being output to the display unit.

[0198] When the DSI-B current frame data is completed in transmission, a software interrupt signal is also generated to trigger the software interrupt function of SYS-B to inform SYS-B that the current frame data has been transmitted, and before the next frame data of DSI-B is transmitted, the software interrupt function of SYS-B captures the hardware falling edge signal of the display screen to trigger the transmission of the next frame data of DSI-B

[0199] In the embodiment, the system switching time from SYS-B to SYS-A is defined as the time between the end of a frame of DSI-B data of SYS-B and the start of the next frame, that is, the time between the generation of the software interrupt signal of the current frame data of DSI-B and the capture of the next hardware falling edge signal of the display screen. This is because if the system switching time is during the transmission of a frame of DSI-B data, that is, before the generation of the software interrupt signal, the display screen will not be able to receive a complete frame of data, and at this time the display screen can only receive part of the frame of data, resulting in abnormal phenomena such as partial black screen, white screen or abnormal screen in the final display.

[0200] That is, the second target switching period is the period between the third node of generating the second software interrupt signal and the fourth node of generating the second hardware interrupt signal, the second software interrupt signal is generated in response to the transmission of a frame of second display data by the second system, the second hardware interrupt signal is generated in response to the display of the second display screen by the display unit, and the second display screen is the screen corresponding to the first display data.

[0201] 4. SYS-A receives the notification and changes the switch (data, control) channel from SYS-B to SYS-A, and the SW signal changes from low level to high level. At this time, EN-A and EN-B are both high level, and the output of the data switch remains in the prohibited state.

[0202] That is, the first target CMD instruction is sent by the second system to the first system to trigger the switching control unit connected to the first system to convert the signal sent to the control switch unit from the second level signal to the first level signal, and the second target CMD instruction is sent by the second system to the first system to trigger the switching control unit connected to the first system to convert the signal sent to the data switch unit from the fourth level signal to the third level signal, so as to switch the current system that turns on the control switch unit and the data switch unit from the second system to the first system, and convert the enable signal sent by the second system to the control switch unit from the first enable signal to the second enable signal.

[0203] 5、SYS-A opens the DSI data output of the data switch, the level of EN-A changes from high level to low level, at this time the control switch is connected to SYS-A, so the output EN of the data switch also changes from high level to low level, and the output of the data switch becomes the allowed state.

[0204] That is, the first system sends the enable signal to the control switch unit, which is converted from the second enable signal to the first enable signal, triggering the control switch unit to control the signal transmission state of the data switch unit to the allowed state, to allow the DSP display data of the first system to be output to the display unit.

[0205] In the specific embodiment, SYS-A enters the preset ready state after receiving the second CMD instruction, loads the corresponding components, sends DSI-B data (display data of SYS-B) to the data switch, and selects an appropriate time to change the level of EN-A from high level to low level to open the DSI data output of the data switch, thereby completing the picture switching after the system switching.

[0206] After completing the system switching, SYS-A changes the level of EN-A to open the DSI data output of the data switch at a time node similar to the time node of SYS-B performing system switching, and selects a time after the end of a frame of DSI-A data to before the start of the next frame, to ensure that the first frame displayed after the system switching is complete is a complete picture from SYS-A.

[0207] As shown in FIG. 12, the process of switching from SYS-B to SYS-A can be reflected by five signals of SYNC, DSI, EN, SW and CMD, wherein SYNC is a synchronization signal, DSI is a display serial interface signal, EN is an enable signal, SW is a switch control signal, and CMD is a second CMD instruction.

[0208] The embodiment receives the second switching instruction, and then SYS-B sends a second CMD instruction (which can be an interrupt INF signal) to SYS-A to wake up SYS-A and make it enter a preset ready state. After the current frame data transmission of DSI-B is completed, the EN signal is changed from low to high before the next frame data transmission of DSI-B starts, so that the output EN of the data switch is changed to the forbidden state, the DSI data output of the data switch is closed, and then the system switching from SYS-B to SYS-A is completed. The dashed line part of the five signals with the same characteristics in FIG. 12 means that during the system switching from SYS-B to SYS-A, a short signal loss phenomenon caused by the handover period will occur, that is, during the handover of the interrupt signal, the communication signal and the related peripheral resources from SYS-B to SYS-A, there will be a short period when SYS-A and SYS-B cannot manage these interrupt signals, communication signals and related peripheral resources. The dashed line part of the DSI signal in FIG. 12 means that SYS-A discards the un-displayed half-frame display data (because even after switching to the SYS-A system, the display data output of the SYS-A system is not immediately allowed to the display unit, but needs to be allowed to the display unit in the second target switching period, which is the transmission interval period between two complete display data, to avoid the SYS-A system in a complete frame of display data, due to the short period of time during the handover period, both systems cannot respond, resulting in part of the data in a complete frame of data being truncated and recorded as all zero values, thereby causing the display content to appear in the first half frame, and thus effectively preventing the occurrence of black frame, screen flower and other display abnormalities. After switching to SYS-A, SYS-A changes the EN signal from high to low before the next frame data transmission of DSI-A starts after the current frame data transmission of DSI-A is completed, so that the output EN of the data switch is changed to the allowed state, thereby turning on the DSI data output of the data switch, and displaying the next frame of data corresponding to DSI-A.

[0209] The dashed line part of the DSI signal in FIG. 12, which is marked as DSI-B, indicates that the system B discards the un-displayed half-frame display data (the half-frame display data or also can be regarded as part of the complete display data in one frame). The dashed line part of DSI-B in FIG. 12 represents the DSI-B next frame data which should be transmitted to the display screen. Since the EN signal is changed from low level to high level before the DSI-B next frame data is transmitted, the DSI data output of the data switch is prohibited, and thus the DSI-B next frame data is not actually transmitted to the display screen. The display screen still displays the picture corresponding to the DSI-B in the solid line part of FIG. 12, that is, the picture corresponding to the current frame data of DSI-B, that is, the second display picture.

[0210] The dashed line part of the DSI signal in FIG. 12, which is marked as DSI-B, indicates that the system B discards the un-displayed half-frame display data (the half-frame display data or also can be regarded as part of the complete display data in one frame). The dashed line part of DSI-B in FIG. 12 represents the DSI-B next frame data which should be transmitted to the display screen. Since the EN signal is changed from low level to high level before the DSI-B next frame data is transmitted, the DSI data output of the data switch is prohibited, and thus the DSI-B next frame data is not actually transmitted to the display screen. The display screen still displays the picture corresponding to the DSI-B in the solid line part of FIG. 12, that is, the picture corresponding to the current frame data of DSI-B, that is, the second display picture.

[0211] The above examples are only used to assist understanding of the present application and do not constitute limitation on the switching method of the present application. More forms of simple transformation based on the technical concept are within the protection scope of the present application.

[0212] In addition, please refer to FIG. 13, which is a device structure schematic diagram of the hardware running environment involved in the switching method in the embodiment of the present application.

[0213] The present application also provides an electronic device, which comprises at least one processor and a memory connected with the at least one processor in communication; wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the switching method in the above embodiment.

[0214] Reference is now made to FIG. 13, which illustrates a structural diagram of an electronic device suitable for implementing embodiments of the present application. The electronic device in embodiments of the present application can include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Portable Application Description), a PMP (Portable Media Player), a car terminal (e.g., a car navigation terminal), and the like, as well as a stationary terminal such as a digital TV (Television), a desktop computer, and the like, or any electronic device capable of implementing the above functions. The electronic device illustrated in FIG. 13 is merely an example and should not impose any limitation on the functions and use range of embodiments of the present application.

[0215] As shown in FIG. 13, the electronic device can include a processing device 1001 (e.g., a central processor, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a ROM (Read Only Memory) 1002 or a program loaded from a storage device 1003 into a RAM (Random Access Memory) 1004. Various programs and data required for the operation of the electronic device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An I / O (Input / Output) interface 1006 is also connected to the bus. In general, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, and the like; an output device 1008 including, for example, an LCD (Liquid Crystal Display), a speaker, a vibrator, and the like; the storage device 1003 including, for example, a magnetic tape, a hard disk, and the like; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or via a wire to exchange data. Although the electronic device having various systems is illustrated, it should be understood that all of the illustrated systems are not required to be implemented or provided. More or less systems can be alternatively implemented or provided.

[0216] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program codes for executing the method shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiments disclosed in the present application are executed.

[0217] The electronic device provided by the present application adopts the switching method in the above-mentioned embodiments, and can at least solve the technical problem of display abnormalities such as black frames and screen flicker caused by switching between double systems in the related art. Compared with the prior art, the electronic device provided by the present application has the same beneficial effects as the switching method provided by the above-mentioned embodiments, and other technical features in the electronic device are the same as the features disclosed in the above-mentioned embodiments, which will not be repeated here.

[0218] Parts of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0219] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0220] In addition, the present application also provides a computer readable storage medium having computer readable program instructions (i.e. computer program) stored thereon, the computer readable program instructions being used to execute the steps of the switching method in the above-mentioned embodiments.

[0221] The computer readable storage medium provided in the application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination of the above. More specific examples of the computer readable storage medium may include, but are not limited to, an electric connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiment, the computer readable storage medium may be any tangible medium containing or storing a program that can be used or combined with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to an electric wire, an optical cable, an RF (Radio Frequency), and the like, or any suitable combination of the above.

[0222] The above computer readable storage medium may be contained in an electronic device, or may exist separately without being assembled into an electronic device.

[0223] The above computer readable storage medium carries one or more programs, when the one or more programs are executed by an electronic device having a first system and a second system, the electronic device is caused to: in a case where a currently running system is the first system, in response to a first switching instruction, switch the currently running system from the first system to the second system based on a first target switching period, wherein during system switching to the second system, the display unit of the electronic device keeps displaying a first display screen, and the first display screen is the last frame of the screen displayed before the first system performs system switching; wherein the first target switching period is the period between a first node generating a first software interrupt signal and a second node generating a first hardware interrupt signal, the first software interrupt signal is generated in response to the first system transmitting a frame of first display data, the first hardware interrupt signal is generated in response to the display unit displaying a first display screen, and the first display screen is the screen corresponding to the first display data.

[0224] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0225] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may

[0226] The modules involved in the embodiments of the present application can be implemented in the form of software or in the form of hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0227] The computer readable storage medium provided by the present application stores computer readable program instructions (i.e. computer program) for executing the steps of the switching method described above, and can at least solve the technical problem of display abnormalities such as black frames and screen flowers caused by switching between dual systems in the related art. Compared with the prior art, the computer readable storage medium provided by the present application has the same beneficial effects as the switching method provided by the above embodiments, and will not be described here.

[0228] In addition, the embodiment of the present application further provides a computer program product comprising a computer program, which, when executed by a processor, implements the steps of the switching method in the above embodiment.

[0229] The computer program product provided in the present application can at least solve the technical problem of display abnormalities such as black frames and screen flowers caused by switching between double systems in the related art. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of the present application are the same as those of the switching method provided in the above embodiment, and are not described here.

[0230] The above only describes some embodiments of the present application, and does not limit the patent scope of the present application. Any equivalent structural transformation, direct / indirect application in other related technical fields, or the like made by using the content of the present application specification and drawings is included in the patent protection scope of the present application.

Claims

1. A switching method applied to an electronic device having a first system and a second system, the method comprising: in a case where a currently running system is the first system, switching the currently running system from the first system to the second system based on a first target switching period in response to a first switching instruction, wherein during system switching to the second system, a display unit of the electronic device keeps displaying a first display picture, which is a picture of a last frame displayed before system switching of the first system is performed; wherein the first target switching period is a period between a first node at which a first software interrupt signal is generated and a second node at which a first hardware interrupt signal is generated, the first software interrupt signal being generated in response to the first system transmitting a frame of first display data, and the first hardware interrupt signal being generated in response to the display unit displaying a first display picture corresponding to the first display data.

2. The handover method of claim 1, wherein, the switching of the currently running system from the first system to the second system based on the first target switching period comprises: inhibiting output of display data of the first system to the display unit based on the first target switching period; switching a current system that controls the control switch unit and the data switch unit from the first system to the second system based on the first target switching period, wherein the control switch unit is configured to perform interaction of a control signal between the current system that is turned on and the display unit, and the data switch unit is configured to output display data of the current system that is turned on to the display unit; allowing output of display data of the second system to the display unit based on the first target switching period.

3. The handover method of claim 2, wherein, the inhibition of the output of the display data of the first system to the display unit based on the first target switching period comprises: based on the first target switching period, converting an enable signal sent by the first system to the control switch unit from a first enable signal to a second enable signal, the first enable signal being configured to trigger the control switch unit to control a signal transmission state of the data switch unit to be in an allowed state, and the second enable signal being configured to trigger the control switch unit to control the signal transmission state of the data switch unit to be in an inhibited state; wherein when the signal transmission state is in the allowed state, the data switch unit can normally output display data to the display unit, and when the signal transmission state is in the inhibited state, the data switch unit cannot normally output display data to the display unit.

4. The handover method of claim 3, wherein, the allowing of the output of the display data of the second system to the display unit based on the first target switching period comprises: based on the first target switching period, converting an enable signal sent by the second system to the control switch unit from the second enable signal to the first enable signal.

5. The handover method of claim 2, wherein, the switching of the current system that controls the control switch unit and the data switch unit from the first system to the second system based on the first target switching period comprises: based on the first target switching period, the switching control unit connected to the first system converts a signal sent to the control switch unit from a first level signal to a second level signal, wherein the control switch unit turns on the first system when the signal sent to the control switch unit is the first level signal, and the control switch unit turns on the second system when the signal sent to the control switch unit is the second level signal; and based on the first target switching period, the switching control unit connected to the first system converts a signal sent to the data switch unit from a third level signal to a fourth level signal, wherein the data switch unit turns on the first system when the signal sent to the data switch unit is the third level signal, and the data switch unit turns on the second system when the signal sent to the data switch unit is the fourth level signal.

6. The handover method of any of claims 1 to 5, wherein, The method further comprises: during system switching to the second system, sending a first command prompt (CMD) instruction from the first system to the second system, wherein the first CMD instruction is used to trigger the second system to enter a preset ready state.

7. The handover method of any of claims 1 to 5, wherein, The method further comprises: during system switching to the second system, the first system, the second system, and the display unit are all in a working state.

8. The handover method of claim 1, wherein, The method further comprises: in a case where the currently running system is the second system, in response to a second switching instruction, switching the currently running system from the second system to the first system based on a second target switching period, wherein during system switching to the first system, the display unit of the electronic device remains to display a second display screen, which is the last frame of the screen displayed by the second system before system switching is performed; wherein the second target switching period is a period between a third node at which a second software interrupt signal is generated and a fourth node at which a second hardware interrupt signal is generated, the second software interrupt signal is generated in response to the second system transmitting a frame of second display data, and the second hardware interrupt signal is generated in response to the display unit displaying a second display screen, which is a screen corresponding to the second display data.

9. The handover method of claim 8, wherein, The switching of the currently running system from the second system to the first system based on the second target switching period comprises: based on the second target switching period, disabling the output of display data of the second system to the display unit; based on the second target switching period, switching the currently running system from the second system to the first system, wherein the control switch unit is used to perform interaction of control signals between the currently running system and the display unit, and the data switch unit is used to output display data of the currently running system to the display unit; based on the second target switching period, enabling the output of display data of the first system to the display unit.

10. The handover method of claim 9, wherein, The switching from the second system to the first system of the current system in which the control switch unit and the data switch unit are turned on based on the second target switching period includes: sending a first target CMD instruction from the second system to the first system based on the second target switching period, wherein the first target CMD instruction is used to trigger a switching control unit connected to the first system to convert a signal sent to the control switch unit from a second level signal to a first level signal, wherein when the signal sent to the control switch unit is the first level signal, the control switch unit turns on the first system, and when the signal sent to the control switch unit is the second level signal, the control switch unit turns on the second system; and sending a second target CMD instruction from the second system to the first system based on the second target switching period, wherein the second target CMD instruction is used to trigger a switching control unit connected to the first system to convert a signal sent to the data switch unit from a fourth level signal to a third level signal, wherein when the signal sent to the data switch unit is the third level signal, the data switch unit turns on the first system, and when the signal sent to the data switch unit is the fourth level signal, the data switch unit turns on the second system.

11. An electronic device comprising: A memory, a processor, and a switching program stored on the memory and executable on the processor, wherein the switching program, when executed by the processor, implements the steps of the switching method according to any one of claims 1 to 10.

12. A computer readable storage medium, wherein, The computer readable storage medium stores a switching program, and the switching program, when executed by a processor, implements the steps of the switching method according to any one of claims 1 to 10.

13. A computer program product, wherein, The computer program product includes a switching program, and the switching program, when executed by a processor, implements the steps of the switching method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Screen image switching method and device based on system switching

    CN107678824A

  • Switching method, electronic equipment and computer readable storage medium

    CN117631808A

  • System and method of controlling software decompression through exceptions

    US20030041231A1