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

Dependencies:   mbed mbed-STM32F103C8T6 MLX90614 Watchdog DS1820

Committer:
astartes
Date:
Mon Jan 18 06:23:53 2021 +0000
Revision:
19:1d4d31c23953
Parent:
16:319eece233ff
last_one

Who changed what in which revision?

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