lemanhtrung / qextserialport

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

Enumerator might list device in untypical format \\.\COMx #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Lantronix xport to create a new virtual com-port (lan meets com port)
2. Use enumerator example to get a list of com-ports

What is the expected output? What do you see instead?
I do expect a com-name like 'COM8' - but i get '\\.\COM8'

What version of the product are you using? On what operating system?
Windows XP, QextSErialport via HG from 20110411, Lantronix xPort (LAN to RS232)

Please provide any additional information below.
An older version of QExtserialport does output the name as expected - so no 
additional backslashes or unexpected dots in the name of the interface.

Original issue reported on code.google.com by elAndroi...@googlemail.com on 21 Apr 2011 at 9:26

GoogleCodeExporter commented 9 years ago
for COM port > 9, A special syntax is needed.
Personnaly, I directly use the portname given by the enumerator and that 
does'nt produce any error.

Try to open a port COM10 or above and the port will refuse to open if you don't 
use "\\.\"

Original comment by Kristen....@gmail.com on 27 Apr 2011 at 12:57

GoogleCodeExporter commented 9 years ago
Thanks for the reply Kristen - gonna test that.

Original comment by elAndroi...@googlemail.com on 3 May 2011 at 10:50

GoogleCodeExporter commented 9 years ago
please consider:

http://code.google.com/r/dbzhang800-qextserialport/

Enumerator will always given an list such as : COM1 COM2 COM20 COM21 ...

User will never see \\.\COM21, which will used privatly by QextSerialPort's 
open.

Original comment by dbzhang...@gmail.com on 10 Nov 2011 at 3:32

GoogleCodeExporter commented 9 years ago

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:42