Detektor Integracion Hardware VSR / Mbed 2 deprecated DTK-MEGAPACA_NUCLEO_copy2

Dependencies:   BufferedSerial PinDetect mbed

Fork of DTK-MEGAPACA_NUCLEO by Felícito Manzano

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers constantes.cpp Source File

constantes.cpp

00001 /*
00002  * - Proyecto:      Apagado Temporizado MEGAPACA
00003  * - Lenguaje:      ANSI C/C++ (mbed)
00004  * - Tarjeta:       NUCLEO F303K8
00005  * - Referencias:
00006  * - Fecha:         2017/Septiembre
00007  * - Autor(es):     Felícito Manzano /
00008                     Mario Vargas
00009  * - Compañia:      V.S.R. de Centroamérica
00010  * - País:          SV / CR
00011  */
00012 
00013  #include "constantes.hpp"
00014 
00015 /* DEFINICIÓN DE CONSTANTES PARA GV300 */
00016 const char CABECERA_TX[]        = "AT+GTDAT=gv300,2,,TCA|";
00017 const char CODIGO_INT[]         = "021|";
00018 const char FIN_CABECERA_TX[]    = ",0,,,,";
00019 const char ULTIMO_CARACTER[]    = "$";
00020 const char SEPARADOR[]          = ";";
00021 const char RESET_TXT[]          = "AT+GTDAT=gv300,2,,***BOOTING***,1,,,,0001$";
00022 const char ALIVE[]              = "AT+GTDAT=gv300,2,,**NUCLEO-OK**,1,,,,";
00023 const char SHUTDOWN_TXT[]       = "AT+GTOUT=gv300,1,,,0,0,0,0,0,0,0,,0,0,,,,C0C0$";
00024 const char INIT_SHUTDOWN[]      = "Iniciando apagado por Evento de Panico T-05";
00025 const char CANC_SHUTDOWN[]      = "Apagado por Evento de Panico - CANCELADO";
00026 const char SHUTDOWN_DONE[]      = "Apagado por Evento de Panico - REALIZADO";
00027 const char SHUTDOWN_ERRO[]      = "Apagado por Evento de Panico - ERROR";
00028 const char GTOUT_TXT[]          = "ACK:GTOUT";
00029 const char ABORT_TXT[]          = "ABORTAR";
00030 const char GV300_OK[]           = "OK";
00031 const int PULSOS_APAGAR         = 2;
00032 
00033 // CONSTANTES DE PUERTO SERIAL
00034 const int BUFF_SIZE   = 498;
00035 const int TX_MULTIP   = 1;
00036 
00037 
00038 // OTRAS CONSTANTES
00039 const int T_ESPERA_CP       = 300;       // mili segundos
00040 const int T_TX              = 100;       // mili segundos
00041 const int T_15              = 5;        // minutos
00042 const float MINUTO          = 60.0;      // segundos
00043 const float TIME_HEARTBEAT  = 600.0;     // segundos
00044 const float TIME_SHUTDOWN   = 300.0;     // segundos