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.

serial port read /write access



Hi Everyone,

                       We have ported android Froyo on AM1808 processor successfully from sdcard. But my problem is i cant access serial port (read, write) using com port.

I have downloaded android serial port API (.apk file) from link  http://code.google.com/p/android-serialport-api/downloads/list  . After i installed this .apk file on my android device iam getting force close error.

 i have set permissions too.

Can you please help me out in this issue. Thanks in advance.

Regards

Pooja.

  • Hello Pooja,

    Did you manage to get the problem solved? If so, can you please share how you solved the Issue ?

    We are running Jellybean on the BeagleBoneBlack, and have installed the same App.


    Thanks, Reuben

  • Hi Reuben,

                        Did you check permissions for your /dev/ttyS port under root user.

    Regards

    Pooja.

  • Hi ! Thanks for your reply.

    I navigated to rootfs. In root, there's a file called uevent.goldfish.rc

    It contains the statement:

    /dev/ttyS*   0666 sytem system

    Will changing the 0666 to 0777 help in any way ?

    There is no file called /dev/ttyS

    There are files called ttyO0 to ttyo5, ttyGS0 to ttyGS3, and tty0 to tty8. All these files are 0.00B(which is bytes, I'm guessing)

    Can you tell us what you did please ?

    Thank-you.

  • Hi,

    You should change the permissions somewhere in init.am335xevm.rc.

    For me, I set this permission as follows under the section of init.am335xevm.rc "on property:dev.bootcomplete=1"

    chmod 0777 /dev/ttyO0             (for UART 0)

    chmod 0777 /dev/ttyO2             (for UART 2)

    You can change these permissions through the console to test, but to make the change persist on each startup, you should put this change into init.am335xevm.rc.