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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:33:30+00:00 2026-05-31T06:33:30+00:00

We are developing WinCE SerialPort Application on .net compact framework 3.5. In The serialPort

  • 0

We are developing WinCE SerialPort Application on .net compact framework 3.5.

In The serialPort Class we have DataReceived event, un fortunately it is firing only once.

Our serialport settings are below:

    _com = new SerialPort();
            _com.PortName = str_comport;
            _com.BaudRate = pBaudRate;
            _com.ReadTimeout = 1000 * 10 * 1;
            _com.WriteTimeout = 1000 * 10 * 1;
            _com.Handshake = Handshake.None;
            _com.ReceivedBytesThreshold = 1;
            _com.RtsEnable = true;
            _com.DtrEnable = true;
            _com.Parity = pParity;
            _com.DataBits = pDataBits;
            _com.StopBits = pStopBits;
            _com.DataReceived += new SerialDataReceivedEventHandler(this.Receive);
    _com.Open();

....

private void Receive(object sender, SerialDataReceivedEventArgs e) 
{ 
    _receivedString = _port.ReadExisting(); 
    _log.WriteFile("RX : " + _receivedString); 
}

We have tried opening port first and attaching data received Event also but of no use.

and the same code works fine on Windows XP/Windows 7 Machine.What could be the possible reason.

  • 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-05-31T06:33:32+00:00Added an answer on May 31, 2026 at 6:33 am

    We need to know more about what your expectation and the data coming in looks like. What does your Receive method look like?

    The ReceivedBytesThreshold can be thought of as a trigger point on the input buffer. When the buffer size goes past that, only in a forward direction, you get an event. In this case it means when the receive buffer size goes from 0 to 1 byte, you’ll get an event. You won’t get one from, say 200 to 201. You don’t get an event for every byte either.

    So to make this effective, when you receive the event, you need to read all data from the buffer, bringing its size back to zero and effectively “resetting” the event trigger.

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

Sidebar

Related Questions

Developing a network application, I have a Connection class that manages sending and receiving
I have never had any experience working with the compact framework or WinCE, however,
Developing a .NET WinForms application: how can I check if the window is in
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart
When developing a desktop application in .NET, is it possible to not require the
I am new in developing application for WinCE 5.0. I want to start from
Developing a multilingual application in VB.Net 2008, Im able to add resources to forms
Developing an MVC application, i now need to have test other browser versions. Installed
Developing ios app. I have an object class Product.h and .m respectively along with
I´m developing an ASP.NET MVC app that uses EF 4.1 Code First. I have

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.