• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

USB OTG advice requested

(((While I have decades of detailed hardware and software experience, I've only ever written a single iOS app, and I've never written an Android app. So I know a lot, and don't know a lot.)))

I need to connect a USB-to-CAN adapter to an Android tablet, and then write an app that will send binary data to and receive binary data from the CAN bus, via the USB using OTG. I'm having difficulty getting doc on low-cost USB-to-CAN adapters, so I'm not sure yet how they behave.

I am hoping that I can find a low-cost USB-to-CAN adapter that is compliant with the USB Communications device class (02h). Then I'm hoping I can find an Android tablet (that meets other requirements) that includes a driver for this USB device class. Next, that ought to put me in position to write an app do do the binary data transceiving that I need.

Right now, I'm asking for any and all advice about roadblocks and fixes along the way. Your advice is GREATLY appreciated.
 
Well your first road block is lack of knowledge about Android development and Java. However if you do run into specific problems along the way, feel free to post here, and we'll try to help.
 
Thanks. Please let me rephrase my question. First: Can my desired endpoint be reached at all? I'd like to know that before investing in the time and cost of the project. I know Java and should be able to get sufficiently up-to-speed with the dev env pretty quickly. It's simply the next platform out of many.

Second: Could an expert reach that endpoint quickly, using lots of existing OS/app capabilities and focusing mainly on just connecting the pieces? I've done plenty of expert low level, long haul work that simply costs too much labor. I've done it for other folks decades ago as well as months ago. It's too darned inefficient for my current needs. Meanwhile, the connecting-pieces solution becomes more viable and with wider applicability every year that goes by. I've done very few of those decades ago, and many more in recent years. The expertise in writing the glue to connect it all together can be learned. So I'm trying to get an idea of how must custom and how much existing tech would be needed to solve my needs. (For example, bit-banging an android tablet's usb port, as totally non-usb, to effect a firewire-type interface, ignoring voltage levels, would probably require lots of custom programming just to get the interface to work. However, plugging in and using an USB HID to control an app would require very little custom programming outside of the app itself.)

Thanks as well for the "we'll try to help" sentence, sincerely.
 
Back
Top Bottom