How to transfer data between Android phone and PC via USB?
As far as I know there is USB Host/Accessory support for Android devices, but will that work for Windows/Linux?
You can also use Sockets. For that you need forward packets via ADB, so how to connect Android app to both Windows and Linux PC?
Is there a way how to make this communication platform independent?
Related
I have a Panel PC which was Android OS. In this Panel PC, There are two DB9 Port which can use RS232, RS232/422/485.
It was possible to communicate serial data using USB port [for example FTDI chip or PL2303].
But I want to use the DB9 Port without FTDI or PL2303.
I know that linux is possible to communicate using device driver directly.
Are there any method to access to device driver directly in Android OS like Linux?
Please Help me.
Let's say I connect my Android phone to Windows PC using USB Type C. Is it possible to access TCP/IP services in the PC from my Android phone ? For example, connect to SQL Database in my Windows PC.
Thanks!
EDIT:
Why the downvote? I know this is obviously not the normal way. Therefore, I am asking for possibility.
I have my android tablet connected to windows pc machine through USB cable. I don't have internet connection.
I need a solution to establish a connection and transfer files from pc to android app. I think we can use Android open accessories in accessory mode. Is there a better solution to solve this problem or is android open accessories the right solution. What are the shortcomings of this solution ?
you should install the drivers for your tablet and to transfer the files using usb. Your android tablet tablet might not be recognized without drivers. Also you should store the files inside download folder to be easily visible by the pc.
I have to communicate from tablet to PC using USB. I have studied about using TCP and abd but i have to do with the Serial port. I am even not sure is that possible or not. So please guide me through what is the way to achieve this. Any help is appreciated.
You can use a USB to UART bridge device to do this, but the caveat is that your tablet device will need a driver to do so. Your tag shows you are using Android, which is based on the Linux kernel. Linux already supports plenty of USB to UART bridge devices natively, so once you choose one you can go through the steps of building in the driver to your Android image and probably perform a make menuconfig and add in support for your driver that way.
Communication to the PC on the other side of the bridge can be through a standard RS232 serial port (if available), or you can use USB to UART bridge on the other side as well.
I found the USB docs for Android and from there it seems as if one could write a communication program on an Android phone that works exactly like on a PC.
I have a normal USB-cable that normally connects between a PC and an external device. On one end it is a normal USB on the other end it has a special plug for the device.
If I get an USB female-female adapter I could connect my normal Android phone cable USB end to my device USB cable and so basically plug in my special USB cable into the Android phone.
Does anyone have experience doing USB communcation programming on Android - basically copying normal PC USB functionality? All I would have to do is sent and receive text strings over the USB port - just like on a PC.
Is this possible or is the USB port programming on Android limited in any way
and not really identical to USB programming on a PC? eg. power supply through USB or anything else?
ps on the PC I need to have a FTDI driver installed to work with the external device.
Many thanks
UPDATE:
it seems that starting with Android 3.1 it is possible to do this - however, if I understand htis correctly, Android 3.1 runs only on tablet Android devices - I might be wrong with this - compared to Apple this all this pretty confusing (however, with Apple iPhone it will never work! ;)
Yes, Android supports USB host on 3.1 and newer, so you can connect USB devices directly to an Android device using a converter cable. Android 4.0 brings this feature to handset devices.