QextSerialPort, error on openPort;
-
I'm trying to use the "QextSerialPort" to connect
@
void MainWindow::showConectar() {
DialogPortaSerial dialogPortaSerial(this);
dialogPortaSerial.exec();
if ( dialogPortaSerial.result() == QDialog::Accepted) {
port = new QextSerialPort();
port->setPortName( dialogPortaSerial.getDeviceSelected() );
port->open(QIODevice::ReadWrite);
if (port->isOpen())
{
qDebug() << "isOpened!";
port->queryMode();
} else {
qDebug() << "Not isOpened...";
qDebug() << "Error: " << port->lastError();
qDebug() << "Error: " << port->errorString() ;
}
}
}
@The output log
Selected: "/dev/ttyACM0"
Not isOpened...
Error: 16
Error: "Permission denied"
*
How can I make the open method works?
I need the change some directory or file permission?