Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old June 16th, 2011, 10:39 AM   #1 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Send / receive data using usb to external device

Hi Guys,
I hope you could help me with this one...

I need to build a medical application that receives data from external measurement device, performs some calculations and displays a some visuals on a monitor.
We did not want to build the device from scratch thus it was decided to use some OEM Android device for that purpose.

And here is the question:
After some research I made, I understand that it is not possible to build an Android application that is able to send/receive data through device's USB because there is no such API on the java level. Yes, I know it is available on Android 3.1 and I know that there is a Google ad-on library for 2.3.4 but the problem is that OEM device we are developing for has version 2.2 or 2.1 only.

Am I wrong? Is there a way in 2.1 and 2.2 to send/receive data using device's USB? Is there another way (besides bluetooth and wifi/3g)? I can receive data from external device by emulating mouse or keyboard but regretfully I can not send data to the external device using this way.

My next option is talking with the external device using the file system by writing and reading from files, but it seems like the last and the worst way to communicate with external device.

If I am missing something or there is another way for 2.1/2.2 device PLEASE help me.

Mike

mikespike is offline  
Reply With Quote
Sponsors
Old June 25th, 2011, 06:12 AM   #2 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,090
 
Device(s): GalaxyNexus(LTE), NexusOne, OG Droid, GalaxyTab 10.1(LTE), Eris, Logitech Revue (fishtank)
Thanks: 4,164
Thanked 3,126 Times in 1,292 Posts
Default

Welcome to AF!

Unfortunately I think you pretty much covered it. Not only is the problem at the java leve prior to Android 3.1, but at the driver/hardware level.

In order to get a Nexus One to work as a USB host someone had to open it up and mod the hardware inside.

Google "Nexus One USB host hack" and it should turn up stuff.

hope that helps
alostpacket is offline  
Reply With Quote
Old June 29th, 2011, 04:09 AM   #3 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks,
mikespike is offline  
Reply With Quote
Reply

Bookmarks

Tags
2.1, 2.2, app, cable, communication, connect, data, device, error, external, medical, port, problem, rs232, usb


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:41 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo