Android & UART
10
5423
|
Hi everyone and thanks for this board that helped a lot.
I'm a proud new owner of LeMaker Guitar Rev B running Android. 
Now, I have some issues regarding the communication through UART with a Raspberry Pi running Raspbian.
On Raspbian, UART is working (tested with an Arduino, too many eval boards on one table!).
I can't get the pins 8 & 10 to work.
I tried to install WiringLMK but it doesn't work on Android. I tried sysfs, but couldn't find the proper tty related to those PINs.
I don't want to use the DEBUG UART on the 6 pins next to Ethernet.
Can I have a bit of help or something that could guide me ?
More precisions :
I have a Lemaker Guitar Package A : Basic Developer including :
- Lemaker Guitar + Lemaker Guitar Base Board Rev. B
- Android 5.1.1 with Kernel 3.10.37
SSH is working if needed.
Thanks everyone!
Best regards,
Gautier
|
|
|
|
|
|
|
|
Hi tony_zhang, and thank you for your answer
I actually have been through all the wiki I think. 
I don't want to use Java because at the end, this code will be a kernel module in Android as a driver for a UART Touchscreen that I am developing during my internship.
In fact, the link you just gave me will work in an app, and I want it to work in the whole Android system. I may not have been clear about that point.
Anyway, thanks for your answer, I really appreciate that.
Gautier
|
|
|
|
|
|
|
|
For those who are looking for it - and since Lemaker has not answered any of my calls and emails regarding this issue.
The device tree compiled on the prebuilt Android image provided by Lemaker disabled the ttyS0 - UART0.
(I still don't know why...).
In order to solve it, you need to change the device-tree.
It is located at /misc/kernel.dtb.
You need to uncompile it, export it (using device-tree-compiler, ie. dtc).
And then change the "disabled" to "okay" behind serial@0b120000.
Then compile it again and send it back to /misc (you might need to remount the partition in read-write, don't forget to remount in read-only afterwards).
Hope it helps. |
|
|
|
|
|
|
|
OK. Sorry, you use the Guitar plateform. So you need modify the DTS file of the guitar. I do not know the exact file name of the guitar dts for android.
|
|
|
|
|
|
|
|
Yes, as I said just above you, I finally found that.
Thank you for your (late) help.
May I know why Android is installed on eMMC by default ? |
|
|
|
|
|
|