Pages: [1]   Go Down
Author Topic: Serial Communication  (Read 429 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

any idea??
thanks..
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2317
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just keep reading it!

Mark
Logged

Atlanta, USA
Offline Offline
Edison Member
*
Karma: 53
Posts: 1794
AKA: Ray Burne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Discussed here
http://forum.arduino.cc/index.php/topic,96280.0.html
Logged

France
Offline Offline
Edison Member
*
Karma: 38
Posts: 1012
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

my code is:

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

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

California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3384
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

how to read more than 64 byte data serial???
Why do you think that code doesn't?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3384
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 67
Posts: 3702
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: