Serial port screen control method and system thereof
By configuring multiple sets of automatic baud rate connections and independent control drivers, the compatibility and stability issues in serial port screen control are resolved, enabling efficient communication and rapid fault location for different models of serial port screens.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU ZONERICH COMP EQUIP
- Filing Date
- 2026-04-30
- Publication Date
- 2026-06-19
AI Technical Summary
Existing serial port screen control technology suffers from poor compatibility and stability, especially when playing high-resolution videos or drawing on a canvas, it is prone to delays and stuttering, and lacks a sound communication anomaly detection mechanism.
By configuring multiple selectable baud rates in the host computer, automatic polling and connection establishment are achieved; independent control drivers are configured in the instruction frame to achieve functional decoupling; and a parallel communication anomaly detection mechanism is designed.
It improves the compatibility and stability of serial port screens, ensures normal communication and display functions for different models of serial port screens, and enhances response speed and the timeliness of anomaly detection.
Smart Images

Figure CN122240550A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of serial port screen control technology. More specifically, this invention relates to a serial port screen control method and system. Background Technology
[0002] A serial port display is an intelligent terminal that integrates display and control functions. It is widely used in intelligent terminal interaction scenarios such as commercial equipment, industrial control equipment, and community services. A serial port display system consists of a host computer (PC or control terminal) and a slave computer (the control unit of the serial port display). The host computer is responsible for user interaction, command generation, and distribution, while the slave computer is responsible for receiving commands, driving the display and peripherals, and providing feedback to the host computer. Only when both work together can the full functionality of the serial port display be realized.
[0003] In the existing technology, taking Chinese patent application CN107145322A as an example, it discloses a configured serial port screen and its implementation method, which aims to improve the user experience by simplifying the engineering configuration file between the serial port screen and the host computer and achieving efficient communication between them. However, the above technical solution has the following technical defects: (1) Oversimplification of configuration content weakens the compatibility of its host computer system, making it unable to adapt to serial port screen communication of multiple sizes and functions. When the same instruction is sent to multiple serial port screens of different models, incompatible serial port screens are prone to communication failure.
[0004] (2) The space driving optimization of the lower-level machine is not perfect, and the instruction response is slow, especially when performing high-resolution video playback or canvas drawing, which is prone to delay and stuttering. In addition, due to the incompatibility of the driving logic for different types of controls such as text, images, canvas, and video, display abnormalities and size misalignment are also prone to occur.
[0005] (3) There is a lack of a relatively complete communication anomaly detection mechanism. When communication anomalies occur, data loss is likely to occur, and its communication stability is obviously insufficient.
[0006] In summary, existing serial port control solutions mainly suffer from poor compatibility and stability. Summary of the Invention
[0007] To address the technical problems of poor compatibility and stability of the aforementioned serial port control schemes, this invention discloses a serial port screen control method and system.
[0008] In a first aspect, the present invention discloses a serial port screen control method, comprising: In response to the access serial port of the lower-level machine, the baud rate is polled from the preset configuration library to determine whether to establish a connection with the lower-level machine; If so, perform the following steps: Receive user input information; Convert user input information into instruction frames and send them to the lower-level machine; In response to the execution of the instruction frame, it receives feedback information from the lower-level machine; Based on the feedback information, trigger the interactive information storage command or the abnormal alarm command.
[0009] Beneficial effects: When a slave device connects to a master device, the master device first polls the baud rate from the configuration library, automatically finds a suitable baud rate, and establishes a connection with the slave device, thus overcoming compatibility issues in existing technologies at the physical communication level. After successful communication between the master and slave devices, the master device converts user input information into command frames and sends them to the slave device. During the execution of the command frames, feedback information is synchronously acquired, and based on the feedback information, interactive information storage commands or abnormal alarm commands are triggered to maintain normal information transmission and trigger alarms in case of abnormalities. This improves the communication anomaly detection mechanism and makes it more stable.
[0010] Preferably, if not, perform the following steps: A baud rate error message and a baud rate input dialog box will pop up. In response to the baud rate input dialog box, a connection is established with the lower-level machine according to the entered baud rate.
[0011] Preferably, the instruction frame includes at least a text display instruction, a media file playback instruction, an interactive canvas access instruction, and an audio playback instruction; wherein the text display instruction, the media file playback instruction, the interactive canvas access instruction, and the audio playback instruction are each configured with an independent control driver.
[0012] Beneficial effects: Regarding the improvement of software layer compatibility and response speed, by configuring independent control drivers for text display commands, media file playback commands, interactive canvas invocation commands, and audio playback commands, the functions are decoupled, thereby achieving fault isolation of functional domains. This method is beneficial to improving the compatibility and stability of the invention in complex and ever-changing environments. Furthermore, by designing parallelization and independent control drivers, the response speed of function execution is improved.
[0013] Preferably, if the user interaction input information is text display information, the user interaction input information is converted into a command frame and sent to the lower-level machine, including: Convert the displayed text information into a first byte array according to the specified encoding format; Based on the text display information and the configuration parameters of the lower-level machine, the corresponding text display instruction identifier, text control identifier, font height parameter and text length are retrieved from the preset configuration library; The first byte array, text display instruction identifier, text control identifier, and font height parameter are combined to form a text display instruction that conforms to the preset encoding rules.
[0014] Preferably, if the user interaction input information pertains to media file playback information, the user interaction input information is converted into a command frame and sent to the lower-level machine, including: Convert media file playback information to file path encoding according to the specified encoding format; Based on the text display information and the configuration parameters of the lower-level machine, the corresponding media display instruction identifier and media control identifier are retrieved from the preset configuration library; The file path encoding, media display instruction identifier, and media control identifier are combined to form a media file playback instruction that conforms to the preset encoding rules.
[0015] Preferably, for use in a lower-level machine, the method of the present invention includes: Parse and execute the instruction frame; Upload feedback information to the host computer; the feedback information includes execution status codes and fault codes.
[0016] Preferably, if the instruction frame is parsed as a media file playback instruction, the instruction frame is parsed and executed, including: Parse the file path encoding from the media file playback instructions; Read media files from the host computer's storage module according to the file path encoding; In response to the host computer's request for media controls, the display screen is driven to show and play media files.
[0017] Secondly, the present invention also discloses a serial port screen control system for the serial port screen control method described in the first aspect, comprising a host computer and a slave computer, wherein the host computer is used for: In response to the access serial port of the lower-level machine, the baud rate is polled from the preset configuration library to determine whether to establish a connection with the lower-level machine; If so, perform the following steps: Receive user input information; Convert user input information into instruction frames and send them to the lower-level machine; In response to the execution of the instruction frame, it receives feedback information from the lower-level machine; Based on the feedback information, trigger the interactive information storage command or the abnormal alarm command.
[0018] Preferably, the host computer includes: The user interface module provides a visual interactive interface. The host computer serial communication module is used to establish communication with the slave computer, send command frames, and receive feedback information. The instruction conversion and parsing module has a built-in configuration library for the target serial port screen, which is used to convert user interactive input information into instruction frames and parse feedback information; The first storage module is used to store configuration library data and interaction operation records; and, The exception handling module is used to detect communication exceptions and instruction execution exceptions based on feedback information.
[0019] Preferably, the lower-level machine includes: The lower-level serial communication module is used to receive command frames and send feedback information; The control module is used for parsing and executing instruction frames; The control driver module includes multiple control driver units, which are used to drive different types of controls on the serial port screen; The media processing module is used to decode and play media files; The second storage module is used to store firmware, cached data, and fault logs; The lower-level machine anomaly monitoring module is used to monitor hardware / software faults; The status feedback module is used to generate execution status and fault codes based on hardware / software failures.
[0020] The advantages of this invention, which differ from existing technologies, are as follows: (1) The method of the present invention can automatically find a suitable baud rate and establish a connection with the lower-level machine, thereby overcoming the compatibility problem in the prior art at the physical communication level.
[0021] (2) The method of the present invention configures independent control drivers for text display instructions, media file playback instructions, interactive canvas call instructions and audio playback instructions to decouple display functions, thereby achieving fault isolation of functional domains and further improving the compatibility and stability of the method of the present invention.
[0022] (3) The present invention modifies the host computer and the slave computer respectively, so that a host computer can connect to different models of serial port screens at the same time and maintain normal communication and display functions. Attached Figure Description
[0023] The above and other objects, features, and advantages of exemplary embodiments of the present invention will become readily apparent upon reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of the invention are illustrated by way of example and not limitation, and like or corresponding reference numerals denote like or corresponding parts, wherein: Figure 1 This is a flowchart of the serial port screen control method in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of the encoding of a hexadecimal instruction frame in Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the serial port screen control system in Embodiment 2 of the present invention. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0026] Example 1 like Figure 1 As shown, this embodiment discloses a serial port screen control method, including: S10: In response to the access serial port of the lower-level machine, poll the baud rate from the preset configuration library and determine whether to establish a connection with the lower-level machine.
[0027] It should be explained that the method in this embodiment allows multiple serial port screens of different models to be connected to the same host computer through the serial port port of the lower-level machine. In order to achieve communication compatibility for serial port screens of different models, sizes or functions, multiple selectable baud rates can be configured for the serial port in the configuration library, such as 9600, 19200 and / or 38400. Traditional serial ports usually do not have hardware hot-plug detection pins, while the above step S10 includes: continuously monitoring the level status of each serial port receiving pin. When a continuous transition from an invalid level to an effective idle level is detected, or when a probe request frame is periodically sent to the lower-level machine and bus level fluctuation feedback is detected, it is determined that a physical device has been connected, and the baud rate polling mechanism is activated.
[0028] Unlike the blind baud rate selection operation in traditional technology, the polling selection script in this embodiment is configured to: prioritize loading the previously saved serial port configuration, for example, the COM3 baud rate is 9600; if it fails, adopt a high-frequency priority polling strategy, that is, prioritize the baud rates in the configuration library according to the weight of the frequency of use in the industrial field and test them in turn.
[0029] At the current test baud rate, the host computer sends a handshake verification frame containing a specific feature code to the slave computer and starts a timeout timer. If a response frame is received from the slave computer before the timer overflows and passes the CRC check, the connection is considered successfully established and the current baud rate is locked. If no response frame is received within the timeout period or garbled characters are received (verification failed), the test switches to the next baud rate to continue. After successful communication, the slave computer's green indicator light illuminates, and it enters command listening mode.
[0030] Through the above technical solution, the method of the present invention can efficiently find a suitable baud rate to establish a connection with the lower-level machine, thereby overcoming the compatibility problem in the prior art at the physical communication level.
[0031] If so, perform the following steps: S21: Receive user interaction input information.
[0032] The aforementioned user interaction input information includes text display information, media file playback information, audio playback information, download request information, and canvas operation information.
[0033] S22: Convert user interaction input information into instruction frames and send them to the lower-level machine.
[0034] It should be noted that the aforementioned instruction frame is a custom hexadecimal instruction frame conforming to a general communication protocol. In this embodiment, the instruction frame includes text display instructions, media file playback instructions, interactive canvas invocation instructions, and audio playback instructions. Each of the text display instructions, media file playback instructions, interactive canvas invocation instructions, and audio playback instructions is configured with an independent control driver.
[0035] More specifically, such as Figure 2 As shown, regarding the encoding rules for hexadecimal instruction frames, the method in this embodiment divides the hexadecimal instruction frame into three blocks: function code, control ID (control identifier), and attribute / content conversion identifier. The function code belongs to the frame header and occupies the first and second frames; the control ID's value ranges from 02 to 1F. The function code and control ID together serve as a verification frame, used to indicate function execution and control scheduling. The attribute / content conversion identifier belongs to the frame tail.
[0036] Theoretically, this embodiment supports the scheduling of 30 functions and 30 controls through the above technical solutions. Adding new function instructions only requires expanding the configuration library. The lower-level machine adopts a layered driver architecture. Adding new control types or adapting to new screen sizes only requires updating the corresponding driver unit, without modifying the core control logic. This reduces subsequent development and maintenance costs and does not damage the original control functions, thus improving the reliability of this implementation method. On the other hand, this embodiment decouples and isolates functions by assigning independent control drivers to various configurations, which improves the compatibility of the invention in complex and changing environments. Furthermore, the parallelization and independent control driver design improves the response speed of function execution.
[0037] In one embodiment, if the user interaction input information is text display information, step S22 includes: First, the text display information is converted into a first-byte array according to the specified encoding format. Then, based on the text display information and the configuration parameters of the lower-level machine, the corresponding text display instruction identifier, text control identifier, font height parameter, and text length are retrieved from the preset configuration library. Finally, the first-byte array, text display instruction identifier, text control identifier, and font height parameter are combined to form a text display instruction that conforms to the preset encoding rules.
[0038] For example, suppose the control ID for the text display information is 02, the font height is 16, the text content is "Hello", and the position coordinates are (64, 32). When the user clicks the "Text Display" button, the host computer's instruction parsing module encapsulates the above text display information into a hexadecimal instruction frame: 1A 01 02 10 00 05 48 65 6C 6C 6F Wherein, 1A 01 is the text display instruction identifier; 02 is the control ID; 10 is the font height; 00 05 is the text length; and the following are the ASCII code bytes of "Hello" (first byte array).
[0039] By using the steps S221-S223 described above, efficient conversion and compatibility of text display information can be achieved.
[0040] In one embodiment, if the user interaction input information pertains to media file playback information, step S22 includes: First, the media file playback information is converted into file path encoding according to the specified encoding format; the file path encoding is used to represent the file path address; then, according to the text display information and the configuration parameters of the lower-level machine, the corresponding media display instruction identifier and media control identifier are retrieved from the preset configuration library; finally, the file path encoding, media display instruction identifier and media control identifier are combined to form a media file playback instruction that conforms to the preset encoding rules.
[0041] For example, a user selects a local JPG image file via a host computer and clicks the "Download File" button. The host computer first sends the file data in packets to the slave computer, which then saves the file to the FLASH memory (path: S:spi:image001.jpg). After the download is complete, the user clicks "Show Image," and the host computer sends a hexadecimal instruction frame: 1A 02 20 0E 53 3A 73 70 69 3A 69 6D 61 67 65 30 30 31 2E 6A 70 67 In this code, 1A 02 is the image display instruction, 20 is the image control ID, and the following is the file path encoding.
[0042] The formation and distribution of hexadecimal instruction frame encoding for other display functions are similar to the examples mentioned above, and will not be repeated here.
[0043] S23: In response to the execution of the instruction frame, receive feedback information from the lower-level machine.
[0044] S24: Based on the feedback information, trigger the interactive information storage instruction or the abnormal alarm instruction.
[0045] After the host computer and the slave computer successfully establish communication through the above steps S21-S24, the host computer converts the user's interactive input information into an instruction frame and sends it to the slave computer. During the execution of the instruction frame, feedback information is obtained synchronously, and based on the feedback information, an interactive information storage instruction or an abnormal alarm instruction is triggered to maintain normal information transmission and trigger an alarm when an abnormality occurs, thereby improving the communication abnormality detection mechanism and making it more stable.
[0046] In contrast, for the lower-level machine, the method in this embodiment includes: S201: Parse and execute the instruction frame.
[0047] S202: Upload feedback information to the host computer.
[0048] The feedback information includes execution status codes and fault codes.
[0049] Taking the example of "Hello" as the text content, if the instruction frame is parsed as a text display instruction, the above steps S201-S202 include: The lower-level machine's core control module parses the instruction identifier as 1A 01, identifying it as a text display instruction; it extracts the control ID (02), font height (16), and text content ("Hello"). It then calls the text control driver unit to display the text at the corresponding control position. Upon successful execution, it generates feedback data 1A 01 00 (where 00 indicates success). The lower-level machine sends the feedback data to the upper-level machine via serial port. Upon receiving the data, the upper-level machine's instruction parsing module recognizes it as feedback from a text display instruction and displays "Text display successful" in the instruction display area, updating the status feedback area to "Ready". If the lower-level machine detects an invalid control ID (e.g., inputting 32, exceeding the 02~1F range), the lower-level machine's exception handling module generates fault code E01, and the feedback data changes to 1A 01 01 E01. After parsing, the upper-level machine displays a pop-up message "Invalid control ID, please enter a valid value" and saves the fault record to the log. The upper-level machine automatically saves the input control ID, font height, text content, and other parameters to the parameter storage module. These can be directly loaded upon the next startup.
[0050] More specifically, if the instruction frame is parsed as a media file playback instruction, the above steps S201-S202 include: First, the file path encoding is parsed from the media file playback instruction. Then, the media file is read from the storage module of the host computer according to the file path encoding. Finally, in response to the host computer's call to the media control, the display screen is driven to display and play the media file.
[0051] For example, after the lower-level device receives the instruction frame, the core control module parses the file path, calls the storage driver to read the file from the FLASH memory, the media processing module decodes the JPG image, and drives the image control to display it. If the file does not exist, the lower-level device generates fault code E20 (file not found), sends it to the upper-level device, flashes a red indicator light, and writes the fault to the log. Upon receiving the fault code, the upper-level device displays a pop-up message "Image file does not exist, please check if the download is complete," and stops subsequent operations.
[0052] Through the aforementioned collaborative mechanism, the method in this embodiment can stably and efficiently complete various serial port screen control tasks and quickly locate problems when anomalies occur.
[0053] Conversely, if the above baud rate polling and handshake verification still fail to establish a connection with the lower-level machine, then the following steps are performed: S31: Pop up a baud rate error message and a baud rate input dialog box.
[0054] S32: In response to the baud rate input dialog box, establish a connection with the lower-level machine according to the input baud rate.
[0055] It should be noted that after the connection is successfully established manually, return to steps S21-S24.
[0056] Specifically, if no connection is established after iterating through all preset baud rates, the automatic polling mechanism is suspended, a connection failure message is generated on the serial port screen, and an operation entry for manually configuring the baud rate is provided to avoid the system from getting stuck in an infinite loop or crashing, thereby further improving the stability of the method in this embodiment.
[0057] Example 2 like Figure 3 As shown, this embodiment discloses a serial port screen control system for the serial port screen control method described in Embodiment 1, including a host computer and a slave computer, wherein the host computer is used for: In response to the access serial port of the lower-level machine, the baud rate is polled from the preset configuration library to determine whether to establish a connection with the lower-level machine; If so, perform the following steps: Receive user input information; Convert user input information into instruction frames and send them to the lower-level machine; In response to the execution of the instruction frame, it receives feedback information from the lower-level machine; Based on the feedback information, trigger the interactive information storage command or the abnormal alarm command.
[0058] If not, proceed with the following steps: A baud rate error message and a baud rate input dialog box will pop up.
[0059] In response to the baud rate input dialog box, a connection is established with the lower-level machine according to the entered baud rate.
[0060] Furthermore, at the hardware configuration level, the host computer includes an interface interaction module, a host computer serial communication module, an instruction conversion and parsing module, a first storage module, and an exception handling module.
[0061] The system comprises the following modules: a user interface module (UIM) providing a visual interactive interface; a host computer serial communication module for establishing communication with the slave computer, sending command frames, and receiving feedback information; a command conversion and parsing module with a built-in configuration library for the target serial port screen, used to convert user input into command frames and parse feedback information; a first storage module for storing configuration library data and interaction operation records; and an exception handling module for detecting communication and command execution exceptions based on feedback information.
[0062] In one embodiment, the host computer device runs on a Windows operating system PC or industrial tablet and is developed using C# and the WinForm framework. Its user interface module includes a serial port configuration area, a function operation area, a parameter setting area, a command display area, and a status feedback area. The first storage module utilizes the application's built-in configuration storage function to save serial port parameters, recently used control parameters, and custom command history.
[0063] Furthermore, at the hardware configuration level, the method of this embodiment treats the lower-level machine as an independently packaged controller. The lower-level machine includes a lower-level machine serial communication module, a control module, a control driver module, a media processing module, a second storage module, a lower-level machine anomaly monitoring module, and a status feedback module.
[0064] The system comprises the following modules: a lower-level serial communication module for receiving command frames and sending feedback information; a control module for parsing and executing command frames; a control driver module comprising multiple control driver units for driving different types of controls on the serial port screen; a media processing module for decoding and playing media files; a secondary storage module for storing firmware, cached data, and fault logs; a lower-level anomaly monitoring module for monitoring hardware / software faults; and a status feedback module for generating execution status and fault codes based on hardware / software faults.
[0065] In one embodiment, the lower-level machine uses a microcontroller as its core control module. This microcontroller has a built-in serial port controller, multiple GPIO ports, and an SPI / I2C interface. The serial communication module uses a UART interface, and the baud rate can be configured to 9600, 19200, or 38400 depending on the specific serial screen. The control driver module drives the following controls: text label controls (identifier range 02~1F), image controls (identifier 20~2F), canvas controls (30~37), and video controls (38~3F). The media processing module supports JPG image decoding, AVI video decoding, and WAV audio decoding. The storage module includes onboard FLASH memory and an SD card expansion interface. The status feedback module includes green and red indicator lights and a feedback data generation unit. The lower-level machine's fault handling module monitors serial communication, control drivers, storage read / write operations, and power supply voltage in real time. The onboard FLASH memory is used to store firmware, system parameters, and fault logs. The SD card expansion interface is used to store user media files.
[0066] The host computer and the slave computer are connected via RS232 or USB to serial cable, and the communication protocol is a custom hexadecimal frame format.
[0067] In the specific wiring process, the lower-level machine can be assembled as a single device. Different models of serial port screens are connected to the lower-level machine through serial port adapter cables, and multiple lower-level machines are then connected to the same upper-level machine through RS232 or USB.
[0068] Preferably, the serial port screen control system incorporating the method of Embodiment 1 can be widely used and achieve beneficial effects in the following scenarios: (1) For subway platform display systems or exhibition halls, a single host computer can send instructions to multiple slave computers synchronously. Even if some serial port screens are different in size or model, display synchronization can still be guaranteed. On the other hand, when some initially purchased serial port screens are damaged, using non-original temporary replacement serial port screens can still ensure stable communication and synchronization (without replacing the slave computer).
[0069] (2) For QR code / card swipe / fingerprint payment systems, the payment interaction behavior of multiple payers in different serial port screens can be synchronously fed back to the host computer for aggregation.
[0070] The system in this embodiment also includes other components well known to those skilled in the art, such as communication interfaces. Their settings and functions are known in the art, and therefore will not be described in detail here.
[0071] In the description of this specification, "multiple" or "several" means at least two, such as two, three or more, unless otherwise explicitly specified.
[0072] While this specification has shown and described numerous embodiments of the invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Many modifications, alterations, and alternatives will occur to those skilled in the art without departing from the spirit and essence of the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in the practice of this invention.
Claims
1. A method for controlling a serial console, characterized by, include: In response to the access serial port of the lower-level machine, the baud rate is polled from the preset configuration library to determine whether to establish a connection with the lower-level machine; If so, perform the following steps: Receive user input information; The user interaction input information is converted into instruction frames and sent to the lower-level machine; In response to the execution of the instruction frame, the system receives feedback information from the lower-level machine. Based on the feedback information, trigger an interactive information storage command or an abnormal alarm command.
2. The serial screen control method according to claim 1, wherein, If not, proceed with the following steps: A baud rate error message and a baud rate input dialog box will pop up. In response to the input of the baud rate in the interactive box, a connection is established with the lower-level machine according to the input baud rate.
3. The serial console control method according to claim 1, wherein The instruction frame includes at least a text display instruction, a media file playback instruction, an interactive canvas access instruction, and an audio playback instruction; wherein the text display instruction, the media file playback instruction, the interactive canvas access instruction, and the audio playback instruction are each configured with an independent control driver.
4. The serial console control method according to claim 3, wherein If the user interaction input information is text display information, the user interaction input information is converted into an instruction frame and sent to the lower-level machine, including: Convert the displayed text information into a first byte array according to a specified encoding format; Based on the text display information and the configuration parameters of the lower-level machine, the corresponding text display instruction identifier, text control identifier, font height parameter, and text length are retrieved from the preset configuration library; The first byte array, the text display instruction identifier, the text control identifier, and the font height parameter are combined to form a text display instruction that conforms to a preset encoding rule.
5. The serial console control method according to claim 3, wherein If the user interaction input information pertains to media file playback, the user interaction input information is converted into a command frame and sent to the lower-level machine, including: Convert the media file playback information into file path encoding according to the specified encoding format; Based on the text display information and the configuration parameters of the lower-level machine, the corresponding media display instruction identifier and media control identifier are retrieved from the preset configuration library; The file path encoding, the media display instruction identifier, and the media control identifier are combined to form a media file playback instruction that conforms to a preset encoding rule.
6. The serial console control method according to claim 5, wherein For the lower-level machine, the method includes: The instruction frame is parsed and executed; The feedback information is uploaded to the host computer; wherein the feedback information includes an execution status code and a fault code.
7. The serial console control method according to claim 6, wherein If the instruction frame is parsed as a media file playback instruction, the instruction frame is parsed and executed, including: The file path encoding is parsed from the media file playback command; The media file is read from the storage module of the host computer according to the file path encoding; In response to the host computer's retrieval of the media control, the display screen is driven to show and play the media file.
8. A serial panel control system for use in the serial panel control method according to any one of claims 1 to 7, characterized by It includes a host computer and a slave computer, wherein the host computer is used for: In response to the access serial port of the lower-level machine, poll the baud rate from the preset configuration library and determine whether to establish a connection with the lower-level machine; If so, perform the following steps: Receive user input information; The user interaction input information is converted into instruction frames and sent to the lower-level machine; In response to the execution of the instruction frame, the system receives feedback information from the lower-level machine. Based on the feedback information, trigger an interactive information storage command or an abnormal alarm command.
9. The serial port screen control system of claim 8, wherein, The host computer includes: The user interface module provides a visual interactive interface. The host computer serial communication module is used to establish communication and command frames with the slave computer and receive the feedback information. The instruction conversion and parsing module has a built-in configuration library for the target serial port screen, which is used to convert the user interaction input information into instruction frames and parse the feedback information; The first storage module is used to store the configuration library data and interaction operation records; and... An exception handling module is used to detect communication exceptions and instruction execution exceptions based on the feedback information.
10. The serial console control system of claim 7, wherein, The lower-level machine includes: The lower-level serial communication module is used to receive the instruction frame and send feedback information; A control module is used for parsing and executing the instruction frames; The control driver module includes multiple control driver units, which are used to drive different types of controls on the serial port screen; The media processing module is used to decode and play media files; The second storage module is used to store firmware, cached data, and fault logs; The lower-level machine anomaly monitoring module is used to monitor hardware / software faults; The status feedback module is used to generate execution status and fault codes based on the hardware / software faults.