November 15, 2011

RazZziel RazZziel
Lab Rat
13 posts

"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?

8 replies

November 15, 2011

morinehtar0 morinehtar0
Lab Rat
6 posts

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…

November 15, 2011

RazZziel RazZziel
Lab Rat
13 posts

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

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

November 15, 2011

koahnig koahnig
Gene Splicer
2904 posts

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.

December 12, 2011

kuzulis kuzulis
Robot Herder
360 posts

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.

December 12, 2011

RazZziel RazZziel
Lab Rat
13 posts

That’s awesome :D

December 12, 2011

koahnig koahnig
Gene Splicer
2904 posts

kuzulis wrote:
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.

Possibly you shall have a look to this thread [developer.qt.nokia.com]
There are a couple of issues not completely understood.

December 12, 2011

kuzulis kuzulis
Robot Herder
360 posts


Possibly you shall have a look to this thread [developer.qt.nokia.com]
There are a couple of issues not completely understood.

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.

February 9, 2012

kuzulis kuzulis
Robot Herder
360 posts

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 [wiki.qt-project.org]
and
this [wiki.qt-project.org]

 
  ‹‹ [SOLVED] how to list the available communication ports?      QextSerialPort build problem ››

You must log in to post a reply. Not a member yet? Register here!