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

Tags: VMware

Similar Questions

  • 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)

  • 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

  • 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

  • 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 (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/

  • 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

  • Problem using the serial port with windows 7

    Hello

    I have a modem of SIM cards (used to update remote controller of the electronic gate) that connects to my computer via the serieal port (COM1).

    The modem comes with its own piece of software that worked fine on my old computer with windows 7 (I had a similar problem, but then I just need to update the driver).

    I now have a new computer and I am unable to connect using the modem (I think I'm using the latest drivers for the serial port).

    Is it possible that I need an older version? If so, how can I get a?

    My motherboard is a GIGABYTE H81M-D2V.

    Any ideas?

    Thank you

    AVI

    Hi Avi,

    Thank you for the update on the issue.

    The UART, or Universal Asynchronous Receiver / Transmitter, is a characteristic of your microcontroller useful to connect serial data (text, numbers, etc.) to your PC. The unit switches incoming parallel information (in the microcontroller/PC) to series data that can be sent over a communication line.

    According to the description you provided it seems that your modem isn't connecting with your Windows 7 computer, then I would contact Duetech Berès your modem manufacturer, so that they provide you with the steps to set it up.

    Get back to us after contacting them and please get back to us with your question was last updated.

    Kind regards.

  • I have a problem with the serial port driver.

    I have installed whs v1 on my server a few months ago, and it works fine.

    No, I bought and ups that requires an RS-232 connection and my computer does not have a serial port driver.

    This is the id of the hardware:

    PCI\VEN_8086 & DEV_2997 & SUBSYS_0CEE105B & REV_02

    Thank you very much for your help.

    Hi Murray,

    Please contact the Microsoft Community.

    I wish that post you your request in the forums - TechNet

    http://social.technet.Microsoft.com/forums/en-us/home?category=WindowsServer

    Let us know if you have other questions related to windows. We will be happy to help you.

  • Problem creating virtual disk MD3600i

    I add a MD3600i (with extension MD1200) to a Cluster of servers Windows 2012 new file.  I have connected and configured to the point table to create virtual disks.  When I try to create a disc, the 'Work' spinner appears, then disappears almost instantly.  The wizard never loads.

    -J' tried MDSM from versions of resource disc, 4, 5 and 6 - no change.

    -J' removed and added the table several times.

    -J' updated the firmware newest controller.

    -J' tried both In-Band and Out-of-Band management connections.

    -J' tried with two pools and groups.

    -Out-of-band management stations have been Windows 7 and 8.1

    When running create it a Wizard of the pool, I can create virtual disks even size at the end of the process, but I can't create the readers in the free space remaining (more than enough available for a player)...  I need to be able to create readers as needed, please help!

    I spoke with Dell Support, and the solution was to delete and re-create the host in MDSM.

  • Virtual serial port: no bytes to the serial port before you read visa

    Hi I want to use LabView for data acquisition in real time from my dc servo motors. I'm new to LabView, so I will try to do the same thing with virtual port. I am writing some data (a sinusoidal wave) to the virtual port and can read and display it on the chart. the writing part just works that we see in the hyper terminal. but he's not reading anything. the number of bytes to port is zero. I tried to put the number of bytes in visa read manually, but it does not work. I have attached my code below. any comment is appreciated. Thanks in advance

    This is just the basics of how communication works series. To do a reading without any instrument, you loopback (short) the transmission line to the receiving line. For a connector 9 pins, you short-circuit pins 2 and 3. If you have not done this, I do not understand where you thought you could do a reading of.

    In any case, if you have servos that are controllable of RS - 232, it isn't likely that the series is even close to what you do a closure won't tell you much more that the converter is functional. When you have a real instrument connected, you still need to debug settings com (baud, parity, handshake), type of cable (null-modem or directly through) and the actual orders that you send to the instrument and its answers.

  • Problem with the serial port and external DLL

    Hello

    I have a Platinum (innco systems CT 0500), which is connected via a USB-RS232 to PC Converter. I want to fight in LabVIEW.

    The software CD contains a DLL and a header file - I imported both in LabVIEW.

    But I am unable to get a connection via LabVIEW COM port. There is an error of the adage about function ConnectTurntable() return code 'could not open port - port address is unknown to the PC or port is used by another program.

    The demonstration of the delivered CD software works - the connection to the COM port is working with him, so there must be a mistake in my LabVIEW Code.

    Thanks in advance


  • Having problem of PCI and PCI communication serial port

    Hello guys,.

    I have a problem with my serial port PCI and PCI communication, I use Windows 7 64 bit found no solution please help about this and I am very happy to thank

    B.Regards,

    Hussain SF

    Hi Hussain SF,

    Thanks for posting your query on the Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You get no matter what error code/message when connecting to the serial port PCI?
    2. What is the brand and model of the computer/motherboard?
    3. What card has been inserted in the PCI slot?

    PCI stands for Peripheral Component Interconnect. It's an industry standard bus to connect devices to a computer.

    A serial port is a serial communication physical through transfers of information inside or outside a bit at a time. The term "serial port" usually identifies hardware more or less conforms to the RS-232 standard, designed to interface with a modem or a similar communication device. The serial port used to be widely used to connect to a variety of devices external and is essentially a two-way communication port. There are still devices using a serial port connection. These are often marked as RS232 and would include devices such as TELEVISION receiver cable boxes.

    The PCI of Simple Communications controller is a generic label given by Windows for PCI cards installed in a PC when the drivers for the device are not installed.

    You probably received this error because you have not installed the driver for your PCI device.

    If your computer came with a motherboard driver disc, put the CD in and install the chipset drivers from Device Manager browse the CD. This would update the drivers for those devices.

    Steps to follow:

    a. right click on the entry in the Device Manager and select Properties.

    b. in the driver tab updated some drivers.

    c. Select Browse my computer for driver software.

    d. click on browse and look for DVD player option.

    e. follow the instructions on the screen and restart the computer after installing the drivers.

    If you don't have the motherboard drivers CD then please download and install the drivers for the chipset of the manufacturer's Web site and see if it helps.

    Get back to us with all the information and results of proposed suggestion. We will be happy to help you.

    Kind regards

  • VISA from read/write to serial port - unable to implements several orders of writing!

    Hello

    I'm new to Labview and I'm reading from a pressure through a virtual serial port USB sensor. I am able to read the port when you use HyperTerminal

    The code sequence that I should write to the port in order to obtain measurements using hyperterminal is the following:

    ' *' (2A hex)-online start and the responses of the port by asking 'Command', I should then enter

    FF-online measurement select the port must ask the 'mode', so I should enter

    0 has-online measurement of high resolution mode and it was then that I should start receiving action.

    The port is always answer by errors when I write the start command or the FF one. I tried to establish a sequence stacked to write the three commands then read the port, I added some delay between the three of them, but it does not work.

    Now I made really simple and removed the stacked sequence and just put the three commands one after the other and try to remedy not to not on the code.

    I'm really stuck at this point, could someone help me please? I read a lot fo articles on the forum, but I can't solve this problem

    Thank you

    I have attached my VI and the SCP1000 documentation (I can provide other versions of my demo if necessary)

    The reason for your problem is a frequent misunderstanding even among experienced programmers. Take a look at this thread

    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=417750

    In your data sheet, then they return codes like 0xFF or 0x0A so has a single byte of average value. Then you in your-active code constant writing FF\n is so this equal to values in format hexadecimal 46460A and your instrument do not understand. But it will include FF0A. In order to solve your problem, you would type in \FF\n in your '-' chain helped codes. Remember too, if you type in \32 it will be converted to character 2 this being 0 x 32 50 decimals and code ASCII 50 is equal 2

    Take the time and change the display format of string between '-' display and Hex display and you will see the difference

    Hope this helps

  • Virtual Com ports never get reused after UN-installing of software that use

    I have install and uninstall the bluetooth drivers (Microsoft, broadcom and bluesoliel) in order to obtain different devices to work. When I started this exercise, used by bluetooth comm ports were low numbers (com 4 and 5 for example). If I uninstall the bluetooth drivers, then reinstall the or some other driver, the com port numbers used become com 6 and com 7).  Old ports com can never get reused and there seems to be any place where I can find them (and I hope that free them from their State of limbo).

    Now that I've got things nearby work properly, I get to com 25.

    This also happens with the bluetooth drivers not as my GPS through a series of USB converter. or my palm for synchronization software.

    That is to say the problem is not just with bluetooth. It's with any program that uses a serial port.

    I'm afraid I might run out of com ports, and perhaps these unused com ports consume resources (are they built during startup?)     Hmmmm... Looks like I ran out of space... Al

    Hi again
    Well, I made a variation on your theme
    1 turned on or plugged in devices that could use a virtual serial port - 3 of them
    com 26 2 with one of them, I have attributed it to 25, then 24, etc. all the way up to 3 comm
    That unlocks (disabled the use in indication) for all of the unused ports.

    reassigned the 2 remaining ports to com 4 and 5

    Thanks for the help
    Al

Maybe you are looking for