Android Question Communication between 2 android applications via USB

Gauthier

New Member
Licensed User
Longtime User
Hello,
Today, I have first application on android smartphone and second application on other android smartphone.
To communicate between the 2 applications, I use socket on TCP with Wifi.
The first application is a server application and the second application is a client application.
I wish to remove this wifi communication wifi by communication on USB.
In this case, I think, I muste create a USB driver Host on the first smartphone and a USB Driver slave one the second smartphone.
On B4A, is it possible to create this kind of USB driver ?
 

JordiCP

Expert
Licensed User
Longtime User
Don't have an answer to your question, but perhaps this helps:
If you mean directly connected (no hubs or infrastructure in the middle, just a point-to-point connection) you can consider to do it with both USBs as a Host, using two cheap FTDI232 (or other) converters, linked by GND signal and crossed TX-RX pins.
Each device will see a serial communication channel, and the server/client roles will only be a matter of software.
 
Upvote 0

Gauthier

New Member
Licensed User
Longtime User
Thank you for your quick answer.
I have in mind this solution.
But it's not intellecually pleasant ....
 
Upvote 0
Top