Thermoprobe TL2 Manual de usuario Pagina 14

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 17
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 13
14
02/2013, JK
sz_checksum[0] = hex[((c_sum & 0xF0) >> 4)];
sz_checksum[1] = hex[(c_sum & 0x0F)];
printf("%s\r\n", sz_checksum);
//
// check the checksum
//
// get a numeric sum of the bytes up to the checksum characters
c_sum = 0;
for (i = 0; i < (STRING_LEN - 2); i++){
c_sum += sz_string[i];
}
// convert the ascii checksum to a decimal value
sscanf(&sz_string[STRING_LEN - 2], "%x", &c_checksum);
c_sum += c_checksum;
if (c_sum){
// an error occured
printf("Invalid Checksum\r\n");
}
else{
printf("Valid Checksum\r\n");
}
Setting the Time and Date:
NOTE: It may be necessary to set the TL2 clock using Hyperterminal as follows:
1. After a connection has been established with the TL2 per the previous steps, hit ‘Enter’ to create a line break in the data
feed.
2. To change the date enter the text as follows: Date (YY)YY-MM-DD
3. To change the time enter the text as follows: Time HH:MM:SS
Vista de pagina 13
1 2 ... 9 10 11 12 13 14 15 16 17

Comentarios a estos manuales

Sin comentarios