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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:36:42+00:00 2026-06-10T04:36:42+00:00

I spent a long time finding out the actual origin type of data sent

  • 0

I spent a long time finding out the actual origin type of data sent out from the serial port. Since I want byte by byte data, I cannot see he correct answer if I just use a char[] buffer to read!

  • 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-10T04:36:43+00:00Added an answer on June 10, 2026 at 4:36 am

    You just write bytes into the serial port. When reading them back on the receiving end just read into an unsigned char buffer. To correctly interpret the data, you need to know how it was structured when it was sent. This is usually specified by some kind of protocol so that you can detect the end of transmission (an example is Modbus protocol). Provided you know the structure of the packet of data you receive (as well as the endianness for interpreting multi-byte integers and floats for example) you should have no problems reinterpreting the data that you receive as a raw byte array. You question is a little unclear, but this is what I inferred that you are asking about.

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

Sidebar

Related Questions

I spent a long time learning how to customise WCF from the point of
It's been a very long time since I coded in C, and I've spent
I've just spent a long time trying to figure out why my Javascript for()
I have spent hours trying to work this out, and spent a long time
I've spent a long time trying to figure out this issue, I need a
I've spent a long time trying to work this out, but no success thus
I've spent a long time building stochastic simulations in Java. They work great, but
I'm new to Android programming. I spent a long time trying to look for
I've spent quite a long time Googling this and read various articles but I
I just spent a very long time debugging an issue in python, using the

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.