Results 1 to 14 of 14

Thread: FYI: Qt Feature Request: Serial port support

  1. #1
    Join Date
    Nov 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default FYI: Qt Feature Request: Serial port support

    FYI: This could be very interesting for everybody who uses Qt and serial ports. A feature request with this topic is new at Qt bug report page and more votes increases the possibility of implementation. Here is the link:

    http://bugreports.qt.nokia.com/browse/QTBUG-9980

    I think it is very important and so I vote for it !

  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: FYI: Qt Feature Request: Serial port support

    Hi, have you tried QextSerialPort (mentioned in that qt-interest thread) or QxtSerialDevice (http://dev.libqxt.org/libqxt/src/tip...rialdevice.h)?
    J-P Nurmi

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: FYI: Qt Feature Request: Serial port support

    Considering serial ports are purely legacy hardware now, I vote for people wishing to use such hardware should use the already available Qt classes such as the above (QextSerialPoprt, etc) rather than spending time merging it into the core trunk of Qt.

  4. #4
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: FYI: Qt Feature Request: Serial port support

    Quote Originally Posted by fatjuicymole View Post
    Considering serial ports are purely legacy hardware now,
    Yes and no. Serial ports may be legacy hardware, but I know many many cases where usb to serial converters are used just because the developers know how to program a serial port, but have no idea how to use usb. So the hardware may be dieing out, but the need for serial code will remain for quite some time.

    Which does not mean it needs into the Qt trunk.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: FYI: Qt Feature Request: Serial port support

    I would very much like to see a decent usb support in Qt but I think rs serial is also important especially in industrial applications. If I remember correctly Qtopia (or Qt/Embedded...) had an implementation of a serial device and I heard it was supposed to be merged into trunk but I guess this is low on Nokia priority list right now, especially that I would have to be ported to other platforms first.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: FYI: Qt Feature Request: Serial port support

    Quote Originally Posted by Kumosan View Post
    Yes and no. Serial ports may be legacy hardware, but I know many many cases where usb to serial converters are used just because the developers know how to program a serial port, but have no idea how to use usb.
    I've seen this in a large number of applications and hardware, but each time the hardware did not create another COM port in device manager, it instead used the manufacturer provided drivers for direct access (seemed to be FTDI D2XX drivers each time).

  7. #7
    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: FYI: Qt Feature Request: Serial port support

    And is not it easier to extend and refine QSerialDevice?

    link zip: http://fireforge.net/frs/?group_id=199
    link svn: svn checkout svn://scm.fireforge.net/svnroot/qserialdevice

    more so (IMHO) QSerialDevice - the most complete and more functional than other libraries (to date).
    PS: the downsides only - no support for Mac OSX and WinCE (other minor sins are not considered )

    PSPS: what is the point in large numbers (the zoo) different libraries for serial port? Maybe it is better to combine into one QSerialDevice (ie, add the different pieces of code)?

    PSPSPS: it turns out that I (and those who helped me) created this library QSerialDevice vain?

  8. The following user says thank you to kuzulis for this useful post:

    jnadelman (10th June 2010)

  9. #8
    Join Date
    Nov 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: FYI: Qt Feature Request: Serial port support

    In industrial environment and application the serial interface is standard and for this it would be very helpful to have well supported serial interface classes. The problem with QSerialDevice is the GPL license which makes it problematical to use for commercial applications. The potential need is given! This you can see at the different implemented serial interface classes (QExtSerialPort, QSerialDevice, ...). So why don't support this directly?

  10. #9
    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: FYI: Qt Feature Request: Serial port support

    The problem with QSerialDevice is the GPL license which makes it problematical to use for commercial applications.
    In principle, the new version QSerialDevice can add license LGPL. It's not forbidden?

    The main thing that the community supported the idea, or yourself Nokia. But this (in my opinion) no benefit and unnecessary.

    So why don't support this directly?
    Although, if they (Nokia) sell really good, comfortable, etc. cross-platform class for the serial device - it would be wonderful!
    Last edited by kuzulis; 28th April 2010 at 08:19.

  11. #10
    Join Date
    Jun 2010
    Posts
    18
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: FYI: Qt Feature Request: Serial port support

    Having a bit of trouble with QextSerialPort on Linux so I'll give QSerialDevice a try.

  12. #11
    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: FYI: Qt Feature Request: Serial port support

    If you are using QSerialDevice - it is better to take from SVN:

    svn checkout svn://scm.fireforge.net/svnroot/qserialdevice

  13. #12
    Join Date
    Jun 2010
    Posts
    18
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: FYI: Qt Feature Request: Serial port support

    Thanks. How do I repair the following build warnings?

    C:/Users/jnadelman/projects/2010/QSerialDevice/makefile:287: warning: overriding commands for target `build/lib/qintegratedserialdevice/obj/winregkeyreader.o'
    C:/Users/jnadelman/projects/2010/QSerialDevice/makefile:272: warning: ignoring old commands for target `build/lib/qintegratedserialdevice/obj/winregkeyreader.o'
    Quote Originally Posted by kuzulis View Post
    If you are using QSerialDevice - it is better to take from SVN:
    svn checkout svn://scm.fireforge.net/svnroot/qserialdevice

  14. #13
    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: FYI: Qt Feature Request: Serial port support

    okay. it should be. me too lazy to remove these "warnings"

  15. The following user says thank you to kuzulis for this useful post:

    jnadelman (11th June 2010)

  16. #14
    Join Date
    Jun 2010
    Posts
    18
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: FYI: Qt Feature Request: Serial port support

    Thanks a million kuzulis. I found QSerialDevice a good deal easier to work with than QextSerialPort. The SerialDeviceWatcher hasChanged signal is perfect for setting up a QComboBox. ABSTRACTSERIAL_DEBUG is also convenient. I did remove "baud" and "bit" from AbstractSerialPrivate::initialiseMap for a better interface with my serial port gui.

Similar Threads

  1. Serial Port communication
    By mgurbuz in forum Qt Programming
    Replies: 12
    Last Post: 22nd January 2011, 02:38
  2. serial port programming
    By sujatashooter in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2008, 15:51
  3. Serial Port
    By b1 in forum Qt Programming
    Replies: 2
    Last Post: 18th January 2007, 02:05
  4. Serial Port access in Qt
    By Doug Broadwell in forum Newbie
    Replies: 2
    Last Post: 18th October 2006, 21:03
  5. Serial Port Communication
    By soldstatic in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2006, 16:05

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.