Go to previous topic
Go to next topic
Last Post 12 May 2015 12:22 PM by  mvly
Accessing UART in android 2.3.4
 4 Replies
Author Messages
mvly
Basic Member
Basic Member
Posts:104


--
22 Apr 2015 10:38 AM

    Is there any tutorial to access the UARTs in Android 2.3.4?

    I briefly searched and it is not as simple as accessing the UARTs in Linux.

     

    Thanks!

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    23 Apr 2015 12:46 PM

    Google documents four solutions here for accessing a serial port within Android.  Another TDG forum user also suggested the android-serialport-api as a solution in another TDG forum post found here..

    mvly
    Basic Member
    Basic Member
    Posts:104


    --
    12 May 2015 12:20 PM

    I tried the android-serialport-api and it works fine.

     

    For everyone's information:

    /dev/ttyO2 is UARTB on the development board

    /dev/ttyO1 is the bluetooth port. I think if you are not using this port, you can probably re-purpose it as a generic UART

    /dev/ttyO0 might be UARTC on the dev board, but I can't seem to get it to work.

     

    The other UARTs are not accessible if you use the current android 2.3.4 image.

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    12 May 2015 12:21 PM
    Thanks for following up on this post.
    mvly
    Basic Member
    Basic Member
    Posts:104


    --
    12 May 2015 12:22 PM

    Hopefully this is extraneous information for most, but one must chmod the /dev/tty ports before using them. Otherwise, the android-serial-api does not have permission to use them.



    ---