Differential compression algorithm-based power distribution terminal liquid crystal design method and system

By using differential compression algorithm in the liquid crystal design of power distribution terminals, the problems of liquid crystal stability, flexibility and initialization time are solved, and more efficient data transmission and display are achieved, improving the overall performance of power distribution terminals.

CN120196474APending Publication Date: 2025-06-24NANJING GUODIAN NANZI POWER GRID AUTOMATION CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510268667.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the existing liquid crystal design scheme of power distribution terminals, the stability of the liquid crystal is affected by high workloads, the flexibility is limited by the curing menu catalog, and the initialization time is long, which affects the timeliness.

Method used

Using a design method based on a differential compression algorithm, the menu catalog and sampled data are obtained and synchronized through the communication between the liquid crystal CPU and the main CPU, and the data is selectively compressed using the differential compression algorithm, transmit the differential compression data frame to the liquid crystal CPU, and decompress and store it in the liquid crystal CPU.

Benefits of technology

It improves the flexibility and stability of the LCD display device, shortens the initialization time of the LCD display device, and enhances the rapidity of the power distribution terminal and the human-computer interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196474A_ABST
    Figure CN120196474A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power grid automation, and provides a power distribution terminal liquid crystal design method and system based on a differential compression algorithm, and the method comprises the steps: a liquid crystal CPU reads key information of a main CPU, the key information comprises a menu directory CRC configuration code and a sampling data CRC configuration code, the liquid crystal CPU judges whether the menu directory and the sampling data need to be read again or not according to the two CRC configuration codes; the main CPU selectively compresses the menu directory and the sampling data to obtain a differential compressed data frame, and transmits the differential compressed data frame to the liquid crystal CPU; and a GUI module in the liquid crystal CPU carries out data decompression on the differential compression data frame, and after a decompressed menu directory and sampling data are obtained, the decompressed menu directory and the sampling data are stored in an on-chip Flash of the liquid crystal CPU to be displayed and used. According to the invention, the problem of slow transmission of large-capacity data through a serial port is effectively solved, the initialization time of the liquid crystal display device is shortened, and the liquid crystal display rapidity of the power distribution terminal is 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 power grid automation, and in particular to a method and system for designing a liquid crystal for a power distribution terminal based on a differential compression algorithm. Background Art

[0002] With the full advancement of smart grids, higher requirements are placed on the monitoring, management and maintenance of power equipment. As an indispensable component of smart grids, the stability and reliability of distribution terminals are directly related to the overall operating efficiency and safety of the power system. In this context, LCD screens have become an indispensable component in distribution terminal equipment due to their high definition, low power consumption, long life and good human-computer interaction interface. The application of distribution terminal LCDs enables power workers to intuitively obtain the real-time operating status, fault alarm information and various operating parameters of the distribution network, optimize the human-computer interaction experience, and greatly improve work efficiency. However, there are certain defects in the existing distribution terminal LCD design schemes:

[0003] An independent HMI module is set in the power distribution terminal protection test CPU to convert the menu directory and sampled data into pixels, and send the pixel information to the LCD display device through SPI. This solution is extremely dependent on the HMI module and needs to convert the protection CPU sampled data into pixels in a short time. The workload is very high and the stability of the LCD is affected.

[0004] The menu directory is fixed in the LCD display device, and the power distribution terminal protection CPU only needs to send the fixed category of sampled data in the menu, and the data sending speed is very fast. The disadvantage of this solution is also obvious. The LCD can only display specific content, and the flexibility of the LCD is affected.

[0005] The distribution terminal protection test CPU directly sends the menu directory and sampled data to the LCD display device through serial communication. Because this solution is relatively simple and direct, it is widely used. However, due to the large amount of data sent, the LCD generally has a long initialization time due to the limitation of the serial port transmission speed, which affects the timeliness of the LCD. Summary of the invention

[0006] The purpose of the present invention is to solve at least one technical problem in the background technology and to provide a method and system for designing liquid crystal of a power distribution terminal based on a differential compression algorithm.

[0007] To achieve the above object, the present invention provides a method for designing a power distribution terminal liquid crystal based on a differential compression algorithm, comprising:

[0008] The power distribution terminal is equipped with a main CPU capable of realizing three remote control and protection functions and a LCD CPU capable of viewing and modifying the data of the main CPU;

[0009] The liquid crystal CPU communicates with the main CPU to obtain the menu directory and sampling data that the main CPU needs to display;

[0010] In the initialization stage, synchronize the menu directory and sampling data of the liquid crystal CPU and the main CPU: The liquid crystal CPU reads the key information of the main CPU, and the key information includes the menu directory CRC configuration code and the sampling data CRC configuration code. The liquid crystal CPU determines whether the menu directory and sampling data need to be read again according to the above two CRC configuration codes;

[0011] The module in the main CPU responsible for communicating with the liquid crystal CPU uses the differential compression algorithm to selectively compress the menu directory and sampling data to obtain a differential compression data frame, and transmits the differential compression data frame to the liquid crystal CPU;

[0012] The GUI module in the liquid crystal CPU decompresses the differential compression data frame, stores the decompressed menu directory and sampling data in the on-chip Flash of the liquid crystal CPU for display.

[0013] According to one aspect of the present invention, the menu directory includes a telemetry menu, a tele-signal menu, a remote control menu, a parameter setting value menu, and a protection setting value menu, and each type of menu contains several data entries.

[0014] According to one aspect of the present invention, the CRC configuration code uses a cyclic redundancy check code. When the menu directory or sampling data entry changes, the corresponding CRC configuration code also changes.

[0015] According to one aspect of the present invention, using the differential compression algorithm to selectively compress the menu directory and sampling data to obtain a differential compression data frame, including:

[0016] The main CPU of the distribution terminal allocates memory for the differential compression data frame;

[0017] The menu directory and sampling data to be transmitted to the liquid crystal CPU are the original data S[i], and the differential data D[i] is calculated through the original data S[i]:

[0018] D[i] = (int16_t)(S[i] - S[i - 1] - S[i - 1] + S[i - 2])

[0019] In the formula, i = 2, 3,..., and the differential data D[2], D[3], D[4],... D[i] can be calculated. Let D[0] = D[1] = 0;

[0020] Divide the differential data into groups of 16 each, and determine the bit-width markers H[0], H[1], H[2],... H[n] (n > 2) of each group of differential data according to the interval to which each group of differential data belongs;

[0021] Fill the original data S[0], S[1], the differential data D[0], …, D[i], and the bit-width markers H[0], …, H[n] into the memory respectively, where the differential data D[0], …, D[i] are stored continuously in little-endian mode, obtaining a differentially compressed data frame.

[0022] According to one aspect of the present invention, the GUI module in the liquid crystal CPU decompresses the differentially compressed data frame to obtain the original data of the menu directory and the sampled data, including:

[0023] Extract the original data S[0], S[1], and the bit-width markers H[0], …, H[n] from the differentially compressed data frame;

[0024] According to the bit-width markers H[0], …, H[n], take out the whole set of differential data from the differentially compressed data frame;

[0025] Since the data lengths of the 16 differential data in the same group are the same, 16 differential data D[i] can be obtained from the taken-out set of differential data;

[0026] Combine the original data S[0], S[1], and through the formula S[i] = (int16_t)(S[i - 1]+S[i - 1]-S[i - 2]+D[i]), where i = 2, 3, …, calculate the original data S[3], …, S[i] to achieve decompression.

[0027] According to one aspect of the present invention, the module in the main CPU responsible for communicating with the liquid crystal CPU and the GUI module in the liquid crystal CPU are both processor-executable programs developed using the C language within the windows system.

[0028] According to one aspect of the present invention, the decompressed menu and data stored in the on-chip Flash of the liquid crystal CPU are converted into character dot matrix diagrams through the GUI module and displayed on the liquid crystal screen.

[0029] To achieve the above object, the present invention also provides a distribution terminal liquid crystal design system based on a differential compression algorithm, including:

[0030] A CPU configuration module that configures a main CPU capable of realizing three-remote and protection functions and a liquid crystal CPU capable of viewing and modifying the data of the main CPU for the distribution terminal;

[0031] A menu directory and sampled data communication module, where the liquid crystal CPU communicates with the main CPU to obtain the menu directory and sampled data that the main CPU needs to display;

