我需要在RS232端口(串行)上與指紋對話。我有一個Python代碼,就像一個魅力: import serial
import time
ser = serial.Serial('/dev/ttyUSB0', 9600, parity='N', timeout=2)
print ser
ser.open()
ser.write(chr(0x00)) # channel 1 byte
我在Qt中的線程知識相當有限,現在我有一個問題,似乎與線程相關。我正在使用QextSerialPort通過uart進行通信。我的用於串行通信類如下所示(剝離到最小): SerialIO::SerialIO() {
port = new QextSerialPort("/dev/ttymxc1");
connect(port, SIGNAL(readyRead()), this,
我已經看到了幾個問題並搜索了很多,我找不到使用qextserialport聲明串行端口對象的方法,以便讀寫arduino。我試了一下,用戶在How to write on serial port using Qextserialport做,但是編譯器給了我以下錯誤: undefined reference to `QextSerialPort::QextSerialPort(QString con