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. Visual Basic
  4. COM port communication..

COM port communication..

Scheduled Pinned Locked Moved Visual Basic
csharpcomquestion
5 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.
  • S Offline
    S Offline
    Subjugate
    wrote on last edited by
    #1

    I need to be able to write information, just simple lines of text, to the COM port on a normal pc and then receive back a response from that same COM port. I need to do this from vb.net 2005. Anyone have experience doing tt?

    R D 2 Replies Last reply
    0
    • S Subjugate

      I need to be able to write information, just simple lines of text, to the COM port on a normal pc and then receive back a response from that same COM port. I need to do this from vb.net 2005. Anyone have experience doing tt?

      R Offline
      R Offline
      Rajesh Anuhya
      wrote on last edited by
      #2

      PC comports are full duplex, u can send,receive data from same comport at-a-time. 2 pin - Rx - Receive 3 Pin - Tx - Send Use Serialport control in your program to invoke the PC Comports

      Rajesh B --> A Poor Workman Blames His Tools <--

      S 1 Reply Last reply
      0
      • R Rajesh Anuhya

        PC comports are full duplex, u can send,receive data from same comport at-a-time. 2 pin - Rx - Receive 3 Pin - Tx - Send Use Serialport control in your program to invoke the PC Comports

        Rajesh B --> A Poor Workman Blames His Tools <--

        S Offline
        S Offline
        Subjugate
        wrote on last edited by
        #3

        Ya.. but i am not familiar with the control and i search the internet for information but dun really understand how it works. Now wat i am using a source code i found on the web but seen very complication and whenever i need to use a value i do not know which part of the code generate the value.

        R 1 Reply Last reply
        0
        • S Subjugate

          Ya.. but i am not familiar with the control and i search the internet for information but dun really understand how it works. Now wat i am using a source code i found on the web but seen very complication and whenever i need to use a value i do not know which part of the code generate the value.

          R Offline
          R Offline
          Rajesh Anuhya
          wrote on last edited by
          #4

          ya.., using serial port control is very easy, in the net u can get code samples for the comports using windows APIs, these are very good. choose the controls as per your requirement, using APIs code u can get very fast communication

          Rajesh B --> A Poor Workman Blames His Tools <--

          1 Reply Last reply
          0
          • S Subjugate

            I need to be able to write information, just simple lines of text, to the COM port on a normal pc and then receive back a response from that same COM port. I need to do this from vb.net 2005. Anyone have experience doing tt?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            You're looking for the SerialPort class, here[^].

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            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