[0032] Key information reading module. In the initialization stage, synchronize the menu directory and sampling data of the liquid crystal CPU and the main CPU: The liquid crystal CPU reads the key information of the main CPU, and the key information includes the menu directory CRC configuration code and the sampling data CRC configuration code. The liquid crystal CPU determines whether the menu directory and sampling data need to be read again according to the above two CRC configuration codes;

[0033] Differential compression data frame acquisition and transmission module. The module responsible for communicating with the liquid crystal CPU in the main CPU uses the differential compression algorithm to selectively compress the menu directory and sampling data to obtain a differential compression data frame, and transmits the differential compression data frame to the liquid crystal CPU;

[0034] Data decompression module. The GUI module in the liquid crystal CPU decompresses the differential compression data frame, obtains the decompressed menu directory and sampling data, and stores them in the on-chip Flash of the liquid crystal CPU for display.

[0035] To achieve the above object, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements the above-mentioned design method of the distribution terminal liquid crystal based on the differential compression algorithm.

[0036] To achieve the above object, the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, it implements the above-mentioned design method of the distribution terminal liquid crystal based on the differential compression algorithm.

[0037] According to the solution of the present invention, according to the above solution of the present invention, the present invention uses the cyclic redundancy check technology, and the protection measurement CPU of the distribution terminal can select the menu directory and sampling data to be sent, which ensures that the menu directory can be freely configured, enhances the flexibility of the liquid crystal display device, and optimizes the human-computer interaction experience of the distribution terminal.

[0038] The present invention uses the principle of differential compression to transmit the compressed data frame to the liquid crystal display device. This method does not increase the workload of the protection measurement CPU and enhances the stability of the distribution terminal. The menu directory and sampling data are stored in the liquid crystal display device in the form of a compressed data frame, which can effectively reduce the liquid crystal memory and save costs. Furthermore, this method effectively solves the problem of slow serial port transmission of large-capacity data, shortens the initialization time of the liquid crystal display device, and improves the rapidity of the liquid crystal display of the distribution terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 Schematically shows a flowchart of a design method of a distribution terminal liquid crystal based on a differential compression algorithm according to an embodiment of the present invention. Detailed implementation manners

[0040] The content of the present invention will now be described with reference to exemplary implementation manners. It should be understood that the described implementation manners are only for enabling those of ordinary skill in the art to better understand and thus implement the content of the present invention, rather than implying any limitation on the scope of the present invention.

[0041] As used herein, the term "comprising" and its variants are to be construed as open-ended terms meaning "including but not limited to". The term "based on" is to be construed as "at least partially based on". The terms "one implementation manner" and "an implementation manner" are to be construed as "at least one implementation manner".

[0042] Figure 1 A flowchart schematically showing a design method of a liquid crystal for a distribution terminal based on a differential compression algorithm according to an implementation manner of the present invention. As Figure 1 shown, in this implementation manner, the design method of the liquid crystal for the distribution terminal based on the differential compression algorithm includes:

[0043] Configure a main CPU in the distribution terminal that can implement three-remote and protection functions and a liquid crystal CPU that can view and modify the data of the main CPU;

[0044] The liquid crystal CPU communicates with the main CPU to obtain the menus that the main CPU needs to display and the data items to be displayed under the menus;

[0045] In the initialization stage, synchronize the menu directories and sampling data of the liquid crystal CPU and the main CPU: The liquid crystal CPU reads the key information of the main CPU. The key information includes the menu directory CRC configuration code and the sampling data CRC configuration code. The liquid crystal CPU determines whether the current menu directory and sampling data need to be read again according to the above two CRC configuration codes: Taking the initialization of the menu directory as an example, if the menu directory CRC configuration code in the liquid crystal memory is different from the menu directory CRC configuration code of the main CPU, the menu directory of the main CPU needs to be read again and the menu directory CRC configuration code in the liquid crystal memory is modified. If the two are the same, the liquid crystal CPU skips the menu directory initialization stage. The same applies to the initialization of the sampling data;

[0046] After the menu directories and sampling data are synchronized, the module in the main CPU responsible for communicating with the liquid crystal CPU uses the differential compression algorithm to selectively compress the menu directories and sampling data to obtain a differential compression data frame, and transmits the differential compression data frame to the liquid crystal CPU;

