Can Android phone's USB host support the TM4C123G as a device ,TM4C123G has been loaded the program which is a example named as usb_dev_bulk provided by tiva.
Who can help me? and give me some ways to achive this.
Your Android device needs to support USB OTG (On The Go), you need an OTG host cable and then you need to write an app that conforms to the Android USB Host APIs at http://developer.android.com/guide/topics/connectivity/usb/host.html
I would suggest trying out the excellent example app by #devunwired at https://github.com/devunwired/accessory-samples Specifically, try out the UsbMonitor app which shows if a USB device is detected, along with its interfaces and endpoints.
Related
I am about to write an Android application that will communicate with a device through USB. The device has implemented WinUSB.sys.
Is there any ready made USB lib that I can use in order to avoid writing my own USB driver for Android?
I haven't got a hold of the actual device yet, so it might be that I will be able to communicate via the built in Android USB lib. If that is the case, I will let you know.
I want to control a physical device which is connected to my android phone through USB. Here,physical device means any device (like camera,pc etc...) which can be connected to my android device via USB.I want to control this device from my phone.
Is it possible?
Thanks in Advance
Yes you can control the devices but via OTG cable.
see this link
Yes this is possible in some way. If you are able to control an RS232 to USB converter like the PL2303 (the normal ones that you get in the market) then you will be able to do many things. For this you will need a device that supports USB host, then you can check this PL2303 test project which I already tested and can say that works very good. You can use it as the start point for controlling the USB port. This solution works for RS232 compatible devices which you can easily adapt with some electronics using a micro controller.
run adb_win from here http://smart-dog.appspot.com/download/ADB_WIN.zip
and connect to it with tightvnc viewer.
it worked for me
Yes i have this question as well i tried to find the solution,Yes it is possible
do the following...
1 - Android USB drivers must be installed on your desktop
2 - USB Debugging must be enabled on your Android device
3 - Your firewall should authorize adb.exe and BirdieSync.exe
4 - Use the latest version of BirdieSync
If u need more information visit this site it will help you...
http://www.birdiesync.com/my-android-device-cannot-connect-over-usb
I need to write a program that will alow an Android device (running version 2.2) to send data (a simple String) to another device (also running version 2.2) via a USB connection. Are there any libraries to do that?
I believe those devices would have to support USB host mode in hardware. And then one of them would need to be out in storage media mode, then you'd use standard filesystem access functions. But the hardware side needs to be dealt with first. I would check out special USB host cables to see what can be done. Not all Android devices can be put into USB host mode.
I am working on this Android application that needs to communicate over USB. I have an Archos 101 Tablet (specifications here: http://www.archos.com/products/ta/archos_101it/specs.html?country=us&lang=en). It has a full USB host port. I can put a flash USB drive in the USB port and copy files to and from the flash drive onto internal storage.
I have this Arduino Fio board, with an XBee attached to it. I have an XBee Explorer Dongle with another XBee that I plan to hook into the Archos 101 tablet into the USB port.
As of right now, I can put the XBee Explorer Dongle into my computer and send/receive data to and from the Arduino Fio, no problems.
Is there a way for Android to talk over USB? I know there has to be drivers somewhere in the tablet allowing USB communication, but I cannot find a way to access them or use them.
I can see Android recognizing the XBee Explorer Dongle. I downloaded a terminal emulator, and I can type "dmesg" and see that it sees the dongle hooked up. But I cannot do anything with it.
I seem to need a FTDI driver for Android.
I would greatly appreciate any help in getting my tablet to communicate with the XBee Explorer Dongle.
If you have root and can hack your kernel, FTDI offers its D2XX driver for Android OS. Check its website, please.
If your Android device is 3.1+, you should be able to use Android USB host to talk with Arduino. However, I met some issues on this.
If you have ADK/UHS at hand, your Arduino can act as USB host and talk to Android USB device. Even in same hardware, if your Android OS is quite old like 1.5/1.6, you have to use ADB interface rather than ADK (Accessory Developer Kit) protocol.
If you have Bluetooth, you can write your own Bluetooth SPP in your app.
If you can handle WiFi, you can write app to communication with socket, or via latest WiFi direct mode in Android.
Communication is various. However, it depends your hardware.
There is a solution by Inopiaaardbei using Arduino and a USB host shield with an Android Debug Bridge running on Arduino.
Using this solution you can use serial communication between the Android phone and the Arduino board.
See my post and the link inside for more info.
You can use an android adk or the android ioio connected to an xbee module as I did in this article. I have published the code on my github and another guy is going to implement the gui currently.
USB is not easy to programm, and it would be much easier with ethernet or rs232. However, if you insist, then take a look at V-USB (SW USB), LUFA (HW USB) and Lufaduino (HW USB). If Android has USB CDC drivers already embedded then it could be the easiest path for you if you implement it in AVR too. Slow, cheap and software only AVR USB CDC implementation is here.
What would be the best way to access the USB as a serial port on an Android device (HTC Magic)?
I am thinking about an OBD-II interface. Can I do this on a standard phone or more likely will I need a modified firmware?
According to this post, Matt Porter presented a review of Android at the Embedded Linux Conference Europe. I mention this mostly because of the example used to describe the current state of Android.
"Just one more practical example: You cannot even plug a USB drive to an android system, since /dev/sd* is not an expected device name in their hardcoded hotplug management.
Executive summary: Android is a screwed, hard-coded, non-portable abomination."
I'm sure someone's working on it, but I'm afraid for now you're out of luck unless you're willing to go low-level and edit the OS.
PSFreedom (project to jailbrack Playstation 3) has list of controllers which support usb host mode which then translate to supported Android devices.
My own expirience is that usb host works on HTC Dream/G1 without problems.
For OBD-II I would suggest bluetooth ODB-II dongle which side-stepps problem with usb host adapter.
Depending on the USB chip in your particular phone, it may be possible to rebuild the kernel to support USB Host mode or USB On-The-Go (Host + Gadget modes) instead of the normal USB Gadget mode. I've found some people speculating that it could be possible on the HTC Dream. Assuming you could reconfigure the USB port in Host mode a USB to serial, ODB-II, or CAN should be doable.
From what I can tell Android is Linux of some sort, to have USB device which would apear as serial port, you should write a driver for that device. I don't know much about OBD-II interface but i am guesing they use some sort of USB driver for windows, same is for android, not mentioning the application to handle the driver.
I don't think the current Android devices can act as a USB host only as a USB device when attached to a host. So using the USB port as a serial port is not likely.
Get a hostmode kernel for your device and you can use python for android and the pyserial library to talk to the serial over USB. I did this with Huawei Ideos U8150 (here is the post) for a loopback test.