A display screen switching method, device, medium and computer program product

By detecting the synchronization signal of the display controller and transferring the pixel data to the queue, and switching the screen based on the synchronization timing signal, the problem of black screen and blurry screen caused by DVI interface switching is solved, and stable and smooth screen switching is achieved.

CN118259862BActive Publication Date: 2024-09-06SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410676975.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-06
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

During the process of switching monitor screens, the switch state of the DVI interface changes, causing data transmission delays and resulting in black, blurry or screen flickering.

Method used

Collect the synchronization signals of the first and second display controllers, detect the rising edge, output the pixel data of the current frame, and transfer the second pixel data to the first-in-first-out queue until the switching command is received based on the synchronization timing signal. Switch to avoid data loss.

Benefits of technology

Ensure that pixel data is fully displayed, avoid black screen, blurred screen or screen flickering, and improve the stability and smoothness of screen switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118259862B
    Figure CN118259862B
Patent Text Reader

Abstract

The present invention discloses a display screen switching method, device, medium and computer program product, and relates to the field of computer technology. When the first pixel data output by the first display control is displayed on the display, the method detects the rising edge of the second field synchronization signal, transfers the second pixel data to a first-in-first-out queue, until a switching instruction representing the display screen switching is received, a corresponding synchronization timing signal is obtained based on the second field synchronization signal, and the second pixel data cached in the first-in-first-out queue is output to the display for screen display according to the synchronization timing signal; at this time, since the first-in-first-out queue caches the second pixel data so that the screen can be switched according to the synchronization timing signal, the first pixel data will not be unable to be fully displayed, and the second pixel data can also be fully displayed on the display, thereby avoiding the black screen, flowery screen or screen flickering in the process of switching the display screen of the display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a display screen switching method, device, medium and computer program product. Background Art

[0002] For a general server composed of a host, a baseboard management controller (BMC), and a display, the BMC is internally integrated with: a first display controller (VGA controller, where the video graphics array (VGA)) controlled by the host, a central processing unit, and a second display controller (display control controller, which can also be expressed as a display controller) controlled by the BMC, and the first display controller and the second display controller are both connected from the corresponding digital video interface (Digital Visual Interface). Interface (DVI) outputs timing signals; in some scenarios, it is necessary to monitor abnormal behavior of the host. In this case, the BMC needs to display the real-time status information of the host on the display. The existing method for switching the display controller is: by additionally setting a control chip or a switching circuit, the picture displayed by the first display controller controlled by the host is switched to the picture displayed by the second display controller controlled by the BMC on the display; however, in the process of switching the displayed pictures, the DVI interface of the first display controller is switched from an open state to a closed state, and the DVI interface of the second display controller is switched from a closed state to an open state. Due to the change in the switch state of the DVI interface, a delay will occur in data transmission. Therefore, when one of the DVI interfaces outputs half of the pixel data, it will switch to the DVI interface corresponding to the other controller to output the other half of the pixel data. At this time, a black screen, a distorted screen or a flickering screen will appear on the monitor.

[0003] In view of the above-mentioned problems, finding out how to avoid a black screen, a distorted screen or a flickering screen during switching of the display screen of the display is a problem that those skilled in the art are trying their best to solve. Summary of the invention

[0004] The object of the present invention is to provide a display screen switching method, device, medium and computer program product, which are used to solve the problem that when one DVI interface outputs half of the pixel data during the display screen switching process, the DVI interface corresponding to another controller is switched to output the other half of the pixel data, resulting in a black screen, a distorted screen or a flickering screen on the display.

[0005] In order to solve the above technical problems, the present invention provides a method for switching display images, comprising:

[0006] Acquire a first field synchronization signal of a first display controller and detect a rising edge of the first field synchronization signal;

[0007] When the rising edge of the first field synchronization signal is detected, collecting the second field synchronization signal of the second display controller and detecting the rising edge of the second field synchronization signal;

[0008] When a rising edge of the second field synchronization signal is detected, first pixel data corresponding to a current frame of the first field synchronization signal is output, and second pixel data corresponding to the current frame of the second field synchronization signal is acquired;

[0009] Displaying a picture of the first display controller on a display according to the first pixel data;

[0010] Transferring the second pixel data to a first-in-first-out queue;

[0011] When receiving a switching instruction indicating that a display screen is switched, determining a corresponding synchronization timing signal based on the second field synchronization signal;

[0012] The screen of the second display controller is displayed on the display according to the synchronization timing signal and the second pixel data.

[0013] On the other hand, before acquiring the first field synchronization signal of the first display controller and detecting the rising edge of the first field synchronization signal, the method further includes:

[0014] Acquire the current picture displayed by the display;

[0015] Determining whether the current picture is a picture of the first display controller;

[0016] If the current picture is the picture of the first display controller, entering the step of acquiring the first field synchronization signal of the first display controller and detecting the rising edge of the first field synchronization signal;

[0017] If the current picture is not the picture of the first display controller, output a reset signal;

[0018] The display is controlled to display the screen of the first display controller according to the reset signal.

[0019] On the other hand, after transferring the second pixel data to the first-in-first-out queue, the method further includes:

[0020] Acquire a first starting time when a rising edge of a current frame of the first field synchronization signal appears and a second starting time when a rising edge of a next frame of the first field synchronization signal appears;

[0021] Subtracting the first start time from the second start time to obtain a preset duration representing receiving the switching instruction;

[0022] Determining whether the switching instruction is received within the preset time period;

[0023] If the switching instruction is not received within the preset time period, the second pixel data in the first-in-first-out queue is cleared, and the process returns to the step of displaying the screen of the first display controller on the display according to the first pixel data.

[0024] On the other hand, after receiving the switching instruction indicating switching of the display screen, and before determining the corresponding synchronization timing signal based on the second field synchronization signal, the method further includes:

[0025] Determining whether the first pixel data has been completely displayed on the display;

[0026] If the first pixel data is completely displayed on the display, the step of determining a corresponding synchronization timing signal based on the second field synchronization signal is entered;

[0027] If the first pixel data has not been completely displayed on the display, the screen of the first display controller is displayed on the display according to the remaining first pixel data.

[0028] On the other hand, it also includes:

[0029] When a rising edge of the next frame of the first field synchronization signal is detected, determining whether the digital video interface corresponding to the second display controller outputs the second pixel data;

[0030] If the digital video interface corresponding to the second display controller outputs the second pixel data, then entering the step of determining the corresponding synchronization timing signal based on the second field synchronization signal;

[0031] If the digital video interface corresponding to the second display controller does not output the second pixel data, the second pixel data is acquired in real time, and the screen of the second display controller is displayed in real time on the display according to the second pixel data.

