Screen display control method and system, terminal and storage medium
Through the on-screen display control system, the display and the main control unit are connected by the MCU chip and converter, which solves the complexity of the linkage control of the display and host power supply, realizes low-cost automatic and manual control, and simplifies the operation process.
Patent Information
- Application Number
- CN202510396943.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-01
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, the power linkage control of the display and computer host needs to be implemented through HDMI CEC, resulting in complex solutions and high development costs, especially in different platforms and operating systems.
By constructing a screen display control system, using the MCU chip and converter to connect the display and the main control unit, switching between the HDMI HPD signal and the DDC signal line is realized. The MCU chip parses the CEC physical address and controls the display switch through the CEC protocol. The power state of the main control unit is obtained by the GPIO pin, simplifying the control process.
It realizes flexible linkage control between the monitor and host power supply, saves software development costs and time, and supports automatic and manual control, simplifying the operation process.
Smart Images

Figure CN120336237A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of screen display control, and more specifically, to a screen display control method, system, terminal, and storage medium. Background Art
[0002] When a computer host is connected to a display device for work, if the power supplies of the display and the computer host can be linked together to ensure that they can be switched on and off synchronously, it will be more convenient to manage the power status of the devices and also save energy.
[0003] In some information release systems, the display device and the host are often installed at a high place, making it inconvenient to switch them on and off. At the same time, when the host is turned off, the display needs to be turned off again, and the operation is very inconvenient. It is hoped that the two devices can be turned off simultaneously through a display remote control or a host remote control; when some conference hosts are no longer in use, if only the conference screen is turned off but the host is still working, it will cause energy waste, and there is also an application requirement to turn off the screen and the host simultaneously.
[0004] However, the existing linkage management through HDMI CEC requires cooperation with a driver to complete. Since the implementation needs to read the EDID of HDMI CEC through the driver to parse the physical address of the CEC TV, the solution will become complicated. Especially, the development of the driver will also incur time and costs due to different platforms and operating systems.
[0005] There is a need for a low-cost screen display control method, system, terminal, and storage medium that can achieve power linkage control between a display and a computer host. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to provide a screen display control method, and also provide a screen display control system, a screen display control terminal, and a computer-readable storage medium for the above-mentioned defects of the prior art.
[0007] The technical solution adopted by the present invention to solve its technical problems is:
[0008] Construct a screen display control system, wherein the system includes a main control unit, an MCU chip, a converter, and a display;
[0009] The hpd signal line of the display is connected to a GPIO input pin of the MCU chip;
[0010] A GPIO output pin of the MCU chip is connected to the main control unit, and outputs an HDMI HPD signal to the main control unit to simulate a display HPD signal to the main control unit;
[0011] The DDC signal line of the display is transferred through the converter to be connected to the I2C interface of the MCU chip and the HDMI DDC signal port of the main control unit at the same time;
[0012] The converter is controlled by the MCU chip to switch the DDC signal line of the display to connect to the MCU chip or the main control unit;
[0013] The S3 and S4 signal ports of the main control unit are respectively connected to a GPIO pin of the MCU chip, and the MCU chip obtains the power state of the main control unit through the GPIO pin.
[0014] In the screen display control system of the present invention, after the MCU chip is started, it defaults to switch the DDC signal line of the display to connect to the MCU chip, and at the same time detects the HPD signal of the display.
[0015] A screen display control method is applied to the screen display control system as described above, wherein the method includes the following steps:
[0016] When the display is connected, the MCU chip reads the HDMI display EDID through the I2C interface and parses the CEC physical address;
[0017] The main control unit issues a screen on / off command to the MCU chip, and the MCU chip generates a screen on / off command;
[0018] According to the CEC physical address of the connected HDMI display, the MCU chip sends a screen on / off command to the display through the CEC protocol to control the screen on / off of the display.
[0019] In the screen display control method of the present invention, the method further includes:
[0020] The MCU chip obtains the power state of the main control unit by detecting the states of the S3 and S4 input interfaces of the main control unit;
[0021] According to the power state, the MCU chip automatically generates a screen on and off command, and sends the screen on / off command to the display through the CEC protocol to control the screen on / off of the display.
[0022] In the screen display control method of the present invention, the method further includes:
[0023] When the display is connected, the MCU chip detects that the HPD signal is high;
[0024] The MCU chip controls the converter to switch the DDC signal to the main control unit;
[0025] The MCU chip notifies the main control unit that the display is connected by pulling up HPD through GPIO simulation;
[0026] When the display is removed, the MCU chip controls the converter to switch the DDC signal to the MCU chip;
[0027] Pull down HPD through GPIO simulation to the main control unit to notify the main control unit that the display is removed.
[0028] A screen display control terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. Wherein, when the processor executes the computer program, the steps of the above method are implemented.
[0029] A computer-readable storage medium stores a computer program, characterized in that when the computer program is executed by a processor, the steps of the above method are implemented.
[0030] The beneficial effect of the present invention is that: through this solution, the MCU chip can intercept the HDMI hot plugging and unplugging of the display and the reading and parsing of EDID, and simulate the HDMI hot plugging and unplugging of the display and reply to the access of DDC after interception. In this way, there is no need to write a driver program to initialize the MCU chip after obtaining the EDID through the graphics card driver. Only through hardware design and underlying firmware can CEC control be realized, saving a large amount of software development costs and time. At the same time, automatic control and manual control can be realized more flexibly, which is simple and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will further illustrate the present invention in conjunction with the drawings and embodiments. The drawings in the following description are only partial embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings:
[0032] Figure 1 It is a schematic block diagram of a screen display control system according to a preferred embodiment of the present invention;
[0033] Figure 2 It is a flowchart of a screen display control method according to a preferred embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention. Apparently, the described embodiments are only part of the embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0035] The screen display control system of a preferred embodiment of the present invention, as Figure 1 shown, the system includes a main control unit 1, an MCU chip 2, a converter 3, and a display 4;
[0036] The hpd signal line of the display 4 is connected to a GPIO input pin of the MCU chip 2;
[0037] A GPIO output pin of the MCU chip 2 is connected to the main control unit 1, and outputs an HDMI HPD signal to the main control unit 1 to simulate the HPD signal of the display 4 for the main control unit 1;
[0038] The DDC signal line of the display 4 is transferred through the converter 3 to be connected to the I2C interface of the MCU chip 2 and the HDMI DDC signal port of the main control unit 1 at the same time;
[0039] The converter 3 is controlled by the MCU chip 2 to switch the DDC signal line of the display 4 to connect to the MCU chip 2 or the main control unit 1;
[0040] The S3 and S4 signal ports of the main control unit 1 are respectively connected to a GPIO pin of the MCU chip 2, and the MCU chip 2 obtains the power status of the main control unit 1 through the GPIO pin;
[0041] The method for the system to operate can be as follows:
[0042] When the display is connected, the MCU chip reads the HDMI display EDID through the I2C interface and parses the CEC physical address;
[0043] The main control unit issues a screen on / off command to the MCU chip, and the MCU chip generates a screen on / off command;
[0044] According to the CEC physical address of the connected HDMI display, the MCU chip sends a screen on / off command to the display through the CEC protocol to control the screen on / off of the display;
[0045] With this solution, the MCU chip can intercept the HDMI hot plugging and unplugging of the display and read and analyze the relevant information of the EDID. After interception, it simulates the HDMI hot plugging and unplugging of the display and replies to the DDC access. In this way, there is no need to write a driver program to initialize the MCU chip after obtaining the EDID through the graphics card driver. Only through hardware design and the underlying firmware can CEC control be achieved, saving a large amount of software development costs and time. At the same time, automatic control and manual control can be implemented more flexibly, which is simple and convenient.
[0046] Preferably, after the MCU chip is started, it defaults to switch the DDC signal line of the display to be connected to the MCU chip, and at the same time detects the HPD signal of the display to maintain the detection of the display status.
[0047] A screen display control method is applied to the screen display control system as described above. As Figure 2 shown, the method includes the following steps:
[0048] S01: When the display is connected, the MCU chip reads the HDMI display EDID through the I2C interface and parses the CEC physical address;
[0049] S02: The main control unit issues a screen on / off command to the MCU chip, and the MCU chip generates a screen on / off command;
[0050] S03: According to the CEC physical address of the connected HDMI display, the MCU chip sends a screen on / off command to the display through the CEC protocol to control the screen on / off of the display;
[0051] Preferably, the method further includes:
[0052] The MCU chip obtains the power status of the main control unit by detecting the status of the S3 and S4 input interfaces of the main control unit;
[0053] Automatically generate screen on and off commands according to the power status. The MCU chip sends screen on and off commands to the display through the CEC protocol to control the screen on and off of the display;
[0054] Through the monitoring result of the power status of the main control unit, the screen on and off of the display screen can be automatically controlled, with good linkage reliability and low cost.
[0055] Furthermore, the method further includes:
[0056] When the display is connected, the MCU chip detects that the HPD signal is high;
[0057] The MCU chip controls the converter to switch the DDC signal to the main control unit;
[0058] The MCU chip notifies the main control unit that the display is connected by pulling up HPD through GPIO simulation;
[0059] When the display is removed, the MCU chip controls the converter to switch the DDC signal to the MCU chip;
[0060] It notifies the main control unit that the display is removed by pulling down HPD through GPIO simulation to the main control unit;
[0061] Through this method, the MCU chip can intercept the HDMI hot plugging and unplugging of the display while reading and parsing relevant information of the EDID. After interception, it simulates the HDMI hot plugging and unplugging of the display and replies to the DDC access. In this way, there is no need to write a driver program to initialize the MCU chip after obtaining the EDID through the graphics card driver. Only through hardware design and low-level firmware can CEC control be realized, saving a large amount of software development costs and time. At the same time, it can also more flexibly realize automatic control and manual control, which is simple and convenient.
[0062] A screen display control terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. Among them, when the processor executes the computer program, the steps of the above method are implemented.
[0063] A computer-readable storage medium stores a computer program, characterized in that when the computer program is executed by the processor, the steps of the above method are implemented.
[0064] It should be understood that for those of ordinary skill in the art, improvements or transformations can be made according to the above description, and all such improvements and transformations should fall within the protection scope of the appended claims of the present invention.
Claims
1. A screen display control system, characterized in that, The system includes a main control unit, an MCU chip, a converter, and a display; The HPD signal line of the display is connected to a GPIO input pin of the MCU chip; A GPIO output pin of the MCU chip is connected to the main control unit, and outputs an HDMI HPD signal to the main control unit to simulate a display HPD signal for the main control unit; The DDC signal line of the display is transferred through the converter to be connected to the I2C interface of the MCU chip and the HDMI DDC signal port of the main control unit at the same time; The converter is controlled by the MCU chip to switch the DDC signal line of the display to connect to the MCU chip or the main control unit; The S3 and S4 signal ports of the main control unit are respectively connected to a GPIO pin of the MCU chip, and the MCU chip obtains the power status of the main control unit through the GPIO pin; 2. The screen display control system according to claim 1, wherein After the MCU chip is started, it defaults to switch the DDC signal line of the display to connect to the MCU chip, and at the same time detects the display HPD signal; 3. A screen display control method, applied to the screen display control system as described above, characterized in that, The method includes the following steps: When the display is connected, the MCU chip reads the HDMI display EDID through the I2C interface and parses the CEC physical address; The main control unit issues a screen on / off command to the MCU chip, and the MCU chip generates a screen on / off command; According to the CEC physical address of the connected HDMI display, the MCU chip sends a screen on / off command to the display through the CEC protocol to control the screen on / off of the display; 4. The screen display control method according to claim 3, wherein The method further includes: The MCU chip obtains the power status of the main control unit by detecting the status of the S3 and S4 input interfaces of the main control unit; Automatically generates a screen on and off command according to the power status, and the MCU chip sends a screen on / off command to the display through the CEC protocol to control the screen on / off of the display; 5. The screen display control method according to claim 3, characterized in that The method further includes: When the display is connected, the MCU chip detects that the HPD signal is high; The MCU chip controls the converter to switch the DDC signal to the main control unit; The MCU chip simulates HPD pull-up through GPIO to notify the main control unit that the display is connected; When the display is removed, the MCU chip controls the converter to switch the DDC signal to the MCU chip; Simulates HPD pull-down through GPIO to the main control unit to notify the main control unit that the display is removed.
6. A screen display control terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 3 to 5.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 3 to 5.