Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
231 views
in Technique[技术] by (71.8m points)

usbserial - Sending data from a PC to an Android device on USB

I want to send data between a PC (USB host) to a USB device (Android device) using USB OTG cable.

I understand Android device can work as a USB host and can send data over serial port. I read the USB accessory but I couldn't understand the way to do it.

I read this SO post which suggested it's not possible send data from PC to Android because it acts as USB host but as per the android docs it can act as USB device as well. I read in another SO Post user is able to connect 2 Android device as host and device by passing some control message.

I did research on this online and I couldn't find concrete answer. Is it possible to send data from a PC to Android using USB OTG?

Any help would be appreciable, thanks in advance.

question from:https://stackoverflow.com/questions/65835124/sending-data-from-a-pc-to-an-android-device-on-usb

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...