[0032] On the other hand, determining that the digital video interface corresponding to the second display controller outputs the second pixel data includes:

[0033] Collecting a flag indicating that the second pixel data is valid;

[0034] Outputting a pixel valid signal indicating that the second pixel data is valid according to the flag;

[0035] The second pixel data is outputted at the digital video interface corresponding to the second display controller according to the pixel valid signal.

[0036] On the other hand, after outputting the first pixel data corresponding to the current frame of the first field synchronization signal and before displaying the screen of the first display controller on the display according to the first pixel data, the method further includes:

[0037] Obtaining a first timing requirement corresponding to the first display controller;

[0038] Resetting the first field synchronization signal according to the first timing requirement, and outputting a corresponding synchronization timing signal after the reset;

[0039] Correspondingly, the determining a corresponding synchronization timing signal based on the second field synchronization signal includes:

[0040] Obtaining a second timing requirement corresponding to the second display controller;

[0041] The second field synchronization signal is reset according to the second timing requirement, and a corresponding synchronization timing signal after the reset is output.

[0042] On the other hand, after displaying the screen of the second display controller on the display according to the synchronization timing signal and the second pixel data, the method further includes:

[0043] determining whether a switch-back instruction indicating switching from the screen of the second display controller back to the screen of the first display controller is received;

[0044] If the switch-back instruction is received, detecting a rising edge of the second field synchronization signal;

[0045] When a rising edge of the second field synchronization signal is detected, determining whether the first field synchronization signal is detected within a preset switching time;

[0046] If the first field synchronization signal is detected within the switching back preset time length, it is determined that the first display controller is not in a working state;

[0047] If the first field synchronization signal is detected within the switching back preset time length, it is determined that the first display controller is in a working state;

[0048] If the switch-back instruction is not received, the process returns to the step of displaying the screen of the second display controller on the display according to the synchronization timing signal and the second pixel data.

[0049] On the other hand, before determining whether the first field synchronization signal is detected within the preset switching time, the method further includes:

[0050] Acquire a third starting time when a rising edge of a current frame of the second field synchronization signal appears and a fourth starting time when a rising edge of a next frame of the second field synchronization signal appears;

[0051] Subtracting the third starting time from the fourth starting time to obtain a time difference;

[0052] The time difference is set as the switch back preset duration.

[0053] On the other hand, when it is determined that the first display controller is in the working state, the method further includes:

[0054] Outputting first pixel data corresponding to the current frame of the first field synchronization signal;

[0055] Transferring the first pixel data to a first-in-first-out queue;

[0056] When receiving the switch-back instruction, determining a corresponding synchronization timing signal based on the first field synchronization signal;

[0057] The screen of the second display controller is displayed on the display according to the synchronization timing signal and the first pixel data.

[0058] On the other hand, displaying the screen of the second display controller on the display according to the synchronization timing signal and the first pixel data includes:

[0059] Collecting a flag indicating that the first pixel data is valid;

[0060] Outputting a valid pixel signal indicating that the first pixel data is valid according to the flag;

[0061] The first pixel data is outputted at the digital video interface corresponding to the first display controller according to the effective pixel signal.

[0062] On the other hand, it also includes:

[0063] Acquire a first time when the screen of the second display controller is displayed and a second time when the switch back instruction is received;

[0064] Subtract the first moment from the second moment to obtain a determination duration;

[0065] Determine whether the determination time reaches the switch-back time;

[0066] If the determination time reaches the switch-back time, the step of determining whether a switch-back instruction representing switching from the screen of the second display controller back to the screen of the first display controller is received is entered;

[0067] If the determination time does not reach the switch-back time, the process ends.

[0068] In order to solve the above technical problems, the present invention further provides a display screen switching device, comprising:

[0069] A first acquisition module, used for acquiring a first field synchronization signal of a first display controller and detecting a rising edge of the first field synchronization signal;

[0070] A second acquisition module, configured to acquire a second field synchronization signal of a second display controller and detect a rising edge of the second field synchronization signal when a rising edge of the first field synchronization signal is detected;

[0071] a first output module, configured to output first pixel data corresponding to a current frame of the first field synchronization signal and obtain second pixel data corresponding to the current frame of the second field synchronization signal when a rising edge of the second field synchronization signal is detected;

[0072] A first display module, configured to display a picture of the first display controller on a display according to the first pixel data;

[0073] A first transfer module, used for transferring the second pixel data to a first-in-first-out queue;

[0074] A first determining module is used to determine a corresponding synchronization timing signal based on the second field synchronization signal when receiving a switching instruction representing switching of a display screen;

[0075] The second display module is used to display the screen of the second display controller on the display according to the synchronization timing signal and the second pixel data.

[0076] In order to solve the above technical problems, the present invention further provides a display screen switching device, comprising:

[0077] Memory for storing computer programs;

[0078] The processor is used to point to the computer program to implement the steps of the display screen switching method.

[0079] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for switching all display screens are implemented.

[0080] Compared with the prior art, the display screen switching method provided by the present invention has the beneficial effect that, when the first pixel data output by the first display control is displayed on the display, when the rising edge of the second field synchronization signal is detected, the second pixel data is transferred to the first-in-first-out queue until a switching instruction representing the display screen switching is received, a corresponding synchronization timing signal is obtained based on the second field synchronization signal, and the second pixel data cached in the first-in-first-out queue is output to the display for screen display according to the synchronization timing signal. At this time, since the first-in-first-out queue caches the second pixel data, the screen can be switched according to the synchronization timing signal. At this time, the situation that the first pixel data cannot be fully displayed will not occur, and the second pixel data can also be fully displayed on the display, thereby avoiding the black screen, flowery screen or screen flickering in the process of switching the display screen of the display.

[0081] In addition, displaying the first pixel data or the second pixel data on the display requires setting many prerequisites to ensure the stability of the final display. Among them, when the general server is in working condition, the screen corresponding to the first display controller is displayed by default. Therefore, if the general server cannot display the default screen when it starts working, it needs to be reset; in addition, in order to ensure the smoothness of screen switching, it is necessary to receive the switching instruction within the preset time; correspondingly, it is understandable that the screen displayed by the second display controller can be switched to the screen displayed by the first display controller. At this time, the first pixel data needs to be transferred to the first-in-first-out queue at the same time, and the corresponding synchronization timing signal is obtained based on the first field synchronization signal. According to the synchronization timing signal at this time, the first pixel data cached in the first-in-first-out queue is output to the display for screen display, which also avoids the black screen, flowery screen or screen flickering in the process of switching the display screen of the display.

