For more information about the problems encountered by APIs that can read and write strings, see http://code.google.com/p/android-serialport-api/and Solutions

Source: Internet
Author: User
Reference post

Http://bbs.c Sdn.net/topi CS/320267733I tried to debug the serial port on the serial port terminal chmod 777/dev/s3c2410_serial0chmod 777/dev/s3c2410_serial1chmod 777/dev/s3c2410_serial -- sate210, it can also be used as a common serial port with http: // code like chmod 777/dev/s3c2410_seri_3. Google.com/P /Android-Ser Ialport-API/You can use the serial APK compiled by an API that can read or write the serial port without prompting you
Do not Hava read/write permission to the serial port! However, you will be prompted again after the restart
Do not Hava read/write permission to the serial port can only be re-input on the serial port terminal one by one chmod 777/dev/s3c2410_serial0chmod 777/dev/s3c2410_serial1chmod 777/dev/s3c2410_serial -- sate210 debug, it can also be used as a common serial port to use chmod 777/dev/s3c2410_seri_3, but there is also a solution, that is, to modify the kernel at 1. Re-compile the APK File


Copy the project to the samples of ndk and modify the SerialPort. c file under JNI.


Change one line to open (path_utf, o_rdwr | o_sync); remove the intermediate option

Recompile and generate the ***. APK file. Load the file!

2. Change permissions

Add the command at the end of the init. RC file in the root directory to modify the read and write permissions of serail_uart0. Save and restart reboot.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.