QextSerialPort, error on openPort;

  • I'm trying to use the "QextSerialPort" to connect

    void MainWindow::showConectar() {
    DialogPortaSerial dialogPortaSerial(this);
    if ( dialogPortaSerial.result() == QDialog::Accepted) {
    port = new QextSerialPort();
    port->setPortName( dialogPortaSerial.getDeviceSelected() );
    if (port->isOpen())
    qDebug() << "isOpened!";
    } 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?

  • I execute the compiled app with root user and then works the open method()!

    Can I make this works with a normal user?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.