It is still under development. I will update the wrapper once it gets updated (if an update is required at all).
I tested in Eclipse it worksIt is still under development. I will update the wrapper once it gets updated (if an update is required at all).
There is some stuff here about changing parity, databits and even software & hardware handshaking. Now if that come be implemented in this library it would be awesome. Unfortunately it is way above my capability.Since the library is made to
I agree the Arduino is fixed at 8N1 but the FTDI devices are not necessarily fixed & are usually settable, e.g. Being able to set data bits to 7 atleast will cover older devices. Also don't forget parity, hardware handshaking etc!
UsbSerialDriver.java - usb-serial-for-android - Android USB host serial driver library for CDC, FTDI, Arduino and other devices. - Google Project Hosting
But if it could be implemented, it would be a game changer for Android & RS232 as the FDTI is far superior than the prolific at not dropping characters at high baudrates and this driver from Erel is superb at 8,None & 1.
AddManifestText( <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="12"/> <uses-permission android:name="android.permission.INTERNET" /> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>) AddActivityText(main, <intent-filter> <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> </intent-filter> <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@xml/device_filter" />) 'End of default text.
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- 0x0403 / 0x6001: FTDI FT232R UART --> <usb-device vendor-id="1027" product-id="24577" /> <!-- 0x2341 / Arduino --> <usb-device vendor-id="9025" /> <!-- 0x16C0 / 0x0483: Teensyduino --> <usb-device vendor-id="5824" product-id="1155" /> <!-- 0x2303 / 0x067b: Prolific SerialUSB --> <usb-device vendor-id="8963" product-id="1659" /> </resources>
Hello,I forgot to say that you have to add the following lines in device_filter.xml file:
<!-- 0x10C4 / 0xEA60: CP210x UART Bridge -->
<usb-device vender-id="4292" product-id="60000"/>
and this is all.
I just implemented this in my app using only Bluetooth before and is working like a charm over USB now.
My tablet is a Samsung Galaxy TAB 7.7 with ICS (4.0.4).
I have this in device infoCheck if VID and PID are the same for your device.
A simple way is to connect it to a Windows computer and look into the devices.
Play first with the Erel example and put a link between Rx and Tx to get an echo.