Nano Pi Neo Plus 2 (/dev/ttyS1) Serial transmission issue
Posted: Sat Jan 20, 2018 4:02 am
Hi,
I'm using an Arduino to communicate with NanoPI Neo Plus 2 using command. While sending the data, I receive random characters -
Arduino Code -
This happens even with pySerial or any other Serial communication. I am not able to communicate with any UART device since the data is garbled before it reaches the other device.
This works with a USB UART but doesnt work with Serial pins.
I'm using an Arduino to communicate with NanoPI Neo Plus 2 using
Code: Select all
screen
lello⸮nennooenno⸮nenno⸮nenno⸮nenno⸮nello⸮nello⸮hello
hello
hello
hello
nenno
nello
hello
hello
hello
hello
lello
lello⸮nello⸮lenno⸮nenno⸮nelno⸮nenlo⸮nenlo⸮hello
hello
hello
lello⸮hello
hello⸮nenoo⸮nenno⸮hello
hello
hello
nenmo⸮nello⸮hello
hello
hello
Arduino Code -
Code: Select all
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
Serial1.flush();
Serial.flush();
if(Serial.available()){
Serial1.print(Serial.readString());
}
if(Serial1.available()){
Serial.print(Serial1.readString());
}
delay(100);
}
This happens even with pySerial or any other Serial communication. I am not able to communicate with any UART device since the data is garbled before it reaches the other device.
This works with a USB UART but doesnt work with Serial pins.