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. #5
    Join Date
    Dec 2013
    Posts
    7
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qextserial on debian linux and readyRead slot

    Hi,

    Quote Originally Posted by kuzulis View Post
    Qt Code:
    1. YourClass::dataAvailable()
    2. {
    3. QByteArray b = mSerialPort.readAll();
    4. std::cout<<b.size()<<std::endl;
    5. }
    To copy to clipboard, switch view to plain text mode 
    Yes my dataAvailable is:
    Qt Code:
    1. void PacketDriver::dataAvailable()
    2. {
    3. if (mSerialPort.isReadable())
    4. readChar(mSerialPort.readAll());
    5. }
    6.  
    7. void PacketDriver::error()
    8. {
    9. QString err=mSerialPort.errorString();
    10. qDebug()<<err;
    11. mSerialPort.clearError();
    12. }
    To copy to clipboard, switch view to plain text mode 

    but I use readAll at end of open, because there is no signal. After I open the port and there are incoming data I have to read something with readAll.
    I started this with QExtSerial, which can read after open, but it cannot send signals. QtSerial cannot read after open and cannot send signal
    The hardware continuously send 80 bytes of frames at every 5 ms. Cutecom and gtkterm can read it.

  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.