[Interest] Arduino TeensyLC USB serial CDC + Qt not working on Windows

Jérôme Godbout godboutj at amotus.ca
Tue May 19 18:49:54 CEST 2020


Hi,
which driver is Windows 10 is using (take a look into the device manager). Also mayke sure no other services is using the COM port, check is busy with QSerialPortInfo before opening a serial port (it's obsolete but still useful for Windows). You can also list the availables port with it.

-----Original Message-----
From: Interest <interest-bounces at qt-project.org> On Behalf Of Henry Skoglund
Sent: May 18, 2020 7:03 PM
To: interest at qt-project.org
Subject: Re: [Interest] Arduino TeensyLC USB serial CDC + Qt not working on Windows

On 2020-05-19 00:52, Jason H wrote:
> The Teensy provides a virtual serial port via the USB Serial CDC. It works great on OSX.
>
> I have a program where I wrote some code in Qt on my Mac.  My co-worker is trying to run it on Windows 10.
> We expected to have to change the serial port name, which we did, to COM4. Teensyduino IDE sees serial traffic from it on Windows.
> However, the program writes data to the teensy and expects it to reply back. The program reports having written the data but no reply is received. The Teensy is hooked to a contact switch and it's supposed to send a status message when this happens. He can see characters in the teensy serial terminal. But when we do it with Qt listening on the serial port, no readyRead call back is called.
>
> Does anyone have any idea?
> It works perfectly on OSX.
>
Just guessing but perhaps some USB buffering is happening on Windows. If you press that contact switch multiple times (to overcome the USB buffer of 64 bytes) do you see any bytes received in your Qt program?

_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest


More information about the Interest mailing list