Questions tagged [qtserial]

In the QT framework, Qt Serial Port provides the basic serial port functionalities, which includes configuring, I/O operations, getting and setting the control signals of the RS-232 pinouts.

In the QT framework, Qt Serial Port provides the basic serial port functionalities, which includes configuring, I/O operations, getting and setting the control signals of the RS-232 pinouts.

http://qt-project.org/doc/qt-5/qtserialport-index.html

11 questions
3
votes
2 answers

Qt not receiving serial data from arduino

I am writing a C++ program using Qt that reads data from the serial line. The "producer" of the data is an Arduino UNO board. The Arduino code is very simple. Currently, it just generates a random number and sends it over the serial line. Here is…
David
  • 1,847
  • 4
  • 26
  • 35
1
vote
0 answers

Python connect to serial port (PyQt GUI)

I'm trying to use python and Qt designer to have serial term like software program. I can open the COM port without any problem. But I couldn't find a good example to detect usb device plug in and unplug event in Python with pyserial or Qtserial. Is…
apolloneo
  • 169
  • 1
  • 2
  • 18
1
vote
2 answers

QSerialPortInfo isValid() and isBusy()

QSerialPortInfo class has const methods isValid() (deprecated since 5.2) and isBusy() (deprecated since 5.6). They both seem to work but QT documentation does not provide with info whether they should be replaced with isNull() or state of…
artaxerx
  • 244
  • 1
  • 3
  • 11
1
vote
1 answer

How to retrieve data size larger than Qt Modbus InputRegisters?

From what I understand, the range of QModbusDataUnit::InputRegisters is range 0-65535 which is unsigned short. The method to read 1 unit of inputregisters is as follows: QModbusDataUnit readUnit(QModbusDataUnit::InputRegisters, 40006, 1); The value…
user1157977
  • 907
  • 1
  • 11
  • 17
1
vote
1 answer

Not able to write data to Arduino using qtserial

I am fairly new to qt programming. I am not able to send/write data to Arduino. Reading data from Arduino works expected. I am trying to turn-on pin13 led on when Serial.available() > 0. It works expected when I send data using Arduino serial…
Praveen Singh Yadav
  • 1,831
  • 4
  • 20
  • 31
1
vote
1 answer

QSerialPort and Virtual Port Emulator

I've got problem with my program based on QSerialPort class. I've created reciever application for my bluetooth module HC-06 (which connects to pc as serial port) and my app has recieved data from this module without any troubles. Now I've just…
Nowax
  • 347
  • 3
  • 15
0
votes
1 answer

PyQT5 problem with reading from port with QtSerialPort

I am currently trying to communicate with a device which sends a data stream by COM. I am having a weird problem with QtSerialPort which I currently don't know how to solve. The description of the problem is: When I restart the device and restart my…
user44791
  • 37
  • 7
0
votes
0 answers

QSerialPort causes "The program has unexpectedly finished" in QT

If I run this constructor USB::USB(){ serialPort = new QSerialPort(); serialPortInfo = new QSerialPortInfo(); } From this class #include #include class USB { public: USB(); private: QSerialPort*…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
1 answer

QModbusRtuSerialMaster reset output queue

Is there a way to reset the output queue for a QModbusRtuSerialMaster instance. I think that the other end is being saturated with retries which it can't handle, causing QModbusRtuSerialMaster to retry making the problem worse. A possible solution…
Jay M
  • 3,736
  • 1
  • 24
  • 33
0
votes
0 answers

Qt Serial not usable from another class

I'm trying to read and write with serial port. I have created a class , named serial , and connect it with readyRead on mainwindow.cpp. QObject::connect(frm_serial->arduino,SIGNAL(readyRead()),frm_serial,SLOT(serialRead())); I'm reading the data…
bladekel
  • 37
  • 7
0
votes
1 answer

qt Serial Port Not Opening

I am trying to write to a serial port printer. I use Qt5.4 and the below code: bool SerialPortWriter::openPort(QString portName, QSerialPort::BaudRate actualBaudRate) { qDebug() << Q_FUNC_INFO << "Invoked"; bool open = false; if (NULL…
A.J
  • 725
  • 10
  • 33