简体   繁体   中英

write to android USB port and send it to a RS232 microbot port

I have an old android phone (2.2) and I need to use it to transfer a (.tok) file to Basic Stamp micro RS232 using a USB-Serial converter in between. So bluetooth is out of question. My only option is to write to the USB port of my android and make the BS2 micro receive it.

I`ve never programmed Android so need some guidance as to how I do this, specially when my api level is 8. I need a simple program that reads a downloaded (from the processing local linux PC) file from sdcard and then send it to USB port without any processing. That file is then received by the RS232 port of bot.

Android 2.2 API does not have USB host capabilities.

Host capabilities was not made available until Android 3.1.

This means you can't write an android program on your v2.2 phone that will control the USB communication.

I'm also guessing that even if you did update your OS, the phone doesn't have a USB-A port necessary to power the bus.

不需要“usb主机”,使用像2.2 http://code.google.com/p/android-serialport-api/这样的老式Android设备

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM