Arduino - Serial Data transfer (characters skipped) on DMD

Hello,
Data is transferred serially on Ardunio Mega 2560 using TCP-IP COnverter .
The data sent on display (DMD P10) goes missing. Some of the bits are skipped.

PLease help me with the solution.

Serial Data transfer code :

//SERIAL DATA
if (Serial.available())
{
int chars_in = 0;

// void serialFlush(){
while (Serial.available() > 0 && chars_in < SerialBufferSize)
{
serIn[chars_in] = Serial.read();
Serial.write( byte(serIn[chars_in]));

chars_in++;

}

}

dmd.selectFont(SystemFont5x7);

dmd.drawString(640, 0, serIn,26, GRAPHICS_NORMAL );
dmd.drawString(640, 8, serIn+52,26,GRAPHICS_NORMAL);
dmd.drawString(800, 0, serIn+78,26, GRAPHICS_NORMAL );
dmd.drawString(800, 8, serIn+104,26, GRAPHICS_NORMAL );
dmd.drawString(960, 0, serIn+130,26, GRAPHICS_NORMAL );

dmd.drawString(960, 8, serIn+156,26, GRAPHICS_NORMAL );
dmd.drawString(1120, 0, serIn+182,26, GRAPHICS_NORMAL );
dmd.drawString(1120, 8, serIn+208,26, GRAPHICS_NORMAL );
dmd.drawString(1280, 0, serIn+234,26, GRAPHICS_NORMAL );
dmd.drawString(1280, 8, serIn+260,26, GRAPHICS_NORMAL );

delay(3000);

Avontec:
The data sent on display (DMD P10) goes missing. Some of the bits are skipped.

Have you checked if the correct data is received by Serial? If so the problem is with your display code and I am not familiar with your display.

If the serial data is not being received correctly have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

...R

PS ... To make it easy for people to help you please modify your post and use the code button </>
codeButton.png

so your code 
looks like this

and is easy to copy to a text editor. See How to use the Forum