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. Serial over Ethernet

Serial over Ethernet

Scheduled Pinned Locked Moved C#
csharpcomtutorial
4 Posts 4 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.
  • P Offline
    P Offline
    pierrecor
    wrote on last edited by
    #1

    We have a remote electricity meter device with a serial to Ethernet converter; I want to catch the data from this meter on a PC using C#. I have a fairly good understanding of the COM port and how to parse a data stream (have done my bit in VB6) in C#, but I have no way how to do it from Ethernet. I do not want to send any data back - it is read only. Any guidance would be welcome. Thanks

    "the confused are confused beyond confusion" - Pik Botha (1990)

    L J T 3 Replies Last reply
    0
    • P pierrecor

      We have a remote electricity meter device with a serial to Ethernet converter; I want to catch the data from this meter on a PC using C#. I have a fairly good understanding of the COM port and how to parse a data stream (have done my bit in VB6) in C#, but I have no way how to do it from Ethernet. I do not want to send any data back - it is read only. Any guidance would be welcome. Thanks

      "the confused are confused beyond confusion" - Pik Botha (1990)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try some of these links[^] for information on how to use sockets in C#. Assuming that you know the protocol to talk to this meter it should not be too difficult a problem.

      I must get a clever new signature for 2011.

      1 Reply Last reply
      0
      • P pierrecor

        We have a remote electricity meter device with a serial to Ethernet converter; I want to catch the data from this meter on a PC using C#. I have a fairly good understanding of the COM port and how to parse a data stream (have done my bit in VB6) in C#, but I have no way how to do it from Ethernet. I do not want to send any data back - it is read only. Any guidance would be welcome. Thanks

        "the confused are confused beyond confusion" - Pik Botha (1990)

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

        pierrecor wrote:

        We have a remote electricity meter device with a serial to Ethernet converter

        Several steps - first you need to refine exactly what "ethernet connector" means. That by itself doesn't tell you what functionality is available, how to access it nor anything at all about the protocol. Second presuming that it really means some sort of IP then you would need to learn about UDP and TCP (which ever is relevant) and the appropriate conventions in C# to access each.

        1 Reply Last reply
        0
        • P pierrecor

          We have a remote electricity meter device with a serial to Ethernet converter; I want to catch the data from this meter on a PC using C#. I have a fairly good understanding of the COM port and how to parse a data stream (have done my bit in VB6) in C#, but I have no way how to do it from Ethernet. I do not want to send any data back - it is read only. Any guidance would be welcome. Thanks

          "the confused are confused beyond confusion" - Pik Botha (1990)

          T Offline
          T Offline
          techtoniq
          wrote on last edited by
          #4

          Is it a Current Cost meter? If so, it's not an Ethernet connection, even though the socket on the meter is an RJ45. It's actually an RS232 serial connection through an RJ45 to USB cable, with a "serial to USB" driver needed on the PC. Then you talk to it like a normal COM port.

          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