Results 1 to 8 of 8

Thread: serial port issues

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Falmouth, MA, USA
    Posts
    34
    Thanks
    4
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port issues

    thanks for the speedy replies. No luckyet though.

    I tried following jpn's suggestion of removing the

    extra "MessageEvent::" prefixes

    and the error message changed--now instead of the identifier being '{ctor}', it's 'MessageEvent'

    In lots of cases, I have been able to avoid reading serial ports in QT by using a network device server to send my app UDP packets instead of serial data. But I can't always do that

    Jonathan Howland

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: serial port issues

    Quote Originally Posted by jhowland View Post
    I tried following jpn's suggestion of removing the

    extra "MessageEvent::" prefixes

    and the error message changed--now instead of the identifier being '{ctor}', it's 'MessageEvent'
    Do you have the appropriate include directive in place?
    J-P Nurmi

  3. #3
    Join Date
    Sep 2008
    Location
    Falmouth, MA, USA
    Posts
    34
    Thanks
    4
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port issues

    Quote Originally Posted by jpn View Post
    Do you have the appropriate include directive in place?
    I dont think so--what would that be?

    jch

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: serial port issues

    I meant including the header that declares MessageEvent. For example:
    Qt Code:
    1. #include "messageevent.h"
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  5. #5
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port issues

    I wrote my own serial port code for Linux and WIN32 some time ago.
    I released it under the GPL v2 license.

    http://www.teuniz.net/RS-232

    It has been tested with GCC on Linux and MinGW on Windows XP/2000.
    Handshaking or flowcontrol is not supported.
    It uses polling to receive characters from the serial port.
    Interrupt/event-based is not supported.
    Baudrate is fixed at 115K2 but can be easily modified to other baudrates.
    Without modifications, this code uses 115K2 8N1 (8 databits, no parity, 1 stopbit).

    I use it in some data-aquisition programs using Qt on Linux and Windows.

    Regards.

Similar Threads

  1. serial port programming
    By sujatashooter in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2008, 15:51
  2. accessing serial port without CONFIG += console
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 21st July 2008, 21:47
  3. serial port communiction
    By jagadish in forum Qt Programming
    Replies: 4
    Last Post: 7th July 2007, 12:04
  4. First attempt to display serial port data on GUI
    By ShaChris23 in forum Newbie
    Replies: 12
    Last Post: 4th May 2007, 09:14
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Tags for this Thread

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.