Embedded lattice screen display system based on QT graphics library

Through the embedded dot matrix screen display system based on the QT graphics library, the problems of complex interface design, inconvenient data interaction and unstable display driver in the prior art are solved, efficient interface design, rich graphic display and powerful scalability are achieved, and development and maintenance efficiency is improved.

CN119668602APending Publication Date: 2025-03-21JIANGSU HOMELITE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411585676.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The existing embedded dot matrix screen display technology has insufficient complexity, inefficiency, versatility and scalability in interface design, data interaction and display driving, and it is difficult to meet the complex and changeable application needs.

Method used

The embedded dot matrix screen display system based on the QT graphics library is adopted, which is divided into interface design layer, interaction layer, dot matrix conversion layer and display driver layer. The interface design and interaction logic are realized through the UI control component and layout manager of the QT graphics library, and the data interaction is realized using the MQTT communication protocol, and the QT interface is converted into a two-dimensional dot matrix array through the dot matrix conversion layer, and the display driver layer displays it on the dot matrix screen.

Benefits of technology

It improves interface design efficiency, supports rich graphic display, enhances the scalability and transplant capabilities of the system, provides preview functions during the development process, improves development efficiency and accuracy, and reduces development and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668602A_ABST
    Figure CN119668602A_ABST
Patent Text Reader

Abstract

The invention discloses an embedded lattice screen display system based on a QT graphics library. The embedded lattice screen display system comprises an interface design layer, an interaction layer, a lattice conversion layer and a display driving layer. According to the efficient interface design method, the operation process is simplified, the interface design efficiency is improved, and rich graphic display is supported; a universal UI display frame is also established, so that the UI display frame can flexibly interact with a plurality of service applications, display is dynamically adjusted according to contents provided by the service applications, and expansibility is enhanced; an effective mechanism is designed, accurate conversion from a QT interface to a two-dimensional dot matrix array and stable display driving from the two-dimensional array to a dot matrix screen are achieved, and the transplantation capacity is improved; and a preview function in the development process is also provided, so that the development efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dot matrix screen display, and in particular to an embedded dot matrix screen display system based on a QT graphics library. Background Art

[0002] The current embedded dot matrix display technology usually adopts a more traditional approach. In terms of interface design, there is often a lack of flexible and efficient tools, and most of them rely on direct operations on pixels and dot matrix screen specific fonts. There are also many deficiencies in interaction with business applications and display versatility, making it difficult to meet complex and changing application requirements.

[0003] The main technical disadvantages are as follows:

[0004] 1. The interface design is complex and inefficient

[0005] Traditional methods require a lot of manual manipulation of pixels and fonts, which results in a long development cycle and low efficiency for complex interface design. For example, when designing an interface with multiple interactive elements, developers need to spend a lot of time determining the state of each pixel and finding the appropriate font element.

[0006] 2. Poor versatility and scalability

[0007] The existing technology is tightly bound to specific dot matrix screen specifications and application logic, making it difficult to flexibly switch between different dot matrix screens or application scenarios. When it is necessary to replace the dot matrix screen or expand the application function, most of the code needs to be redeveloped, which increases development costs and time costs.

[0008] 3. The development process is not intuitive

[0009] During the development process, there is a lack of an effective preview mechanism, making it difficult for developers to view design effects in real time, which leads to cumbersome adjustment and optimization processes, further affecting development efficiency. Summary of the invention

[0010] The purpose of the present invention is to provide an embedded dot matrix screen display system based on the QT graphics library, so as to solve the problem of how to optimize the interface design, data interaction and display driver of the dot matrix screen through software technology in an embedded environment to meet different application scenarios.

[0011] To achieve the above object, the technical solution adopted by the present invention is:

[0012] An embedded dot matrix screen display system based on QT graphics library, including interface design layer, interaction layer, dot matrix conversion layer and display driver layer.

[0013] The interface design layer is used for interface design and functional interface writing, and creates interface display and interaction logic that meets user needs through the UI control components and layout manager of the QT graphics library;

[0014] The interaction layer is used to realize the interaction of data and instructions between the interface display and the business application, and realizes two-way data interaction by establishing a communication link with at least one business application;

[0015] The dot matrix conversion layer is used to convert the designed QT interface into a two-dimensional dot matrix array suitable for display on a dot matrix screen. Through the display characteristics of the dot matrix screen, the QT interface is sampled and quantized to obtain a two-dimensional array.

