Connect cp2102 or FTDI to Android 4.x
<p>I want to connect a custom device with cp2102 to Android powered tablet. I connect it in VCP mode (using PID EA60) and use JavaComm to find it,</p>

<pre><code>@SuppressWarnings("unchecked")
Enumeration &lt;CommPortIdentifier&gt; ports = CommPortIdentifier.getPortIdentifiers();

while (ports.hasMoreElements())
{
    final CommPortIdentifier port = ports.nextElement();
    Log.d(null, port.toString());
}
</code></pre>

<p>but I never enter the loop.</p>

<p>I have an option to use FTDI instead of silabs. They have a variant of using their D2xx dll through JNI. I followed their guide but I have a memory crash (signal something and heap corrupted message in LogCat), when I connect ft232r and try to determine the number of connected devices. When I unplug the device from the tablet, the same code (their sample code) works just fine, returning zero, which is true.</p>

<p>When I use JavaComm with FTDI the result is the same as with cp2102: the loop is not entered.</p>

<p>I guess I miss something or do something wrong.</p>

<p>If I'm to use, say, usb-mode instead of VCP, I'm ready to start searching, I just need a hint.</p>

<p>Any help would be greatly appreciated.</p>
