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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:29:58+00:00 2026-06-16T07:29:58+00:00

I have a serial port app that read weighing machine. public void Read() {

  • 0

I have a serial port app that read weighing machine.

    public void Read()
    {
        while (Puerto.BytesToRead > 0)
        {
            try
            {
                string inputData = Puerto.ReadExisting();
                dataReceived = inputData;
            }
            catch (TimeoutException) { }
        }
    }

the return string is like this

Data returned by weighing machine

It has other extrange chars in it, how can i do to parse or get a clean data from it? all I need is 0.52lb

  • 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-16T07:30:00+00:00Added an answer on June 16, 2026 at 7:30 am

    I have no idea what weighing machine is it and what the serial port specs on it but, if it is black box to you too then, check the following:
    – check if you have a technical spec that explains what comes out of RS232 port
    – do several (10?) samples with one sample weight and see if the number of bytes are delivered each time
    – if you see the number of bytes being constant (barring discrepancy in the 0.52lb text changing to 0.5lb once in a while), it is likely that garbage following the weight is additional binary data.
    – if not, and you see the weight (text) with exact offset each time, you just can scrape the output

    this is complete reverse engineering, I suggest going after technical spec and doing more insightful data handling though.

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

Sidebar

Related Questions

I have simple serial port program that is supposed to read the serial port
I have a WPF test app for evaluating event-based serial port communication (vs. polling
I have to write a C++ application that reads from the serial port byte
I have a file handle to a serial (COM) port. I need to read
Possible Duplicate: Faking an RS232 Serial Port I have an application that reads data
Iam currently working on a project where i have to read serial port continuously.
I have an ugly piece of Serial Port code which is very unstable. void
I have software that opens a serial port using C# and it does good
I've got a Qt app (Qt 4.8.1) that's doing some Windows serial port tasks.
I have to share serial port read function with two other functions, basically first

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.