Qt Serial Port Rs485

The SD4001 has one DB9 serial port which can selected to be an RS232, RS485 or RS422 port. By default the SD4001 is configured in RS232 mode. Qt Serial Port Rs485 Average ratng: 8,8/10 7489 votes. Progdvb Plugins By Den78 V10 9 Free Download here. Terminal shows how to create a terminal for a simple serial interface by using. This example shows the main features of the class, like configuration, I/O implementation and so forth. Also, the class is invoked to display information about. ., read sensors via TTL R4AVA07 7 Channel RS485 analog voltage sampler - Read 7 voltages vis RS485 PZEM-016 power sensor - Read mains voltage and current consumption vis RS485 Pelco-d PTZ control - Control pan tilt zoom via RS485 Huawei E3372 modem - Send sms via USB virtual serial port STM32 series WT Servo 16 - 16 channels servo motor. HHD Serial Port Monitor is a nonintrusive software Com ports sniffer, RS232/RS422/RS485 serial protocol analyzer & data logger for Windows. Capture, log & analyze serial ports activity, parse protocol pakets data (MODBUS packets, BACnet MSTP packets, PPP packets), create & send packets to the devices using built-in serial terminal, send MODBUS commands, streamline your work with scripting. USB to Serial Adapters RS232, RS422 & RS485. It converts a USB-C port on your laptop or computer into a RS232 DB9 serial port, giving you a cost-saving way to connect to serial devices such as point-of-sale terminals, serial modems, industrial equipment, and a wide variety of other RS232 peripherals.

  1. Rs485 Connector
  2. Rs485 Pinout
  3. Rs232 Vs Rs485

Provides information about existing serial ports. More...

Header:#include <QSerialPortInfo>
qmake: QT += serialport
Since: Qt 5.1

Public Functions

QSerialPortInfo(const QSerialPort &port)
QSerialPortInfo(const QString &name)
QSerialPortInfo(const QSerialPortInfo &other)
QString description() const
bool hasProductIdentifier() const
bool hasVendorIdentifier() const
bool isBusy() const
bool isNull() const
QString manufacturer() const
QString portName() const
quint16 productIdentifier() const
QString serialNumber() const
void swap(QSerialPortInfo &other)
QString systemLocation() const
quint16 vendorIdentifier() const
QSerialPortInfo &operator=(const QSerialPortInfo &other)

Static Public Members

QList<QSerialPortInfo> availablePorts()
QList<qint32> standardBaudRates()

Detailed Description

Provides information about existing serial ports.

Use the static functions to generate a list of QSerialPortInfo objects. Each QSerialPortInfo object in the list represents a single serial port and can be queried for the port name, system location, description, and manufacturer. The QSerialPortInfo class can also be used as an input parameter for the setPort() method of the QSerialPort class.

See also QSerialPort.

Member Function Documentation


Constructs an empty QSerialPortInfo object.


See also isNull().

QSerialPortInfo::QSerialPortInfo(const QSerialPort &port)

Constructs a QSerialPortInfo object from serial port.

QSerialPortInfo::QSerialPortInfo(const QString &name)

Constructs a QSerialPortInfo object from serial port name.

This constructor finds the relevant serial port among the available ones according to the port name name, and constructs the serial port info instance for that port.

Rs485 serial cable

QSerialPortInfo::QSerialPortInfo(const QSerialPortInfo &other)

Constructs a copy of other.


Destroys the QSerialPortInfo object. References to the values in the object become invalid.

[static] QList<QSerialPortInfo> QSerialPortInfo::availablePorts()


Returns a list of available serial ports on the system.

QString QSerialPortInfo::description() const

Returns the description string of the serial port, if available; otherwise returns an empty string.

See also manufacturer() and serialNumber().

bool QSerialPortInfo::hasProductIdentifier() const

Returns true if there is a valid 16-bit product number present; otherwise returns false.

Qt Serial Port Rs485

See also productIdentifier(), vendorIdentifier(), and hasVendorIdentifier().

bool QSerialPortInfo::hasVendorIdentifier() const

Returns true if there is a valid 16-bit vendor number present; otherwise returns false.

Rs485 Connector

See also vendorIdentifier(), productIdentifier(), and hasProductIdentifier().

bool QSerialPortInfo::isBusy() const

Returns true if serial port is busy; otherwise returns false.

See also isNull().

bool QSerialPortInfo::isNull() const

Returns whether this QSerialPortInfo object holds a serial port definition.

See also isBusy().

QString QSerialPortInfo::manufacturer() const

Returns the manufacturer string of the serial port, if available; otherwise returns an empty string.

See also description() and serialNumber().

QString QSerialPortInfo::portName() const

Returns the name of the serial port.

See also systemLocation().

quint16 QSerialPortInfo::productIdentifier() const

Returns the 16-bit product number for the serial port, if available; otherwise returns zero.

See also hasProductIdentifier(), vendorIdentifier(), and hasVendorIdentifier().

QString QSerialPortInfo::serialNumber() const

Returns the serial number string of the serial port, if available; otherwise returns an empty string.

Note: The serial number may include letters.

This function was introduced in Qt 5.3.

See also description() and manufacturer().

[static] QList<qint32> QSerialPortInfo::standardBaudRates()

Returns a list of available standard baud rates supported by the target platform.

void QSerialPortInfo::swap(QSerialPortInfo &other)

Swaps QSerialPortInfoother with this QSerialPortInfo. This operation is very fast and never fails.

Qt Serial Port Rs485

QString QSerialPortInfo::systemLocation() const

Returns the system location of the serial port.

Rs485 Pinout

See also portName().

quint16 QSerialPortInfo::vendorIdentifier() const

Returns the 16-bit vendor number for the serial port, if available; otherwise returns zero.

See also hasVendorIdentifier(), productIdentifier(), and hasProductIdentifier().

QSerialPortInfo &QSerialPortInfo::operator=(const QSerialPortInfo &other)

Sets the QSerialPortInfo object to be equal to other.

Rs232 Vs Rs485

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.