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

OrangePi

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

4g-iot gpio super user

[Copy link]

1

Threads

1

Posts

15

Credits

Novice

Rank: 1

Credits
15
Post time 2019-3-19 00:57:26 | Show all posts |Read mode
Hi , I try to project 4g-iot on android 6 .
I routed by kingroot .
Than I start try control gpio with adb

echo "-w=53:0 0 1 0 1 0 0" > /sys/devices/virtual/misc/mtgpio/pin
echo "-w=53:0 0 0 0 1 0 0" > /sys/devices/virtual/misc/mtgpio/pin

this commands r works in super user mode (root).
everything is OK.
Next i start to try this bash command as super user with termux apk  on Vysor
that passed too.

Is there a way to use it in normal mode instead of super user mode .

I try android apk like as
Process p = Runtime.getRuntime().exec("su");
DataOutputStream dos = new DataOutputStream(p.getOutputStream());dos.writeBytes("echo \"-w=53:0 0 1 0 1 0 0\" > /sys/devices/virtual/misc/mtgpio/pin");thats not work.
Do you have any suggestion ?
echo "-w=53:0 0 0 0 1 0 0" > pinecho "-wdir 53 1" > pinand like as commands not work

You have to log in before you can reply Login | Register

Points Rules

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

2019-8-23 21:26 GMT+8 , Processed in 0.024040 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list