[0047] The GUI module in the liquid crystal CPU decompresses the differential compression data frame, and stores the decompressed menu directories and sampling data in the on-chip Flash of the liquid crystal CPU for display use.

[0048] Further, according to an embodiment of the present invention, the menu directory includes a telemetry menu, a tele-signaling menu, a remote control menu, a parameter setting value menu, and a protection setting value menu, and each type of menu contains several data entries.

[0049] Further, according to an embodiment of the present invention, the CRC configuration code adopts a cyclic redundancy check code, and when the menu or data entry changes, the corresponding CRC configuration code also changes.

[0050] Further, according to an embodiment of the present invention, a differential compression algorithm is adopted to selectively compress the menu directory and sampled data to obtain a differential compression data frame, including:

[0051] The main CPU of the distribution terminal allocates memory for the differential compression data frame;

[0052] The menu directory and sampled data to be transmitted to the LCD CPU are the original data S[i], and the differential data D[i] is calculated through the original data S[i]:

[0053] D[i] = (int16_t)(S[i] - S[i - 1] - S[i - 1] + S[i - 2])

[0054] In the formula, i = 2, 3,..., and the differential data D[2], D[3], D[4],... D[i] can be calculated, and let D[0] = D[1] = 0;

[0055] The differential data is divided into groups of 16 each, and according to the interval to which each group of differential data belongs, the bit-width markers H[0], H[1], H[2],... H[n] (n > 2) of each group of differential data are determined;

[0056] If all the differential data in this group belongs to the interval [-8, 7], then the bit-width of this group of differential data is 4 bits, and let the bit-width marker H[n] = 0;

[0057] If all the differential data in this group belongs to the interval [-128, 127], then the bit-width of this group of differential data is 8 bits, and let the bit-width marker H[n] = 1;

[0058] If all the differential data in this group belongs to the interval [-2048, 2047], then the bit-width of this group of differential data is 12 bits, and let the bit-width marker H[n] = 2;

[0059] If all the differential data in this group belongs to the interval [-32768, 32767], then the bit-width of this group of differential data is 16 bits, and let the bit-width marker H[n] = 3;

[0060] Fill the original data S[0], S[1], the differential data D[0], …, D[i], and the bit-width markers H[0], …, H[n] into the memory respectively, where the differential data D[0], …, D[i] are continuously stored in little-endian mode to obtain a differential compression data frame.

[0061] Further, according to an embodiment of the present invention, the GUI module in the liquid crystal CPU decompresses the differential compression data frame to obtain the original data of the menu directory and the sampled data, including:

[0062] Extract the original data S[0], S[1], and the bit-width markers H[0], …, H[n] from the differential compression data frame;

[0063] According to the bit-width markers H[0], …, H[n], take out the whole set of differential data from the differential compression data frame;

[0064] If the bit-width marker H[n] = 0, then the bit-width of this set of differential data is 4 bits, and 4-bit sized differential data needs to be taken out from the differential compression data frame;

[0065] If the bit-width marker H[n] = 1, then the bit-width of this set of differential data is 8 bits, and 8-bit sized differential data needs to be taken out from the differential compression data frame;

[0066] If the bit-width marker H[n] = 2, then the bit-width of this set of differential data is 12 bits, and 12-bit sized differential data needs to be taken out from the differential compression data frame;

[0067] If the bit-width marker H[n] = 3, then the bit-width of this set of differential data is 16 bits, and 16-bit sized differential data needs to be taken out from the differential compression data frame;

[0068] Since the data lengths of the 16 differential data in the same group are the same, 16 differential data D[i] can be obtained from the taken-out set of differential data;

[0069] Combined with the above S[0], S[1], calculate the original data S[3], …, S[i] through the formula S[i] = (int16_t)(S[i - 1]+S[i - 1]-S[i - 2]+D[i]), where i = 2, 3, …, to achieve decompression.

[0070] Further, according to an embodiment of the present invention, the module responsible for communicating with the liquid crystal CPU in the main CPU and the GUI module in the liquid crystal CPU are both processor-executable programs developed using the C language within the windows system. The GUI module can call the driver function to convert hexadecimal data into a character dot matrix diagram.

[0071] Further, according to an embodiment of the present invention, the decompressed menu directory and sampling data stored in the on-chip Flash of the liquid crystal CPU are converted into character dot matrix graphics through the GUI module and displayed on the liquid crystal screen.

[0072] According to the above solution of the present invention, through the cyclic redundancy check technology, the power distribution terminal protection measurement CPU can select the uploaded menu directory and sampling data, ensuring that the menu directory can be freely configured, enhancing the flexibility of the liquid crystal display device, and optimizing the human-computer interaction experience of the power distribution terminal.

[0073] The present invention uses the differential compression principle to transmit the compressed data frame to the liquid crystal display device. This method does not increase the workload of the protection measurement CPU, enhancing the stability of the power distribution terminal. The menu directory and sampling data are saved in the liquid crystal display device in the form of compressed data frames, which can effectively reduce the liquid crystal memory and save costs. Further, this method effectively solves the problem of slow serial port transmission of large-capacity data, shortens the initialization time of the liquid crystal display device, and improves the rapidity of the liquid crystal display of the power distribution terminal.

[0074] Further, to achieve the above object, the present invention also provides a power distribution terminal liquid crystal design system based on the differential compression algorithm, including:

[0075] The CPU configuration module configures the main CPU that can implement the three-remote and protection functions and the liquid crystal CPU that can view and modify the data of the main CPU in the power distribution terminal;

[0076] The menu directory and sampling data communication module enables the liquid crystal CPU to communicate with the main CPU to obtain the menu directory and sampling data that the main CPU needs to display;

[0077] The key information reading module synchronizes the menu directory and sampling data of the liquid crystal CPU and the main CPU during the initialization stage: the liquid crystal CPU reads the key information of the main CPU, and the key information includes the menu directory CRC configuration code and the sampling data CRC configuration code. The liquid crystal CPU determines whether the menu directory and sampling data need to be read again according to the above two CRC configuration codes: taking the menu directory initialization as an example, if the menu directory CRC configuration code in the liquid crystal memory is different from the menu directory CRC configuration code of the main CPU, the menu directory of the main CPU needs to be read again and the menu directory CRC configuration code in the liquid crystal memory is modified. If the two are the same, the liquid crystal CPU skips the menu directory initialization stage, and the sampling data initialization is the same;

[0078] The differential compression data frame acquisition and transmission module uses the differential compression algorithm in the module responsible for communicating with the liquid crystal CPU in the main CPU to selectively compress the menu directory and sampling data to obtain the differential compression data frame and transmit the differential compression data frame to the liquid crystal CPU;

[0079] Data decompression module. The GUI module in the LCD CPU decompresses the differentially compressed data frame to obtain the decompressed menu directory and sampling data, and then stores them in the on-chip Flash of the LCD CPU for display.

[0080] The power distribution terminal LCD design system based on the differential compression algorithm according to the present invention can implement the power distribution terminal LCD design method based on the differential compression algorithm. The specific process steps are as described above and will not be repeated.

[0081] Furthermore, to achieve the above object, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements the power distribution terminal LCD design method based on the differential compression algorithm as described above.

[0082] Furthermore, to achieve the above object, the present invention also provides a computer-readable storage medium with a computer program stored thereon. When the computer program is executed by the processor, it implements the power distribution terminal LCD design method based on the differential compression algorithm as described above.

[0083] To make the purpose, technical solution, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only the best embodiments of the present invention, only for explaining the present invention, and do not limit the protection scope of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0084] Embodiment 1

[0085] The power distribution terminal LCD design method based on the differential compression algorithm includes the following steps:

[0086] S1: The power distribution terminal is divided into a main CPU and an LCD CPU. The main CPU completes the three-remote and protection functions, and the LCD CPU completes the data viewing and modification of the main CPU. The main CPU and the LCD CPU can communicate through interfaces such as serial ports and SPI. In the cable line, the power distribution terminal usually has a sampling module for multiple lines and multiple intervals. Each sampling module can independently collect the three-phase voltage, current, and protection information of a line. The sampling values of each line need to be cached and then combined into sampling data and sent to the main CPU.

[0087] S2: The LCD CPU communicates with the main CPU to obtain the menu directory and sampling data that the main CPU needs to display;

