Display screen driving control method and device, display equipment and storage medium
By configuring multiple modes via serial port, the system automatically detects the display type and adjusts the serial port configuration, solving the compatibility problem between the control baseboard and the display screen. This enables multi-screen adaptation without hardware modifications, reducing costs and improving the user experience.
Patent Information
- Application Number
- CN202410830402.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The existing display devices have poor compatibility between the control baseboard and the display screen, resulting in incompatibility with different display models. This requires the production of different circuit boards, which increases costs and complexity.
The serial port can be configured to multiple modes, automatically detect the display type and adjust the serial port configuration, and call the corresponding driver to achieve compatibility.
It achieves compatibility between the control baseboard and various displays without modifying the hardware, expanding its applicability, reducing maintenance costs, and providing a convenient user experience and efficient driver adaptation.
Smart Images

Figure CN118629343B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display, in particular to a display screen driving control method and device, display equipment and storage medium. BACKGROUND
[0002] The existing display equipment, the control board (or CPU mainboard) and the display screen (or display) are often one-to-one corresponding, that is, a control board is only applicable to one display screen, and may not be applicable to other display screens; for example, taking a temperature controller as an example, different displays and corresponding temperature controller models are produced according to the needs of users, and the circuit boards (control boards) of different models of temperature controllers are different, because they are not compatible with the display, different circuit boards need to be produced, and vice versa, one circuit board and one interface cannot adapt to different displays, and it is not possible to directly replace the display for use. It can be seen that the compatibility between the control board and the display screen in the related technology is poor.
[0003] In view of the technical problem of poor compatibility between the control board and the display screen in the related technology, no effective solution has been proposed so far. SUMMARY
[0004] The present application provides a display screen driving control method, device, display equipment and storage medium to at least solve the technical problem of poor compatibility between the control board and the display screen in the related technology.
[0005] In a first aspect, the present application provides a display screen driving control method, comprising: configuring a group of serial ports as a first mode, wherein the group of serial ports comprises an interface for communicating with a target display screen; in the case that the group of serial ports has been connected with the target display screen, determining whether the target display screen matches the first mode; in the case that it is determined that the target display screen does not match the first mode, adjusting the group of serial ports to a second mode and communicating with the target display screen until it is determined that the target display screen matches the second mode, and calling a second driving program to drive and control the target display screen, wherein the second driving program is a driving program corresponding to the second mode.
[0006] By adopting the technical scheme, a group of serial ports is first configured in a first mode, and then it is determined whether the target display screen matches the first mode, that is, whether the communication or interaction between the target display screen and the first mode is normal, for example, the group of serial ports are ports on the control board that communicate or interact with the target display screen, when it is determined that the target display screen does not match the first mode, the group of serial ports are configured in other modes, for example, adjusted to a second mode, until it is determined that the target display screen matches the second mode, and the second mode includes one or more modes different from the first mode, that is, by modifying the configuration of the group of serial ports, the hardware does not need to be changed, and the purpose of compatibility with the target display screen is achieved, the effect of improving the compatibility between the control board and the display screen is achieved, and the purpose of improving the application range of the control board is achieved.
[0007] Optionally, in a case where it is determined that the target display screen matches the first mode, a first driver program is called to drive and control the target display screen, wherein the first driver program is a driver program corresponding to the first mode.
[0008] By adopting the technical scheme, when it is determined that the target display screen matches the first mode, the first driver program can be directly called to drive and control the target display screen, and the first mode can be understood as a default mode.
[0009] Optionally, the group of serial ports includes a first port, a second port, a third port, and a fourth port, and configuring the group of serial ports in the first mode includes defining the first port as a serial communication mode, defining the second port as a serial communication mode, and defining the third port and the fourth port as an idle state, wherein the driver program corresponding to the first mode is a first driver program, and the first driver program is a touch display screen driver program.
[0010] By adopting the technical scheme, the group of serial ports can include four ports, the first mode corresponds to the configuration of the group of serial ports, and the first mode is matched with the touch display screen, if the currently connected target display screen is a touch display screen, the group of serial ports and the target display screen can normally communicate or interact, that is, the two are matched, and if the currently connected target display screen is not a touch display screen, the two cannot normally communicate or interact, that is, the two are not matched.
[0011] Optionally, the group of serial ports is adjusted to a second mode, including at least one of: configuring the group of serial ports to a first sub-mode, the first sub-mode being used to indicate that the first port is defined as a data line port, the second port is defined as a clock line port, the third port is defined as a chip select port of a liquid crystal display driving chip, and the fourth port is defined as a chip select port of a first type of key scan chip, the second mode including the first sub-mode; configuring the group of serial ports to a second sub-mode, the second sub-mode being used to indicate that the first port is defined as an idle state, the second port is defined as a chip select port of a second type of key scan chip, the third port is defined as a data line port, and the fourth port is defined as a clock line port, the second mode including the second sub-mode; configuring the group of serial ports to a third sub-mode, the third sub-mode being used to indicate that the first port is defined as a key reading port, the second port is defined as a control port for turning off the display, the third port is defined as a data line port, and the fourth port is defined as a clock line port, the second mode including the third sub-mode.
[0012] By adopting the above technical solution, the second mode includes multiple modes, such as the first sub-mode, the second sub-mode, and the third sub-mode described above, each sub-mode corresponding to a type of display screen, and the configuration of the group of serial ports corresponding to each sub-mode can also be different; by providing configuration options for multiple sub-modes, the method allows the system to flexibly adjust the functions of the serial ports according to actual needs to adapt to the communication and control needs of different types of display screens; through different sub-mode configurations, the system can better adapt to different types and functions of display screens, including liquid crystal display, key scan, etc., thereby improving the overall display effect and user experience. For different types of display screens, only the configuration of the group of serial ports needs to be modified to match the corresponding type of display screen, without the need to change the hardware of the control board, so that multiple types of display screens can be matched, facilitating later maintenance and upgrading, and avoiding the problem of increased costs caused by hardware changes.
[0013] Optionally, the second driver includes at least one of: in the case of defining the group of serial ports as the first sub-mode, the second driver is a segment code liquid crystal screen driving program; in the case of defining the group of serial ports as the second sub-mode, the second driver is a first LED display screen driving program; in the case of defining the group of serial ports as the third sub-mode, the second driver is a second LED display screen driving program.
[0014] By adopting the above technical solution, each sub-mode corresponds to a type of display screen, i.e., by modifying the configuration of the group of serial ports, the control board can be applied to different types of display screens, and by configuring corresponding second drivers for different sub-modes, the method ensures that the driving program can be optimized for a specific type of display screen, improving the applicability of the control board.
[0015] Optionally, in the case of determining that the target display screen does not match the first mode, the set of serial ports is adjusted to a second mode and communicates with the target display screen until it is determined that the target display screen matches the second mode, including: in the case of determining that the target display screen does not match the first mode, configuring the set of serial ports to a first sub-mode; sending a command to read a first key scan result according to a first communication protocol, wherein the first communication protocol is a communication protocol corresponding to the first sub-mode; in the case of determining that the 5th key value is 1 based on the first key scan result, determining that the target display screen matches the first sub-mode, wherein the second driver is a segment code liquid crystal screen driver, and the segment code liquid crystal screen driver is a driver corresponding to the first sub-mode; in the case of determining that the 5th key value is not 1 based on the first key scan result, configuring the set of serial ports to a second sub-mode; sending a command to read a second key scan result according to a second communication protocol, wherein the second communication protocol is a communication protocol corresponding to the second sub-mode; in the case of determining that the 20th key value is 1 based on the second key scan result, determining that the target display screen matches the second sub-mode, wherein the second driver is a first LED display screen driver, and the first LED display screen driver is a driver corresponding to the second sub-mode; in the case of determining that the 20th key value is not 1 based on the second key scan result, configuring the set of serial ports to a third sub-mode; sending a command to read a third key scan result according to a third communication protocol, wherein the third communication protocol is a communication protocol corresponding to the third sub-mode; in the case of determining that the 8th key value is 1 based on the third key scan result, determining that the target display screen matches the third sub-mode, wherein the second driver is a second LED display screen driver, and the second LED display screen driver is a driver corresponding to the third sub-mode.
[0016] By adopting the technical solution, when it is determined that the first mode does not match the target display screen currently connected, a group of serial ports are configured as a first sub-mode in the second mode, the first sub-mode corresponds to a segment code liquid crystal screen, communication interaction is performed with the target display screen in the first sub-mode, a first key scanning result is obtained, and then it is determined whether the target display screen currently connected matches the first sub-mode. If yes, it is determined that the target display screen currently connected is a segment code liquid crystal screen. If no, the configuration of the group of serial ports is modified to a second sub-mode, the second sub-mode corresponds to a first LED display screen. In the same way as described above, communication interaction is performed with the target display screen in the second sub-mode, a second key scanning result is obtained, and then it is determined whether the target display screen currently connected matches the second sub-mode. If yes, it is determined that the target display screen currently connected is a first LED display screen. If no, the configuration of the group of serial ports is modified to a third sub-mode, and so on until it is determined that the target display screen currently connected matches. By the technical solution, the purpose of automatically detecting a display screen type and adapting a corresponding drive program can be achieved.
[0017] Optionally, the determining whether the target display screen matches the first mode comprises: obtaining a target file according to a fourth communication protocol, wherein the target file is a message header file sent by the target display screen; in a case where it is determined that the message header file meets a fourth communication protocol standard, determining that the target display screen matches the first mode; and in a case where it is determined that the message header file does not meet the fourth communication protocol standard, determining that the target display screen does not match the first drive program.
[0018] By adopting the technical solution, in a case where the group of serial ports are configured as the first mode, a message header file can be obtained from the target display screen according to a corresponding communication protocol. When it is determined that the message header file meets a communication protocol standard, it is determined that the target display screen matches the first mode. Otherwise, it is determined that the target display screen does not match the first mode. The purpose of determining whether the target display screen currently connected matches the first mode is achieved.
[0019] In the second aspect of the present application, a display screen drive control device is also provided, comprising: a configuration module configured to configure a group of serial ports as a first mode, wherein the group of serial ports comprises an interface for communicating with a target display screen; a determination module configured to determine whether the target display screen matches the first mode in a case where the group of serial ports are connected to the target display screen; and a processing module configured to adjust the group of serial ports to a second mode in a case where it is determined that the target display screen does not match the first mode, and to perform communication with the target display screen until it is determined that the target display screen matches the second mode, and to call a second drive program to drive and control the target display screen, wherein the second drive program is a drive program corresponding to the second mode.
[0020] In a third aspect of the present application, a display device is provided, comprising a control backplane and a target display screen, wherein the control backplane is electrically connected to the target display screen, and the control backplane is configured to execute any of the display screen driving control methods described above.
[0021] In a fourth aspect of the present application, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the program to implement the method steps of any of the above.
[0022] In a fifth aspect of the present application, a computer readable storage medium is provided, which stores instructions that, when executed, perform the method steps of any of the above.
[0023] In summary, the one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0024] 1. By modifying the configuration of a group of serial ports, the hardware does not need to be changed, and the purpose of compatibility with the target display screen can be achieved, thereby improving the compatibility between the control backplane and the display screen, and increasing the application range of the control backplane;
[0025] 2. The purpose of automatically detecting the type of display screen and adapting the corresponding driver can be achieved;
[0026] 3. For different types of display screens, only the configuration of a group of serial ports needs to be modified to match the corresponding type of display screen, without changing the hardware of the control backplane, so that multiple types of display screens can be matched, facilitating later maintenance and upgrading, and avoiding the problem of increased cost caused by hardware changes. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is a flowchart of a display screen driving control method provided by the embodiments of the present application;
[0028] Figure 2 is an example diagram of serial port configuration provided by the embodiments of the present application;
[0029] Figure 3 is a flowchart of a multi-type display screen self-adaptive adjustment method provided by the embodiments of the present application;
[0030] Figure 4 is a diagram of serial port configuration of different types of display screens provided by the embodiments of the present application;
[0031] Figure 5 is a structural block diagram of a display screen driving control device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0032] In order to make the technical solution in the specification better understood by the skilled in the art, the technical solution in the specification will be clearly and completely described below in combination with the drawings in the specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all.
[0033] In the description of the embodiments of the present application, the words such as "for example" or "for instance" are used to represent an example, illustration or description. Any embodiment or design scheme described as "for example" or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "for example" or "for instance" are intended to present the relevant concept in a specific manner.
[0034] In the description of the embodiments of the present application, the term "a plurality of" means two or more. In addition, the terms "first", "second" are used for description only, and should not be interpreted as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features. The terms "include", "contain", "have" and their variants mean "include but are not limited to", unless otherwise specifically emphasized.
[0035] The present application provides a display screen driving control method, referring to Figure 1 , Figure 1 is a flowchart of a display screen driving control method provided by the embodiments of the present application, comprising the following steps:
[0036] Step S101, a group of serial ports is configured as a first mode, wherein the group of serial ports includes an interface for communicating with a target display screen;
[0037] Step S102, in the case that the group of serial ports has been connected with the target display screen, it is judged whether the target display screen matches the first mode;
[0038] Step S103, in the case that it is determined that the target display screen does not match the first mode, the group of serial ports is adjusted to a second mode, and communicates with the target display screen until it is determined that the target display screen matches the second mode, and a second driving program is called to drive the target display screen, wherein the second driving program is a driving program corresponding to the second mode.
[0039] Wherein, the execution subject of the above steps can be a control backplane, or a control circuit board, or a CPU mainboard, but is not limited thereto.
[0040] In the above embodiment, a group of serial ports is first configured in a first mode, and then it is determined whether the target display screen matches the first mode, that is, whether the communication or interaction between the target display screen and the first mode is normal in the first mode. Taking the example of controlling the bottom plate to perform the above operation, for example, a group of serial ports are ports for communicating or interacting with the target display screen on the control board. When it is determined that the target display screen does not match the first mode, the group of serial ports is configured in other modes, for example, adjusted to a second mode, until it is determined that the target display screen matches the second mode. The second mode includes one or more modes different from the first mode, and each mode corresponds to a type of display screen. That is, by modifying the configuration of a group of serial ports, the hardware does not need to be changed to achieve the purpose of compatibility with the target display screen, thereby improving the compatibility between the control board and the display screen and achieving the purpose of improving the application range of the control board. By automatically detecting the matching of the display screen and the serial port configuration mode, the compatibility of the drive control system with different display screens can be improved, and various display screens can be properly supported. By automatically adjusting the serial port configuration mode and switching to the second mode when it does not match, the automatic adaptation of the driver program is realized, the manual intervention is reduced, and the intelligent level of the system is improved. When using the drive control system, the user does not need to worry about the compatibility of the display screen and the driver program, and the system can automatically complete the adaptation, thereby providing a more smooth and convenient user experience. Since the system can automatically adapt to different display screens, the maintenance work caused by the mismatch of the driver program is reduced, thereby reducing the maintenance cost.
[0041] In an optional embodiment, when it is determined that the target display screen matches the first mode, a first driver program is called to drive and control the target display screen, wherein the first driver program is a driver program corresponding to the first mode.
[0042] In the above embodiment, when it is determined that the target display screen matches the first mode, the first driver program can be directly called to drive and control the target display screen. The first mode can be understood as a default mode. By automatically determining whether the target display screen matches the first mode and calling the corresponding first driver program in the case of matching, the accuracy of the driver program selection is ensured. The user does not need to manually select the driver program, and the system will automatically select the appropriate driver program according to the characteristics of the display screen, which greatly simplifies the user's operation process and reduces the operation difficulty. Since the system can automatically adapt to different display screens, the maintenance and technical support requirements caused by improper selection of the driver program are reduced, thereby reducing the overall maintenance cost.
[0043] In an optional embodiment, the group of serial ports includes a first port, a second port, a third port and a fourth port, and configuring the group of serial ports into a first mode includes: defining the first port as a serial communication mode, defining the second port as a serial communication mode, and defining the third port and the fourth port as an idle state; wherein the driver corresponding to the first mode is a first driver, and the first driver is a touch display screen driver.
[0044] In the above embodiment, the group of serial ports can include four ports, and the first mode corresponds to the configuration of the group of serial ports, and the first mode is matched with the touch display screen. If the currently connected target display screen is a touch display screen, the group of serial ports and the target display screen can normally communicate or interact, i.e., they are matched. If the currently connected target display screen is not a touch display screen, the two cannot normally communicate or interact, i.e., they are not matched. As shown in FIG. 1, the ports Port1-Port4 of the control board correspond to the group of serial ports, and different configurations of the group of serial ports can achieve the purpose of matching with different types of display screens. For example, configuring the group of serial ports into the first mode can match the control board with the touch display screen. Figure 2
[0045] In an optional embodiment, configuring the group of serial ports into a second mode includes at least one of the following: configuring the group of serial ports into a first sub-mode, the first sub-mode being used to indicate that the first port is defined as a data line port, the second port is defined as a clock line port, the third port is defined as a chip selection port of a liquid crystal display driving chip, and the fourth port is defined as a chip selection port of a first type of key scanning chip, and the second mode includes the first sub-mode; configuring the group of serial ports into a second sub-mode, the second sub-mode being used to indicate that the first port is defined as an idle state, the second port is defined as a chip selection port of a second type of key scanning chip, the third port is defined as a data line port, and the fourth port is defined as a clock line port, and the second mode includes the second sub-mode; configuring the group of serial ports into a third sub-mode, the third sub-mode being used to indicate that the first port is defined as a key reading port, the second port is defined as a control port for closing the display, the third port is defined as a data line port, and the fourth port is defined as a clock line port, and the second mode includes the third sub-mode.
[0046] In the above embodiment, the second mode includes multiple modes, such as the first sub-mode, the second sub-mode and the third sub-mode described above, each sub-mode corresponding to a type of display screen, and the configuration of the group of serial ports corresponding to each sub-mode can also be different; by providing configuration options for multiple sub-modes, the method allows the system to flexibly adjust the functions of the serial ports according to actual needs to adapt to the communication and control needs of different types of display screens; through different sub-mode configurations, the system can better adapt to different types and functions of display screens, including liquid crystal display, key scanning, etc., thereby improving the overall display effect and user experience. For different types of display screens, only the configuration of a group of serial ports needs to be modified to match the corresponding type of display screen, without changing the hardware of the control board, so that multiple types of display screens can be matched, facilitating later maintenance and upgrading, and avoiding the problem of increased cost caused by hardware changes. Since the system can automatically identify and adapt to different display screens, the maintenance and upgrading costs caused by improper configuration are reduced; at the same time, the embodiments of the present application provide an extensible serial port configuration framework, which provides support for future new technologies and new needs. Providing multiple serial port configuration options for sub-modes solves the problem of flexible configuration of multi-purpose serial ports, improves the adaptability of display screen driving and control, simplifies the hardware design process, reduces maintenance and upgrading costs, and improves the reliability and stability of the system, while supporting the extension of future technologies.
[0047] In an optional embodiment, the second driver includes at least one of the following: in the case of defining a group of serial ports as the first sub-mode, the second driver is a segment code liquid crystal screen driver; in the case of defining a group of serial ports as the second sub-mode, the second driver is a first LED display screen driver; in the case of defining a group of serial ports as the third sub-mode, the second driver is a second LED display screen driver.
[0048] In the above embodiment, each sub-mode corresponds to a type of display screen respectively, that is, by modifying the configuration of a group of serial ports, the control board can be applicable to different types of display screens, by configuring corresponding second drivers for different sub-modes, for example, the driver of the display screen corresponding to the first sub-mode is a segment code liquid crystal screen driver, that is, the first sub-mode is matched with the segment code liquid crystal screen, and the second sub-mode is matched with the first LED display screen, and the third sub-mode is matched with the second LED display screen, for example, the first LED display screen is a TM1668 LED display screen, and the second LED display screen is a 74HC164 LED display screen, this method ensures that the driver can be optimized for a specific type of display screen, and improves the applicability of the control board. In this embodiment, only the second mode includes the above three sub-modes as an example, in actual application, other sub-modes can also be included, that is, it can also be applicable to other types of display screens. By providing corresponding drivers for different hardware configurations, this method improves the compatibility of the system with various hardware, reduces display problems caused by incompatibility; this method provides multiple types of drivers, which can meet the needs of users for different types of display screens in different application scenarios; by ensuring the accurate matching of hardware configuration and driver, this method improves the stability and reliability of the system, reduces faults caused by driver errors; enhances the compatibility of the system, and meets the diversified needs of users.
[0049] In an optional embodiment, in the case of determining that the target display screen does not match the first mode, the set of serial ports is adjusted to the second mode and communicates with the target display screen until it is determined that the target display screen matches the second mode, comprising: in the case of determining that the target display screen does not match the first mode, configuring the set of serial ports to a first sub-mode; sending a command to read a first key scan result according to a first communication protocol, wherein the first communication protocol is a communication protocol corresponding to the first sub-mode; in the case of determining that the 5th key value is 1 based on the first key scan result, determining that the target display screen matches the first sub-mode, wherein the second driver is a segment code liquid crystal screen driver, and the segment code liquid crystal screen driver is a driver corresponding to the first sub-mode; in the case of determining that the 5th key value is not 1 based on the first key scan result, configuring the set of serial ports to a second sub-mode; sending a command to read a second key scan result according to a second communication protocol, wherein the second communication protocol is a communication protocol corresponding to the second sub-mode; in the case of determining that the 20th key value is 1 based on the second key scan result, determining that the target display screen matches the second sub-mode, wherein the second driver is a first LED display screen driver, and the first LED display screen driver is a driver corresponding to the second sub-mode; in the case of determining that the 20th key value is not 1 based on the second key scan result, configuring the set of serial ports to a third sub-mode; sending a command to read a third key scan result according to a third communication protocol, wherein the third communication protocol is a communication protocol corresponding to the third sub-mode; in the case of determining that the 8th key value is 1 based on the third key scan result, determining that the target display screen matches the third sub-mode, wherein the second driver is a second LED display screen driver, and the second LED display screen driver is a driver corresponding to the third sub-mode.
[0050] In the above embodiment, when it is determined that the first mode does not match the target display screen currently connected, a group of serial ports is configured as a first sub-mode in the second mode, the first sub-mode corresponds to a segment code liquid crystal screen, in the first sub-mode, communication interaction is performed with the target display screen to obtain a first key scanning result, and then it is judged whether the target display screen currently connected matches the first sub-mode. If yes, it is determined that the target display screen currently connected is a segment code liquid crystal screen. If no, the configuration of the group of serial ports is modified to a second sub-mode, the second sub-mode corresponds to a first LED display screen. As described above, in the second sub-mode, communication interaction is performed with the target display screen to obtain a second key scanning result, and then it is judged whether the target display screen currently connected matches the second sub-mode. If yes, it is determined that the target display screen currently connected is a first LED display screen. If no, the configuration of the group of serial ports is modified to a third sub-mode, the third sub-mode corresponds to a second LED display screen. For example, the first LED display screen is a TM1668 LED display screen, and the second LED display screen is a 74HC164 LED display screen, and so on, until it is determined that the target display screen currently connected matches. Through the technical solution, the purpose of automatically detecting the display screen type and adapting the corresponding driver program can be achieved. Through the intelligent detection process, manual intervention is reduced, and the automation and intelligent level of the system is improved. When a user uses different types of display screens, the system can automatically adapt and provide the best display effect, thereby optimizing the user experience. The user does not need to manually select or configure the driver program, and the system can automatically complete the adaptation, reducing the complexity of operation. Since the system can automatically adapt different display screens and communication protocols, the maintenance and support cost caused by improper selection of the driver program or error of the communication protocol is reduced.
[0051] In an optional embodiment, the step of judging whether the target display screen matches the first mode includes: obtaining a target file according to a fourth communication protocol, wherein the target file is a message header file sent by the target display screen; in a case where it is determined that the message header file meets the fourth communication protocol standard, it is judged that the target display screen matches the first mode; and in a case where it is determined that the message header file does not meet the fourth communication protocol standard, it is judged that the target display screen does not match the first mode.
[0052] In the above embodiment, in a case where the group of serial ports is configured as the first mode, a message header file can be obtained from the target display screen according to the corresponding communication protocol. When it is determined that the message header file meets the communication protocol standard, it is judged that the target display screen matches the first mode, and otherwise, it is judged that the target display screen does not match the first mode. The purpose of judging whether the target display screen currently connected matches the first mode is achieved.
[0053] It should be noted that the above described embodiments are only part of the embodiments of the present application, but not all. The present application will be described in detail below in combination with specific embodiments.
[0054] The embodiment of the present application provides a multi-type display screen adaptive adjustment method, Figure 3 The embodiment of the present application provides a multi-type display screen adaptive adjustment method flowchart, and the flowchart comprises the following steps:
[0055] S301, defining PC10 as a serial communication mode, defining PC11 as a serial communication mode, defining PC12 as an idle state, and defining PD2 as an idle state;
[0056] PC10, PC11, PC12 and PD2 correspond to the aforementioned group of serial ports, and the configuration in step S301 corresponds to the aforementioned configuration of the group of serial ports as the first mode;
[0057] S302, reading a message header file sent by the touch display screen according to the RS485 protocol;
[0058] It should be noted that at this time, it is not known yet what type of display screen is connected to the control board (or CPU mainboard), and the configuration in step S301 is matched with the touch display screen. If the two can normally communicate and interact, it can be judged that the currently connected display screen is a touch display screen. If the communication and interaction cannot be normally performed, the mode of the group of serial ports needs to be reconfigured;
[0059] S303, judging whether the header file is correct;
[0060] S304, in the case that the header file is correct, calling a touch display screen driving program; that is, it can be judged at this time that the connected display screen is a serial touch display screen;
[0061] S305, in the case that it is judged that the header file is incorrect, reconfiguring the mode of the aforementioned group of serial ports (corresponding to the aforementioned first sub-mode), for example, defining PC10 as a data line LCD_SDA, defining PC11 as a clock line LCD_CLK, defining PC12 as a chip selection line LCD_1623CS2 of a liquid crystal display driving chip HT1623, and defining PD2 as a chip selection line LCD_1618 of a key scanning chip TM1618;
[0062] S306, sending a command according to the TM1618 communication protocol to read the scanning result of the key of TM1618, and judging the last key value (the fifth key value);
[0063] S307, judging whether the fifth key value is "1";
[0064] S308, when the result of step S307 is yes, a segment code LCD driving program is called; that is, it is determined that the connected display screen is a segment code LCD screen;
[0065] S309, when the result of step S307 is no, a mode of a group of serial ports is reconfigured again (corresponding to the second sub-mode), for example, PC10 is defined as an idle state, PC11 is defined as TM1668 chip selection CS_TM1668, PC12 is defined as TM1668 data line SDA_TM1668, and PD2 is defined as TM1668 data line CLK_TM1668;
[0066] S310, a command is sent according to a TM1668 communication protocol to read a scanning result of a key of the TM1668, and a last key value (20th) is determined;
[0067] S311, whether the 20th key value is "1" is determined;
[0068] S312, when the result of step S311 is yes, an LED_TM1668 display screen driving program is called; that is, it is determined that the connected display screen is an LED_TM1668 display screen (corresponding to the first LED display screen);
[0069] S313, when the result of step S311 is no, a mode of a group of serial ports is reconfigured again (corresponding to the third sub-mode), for example, PC10 is defined as a key reading line key, PC11 is defined as 74HC164 control line OFF_164, PC12 is defined as 74HC164 data line DA_164, and PD2 is defined as 74HC164 clock line SCLK_164;
[0070] S314, a key value is read in a data transmission process through software cooperation of the key, DA_164 and SCLK_164 lines, and a last key value (8th) is determined;
[0071] S315, whether the 8th key value is "1" is determined;
[0072] S316, when the result of step S315 is yes, an LED_74HC164 display screen driving program is called; that is, it is determined that the connected display screen is an LED_74HC164 display screen (corresponding to the second LED display screen).
[0073] It should be noted that the above four types of display screens are taken as examples in the embodiments of the present application, and more types of display screens can be included in actual applications.
[0074] The LED_74HC164 display screen is a common display screen composed of a multi-bit 8-segment code display circuit, a multi-LED indicator light circuit and a multi-key scanning circuit. For example, taking a 7-bit digital display (each bit is an 8-segment code) as an example, it can include K1-K8, a total of 8 keys, 2 shift registers 74HC164, a signal line SDA (corresponding to the above DA_164) and a signal line CLK (corresponding to the above SCLK_164 line) under software control. In a working period, it can include multiple time periods, and in each time period, the 2 shift registers are shifted 16 times, and 1 word (a total of 2 bytes) of data refresh can be realized. The signal line OFF (corresponding to the above control line OFF_164) is used to turn off the display of the display at the beginning of each period to avoid the display or LED indicator light flickering interference when the serial shift register data is refreshed. The key reading line key is used to read the scanning results of the 8 keys.
[0075] Figure 4 is a serial port configuration diagram of different types of display screens provided by the embodiment of the application, Figure 4 The CPU mainboard in the above corresponds to the control backboard, Figure 4 The correct configuration of a group of serial ports when the CPU mainboard is matched with the display screen is shown in the above Figure 3 It can be known from the above that the embodiment of the application only needs one CPU mainboard to achieve the purpose of adapting to multiple different types of display screens.
[0076] The embodiment of the application has the following advantages: 1) No hardware adapter plate is needed. The 4 interface control lines (PC10, PC11, PC12, PD2) of the control backboard can be directly connected with the interfaces of 4 different display screens (serial touch display screen, segment code liquid crystal display screen, TM1668_LED display screen, 74HC164_LED display screen), and the hardware circuit is simple. 2) The control backboard realizes the matching with the corresponding display screen by calling different display screen driving software; when the display screen type is changed, only the related software needs to be modified, and the hardware does not need to be changed; it is convenient for later maintenance and upgrading. 3) After adopting the display screen compatibility technology, the production and inspection equipment of the related products is simplified and standardized. 4) For production, only one circuit board is needed for different types of display screens.
[0077] Through the description of the foregoing embodiments, those skilled in the art can clearly understand that the method according to the foregoing embodiments can be implemented by means of software on a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk), and includes a plurality of instructions to make a terminal device (which can be a mobile phone, a computer, a server, or a network device) execute the method described in each embodiment of the present application.
[0078] In the present application, a display screen driving control device is also provided, as shown in Figure 5 Figure 5 is a structural block diagram of a display screen driving control device provided by an embodiment of the present application, and the device includes:
[0079] The configuration module 501 is configured to configure a group of serial ports into a first mode, wherein the group of serial ports includes an interface for communicating with a target display screen.
[0080] The judgment module 502 is configured to, in a case where the group of serial ports has been connected to the target display screen, judge whether the target display screen matches the first mode.
[0081] The processing module 503 is configured to, in a case where it is determined that the target display screen does not match the first mode, adjust the group of serial ports into a second mode, and communicate with the target display screen until it is determined that the target display screen matches the second mode, and call a second driving program to drive the target display screen, wherein the second driving program is a driving program corresponding to the second mode.
[0082] The present application also provides a display device, including a control backplane and a target display screen, wherein the control backplane is electrically connected to the target display screen, and the control backplane is configured to execute the display screen driving control method in any of the foregoing embodiments.
[0083] Through the display device provided by the embodiments of the present application, the control backplane can adaptively match different types of display screens, such as the foregoing serial touch display screen, segment code liquid crystal display screen, TM1668 LED display screen, 74HC164 LED display screen, etc., by configuring a group of serial ports into different modes until the connected display screen normally interacts with the control backplane and passes the verification.
[0084] The present application also provides a computer readable storage medium, which stores instructions, and when the instructions are executed, the method steps of any of the foregoing embodiments are executed.
[0085] In an example embodiment, the computer readable storage medium described above can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0086] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0087] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other manners. For example, the division of the units is merely logical function division, and there can be other division manners in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0088] The units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.
[0089] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or in the form of software function unit.
[0090] When the integrated unit is implemented in the form of software function 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 solutions of the present application essentially or the part that makes contributions to the prior art, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the embodiments of the present application. The foregoing storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
[0091] The above-described embodiments of the disclosure are merely illustrative and should not be taken as limiting the scope of the disclosure. Any equivalent variation and modification of the above-described embodiments that are made in accordance with the teachings of the disclosure are still within the scope of the disclosure.
[0092] This application is intended to cover any variations, uses, or adaptations of the disclosure including such departures from the present disclosure that come within the known field of the art to which the disclosure pertains and fall within the scope of the appended claims.
Claims
1. A display screen drive control method, characterized by, The method comprises the following steps: configuring a group of serial ports into a first mode, wherein the group of serial ports comprises an interface for communicating with a target display screen; determining whether the target display screen matches the first mode when the group of serial ports has been connected to the target display screen; adjusting the group of serial ports into a second mode and communicating with the target display screen until it is determined that the target display screen matches the second mode, and calling a second driver program to drive the target display screen, wherein the second driver program is a driver program corresponding to the second mode; the group of serial ports comprises a first port, a second port, a third port and a fourth port, and configuring the group of serial ports into the first mode comprises defining the first port as a serial communication mode, defining the second port as a serial communication mode, and defining the third port and the fourth port as an idle state; wherein the driver program corresponding to the first mode is a first driver program, and the first driver program is a touch display screen driver program; adjusting the group of serial ports into the second mode comprises at least one of the following: configuring the group of serial ports into a first sub-mode, wherein the first sub-mode is used to indicate that the first port is defined as a data line port, the second port is defined as a clock line port, the third port is defined as a chip selection port of a liquid crystal display driving chip, and the fourth port is defined as a chip selection port of a first type key scanning chip, and the second mode comprises the first sub-mode; configuring the group of serial ports into a second sub-mode, wherein the second sub-mode is used to indicate that the first port is defined as an idle state, the second port is defined as a chip selection port of a second type key scanning chip, the third port is defined as a data line port, and the fourth port is defined as a clock line port, and the second mode comprises the second sub-mode; configuring the group of serial ports into a third sub-mode, wherein the third sub-mode is used to indicate that the first port is defined as a key reading port, the second port is defined as a control port for closing a display, the third port is defined as a data line port, and the fourth port is defined as a clock line port, and the second mode comprises the third sub-mode.
2. The method of claim 1, wherein, when it is determined that the target display screen matches the first mode, calling a first driver program to drive the target display screen, wherein the first driver program is a driver program corresponding to the first mode.
3. The method of claim 1, wherein, the second driver program comprises at least one of the following: when the group of serial ports is defined as the first sub-mode, the second driver program is a segment code liquid crystal screen driving program; when the group of serial ports is defined as the second sub-mode, the second driver program is a first LED display screen driving program; when the group of serial ports is defined as the third sub-mode, the second driver program is a second LED display screen driving program.
4. The method of claim 1, wherein, in a case where it is determined that the target display screen does not match the first mode, adjusting the set of serial ports to a second mode and communicating with the target display screen until it is determined that the target display screen matches the second mode, comprising: in a case where it is determined that the target display screen does not match the first mode, configuring the set of serial ports to the first sub-mode; sending a command to read a first key scan result according to a first communication protocol, wherein the first communication protocol is a communication protocol corresponding to the first sub-mode; in a case where it is determined that a 5th key value is 1 based on the first key scan result, determining that the target display screen matches the first sub-mode, wherein the second driver is a segment code liquid crystal screen driver, and the segment code liquid crystal screen driver is a driver corresponding to the first sub-mode; in a case where it is determined that the 5th key value is not 1 based on the first key scan result, configuring the set of serial ports to the second sub-mode; sending a command to read a second key scan result according to a second communication protocol, wherein the second communication protocol is a communication protocol corresponding to the second sub-mode; in a case where it is determined that a 20th key value is 1 based on the second key scan result, determining that the target display screen matches the second sub-mode, wherein the second driver is a first LED display screen driver, and the first LED display screen driver is a driver corresponding to the second sub-mode; in a case where it is determined that the 20th key value is not 1 based on the second key scan result, configuring the set of serial ports to the third sub-mode; sending a command to read a third key scan result according to a third communication protocol, wherein the third communication protocol is a communication protocol corresponding to the third sub-mode; in a case where it is determined that an 8th key value is 1 based on the third key scan result, determining that the target display screen matches the third sub-mode, wherein the second driver is a second LED display screen driver, and the second LED display screen driver is a driver corresponding to the third sub-mode.
5. The method of claim 1, wherein, determining whether the target display screen matches the first mode, comprising: obtaining a target file according to a fourth communication protocol, wherein the target file is a message header file sent by the target display screen; in a case where it is determined that the message header file meets the fourth communication protocol standard, determining that the target display screen matches the first mode; in a case where it is determined that the message header file does not meet the fourth communication protocol standard, determining that the target display screen does not match the first driver.
6. A display screen drive control apparatus characterized by comprising: comprising: a configuration module configured to configure a set of serial ports to a first mode, wherein the set of serial ports includes an interface for communicating with a target display screen; a determination module configured to determine whether the target display screen matches the first mode in a case where the set of serial ports has been connected to the target display screen; The processing module is configured to, in a case where it is determined that the target display screen does not match the first mode, adjust the set of serial ports to a second mode, and communicate with the target display screen until it is determined that the target display screen matches the second mode, and invoke a second driver to drive the target display screen, wherein the second driver is a driver corresponding to the second mode. The configuration module is configured to configure the set of serial ports to the first mode by defining the first port as a serial communication mode, defining the second port as a serial communication mode, and defining the third port and the fourth port as an idle state, wherein the driver corresponding to the first mode is a first driver, and the first driver is a touch display driver. The processing module is configured to adjust the set of serial ports to the second mode by at least one of the following: The processing module is configured to adjust the set of serial ports to the second mode by at least one of the following: The processing module is configured to adjust the set of serial ports to the second mode by at least one of the following: The processing module is configured to adjust the set of serial ports to the second mode by at least one of the following:
7. A display device, characterized by comprising: The processing module is configured to adjust the set of serial ports to the second mode by at least one of the following. The display screen driving control method comprises the following steps:
8. A computer-readable storage medium, characterized in that, The display screen driving control method comprises the following steps: The display screen driving control method comprises the following steps: The display screen driving control method comprises the following steps: The display screen driving control method comprises the following steps: The computer readable storage medium stores instructions, when the instructions are executed, the method as claimed in any one of claims 1 to 5 is executed. The computer readable storage medium stores instructions, when the instructions are executed, the method as claimed in any one of claims 1 to 5 is executed.
Citation Information
Patent Citations
Method, device and equipment compatible with various types of display screens, and medium
CN111221489A
Display screen drive adaptive configuration method, application, system and storage medium
CN116521259A