bluetooth - Program to remove virtual COM ports

06
2014-04
  • alexb

    I have a program written in python that does a lot of bluetooth connections with multiple devices. I've had an issue that after a number of device connections, I can no longer connect to a bluetooth device until I delete the previous virtual COM ports manually.

    Is there a way to remove the virtual COM ports programmatically through Python? Or maybe a Windows command-line utility which I can call from python to do this?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    usb - Configure connection to embedded device with virtual COM port in Windows 7
  • Lstor

    I want to set up a connection between my Windows 7 computer and an embedded device connected on a virtual COM port using a USB cable. I already have a driver for for COM port emulation.

    How do I configure the connection?

    In windows XP, the answer is to go to: Create new connection -> Advanced connection -> Direct connection from PC to PC

    And then configure it. What's the corresponding approach for Windows 7? I've been searching through the "Network and Sharing Center" for ages without figuring it out, and I couldn't find much help in Google, either. Any help would be very much appreciated.


  • Related Answers
  • Lstor

    I found the answer:

    • Go to Network and Sharing Center
    • Set up a new connection or network -> Set up a dial-up connection
    • Enter a dummy number (not used) and choose 'Connect'.
    • Edit the connection in order to configure (e.g. select COM port)
    • Connect.