Read more than 64 bytes with Serial?

I am working on a PC version of Phillips Ambilight(LEDs extend the colors from the display to the wall).
I wrote a program in C# that sends the colors of the border to Arduino(Serial).
Data that gets sent looks like this:0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF0056EF(all lights set to light blue). If i send more than 11 colors/leds (66 bytes) it stops working.

How to read more than 64 bytes over Serial?

One solution is to use flow control, may require using a serial cable or breakout board that gives access to CTS.

How to read more than 64 bytes over Serial?

Read and deal with them as fast as you can, so the serial input buffer doesn't overflow.

Or, increase the size of the serial input buffer. You have the source code.

Another solution is to follow the examples in the following thread

http://forum.arduino.cc/index.php?topic=396450.0

I don't know why your serial stops.
I think there is no limit size in serial communication.
So you can change the rate of serial, buffer size, or the implementation of processing, as all says.
Furthermore,for example, you can use interruputs.

MaticBabnik:
How to read more than 64 bytes over Serial?

As you have not posted your program we can't tell what you are doing.

Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.

In the examples the receiving array is set to 32 bytes but you can make it as large as you want.

...R

sumguy:
One solution is to use flow control, may require using a serial cable or breakout board that gives access to CTS.

xon/xoff can also work; no extra wires needed :wink:

But I agree that we first need to see the code so we can see where the bottlenecks are.