[0082] The present invention also provides a display screen switching device, a medium and a computer program product, which have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0084] Figure 1 It is a structural diagram of an existing general server;

[0085] Figure 2 A timing waveform diagram of an existing display screen switching method;

[0086] Figure 3A schematic diagram of the structure of a server provided by an embodiment of the present invention;

[0087] Figure 4 A flow chart of a method for switching display screens provided by an embodiment of the present invention;

[0088] Figure 5 A timing waveform diagram of a display screen switching method provided by an embodiment of the present invention;

[0089] Figure 6 A schematic diagram of the structure of a display screen switching device provided by an embodiment of the present invention;

[0090] Figure 7 A schematic diagram of the structure of a display screen switching device provided by an embodiment of the present invention.

[0091] Among them, 10 is a host, 11 is a baseboard management controller, 12 is a display, 13 is a first display controller, 14 is a second display controller, 15 is a central processing unit, 16 is a switch switching circuit, 17 is a digital-to-analog converter, 18 is a timing detection module, 19 is an acquisition module, 20 is a first first-in-first-out queue corresponding to the first display controller, 21 is a second first-in-first-out queue corresponding to the second display controller, 22 is a first timing synchronization module, and 23 is a second timing synchronization module. DETAILED DESCRIPTION

[0092] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0093] The core of the present invention is to provide a method, device, medium and computer program product for switching display images, which can avoid the occurrence of a black screen, a distorted screen or a flickering screen on the display during the process of switching the displayed images.

[0094] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0095] Figure 1 It is a structural diagram of an existing general server, such as Figure 1As shown, the universal server is provided with a host 10, a BMC 11, and a display 12; and the host is connected to the BMC through a data transmission interface or a wire with a fixed transmission protocol, and the BMC is connected to the display through a data transmission interface or a wire with a fixed transmission protocol; a first display controller 13 is also provided in the BMC, and in some embodiments, the first display controller is a VGA controller, and the VGA controller is controlled by the host; and a central processing unit 15 for outputting corresponding operation instructions for implementing multiple functions; a second display controller 14 is also provided, and in some embodiments, the second display controller is a display controller, and the display controller is controlled by the BMC; and the first display controller, the central processing unit, and the second display controller are interconnected through a data transmission interface or a wire with a fixed transmission protocol, and the first display controller and the second display controller output corresponding timing signals through a DVI interface, at which time the timing signals can be divided into a first field synchronization signal corresponding to the first display controller and a second field synchronization signal corresponding to the second display controller, and the first field synchronization signal and the second field synchronization signal are both transmitted to a switch switching circuit 16, and the digital signal is converted into an analog signal through a digital-to-analog converter 17 and output to the display, so as to display the picture on the display.

[0096] In the existing method of switching screens, during the process of switching the displayed screen, the DVI interface of the first display controller is switched from an open state to a closed state, and the DVI interface of the second display controller is switched from a closed state to an open state. Due to the change in the switch state of the DVI interface, a delay will occur in data transmission. Therefore, when one of the DVI interfaces outputs half of the pixel data, it will switch to the DVI interface corresponding to the other controller to output the other half of the pixel data. At this time, a black screen, a distorted screen or a flickering screen will appear on the display.

[0097] Table 1 is a signal description table. As shown in Table 1, VGA_fp_clk is the pixel clock signal output by the VGA controller (recorded as T1), VGA_vsync is the first field synchronization signal output by the VGA controller (recorded as T2), VGA_fp_data is the first pixel data output by the VGA controller (recorded as T3), and the first pixel data is a 24-bit data string; display_fp_clk is the pixel clock signal output by the display controller (recorded as T4), and display_vsync is the second field synchronization signal output by the display controller (recorded as T5), display_fp_data is the second pixel data output by the display controller (recorded as T6), and the second pixel data is a 24-bit data string; sel_vga_display is the selected signal of the selected VGA controller or display controller output by the central processing unit (recorded as T7); out_fp_clk is the pixel clock signal output by the BMC (recorded as T8), out_vsync is the field synchronization signal output by the BMC (recorded as T9), and out_fp_data is the output pixel data output by the BMC (recorded as T10);

[0098] Table 1 Signal description table

[0099]

[0100] Figure 2 The timing waveform diagram of the existing display screen switching method is as follows: Figure 2 As shown, taking the sel_vga_display signal (selected signal) as a condition, when sel_vga_display is high, the VGA controller is selected to output the first field synchronization signal and the corresponding first pixel data. At this time, the output pixel data obtained at the output end of the BMC is the VGA_fp_data corresponding to the high level of sel_vga_display; when sel_vga_display is low, the display controller is selected to output the second field synchronization signal and the corresponding second pixel data. At this time, the output pixel data obtained at the output end of the BMC is the display_fp_data corresponding to the low level of sel_vga_display; the output pixel data obtained at this time is the output pixel data obtained by combining VGA_fp_data and display_fp_data, which will cause a black screen, a flowery screen or a flickering screen on the display.

[0101] Figure 3 A schematic diagram of the structure of a server provided by an embodiment of the present invention, such as Figure 3As shown, the server is provided with a host 10, a BMC 11, and a display 12; and the host is connected to the BMC through a data transmission interface or a wire with a fixed transmission protocol, and the BMC is connected to the display through a data transmission interface or a wire with a fixed transmission protocol; a first display controller 13 is also provided in the BMC, and in some embodiments, the first display controller is a VGA controller, and the VGA controller is controlled by the host; and a central processing unit 15 for outputting corresponding operation instructions for implementing multiple functions; a second display controller 14 is also provided, and in some embodiments, the second display controller is a display controller, and the display controller is controlled by the BMC; and the first display controller, the central processing unit, and the second display controller are interconnected through a data transmission interface or a wire with a fixed transmission protocol, and the first display controller and the second display controller output corresponding timing signals to the acquisition module 19 through the DVI interface, and at this time the timing signal can be divided into a first field synchronization signal corresponding to the first display controller and a second field synchronization signal corresponding to the second display controller , the first field synchronization signal and the second field synchronization signal are transmitted to the corresponding first timing synchronization module 22 and the second timing synchronization module 23, and the first pixel data is stored in the first first-in-first-out queue 20 corresponding to the first display controller, and the second pixel data is stored in the second first-in-first-out queue 21 corresponding to the second display controller (wherein the first-in-first-out queue is divided into a first first-in-first-out queue and a second first-in-first-out queue), and the signals and data in the first timing synchronization module, the second timing synchronization module, the first first-in-first-out queue corresponding to the first display controller, and the second first-in-first-out queue corresponding to the second display controller are transmitted to the switch switching circuit 16, and the digital signal is converted into an analog signal through the digital-to-analog converter 17 and output to the display, so as to display the corresponding first display controller or second display controller screen on the display. In addition, in this embodiment, a timing detection module 18 is also provided, which is used to detect the rising edge of the first field synchronization signal corresponding to the first display controller and the second field synchronization signal corresponding to the second display controller, and execute the corresponding operation instruction when a certain rising edge occurs;

