Hallo zusammen,
ich versuche meinen Arduino mit dem Raspberry Pi zu verbinden. Das klappt momentan nur über folgenden Code:
Da ich aber nicht immer minicom starten möchte um eine serielle Kommunikation zu starten, suche ich nach einem Befehl für das Terminal um die Kommunikation auf 8N1 9600 Baud zu stellen.
Ich habe es nun schon mit zig Varianten folgenden Codes probiert
Code
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 -parenb cs8 -cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 parenb cs8 -cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 parenb cs8 cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 -parenb cs8 cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 -parenb cs7 cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 parenb cs7 cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 parenb cs7 -cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
pi@raspberrypi ~ $ stty -F /dev/ttyACM1 9600 -parenb cs7 -cstopb
pi@raspberrypi ~ $ echo '50T' >/dev/ttyACM1
Alles anzeigen
leider ohne Erfolg. Die Daten kommen nicht korrekt beim Arduino an.
Erst wenn ich wieder
eingebe, werden die Daten durch
korrekt übertragen.
Ich würde mich freuen wenn mich jemand auf meinen Fehler hinweisen würde.