Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1377|Reply: 0

Orange Pi 4G IOT ttyMT0,MT1 Serial Read Write

[Copy link]

3

Threads

5

Posts

82

Credits

Registered member

Rank: 2

Credits
82
Post time 2019-5-29 15:27:55 | Show all posts |Read mode
I'm trying to read/write serial data using Pin8 & Pin10 using android 6. but in logcat it shows this message and device restart

type=1400 audit(0.0:3110): avc: denied { write } for name="ttyMT0" dev="tmpfs" ino=47 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:ttyMT_device:s0 tclass=chr_file permissive=1
type=1400 audit(0.0:3111): avc: denied { open } for path="/dev/ttyMT0" dev="tmpfs" ino=47 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:ttyMT_device:s0 tclass=chr_file permissive=1
type=1400 audit(0.0:3112): avc: denied { ioctl } for path="/dev/ttyMT0" dev="tmpfs" ino=47 ioc


I change the permission in /dev/ttyMT0, /dev/ttyMT1 to 777. when i restart device the permission set to default.

Can anyone help me to solve this problem??
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-26 14:52 GMT+8 , Processed in 0.024275 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list