Multi-liquid crystal display method and system suitable for relay protection device
By using FPGA-1 and FPGA-2 in the relay protection device to drive RGB color and monochrome LCD screens respectively, and transmit display data through Ethernet, the transmission distance limitation and compatibility problems of traditional display solutions are solved, and flexible, long-distance and high-applicability multi-LCD display is achieved.
Patent Information
- Application Number
- CN202510017116.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-04-08
AI Technical Summary
The display scheme of traditional relay protection devices has problems such as transmission distance limitation and difficulty in supporting different liquid crystal displays.
The multi-liquid crystal display method and system are adopted to display RGB color LCD screens and monochrome LCD screens through FPGA-1 and FPGA-2 respectively, and the display data is transmitted through Ethernet, realizing long-distance transmission and interface expansion.
It realizes flexible display of LCD screens of various specifications, long transmission distance, convenient interface expansion, strong applicability, and is suitable for front wiring type protection devices.
Smart Images

Figure CN119788453A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system protection automation, and in particular to a multi-liquid crystal display method and system suitable for a relay protection device. Background Art
[0002] In the power industry, LCD display is an important means of human-machine interface interaction and data and communication event transmission. In actual engineering applications, there may be a certain distance between the display interface and the device. How to flexibly and effectively display the data interface is of great significance to relay protection devices. Traditional display solutions use parallel wiring, LVDS interface, etc., which have limited transmission distance and are difficult to support the display of different LCDs. Summary of the invention
[0003] The purpose of the present invention is to solve at least one technical problem in the background technology and to provide a multi-liquid crystal display method and system suitable for a relay protection device.
[0004] To achieve the above object, the present invention provides a multi-liquid crystal display method applicable to a relay protection device, comprising:
[0005] Packaging display interface data, button information, and coordinate information;
[0006] The packetized data is connected to the first FPGA via the first Ethernet;
[0007] The packetized data is connected to the second FPGA via a second Ethernet;
[0008] The first FPGA communicates with the processor via the SDIO bus to receive the packet data, and the interface displays data refresh frequency of 50Hz;
[0009] The first FPGA stores the received display interface data in the external DDR3 and realizes the display of the color LCD through the control logic;
[0010] The second FPGA supports 3-port data forwarding function and is connected to the MCU and external debugging port;
[0011] The second FPGA completes the format conversion of the display data and is connected to the MCU via the first SPI bus;
[0012] After the MCU receives the display data processed by the second FPGA, the second FPGA controls the display of the monochrome LCD through the SPI bus.
[0013] According to one aspect of the present invention, the first FPGA communicates with the processor via the SDIO bus, receives FrameBuffer data, and saves the data into DDR3 via the AXI-4 bus.
[0014] According to one aspect of the present invention, the first FPGA generates a clock signal, a synchronization signal, and multiple control signals for RGB parallel 16-bit data lines for driving a color LCD screen, wherein the clock signal is obtained by dividing a 250 MHz spread spectrum clock generated by a PLL inside the FPGA.
[0015] According to one aspect of the present invention, the second FPGA supports 3-port data forwarding, realizes data forwarding between the MCU, the debugging network port and the second Ethernet, and realizes file reading and writing and debugging log reading of the relay protection device.
[0016] According to one aspect of the present invention, the second FPGA converts the 16-bit data in the RGB format of the FrameBuffer into monochrome pixel data, and displays black when the pixel data (R+G+B) / 4 is greater than the set threshold V, otherwise it displays white, thereby realizing the conversion of pixel data in different formats.
[0017] According to one aspect of the present invention, the MCU supports RMII communication to complete data interaction between key information, status indicator light operation information and the processor CPU.
[0018] According to one aspect of the present invention, the MCU and the second FPGA transmit display data via a first SPI bus, and the MCU controls the interface display of a monochrome liquid crystal screen LCD via a second SPI bus.
[0019] Furthermore, to achieve the above-mentioned object, the present invention also provides a multi-liquid crystal display system suitable for a relay protection device, comprising:
[0020] The package module packages the display interface data, button information, and coordinate information;
[0021] A first connection module, which packages data and connects it to the first FPGA via a first Ethernet;
[0022] A second connection module, the packetized data is connected to the second FPGA via a second Ethernet;
[0023] The first FPGA processing module, the first FPGA communicates with the processor through the SDIO bus, receives the package data, and the interface displays data refresh frequency of 50Hz;
[0024] Color LCD display module, the first FPGA stores the received display interface data in the external DDR3, and realizes the display of the color LCD screen through the control logic;
[0025] The second FPGA processing module supports 3-port data forwarding function and is connected to the MCU and external debugging port;
[0026] The data forwarding module, the second FPGA completes the format conversion of the display data and is connected to the MCU via the first SPI bus;
[0027] In the monochrome liquid crystal display module, after the MCU receives the display data processed by the second FPGA, the second FPGA controls the display of the monochrome liquid crystal screen LCD through the SPI bus.
[0028] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the multi-liquid crystal display method applicable to a relay protection device as described above is implemented.
[0029] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the multi-liquid crystal display method applicable to a relay protection device as described above is implemented.
[0030] According to the solution of the present invention, it needs to be further explained that in order to realize the display of liquid crystals of various specifications, FPGA-1 and FPGA-2 respectively complete the display of RGB color LCD screen and the format conversion of monochrome LCD screen LCD data, and transmit the display data through Ethernet, which has a long transmission distance, convenient interface expansion and strong applicability.
[0031] According to the solution of the present invention, two FPGAs are used to realize driving and displaying different types of LCDs, wherein FPGA-1 supports display data stored in DDR3 and drives a color LCD screen in RGB format; FPGA-2 can support the conversion of RGB data in a frame format into single-pixel data, realizing the conversion of two different LCD screen data with high flexibility; wherein the display interface data is transmitted via Ethernet, which can realize long-distance transmission and is used in front-wiring type protection devices, which is easy for users to operate. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1-Figure 3 A flowchart schematically showing a multi-liquid crystal display method applicable to a relay protection device according to an embodiment of the present invention;
[0033] Figure 4 A schematic block diagram schematically showing the storage format of RGB data of a color liquid crystal screen in DDR3 according to an embodiment of the present invention;
[0034] Figure 5 A schematic block diagram schematically showing a liquid crystal display driving clock according to an embodiment of the present invention;
[0035] Figure 6A software flow chart schematically showing different liquid crystal displays according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only to enable those skilled in the art to better understand and thus implement the present invention, rather than implying any limitation on the scope of the present invention.
[0037] As used herein, the term “including” and variations thereof are to be interpreted as open-ended terms meaning “including, but not limited to.” The term “based on” is to be interpreted as “based, at least in part, on.” The terms “one embodiment” and “an embodiment” are to be interpreted as “at least one embodiment.”
[0038] Figure 1-Figure 3 The flowchart schematically shows a multi-liquid crystal display method applicable to a relay protection device according to an embodiment of the present invention. Figure 1-Figure 3 As shown, in this embodiment, a multi-liquid crystal display method applicable to a relay protection device includes:
[0039] The application packages display interface data, key information, coordinate information, etc.
[0040] The packetized data is connected to FPGA-1 (first FPGA) via Ethernet 1 (first Ethernet);
[0041] The packetized data is connected to FPGA-2 (second FPGA) via Ethernet 2 (second Ethernet);
[0042] FPGA-1 communicates with the processor via the SDIO bus to receive packet data, and the interface displays data refresh frequency of 50Hz;
[0043] FPGA-1 stores the received display interface data in the external DDR3 and realizes the display of the color LCD screen LCD-1 through control logic;
[0044] FPGA-2 supports 3-port data forwarding function and is connected to MCU and external debugging port;
[0045] FPGA-2 completes the format conversion of display data and connects to MCU via SPI-1 bus (first SPI bus);
[0046] After receiving the display data processed by FPGA-2, MCU controls the display of monochrome LCD-2 through SPI-2 bus (second SPI bus);
[0047] MCU supports functions such as key information transmission and status indicator light control;
[0048] According to the above scheme of the present invention, in order to realize the display of liquid crystals of various specifications, FPGA-1 and FPGA-2 respectively complete the display of RGB color LCD screen and the format conversion of monochrome LCD screen LCD data, and transmit the display data through Ethernet, which has the characteristics of long transmission distance, convenient interface expansion and strong applicability.
[0049] Further, Figure 4 A schematic block diagram schematically showing the storage format of RGB data of a color liquid crystal screen in DDR3 according to an embodiment of the present invention; Figure 5 A schematic block diagram schematically showing a liquid crystal display driving clock according to an embodiment of the present invention; Figure 6 A software flow chart schematically showing different liquid crystal displays according to an embodiment of the present invention.
[0050] Combination Figure 4-Figure 6 As shown, in this embodiment, in order to reduce the EMI index of the entire device, the clock spread spectrum technology is adopted, and the generation of clocks of different models of LCD liquid crystal screens is achieved through configuration selection;
[0051] In this implementation, the display interface data uses the FrameBuffer general interface under the Linux system, which is simple to operate and has strong versatility.
[0052] In this embodiment, the display data is transmitted via the Ethernet bus, which has a long transmission distance, strong anti-interference ability, and is easy to expand.
[0053] In this implementation, FPGA-1 communicates with the processor via SDIO, receives FrameBuffer data, and saves the data to DDR3 via the AXI-4 bus.
[0054] In this embodiment, FPGA-1 generates multiple control signals such as clock, synchronization signal, RGB parallel 16-bit data line, etc. to drive the color LCD screen. The clock signal is obtained by dividing the 250MHz spread spectrum clock generated by the internal PLL of the FPGA, which effectively reduces the EMI performance of the entire device.
[0055] In this embodiment, in order to support monochrome LCD display, FPGA-2 converts the 16-bit data in RGB format of FrameBuffer into monochrome pixel data. When the pixel data (R+G+B) / 4 is greater than the set threshold V, it displays black, otherwise it displays white, thereby realizing the conversion of pixel data in different formats.
[0056] In this embodiment, FPGA-2 supports 3-port data forwarding function, realizes data forwarding between MCU, debug port and Ethernet 2, and realizes common functions such as device file reading and writing, debug log reading, etc.
[0057] In this embodiment, the MCU supports RMII communication, and completes data exchange with the processor CPU for information such as device panel button information and status indicator light operation.
[0058] In this implementation, the MCU and FPGA-2 transmit display data via the SPI-1 bus, and the MCU controls the interface display of the monochrome liquid crystal screen LCD-2 via SPI-2.
[0059] According to the above scheme of the present invention, it needs to be further explained that in order to realize the display of liquid crystals of various specifications, FPGA-1 and FPGA-2 respectively complete the display of RGB color LCD screen and the format conversion of monochrome LCD screen LCD data, and transmit the display data through Ethernet, which has a long transmission distance, convenient interface expansion and strong applicability.
[0060] According to the solution of the present invention, two FPGAs are used to realize driving and displaying different types of LCDs, wherein FPGA-1 supports display data stored in DDR3 and drives a color LCD screen in RGB format; FPGA-2 can support the conversion of RGB data in a frame format into single-pixel data, realizing the conversion of two different LCD screen data with high flexibility; wherein the display interface data is transmitted via Ethernet, which can realize long-distance transmission and is used in front-wiring type protection devices, which is easy for users to operate.
[0061] Furthermore, to achieve the above-mentioned object, the present invention also provides a multi-liquid crystal display system suitable for a relay protection device, comprising:
[0062] The package module packages the display interface data, button information, and coordinate information;
[0063] A first connection module, which packages data and connects it to the first FPGA via a first Ethernet;
[0064] A second connection module, the packetized data is connected to the second FPGA via a second Ethernet;
[0065] The first FPGA processing module, the first FPGA communicates with the processor through the SDIO bus, receives the package data, and the interface displays data refresh frequency of 50Hz;
[0066] Color LCD display module, the first FPGA stores the received display interface data in the external DDR3, and realizes the display of the color LCD screen through the control logic;
[0067] The second FPGA processing module supports 3-port data forwarding function and is connected to the MCU and external debugging port;
[0068] The data forwarding module, the second FPGA completes the format conversion of the display data and is connected to the MCU via the first SPI bus;
[0069] In the monochrome liquid crystal display module, after the MCU receives the display data processed by the second FPGA, the second FPGA controls the display of the monochrome liquid crystal screen LCD through the SPI bus.
[0070] According to the above scheme of the present invention, in order to realize the display of liquid crystals of various specifications, FPGA-1 and FPGA-2 respectively complete the display of RGB color LCD screen and the format conversion of monochrome LCD screen LCD data, and transmit the display data through Ethernet, which has the characteristics of long transmission distance, convenient interface expansion and strong applicability.
[0071] Combination Figure 4-Figure 6 As shown, in this embodiment, in order to reduce the EMI index of the entire device, the clock spread spectrum technology is adopted, and the generation of clocks of different models of LCD liquid crystal screens is achieved through configuration selection;
[0072] In this implementation, the display interface data uses the FrameBuffer general interface under the Linux system, which is simple to operate and has strong versatility.
[0073] In this embodiment, the display data is transmitted via the Ethernet bus, which has a long transmission distance, strong anti-interference ability, and is easy to expand.
[0074] In this implementation, FPGA-1 communicates with the processor via SDIO, receives FrameBuffer data, and saves the data to DDR3 via the AXI-4 bus.
[0075] In this embodiment, FPGA-1 generates multiple control signals such as clock, synchronization signal, RGB parallel 16-bit data line, etc. to drive the color LCD screen. The clock signal is obtained by dividing the 250MHz spread spectrum clock generated by the internal PLL of the FPGA, which effectively reduces the EMI performance of the entire device.
[0076] In this embodiment, in order to support monochrome LCD display, FPGA-2 converts the 16-bit data in RGB format of FrameBuffer into monochrome pixel data. When the pixel data (R+G+B) / 4 is greater than the set threshold V, it displays black, otherwise it displays white, thereby realizing the conversion of pixel data in different formats.
[0077] In this embodiment, FPGA-2 supports 3-port data forwarding function, realizes data forwarding between MCU, debug port and Ethernet 2, and realizes common functions such as device file reading and writing, debug log reading, etc.
[0078] In this embodiment, the MCU supports RMII communication, and completes data exchange with the processor CPU for information such as device panel button information and status indicator light operation.
[0079] In this implementation, the MCU and FPGA-2 transmit display data via the SPI-1 bus, and the MCU controls the interface display of the monochrome liquid crystal screen LCD-2 via SPI-2.
[0080] According to the above scheme of the present invention, it needs to be further explained that in order to realize the display of liquid crystals of various specifications, FPGA-1 and FPGA-2 respectively complete the display of RGB color LCD screen and the format conversion of monochrome LCD screen LCD data, and transmit the display data through Ethernet, which has a long transmission distance, convenient interface expansion and strong applicability.
[0081] According to the solution of the present invention, two FPGAs are used to realize driving and displaying different types of LCDs, wherein FPGA-1 supports display data stored in DDR3 and drives a color LCD screen in RGB format; FPGA-2 can support the conversion of RGB data in a frame format into single-pixel data, realizing the conversion of two different LCD screen data with high flexibility; wherein the display interface data is transmitted via Ethernet, which can realize long-distance transmission and is used in front-wiring type protection devices, which is easy for users to operate.
[0082] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the multi-liquid crystal display method applicable to the relay protection device as described above is implemented.
[0083] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the multi-liquid crystal display method applicable to a relay protection device as described above is implemented.
[0084] Those skilled in the art will appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0085] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method implementation methods, and will not be repeated here.
[0086] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0087] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0088] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0089] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the energy-saving signal sending / receiving method of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0090] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
[0091] It should be understood that the size of the serial numbers of each step in the content of the invention and the implementation methods of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of the present invention.
Claims
1. A multi-liquid crystal display method applicable to a relay protection device, characterized in that: include: Packaging display interface data, button information, and coordinate information; The packetized data is connected to the first FPGA via the first Ethernet; The packetized data is connected to the second FPGA via a second Ethernet; The first FPGA communicates with the processor via the SDIO bus to receive the packet data, and the interface displays data refresh frequency of 50Hz; The first FPGA stores the received display interface data in the external DDR3 and realizes the display of the color LCD through the control logic; The second FPGA supports 3-port data forwarding function and is connected to the MCU and external debugging port; The second FPGA completes the format conversion of the display data and is connected to the MCU via the first SPI bus; After the MCU receives the display data processed by the second FPGA, the second FPGA controls the display of the monochrome LCD through the SPI bus.
2. The multi-liquid crystal display method applicable to a relay protection device according to claim 1, characterized in that: The first FPGA communicates with the processor via the SDIO bus, receives FrameBuffer data, and saves the data to DDR3 via the AXI-4 bus.
3. The multi-liquid crystal display method applicable to a relay protection device according to claim 1, characterized in that: The first FPGA generates a clock signal, a synchronization signal, and multiple control signals for RGB parallel 16-bit data lines for driving a color LCD screen, wherein the clock signal is obtained by dividing a 250MHz spread spectrum clock generated by a PLL inside the FPGA.
4. The multi-liquid crystal display method applicable to a relay protection device according to claim 1, characterized in that: The second FPGA supports 3-port data forwarding, realizes data forwarding between the MCU, the debugging network port and the second Ethernet, and realizes file reading and writing and debugging log reading of the relay protection device.
5. The multi-liquid crystal display method applicable to a relay protection device according to claim 1, characterized in that: The second FPGA converts the 16-bit data in RGB format of the FrameBuffer into monochrome pixel data. When the pixel data (R+G+B) / 4 is greater than the set threshold V, it displays black, otherwise it displays white, thereby realizing the conversion of pixel data in different formats.
6. The multi-liquid crystal display method applicable to a relay protection device according to claim 1, characterized in that: The MCU supports RMII communication and completes data exchange between key information, status indicator light operation information and the processor CPU.
7. The multi-liquid crystal display method applicable to a relay protection device according to any one of claims 1 to 6, characterized in that: The MCU and the second FPGA transmit display data via the first SPI bus, and the MCU controls the interface display of the monochrome liquid crystal screen LCD via the second SPI bus.
8. A multi-liquid crystal display system suitable for a relay protection device, characterized in that: include: The package module packages the display interface data, button information, and coordinate information; A first connection module, which packages data and connects it to the first FPGA via a first Ethernet; A second connection module, the packetized data is connected to the second FPGA via a second Ethernet; The first FPGA processing module, the first FPGA communicates with the processor through the SDIO bus, receives the package data, and the interface displays data refresh frequency of 50Hz; Color LCD display module, the first FPGA stores the received display interface data in the external DDR3, and realizes the display of the color LCD screen through the control logic; The second FPGA processing module supports 3-port data forwarding function and is connected to the MCU and external debugging port; The data forwarding module, the second FPGA completes the format conversion of the display data and is connected to the MCU via the first SPI bus; In the monochrome liquid crystal display module, after the MCU receives the display data processed by the second FPGA, the second FPGA controls the display of the monochrome liquid crystal screen LCD through the SPI bus.
9. An electronic device, characterized in that It comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, a multi-liquid crystal display method applicable to a relay protection device as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the multi-liquid crystal display method applicable to a relay protection device as described in any one of claims 1 to 7 is implemented.