grag38 / qextserialport

Automatically exported from code.google.com/p/qextserialport
0 stars 0 forks source link

Specify Serial Ports Larger than COM9 #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I think we need some improvement for addressing this case:

CreateFile("\\\\.\\COM10",...)

Original issue reported on code.google.com by emi...@gmail.com on 3 Aug 2009 at 1:08

GoogleCodeExporter commented 8 years ago
What's the problem?

Original comment by lst...@gmail.com on 3 Aug 2009 at 4:41

GoogleCodeExporter commented 8 years ago
I tried (only in Windows) without success to connect my pc to a device with 
serial
port larger than 9. It was enough to change the port below 10 to open the 
connection
with success.

Original comment by emi...@gmail.com on 3 Aug 2009 at 10:03

GoogleCodeExporter commented 8 years ago
I can confirm that COM ports above 9 work for me with the latest code, as long 
as it's prefixed as you did above: 
"\\\\.\\COM10"

Original comment by lst...@gmail.com on 4 Aug 2009 at 7:16

GoogleCodeExporter commented 8 years ago
Thank you for this confirmation.

Original comment by emi...@gmail.com on 5 Aug 2009 at 8:41

GoogleCodeExporter commented 8 years ago
I've also added code for this in setPortName() such that you can pass in 
"COM10" and have the appropriate 
characters prepended.  Marking as fixed.

Original comment by lst...@gmail.com on 27 Aug 2009 at 4:57

GoogleCodeExporter commented 8 years ago
Having the same issue I could fix it with the mentioned solution.
used:  qesp = new QextSerialPort( QString("\\\\.\\COM%1").arg(portNum) );
where portNum is a QString that is given.

This solution is not included in the latest downloadable version on sourceforge,
qextserialport-1.2win-alpha. I guess there are more improvements on this 
revision.
Can somebody then set up a qextserialport-1.2win-beta and upload it for 
download?

Cheers
Stefan

Original comment by goeck...@gmail.com on 12 Oct 2009 at 11:16