virtual serial port (offered by a USB device) may not be reopened once the device has been lost and reconnected

To connect to a virtual serial port offered by a USB device.
-Physically disconnect the device (disappears from the entry in Device Manager)
-Reconnect the device. (It reappears in the Manager of input devices)
-Close the file handle
-Reopen the virtual serial port. --> the CreateFile() call always fails with "ERROR_FILE_NOT_FOUND".
-After dis - / reconnect the USB device once, the serial port can be reopened

Even the true return of GetDefaultCommConfig there yet in CreateFile().

It is clearly bad habits, because in our case the disconnection/reconnection occurs due to a restart of the device; and it's quite embarrassing to explain buyer for the disconnect/reconnect the device.

Is there another workaround solution to clean the window's internal data structures or show me how to open the port?

Hello

The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

http://social.msdn.Microsoft.com/forums/en/categories/

Tags: Windows

Similar Questions

  • recovery on usb key, once that the laptop has been cleared and make new copies

    Tried to creat usb and he stopped and he said that only one copy can be made now I'm worried that it won't let me try again I would be able to launch it without losing the only chance I have. I'm having a problem with the creation of recovery media for laptop Hp pavilion computer system on a usb key can help you

    Hi @Phoenix-1921,.

    Welcome to the HP Forums! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    Thank you for posting. I read your post and I understand that when you create the recovery media, it stopped and gave you the message of the one copy can be made. I wanted to help with that.

    Due to licensing restrictions, you can create one HP a computer recovery solution. This message appears when the recovery media has already been created. If you bought a previously used computer or store but the computer was already open, then recovery media has probably been created before you bought the computer and this message is normal. If the computer is less than a few years, then you will probably be able to get a HP recovery solution. There might be a fee according to the status of the security of the computer, the country / region the computer was purchased, and the condition that generated the message. For more information, see looking for USB HP recovery disc or HP recovery discs?

    Let me know if you need more assistance.

    Kind regards

  • Problem creating virtual serial port (perl)

    I am trying to add virtual serial ports using vi perl. I don't get complaints about the creation of the device specification or specifications of the virtual machine, but for ReconfigVM() I get this error.

    I have attached a better list layout of the dumpster and snip code, if the following is too hard to read.

    Thank you

    -David

    Error:

    SOAP fault:

    Error string: invalid configuration for the device '0'.

    Lack of details: InvalidDeviceSpec = HASH (0xb625118)

    Dump:

    $VAR1 = bless ({}

    'fileOperation' = & gt; ({bless him

    "val" = & gt; 'create '.

    (}, 'VirtualDeviceConfigSpecFileOperation'),

    'operation' = & gt; ({bless him

    "val" = & gt; 'Add '.

    (}, 'VirtualDeviceConfigSpecOperation'),

    'device' = & gt; ({bless him

    'yieldOnPoll' = & gt; 1,

    "connectables" = & gt; ({bless him

    'allowGuestControl' = & gt; 1,

    'connected' = & gt; 0,

    'startConnected' = & gt; 1

    (}, "VirtualDeviceConnectInfo").

    "backup" = & gt; ({bless him

    'noRxLoss' = & gt; 1,

    'end point' = & gt; ({bless him

    "val" = & gt; 'server '.

    (}, 'VirtualSerialPortEndPoint'),

    "pipeName" = & gt; ({bless him

    "pipeName" = & gt; "/ tmp/Test-Serial1".

    (}, "VirtualDevicePipeBackingInfo")

    'VirtualSerialPortPipeBackingInfo'),

    'unitNumber' = & gt; 1,

    "deviceInfo" = & gt; ({bless him

    'Summary' = & gt; "/ Tmp/Test - pipes Serial1",

    'label' = & gt; "Serial Port 1"

    (}, "Description");

    'controllerKey' = & gt; 400,

    'key' = & gt; -1

    (}, "VirtualSerialPort")

    (}, "VirtualDeviceConfigSpec");

    Code:

    My $vdSpecOp = VirtualDeviceConfigSpecOperation - & gt; new ('add');

    If ($pipe & & $pipe - & gt; key) {}

    $controllerKey = $pipe - & gt; key;

    } else {}

    $controllerKey = 400; key # to Virtual Serial Port

    }

    If ($pipe & & $pipe - & gt; unitNumber) {}

    $unitNumber = $pipe - & gt; unitNumber + 1;

    } else {}

    $unitNumber = 1;

    }

    My $endPoint = VirtualSerialPortEndPoint - & gt; new ('server');

    My $vdpName = VirtualDevicePipeBackingInfo - & gt; new (pipeName = & gt; $pipeName);

    My $backingInfo = VirtualSerialPortPipeBackingInfo - & gt; (new)

    pipeName = & gt; $vdpName,

    endpoint = & gt; $endPoint,

    noRxLoss = & gt; 1

    );

    My $connectable = VirtualDeviceConnectInfo - & gt; (new)

    allowGuestControl = & gt; 1,

    connected = & gt; 0,

    startConnected = & gt; 1

    );

    My $devInfo = Description - & gt; (new)

    Label = & gt; "Serial Port $pipeNum."

    Summary = & gt; "Tube $pipeName.

    );

    $pipe = VirtualSerialPort - & gt; (new)

    yieldOnPoll = & gt; 1,

    connectable = & gt; $connectable.

    backup = & gt; $backingInfo,

    unitNumber = & gt; $unitNumber,

    deviceInfo = & gt; $devInfo,

    controllerKey = & gt; $controllerKey,

    key = & gt; -1

    );

    My $fileOp = VirtualDeviceConfigSpecFileOperation - & gt; News ($specFileOp);

    My $pipeSpec = VirtualDeviceConfigSpec - & gt; (new)

    operation = & gt; $vdSpecOp,

    fileOperation = & gt; $fileOp,

    device = & gt; $pipe

    );

    My @specList = ($pipeSpec);

    My $vmSpec = VirtualMachineConfigSpec - & gt; New (deviceChange = & gt; \@specList);

    EVAL {$vm - & gt; ReconfigVM (spec = & gt; $vmSpec)};

    Hi David,

    The error is because you don't have to specify the 'fileOperation' in the VirtualDeviceConfigSpec to add serial ports. The virtual machine correctly, reconfigure if you remove the following line:

    > fileOperation = > $fileOp,

    In addition, properties "pipeName" and "end point" of "VirtualSerialPortPipeBackingInfo" are strings. Thus, instead of

    > my $endPoint = VirtualSerialPortEndPoint-> new ('server');

    > my $vdpName = VirtualDevicePipeBackingInfo-> new (pipeName = > $pipeName);

    You simply do:

    > my $endPoint = "server."

    > my $vdpName = $pipeName;

    Hope the above helps you to resolve the error.

    Neha

  • virtual serial port? Vista 64-bit, usb, palm 755 p verizon dongle

    I have a new Vista 64 bit operating system and I'm having problems that everyone else is still.  Can't hotsync using the cable.  I bought the dongle bluetooth (Kensington) that many have said works.  My phone recognizes the PC.  My instructions on the phone that warm using bluetooth synchronization tells me to set up a virtual serial port.  The instructions are not very clear.  This is where it falls apart for me.  Can someone explain how to configure this virtual serial port?  Thank you.

    Well, I'm pleased to announce a successful solution.  On the recommendation of some other son that I left and piece and ioGear GBU321 Bluetooth USB key and Setup was a snap and it works (although SLOOOWLY compared to a connection cable, a while and plug your treo during your first sync).

    To setup you do the following (and this can also work for your Kensington):

    • Insert the driver CD
    • Insert the dongle when asked.
    • Install the drivers
    • Pair your device.  Basically, go to the configuration Bluetooth on the Palm screen and select "Trusted Devices".  You will find the bluetooth adapter, select it, and then the Palm or PC will provide or ask a pairing code.  The instructions will guide you through, but basically, you'll want to make sure that the same numbers are registered on both screens (this prevents you from accidentally pairing with some random near the computer)
    • This will actually set up your virtual port for you.
    • You can go to the hotsync Manager and click on "serial" and select the port created in the pairing process.
    • If you don't know which port has been created "Control Panels" and select "Phone and Modem" (assuming that you are in "Classic view").
    • Click on the modem tag and you will see something like 'Standard Modem over Bluetooth link' and next to that it will be the assigned port.

    I hope this helps.  I know that I was relieved not to have to trash my Palm or my PC (although when the Pre or iPhone with a physical keyboard comes out all bets are open)


    Message is about: Treo 755 p (Verizon)

  • How to access a host USB Virtual Serial Port from a VM Application?

    I have a Linux VM running under VMware Player 5.0.2 on a Linux host machine.   I have a development system running on the computer, virtual trying to download the code on an external device connected via a virtual serial port USB host (ttyACM0).   Anyone doing programming Arduino device will be familiar with my software/hardware config.  Dev VM system does not directly hear the ttyACM0 port I need to establish some sort of connection bridge between "ttyACM0" host port and the port of VM-configured "ttySx"?   Someone did something like this with a VM Player?

    FYI, I found the answer to my own question in an old post on a similar topic. Here's a response provided by the user 'Worker' in the former post office that was the solution to my problem.  I followed its general approach and mounted my own virtual *.vmx machine configuration file to change the serial port set of ' / dev/ttyS1 "to" / dev/ttyACM0 ' I can now download code on my device directly from the Arduino IDE running on the guest VM system.

    *************************************************************************************************************************************************************************************

    9 re: USB serial adapter - / dev/ttyUSB0 serial not a device?

    Worker (1 positions since November 23, 2010) November 23, 2010 12:56 am (in response to AnthonySowden)

    A bit of an old thread here, but I wanted to say that I was able to do exactly this yesterday using VMware Server 2.

    It wasn't easy, but I managed to hack in there.  I guess that this trick works also on VM WS but I have not yet tested.

    Here are the steps:

    Start your VM turned off.

    Add a serial port of your virtual machine through the normal interface. -J' I just let it use/dev/ttyS0.

    Go to your virtual machine folder and edit the .vmx config file.

    Find the line:

    Serial0.filename = ' / dev/ttyS0 ".

    Replace:

    Serial0.filename = "/ dev/ttyUSB0 '.

    and off you go.  The guest operating system sees it as a real physical serial port and is fortunately out my system through series console!

    Hope that helps other people.

    ************************************************************************************************************************************************************************************

  • virtual serial port

    I have a portable satellite wih only USB ports, now I have a GPS18USB but the Route66 programm wil only work with a gps series. I have now that it is possible to create a virtual serial port that can help me and tell me how
    email please at [email protected]

    Hello Hans,.

    I had searched the internet on installation of a virtual COM port, but I only find solutions based manufacturer. So I think that the driver or the software that generates the virtual COM port is based on the product that you (in your case, the gps system).

    The manufacuring company request a solution!

    But if they don't have a solution, I found a link on the internet that might help you! But if you want to test I will assume no responsibility for the consequences such as loss of data after a system crash.

    http://www.ftdichip.com/FTWinDriver.htm

    Good luck!

    Sam

  • You need to set the drive letter to the USB Ports front before any device has been inserted - that won't change when the device is connected. I have Windows XP Professional with Visual Studio 6 installed

    You need to set the drive letter to the USB Ports front before any device has been inserted - that won't change when the device is connected. I have Windows XP Professional with Visual Studio 6 installed. Thanks for your help

    diana73,

    First of all, make sure that you're connected Administrators account to do.

    How to change a drive letter to change an existing drive letter on a drive, on a partition, or a volume, follow these steps:

    1. Sign in as an administrator or as a member of the Administrators group.
    2. Click Start , click run and type compmgmt.msc .
    3. In the left pane, and then click disk management .
    4. Right click on the drive, the partition, the logical drive or volume that you want to assign a drive letter to and then click change drive letter and paths .
    5. Click change .
    6. Click assign the following drive letter if it is not already selected, click the drive letter that you want to use, and then click OK .
    7. Click Yes when you are prompted to confirm the drive letter change.

    The letter of the drive, partition, or volume that you specified is changed, and the new drive letter is displayed in the appropriate drive, partition, or volume in the disk management tool.

    Good luck! Please rate me upward if you find my post helpful. Thank you!

  • The creation of a virtual serial Port for Windows 7 hot Synch an old Palm Treo 700 p with Palm Desktop by Bluetooth

    I am trying to synch (HotSync) an old Palm Treo 700 p with Windows 7 by Bluetooth and the Palm Treo 700 p tells me that I need to create a virtual serial port on the Bluetooth on my PC to synchronize.  I can't understand how to create this port in Windows 7.   Can someone help me?

    Try this link to TechNet for this solution.

    https://social.technet.Microsoft.com/search/en-us?query=Windows%207%20create%20A%20Virtual%20Serial%20Port&AC=5

  • Limited virtual serial ports

    Hello

    Is it possible to add more than 4 virtual serial ports to VM?

    P.S. 4 virtual serial ports works only with the EFI firmware. With BIOS firmware only works under MS Windows. Is this normal?

    Hello

    The maximum is four - http://www.vmware.com/pdf/vsphere5/r50/vsphere-50-configuration-maximums.pdf

  • Standard Enhanced PCI to USB Host Controller: a driver (service) for this device has been disabled. Another driver can provide this functionality. (Code 32)

    How to solve: ' Enhanced Standard PCI to USB Host Controller: a driver (service) for this device has been disabled. "  Another driver can provide this functionality. (Code 32). »

    I hv tried to uninstall, shutdown, then reinstall and also put to day, but all to no avail.

    Just to ensure follow-up on the post of joel S can you check the following registry key, which relates to the USB:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ (36FC9E60-C465-11CF-8056-444553540000)

    Is there a 'name' UpperFilters and LowerFiltersin the registry for this key, in the right window?

    If so, what is 'Data' for these names?

  • the Windows 7 usb Installer may not work on the usb port 3

    Windows 7 install usb does not work on the usb port 3 with 32 GB usb 3 keys, says he needs a cd/dvd driver?

    but there is no cd drive in this machine.
    Works very well with an old USB 2 on usb 2 & usb ports 3 in the same machine.
    But no usb 3 key into a usb port 3?
    any ideas?

    Thanks anyway JW stuart.

    I managed to find a way to do it, I needed to set the usb drivers 3 unzipped on a 2nd USB on usb port 2 to use when the Setup program has been started and lost the USB 3.
    the ol F6 trick always works with win 7 and is more flexible, now that it allows pilots more than just raid.
  • A driver (service) for this device has been disabled. Another driver can provide this functionality. (Code 32)

    My computer has stopped recognizing all external hard drives.

    He returns constantly with a 32 error code, saying that the disc has been disabled due to problems. I uninstalled and reinstalled two usb ports, I tried ASUS live update but it was a no go as well. I also tried to remove the uppoerfilters and the lowerfilters, but unfortunately, lowerfilters does not exist on my computer.  I'm completely lost, and I don't know if anything else will not work.
    Im not sure of the version of windows on my computer, I use an ASUS zenbook if that helps.

    Hello

    1. what operating system is installed on the computer?

    2 has there been any changes made on the computer before the show?

    3. when exactly you get the error message?

    To determine which version of the Windows operating system is installed, see:

    What version of the operating system Windows am I running?

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Method 1:

    Check the link and try to run the Microsoft Fix it:

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2:

    I suggest you to disable and re-enable the USB controllers:

    a. click Startand then click run.

    b. type devmgmt.msc, and then click OK. Device Manager opens.

    c. expand Bus USB controllers.
    Note: You need to scroll the list to find this point.

    d. right-click the first USB controller under USB Bus controllersand then click Uninstall to remove it.

    e. Repeat step 4 for each USB controller is listed under Bus USB controllers.

    Note: restart the computer. After the computer starts, Windows will automatically check for changes on the hardware and reinstall all USB controllers that you uninstalled.

  • Smart card reader does not correctly connect once the virtual machine is restored from sleep using the vmrum controls

    Smart card reader does not correctly connect once the virtual machine is restored from sleep using the vmrum controls

    Scenario is,

    1. smart card reader is connected to the VM with card inserted in

    2 initiate a prompt suspension of the VM toolbar

    3. now to resume the virtual machine by using vmrun command into the host machine

    WS t vmrun start xxx.vmx

    Now, the recovery of VM but the smart card reader that was previously connected does not work properly in VM that is to say, sometimes after CV chip card reader driver is uninstalling and a few other times, chip connected to the drive is not available on a virtual computer

    My requirement is after power, smart card reader can stay connected to the virtual computer with the already installed driver and the smart card.

    Kindly help with this problem.

    Host operating system: Victoire 2012 R2

    The VM OS: win 10 x 64

    Thank you!!

    Dear all,

    I had a work around for this problem. By adding "usb.autoConnect.device0 ="0xVID:0xPID"" this statement to the VMX file, solves this problem, that is, whenever the VM is wake-up by clicking on the link CV or using vmrun commands, it connects the unit in question automatically and it is charging correctly with his driver. Obtaining smart card detected after sleep\hibernate with no problems.

    VID & PID is respective ID of the device that can be seen in the properties of the Device Manager "Device Instance path".

    For more information about this, visit VMware KB: automatic connection of USB devices to the virtual machine power on

    ~ Surendra

  • the device has been disconnected or is not available

    I can detect the modem Huawei E173 usb and install following the instructions, but when I try to connect, watch the device has been disconnected or is not available.

    Help, please!

    Currently, my version of the MacBook has been OS X 1 10.11.4

    its MacBook Pro OS X 10.11.4

  • Lion broke Fusion - no boot device has been detected.

    Everything was wonderful until the Lion has eaten my Windows OS...

    I can start to Win 7 under Bootcamp without problem, but when I try to start windows 7 under the terms of the merger, I now get an error message that says no boot device has been found. Here is a screenshot. And Yes, I did uninstall/reinstall merger with the more recent version.

    Any help would be most appreciated.

    Thank you

    Brad

    This is a known issue because the installation of Mac OS X Lion modifies the partition table and all what you need to do is delete the Virtual Machine Boot Camp and add it to the back of the Virtual Machine library.

    Take a look at: VMware Fusion 3 support for Mac OS X Lion (10.7)

    • Boot Camp partitions is not accessible through Fusion after upgrade to Lion.

    To work around this problem, delete the virtual machine Boot Camp of the library and recreate it. For more information, see the virtual machine to Boot Camp fails to turn on with a disk (1003483) error.

