Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

"Supported" solution to enumerate and use serial ports



  • Hello, I'm using Qt for industrial applications, and serial port communications are one of the most important parts of our software.

    Qt4 doesn't seem to have an "official" or "supported" library for this, so I resorted to qextserialport (http://code.google.com/p/qextserialport/), which seems to work fairly well so far. However, the project seems stalled (Last commit was in Frebruary 2010) and it starts so show some age: i.e. it fails to compile out of the box on Windows when using a Qt library installed from one of the new QtSDK packages, as qextserialport uses internal Qt4 headers, and the source directory has changed in the QtSDK packages.

    I'm also worried about the portability of QtSDK. Will it work on all the platforms Qt4 supports? I'm planning ports of our software for Linux Embedded and WindowsCE, and finding qextserialport doesn't work there would be a huge issue.

    In short: are there plans to merge qextserialport into mainstream Qt4, and/or is there any "supported" alternative that will work anywhere Qt4 does?



  • I can confirm it works absolutely fine on linux-embedded, although I am using an older version of QExtSerialPort.

    And of course you could always use the source-code...



  • Cool, I think now I can rest at ease :)

    BTW, has anyone tried it on Windows CE? And why not, QNX?



  • I have used a real old version on Windows CE 5. Unfortunately, there are major differences for the API between the implementation for CE and desktop windows.

    I am not aware if the updated versions have addressed these issues.


  • Qt Champions 2020

    Hi all.

    I have good news for people who need a library that supports the serial ports.
    I recently suggested that the library QSerialDevice 2.0:
    https://gitorious.org/qserialdevice/qserialdevice/trees/2.0
    as a supplement (addon) to Qt. Programmers from Nokia has kindly agreed to take it.
    Of course, if all goes well, and Nokia will not forget about my suggestion - that the library will be part of Qt. :)

    Of course, much will have to modify and hold a deep refactoring. Currently it supports Windows, WinCE, GNU / Linux, MacOSX, other * nix, partialy Symbian.

    We need help to develop. So who is interested - please help the project. At the moment, an urgent need for implementation for Symbian.



  • That's awesome :D



  • [quote author="kuzulis" date="1323697198"]Hi all.

    I have good news for people who need a library that supports the serial ports.
    I recently suggested that the library QSerialDevice 2.0:
    https://gitorious.org/qserialdevice/qserialdevice/trees/2.0
    as a supplement (addon) to Qt. Programmers from Nokia has kindly agreed to take it.
    Of course, if all goes well, and Nokia will not forget about my suggestion - that the library will be part of Qt. :)

    Of course, much will have to modify and hold a deep refactoring. Currently it supports Windows, WinCE, GNU / Linux, MacOSX, other * nix, partialy Symbian.

    We need help to develop. So who is interested - please help the project. At the moment, an urgent need for implementation for Symbian.

    [/quote]

    Possibly you shall have a look to this "thread ":http://developer.qt.nokia.com/forums/viewthread/11683/
    There are a couple of issues not completely understood.


  • Qt Champions 2020

    [quote]
    Possibly you shall have a look to this thread [developer.qt.nokia.com]
    There are a couple of issues not completely understood.
    [/quote]
    I saw this topic.
    And I'm the man answered the mail, so he checked in debugger. I do not have these problems, not reproduce.


  • Qt Champions 2020

    Hi All.

    At last!
    The Nokia cloning repository QSerialDevice 2.0 to codereview.qt-project.org

    Now the whole development will be there.

    Developers can get a clone of this:
    $ git clone ssh://codereview.qt-project.org:29418/playground/qtserialport.git

    We ask all interested to take part in the development of the project.

    More
    "this":http://wiki.qt-project.org/Code_Reviews
    and
    "this":http://wiki.qt-project.org/Setting_up_Gerrit


Log in to reply