none
Serial Port Communication RRS feed

  • Question

  • Hi,

    I am having a Win-7 PC. In that i install VM Ware Player (Linux OS). I need to write the data in serial port and how to get those data in VM-Ware. need help. pls. urgent....

    Monday, November 10, 2014 11:49 AM

Answers

  • Hello vijay,

    >> I need to write the data in serial port

    It seems that you want to how to implement serial port communication in your windows 7 PC, then the SerialPort class is the choice:

    http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx

    This class provides synchronous and event-driven I/O, access to pin and break states, and access to serial driver properties. That link also provides an example.

    >>how to get those data in VM-Ware

    For development regarding Linux OS, this is beyond the scope of our support for this forum, I suggest that you could ask it at the Linux OS forum as:

    http://www.linuxforums.org/

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 11, 2014 3:22 AM
    Moderator
  • Not sure, but I think you want to communicate from the Windows Host with a application running in the VM which connects to a serial port.

    You can configure the VM to create a named pipe for a serial port of the VM (See https://www.vmware.com/support/ws3/doc/ws32_devices3.html#1023803). In your .Net application on the host you can connect then to the named pipe using the NamedPipeClientStream class.

    Hopes this will help you getting started. I have never done this myself.

    Tuesday, November 11, 2014 9:14 AM

All replies

  • Hello vijay,

    >> I need to write the data in serial port

    It seems that you want to how to implement serial port communication in your windows 7 PC, then the SerialPort class is the choice:

    http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx

    This class provides synchronous and event-driven I/O, access to pin and break states, and access to serial driver properties. That link also provides an example.

    >>how to get those data in VM-Ware

    For development regarding Linux OS, this is beyond the scope of our support for this forum, I suggest that you could ask it at the Linux OS forum as:

    http://www.linuxforums.org/

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 11, 2014 3:22 AM
    Moderator
  • Not sure, but I think you want to communicate from the Windows Host with a application running in the VM which connects to a serial port.

    You can configure the VM to create a named pipe for a serial port of the VM (See https://www.vmware.com/support/ws3/doc/ws32_devices3.html#1023803). In your .Net application on the host you can connect then to the named pipe using the NamedPipeClientStream class.

    Hopes this will help you getting started. I have never done this myself.

    Tuesday, November 11, 2014 9:14 AM