fred@vim3a:~$ uname -a
Linux vim3a 4.9.241 #24 SMP PREEMPT Sat Jan 8 13:20:29 CST 2022 aarch64 aarch64 aarch64 GNU/Linux
Sending output is fine.
Receiving does not function properly.
Send into the VIM3 at ttyS3 a one byte 0X0E and it starts sending a string out.
Bottom trace is the one byte input
Top is the TX pin of VIM3
Tried several different options with reading and all of them have the same issue. Also removed all the overlays with the exception of UART3 and that did not solve the problem.
Any suggestions?
int rx_length = read(fd, rx_buffer, 255);
2 bytes sent to VIM
//get termios structure settings
tcgetattr(fd, &settings);
//cfsetispeed(&settings, BAUDRATE);
//cfsetospeed(&settings, BAUDRATE);
//settings.c_cflag &= ~PARENB;
//settings.c_cflag &= ~CSTOPB;
//settings.c_cflag &= ~CSIZE;
//.c_cflag |= CS8;
settings.c_cflag = B9600 | CS8 | CLOCAL | CREAD; //<Set baud rate
settings.c_iflag = IGNPAR;
settings.c_oflag = 0;
settings.c_lflag = 0;
tcflush(fd, TCIFLUSH);
tcsetattr(fd, TCSANOW, &settings);