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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:52:42+00:00 2026-06-02T19:52:42+00:00

I am trying to write an android app to read and write data from

  • 0

I am trying to write an android app to read and write data from android tablet to our embedded device. The tablet and embedded device are connected via usb to serial converter. Is it possible to read data from the embedded device into our android tablet? Any sample code that I can take a look at?

  • 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-02T19:52:43+00:00Added an answer on June 2, 2026 at 7:52 pm

    As a serial converter is a USB device, the android tablet has to act as a USB host. This feature is available since Android 3.1. The API documentation is available on the android developer page and includes code examples.

    To actually communicate with the converter you will have to find out a bit more about it’s internals: There are many different devices on the market, some using USB HID, others are using USB CDC device class or do not even comply to any class. The linux lsusb command might be helpful to get the device/interface descriptors.

    On a typical CDC device you will have to interact with two bulk endpoints and probably use some interface related requests to setup the baudrate, etc. See the Communication Device Class specification on USB implementers forum.

    If your device has only one IN and one OUT bulk endpoint (beside the control endpoint) you might try to use the UsbDeviceConnection.bulkTransfer() method on the OUT endpoint to write some bytes to the serial line. There is a good chance this will just work, however for a clean implementation you should stick to the class specification.

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

Sidebar

Related Questions

I'm new in Android Programming. I'm trying to write an app that uses USB
I am trying to read a file from /data partition in Android. I wrote
I am trying to write an Android app to connect to an existing web
I'm trying to write an Android 2.2 app that will find installed apps that
I'm trying to write the server side of my android app that uses C2DM.
I am trying to write twitter app using android. The twitter login page opens
I am trying to write an android app for root users that runs a
I am trying to write a query for retrieving data from SQLite database. I
I'm trying to write an Android app that will allow a user to search
Im trying to write a very basic android app that displays around 5 pictures

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.