The program sends the current location over the cellular network.

Dependencies:   aconno_I2C ublox-at-cellular-interface gnss ublox-cellular-base Lis2dh12 ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx low-power-sleep

Fork of example-gnss by u-blox

Committer:
jurica238814
Date:
Wed Dec 19 15:12:25 2018 +0100
Revision:
9:f943c09d9173
Parent:
8:2bf886335fd0
Stable version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 8:2bf886335fd0 1 /**
jurica238814 8:2bf886335fd0 2 * aconnoConfig.h
jurica238814 8:2bf886335fd0 3 * Config file for SAP project
jurica238814 8:2bf886335fd0 4 * Made by Jurica Resetar @ aconno
jurica238814 8:2bf886335fd0 5 * More info @ aconno.de
jurica238814 8:2bf886335fd0 6 * All rights reserved
jurica238814 8:2bf886335fd0 7 */
jurica238814 8:2bf886335fd0 8
jurica238814 8:2bf886335fd0 9 #ifndef __ACONNO_CONFIG_H__
jurica238814 8:2bf886335fd0 10 #define __ACONNO_CONFIG_H__
jurica238814 8:2bf886335fd0 11
jurica238814 8:2bf886335fd0 12 #define USE_C030_BOARD (1)
jurica238814 8:2bf886335fd0 13
jurica238814 8:2bf886335fd0 14 #define USER_BUTTON (PC_13)
jurica238814 8:2bf886335fd0 15 #define USER_LED (PE_7)
jurica238814 8:2bf886335fd0 16
jurica238814 8:2bf886335fd0 17 /* Definitions */
jurica238814 8:2bf886335fd0 18 #define OUTPUT_ENTER_KEY "\r"
jurica238814 8:2bf886335fd0 19 #define AT_PARSER_BUFFER_SIZE (256)
jurica238814 8:2bf886335fd0 20 #define AT_PARSER_TIMEOUT (8*1000) // Milliseconds
jurica238814 8:2bf886335fd0 21 #define STANDBY_TIME_SECONDS (25)
jurica238814 8:2bf886335fd0 22 #define TARGET_STM (1)
jurica238814 8:2bf886335fd0 23 #define UDP_MSG_SIZE_B (50)
jurica238814 8:2bf886335fd0 24
jurica238814 9:f943c09d9173 25 // Max wait time to get new location [s]
jurica238814 9:f943c09d9173 26 #define MAX_TIME_GNSS_WAIT_S (10)
jurica238814 8:2bf886335fd0 27 #define START_ALARM_S (1)
jurica238814 8:2bf886335fd0 28 #define STOP_ALARM_S (5)
jurica238814 8:2bf886335fd0 29 #define BUTTON_PRESSED_SIGNAL (0x12002300)
jurica238814 8:2bf886335fd0 30 #define ALARM_SIGNAL (0x12341230)
jurica238814 8:2bf886335fd0 31 #define ALARM_OFF_SIGNAL (0x12341231)
jurica238814 8:2bf886335fd0 32 #define IDLE_SIGNAL (0x12341232)
jurica238814 9:f943c09d9173 33 #define LOCATION_SEARCH_DONE (0x12341233)
jurica238814 8:2bf886335fd0 34
jurica238814 8:2bf886335fd0 35 #define UPDATE_LOCATION_TIME_MS (5000)
jurica238814 8:2bf886335fd0 36
jurica238814 8:2bf886335fd0 37 #endif // __ACONNO_CONFIG_H__