[0088] S3: In the initialization stage, synchronize the menu directory and sampling data of the LCD CPU and the main CPU: The LCD CPU reads the key information of the main CPU, where the key information includes the menu directory CRC configuration code and the sampling data CRC configuration code. The LCD CPU determines whether the menu directory and sampling data need to be read again according to the above two CRC configuration codes;

[0089] S4: Taking the menu directory initialization as an example, if the menu directory CRC configuration code in the LCD memory is different from that of the main CPU, the menu directory of the main CPU needs to be read again, and the menu directory CRC configuration code in the LCD memory is modified. If the two are the same, the LCD CPU skips the menu directory initialization stage. The sampling data initialization is the same;

[0090] S5: The module responsible for communicating with the LCD CPU in the main CPU uses the differential compression algorithm to selectively compress the menu directory and sampling data to obtain a differential compression data frame, and transmits the differential compression data frame to the LCD CPU;

[0091] S6: The GUI module in the LCD CPU decompresses the differential compression data frame, stores the decompressed menu directory and sampling data in the on-chip Flash of the LCD CPU for display.

[0092] In this embodiment, the menu directory is divided into telemetry menu, telemetry signal menu, remote control menu, parameter setting value menu, protection setting value menu, etc. Each type of menu may contain several data entries.

[0093] In this embodiment, the CRC configuration code uses the cyclic redundancy check code. When the menu directory or sampling data entry changes, the corresponding CRC configuration code also changes.

[0094] In this embodiment, the on-chip Flash of the LCD CPU stores the historical menu directory, sampling data and CRC configuration code.

[0095] In this embodiment, the differential compression algorithm inputs 256 sampling data S[0], S[1], S[2], … S

[255] . The output of the compression algorithm is a bit stream called a frame. Its length is at least 1088 bits, at most 4160 bits, and is a multiple of 32 bits. In this embodiment, data compression is performed through the differential compression algorithm to obtain a compressed data packet. The specific method is as follows:

[0096] S51: The distribution terminal protection measurement CPU allocates memory for the differential compression data frame. The menu directory and sampling data to be transmitted to the LCD CPU are the original data S[i]. The data frame is composed of the original data S[i], the bit width flag H[n], and the differential data D[i];

[0097] S52: Extract S[0] and S[1] from the original data S[i]. From the calculation expression:

[0098] D[i] = (int16_t)(S[i] - S[i - 1] - S[i - 1] + S[i - 2])

[0099] where i = 2, 3, …, 255, calculate the differential data D[2], D[3], D[4], …, D

[255] , and let D[0] = D[1] = 0;

[0100] S53: Divide the differential data D[0], …, D

[255] into groups of 16 each. The bit widths of each group of differential data are B[0], …, B

[15] bits respectively; the bit width B[i] of each group of differential data is determined by the bit width markers H[0], …, H

[15] , where H[i] = 0, 1, 2, 3 correspond to B[i] = 4, 8, 12, 16 (i = 0, 1, 2, …, 15);

[0101] (1) If this group of differential data belongs to the interval [-8, 7], then the bit width B[i] of this group of differential data is 4, and the bit width marker H[i] = 0;

[0102] (2) If this group of differential data belongs to the interval [-128, 127], then the bit width B[i] of this group of differential data is 8, and the bit width marker H[i] = 1;

[0103] (3) If this group of differential data belongs to the interval [-2048, 2047], then the bit width B[i] of this group of differential data is 12, and the bit width marker H[i] = 2;

[0104] (4) If this group of differential data belongs to the interval [-32768, 32767], then the bit width B[i] of this group of differential data is 16, and the bit width marker H[i] = 3;

[0105] S54: Fill the above S[0], S[1], H[0], …, H

[15] , D[0], …, D

[255] into the memory respectively, where the differential data D[i] is continuously stored in little - endian mode, obtaining the differential compression data frame. When D[i] occupies a smaller bit width, the data size of the entire compressed data frame will be significantly reduced, achieving the purpose of data compression.

[0106] In this embodiment, the module responsible for communicating with the liquid crystal in the main CPU is a processor - executable program developed using the C language within the windows system.

[0107] In this embodiment, decompress in the liquid crystal CPU display device to obtain the restored directory and sampling data. The specific method is as follows:

