Posts: 15
Threads: 0
Likes Received: 1 in 1 posts
Likes Given: 7
Joined: Feb 2019
02-12-2019, 02:48 PM
(This post was last modified: 02-12-2019, 03:23 PM by fited. Edited 8 times in total.)
(10-22-2018, 12:15 PM)lobo Wrote: I tried now to integrate the serial part into an app and it works so far. I think you missed to chmod the serial port:
Code:
chmod 666 /dev/ttyS1
If you need this at start, I see the only working solution so far to extract the boot.img and to modify the ueventd.rk30board.rc.
Hi lobo!
I use same method from http s://tinkerboarding.co.uk/forum/thread-671.html
And add next line
Code:
/dev/ttyS1 0660 system system
# also i try 0666 value, but without success result.
to
ueventd.rk30board.rc.
But without command
Code:
chmod 666 /dev/ttyS1
in adb
wiringPi not works.
Android M
V13.13.0.74.
Note:
I copy file from my TB to desktop
Code:
adb pull ueventd.rk30board.rc /Users/user/Desktop/test
and it contains my line with correct permission for /dev/ttyS1
•
Posts: 161
Threads: 3
Likes Received: 17 in 16 posts
Likes Given: 2
Joined: Sep 2017
02-12-2019, 05:07 PM
(This post was last modified: 02-12-2019, 05:12 PM by lobo. Edited 1 time in total.)
Then show please what shows 'ls -la /dev/ttyS1' directly after reboot. Maybe another method is setting the permission back?
[EDIT]
A quick search:
Code:
grep -r "/dev/ttyS1" .
./init.connectivity.rc: chmod 0660 /dev/ttyS1
./init.connectivity.rc: chown bluetooth net_bt_stack /dev/ttyS1
Maybe this is making this. Try to remove this lines from 'init.connectivity.rc' and lets see if it works.
The following 1 user Likes lobo's post:1 user Likes lobo's post
• fited
Posts: 15
Threads: 0
Likes Received: 1 in 1 posts
Likes Given: 7
Joined: Feb 2019
02-12-2019, 05:30 PM
(This post was last modified: 02-12-2019, 05:31 PM by fited. Edited 1 time in total.)
(02-12-2019, 05:07 PM)lobo Wrote: Then show please what shows 'ls -la /dev/ttyS1' directly after reboot. Maybe another method is setting the permission back?
[EDIT]
A quick search:
Code:
grep -r "/dev/ttyS1" .
./init.connectivity.rc: chmod 0660 /dev/ttyS1
./init.connectivity.rc: chown bluetooth net_bt_stack /dev/ttyS1
Maybe this is making this. Try to remove this lines from 'init.connectivity.rc' and lets see if it works.
Wow, i didn't even think about it! Most likely the issue in this overrides.
I will try in 10 hours and post results! I forget device at home.
Thank you very much for answer!
Posts: 15
Threads: 0
Likes Received: 1 in 1 posts
Likes Given: 7
Joined: Feb 2019
(02-12-2019, 05:07 PM)lobo Wrote: Maybe this is making this. Try to remove this lines from 'init.connectivity.rc' and lets see if it works.
Yes, after i remove this lines, all works perfectly! You rock! Thank you very much again!!!
•