I am trying to communicate Raspberry PI with AVR uC. I thought the simplest way to do that would be UART protocol.
I wrote simple code for uC where I send few bytes via UART (it works correctly) and also short script in Python on Raspberry to receive that data.
However, i failed in attempt to prepare RPi GPIO UART.
In every tutorial there is something like this:
(http://baldwisdom.com/preparing-for-a-l ... d-arduino/)You also have to edit /etc/innitab to remove the login (getty)
comment out:
2:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Butin ArchLinux I am using, there is no such file /etc/innitab!
I guess that this is my problem becouse when I run my script I get message:
To me, that means that UART has already been initialized by kernel, so my question is: how to forbid him to do itFile "./uart.py", line 9, in <module>
ser.open()
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 271, in open
raise SerialException("Port is already open.")
serial.serialutil.SerialException: Port is already open.
I do apologize for all language mestakes,
greetings,
ksieluk