[0016] The display driver layer is used to display the converted two-dimensional dot matrix array on the dot matrix screen, and to display the two-dimensional dot matrix array data according to the display driver rules of the dot matrix screen by mobilizing the driver program of the dot matrix screen.

[0017] Furthermore, the interface design layer includes functional module interfaces and editing components, the functional module interfaces include but are not limited to main interface, application interface, menu interface, data interface and parameter interface, the editing components include but are not limited to numeric keypad, full keyboard, drop-down box, edit box and password box, and the interface design layer can also interact with hardware buttons.

[0018] Furthermore, the interface design layer can preview the interface effect in real time in the QT environment.

[0019] Furthermore, the interaction layer implements the communication function by adopting the MQTT communication protocol, receives data sent by the business application, and dynamically adjusts the interface display according to the instructions and provided content of the business application.

[0020] Furthermore, the dot matrix conversion layer converts the designed QT interface into a two-dimensional dot matrix array suitable for dot matrix screen display, which is achieved by the following steps:

[0021] The first step is to save the interface display as an image. Through the relevant functions provided by QT, the interface display designed by the interface design layer is converted into an image format for subsequent processing;

[0022] The second step is to perform grayscale value analysis on the converted image, read the saved image, and convert the color value of each pixel into a grayscale value;

[0023] The third step is to convert the converted grayscale value into a two-dimensional array of 0 and 1, and set a grayscale value threshold according to the display characteristics of the dot matrix screen. If the grayscale value of the pixel is greater than or equal to the threshold, the corresponding value is set to 1, and if it is less than the threshold, it is set to 0, so as to obtain a two-dimensional array of 0 and 1 that meets the display requirements of the dot matrix screen.

[0024] Furthermore, the display driver layer transmits and processes data according to the hardware interface specification of the dot matrix screen to ensure the integrity and accuracy of the display.

[0025] Furthermore, the dot matrix screen is an LCD dot matrix screen.

[0026] Beneficial effects:

[0027] The dot matrix screen display system in the present invention provides an efficient interface design method, simplifies the operation process, improves the interface design efficiency, and supports rich graphic display; it also establishes a universal UI display framework, so that it can flexibly interact with multiple business applications, dynamically adjust the display according to the content provided by the business application, and enhance the scalability; an effective mechanism is designed to realize the accurate conversion of the QT interface to the two-dimensional dot matrix array, and the stable display drive of the two-dimensional array to the dot matrix screen, thereby improving the transplantation capability; it also provides a preview function during the development process to improve the development efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a system block diagram of the present invention;

[0029] Figure 2 is a system architecture diagram of the present invention;

[0030] Figure 3 It is a flow chart of the interaction between UI and business applications in the present invention.

[0031] Figure 4 It is a flow chart of converting the QT interface into a two-dimensional dot matrix array in the present invention. DETAILED DESCRIPTION

[0032] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0033] Example

[0034] The present invention provides an embedded dot matrix screen display system based on a QT graphics library, which can be used for display screens with a dot matrix structure such as LCD display screens and LED display screens. In this embodiment, the technical solution of the present invention is explained by taking the LCD display screen as an example.

[0035] like Figure 1 and Figure 2 As shown, this embodiment provides an embedded dot matrix screen display system based on the QT graphics library, which adopts a layered architecture design and includes an interface design layer 200, an interaction layer 100, a dot matrix conversion layer 300 and a display driver layer 400.

[0036] The interface design layer 200 is used for interface design and functional interface writing. Through the UI control components and layout manager of the QT graphics library, an interface display and interaction logic that meets user needs is created.

[0037] Specifically, the interface design layer 200 is responsible for the design and interface implementation of functional module interfaces such as the main interface, application interface, menu interface, data interface, parameter interface, and editing components such as numeric keypad, full keyboard, drop-down box, edit box, password box, etc. Through various UI controls and layout managers of the QT graphics library, an interface display and interaction logic that meets user needs are created. At the same time, by processing the interface interaction between hardware buttons and interface controls, according to button operations (such as up, down, left, right, confirm, cancel, etc.), the focus display of the interface component is adjusted to move the focus between different components or trigger the corresponding operation interface.

[0038] When designing the interface, use QWidget, QTableWidget, QVBoxLayout, QHBoxLayout and other interface components in QT's GUI graphics library to design and layout the interface. Developers can preview the interface effects in real time in QT's UI design environment, which is convenient for timely adjustment of the design. The interface interaction between the hardware button and the focus display of the interface component is realized by writing an event processing function. This method is a prior art and will not be described here.

[0039] For example, when the up key is pressed, the component where the current focus is located is determined in the event processing function, and the focus is moved to the previous appropriate component according to the interface layout and logic; when the confirm key is pressed, the corresponding operation of the component where the current focus is located is triggered.

[0040] The interaction layer 100 is used to realize the interaction between the interface display and the data and instructions of the business application, and realizes two-way data interaction by establishing a communication link with at least one business application. Specifically, the communication function is realized by adopting the MQTT communication protocol, receiving the data sent by the business application, and dynamically adjusting the interface display according to the instructions and content provided by the business application to ensure the stability and reliability of communication. Figure 3 As shown, the interaction layer 100 can handle the registration, activation, heartbeat detection, menu display, data display and parameter display of business applications, and can read, write, query and other operations on business applications through the interface display. Among them, the system will configure the corresponding client and server programs to encapsulate, parse and transmit the data to ensure the reliability of data interaction.

[0041] The dot matrix conversion layer 300 is used to convert the designed QT interface into a two-dimensional dot matrix array suitable for display on a dot matrix screen. The QT interface is sampled and quantized to obtain a two-dimensional array according to the resolution, pixel format and other characteristics of the dot matrix screen. Figure 4 As shown, this is achieved through the following steps:

[0042] The first step S1 is to save the interface display as an image, and through the relevant functions provided by QT, convert the interface display designed by the interface design layer into an image format, such as PNG or JPEG, for subsequent processing.

[0043] In the second step S2, grayscale value analysis is performed on the converted image, the saved image is read, and the color value of each pixel is converted into a grayscale value. A common grayscale value conversion formula can be used, such as grayscale value = 0.299*R+0.587*G+0.114*B (for RGB color mode).

[0044] In the third step S3, the converted grayscale value is converted into a two-dimensional array of 0 and 1, and a grayscale value threshold is set according to the display characteristics of the dot matrix screen. If the grayscale value of the pixel point is greater than or equal to the threshold, the corresponding value is set to 1, and if it is less than the threshold, it is set to 0, so as to obtain a two-dimensional array of 0 and 1 that meets the display requirements of the dot matrix screen.

[0045] The display driver layer 400 is used to display the converted two-dimensional dot matrix array on the dot matrix screen, and transmit and process the data according to the hardware interface specification of the dot matrix screen to ensure the integrity and accuracy of the display. By mobilizing the driver of the dot matrix screen, the two-dimensional dot matrix array data is displayed according to the display driver rules of the dot matrix screen.

[0046] Specifically, the dot matrix screen display system in this embodiment provides an efficient interface design method. Through the interface design layer of the present invention, the interface design is more convenient and quick. Using the QT graphics library for interface design, developers do not need to manually operate pixels and fonts. By taking advantage of the QT graphics library, complex interfaces can be quickly created. Compared with the prior art, the development efficiency is improved by about 50%. For example, to design an interface containing multiple pages and interactive elements, the prior art may take two weeks, while the present invention only takes 3-4 days. In addition, the display graphics supported by this system are richer. Using various controls and layout managers of the QT graphics library, a rich and diverse interface layout and interactive logic can be created to achieve a variety of graphic display effects to meet the needs of different application scenarios. The traditional method is limited by fonts and pixel operations, and the graphic display is relatively single. Through various controls and layout managers, a variety of graphic displays are supported.

[0047] In addition, the system provides a preview function during the development process, so that developers can preview the interface effects in real time in the QT environment during the development process, which is convenient for timely discovery of problems and adjustments. This makes the development process more intuitive, reduces errors and adjustment time, and improves development efficiency and accuracy. For example, if the interface layout is found to be unreasonable during the development process, adjustments can be made immediately through real-time preview, while traditional methods may require recompiling and running the program to view the effect.

[0048] The universal UI display framework of the dot matrix screen display system in this embodiment can flexibly interact with multiple business applications, receive content provided by business applications through the interaction layer, and dynamically adjust the interface display, thereby enhancing the flexibility and scalability of the system. Different business applications only need to follow a unified interaction protocol to access the framework for display. Because the universal UI display framework established by the present invention has strong scalability, different business applications can easily access the framework and dynamically adjust the display according to the content provided by the business application. Compared with the prior art, when expanding new business applications, there is no need to redevelop most of the code, reducing development costs and time costs. For example, when a new business application is added, only a small amount of configuration and development is required at the interaction layer to achieve access and display.

