I have managed it to write from my arduino (Uno) to my Raspberry Pi 3 via Serial.
If I use the same python script on the pi side, and the same Sketch on arduino side, but using a Teensy instead, I cant read any output from my Arduino.
Is there any difference between thes arduino Uno and the teensy depending on Serial communication?
Arduino sketch:
void setup() {
Serial.begin(115200);
}
void loop() {
delay(1000);
Serial.println("10.7;0.7;FFFF:FFFF:FFFF:FFFF:");
}
Python script on my Pi:
import serial
ser=serial.Serial("/dev/ttyACM0",115200)
while True:
print("Waiting for messages from arduino..");
read_ser=ser.readline()
print(read_ser)
This code works fine for my Arduino Uno, but not for my Teensy. ttyACM0 is correct in both cases.
OS on the Pi is ubuntu mate 16.04. I can see the output of both arduinos in the Arduino IDE.
I tried this with 3 different Teensies, so the hardware should not be the problem.
Any advices?
** ser.isOpen() is true
bytesToRead = ser.inWaiting() print(ser.read(bytesToRead)) makes no difference.
Could there be a difference, because the teensy is connected with the pi with micro usb, and the UNO is connected with an A to B USB?

ser.baudrate=115200print(ser.isOpen())inside the loop.teensyif haven't an hardware opening procedure Probable missing points :handshake,additional data for open bus. Dump bus data and you will be seepythonandterminaldata different.usb-serbutteensy(3.X)got6Mb/s(i tested) bus. Some high speed devices required additional data before start a communication.teensyspeed definitionSerial.begin(115200);orSerial.begin(0);orSerial.begin(12345678);not important because got12Mb/sconnection if used native port.