Conexión de un UFS270 al la tarjeta NUCLEO-F091RC, se envia el dato de la altura real del liquido al puerto RS232 del GV300 cada 30seg (Aplicacion para tanques estacionarios)
Dependencies: BufferedSerial mbed
constantes.cpp
- Committer:
- mvargas_dtk
- Date:
- 2016-05-26
- Revision:
- 0:d74fc1505b54
File content as of revision 0:d74fc1505b54:
/*
* - Proyecto: CH SABMiller.
* - Lenguaje: ANSI C/C++ (mbed)
* - Tarjeta: Nucleo F091RC
* - Referencias:
* - Fecha: 2016/May
* - Autor(es): Felícito Manzano /
Mario Vargas
* - Compañia: V.S.R. de Centroamérica
* - País: SV / CR
*/
#include "constantes.hpp"
/* DEFINICIÓN DE CONSTANTES PARA GV300 */
const char CABECERA_TX[] = "AT+GTDAT=gv300,2,,TCA|";
const char CODIGO_INT_FUEL[] = "003|";
const char FIN_CABECERA_TX[] = ",1,,,,";
const char ULTIMO_CARACTER[] = "$";
const char SEPARADOR[] = ";";
const char RESET_TXT[] = "AT+GTDAT=gv300,2,,***BOOTING***,1,,,,0001$";
// OTRAS CONSTANTES
const int T_ESPERA_CP = 300; // mili segundos
const int T_TX = 100; // mili segundos
Mario Vargas