Using CY7C64225 USB to UART Bridge Controller with Android - KBA81836 | Cypress Semiconductor
Support & Community
Using CY7C64225 USB to UART Bridge Controller with Android - KBA81836
Can I use a Cypress USB to UART bridge controller with Android?
Yes, the Android kernel source is based on Linux. To use CY7C64225 with Android, you must enable the CDCACM driver in the kernel.
Use the following procedure to enable CDC-ACM driver in the kernel:
- Open menu config of your kernel source.
Go to Device Driver > USB Support > USB modem (CDC ACM) support. Select the module as shown in the figure.
- Rebuild the kernel and reboot the Android device.
Connect the Cypress USB to UART bridge controller to the Android device. Verify that the ttyACM* node is created in the /dev directory of Android device.
* is a wildcard to represent the number of the device node. If a node exists, the CDC-ACM driver is successfully bound to the Cypress USB to UART device.
By default, Android does not provide any application to emulate USB-Serial devices. For hosts running Microcom (terminal emulation program) on Android, you can use the following procedure below to communicate with the CY7C64225 and stream data:
- Download busybox from http://www.busybox.net/downloads/binaries/latest/ For an ARM based platform, select busybox-ARMv6l.
- Copy the binary to /system/bin of rootfs.
- Boot Android and get root access for the command shell.
Run the following command in terminal:
cd /system/bin and run ./busybox-armv6l microcom -s 115200 /dev/ttyACM0