This invention provides a method and
system for compressing power messages, relating to the field of power
system control technology. The method includes: acquiring power messages via a first FPGA;
timestamping the acquired power messages; caching the timestamped messages in a first
shared memory; extracting messages from the first
shared memory;
parsing the messages according to their type and classifying and storing them in a second
shared memory; extracting messages from the second shared memory by control block using a second FPGA; compressing the compressed packages corresponding to the control blocks; storing the compressed packages in a third shared memory; packaging and secondary compression according to a set time period; generating a total compressed
package for that time period; and storing it on an SSD for dual-
disk storage. This invention effectively reduces the storage
space requirements for historical messages, improves the storage time of historical messages, and solves the problem of frequent failures in storing historical messages for post-
event analysis of power systems.