The application discloses a
serial port screen GUI
adaptive resolution rendering method and
system, and belongs to the technical field of human-computer interaction. The method comprises the following steps: segmenting
string data to obtain at least one
data segment, and generating a unique sequence identifier; embedding the sequence identifier, the total length of the
string data and the effective data length of the current segment in the frame structure of each
data segment based on the data frame format limitation of the
bus protocol to obtain a data frame carrying segment
metadata; sequentially sending the data frame through the
bus; dynamically allocating a buffer according to the sequence identifier and the total length information at the receiving end, and recombining each
data segment according to the sending order according to the sequence identifier, obtaining display instructions after recombination and performing a rendering operation. Through the segment transmission and
metadata identification mechanism, the application breaks through the limitation of the
bus protocol on the length of single-frame data, realizes
reliable transmission and accurate recombination of large-capacity
string data, and improves the stability and adaptability of
serial port screen rendering.