Hi hishi, not sure the thing you would do with the UART_AO_A as I do, but I made some progress, and probably that can help you.
I want to use the radxa zero with my Prusa i3MK3s, which seems to be a good fit as the GPIO pin head definition is the same as raspberry pi zero, see this post.
For this application, I just want only python to access the /dev/ttyAML0
after the software octoprint
starts. The problem is that because the kernel is also using this resource, thus python will throw an error, also the UART won’t work with communicating with Prusa. What I did is that I follow the documentation, turn on the /dev/ttyAML1
, and I modify the console
configuration from /dev/ttyAML0
to /dev/ttyAML1
in /boot/uEnv.txt
, thus no one is using /dev/ttyAML0
after the system starts running the operating system, so python can use it happily.
I haven’t connected it with my Prusa, probably I will try it tomorrow, but it seems to be fine to run python3 -m serial.tools.miniterm /dev/ttyAML0 115200
with my USB serial, which does not work before for python will throw an error saying that other program is also using this resource.