Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8661749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:34:21+00:00 2026-06-12T16:34:21+00:00

How do I go about sending and receiving data from a USB comm port

  • 0

How do I go about sending and receiving data from a USB comm port using C#?

The requirements for communication are:

  • 115.2 kBaud
  • 8-bit character size
  • 1 stop bit
  • No parity
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:34:23+00:00Added an answer on June 12, 2026 at 4:34 pm

    A USB comm port appears to the system the same as an onboard port. Use the SerialPort class.

        using (var sp = new System.IO.Ports.SerialPort("COM11", 115200, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One))
        {
            sp.Open();
    
            sp.WriteLine("Hello!");
    
            var readData = sp.ReadLine();
            Console.WriteLine(readData);
        }
    

    You can find the available ports by calling SerialPort.GetPortNames. If that doesn’t appeal to you, you can also access the port as a file, but that is much more complex and there are few reasons to do so. See the documentation for CreateFile for more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just thinking about possibility to realize data sending/receiving between 2 or more
Ok - this is in continuation from my earlier question about sending an email
trying to implement a multiplayer. Using the sample from Game Center - Sending and
I want to learn more about sending and receiving packets with Obj C. I
I'm using epoll to get notifications about incoming data. It's not hard because all
I was wandering how you would go about sending a form to different pages.
We are looking at sending some email notifications to about 1100 employees at a
I've come across a dumbfounding issue with sending headers in PHP. I've spent about
About 10 years ago, I was using a computer language called INFO on an
I'm building a rails app that takes information about products from an XML datafeed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.