Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Receive from TCP send to COM2

C# Receive from TCP send to COM2

Scheduled Pinned Locked Moved C#
csharpsysadminquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dockwomblejr
    wrote on last edited by
    #1

    I have a Software Program from a MICROS Server that can send via TCP or Serial Port. I have another application on another server that sends and receives data from the MICROS Server through a physical null modem cable on Serial port COM2. I am virtualizing the MICROS Server and that does away with the Serial Port communication. I can't change the Server that receives the data from a Serial Port. So, does anyone have a solution to send from the MICROS Server through TCP to the second server and be able to pass that down to COM2 and be able to have COM2 respond back through the TCP port back to the MICROS Server without having a physical cable? Any code support would be greatly appreciated.

    J 1 Reply Last reply
    0
    • D dockwomblejr

      I have a Software Program from a MICROS Server that can send via TCP or Serial Port. I have another application on another server that sends and receives data from the MICROS Server through a physical null modem cable on Serial port COM2. I am virtualizing the MICROS Server and that does away with the Serial Port communication. I can't change the Server that receives the data from a Serial Port. So, does anyone have a solution to send from the MICROS Server through TCP to the second server and be able to pass that down to COM2 and be able to have COM2 respond back through the TCP port back to the MICROS Server without having a physical cable? Any code support would be greatly appreciated.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      Why are your attempting to create your API at the TCP level rather than just create a Send/Receive API and let the API internals deal with the communication?

      D 1 Reply Last reply
      0
      • J jschell

        Why are your attempting to create your API at the TCP level rather than just create a Send/Receive API and let the API internals deal with the communication?

        D Offline
        D Offline
        dockwomblejr
        wrote on last edited by
        #3

        I might have not explained it correctly. I have been asked to Virtualize a Microsoft Server which runs an application Server Software called MICROS. MICROS is used as the back end for POS Systems. When MICROS gets a transaction, it can send that transaction out through TCP or Serial Port. There is another Server that is connected to the MICROS Server via null modem cable. Since we are virtualizing the MICROS Server on a Windows 2008 R2 Server, we can not get the Serial Port to pass through from the Virtual Host because Microsoft no longer supports passing through Serial Ports from the Virtual Host to the Virtual Session. I am looking to create a C# Application to take the place of communicating on both sides because the null modem cable can not be used. The Server that receives data and sends data back to the MICROS Server is an old outdated piece of software that I can't change right now because there is no newer version. It is a DOS Application. So, I am looking for a way to pass Serial to Serial through Named Pipes, Serial to TCP, or any other method. If the receiving Server was able to send and receive via TCP then this wouldn't be an issue. My client is pushing me to make it happen. Thanks! :)

        M 1 Reply Last reply
        0
        • D dockwomblejr

          I might have not explained it correctly. I have been asked to Virtualize a Microsoft Server which runs an application Server Software called MICROS. MICROS is used as the back end for POS Systems. When MICROS gets a transaction, it can send that transaction out through TCP or Serial Port. There is another Server that is connected to the MICROS Server via null modem cable. Since we are virtualizing the MICROS Server on a Windows 2008 R2 Server, we can not get the Serial Port to pass through from the Virtual Host because Microsoft no longer supports passing through Serial Ports from the Virtual Host to the Virtual Session. I am looking to create a C# Application to take the place of communicating on both sides because the null modem cable can not be used. The Server that receives data and sends data back to the MICROS Server is an old outdated piece of software that I can't change right now because there is no newer version. It is a DOS Application. So, I am looking for a way to pass Serial to Serial through Named Pipes, Serial to TCP, or any other method. If the receiving Server was able to send and receive via TCP then this wouldn't be an issue. My client is pushing me to make it happen. Thanks! :)

          M Offline
          M Offline
          micke andersson
          wrote on last edited by
          #4

          Unless I'm mistaken you are looking for this: http://www.eterlogic.com/Products.VSPE.html[^] I used the free variant and it works perfectly fine. You can create any number of serial ports and connect them virtually on the same machine or remotely over tcp/ip. You can also create gateways and bridges. Very neat. I guess you have buy it, the server variant is not free.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups