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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:42:58+00:00 2026-05-27T23:42:58+00:00

I want to send sensor data from an Android device to a Apache web

  • 0

I want to send sensor data from an Android device to a Apache web server. The sensor is connected to the Android device using the IOIO board and is sampled at an regular interval.

The raw sensor data is approximately 1 byte/second and I’m trying to find an efficient way to send this to the web server which is based on Apache and has support for PHP and ASP (ChiliASP I think).

In order to have a low monthly cost, I would like to use pre-paid mobile subscription and these usually have a fixed maximum data limit (something like 500 MB/month).

Since the sensor should send data 24/7, I would like to keep the required data traffic at a minimum. Even if the amount of data is not very large, I think that the overhead in terms of protocol headers could be an issue. If each sample (1 byte) is sent separately, the overhead/payload ratio will be very poor. On solution is of course to aggregate some data and send it in bigger chunks.

I have successfully tested Java HttpURLConnection to send data using an HTTP POST and have some questions about this:

  1. How large is the overhead due to HTTP headers? Is there some easy way to measure it?
  2. Is there some other protocol supported by Android and Apache which I could consider?
  • 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-05-27T23:42:58+00:00Added an answer on May 27, 2026 at 11:42 pm

    You can use a simple HTTP GET/POST request and send json encoded data as parameters to a web service implemented in php or any other language of your choice. I don’t think it get’s simpler/smaller than http get/post and json (unless someone can correct me). JSON is an excellent, easy and flexible format for data interchange and is much simpler and more concise than xml. JSON parsing is available natively in most languages including Java, JavaScript and PHP. It also very widely used.

    An HTTP get request, for example, doesn’t have much overhead except the length of parameters you wish to send. Here’s a typical GET request:

    GET /pub/WWW/TheProject.php?arg1=foo&arg2=bar HTTP/1.1 
    

    arg1 & arg2 are the arguments I’m passing to TheProject.php.

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

Sidebar

Related Questions

I want to send a couple of values to a web server from my
I want send an image from my App to web service, to do it,
I want send some data to a remote webpage from my site. Actually it
I want to send out one off emails from a linux server. The server
I want to send a UIImage to a server with socket. I'm using this
I want to send the data of a UIImage to the server through a
Want to send the text from my current vb application to the Active Window
I want to send email from a Ruby application. Is there a call in
How can I send array to stored procedure? I want send it from JS
I want to send chunked HTTP body to test my own HTTP server. So

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.