Arduino DUE buffer size


hi arduino family!

i'm trying send via serial port datas arduino due.
i'm sending 400 coefficients i'm able read 10 first.
do have idea of can read 400 coefficents in shortest time possible?

thank you.

here code use read datas :

code: [select]
void loop(){
   
      while ( serial.available()>0 ) {
           
            recue = serial.read();
            delay(5);
            reponse_recue += recue;
            indice_hex++;
         
            if (indice_hex == 6 )   // recieving hex values string, i'm waiting have 6 caracteres before convert int
            {               
               valeur_coefficient = string2dec( reponse_recue);                         
              }
               indice_hex = 0;
               reponse_recue = "";
               
            }
}

}

quote
do have idea of can read 400 coefficents in shortest time possible?

use fastest possible line speed.
lose wasteful delay.
post code.


Arduino Forum > Using Arduino > Programming Questions > Arduino DUE buffer size


arduino

Comments