This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using Serial Port in Android Application

Hi All,

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?

-Mayuresh

  • Hi Mayuresh,

    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.

    BR,

    satish

  • Hi Satish,

    #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,

    Mayuresh