Arduino DUE buffer size

Hi Arduino Family!

I'm trying to send via the serial port datas to Arduino DUE.
I'm sending 400 coefficients but i'm able to read only the 10 first.
Do you have any idea of what I can do to read the 400 coefficents in the shortest time possible?

Thank you.

Here is the code I use to read the datas :

void loop(){ 
   
      while ( Serial.available()>0 ) { 
            
            recue = Serial.read(); 
            delay(5);
            reponse_recue += recue; 
            indice_hex++; 
          
            if (indice_hex == 6 )   // I am recieving Hex values as string, so I'm waiting to have 6 caracteres before convert it int
            {               
               valeur_coefficient = String2Dec( reponse_recue);                          
              }
               indice_hex = 0;
               reponse_recue = ""; 
               
            } 
}

}

Do you have any idea of what I can do to read the 400 coefficents in the shortest time possible?

Use the fastest possible line speed.
Lose the wasteful delay.
Post your code.

Do you mean the baudrate?
I'm beginner in arduino's programming.

Which code do you want to see?

Thanks

Which code do you want to see?

I thought it would be safe to assume you could guess which code.
Seems not.

Seems not.
Thanks

Also, String manipulation is far slower than using NULL terminated char arrays. You KNOW how big the array needs to be, so quit pissing away resources, and time, using Strings.

Which code do you want to see?

ALL the code (unless it's 10,000 lines long), how do we know what else is happening and how variables are declared? That stuff can be important.

For example you say you are reading 400 values but we only see code that handles 6 characters. Maybe you are overwriting something elsewhere in the code we can't see.


Rob