пропажа слешей

Dependencies:   mbed mbed-STM32F103C8T6 MLX90614 Watchdog DS1820

Committer:
astartes
Date:
Fri Jan 08 12:20:48 2021 +0000
Revision:
11:57fa27cb533e
Parent:
10:51960145754a
Child:
12:7fe416cdac08
08.01

Who changed what in which revision?

UserRevisionLine numberNew contents of line
spin7ion 6:70d0218c2a28 1 #pragma once
spin7ion 10:51960145754a 2 #define xstr(s) str(s)
spin7ion 10:51960145754a 3 #define str(s) #s
spin7ion 6:70d0218c2a28 4
spin7ion 10:51960145754a 5 // State machine states
spin7ion 6:70d0218c2a28 6 #define STATE_INIT 0
spin7ion 6:70d0218c2a28 7 #define STATE_STARTING_GPS 1
spin7ion 6:70d0218c2a28 8 #define STATE_WAITING_FIX 2
spin7ion 6:70d0218c2a28 9 #define STATE_COLLECTING_TELEMETRY 3
spin7ion 6:70d0218c2a28 10 #define STATE_SENDING_TELEMETRY 4
spin7ion 6:70d0218c2a28 11 #define STATE_SLEEPING 5
spin7ion 6:70d0218c2a28 12
spin7ion 10:51960145754a 13 // Times of working
spin7ion 9:e8a07983289f 14 #define SLEEP_CHECK_TIME 5
astartes 11:57fa27cb533e 15 #define SLEEP_TIME_S 300
spin7ion 9:e8a07983289f 16 #define FIX_CHECK_TIME_S 5
spin7ion 10:51960145754a 17 #define PARSER_TIMEOUT_S 10
astartes 11:57fa27cb533e 18 #define WATCHDOG_INTERVAL_S 30
spin7ion 6:70d0218c2a28 19
spin7ion 10:51960145754a 20 #define FIX_MAX_TRIES 25
spin7ion 10:51960145754a 21
astartes 11:57fa27cb533e 22 #define COMD_EXE_TRIES 10
astartes 11:57fa27cb533e 23
spin7ion 10:51960145754a 24 // Pinouts
spin7ion 6:70d0218c2a28 25 #define PIN_SDA PB_9
spin7ion 6:70d0218c2a28 26 #define PIN_SCL PB_8
spin7ion 6:70d0218c2a28 27 #define PIN_ONEWIRE PC_14
spin7ion 6:70d0218c2a28 28 #define PIN_SIM_TX PA_9
spin7ion 6:70d0218c2a28 29 #define PIN_SIM_RX PA_10
spin7ion 6:70d0218c2a28 30 #define PIN_TX PA_2
spin7ion 6:70d0218c2a28 31 #define PIN_RX PA_3
spin7ion 6:70d0218c2a28 32
spin7ion 10:51960145754a 33 // Debug options
spin7ion 10:51960145754a 34 #define DEBUG_SIM 1
spin7ion 6:70d0218c2a28 35 #define DEBUG_PC 1
spin7ion 10:51960145754a 36 #define ENABLE_WATCHDOG 1
spin7ion 6:70d0218c2a28 37
astartes 11:57fa27cb533e 38 /***********************************************************/
astartes 11:57fa27cb533e 39 /* FOR TEST */
astartes 11:57fa27cb533e 40 /***********************************************************/
spin7ion 10:51960145754a 41 // NBIoT settings
astartes 11:57fa27cb533e 42 //#define MTS_COAP_SERVER_IP 195.34.49.22
astartes 11:57fa27cb533e 43 //#define MTS_COAP_SERVER_PORT 6683
astartes 11:57fa27cb533e 44 //#define MTS_COAP_TOKEN HJne7HnjcPMy8pjZ2GfI
astartes 11:57fa27cb533e 45
astartes 11:57fa27cb533e 46 //#define MTS_TELEMETRY_URL_STRING "coap://" xstr(MTS_COAP_SERVER_IP) ":" xstr(MTS_COAP_SERVER_PORT) "/api/v1/" xstr(MTS_COAP_TOKEN) "/telemetry\""
spin7ion 10:51960145754a 47
astartes 11:57fa27cb533e 48 /***********************************************************/
astartes 11:57fa27cb533e 49 // NBIoT settings
astartes 11:57fa27cb533e 50 #define MTS_COAP_SERVER_IP 193.227.232.26
astartes 11:57fa27cb533e 51 #define MTS_COAP_SERVER_PORT 5683
astartes 11:57fa27cb533e 52
astartes 11:57fa27cb533e 53 #define MTS_TELEMETRY_URL_STRING "coap://" xstr(MTS_COAP_SERVER_IP) ":" xstr(MTS_COAP_SERVER_PORT) "/api/v1/MIEMHSE-TEST\""
astartes 11:57fa27cb533e 54 // #define MTS_TELEMETRY_URL_STRING "coap://193.227.232.26:5683/api/v1/MIEMHSE-TEST"
astartes 11:57fa27cb533e 55
astartes 11:57fa27cb533e 56