E2E Maintenance Alert: Please be aware that we are updating our site today at 11 AM CST. During this time, users will be able to browse current site content and perform searches to find your solutions. We expect the Maintenance to be completed by 8 PM CST.
TI E2E Community
Using Serial Port in Android Application
I have a beagleboard xm with the expansion board v2 having a 7 inch touchscreen. It came with a rowboat android image having the touchscreen driver.
I have an android application which is supposed to communicate over serial port. Now there is only 1 serial port on the board which is used as the kernel output.
I have the following questions:
1. Can I use the existing serial port? Will the data of my application get mixed with the data from the kernel.
2. Alternatively can I use a USB-Serial convertor connected to one of the USB host port on the beagleboard. I have a PL2303 based device, which gets detected on Ubuntu but not on android running on the beagle board. What changes would I need to do to the kernel if I have to use it?
1. Yes there are chances that kernel output will get mix with your data.
2. You can use ADB shell, to debug device. Is that not feasible for you?
3. Have you installed FTDI drivers correctly on the system ? - required for USB to serival convertor.
Kindly click the verify answer button on this post if it answer your question.
#You can use ADB shell, to debug device. Is that not feasible for you?
I actually never thought of that. Thanks for pointing it out. I'll look into it. I had considered one more option for debugging, but I am not sure if its feasible. I was planning to use XDS100v2 with the board and CCSv5 for android debugging (The website says CCSv5 can be used to debug both linux and android). I would appreciate any feedback on the same.
#Have you installed FTDI drivers correctly on the system ? - required for USB to serival convertor.
My USB-serial convertor is based on PL2303 from Prolific. I am not sure if the linux kernel of the android distribution has drivers for it. Since you mentioned, does the linux kernel of rowboat android have FTDI drivers installed? If so then I can get an FTDI based convertor. If not, will I have to rebuild the kernel by including the drivers?
Thanks & Regards,
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.