Method and device for monitoring on-off of display screen, computer equipment and storage medium
By building a 3.3V pull-up circuit and MCU on the host side, and using the MCU to monitor the on-off status of the display screen, the problem of low efficiency of manual visual inspection in the existing technology is solved, real-time monitoring and fault prevention are achieved, and the stability of the display screen is improved. sex and user experience.
Patent Information
- Application Number
- CN202410673697.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing display screen on/off monitoring methods rely on manual visual inspection, which is inefficient, time-consuming and labor-intensive, and is easily affected by human factors. It is difficult to ensure the accuracy and consistency of detection, especially as the size of the display screen increases and the resolution increases. It is more obvious below.
By building a 3.3V pull-up circuit into the I/O port of the host and connecting the I/O port in series with the MCU, the MCU is used to monitor the on-off status of the display, including reading the level of the I/O port through script instructions. , Use communication protocol, heartbeat packet, capacitive network or resistor network, Ping command or SNMP protocol to detect the connection status of the display screen to determine the on/off status of the display screen.
It realizes real-time monitoring of the status of the display screen, predicts potential faults and takes timely measures, reducing maintenance costs and downtime, ensuring that the display screen provides clear and accurate image display, improving display quality and user experience.
Smart Images

Figure CN118604682A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display screens, and in particular to a method, device, computer equipment and storage medium for monitoring the on-off circuit of a display screen. Background Art
[0002] Display circuit monitoring technology is usually used to detect the performance, status and faults of display circuits to ensure that the display operates normally and provides a good visual experience. Therefore, it is very important to understand the various types of faults that may occur on the display and their causes for display fault diagnosis. This includes understanding the reasons that may cause the display to fail to power on, display abnormalities, color distortion and other problems, so as to diagnose and repair them in time. The acquired monitoring data needs to be processed and analyzed to detect problems in time and respond accordingly.
[0003] In the prior art, the methods for monitoring the on-off of display screens have a series of defects that cannot be ignored. Although these methods can achieve on-off detection to a certain extent, their shortcomings and limitations cannot be ignored. For example, traditional monitoring methods often rely on manual visual inspection. This method is inefficient, time-consuming and labor-intensive, and easily affected by human factors. Due to the complexity and sophistication of the display screen, manual visual inspection is difficult to ensure the accuracy and consistency of the detection. In addition, as the size of the display screen increases and the resolution increases, the limitations of this method become more and more obvious. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to propose a method, device, computer equipment and storage medium for monitoring the continuity of a display screen, so as to solve the problem that the traditional display screen continuity monitoring method often relies on manual visual inspection, which is inefficient, time-consuming and labor-intensive, and easily affected by human factors.
[0005] In order to solve the above technical problems, the present invention provides a method for monitoring the on-off circuit of a display screen, which adopts the following technical solution, including:
[0006] Electrically connect the I / O port of the host to the GND pin of the display interface;
[0007] A 3.3V pull-up circuit is built into the I / O port on the host side;
[0008] Connect the I / O port to the MCU in series;
[0009] The MCU monitors the on / off status of the display screen.
[0010] Preferably, the step of monitoring the on / off state of the display screen by the MCU specifically includes:
[0011] The MCU reads the level of the I / O port through script instructions;
[0012] The on / off status of the display screen is determined based on the electrical level of the I / O port.
[0013] Preferably, the step of monitoring the on / off state of the display screen by the MCU specifically includes:
[0014] Use the communication protocol to detect the connection status of the display;
[0015] According to the connection status, the MCU determines the on / off status of the display screen.
[0016] Preferably, the step of monitoring the on / off state of the display screen by the MCU specifically includes:
[0017] The display screen periodically sends a heartbeat packet to indicate an online status;
[0018] According to the online status, the MCU determines the on / off status of the display screen.
[0019] Preferably, the step of monitoring the on / off state of the display screen by the MCU specifically includes:
[0020] Using a capacitor network or a resistor network to detect the connection status of the display screen;
[0021] According to the connection status, the MCU determines the on / off status of the display screen.
[0022] Preferably, the step of monitoring the on / off state of the display screen by the MCU specifically includes:
[0023] Use Ping command or SNMP protocol to detect the connection status of the display screen;
[0024] According to the connection status, the MCU determines the on / off status of the display screen.
[0025] In order to solve the above technical problems, the present invention also provides a display screen on-off monitoring device, which adopts the following technical solution, including:
[0026] A host, a display screen, a 3.3V pull-up circuit, and an MCU; an I / O port on the host side is electrically connected to a GND pin of a display screen interface; the 3.3V pull-up circuit is built into the I / O port on the host side; the I / O port is connected in series with the MCU; and the MCU is used to monitor the on / off state of the display screen.
[0027] Preferably, the 3.3V pull-up circuit comprises:
[0028] The positive pole of the power supply is connected to one end of the pull-up resistor R1 to provide a stable 3.3V voltage for the resistor R1, and the other end of the resistor R1 is connected to the monitoring pin to form the core part of the pull-up circuit.
[0029] In order to solve the above technical problems, the present invention also provides a computer device, which adopts the technical solution described below, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the above-mentioned method for monitoring the on-off circuit of a display screen are implemented.
[0030] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, which adopts the technical solution described below, and stores computer-readable instructions on the computer-readable storage medium. When the computer-readable instructions are executed by the processor, the steps of the above-mentioned method for monitoring the on-off circuit of the display screen are implemented.
[0031] Compared with the prior art, the present invention has the following beneficial effects: by real-time monitoring of the display screen status, potential faults can be predicted and timely measures can be taken to avoid faults or quickly repair existing faults, thereby reducing maintenance costs and downtime, and enabling fault prevention and rapid repair; monitoring the performance parameters of the display screen circuit can promptly discover and solve problems that affect image quality, ensuring that the display screen provides clear and accurate image display, and improving display quality; ensuring the stability and reliability of the display screen, reducing the troubles caused by display screen failures or poor performance, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the scheme in the present invention, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 It is a flow chart of an embodiment of the method for monitoring the on-off circuit of a display screen of the present invention;
[0034] Figure 2 It is a structural schematic diagram of an embodiment of a monitoring display screen on-off device of the present invention;
[0035] Figure 3 It is a schematic structural diagram of an embodiment of a computer device of the present invention. DETAILED DESCRIPTION
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0037] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0038] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
[0039] It should be noted that the method for monitoring the on-off status of a display screen provided in the embodiment of the present invention is generally executed by a server / terminal device, and accordingly, the device for monitoring the on-off status of a display screen is generally arranged in the server / terminal device.
[0040] It should be understood that the number of terminal devices, networks and servers is only illustrative. Depending on the implementation requirements, there can be any number of terminal devices, networks and servers.
[0041] Embodiment 1
[0042] Please refer to Figure 1 , shows a flow chart of an embodiment of a method for monitoring the on-off circuit of a display screen of the present invention. The method for monitoring the on-off circuit of a display screen comprises the following steps:
[0043] Step S1, electrically connecting the I / O port of the host end to the GND pin of the display screen interface.
[0044] In this embodiment, the electronic device (e.g., server / terminal device) on which the method for monitoring the on / off circuit of a display screen runs can receive the on / off circuit monitoring request of the display screen through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAXX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0045] The on / off state of the display can be determined by detecting the level change of its related pins. Under normal working conditions, the GND pin (ground pin) of the display should be in a low level state; when the display is broken, the level state of the GND pin will change. Therefore, the on / off state of the display can be determined by detecting the level change of the GND pin.
[0046] Connect the host's I / O port to the display's GND pin. This step is the basis for establishing a monitoring circuit. By connecting the host's I / O port and the display's GND pin, the display's level status can be transmitted to the host for processing. During the connection process, you need to pay attention to choosing the appropriate connection wire and connection method to ensure the stability and reliability of the connection.
[0047] Step S2, a 3.3V pull-up circuit is built into the I / O port of the host end.
[0048] The function of the pull-up circuit is to provide a stable level state for the I / O port to prevent level fluctuations caused by external interference or circuit instability. The built-in 3.3V pull-up circuit can ensure that the I / O port can maintain a high level state when the display is not connected or disconnected.
[0049] Step S3, serially connect the I / O port to the MCU.
[0050] As the core component of the entire monitoring system, the MCU is responsible for reading the level of the I / O port and processing it. By connecting the I / O port to the MCU in series, the level status information of the display screen can be transmitted to the MCU for further analysis and judgment.
[0051] Step S4, the MCU monitors the on / off state of the display screen.
[0052] In some optional implementations of this embodiment, step S4 may further specifically include the following steps: S401, the MCU reads the electrical level of the I / O port through a script instruction.
[0053] The following is a script instruction to read the level of the I / O port:
[0054]
[0055]
[0056] The features of this instruction are:
[0057] Real-time monitoring mechanism: This command determines the connection status of the display screen by monitoring the level status of the I / O port in real time. This real-time monitoring mechanism can make the system more flexible and responsive, and can immediately respond to changes in the level status.
[0058] Quick feedback: Through this command, the system can quickly feedback the connection status of the display. Once the connection status changes, such as the display is disconnected, the system can immediately respond accordingly, such as issuing an alarm or taking automated repair measures.
[0059] Combination of hardware and software: This instruction is a model of the combination of hardware and software. Through monitoring and judgment at the software level, the hardware connection status is reflected in real time. This combination of hardware and software makes the system more intelligent and automated.
[0060] Semantics of instructions: The semantics of instructions are clear and concise, and their functions are clearly expressed at a glance. In technological innovation, sometimes concise and clear expressions are often easier to accept and apply than complex technologies.
[0061] Scalability: This instruction is based on simple I / O port level monitoring, but can be used as part of a more complex system. For example, it can be integrated into a larger-scale monitoring system to monitor more device status and achieve more complex automation control.
[0062] S402: judging the on / off state of the display screen according to the level of the I / O port.
[0063] When the I / O port level is set high, the display screen is in an open circuit state, and when the I / O port level is set low, the display screen is in an open circuit state.
[0064] In some optional implementations of this embodiment, step S4 may further include the following steps:
[0065] S411. Use the communication protocol to detect the connection status of the display screen.
[0066] Use communication protocols instead of directly monitoring the level of the I / O port. For example, by using communication protocols such as USB, HDMI, DisplayPort, etc., the connection status of the display screen can be monitored on the communication link.
[0067] USB (Universal Serial Bus) is a universal serial bus standard, widely used in data transmission and power supply between various electronic devices. In the display connection status monitoring, USB protocol also plays an important role.
[0068] First, the USB protocol supports hot-plugging, which means that USB devices can be connected or disconnected without shutting down the system. With this feature, the connection status of the USB display can be monitored in real time. When the display is connected to the host via the USB interface, the system will immediately recognize and load the corresponding driver to establish a communication link. If the display is disconnected, the system will also detect this change and update the connection status information.
[0069] Secondly, the USB protocol also provides a wealth of status information. By reading the descriptor and status register of the USB device, you can get detailed information about the display, such as device type, manufacturer information, product serial number, etc. This information not only helps to confirm the identity of the display, but also serves as an important basis for connection status monitoring.
[0070] In addition, the USB protocol also supports data transmission and power supply functions. Through the USB interface, data transmission between the display and the host can be realized, such as updating the display screen, sending control instructions, etc. At the same time, the USB interface can also provide a stable power supply for the display to ensure that there will be no power outages or voltage instability during operation.
[0071] HDMI (High-Definition Multimedia Interface) is a high-definition multimedia interface standard, mainly used to transmit high-quality audio and video signals. In the display connection status monitoring, the HDMI protocol also plays an important role.
[0072] First, the HDMI protocol supports hot-plugging. When a display is connected to a host via the HDMI interface, the system automatically recognizes and configures the corresponding display settings. If the display is disconnected, the system also detects this change and updates the display settings. This automatic recognition function makes it easy to monitor the connection status of the display.
[0073] Secondly, the HDMI protocol provides a wealth of status information. By reading the status register of the HDMI interface or querying the display settings of the system, you can obtain detailed information about the display, such as resolution, refresh rate, color depth, etc. This information not only helps to understand the performance parameters of the display, but also serves as an important basis for connection status monitoring.
[0074] In addition, the HDMI protocol also supports the synchronous transmission of audio and video signals. This means that the audio and video signals between the display and the host can be seamlessly transmitted through the HDMI interface, improving the user experience. At the same time, the HDMI protocol also supports a variety of protection mechanisms, such as HDCP (High-bandwidth Digital Content Protection) copyright protection technology, to ensure the security and integrity of audio and video signals during transmission.
[0075] DisplayPort is a digital display interface standard with the characteristics of high bandwidth, high resolution and low latency. In the connection status monitoring of display screens, the DisplayPort protocol also has broad application prospects.
[0076] First, the DisplayPort protocol also supports hot-plugging. When a display is connected to a host via the DisplayPort interface, the system automatically recognizes and configures the corresponding display settings. If the display is disconnected, the system also detects this change and updates the display settings. This automatic recognition function makes it easy to monitor the connection status of the display.
[0077] Secondly, the DisplayPort protocol provides a wealth of status information. By reading the status register of the DisplayPort interface or querying the display settings of the system, you can obtain detailed information about the display, such as resolution, refresh rate, color depth, etc. This information not only helps to understand the performance parameters of the display, but also serves as an important basis for connection status monitoring.
[0078] In addition, the DisplayPort protocol also supports multi-stream transmission and daisy chain functions. Multi-stream transmission allows multiple independent audio and video streams to be transmitted simultaneously, improving the flexibility and efficiency of data transmission. The daisy chain function allows multiple displays to be connected through a single DisplayPort interface to achieve the effect of extended display. These functions not only enrich the use scenarios of the display, but also provide more possibilities for connection status monitoring.
[0079] S412: According to the connection status, the MCU determines the on / off status of the display screen.
[0080] Using communication protocols such as USB, HDMI, DisplayPort, etc. to monitor the connection status of the display screen on the communication link has many advantages and importance.
[0081] First, real-time monitoring can improve the stability and reliability of the system. By timely detecting and processing changes in the display connection status, risks such as system crashes or data loss caused by connection problems can be avoided.
[0082] Secondly, connection status monitoring helps improve user experience. When users need to replace or adjust the display screen, the system can automatically identify and adapt to the new display environment without the need for users to manually perform tedious settings.
[0083] In addition, connection status monitoring also facilitates troubleshooting and repair. When the display fails or does not work properly, you can quickly locate the problem by checking the connection status and take appropriate repair measures.
[0084] In some optional implementations of this embodiment, step S4 may further include the following steps:
[0085] S421. The display screen periodically sends heartbeat packets to indicate online status.
[0086] A heartbeat packet is a data packet sent periodically to indicate that the sender is still online. In the application scenario of a display screen, a heartbeat packet can contain key data such as the display screen's unique identifier, current status information, and timestamp. These data packets are sent to the MCU through a communication interface (such as I2C, SPI, or UART) at predetermined time intervals.
[0087] Initialize the communication interface: First, you need to configure and initialize the communication interface between the display and the MCU. This includes setting parameters such as data bits, stop bits, check bits, and baud rate to ensure that both parties can transmit data correctly.
[0088] Write the logic for generating heartbeat packets: In the display's firmware or driver, write the logic code for generating heartbeat packets. You can use a timer or counter to control the frequency of sending heartbeat packets. When the timer reaches the predetermined time, the program will collect the current status information of the display and encapsulate it into a heartbeat packet format.
[0089] Send heartbeat packet: Send the generated heartbeat packet to the MCU through the configured communication interface. During the sending process, attention should be paid to the integrity and accuracy of the data to avoid the loss or damage of the heartbeat packet due to communication errors.
[0090] S422: According to the online status, the MCU determines the on / off status of the display screen.
[0091] As the main body receiving the heartbeat packet, the MCU needs to accurately parse the data in the heartbeat packet and determine the online status of the display screen based on the data content.
[0092] Receiving heartbeat packets: The MCU receives heartbeat packets from the display through the communication interface. During the receiving process, the MCU needs to ensure the integrity and accuracy of the data and verify and validate the received data.
[0093] Parsing the heartbeat packet content: Once the complete heartbeat packet is received, the MCU needs to parse the content. This includes extracting the display's unique identifier, current status information, and timestamp data. By analyzing this data, the MCU can understand the current status of the display.
[0094] Determine the online status: Based on the parsed heartbeat packet content, the MCU can determine the online status of the display. If the timestamp in the heartbeat packet is not much different from the current time and contains valid display status information, the display can be considered to be online. On the contrary, if the heartbeat packet is not received for a long time or the heartbeat packet content is abnormal, it can be determined that the display is offline or there is a communication failure.
[0095] It should be noted that, in order to improve the stability and reliability of the system during specific implementation, the heartbeat packet mechanism and online status judgment can also be optimized and extended as follows:
[0096] Heartbeat packet retransmission mechanism: During the communication process, the heartbeat packet may be lost due to various reasons. For this reason, a heartbeat packet retransmission mechanism can be introduced. When the MCU does not receive the expected heartbeat packet within a certain period of time, it can actively send a request to the display screen to request it to resend the heartbeat packet. This can reduce the misjudgment rate caused by communication failures.
[0097] Multi-level online status judgment: In addition to simple online / offline judgment, more detailed status division can be performed based on the content of the heartbeat packet. For example, the idle state, working state, and fault state of the display can be distinguished to more accurately grasp the operation status of the display.
[0098] Logging and troubleshooting: To facilitate subsequent troubleshooting and maintenance, the MCU can record log information about the communication with the display. This includes the content of each heartbeat packet received, the timestamp, and any communication-related errors or exceptions. These log data can be viewed and analyzed when needed to help locate and resolve potential problems.
[0099] In some optional implementations of this embodiment, step S4 may further include the following steps:
[0100] S431. Use a capacitor network or a resistor network to detect the connection status of the display screen.
[0101] According to the interface design and signal characteristics of the display, a capacitor network consisting of multiple capacitors is constructed. Each capacitor is connected to a signal line or power line of the display. The selection of capacitors should take into account factors such as capacitance, withstand voltage and temperature stability to ensure that it can accurately reflect the connection status of the display.
[0102] Charging and discharging process monitoring: When the display is connected normally, the capacitors in the capacitor network will be charged and discharged through the lines of the display. The MCU can determine the connection status of the display by monitoring the charging and discharging process of the capacitor. Specifically, the MCU can periodically apply a known voltage or current to the capacitor and measure the voltage or current changes across the capacitor. Based on these measurements, the MCU can calculate the charging and discharging time constant of the capacitor to determine whether the display is connected normally.
[0103] Threshold setting and judgment logic: In order to accurately judge the connection status of the display, it is necessary to set appropriate thresholds. These thresholds can be determined based on the charge and discharge characteristics of the capacitor, the interface specifications of the display, and the actual application scenario. When the charge and discharge time constant measured by the MCU exceeds or falls below the set threshold, it can be judged that the display is disconnected or poorly connected.
[0104] When detecting the connection status of the display screen, the resistor network mainly uses the change of the resistance value to reflect the on-off state of the display screen.
[0105] The construction of the resistor network needs to take into account the interface layout and signal characteristics of the display. The resistor network includes multiple resistors that are connected in series or in parallel to the interface lines of the display. The resistance value of the resistor should be selected according to the actual application requirements to ensure that the total resistance value of the resistor network can change significantly when the connection status of the display changes.
[0106] Resistance measurement and comparison: The MCU determines the connection status of the display screen by measuring the total resistance of the resistor network. This can be achieved by applying a known voltage or current across the resistor network and measuring the resulting current or voltage. The MCU can periodically measure the resistance of the resistor network and compare the measured value with a preset threshold. If the measured value exceeds or falls below the threshold range, it can be determined that the connection status of the display screen has changed.
[0107] Threshold adjustment and optimization: In order to improve the accuracy of detection, the threshold needs to be adjusted and optimized according to the actual application. This can be achieved through experimental testing and data analysis to find the best threshold range. In addition, the measurement data can be processed and analyzed by software algorithms to further improve the reliability and stability of detection.
[0108] S432: According to the connection status, the MCU determines the on / off status of the display screen.
[0109] Capacitor networks and resistor networks each have their own advantages in detecting the connection status of display screens. Capacitor networks are highly sensitive and responsive, and can monitor changes in the connection status of display screens in real time. At the same time, because capacitors have good stability and anti-interference capabilities, capacitor networks perform better in complex electromagnetic environments. However, the implementation cost of capacitor networks is relatively high, and the selection and layout of capacitors are demanding.
[0110] In contrast, resistor networks have the advantages of being simple to implement and low cost. The selection and layout of resistors are relatively flexible and can be adjusted and optimized according to actual needs. In addition, resistor networks have good adaptability to changes in ambient temperature and humidity, so they have a wide range of applications in practical applications. However, the sensitivity of resistor networks is relatively low and may not be able to monitor small changes in connection status in real time.
[0111] In practical applications, the appropriate solution can be selected according to specific needs and scenarios. For application scenarios that require high sensitivity and fast response, a capacitor network can be selected; while for cost-sensitive or environmentally adaptable application scenarios, a resistor network is more suitable.
[0112] In some optional implementations of this embodiment, step S4 may further include the following steps:
[0113] S441. Use the Ping command or SNMP protocol to detect the connection status of the display screen.
[0114] Ping command and SNMP protocol are both commonly used technical means to detect the status of network devices. Ping command detects whether the target host is reachable by sending ICMP (Internet Control Message Protocol) echo request message, while SNMP protocol monitors the operating status of the device through information exchange between the management station and the agent. MCU, as the core control unit of the intelligent device, has powerful data processing and logical judgment capabilities, and can judge the on / off status of the display screen based on the received information.
[0115] Ping command to detect the display connection status:
[0116] (1) The MCU sends a Ping request to the target display screen through the serial port or network interface.
[0117] (2) After the device where the display screen is located receives the Ping request, if the device is in normal working condition and the display screen connection is normal, it will reply with an ICMP echo reply message; if the display screen connection is abnormal or the device is not turned on, it will not reply with a reply message.
[0118] (3) After sending the Ping request, the MCU waits for a certain period of time. If a response message is received, it is determined that the display screen connection is normal; if no response message is received after a timeout, it is determined that the display screen connection is abnormal.
[0119] SNMP protocol detects the display connection status:
[0120] (1) MCU acts as a management station and sends a query request to the agent of the device where the display screen is located through the SNMP protocol to request the operating status information of the display screen.
[0121] (2) After receiving the query request, the agent generates a response message based on the monitoring information inside the device and sends it to the MCU.
[0122] (3) The MCU parses the response message, obtains the operating status information of the display screen, and determines the on / off status of the display screen according to the preset threshold or status code.
[0123] S442: According to the connection status, the MCU determines the on / off status of the display screen.
[0124] MCU determines the on / off status of the display:
[0125] (1) The MCU determines the connection status of the display screen based on the information returned by the Ping command or the SNMP protocol.
[0126] (2) If the connection is judged to be normal, the MCU can continue to execute other control tasks; if the connection is judged to be abnormal, the MCU can trigger the corresponding alarm mechanism or execute the fault handling process.
[0127] (3) The MCU can upload the connection status information of the display screen to the superior management system or display it on the local interface through the serial port, network or other communication interface, so that users can understand the device status in real time.
[0128] The advantages of using the Ping command or SNMP protocol to detect the connection status of the display are:
[0129] Strong real-time performance: Both the Ping command and the SNMP protocol support real-time detection, and can promptly detect changes in the display connection status; High accuracy: By parsing the response message or status information, the MCU can accurately determine the on / off status of the display; Good flexibility: The solution can select the Ping command or the SNMP protocol for detection according to actual needs to adapt to application needs in different scenarios.
[0130] The implementation of this embodiment has the following beneficial effects: by real-time monitoring of the display screen status, potential faults can be predicted and timely measures can be taken to avoid faults or quickly repair existing faults, thereby reducing maintenance costs and downtime, and enabling fault prevention and rapid repair; by monitoring the performance parameters of the display screen circuit, problems that affect image quality can be discovered and resolved in a timely manner, ensuring that the display screen provides clear and accurate image display, thereby improving display quality; ensuring the stability and reliability of the display screen, thereby reducing the troubles caused by display screen failures or poor performance, and improving user experience.
[0131] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0133] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0134] Embodiment 2
[0135] Further references Figure 2 , as a response to the above Figure 1 The present invention provides an embodiment of a device for monitoring the on-off circuit of a display screen, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0136] like Figure 2 As shown, the device for monitoring the on / off state of a display screen in this embodiment includes: a host, a display screen, a 3.3V pull-up circuit, and an MCU. The I / O port of the host end is electrically connected to the GND pin of the display screen interface; the 3.3V pull-up circuit is built into the I / O port of the host end; the I / O port is connected in series with the MCU; and the MCU is used to monitor the on / off state of the display screen.
[0137] In some optional implementations of this embodiment, the 3.3V pull-up circuit includes: the positive pole of the power supply is connected to one end of the pull-up resistor R1 to provide a stable 3.3V voltage for the resistor R1, and the other end of the resistor R1 is connected to the monitoring pin to form the core part of the pull-up circuit.
[0138] The main function of the pull-up circuit is to pull the input level to a preset high level state through the pull-up resistor when the circuit input is not connected or the input signal is at a low level. In the monitoring of the display screen on and off, the 3.3V pull-up circuit plays a key role, ensuring that this state can be accurately detected when the display screen is not connected or the circuit is broken. The function of the pull-up circuit is to provide a stable level state for the I / O port to prevent level fluctuations caused by external interference or circuit instability. The built-in 3.3V pull-up circuit can ensure that the I / O port can maintain a high level state when the display screen is not connected or the circuit is broken.
[0139] The resistance value of resistor R1 can be adjusted to adapt to different types of display screens; or additional protection circuits can be added to improve the anti-interference ability and stability of the circuit.
[0140] The implementation of this embodiment has the following beneficial effects: by real-time monitoring of the display screen status, potential faults can be predicted and timely measures can be taken to avoid faults or quickly repair existing faults, thereby reducing maintenance costs and downtime, and enabling fault prevention and rapid repair; by monitoring the performance parameters of the display screen circuit, problems that affect image quality can be discovered and resolved in a timely manner, ensuring that the display screen provides clear and accurate image display, thereby improving display quality; ensuring the stability and reliability of the display screen, thereby reducing the troubles caused by display screen failures or poor performance, and improving user experience.
[0141] Embodiment 3
[0142] To solve the above technical problems, the embodiment of the present invention also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.
[0143] The above-mentioned computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 6 having components of a memory 61, a processor 62, and a network interface 63, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.
[0144] The computer device may be a desktop computer, a notebook computer, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote control, a touch pad, or a voice control device.
[0145] The memory 61 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 61 can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 can also be an external storage device of the computer device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 6. Of course, the memory 61 can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is usually used to store the operating system and various application software installed on the computer device 6, such as computer-readable instructions for monitoring the on-off method of the display screen, etc. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or are to be output.
[0146] The processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is used to run the computer-readable instructions stored in the memory 61 or process data, such as running the computer-readable instructions of the method for monitoring the on-off circuit of the display screen.
[0147] The network interface 63 may include a wireless network interface or a wired network interface. The network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0148] The implementation of this embodiment has the following beneficial effects: by real-time monitoring of the display screen status, potential faults can be predicted and timely measures can be taken to avoid faults or quickly repair existing faults, thereby reducing maintenance costs and downtime, and enabling fault prevention and rapid repair; by monitoring the performance parameters of the display screen circuit, problems that affect image quality can be discovered and resolved in a timely manner, ensuring that the display screen provides clear and accurate image display, thereby improving display quality; ensuring the stability and reliability of the display screen, thereby reducing the troubles caused by display screen failures or poor performance, and improving user experience.
[0149] Embodiment 4
[0150] The present invention also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions. The computer-readable instructions can be executed by at least one processor to enable at least one processor to perform the steps of the above-mentioned method for monitoring the on-off status of a display screen.
[0151] The implementation of this embodiment has the following beneficial effects: by real-time monitoring of the display screen status, potential faults can be predicted and timely measures can be taken to avoid faults or quickly repair existing faults, thereby reducing maintenance costs and downtime, and enabling fault prevention and rapid repair; by monitoring the performance parameters of the display screen circuit, problems that affect image quality can be discovered and resolved in a timely manner, ensuring that the display screen provides clear and accurate image display, thereby improving display quality; ensuring the stability and reliability of the display screen, thereby reducing the troubles caused by display screen failures or poor performance, and improving user experience.
[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the various embodiment methods of the present invention.
[0153] Obviously, the embodiments described above are only some embodiments of the present invention, rather than all embodiments. The preferred embodiments of the present invention are given in the accompanying drawings, but they do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific embodiments, or to perform equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of the present invention, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present invention.
Claims
1. A method for monitoring the on-off of a display screen, characterized in that: The steps include: Electrically connect the I / O port of the host to the GND pin of the display interface; A 3.3V pull-up circuit is built into the I / O port on the host side; Connect the I / O port to the MCU in series; The MCU monitors the on / off status of the display screen.
2. The method for monitoring the on-off circuit of a display screen according to claim 1, characterized in that: The step of monitoring the on / off state of the display screen by the MCU specifically includes: The MCU reads the level of the I / O port through script instructions; The on / off status of the display screen is determined based on the electrical level of the I / O port.
3. The method for monitoring the on-off circuit of a display screen according to claim 1, characterized in that: The step of monitoring the on / off state of the display screen by the MCU specifically includes: Use the communication protocol to detect the connection status of the display; According to the connection status, the MCU determines the on / off status of the display screen.
4. The method for monitoring the on-off circuit of a display screen according to claim 1, characterized in that: The step of monitoring the on / off state of the display screen by the MCU specifically includes: The display screen periodically sends a heartbeat packet to indicate an online status; According to the online status, the MCU determines the on / off status of the display screen.
5. The method for monitoring the on-off circuit of a display screen according to claim 1, characterized in that: The step of monitoring the on / off state of the display screen by the MCU specifically includes: Using a capacitor network or a resistor network to detect the connection status of the display screen; According to the connection status, the MCU determines the on / off status of the display screen.
6. The method for monitoring the on-off circuit of a display screen according to claim 1, characterized in that: The step of monitoring the on / off state of the display screen by the MCU specifically includes: Use Ping command or SNMP protocol to detect the connection status of the display screen; According to the connection status, the MCU determines the on / off status of the display screen.
7. A device for monitoring the on-off circuit of a display screen, characterized in that: include: The host, display, 3.3V pull-up circuit, MCU, host I / O port and display interface GND pin are electrically connected; A 3.3V pull-up circuit is built into an I / O port of the host; the I / O port is connected in series with the MCU; and the MCU is used to monitor the on / off state of the display screen.
8. The on-off device for monitoring display screen according to claim 7, characterized in that: The 3.3V pull-up circuit includes: The positive pole of the power supply is connected to one end of the pull-up resistor R1 to provide a stable 3.3V voltage for the resistor R1, and the other end of the resistor R1 is connected to the monitoring pin to form the core part of the pull-up circuit.
9. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the method for monitoring the on-off circuit of a display screen as described in any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method for monitoring the on-off circuit of a display screen according to any one of claims 1 to 6 are implemented.
