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

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support