Test UART C4 - Android

Post Reply
timnuwin
Posts: 5
Joined: Sun Jan 03, 2021 10:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Test UART C4 - Android

Post by timnuwin »

How can I test a peripheral with a baud rate 38400 on the odroid c4 that has the latest Android image via the command line?
It doesn't look like I have `microcom` w/ busybox.

timnuwin
Posts: 5
Joined: Sun Jan 03, 2021 10:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Test UART C4 - Android

Post by timnuwin »

Is there any sample android app source-code that you guys recommend to test this UART out?

timnuwin
Posts: 5
Joined: Sun Jan 03, 2021 10:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Test UART C4 - Android

Post by timnuwin »

When I try to call uart:

type=1400 audit(0.0:1122): avc: denied { read } for name="ttyS0" dev="tmpfs" ino=2334 scontext=u:r:untrusted_app:s0:c64,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1


I've also updated the /odm/boot.ini to `Okay` the serial port

Luke.go
Posts: 569
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 70 times
Been thanked: 71 times
Contact:

Re: Test UART C4 - Android

Post by Luke.go »

I think a Odroid things feature will help you. :)

https://github.com/xiane/thingsGpioExample/tree/Uart

Please check the GitHub. this example used uart1.

User avatar
odroid
Site Admin
Posts: 36385
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1431 times
Been thanked: 980 times
Contact:

Re: Test UART C4 - Android

Post by odroid »

Try building this UART example Android app too.
https://wiki.odroid.com/odroid-c2/appli ... ample_code

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest