Results 1 to 12 of 12

Thread: Qextserial on debian linux and readyRead slot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2013
    Posts
    7
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Qextserial on debian linux and readyRead slot

    Hi All,
    I would like to use Qextserial in debian linux with readyRead signal. There is no error on init, but it cannot send signal.
    Here is my settings:

    Qt Code:
    1. mSerialPort = new QextSerialPort("/dev/ttyUSB0", QextSerialPort::EventDriven);
    2. mSerialPort->setBaudRate(BAUD921600);
    3. mSerialPort->setDataBits(DATA_8);
    4. mSerialPort->setStopBits(STOP_1);
    5. mSerialPort->setParity(PAR_NONE);
    6. mSerialPort->setFlowControl(FLOW_OFF);
    7. mSerialPort->setQueryMode(QextSerialPort::EventDriven);
    8. mSerialPort->setRts(true);
    9. mSerialPort->setDtr(true);
    10.  
    11. QObject::connect(mSerialPort, SIGNAL(readyRead()), this, SLOT(dataAvailable()));
    12. mSerialPort->open(QIODevice::ReadWrite);
    13. if (!mSerialPort->isOpen())
    14. log_exception(PacketDriverException, "cannot open %s", "/dev/ttyUSB0");
    To copy to clipboard, switch view to plain text mode 

    I read a post here

    http://www.qtcentre.org/threads/1562...th-readyRead()

    from 2008, it said I can' t use signal in linux
    Is it true?
    How can I set to use signals?

    thx a lot
    Zamek

  2. The following user says thank you to zamek42 for this useful post:

    ebirdseystew (18th December 2013)

Similar Threads

  1. Replies: 0
    Last Post: 1st August 2011, 13:06
  2. QtIOCompressor fix for Mac (Debian Linux?)
    By qdm in forum Qt Programming
    Replies: 0
    Last Post: 23rd June 2010, 02:17
  3. Replies: 1
    Last Post: 1st November 2007, 14:09
  4. Look and Feel on Debian Linux
    By Krish_ng in forum Qt Programming
    Replies: 1
    Last Post: 24th July 2007, 09:11
  5. QT4 minimum requirements Debian GNU/Linux Sarge
    By Everall in forum Installation and Deployment
    Replies: 10
    Last Post: 21st February 2006, 12:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.