[0102] It should also be noted that the acquisition module (which can be denoted as Cap_ctrl) is used to control the entire data acquisition process, including edge detection of the first field synchronization signal and the second field synchronization signal, and acquisition and output of the signal output by the DVI interface. Control the acquired first pixel data and second pixel data to enter the corresponding first-in-first-out queue (FIFO) and read the first pixel data and second pixel data from the corresponding first-in-first-out queue during the display period of the effective pixel; the acquisition module is also used to detect and process the timing of the first field synchronization signal and the second field synchronization signal output by the VGA controller and the display controller through the DVI interface, and provide them to the first timing synchronization module and the second timing synchronization module for generating a new corresponding reset field synchronization signal; it should be noted that the new reset field synchronization signal output by the first timing synchronization module is the same as the timing output by the VGA controller; the new reset field synchronization signal output by the second timing synchronization module is the same as the timing output by the display controller; and the field synchronization signal output by the reset first timing synchronization module can be modulated to have the same timing as the field synchronization signal output by the reset second timing synchronization module; at this time, it is not necessary to obtain the waveform diagram based on the high and low levels of the sel_vga_display signal;

[0103] In addition, since the VGA controller is controlled by the host, the BMC cannot sense whether the current VGA controller is in working state, so it is necessary to set a timing detection module to detect whether the DVI interface of the current VGA controller is using the DVI interface; it should be noted that the timing detection module can be understood as a counter. When the timing of the DVI interface output is obtained and the level signal on the DVI interface is reversed, it is determined that the timing output is performed through the DVI interface; if the counter count value reaches 1 / 60s and there is no change in the level signal of the DVI interface, it is determined that the timing output is not performed through the DVI interface;

[0104] The first FIFO queue corresponding to the first display controller is used to cache the first pixel data outputted by the VGA controller; the second FIFO queue corresponding to the second display controller is used to cache the second pixel data outputted by the display controller; the read / write enable and reset / clear control operations are all controlled by the acquisition module, which supports caching a maximum of one frame of image, thus saving resource consumption inside the BMC;

[0105] Taking the case where the picture currently displayed on the monitor is the picture displayed by the VGA controller as an example, when a switching command is received, the acquisition module reads the second pixel data of the DVI interface of the display controller and writes it into the first first-in-first-out queue when detecting the rising edge of the first field synchronization signal, then detects the rising edge of the next frame of the first field synchronization signal and reads the second pixel data, so that the second timing synchronization module starts to generate the same timing as the display controller, controls the switch switching circuit to switch the picture, and displays the picture of the second display controller on the monitor.

[0106] Figure 4 A flow chart of a method for switching a display screen provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the display screen switching method includes:

[0107] S40: collecting a first field synchronization signal from the first display controller and detecting a rising edge of the first field synchronization signal;

[0108] S41: when a rising edge of the first field synchronization signal is detected, collecting a second field synchronization signal of the second display controller and detecting a rising edge of the second field synchronization signal;

[0109] S42: when a rising edge of the second field synchronization signal is detected, outputting first pixel data corresponding to the current frame of the first field synchronization signal, and acquiring second pixel data corresponding to the current frame of the second field synchronization signal;

[0110] S43: Displaying a picture of the first display controller on the display according to the first pixel data;

[0111] S44: transferring the second pixel data to a first-in-first-out queue;

[0112] S45: upon receiving a switching instruction indicating switching of a display screen, determining a corresponding synchronization timing signal based on the second field synchronization signal;

[0113] S46: Displaying the picture of the second display controller on the display according to the synchronization timing signal and the second pixel data.

[0114] It should be noted that the display may be set to other devices capable of realizing a display function. In this embodiment, the display device is not limited to being a display, and a variety of implementation methods may be determined according to specific real-time scenarios.

[0115] In this embodiment, when the first pixel data output by the first display control is displayed on the display, when the rising edge of the second field synchronization signal is detected, the second pixel data is transferred to the first-in-first-out queue until a switching instruction representing the switching of the display screen is received, and the corresponding synchronization timing signal is obtained based on the second field synchronization signal, and the second pixel data cached in the first-in-first-out queue is output to the display for screen display according to the synchronization timing signal. At this time, since the first-in-first-out queue caches the second pixel data, it is possible to switch the screen according to the synchronization timing signal. At this time, the situation where the first pixel data cannot be fully displayed will not occur, and the second pixel data can also be fully displayed on the display, thereby avoiding the black screen, flowery screen or screen flickering in the process of switching the display screen of the display.

[0116] In addition, before collecting the first field synchronization signal of the first display controller and detecting the rising edge of the first field synchronization signal, the method further includes:

[0117] Get the current screen displayed by the monitor;

[0118] Determine whether the current screen is the screen of the first display controller;

[0119] If the current picture is a picture of the first display controller, the step of acquiring a first field synchronization signal of the first display controller and detecting a rising edge of the first field synchronization signal is entered;

[0120] If the current picture is not the picture of the first display controller, a reset signal is output;

[0121] The display is controlled to display the screen of the first display controller according to the reset signal.

[0122] In addition, before obtaining the current screen displayed on the monitor, it also includes:

[0123] Determine whether the server is started for the first time;

[0124] If it is the first time to start the computer, the process will be to obtain the current screen displayed on the monitor;

[0125] If it is not the first time to start the machine, it is determined whether to execute the switch command or the switch back command according to the current screen.

[0126] In the present embodiment, it should be noted that when the server is powered on for the first time, the default picture displayed on the monitor is the picture output by the first pixel data corresponding to the VGA controller controlled by the host. Therefore, during the use of the server, when it is powered on for the first time, if the current picture displayed on the monitor is not the picture of the first display controller, a reset signal is output; and the monitor is controlled to display the picture of the first display controller according to the reset signal; at this time, the reset signal is represented by a data string. In the present embodiment, the representation of the reset signal can be set to be represented by a 2-bit, 4-bit, or 8-bit data string. Examples of this are: 01, 1101, 10100010, etc. It can be understood that the above-mentioned embodiments are only a few of many embodiments, and do not limit the reset signal in the present embodiment. Moreover, the maximum number of bits of the reset signal should not exceed 32 bits, and the reset signal represented by the data string is binary data.

[0127] When the server is not powered on for the first time, a switch command can be executed to switch the screen displayed by the VGA controller to the screen displayed by the display controller; a switch back command can also be executed to switch the screen displayed by the display controller to the screen displayed by the VGA controller. Therefore, in order to determine the method of switching screens and improve the accuracy of switching, it is necessary to limit whether the server is powered on for the first time.

[0128] In some embodiments, after transferring the second pixel data to the first-in-first-out queue, the method further includes:

[0129] Acquire a first starting time when a rising edge of a current frame of a first field synchronization signal appears and a second starting time when a rising edge of a next frame of the first field synchronization signal appears;

[0130] Subtracting the first start time from the second start time to obtain a preset duration representing receiving the switching instruction;

[0131] Determining whether a switching instruction is received within a preset time period;

[0132] If the switching instruction is not received within the preset time, the second pixel data in the first-in-first-out queue is cleared, and the process returns to the step of displaying the screen of the first display controller on the display according to the first pixel data.

[0133] In order to improve the efficiency of switching screens, a preset time is set so that when no switching command is received within the preset time, the screen displayed by the VGA controller continues to be displayed. At this time, the second pixel data stored in the first-in-first-out queue needs to be cleared to ensure that there is sufficient space in the first-in-first-out queue to store the second pixel data collected corresponding to the next frame signal.

[0134] In some embodiments, after receiving a switching instruction indicating that a display screen is switched, and before determining a corresponding synchronization timing signal based on the second field synchronization signal, the method further includes:

[0135] Determining whether the first pixel data has been completely displayed on the display;

[0136] If the first pixel data is completely displayed on the display, the step of determining a corresponding synchronization timing signal based on the second field synchronization signal is entered;

[0137] If the first pixel data has not been completely displayed on the display, the screen of the first display controller is displayed on the display according to the remaining first pixel data.

[0138] In order to avoid the problem of screen distortion caused by the first pixel data directly overlapping with the second pixel data before being fully displayed, it is necessary to display the first pixel data first and then continue to display the second pixel data, so as to avoid overlap between the first pixel data and the second pixel data, and at the same time avoid loss or unnecessary increase of pixel data, and also avoid the problem of screen distortion.

[0139] In some embodiments, it also includes:

[0140] When a rising edge of the next frame of the first field synchronization signal is detected, determining whether the digital video interface corresponding to the second display controller outputs the second pixel data;

[0141] If the digital video interface corresponding to the second display controller outputs the second pixel data, then the step of determining the corresponding synchronization timing signal based on the second field synchronization signal is entered;

[0142] If the digital video interface corresponding to the second display controller does not output the second pixel data, the second pixel data is acquired in real time, and the picture of the second display controller is displayed on the display in real time according to the second pixel data.

[0143] At this time, it is necessary to determine the working status of the DVI interface, so that when the DVI interface is in working status, the corresponding synchronization timing signal will be determined according to the second field synchronization signal output through the DVI interface, and the second pixel data in the cache and the first-in-first-out queue will be displayed.

[0144] In some embodiments, determining that the digital video interface corresponding to the second display controller outputs the second pixel data includes:

[0145] Collecting a flag indicating that the second pixel data is valid;

[0146] Outputting a pixel valid signal indicating that the second pixel data is valid according to the flag;

[0147] The second pixel data is outputted at a digital video interface corresponding to the second display controller according to the pixel valid signal.

[0148] In order to avoid invalid pixel data being output to the display, resulting in a black screen on the display, it is necessary to find the pixel valid signal set for the pixel data. When the pixel valid signal is detected, the second pixel data is output at the digital video interface corresponding to the second display controller.

[0149] In some embodiments, after outputting the first pixel data corresponding to the current frame of the first field synchronization signal and before displaying the picture of the first display controller on the display according to the first pixel data, the method further includes:

[0150] Obtaining a first timing requirement corresponding to the first display controller;

[0151] Resetting the first field synchronization signal according to the first timing requirement, and outputting the corresponding synchronization timing signal after the reset;

[0152] Correspondingly, determining the corresponding synchronization timing signal based on the second field synchronization signal includes:

[0153] Obtaining a second timing requirement corresponding to a second display controller;

[0154] The second field synchronization signal is reset according to the second timing requirement, and a corresponding synchronization timing signal after the reset is output.

[0155] At this time, in order to ensure timing synchronization, a first timing requirement and a second timing requirement are defined for the first display controller and the second display controller respectively, and the corresponding synchronization timing signals are output after reset; it should be noted that the timing of the synchronization timing signal after the first field synchronization signal is reset according to the first timing requirement is the same as the timing of the synchronization timing signal after the second field synchronization signal is reset according to the second timing requirement, thereby achieving timing synchronization.

[0156] In some embodiments, after displaying the picture of the second display controller on the display according to the synchronization timing signal and the second pixel data, the method further includes:

[0157] Determining whether a switch-back instruction representing switching from the screen of the second display controller back to the screen of the first display controller is received;

[0158] If a switch-back instruction is received, detecting a rising edge of a second field synchronization signal;

[0159] When a rising edge of the second field synchronization signal is detected, determining whether the first field synchronization signal is detected within a preset switching time period;

[0160] If the first field synchronization signal is detected within the preset switching time, it is determined that the first display controller is not in the working state;

[0161] If the first field synchronization signal is detected within the preset switching time, it is determined that the first display controller is in the working state;

[0162] If the switch-back instruction is not received, the process returns to the step of displaying the picture of the second display controller on the display according to the synchronous timing signal and the second pixel data.

[0163] It should be noted that when the server is powered on for the first time, the default picture displayed on the monitor is the picture output by the first pixel data corresponding to the VGA controller controlled by the host. Therefore, during the use of the server, when it is powered on for the first time, if the current picture displayed on the monitor is not the picture of the first display controller, a reset signal is output; and the monitor is controlled to display the picture of the first display controller according to the reset signal;

[0164] When the server is not powered on for the first time, a switch command can be executed to switch the screen displayed by the VGA controller to the screen displayed by the display controller; a switch back command can also be executed to switch the screen displayed by the display controller to the screen displayed by the VGA controller. Therefore, in order to determine the method of switching screens and improve the accuracy of switching, it is necessary to limit whether the server is powered on for the first time.

[0165] In some embodiments, before determining whether the first field synchronization signal is detected within the preset switching time, the method further includes:

[0166] Acquire a third starting time when a rising edge of a current frame of the second field synchronization signal appears and a fourth starting time when a rising edge of a next frame of the second field synchronization signal appears;

[0167] Subtract the third start time from the fourth start time to obtain a time difference;

[0168] Set the time difference to switch back to the preset duration.

