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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:47:04+00:00 2026-06-16T10:47:04+00:00

I have a USB to RS232 adapter and I was using it to get

  • 0

I have a USB to RS232 adapter and I was using it to get a long input (28 chars) from a barcode reader.
Everything works fine in my computer.

I installed my c# application on other computer that has RS232 Serial Port connected to its PCI-E and when I’m receiving the input from the barcode reader, it splits it into two parts!

How do I know that? Because I have an event handler for DataReceived on my c# application, and it’s being called 2 times, and each time I get a part of the input.

The RS232 PCI-E ports are manufacturer by Oxford Semiconductor Inc.

OS is Windows 7.

I’m assuming it’s a hardware issue and not a problem in my application.. Maybe some settings to change, a buffer size or something like that but I could’t find something like that.

Thanks in advanced!

  • 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-16T10:47:05+00:00Added an answer on June 16, 2026 at 10:47 am

    No, it is your application. You shouldn’t expect all of the data to be immediately available; you were getting lucky on the first machine. You need to call Read() until you get everything you expect.

    Differences in the UARTs, drivers, etc. can cause windows to raise that event multiple times, depending on timing and other factors.

    Something along these lines:

    char buf[28];
    int offset = 0;
    int nread;
    while (offset < buf.Length) {
        nread = comPort.Read(buf, offset, buf.Length - offset);
        offset += nread;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a USB barcode reader attached to my tablet ( running Android 2.2
I want to write an app that receive data from RS232(sometimes using usb connector)
I have a USB to one-wire adapter on my desk, I would like to
I have an USB device based on FTDI chip. Sometimes, its driver get stuck.
I have 3 usb devices (barcode scanner, same model) I want to do an
How do I access the USB port using pyserial? I have seen an example
What are the differences in serial port RS232 vs USB programming? I have the
I am trying to read data from a HID device. I have a USB
I have a USB camera pluged in my PC (using windows 7) and I'm
I do have a USB device which is using the WinUSB driver (winusb.sys) as

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.