herom
herom

Reputation: 2542

Send AT command from Android to USB port

Hello fellow programmers, I've got a question regarding the realisation of an app which should be able to send AT commands via USB to a connected hardware.

Is it possible to send these commands over USB without root? I would not want to have rooted phones as target market as I want the application to be useable for the average Android platform. Is there any solution out there which you know and can give some links to that?

cheers herom

Upvotes: 2

Views: 2129

Answers (1)

Chris Stratton
Chris Stratton

Reputation: 40407

If the phones support the optional usb host api then likely yes. You will probably need a USB-OTG style adapter cable which grounds the extra pin to help put the phone in host mode.

If not, no, unless you have one that can be made a usb host via kernel modifications (requiring root, likely kernel reflashing, and possibly a special cable to inject power)

Upvotes: 1

Related Questions