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. hi, how can i send data to USB port in c#.net 2003 framework is 1.1

hi, how can i send data to USB port in c#.net 2003 framework is 1.1

Scheduled Pinned Locked Moved C#
csharpquestionjson
3 Posts 2 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
    premkamalg
    wrote on last edited by
    #1

    Hi ! I have to access USB port using C# .NET 2003 and framework is 1.1 to read/send data from device. i Know to access the namespace but using system.io.port but it works in net.2005 only how can i ? i don't used the "mscomm" also i want use the API's plz send sample code for that it's very usefulll for me Thanks

    N 1 Reply Last reply
    0
    • P premkamalg

      Hi ! I have to access USB port using C# .NET 2003 and framework is 1.1 to read/send data from device. i Know to access the namespace but using system.io.port but it works in net.2005 only how can i ? i don't used the "mscomm" also i want use the API's plz send sample code for that it's very usefulll for me Thanks

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello 1- Call CreateFile() and supply it with the name of the port 2- make a FileStream object and give the constructor the handle returned from the above call 3- Use the stream to read/write data from the port.

      Regards:rose:

      P 1 Reply Last reply
      0
      • N Nader Elshehabi

        Hello 1- Call CreateFile() and supply it with the name of the port 2- make a FileStream object and give the constructor the handle returned from the above call 3- Use the stream to read/write data from the port.

        Regards:rose:

        P Offline
        P Offline
        premkamalg
        wrote on last edited by
        #3

        Hi Thanks Iam new to using win32 API for serial communication. Plz help me I want to send one string("Hello") to COM port port is COM2 baud rate 9600 parity None Data bit 8 Stop bit 2 Now I want write program in C#.net 2003 and framework1.1 Plz give me a small program for this It’s more useful in my application Plz Thanks

        Hi, Thanks, if u think it's good. otherwise sorry.

        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