[0169] In order to improve the efficiency of switching screens, the switching back duration is set so that when no switching back instruction is received within the switching back duration, the screen corresponding to the display controller continues to be displayed. At the same time, the first pixel data stored in the first-in-first-out queue needs to be cleared to ensure that there is sufficient space in the first-in-first-out queue to store the first pixel data corresponding to the next frame signal.

[0170] In some embodiments, when determining that the first display controller is in the working state, the method further includes:

[0171] Outputting first pixel data corresponding to the current frame of the first field synchronization signal;

[0172] Transferring the first pixel data to a first-in-first-out queue;

[0173] When receiving the switch-back instruction, determining a corresponding synchronization timing signal based on the first field synchronization signal;

[0174] The picture of the second display controller is displayed on the display according to the synchronous timing signal and the first pixel data.

[0175] In this embodiment, when it is determined that the first display controller is in a working state, the first pixel data corresponding to the current frame of the first field synchronization signal is output, and the first pixel data is transferred to a first-in-first-out queue until a switch-back instruction representing a display screen switch is received, and the corresponding synchronization timing signal is determined based on the first field synchronization signal, and the first pixel data cached in the first-in-first-out queue is output to the display for screen display according to the synchronization timing signal. At this time, since the first-in-first-out queue caches the first pixel data, it is possible to switch the screen according to the synchronization timing signal. At this time, the second pixel data will not be unable to be fully displayed, and the second pixel data can also be fully displayed on the display, thereby avoiding the black screen, flowery screen or screen flickering in the process of switching the display screen of the display.

[0176] In some embodiments, displaying a picture of the second display controller on the display according to the synchronization timing signal and the first pixel data includes:

[0177] Collecting a flag indicating that the first pixel data is valid;

[0178] Outputting a valid pixel signal indicating that the first pixel data is valid according to the flag;

[0179] The first pixel data is outputted at a digital video interface corresponding to the first display controller according to the effective pixel signal.

[0180] In order to avoid invalid pixel data being output to the display, resulting in a black screen on the display, it is necessary to find a pixel valid signal set for the pixel data. When the pixel valid signal is detected, the first pixel data is output at the digital video interface corresponding to the first display controller.

[0181] Correspondingly, it also includes:

[0182] Acquire a first time when a screen of the second display controller is displayed and a second time when a switch-back instruction is received;

[0183] Subtract the first moment from the second moment to obtain the judgment duration;

[0184] Determine whether the determination time reaches the switch-back time;

[0185] If the determination time reaches the switch-back time, the step of determining whether a switch-back instruction representing switching from the screen of the second display controller back to the screen of the first display controller is received is entered;

[0186] If the judgment time does not reach the switch-back time, the process ends.

[0187] In order to shorten the screen switching time and improve the screen switching efficiency, it is necessary to execute the switch back instruction within a fixed time. When the judgment time reaches the switch back time, a switch back instruction representing the switch from the screen of the second display controller back to the screen of the first display controller is received, and the display screen of the display is switched to the screen of the first display controller according to the switch back instruction.

[0188] Figure 5 A timing waveform diagram of a display screen switching method provided by an embodiment of the present invention, such as Figure 5 As shown in the figure, the time1 stage (first stage) is when the VGA display controller starts to display the picture on the monitor, and starts to obtain the second pixel data after display_vsync, and then outputs and displays on the monitor according to the second pixel data after receiving the switching command in the time2 stage (second stage); correspondingly, the second pixel data is also obtained in the time3 stage (third stage). Figure 5 The waveform shown in indicates that if no switching command is received in the time3 stage (the third stage), the second pixel data in the first-in-first-out queue will be cleared at the beginning of the time4 stage (the fourth stage), and other operations will continue to be performed according to the subsequent timing.

[0189] In the above embodiment, the display screen switching method is described in detail, and the present invention also provides a display screen switching device corresponding to an embodiment. It should be noted that the present invention describes the device embodiment from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.

[0190] Figure 6 A schematic diagram of a display screen switching device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the present invention also provides a display screen switching device, comprising:

[0191] A first acquisition module 60, used for acquiring a first field synchronization signal of a first display controller and detecting a rising edge of the first field synchronization signal;

[0192] The second acquisition module 61 is used to acquire the second field synchronization signal of the second display controller and detect the rising edge of the second field synchronization signal when the rising edge of the first field synchronization signal is detected;

[0193] The first output module 62 is used to output the first pixel data corresponding to the current frame of the first field synchronization signal and obtain the second pixel data corresponding to the current frame of the second field synchronization signal when the rising edge of the second field synchronization signal is detected;

[0194] A first display module 63, used for displaying a screen of the first display controller on a display according to the first pixel data;

[0195] A first transfer module 64, used for transferring the second pixel data to a first-in-first-out queue;

[0196] A first determination module 65 is configured to determine a corresponding synchronization timing signal based on the second field synchronization signal when receiving a switching instruction representing switching of a display screen;

[0197] The second display module 66 is used to display the screen of the second display controller on the display according to the synchronization timing signal and the second pixel data.

[0198] In addition, the device also includes the following modules:

[0199] In some embodiments, before acquiring the first field synchronization signal of the first display controller and detecting the rising edge of the first field synchronization signal, the method further includes:

[0200] A first acquisition module, used to acquire the current picture displayed by the display;

[0201] A first judging module, used to judge whether the current picture is a picture of the first display controller;

[0202] If the current picture is a picture of the first display controller, the step of acquiring a first field synchronization signal of the first display controller and detecting a rising edge of the first field synchronization signal is entered;

[0203] If the current picture is not the picture of the first display controller, triggering the second output module to output a reset signal;

[0204] The third display module is used to control the display to display the screen of the first display controller according to the reset signal.

[0205] In some embodiments, after transferring the second pixel data to the first-in-first-out queue, the method further includes:

[0206] A second acquisition module, used for acquiring a first starting time of a rising edge of a current frame of a first field synchronization signal and a second starting time of a rising edge of a next frame of the first field synchronization signal;

[0207] A first difference module is used to make a difference between the first start time and the second start time to obtain a preset duration representing receiving the switching instruction;

[0208] The second determination module is used to determine whether a switching instruction is received within a preset time period;

[0209] If no switching instruction is received within the preset time, the clearing module is triggered to clear the second pixel data in the first-in-first-out queue and return to the step of displaying the screen of the first display controller on the display according to the first pixel data.

[0210] In some embodiments, after receiving a switching instruction indicating that a display screen is switched, and before determining a corresponding synchronization timing signal based on the second field synchronization signal, the method further includes:

[0211] A third judgment module, used to judge whether the first pixel data has been completely displayed on the display;

