The invention 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 character
string data to obtain at least one
data segment, and generating a unique sequence identifier; based on the data frame format limitation of a
bus protocol, embedding a sequence identifier, the total length of character
string data and the effective data length of the current segment in the frame structure of each
data segment to obtain a data frame carrying segment
metadata; sequentially sending the data frames through a
bus; and the receiving end dynamically allocates a buffer area according to the sequence identifier and the total length information, recombines the data segments according to the sequence identifier and a sending sequence, analyzes the data segments after recombining to obtain a display instruction, and executes rendering operation. According to the method, through a segmented transmission and
metadata identification mechanism, the limitation of a
bus protocol on the length of single-frame data is broken through,
reliable transmission and accurate recombination of large-capacity character
string data are realized, and the stability and adaptability of
serial port screen rendering are improved.