Serial communication method, device and system for upper computer and driver

The embodiment of the invention discloses a serial communication method, device and system for an upper computer and a driver, and the serial communication method is executed by the upper computer and comprises the steps: receiving data uploaded by the driver through a serial communication interface...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHOU BUQING, CHENG PINGHENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention discloses a serial communication method, device and system for an upper computer and a driver, and the serial communication method is executed by the upper computer and comprises the steps: receiving data uploaded by the driver through a serial communication interface; performing sequential processing on the received data based on a preset first mutual exclusion lock by adopting a signal and slot mechanism to obtain first data; after the preset time of the first data is obtained, the data needing to be sent are sequenced based on a preset second mutual exclusion lock, and the sequenced data are sent to the driver. According to the serial communication method, device and system for the upper computer and the driver provided by the embodiment of the invention, the reliability of serial communication between the upper computer and the driver can be improved. 本发明实施例公开了一种上位机与驱动器的串行通信方法、装置及系统,串行通信方法由上位机执行,串行通信方法包括:通过串行通信接口接收驱动器上传的数据;采用信号和槽机制,基于预设的第一互斥锁对接收的数据进行顺序化处理,得到第一数据;在得到第一数据的预设时