USB serial connection between Raspberry-pi and Android-phone
I have a Raspberry-pi-3-model-B and an Android phone device.
The connections are as follows:
- My raspberry pi is connected to my laptop through USB (this is not the important part).
- Also, from the raspberry pi’s female type A USB connector – I have connected my Android phone (this is the important part and shown below):

My Android phone’s screenshot is below:-
Now on the raspberry my Android phone is listed as-/dev/bus/usb/001/008
lsusb output on raspberry pi –
Bus 001 Device 005: ID 2d95:6003 (<-- my Android phone)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I want to communicate serial over USB from Raspberry Pi to my Android device. How do I do it? For it, I think I need to have device file of the form /dev/tty* of the Android phone being shown on Raspberry Pi, so that I can send serial data on this /dev/tty* device file on Raspberry Pi. How do I achieve this ?
Read more here: Source link
