Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

Arduino IDE like serial monitor in the Raspberry Pi shell

10 Byte hinzugefügt, 20:08, 5. Apr. 2014
For serial communication with an Arduino I wanted a Arduino IDE like serial monitor in the Raspberry Pi shell. Since I could not a find a terminal that did support “line mode” I found another workaround.
It’s a quite simplistic approach.
 
 
If you want to be able to use the Serial Port of the Raspberry Pi you will have to disable the Linux serial console first.
    For serial communication with an Arduino I wanted a Arduino IDE like serial monitor in the Raspberry Pi shell. Since I could not a find a terminal that did support “line mode” I found another workaround. It’s a quite simplistic approach.Explenation:
<pre>stty -F /dev/ttyAMA0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts</pre>
'''Source:'''[http://playground.arduino.cc/Interfacing/LinuxTTY]
610
Bearbeitungen