[0108] S61: Extract the original data S[0], S[1] and the bit-width markers H[0], H[1], H[2], …, H

[15] from the differential compression data frame. According to the bit-width markers H[0], …, H

[15] , determine the bit-widths B[0], B[1], B[2], …, B

[15] corresponding to each bit-width marker, and extract a set of differential data from the differential compression data frame;

[0109] (1) If the bit-width marker H[n] = 0, then the bit-width of this set of differential data is 4 bits, and 4-bit differential data needs to be extracted from the differential compression data frame;

[0110] (2) If the bit-width marker H[n] = 1, then the bit-width of this set of differential data is 8 bits, and 8-bit differential data needs to be extracted from the differential compression data frame;

[0111] (3) If the bit-width marker H[n] = 2, then the bit-width of this set of differential data is 12 bits, and 12-bit differential data needs to be extracted from the differential compression data frame;

[0112] (4) If the bit-width marker H[n] = 3, then the bit-width of this set of differential data is 16 bits, and 16-bit differential data needs to be extracted from the differential compression data frame;

[0113] S62: Since the data lengths of the 16 differential data in the same group are the same, 16 differential data D[i] can be obtained from the extracted set of differential data. Combining S[0] and S[1] in the differential compression data frame, calculate the sampled data to achieve decompression. The specific calculation formula is as follows:

[0114] S[i] = (int16_t)(S[i - 1] + S[i - 1] - S[i - 2] + D[i])

[0115] where i = 2, 3, …, 255.

[0116] In this embodiment, the GUI module is a processor-executable program developed using the C language within the windows system, and can call the driver function to convert hexadecimal data into a character dot matrix diagram.

[0117] In this embodiment, the specific method shown in step S6 is: the menu and data stored in the on-chip Flash of the liquid crystal CPU are converted into a character dot matrix diagram through the GUI module and displayed on the liquid crystal screen.

[0118] Those of ordinary skill in the art will realize that the modules and algorithm steps described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0119] 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 foregoing method embodiments, and will not be elaborated herein.

[0120] 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 merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation. For example, 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or modules can be in electrical, mechanical or other forms.

[0121] 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 can be located in one place, or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention.

[0122] In addition, the various functional modules in the embodiments of the present invention can be integrated in one processing module, or each module can exist physically alone, or two or more modules can be integrated in one module.

[0123] When the above 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 such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, 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 may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method for sending / receiving energy-saving signals in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0124] The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. 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 the 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 technical solutions formed by mutually replacing the above features with the (but not limited to) technical features with similar functions disclosed in the present application.

[0125] It should be understood that the magnitudes of the sequence numbers of the steps in the inventive content and the embodiments of the present invention do 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 to the implementation process of the embodiments of the present invention.

Claims

1. A power distribution terminal liquid crystal design method based on a differential compression algorithm, characterized in that: include: The power distribution terminal is equipped with a main CPU capable of realizing three remote control and protection functions and a LCD CPU capable of viewing and modifying the data of the main CPU; The LCD CPU communicates with the main CPU to obtain the menu directory and sampling data that the main CPU needs to display; In the initialization phase, the menu directory and sampling data of the LCD CPU and the main CPU are synchronized: the LCD CPU reads the key information of the main CPU, which includes the menu directory CRC configuration code and the sampling data CRC configuration code. The LCD CPU determines whether the menu directory and sampling data need to be re-read based on the above two CRC configuration codes; The module in the main CPU responsible for communicating with the LCD CPU adopts a differential compression algorithm to selectively compress the menu directory and the sampled data to obtain a differential compression data frame, and transmits the differential compression data frame to the LCD CPU; The GUI module in the LCD CPU decompresses the differential compression data frame, obtains the decompressed menu directory and sampled data, and stores them in the on-chip Flash of the LCD CPU for display.

2. The power distribution terminal liquid crystal design method based on differential compression algorithm according to claim 1 is characterized in that: The menu directory includes a telemetering menu, a telesignaling menu, a remote control menu, a parameter setting menu, and a protection setting menu, and each menu type contains a number of data entries.

