Can I connect an android device WITHOUT a OTG cable?

Hi All,

I'm trying to connect my arduino boards to my android phone (Nexus 6), so that I can program my arduino boards with this, https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2, on my phone.

An arduino boards is an USB client which requires the other end to be an USB host. With an OTG supported device USB On-The-Go - Wikipedia , the USB socket on the device can be both USB host and USB client depending on the connecting cable. So, the programming on android things works fine.

I'm just curious. Is it necessary for an USB host to connect to an USB client? If both ends have their own power supply, is it possible to have two USB clients direct connection (so, connecting just for the data transfer, not for the power).

( I planned to buy an OTG cable anyway, so I'm really just curious. )

Arduino CANNOT be USB HOST. Android device must be HOST.

Usb protocol presumes that one device is the host. You cannot not have a host. But the otg cable itself I think is nothing special, just straight throughwith different ends than usual. The thing that enables OTG is the hardware and software in the phone

DrAzzy:
Usb protocol presumes that one device is the host. You cannot not have a host. But the otg cable itself I think is nothing special, just straight throughwith different ends than usual. The thing that enables OTG is the hardware and software in the phone

Usb protocol presumes that one device is the host. ...

I guess this means a NO to my question in the OP. Thanks.

By the way, an OTG cable is basically an ordinary USB extension cable with two pins on the micro USB side shorted, and it only works on OTG supported devices.

If I determined to DIY one myself, I guess I can. But hey, an OTG cable just cost you a few bucks http://www.amazon.com/Micro-USB-OTG-Adapter-Cable/dp/B00D8YZ2SA . I decided be nice to myself ^^.

ma_hty:
But hey, an OTG cable just cost you a few bucks.

Boy! Is that one ever expensive (compared to eBay)! :astonished:

ma_hty:
By the way, an OTG cable is basically an ordinary USB extension cable with two pins on the micro USB side shorted, and it only works on OTG supported devices.

The jumper indicates that the OTG device should operate as the USB master. With an unjumpered cable to (for example) a PC, the OTG operates as a slave device. Regardless there must be one and only one device operating as the USB master.

Paul__B:
Boy! Is that one ever expensive (compared to eBay)! :astonished:

^^", I'm hardly ever a smart customer. Maybe... I'm too nice to myself. :stuck_out_tongue_closed_eyes:

There was an oddball MEGA board that contained a USB host plug called the MEGA ADK if you can find one.

pwillard:
There was an oddball MEGA board that contained a USB host plug called the MEGA ADK if you can find one.

I got my OTG cable yesterday, and I tested the programming arduino with android phone (Nexus 6) things right away. It's works like a charm. :stuck_out_tongue_closed_eyes:

Right after, I tried to take a video for sharing. Unfortunately... I suddenly realized that the only camera I have is my Nexus 6, which needed to be on the video. :cry:

By the way, the Arduino IDE on Google Play didn't came with a serial monitor. I tried quite a number of USB serial monitor App on Google Play. Most of them don't work for my arduino nano, and the one that works for my arduino nano is https://play.google.com/store/apps/details?id=com.felhr.droidterm .

ma_hty:
By the way, the Arduino IDE on Google Play didn't came with a serial monitor.

Care to explain that?

Paul__B:
Care to explain that?

Mmm... I think... Mmm... I think... Mmm... I think... Anyway, may I stick to technical discussion only?

I only know of one primary form of the IDE, albeit many versions, but I have never heard of a version of the Arduino IDE without a serial monitor as it is a critical component, intimately related to the ability to download sketches.

Anyone else care to comment on this?

Paul__B:
I only know of one primary form of the IDE, albeit many versions, but I have never heard of a version of the Arduino IDE without a serial monitor as it is a critical component, intimately related to the ability to download sketches.

Anyone else care to comment on this?

I didn't write the arduino IDE on Google Play, ArduinoDroid. Why's that you sound like it's my responsibility for its shortcoming? Yet, it's the only arduino IDE on Google Play available for free.

Maybe... do you care enough to write me an arduino IDE for android that came with a serial monitor for free? If you do, please let me know when it's available on Google Play. I will be willing to use yours.

By the way, ArduinoDroid is a lousy piece of software in terms of an editor. I bet you can do a ten times better job easily.