Hi,
I am reading data from Arduino over the UART0 (HS4) in native C in Android 5.1. I have used 3.3V to a 1.8V level converter.
I am sending an array of a byte filled with 1 like below
for(int i=0; i<sizeof(data); i++){
data[i] = 1; // fill 127 byte
}
And I am reading at UART0 (HS4) of DB410c from the following method
int n = read(fd, buf, sizeof buf); // read up to 127characters if ready to read
But I am getting following data at DB410c which is making no sense. I am using 9600 baud rate at both ends.
64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64
64 64 64 64 64 64 64 64 64 64 64 64 64 192 64 64 192 64 64 192 1 1 1 1 1 1 1 1 1 1 1 64 192 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
Any lead would be appreciable. Thanks.