[0212] If the first pixel data is completely displayed on the display, the step of determining a corresponding synchronization timing signal based on the second field synchronization signal is entered;

[0213] If the first pixel data has not been completely displayed on the display, the fourth display module is triggered to display the screen of the first display controller on the display according to the remaining first pixel data.

[0214] In some embodiments, it also includes:

[0215] A fourth determination module, configured to determine whether a digital video interface corresponding to the second display controller outputs second pixel data when a rising edge of the next frame of the first field synchronization signal is detected;

[0216] If the digital video interface corresponding to the second display controller outputs the second pixel data, then the step of determining the corresponding synchronization timing signal based on the second field synchronization signal is entered;

[0217] If the digital video interface corresponding to the second display controller does not output the second pixel data, the third acquisition module is triggered to acquire the second pixel data in real time, and display the screen of the second display controller on the display in real time according to the second pixel data.

[0218] In some embodiments, determining that the digital video interface corresponding to the second display controller outputs the second pixel data includes:

[0219] A third acquisition module, used for acquiring a flag indicating that the second pixel data is valid;

[0220] A third output module, used for outputting a pixel valid signal indicating that the second pixel data is valid according to the flag;

[0221] The fourth output module is used to output the second pixel data at the digital video interface corresponding to the second display controller according to the pixel valid signal.

[0222] In some embodiments, after outputting the first pixel data corresponding to the current frame of the first field synchronization signal and before displaying the picture of the first display controller on the display according to the first pixel data, the method further includes:

[0223] A fourth acquisition module, used to acquire a first timing requirement corresponding to the first display controller;

[0224] A fifth output module, used for resetting the first field synchronization signal according to the first timing requirement, and outputting a corresponding synchronization timing signal after the reset;

[0225] Correspondingly, determining the corresponding synchronization timing signal based on the second field synchronization signal includes:

[0226] A fifth acquisition module, used to acquire a second timing requirement corresponding to the second display controller;

[0227] The sixth output module is used to reset the second field synchronization signal according to the second timing requirement and output the corresponding synchronization timing signal after the reset.

[0228] In some embodiments, after displaying the picture of the second display controller on the display according to the synchronization timing signal and the second pixel data, the method further includes:

[0229] A fifth determination module is used to determine whether a switch-back instruction representing switching from the screen of the second display controller back to the screen of the first display controller is received;

[0230] If a switch-back instruction is received, a detection module is triggered to detect a rising edge of a second field synchronization signal;

[0231] When the rising edge of the second field synchronization signal is detected, a sixth judgment module is triggered to judge whether the first field synchronization signal is detected within the preset switching time length;

[0232] If the first field synchronization signal is detected within the preset switching time, a second determination module is triggered to determine that the first display controller is not in a working state;

[0233] If the first field synchronization signal is detected within the preset switching time, a third determination module is triggered to determine that the first display controller is in a working state;

[0234] If the switch-back instruction is not received, the process returns to the step of displaying the picture of the second display controller on the display according to the synchronous timing signal and the second pixel data.

[0235] In some embodiments, before determining whether the first field synchronization signal is detected within the preset switching time, the method further includes:

[0236] A sixth acquisition module, used for acquiring a third starting time of a rising edge of a current frame of the second field synchronization signal and a fourth starting time of a rising edge of a next frame of the second field synchronization signal;

[0237] A second subtraction module is used to subtract the third start time from the fourth start time to obtain a time difference;

[0238] The setting module is used to set the time difference to switch back to the preset duration.

[0239] In some embodiments, when determining that the first display controller is in the working state, the method further includes:

[0240] A seventh output module, used for outputting first pixel data corresponding to a current frame of a first field synchronization signal;

[0241] A second transfer module, used for transferring the first pixel data to a first-in-first-out queue;

[0242] A fourth determination module, configured to determine a corresponding synchronization timing signal based on the first field synchronization signal when receiving a switch-back instruction;

[0243] The fifth display module is used to display the picture of the second display controller on the display according to the synchronous timing signal and the first pixel data.

[0244] In some embodiments, displaying a picture of the second display controller on the display according to the synchronization timing signal and the first pixel data includes:

[0245] A fourth acquisition module, used for acquiring a flag indicating that the first pixel data is valid;

[0246] An eighth output module, configured to output a valid pixel signal indicating that the first pixel data is valid according to the flag;

[0247] The ninth output module is used to output the first pixel data at the digital video interface corresponding to the first display controller according to the effective pixel signal.

[0248] In some embodiments, it also includes:

[0249] A seventh acquisition module, used to acquire a first moment of displaying the screen of the second display controller and a second moment of receiving a switch-back instruction;

[0250] A third subtraction module is used to subtract the first moment from the second moment to obtain a determination duration;

[0251] The seventh judgment module is used to judge whether the judgment time reaches the switching back time;

[0252] If the determination time reaches the switch-back time, the step of determining whether a switch-back instruction representing switching from the screen of the second display controller back to the screen of the first display controller is received is entered;

[0253] If the judgment time does not reach the switch-back time, the process ends.

[0254] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0255] Figure 7 A schematic diagram of a display screen switching device provided by an embodiment of the present invention is shown in FIG. Figure 7 As shown, a display screen switching device includes:

[0256] A memory 70, for storing computer programs;

[0257] The processor 71 is used to implement the steps of the display screen switching method mentioned in the above embodiment when executing the computer program.

[0258] The display screen switching device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0259] Among them, the processor 71 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 71 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 71 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 71 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 71 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0260] The memory 70 may include one or more non-volatile storage media, which may be non-transitory. The memory 70 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 70 is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor 71, the relevant steps of the display screen switching method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 70 may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, a display screen switching method, etc.

[0261] In some embodiments, the display screen switching device may also include a display screen, an input and output interface, a communication interface, a power supply, and a communication bus.

[0262] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the display screen switching device, and may include more or fewer components than those shown in the figure.

[0263] The display screen switching device provided by the embodiment of the present invention includes a memory 70 and a processor 71. When the processor 71 executes the program stored in the memory 70, the display screen switching method can be implemented.

[0264] In addition, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0265] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory), ROM, random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0266] Finally, the present invention also provides a computer program product, including a computer program / instruction, which implements the above display screen switching method when executed by a processor.

[0267] The above is a detailed introduction to a display screen switching method, device, medium and computer program product provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