3. The power distribution terminal liquid crystal design method based on differential compression algorithm according to claim 1, characterized in that: The CRC configuration code uses a cyclic redundancy check code. When the menu directory or sampling data changes, the corresponding CRC configuration code also changes.

4. The power distribution terminal liquid crystal design method based on differential compression algorithm according to claim 1, characterized in that: The menu directory and sampling data are selectively compressed using a differential compression algorithm to obtain a differential compression data frame, including: The main CPU of the power distribution terminal allocates memory for the differential compression data frame; The menu directory and sampled data that need to be transmitted to the LCD CPU are the original data S[i], and the differential data D[i] is calculated through the original data S[i]: D[i]=(int16_t)(S[i]-S[i-1]-S[i-1]+S[i-2]) Where i = 2, 3, ..., the differential data D[2], D[3], D[4], ... D[i] can be calculated, and D[0] = D[1] = 0; Divide the differential data into groups of 16 each, and determine the bit width mark H[0], H[1], H[2], ... H[n] (n>2) of each group of differential data according to the interval to which each group of differential data belongs; The original data S[0], S[1], the differential data D[0], ..., D[i], and the bit width marks H[0], ..., H[n] are filled into the memory respectively, where the differential data D[0], ..., D[i] are stored continuously in little-endian mode to obtain a differential compression data frame.

5. The power distribution terminal liquid crystal design method based on differential compression algorithm according to claim 4 is characterized in that: The GUI module in the LCD CPU decompresses the differential compression data frame to obtain the original data of the menu directory and the sampled data, including: Extracting original data S[0], S[1], and bit width markers H[0], ..., H[n] from the differential compression data frame; According to the bit width marks H[0], ..., H[n], a whole group of differential data is taken out from the differential compression data frame; Since the data lengths of the 16 differential data in the same group are the same, 16 differential data D[i] can be obtained from the extracted group of differential data; Combined with the original data S[0] and S[1], the formula S[i]=(int16_t)(S[i-1]+S[i-1]-S[i-2]+D[i]), where i=2, 3, ..., is used to calculate the original data S[3], ..., S[i] and achieve decompression.

6. The power distribution terminal liquid crystal design method based on differential compression algorithm according to claim 1, characterized in that: The module in the main CPU responsible for communicating with the liquid crystal CPU and the GUI module in the liquid crystal CPU are both processor executable programs developed and used in the Windows system using the C language.

7. The method for designing liquid crystal of a power distribution terminal based on a differential compression algorithm according to any one of claims 1 to 6, characterized in that: The decompressed menu directory and sampled data stored in the on-chip Flash of the LCD CPU are converted into character dot matrix images through the GUI module and displayed on the LCD screen.

8. A power distribution terminal liquid crystal design system based on differential compression algorithm, characterized in that: include: CPU configuration module, the power distribution terminal is equipped with a main CPU capable of realizing three remote controls and protection functions and a liquid crystal CPU capable of viewing and modifying the data of the main CPU; Menu directory and sampling data communication module, LCD CPU communicates with main CPU to obtain menu directory and sampling data that main CPU needs to display; Key information reading module, initialization stage, synchronizes the menu directory and sampling data of LCD CPU and main CPU: LCD CPU reads the key information of main CPU, the key information includes menu directory CRC configuration code and sampling data CRC configuration code, LCD CPU determines whether the menu directory and sampling data need to be re-read according to the above two CRC configuration codes; The differential compression data frame acquisition and transmission module, the module in the main CPU responsible for communicating with the LCD CPU adopts a differential compression algorithm, selectively compresses the menu directory and the sampled data, obtains a differential compression data frame, and transmits the differential compression data frame to the LCD CPU; The data decompression module, the GUI module in the LCD CPU decompresses the differential compression data frame, obtains the decompressed menu directory and sampled data, and stores them in the on-chip Flash of the LCD CPU for display.

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, the method for designing liquid crystal of a power distribution terminal based on a differential compression algorithm 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 power distribution terminal liquid crystal design method based on a differential compression algorithm as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data compression system for liquid crystal display and power-saving method thereof

    CN104424900A

  • Method for compressing transient recording interaction data of power system

    CN112751567A

  • Multi-interval recording data transmission method, system and device and storage medium

    CN114184890A

  • Data compression method, electronic device and computer readable storage medium

    WO2019114655A1