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 9216483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:25:38+00:00 2026-06-18T02:25:38+00:00

I have written a simple c# app having functionality of serial communication. I am

  • 0

I have written a simple c# app having functionality of serial
communication. I am using it to read and write to a device. The device
recognizes string commands. I am successfuly able to read from device
using this app. But peoblem is in writing(sending) commands to device.
I am simply using

if (serialPort.IsOpen == true)
{
serialPort.Write("Command1");
}

But my device does not respondes to it.

To check, I tried sending same command using hyperterminal to my
device and my device recognizes it and works perfectly.

Can anybody guide me whats the accurate way to write or what
needs to be make sure for writing to serial port in c#. Is this encoding issue…
(Serial Read using this same app is working pretty fine !!)
Thank you for your time.

Moreover, there is no exception or error and in debug mode
this line executes.

  • 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-18T02:25:39+00:00Added an answer on June 18, 2026 at 2:25 am

    This is a very common problem and invariably caused by leaving the Handshake property set to None. Serial port devices almost always pay attention to the handshake signals and ignore anything you send if the DTR signal isn’t turned on. Which indicates that you are powered up and the data it receives isn’t noise. Setting DtrEnable to true will be required, that’s what HyperTerminal does as well.

    And it won’t send anything back when it thinks you are not ready to receive anything because the RTS signal isn’t turned on. Setting RtsEnable to true will be required, that’s what HyperTerminal does as well. Or just set the Handshake property correctly, Handshake.RequestToSend is the common requirement.

    If you still have trouble then you can use SysInternals’ PortMon to compare the serial port driver commands your program issues against the ones issued by HyperTerminal.

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

Sidebar

Related Questions

I have written a simple erlang app using gen_server. When starting it with application:start(myapp),
I have written a simple C# app using SharpSVN to query the status of
i have some WinForms app (Framework to develop some simple apps), written in C#.
i have some WinForms app (Framework to develop some simple apps), written in C#.
I have written a simple helloworld app with a WebView which has a link
I have been using Jasmine to write BDD tests for a web app. I
I have written a relatively simple Java App Engine application which I would like
I have written a simple database driven app in C# which uses a 2
I have a simple console app written in C#. I want to be able
I have written a simple Cocoa app. In Activity Monitor, it is shown to

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.