[0268] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for switching a display screen, characterized in that: include: Acquire a first field synchronization signal of a first display controller and detect a rising edge of the first field synchronization signal; When the rising edge of the first field synchronization signal is detected, collecting the second field synchronization signal of the second display controller and detecting the rising edge of the second field synchronization signal; When a rising edge of the second field synchronization signal is detected, first pixel data corresponding to a current frame of the first field synchronization signal is output, and second pixel data corresponding to the current frame of the second field synchronization signal is acquired; Displaying a picture of the first display controller on a display according to the first pixel data; Transferring the second pixel data to a corresponding first-in-first-out queue; wherein the first pixel data corresponds to a first first-in-first-out queue, and the second pixel data corresponds to a second first-in-first-out queue; When receiving a switching instruction representing a display screen switching, determining a corresponding synchronization timing signal based on the second field synchronization signal; wherein the synchronization timing signal is a timing signal obtained after resetting the second field synchronization signal, and is the same as the timing signal obtained after resetting the first field synchronization signal; The screen of the second display controller is displayed on the display according to the synchronization timing signal and the second pixel data.

2. The method for switching display screens according to claim 1, characterized in that: Before acquiring the first field synchronization signal of the first display controller and detecting the rising edge of the first field synchronization signal, the method further includes: Acquire the current picture displayed by the display; Determining whether the current picture is a picture of the first display controller; If the current picture is the picture of the first display controller, entering the step of acquiring the first field synchronization signal of the first display controller and detecting the rising edge of the first field synchronization signal; If the current picture is not the picture of the first display controller, output a reset signal; The display is controlled to display the screen of the first display controller according to the reset signal.

3. The method for switching display screens according to claim 1, characterized in that: After transferring the second pixel data to the first-in-first-out queue, the method further includes: Acquire a first starting time when a rising edge of a current frame of the first field synchronization signal appears and a second starting time when a rising edge of a next frame of the first field synchronization signal appears; Subtracting the first start time from the second start time to obtain a preset duration representing receiving the switching instruction; Determining whether the switching instruction is received within the preset time period; If the switching instruction is not received within the preset time period, the second pixel data in the first-in-first-out queue is cleared, and the process returns to the step of displaying the screen of the first display controller on the display according to the first pixel data.

4. The method for switching display images according to claim 1, characterized in that: After receiving the switching instruction indicating switching of the display screen, and before determining the corresponding synchronization timing signal based on the second field synchronization signal, the method further includes: Determining whether the first pixel data has been completely displayed on the display; If the first pixel data is completely displayed on the display, the step of determining a corresponding synchronization timing signal based on the second field synchronization signal is entered; If the first pixel data has not been completely displayed on the display, the screen of the first display controller is displayed on the display according to the remaining first pixel data.

5. The method for switching display images according to claim 3, characterized in that: Also includes: When a rising edge of the next frame of the first field synchronization signal is detected, determining whether the digital video interface corresponding to the second display controller outputs the second pixel data; If the digital video interface corresponding to the second display controller outputs the second pixel data, then entering the step of determining the corresponding synchronization timing signal based on the second field synchronization signal; If the digital video interface corresponding to the second display controller does not output the second pixel data, the second pixel data is acquired in real time, and the screen of the second display controller is displayed in real time on the display according to the second pixel data.

6. The method for switching display images according to claim 5, characterized in that: Determining that the digital video interface corresponding to the second display controller outputs the second pixel data includes: Collecting a flag indicating that the second pixel data is valid; Outputting a pixel valid signal indicating that the second pixel data is valid according to the flag; The second pixel data is outputted at the digital video interface corresponding to the second display controller according to the pixel valid signal.

7. The method for switching display images according to claim 1, characterized in that: After the first pixel data corresponding to the current frame of the first field synchronization signal is output, and before the picture of the first display controller is displayed on the display according to the first pixel data, the method further includes: Obtaining a first timing requirement corresponding to the first display controller; Resetting the first field synchronization signal according to the first timing requirement, and outputting a corresponding synchronization timing signal after the reset; Correspondingly, the determining a corresponding synchronization timing signal based on the second field synchronization signal includes: Obtaining a second timing requirement corresponding to the second display controller; The second field synchronization signal is reset according to the second timing requirement, and a corresponding synchronization timing signal after the reset is output.

8. The method for switching display images according to claim 1, characterized in that: After displaying the screen of the second display controller on the display according to the synchronization timing signal and the second pixel data, the method further includes: determining whether a switch-back instruction indicating switching from the screen of the second display controller back to the screen of the first display controller is received; If the switch-back instruction is received, detecting a rising edge of the second field synchronization signal; When a rising edge of the second field synchronization signal is detected, determining whether the first field synchronization signal is detected within a preset switching time; If the first field synchronization signal is detected within the switching back preset time length, it is determined that the first display controller is not in a working state; If the first field synchronization signal is detected within the switching back preset time length, it is determined that the first display controller is in a working state; If the switch-back instruction is not received, the process returns to the step of displaying the screen of the second display controller on the display according to the synchronization timing signal and the second pixel data.

9. The method for switching display images according to claim 8, characterized in that: Before determining whether the first field synchronization signal is detected within the preset switching time, the method further includes: Acquire a third starting time when a rising edge of a current frame of the second field synchronization signal appears and a fourth starting time when a rising edge of a next frame of the second field synchronization signal appears; Subtracting the third starting time from the fourth starting time to obtain a time difference; The time difference is set as the switch back preset duration.

10. The display screen switching method according to claim 8, characterized in that: When it is determined that the first display controller is in a working state, the method further includes: Outputting first pixel data corresponding to the current frame of the first field synchronization signal; Transferring the first pixel data to a first-in-first-out queue; When receiving the switch-back instruction, determining a corresponding synchronization timing signal based on the first field synchronization signal; The screen of the second display controller is displayed on the display according to the synchronization timing signal and the first pixel data.

11. The method for switching display images according to claim 10, characterized in that: Displaying the screen of the second display controller on the display according to the synchronization timing signal and the first pixel data comprises: Collecting a flag indicating that the first pixel data is valid; Outputting a valid pixel signal indicating that the first pixel data is valid according to the flag; The first pixel data is outputted at a digital video interface corresponding to the first display controller according to the effective pixel signal.

12. The display screen switching method according to claim 8, characterized in that: Also includes: Acquire a first time when the screen of the second display controller is displayed and a second time when the switch back instruction is received; Subtract the first moment from the second moment to obtain a determination duration; Determine whether the determination time reaches the switch-back time; If the determination time reaches the switch-back time, the step of determining whether a switch-back instruction representing switching from the screen of the second display controller back to the screen of the first display controller is received is entered; If the determination time does not reach the switch-back time, the process ends.

13. A display screen switching device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the display screen switching method as described in any one of claims 1 to 12 when executing the computer program.

14. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the display screen switching method according to any one of claims 1 to 12 are implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the display screen switching method as described in any one of claims 1 to 12 are implemented.