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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:32:04+00:00 2026-06-13T02:32:04+00:00

Hi Currently I am working on Android that communicates with Healthcare device through bluetooth.

  • 0

Hi Currently I am working on Android that communicates with Healthcare device through bluetooth. The Healthcare device can send data packets like this format enter image description here

Now I want to know, how can I identify the LSB , Acces code, Header , Msb and Payload separately. and how can I retrieve the data from this packets. Really I am new for this kind of data packets development. I have googled, but I got theoretical solutions only. Also I want to know, whether I can use Datagrampacket or someother 3rd party API. Kindly someone suggest me some ideas and tutorial for this. Thanks in advance.

  • 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-13T02:32:05+00:00Added an answer on June 13, 2026 at 2:32 am

    Try to use the following method:

    (2475 bits? it maybe should be 2472 or 2480, or if header is 54 bits, here should be 2474 bits)
    // read bytes

    public byte[] readBytes(InputStream inputStream, int length)
            throws IOException {
        byte[] data = new byte[length];
        int len = inputStream.read(data);
        if (len != length) {
            throw new IOException("Read the end of stream.");
        }
        return data;
    }
    
    
    //Get Header data
    byte[] headerData = readBytes(inputStream, 9);
    
    // I think header data need to parse again, its structure should look like the following format:
    // | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
    // |  Version  | Type  | other values  |
    // You can parse them to use headerData
    
    
    // #######################################
    // write bytes
    public class ByteWriter {
        private final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    
        public void writeBytes(byte[] data) {
            try {
                outputStream.write(data);
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }
    
        public byte[] getBytes() {
            return outputStream.toByteArray();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on an android application which requires reading data from bluetooth
I am currently working on Android I have a xml which is like this:
I'm currently working on a application that would run on any device like: Windows
I am currently working on an app for Android that receives data from server.
I'm working on an Android app that will look like this (Photoshop mockup): (source:
I'm currently working on an app for the Android OS that displays some data.
To set the scene, I'm currently working on an XML adapter for Android that
I'm currently working on Mangler's Android implementation. I have a java class that looks
I'm currently working on an android application that uses a subclass of SimpleListAdapter to
Hey guys i am currently working on an android app that will allow me

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.