#55 COM10 not detected

v1.0 (example)
closed
Chris Liechti
None
5
2013-10-11
2012-06-19
Frank
No

Hello,
I'm using Python2.7 on WinXP and installed pyserial2.5.
I use the folloing example to detect the available COM-Ports on my Computer:

http://pyserial.svn.sourceforge.net/viewvc/pyserial/trunk/pyserial/examples/scan.py?revision=452&view=markup

This worked fine till I connected a device via usb that creates an vitual serial port appears at "COM10".
In this case the mentioned example will not detect the Port "COM10" wich worked well with port numbers below 10.
The messages from the exceptions are as follows:
Error: could not open port \.\COM0: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM2: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM3: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM6: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM7: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM8: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM9: [Error 2] Das System kann die angegebene Datei nicht finden.
Error: could not open port \.\COM10: [Error 2] Das System kann die angegebene Datei nicht finden.

"Das System kann die angegebene Datei nicht finden." means: The System can't find the specified file.
Port COM1, COM4 and COM5 can be found but not COM10 wich is definitly availabel because I can select it with HTERM and can see the serial communication with the device.

Some hints to help fixing this problem will be higly appreciated

Thanks in advance

Frank

Discussion

  • Chris Liechti
    Chris Liechti
    2012-08-16

    • assigned_to: nobody --> cliechti
    • status: open --> pending
     
  • Chris Liechti
    Chris Liechti
    2012-08-16

    Hm it should be two backslashes \\.\COMx but starting with pySerial 2.3 these are added internally so just COM10 should work.

    since pySerial 2.6, there is a package included for serial port enumeration: serial.tools.list_ports (it does not "scan" but instead inspect the system for available ports).

     
  • Frank
    Frank
    2012-08-17

    • status: pending --> open
     
  • Frank
    Frank
    2012-08-17

    Hello and thanks for your reply,

    I'm still going on testing around with this stuff so I tried out //.//COMx wich worked on WinXP but not on Winsows 7 so I tried \\\\.\\COMx becaus of a note I read somewhere in the Internet. That works on my WinXP and on my Windows7 but seems not to work on other Windows7 Machines maybe becaus of restricted right.

    So I like to try out pySerial2.6 but didn't manage to find a package für Windows maybe you cant point me to the download?

    Tanks in advance

    Frank

     
  • Chris Liechti
    Chris Liechti
    2013-10-11

    pyserial 2.6 is available as source distribution via http://pypi.python.org/pypi/pyserial (you could use e.g. "pip install pyserial" to get it, or download extract and run "setup.py install")

     
  • Chris Liechti
    Chris Liechti
    2013-10-11

    • status: open --> closed
    • Group: --> v1.0 (example)