Results 1 to 11 of 11

Thread: QextSerialPort question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2012
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default QextSerialPort question

    Hello, I'm trying to establish a communication between a microprocessor and my Ubuntu PC.

    I'm using Qextserialport library. But some error occured I don't know why.

    I tested the portname and it's like that attached "ttyACM0"

    Qt Code:
    1. QextSerialPort *deneme = new QextSerialPort();
    2. deneme->setPortName("/dev/ttyACM0");
    3. deneme->setBaudRate(BAUD9600);
    4. deneme->setParity(PAR_NONE);
    5. deneme->setDataBits(DATA_8);
    6. deneme->setStopBits(STOP_1);
    7.  
    8. if ( !(deneme->open(QIODevice::ReadWrite)) )
    9. {
    10. qDebug("error"); }
    11. if(deneme->isOpen())
    12. {
    13. qDebug("opened");
    14. deneme->close();
    15. }
    To copy to clipboard, switch view to plain text mode 

    When I run it, It just waits and "error" occured. What I am missing you think?

    Thanks in advance
    Attached Images Attached Images

Similar Threads

  1. New Qextserialport
    By pherthyl in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2009, 02:09
  2. Newbie Question with Qextserialport.tar.gz
    By nomad in forum Qt-based Software
    Replies: 2
    Last Post: 13th July 2009, 14:32
  3. QExtSerialport question
    By bnilsson in forum Qt Programming
    Replies: 0
    Last Post: 6th June 2009, 23:29
  4. i have a question about using qextserialport
    By to_guliang in forum Qt Programming
    Replies: 14
    Last Post: 29th May 2008, 08:33
  5. Question about using the QextSerialPort~
    By coffeemorphism in forum Qt Programming
    Replies: 2
    Last Post: 1st February 2007, 15:16

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
  •  
Qt is a trademark of The Qt Company.