Maybe you are looking for

  • HP Slate 7 broken charging Port

    If my son said his HP Slate would not charge.  Everything by looking at a piece fell to the port of loading.  I checked with a local repair and they wanted to charge me $134.00 to fix, I do not.  Someone at - it any other suggestions?

  • HP pavilion sleekbook 14-b015d: HP pavilion sleekbook 14-b015dx replacement hard drive

    For about a week ago thehard disk in my laptop did not, I did all the cheques I have and the hard drive is broken so I need to know where I can buy a HDD replacement to the laptop if you can please give me a link to where you found a replacement!

  • Is it possible to have mSATA storage via PCI - e. ??

    Hai guys. I was wandering if I could place mSATA storage to my laptop but with PCI - E interface cuz my HP envy 6 1112-tx use SSD PCI - E (128 GB) n I want to upgrade. The problem is THAT SSD PCI-E is more expensive than storage mSATA. I just found o

  • What program to use to take the video of your screen? AND: How to convert .swf in .mp4?

    What program (free) can I use on my HP laptop (running on Windows 7) to take video of my screen? I used Jing to capture video, but it registers as a .swf file. I have not anything that can play a .swf. I tried Zamzar, but he's not convert .swf files.

  • Cisco IOS IPS in router 2921/k9

    Hi all I have a router from Cisco 2921 box database (error C2921/K9) series with BAse IP IOS (IOS SL-29-IPB-K9) image. I want to activate the function of IOS IPS level on this router now. Based on the Cisco Document, I found that I need to purchase a