Power & Source of Big Ideas

Nano Pi Neo Plus 2 (/dev/ttyS1) Serial transmission issue

Moderators: chensy, FATechsupport

Hi,

I'm using an Arduino to communicate with NanoPI Neo Plus 2 using

Code: Select all

screen
command. While sending the data, I receive random characters -
lello⸮nenno oenno⸮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.
Maybe try a slower baudrate, ie 9600?

Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 12 guests