Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. QextSerialPort, error on openPort;
Forum Updated to NodeBB v4.3 + New Features

QextSerialPort, error on openPort;

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 1 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dcbasso
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #2

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

      Can I make this works with a normal user?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved