I am receiving about 90 bytes on the serial port. but arduinoBut Arduino has thea serial buffer of 64 bytes only. becauseBecause of this limitation iI am unable to receive further bytes.
char c;
void read_response()
{
while(Serial.available > 0)
{
c=Serial.read();
Serial.print(c,HEX);
Serial.print(",");
}
}
iI tried using the above function to read the serial data, but it is able to read only 64 bytes.
anotherAnother approach iI tried as follows:
char rxdata[]={};
void read_response()
{
while(Serial.available > 0)
{
int len= Serial.readBytes(rxdata, 90)
}
}
withWith this approach also itoo, I was receiving only 64 bytes.
Serial.flush()Serial.flush() also don'tdoesn't work as it waits for current transmission to finish.
& i And I do not have control on transmission end. The transmitter is sending 90 bytes continuously.
pleasePlease give me some suggestionsuggestions.