我需要在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