Android usb support.

kkingstoun

Member
Licensed User
Longtime User
Hi,

is possible to connect any device via usb socket? My medical device have usb socket ( typical to connect to the PC ) and would like to connect it to my phone with android. It could be possible to enable data transmission similary like via PC?

Kking
 

agraham

Expert
Licensed User
Longtime User
It might be possible. You need a device running Android 3.1 or later that is capable of USB Host mode operation. As the default operation of the USB port on devices is slave mode this usually needs an "On The Go" or "Camera" cable which is wired to switch the port to Host mode.

Not all USB devices will be passed by Android to applications. Many HID devices, like keyboards and mice, will be recognised by Android and used by the OS. Some Android devices do not pass even unrecognised USB devices to applications and some USB Host capable Android devices need rooting to add permission files that the manufacturers for some reason omitted.

If the device implements a serial port emulator then the UsbSerial2 library might be able to communicate with it otherwise at a lower level the Usb library could be used.

There's a lot of reading but these threads contain a lot of information and experiences.

http://www.b4x.com/forum/additional...updates/11290-usb-host-library.html#post63118

http://www.b4x.com/forum/additional...s-ftdi-arduinos-other-usb-serial-devices.html

http://www.b4x.com/forum/additional...serial-library-2-0-supports-more-devices.html
 
Last edited:
Upvote 0

kkingstoun

Member
Licensed User
Longtime User
I do not know if you understand me. My device, pulse oximeter sends data (measure) and I would like to display them in android.

And,
thank you for your response.
 
Upvote 0
Top