Hi Folks,
I am trying to create some proof of concept project to show a small software based on QT and wiringPi on my Raspberry Pi 3 to controll the Arduino Uno via the Serial Interface (RX/TX).
I connected both devices with a logic level converter and RX/TX crossed and Setup the Raspberry Pi for serial communication.
Communication between the Serial Monitor and minicom on the Raspberry Pi works fine. Also the communication from my QT Program is shown in the Serial Monitor as expected.
The Arduino is programmed to toggle a LED on one Port, when an 'a' is send via Serial Communication. This works fine when I send the 'a' from the Serial Monitor, but there seems to be no communication with the Raspberry anymore as soon as I use one of the following codelines in my Setup sequence in the arduino:
Serial.setup (9600);
or
Serial.setup (9600,8N1);
The RX/TX leds onboard do not flicker anymore and the arduino receives no signals from my QT program. It doesn't matter if the Arduino is connected via USB to my Mac or not and if I provide power to the Arduino via USB or an external power device. Also restarting the Arduino after uploading the Software or connecting RX/TX only after reboot does not help. Another try I gave was using <termios.h> as well as <wiringSerial.h> on the Raspberry but both lead to no different result.
Has anybody already managed to establish a real Serial Connection between the raspberry (using termios.h or wiringSerial.h) and the Arduino passing information forth and back?
Does the use of the USB Port interfere with Serial Communication on Port 0 and 1?
Any ideas out there?