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

Jason H jhihn at gmx.com
Fri May 22 08:07:20 CEST 2020


Thanks for the reply. It seems that it was a driver installation issue, though ib hammer not confirmed it. It was later found  out that com4 listed 10 times in Device manager, so I think one of those 10 was the right one to use, r just weren't about to select it. 

I'll have a look at the QSPInfo class and see if that can identify the needle in the haystack.

Thanks again. 

> Sent: Tuesday, May 19, 2020 at 6:49 PM
> From: "Jérôme Godbout" <godboutj at amotus.ca>
> To: "fromqt at tungware.se" <fromqt at tungware.se>, "interest at qt-project.org" <interest at qt-project.org>
> Subject: Re: [Interest] Arduino TeensyLC USB serial CDC + Qt not working on Windows
>
> 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
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


More information about the Interest mailing list