Go Down

Topic: Serial Communication (Read 501 times) previous topic - next topic

budiraharjo

How to receive Data Serial more than 64 bytes in Arduino??

any idea??
thanks..

holmes4

Just keep reading it!

Mark

mrburnette


guix

Constantly read as it arrives, so the buffer is never full (unless you have blocking code maybe)

budiraharjo

my code is:

while(Serial.available()>0)
    {
      char inChar = (char)Serial.read();
    }

how to read more than 64 byte data serial???

Arrch


how to read more than 64 byte data serial???

Why do you think that code doesn't?

budiraharjo

I already tried that code, but data serial that received only 64 byte

Arrch


I already tried that code, but data serial that received only 64 byte

You tried more than that code, as that code doesn't compile. So post the entire sketch that your tried.

wildbill

I suspect that you tried to send more than 64 characters to code that has a delay in it, perhaps simply caused by serial printing what you received. Even a small delay can cause a buffer overflow, which appears to be what you observe.

Go Up