[0049] The dot matrix screen display system in this embodiment has designed an effective mechanism and developed an accurate interface conversion algorithm and display driver mechanism. The conversion layer can accurately convert the QT interface into a two-dimensional dot matrix array according to the characteristics of the dot matrix screen, and the display driver layer ensures that the two-dimensional dot matrix array is stably and accurately displayed on the dot matrix screen, so that the system has a strong transplantation capability. When transplanting between different dot matrix screens, it is only necessary to adjust the size of the display interface and the display driver from the two-dimensional array to the dot matrix screen. Compared with the prior art, the transplantation cost is greatly reduced. For example, when changing from a dot matrix screen of one resolution to a dot matrix screen of another resolution, the prior art may require the redevelopment of a large amount of code, while the present invention only requires a small adjustment to the relevant modules.

[0050] The maintenance cost of the dot matrix screen display system in this embodiment is low and the compatibility is very good. Since the system adopts a layered architecture and a general design concept, the maintenance of the system is more convenient. When a problem occurs, it can be quickly located and solved according to the functions and interactive relationships of the modules. For example, if the display is abnormal, you can start troubleshooting from the display driver layer, check the conversion layer, the interaction layer and the interface design layer in turn, which reduces the maintenance cost. The system is based on general embedded device hardware and software technology, and has good compatibility with different embedded devices and dot matrix screens. As long as the basic hardware and software requirements are met, a stable display effect can be achieved, which expands the scope of application.

[0051] Although the embodiments of the present invention are described in the specification, these embodiments are only for reference and should not limit the protection scope of the present invention. Various omissions, substitutions and changes within the scope of the present invention should be included in the protection scope of the present invention.

Claims

1. An embedded dot matrix screen display system based on QT graphics library, characterized in that: Including interface design layer, interaction layer, dot matrix conversion layer and display driver layer, The interface design layer is used for interface design and functional interface writing, and creates interface display and interaction logic that meets user needs through the UI control components and layout manager of the QT graphics library; The interaction layer is used to realize the interaction of data and instructions between the interface display and the business application, and realizes two-way data interaction by establishing a communication link with at least one business application; The dot matrix conversion layer is used to convert the designed QT interface into a two-dimensional dot matrix array suitable for display on a dot matrix screen. Through the display characteristics of the dot matrix screen, the QT interface is sampled and quantized to obtain a two-dimensional array. The display driver layer is used to display the converted two-dimensional dot matrix array on the dot matrix screen, and to display the two-dimensional dot matrix array data according to the display driver rules of the dot matrix screen by mobilizing the driver program of the dot matrix screen.

2. The embedded dot matrix screen display system based on QT graphics library according to claim 1, characterized in that: The interface design layer includes function module interfaces and editing components. The function module interfaces include but are not limited to the main interface, application interface, menu interface, data interface and parameter interface. The editing components include but are not limited to the numeric keypad, full keyboard, drop-down box, edit box and password box. The interface design layer can also interact with hardware buttons.

3. The embedded dot matrix screen display system based on QT graphics library according to claim 1 is characterized in that: The interface design layer can preview the interface effect in real time in the QT environment.

4. The embedded dot matrix screen display system based on QT graphics library according to claim 1 is characterized in that: The interaction layer implements the communication function by adopting the MQTT communication protocol, receives data sent by the business application, and dynamically adjusts the interface display according to the instructions and provided content of the business application.

5. The embedded dot matrix screen display system based on QT graphics library according to claim 1 is characterized in that: The dot matrix conversion layer converts the designed QT interface into a two-dimensional dot matrix array suitable for dot matrix screen display, which is achieved by the following steps: The first step is to save the interface display as an image. Through the relevant functions provided by QT, the interface display designed by the interface design layer is converted into an image format for subsequent processing; The second step is to perform grayscale value analysis on the converted image, read the saved image, and convert the color value of each pixel into a grayscale value; The third step is to convert the converted grayscale value into a two-dimensional array of 0 and 1, and set a grayscale value threshold according to the display characteristics of the dot matrix screen. If the grayscale value of the pixel is greater than or equal to the threshold, the corresponding value is set to 1, and if it is less than the threshold, it is set to 0, so as to obtain a two-dimensional array of 0 and 1 that meets the display requirements of the dot matrix screen.

6. The embedded dot matrix screen display system based on QT graphics library according to claim 1 is characterized in that: The display driver layer transmits and processes data according to the hardware interface specification of the dot matrix screen to ensure the integrity and accuracy of the display.

7. The embedded dot matrix screen display system based on QT graphics library according to claim 1 is characterized in that: The dot matrix screen is an LCD dot matrix screen.

Citation Information

Cited By

  • Interface editing and data driving method and device for spacecraft simulation model

    CN120257491A