Quickly Update Data Frame Format

555

# Quickly Update Data Frame Format

Description: Update text content based on display area coordinates. Currently, only single-line and multi-line text programs being played are supported.

Format:
Control PC sends:
<STX><FLAG><Command><RectNumber><RectCoordinate><ETX><LRC>
Device responds:
<ACK>

Field Format Length Example Description
Command AN 3 "622" The command for quick text update is fixed as 622
rectNumber AN 2 30 31 Number of display areas to be updated
Rect.x AN 3 30 30 30 30 Horizontal coordinates of the program display area (30 30 30), ranging from 0 - 9999
Rect.x AN 3 30 30 30 30 Vertical coordinates of the program display area (30 30 30), ranging from 0 - 9999
textLength AN 4 30 30 31 31 Number of characters in the program text content
text AN As per actual length Text content, e.g., "you are boy" Text content, ranging from 0 - 9999
textColorLength AN 2 30 30 Length of color data
textColor AN As per actual length 0xFFFF0000 30 78 46 46 46 46 30 30 30 30 Color data (including the header) supports 6 and 8 digits starting with 0x, such as 0xFFFF0000, 0xFFFF00. Also supports 6 and 8 digits starting with #, such as #FFFF0000, #FFFF00

The RectCoordinate field includes the display area coordinates, text length, and text content. If updating multiple display areas, the RectCoordinate data area is added again. Also, modify the RectNumber field to match the number of display areas to be updated. Below is an example of updating multiple display areas: <STX><FLAG><Command><RectNumber><RectCoordinate><RectCoordinate><RectCoordinate><ETX><LRC>

  • a. Quick update of the text in a display area with coordinates x:0, y:0 to "hello boy 123" and text color "0xFFFF0000":
    02 11 36 32 32 30 33 30 30 30 30 30 30 30 30 30 30 31 31 68 65 6c 6c 6f 20 62 6f 79 20 31 32 33 31 30 30 78 46 46 46 46 30 30 30 30 03 32

  • b. Quick update of three display areas (the current program can have more than three display areas):
    02 11 36 32 32 30 33 30 30 30 30 30 30 30 30 30 30 31 33 68 65 6c 6c 6f 20 62 6f 79 20 31 32 33 31 30 30 78 46 46 30 30 30 30 46 46 30 35 30 30 30 30 30 30 30 30 31 33 68 65 6c 6c 6f 20 62 6f 79 20 31 32 33 31 30 30 78 46 46 30 30 46 46 30 30 31 30 30 30 30 30 30 30 30 30 31 33 68 65 6c 6c 6f 20 62 6f 79 20 31 32 33 31 30 30 78 46 46 30 30 30 30 46 46 03 32