General synchronous configurable serial port communication method, medium and equipment
The invention relates to a universal synchronous configurable serial port communication method, medium and equipment, and the method comprises the steps: carrying out the parallel operation of a simulation peripheral thread, a telemetering thread and a real-time parameter display thread under a QT p...
Gespeichert in:
Hauptverfasser: | , , , , , , , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a universal synchronous configurable serial port communication method, medium and equipment, and the method comprises the steps: carrying out the parallel operation of a simulation peripheral thread, a telemetering thread and a real-time parameter display thread under a QT project; initially reading configuration files corresponding to each simulation peripheral thread one by one, wherein the configuration files comprise a communication mode, a read data interface number (an RS422/485 serial port and an Ethernet port), a write data interface number and write data (fixed data and file formats); circularly reading buffer data of an interface, corresponding to the configuration file, of the simulation peripheral; if the data exists, executing corresponding judgment on whether a data content frame of the configuration file is sent or not according to a read-write judgment mode in the configuration file; and if the judgment is passed, sending a data content frame of the configuration file, |
---|