aconno acnsensa project for iOS devices with iBeacon packets support.
Dependencies: LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common
config/aconnoConfig.h@38:c90e1670ffb3, 2018-08-17 (annotated)
- Committer:
- dbartolovic
- Date:
- Fri Aug 17 10:45:24 2018 +0000
- Branch:
- sensaformatfix
- Revision:
- 38:c90e1670ffb3
- Parent:
- 36:9e40cdef6bd6
Added service advertisement to telemetry data
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 24:fb90a508f50f | 1 | /** |
jurica238814 | 24:fb90a508f50f | 2 | * Made by Jurica Resetar @ aconno |
jurica238814 | 24:fb90a508f50f | 3 | * ResetarJurica@gmail.com |
jurica238814 | 24:fb90a508f50f | 4 | * More info @ aconno.de |
jurica238814 | 24:fb90a508f50f | 5 | * |
jurica238814 | 24:fb90a508f50f | 6 | */ |
jurica238814 | 24:fb90a508f50f | 7 | |
jurica238814 | 24:fb90a508f50f | 8 | #ifndef __ACONNO_CONFIG_H__ |
jurica238814 | 24:fb90a508f50f | 9 | #define __ACONNO_CONFIG_H__ |
jurica238814 | 24:fb90a508f50f | 10 | |
jurica238814 | 24:fb90a508f50f | 11 | /* Change these values bellow for iBeacon parameters setup */ |
jurica238814 | 24:fb90a508f50f | 12 | #define UUID_INIT 0x00, 0x11, 0x22, 0x33, \ |
jurica238814 | 24:fb90a508f50f | 13 | 0x44, 0x55, 0x66, 0x77, \ |
jurica238814 | 24:fb90a508f50f | 14 | 0x88, 0x99, 0xAA, 0xBB, \ |
jurica238814 | 24:fb90a508f50f | 15 | 0xCC, 0xDD, 0xEE, 0xFF |
jurica238814 | 24:fb90a508f50f | 16 | #define MAJOR (0xBABA) |
jurica238814 | 24:fb90a508f50f | 17 | #define MINOR (0xADDE) |
jurica238814 | 24:fb90a508f50f | 18 | #define RSSI_INIT (-1) |
jurica238814 | 24:fb90a508f50f | 19 | |
jurica238814 | 34:714dfddf2cd9 | 20 | #define UPDATE_SENSORS_TIME_MS (1000) |
dbartolovic | 36:9e40cdef6bd6 | 21 | #define V0 0.50 /* In volts */ |
jurica238814 | 34:714dfddf2cd9 | 22 | #define TC 0.01 /* In volts */ |
jurica238814 | 34:714dfddf2cd9 | 23 | #define VCC (3.6) |
jurica238814 | 34:714dfddf2cd9 | 24 | #define VALUE_TO_PERCENTAGE (100) |
jurica238814 | 34:714dfddf2cd9 | 25 | #define WAKEUP_TIME_DELAY_MS (150) |
jurica238814 | 34:714dfddf2cd9 | 26 | #define APPLICATION_ID (0xCF170059) |
jurica238814 | 34:714dfddf2cd9 | 27 | |
jurica238814 | 34:714dfddf2cd9 | 28 | #define ADC_REFERENCE (3.6f) /* adc reference voltage */ |
jurica238814 | 34:714dfddf2cd9 | 29 | #define ADC_RESOLUTION (1024) /* 10-bit adc */ |
jurica238814 | 34:714dfddf2cd9 | 30 | |
jurica238814 | 34:714dfddf2cd9 | 31 | #define I2C_DATA (p19) |
jurica238814 | 34:714dfddf2cd9 | 32 | #define I2C_CLK (p20) |
jurica238814 | 34:714dfddf2cd9 | 33 | #define SPI_MISO (p5) |
jurica238814 | 34:714dfddf2cd9 | 34 | #define SPI_MOSI (p3) |
jurica238814 | 34:714dfddf2cd9 | 35 | #define SPI_SCLK (p4) |
jurica238814 | 34:714dfddf2cd9 | 36 | |
jurica238814 | 34:714dfddf2cd9 | 37 | #define DEBUG_PRINT (1) |
jurica238814 | 34:714dfddf2cd9 | 38 | #define SLEEP_TIME (0.150) /* Sleep time in seconds */ |
jurica238814 | 34:714dfddf2cd9 | 39 | #define WAKE_UP_TIME (1) /* Awake time in ms */ |
dbartolovic | 36:9e40cdef6bd6 | 40 | #define ADV_INTERVAL (1000) /* Advertising interval in ms */ |
jurica238814 | 34:714dfddf2cd9 | 41 | #define CALIBRATION_STEPS (20) |
jurica238814 | 34:714dfddf2cd9 | 42 | #define TX_POWER_DB (4) |
jurica238814 | 34:714dfddf2cd9 | 43 | #define INVERT_AXES (1) |
jurica238814 | 34:714dfddf2cd9 | 44 | |
jurica238814 | 24:fb90a508f50f | 45 | #endif // __ACONNO_CONFIG_H__ |