Results 1 to 8 of 8

Thread: QExtSerialport reads junk char's through UART first time after booting PC

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QExtSerialport reads junk char's through UART first time after booting PC

    Most likely some control signals (CTS,RTS,DTR,DSR) have incorrect state.

  2. #2
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QExtSerialport reads junk char's through UART first time after booting PC

    yes .. checked that ... i have disabled both DTR & RTS

    Still same problem..

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QExtSerialport reads junk char's through UART first time after booting PC

    After opening the port (line 18) read potential garbage. You do not know what are the parameters of the port (speed, parity etc.) before programming. If the second side send something on your side will be garbage. The port is still active and supported by the operating system and driver.
    I think that Hyperterminal do this for You. This is normal.

  4. #4
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QExtSerialport reads junk char's through UART first time after booting PC

    Sorry i forgot to mention.. I have tried QSerialPort (QSerialDevice) also... result is same...
    You are wrong using QtSerialPort! First, need open device, and second - configure it!
    Please read documentation.

  5. #5
    Join Date
    Oct 2014
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Red face Re: QExtSerialport reads junk char's through UART first time after booting PC

    Thanks Very Much
    I was configuring it first then opening it.
    But it was Vice Verca.

Similar Threads

  1. Replies: 2
    Last Post: 3rd July 2012, 16:42
  2. Replies: 5
    Last Post: 11th August 2011, 14:16
  3. Replies: 3
    Last Post: 19th February 2009, 19:01
  4. QGraphicsItem leaves junk on screen
    By Gopala Krishna in forum Qt Programming
    Replies: 18
    Last Post: 12th December 2007, 06:23
  5. QSqlQuery always return junk value while for varchar oracle.
    By ranjit2709 in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2007, 05:19

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.