XDK API  3.6.0
Documentation
Data Structures | Macros | Typedefs | Functions | Variables
SensorServices.c File Reference
#include "XdkCommonInfo.h"
#include "BCDS_BlePeripheral.h"
#include "BCDS_Basics.h"
#include "BCDS_Retcode.h"
#include "BCDS_BluetoothConfig.h"
#include "FreeRTOS.h"
#include "task.h"
#include "SensorServices.h"
#include "BleTypes.h"
#include "attserver.h"
+ Include dependency graph for SensorServices.c:

Data Structures

struct  SensorServices_Characteristic_S
 structure to hold the Characteristic properties of the Sensor Services More...
 

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_SENSORSERVICES
 
#define BLE_OS_DELAY_UPON_CONNECT   (UINT32_C(250))
 
#define SENSOR_SERVICES_HIGH_DATA_RATE_ATT_LEN_MAX   20U
 
#define SENSOR_SERVICES_UUID_MAX   16U
 

Typedefs

typedef struct
SensorServices_Characteristic_S 
SensorServices_Characteristic_T
 Typedef to represent the Characteristic property of Sensor Services. More...
 

Functions

static void AcceleratorSensorServiceCallback (AttServerCallbackParms *serverCallbackParms)
 This function handles accelerometer sensor service events. More...
 
static void ControlXdkServiceCallback (AttServerCallbackParms *serverCallbackParms)
 This function handles the Node control service events. More...
 
static void GyroSensorServiceCallback (AttServerCallbackParms *serverCallbackParms)
 This function handles gyro sensor service events. More...
 
static void HighDataRateServiceCallback (AttServerCallbackParms *serverCallbackParms)
 This function handles high data rate service events. More...
 
static void LightSensorServiceCallback (AttServerCallbackParms *serverCallbackParms)
 This function handles light sensor service events. More...
 
Retcode_T SensorServices_Init (SensorServices_DataReceivedCallBack readCallback, SensorServices_SendEventCallback sendCallback)
 Initialize application callback to intimate for events from sensor services. More...
 
Retcode_T SensorServices_Register (void)
 This function registers the Sensor Services at the ATT server. This must be done during the boot phase of the stack. More...
 
Retcode_T SensorServices_SendData (uint8_t *payload, uint8_t payloadLen, SensorServices_Info_T *sensorServiceInfo)
 This function sends data to the client. More...
 
void SensorServices_UpdateConnectionStatus (bool connectionStatus)
 This function notifies the BLE connection status. More...
 
static void SensorServicesCallback (AttServerCallbackParms *serverCallbackParms)
 This function handles several sensor service events. More...
 
static BleStatus SensorServicesRegisterAccelerometer (void)
 This function registers the accelerometer sensor in the attribute database with a dedicated service and the associated characteristics. More...
 
static BleStatus SensorServicesRegisterControlSensor (void)
 The function register Node control service into the attribute database. More...
 
static BleStatus SensorServicesRegisterEnvironmentSensor (void)
 The function register environment sensor into the attribute database. More...
 
static BleStatus SensorServicesRegisterGyro (void)
 The function register gyro sensor into the attribute database. More...
 
static BleStatus SensorServicesRegisterHighDataRateService (void)
 The function register the high data rate service in the attribute database. More...
 
static BleStatus SensorServicesRegisterLightSensor (void)
 The function register light sensor into the attribute database. More...
 
static BleStatus SensorServicesRegisterMagnetometerSensor (void)
 The function register magnetometer sensor into the attribute database. More...
 
static BleStatus SensorServicesRegisterNoiseSensor (void)
 The function register noise sensor into the attribute database. More...
 
static Retcode_T WriteAndNotifyAccelerometerAxisValue (int16_t value, SensorServices_SensorAxisType_T axis)
 
static Retcode_T WriteAndNotifyGyroAxisValue (int16_t value, SensorServices_SensorAxisType_T axis)
 
static Retcode_T WriteAndNotifyHumiditySensorValue (uint32_t value)
 
static Retcode_T WriteAndNotifyLightSensorValue (uint32_t value)
 
static Retcode_T WriteAndNotifyMagnetometerValue (int16_t value, SensorServices_MagnetometerType_T axis)
 
static Retcode_T WriteAndNotifyNoiseSensorValue (uint32_t value)
 
static Retcode_T WriteAndNotifyPressureSensorValue (uint32_t value)
 
static Retcode_T WriteAndNotifyPriorityData (uint8_t *buffer, U8 payloadLen, SensorServices_HighDataRateType_T priority)
 
static Retcode_T WriteAndNotifyTemperatureSensorValue (int32_t value)
 

Variables

static uint8_t AcceleratorSensorCharacteristicValues [SENSOR_AXIS_MAX][2] = { { 0 } }
 
static
SensorServices_Characteristic_T 
AccelerometerCharacteristicProperties [SENSOR_AXIS_MAX]
 
const uint8_t AccelerometerSensorServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x66, 0x71, 0x40, 0x1D, 0x21, 0x5A }
 
static AttServiceAttribute AccelerometorSensorService
 
static TickType_t BleLastWakeTimeUponConnect = 0UL
 
static uint16_t ConnectionHandle
 
static AttServiceAttribute ControlNodeService
 
const uint8_t ControlNodeServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD0, 0x41, 0xB7, 0x55 }
 
static
SensorServices_DataReceivedCallBack 
DataReadCallBack = NULL
 
static
SensorServices_Characteristic_T 
EnvironmentSensorHumidityCharacteristicProperties
 
static uint8_t EnvironmentSensorHumidityCharacteristicValue [4] = { 0 }
 
static
SensorServices_Characteristic_T 
EnvironmentSensorPressureCharacteristicProperties
 
static uint8_t EnvironmentSensorPressureCharacteristicValue [4] = { 0 }
 
static AttServiceAttribute EnvironmentSensorService
 
const uint8_t EnvironmentSensorServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x34, 0x76, 0x60, 0xB0, 0xDA, 0x92 }
 
static
SensorServices_Characteristic_T 
EnvironmentSensorTemperatureCharacteristicProperties
 
static uint8_t EnvironmentSensorTemperatureCharacteristicValue [4] = { 0 }
 
static const uint8_t FirmwareVersionCharacteristicValue [4U] = { 18, 10, 13, 01 }
 
static
SensorServices_Characteristic_T 
GetNodeFirmwareVersionCharacteristicProperties
 
static
SensorServices_Characteristic_T 
GyroCharacteristicProperties [SENSOR_AXIS_MAX]
 
static uint8_t GyroSensorCharacteristicValues [SENSOR_AXIS_MAX][2] = { { 0 } }
 
static AttServiceAttribute GyroSensorService
 
const uint8_t GyroSensorServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x74, 0x40, 0x6A, 0xA9, 0xAC }
 
static
SensorServices_Characteristic_T 
HighDataRateCharacteristicProperties []
 
static uint8_t HighDataRateCharacteristicValue [HIGH_DATA_RATE_MAX][SENSOR_SERVICES_HIGH_DATA_RATE_ATT_LEN_MAX] = { { 0 } }
 
static AttServiceAttribute HighDataRateService
 
const uint8_t HighDataRateServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x7B, 0x10, 0x72, 0x96, 0xC2 }
 
static bool IsFirstSendPending = false
 
static
SensorServices_Characteristic_T 
LightSensorCharacteristicProperties
 
static uint8_t LightSensorCharacteristicValue [4] = { 0 }
 
static AttServiceAttribute LightSensorService
 
const uint8_t LightSensorServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x40, 0x75, 0xC0, 0x02, 0xEB, 0x38 }
 
static
SensorServices_Characteristic_T 
MagnetometerSensorCharacteristicProperties [4]
 
static uint8_t MagnetometerSensorCharacteristicValues [SENSOR_MAGNETOMETER_MAX][2] = { { 0 } }
 
static AttServiceAttribute MagnetometerSensorService
 
const uint8_t MagnetometerSensorServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x79, 0x75, 0x00, 0x4C, 0x1F, 0x65 }
 
static
SensorServices_Characteristic_T 
NoiseSensorCharacteristicProperties
 
static uint8_t NoiseSensorCharacteristicValue [4] = { 0 }
 
static AttServiceAttribute NoiseSensorService
 
const uint8_t NoiseSensorServiceUUID [SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x4C, 0x75, 0x30, 0x38, 0x03, 0x01 }
 
static
SensorServices_Characteristic_T 
RebootNodeCharacteristicProperties
 
static uint8_t RebootNodeCharacteristicValue [1] = { 0 }
 
static
SensorServices_SendEventCallback 
SendCallBack = NULL
 
static
SensorServices_Characteristic_T 
SetSamplingRateCharacteristicProperties
 
static uint8_t SetSensorSamplingTimerCharacteristicValue [4] = { 0 }
 
static
SensorServices_Characteristic_T 
StartSensorSamplingAndNotificationsCharacteristicProperties
 
static uint8_t StartSensorSamplingCharacteristicValue [1] = { 0 }
 
static uint8_t SwitchNodeCharacteristicValue [1] = { 0 }
 
static
SensorServices_Characteristic_T 
UseBuiltInSensorFusionCharacteristicProperties
 

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_SENSORSERVICES
#define BLE_OS_DELAY_UPON_CONNECT   (UINT32_C(250))
#define SENSOR_SERVICES_HIGH_DATA_RATE_ATT_LEN_MAX   20U
#define SENSOR_SERVICES_UUID_MAX   16U

Typedef Documentation

Function Documentation

static void AcceleratorSensorServiceCallback ( AttServerCallbackParms *  serverCallbackParms)
static

Attribute handle for the Node control service

Parameters
[in]serverCallbackParms: Parameters holding service event status

+ Here is the caller graph for this function:

static void ControlXdkServiceCallback ( AttServerCallbackParms *  serverCallbackParms)
static
Parameters
i]serverCallbackParms Parameters holding service event status

+ Here is the caller graph for this function:

static void GyroSensorServiceCallback ( AttServerCallbackParms *  serverCallbackParms)
static
Parameters
i]serverCallbackParms Parameters holding service event status

+ Here is the caller graph for this function:

static void HighDataRateServiceCallback ( AttServerCallbackParms *  serverCallbackParms)
static
Parameters
i]serverCallbackParms Parameters holding service event status

+ Here is the caller graph for this function:

static void LightSensorServiceCallback ( AttServerCallbackParms *  serverCallbackParms)
static
Parameters
i]serverCallbackParms Parameters holding service event status

+ Here is the caller graph for this function:

Retcode_T SensorServices_Register ( void  )

This function registers the Sensor Services at the ATT server. This must be done during the boot phase of the stack.

See also
BlePeripheral_ServiceRegistryCallback
Returns
RETCODE_OK on success, or an error code otherwise. Refer Retcode_General_E and Ble_Retcode_E for other values.
Note
Sensor Services must have been successfully initialized prior.

+ Here is the call graph for this function:

void SensorServices_UpdateConnectionStatus ( bool  connectionStatus)

This function notifies the BLE connection status

Parameters
[in]connectionStatusBLE connection status

+ Here is the call graph for this function:

static void SensorServicesCallback ( AttServerCallbackParms *  serverCallbackParms)
static
Parameters
i]serverCallbackParms Parameters holding service event status

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterAccelerometer ( void  )
static
Returns
The status of registration.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterControlSensor ( void  )
static

This function register the Node control service in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterEnvironmentSensor ( void  )
static

This function register the environment sensor in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterGyro ( void  )
static

This function register the gyro sensor in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterHighDataRateService ( void  )
static

This function register the high data rate service in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterLightSensor ( void  )
static

This function register the light sensor in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterMagnetometerSensor ( void  )
static

This function register the magnetometer sensor in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static BleStatus SensorServicesRegisterNoiseSensor ( void  )
static

This function register the noise sensor in the attribute database with a dedicated service and the associated characteristics.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyAccelerometerAxisValue ( int16_t  value,
SensorServices_SensorAxisType_T  axis 
)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyGyroAxisValue ( int16_t  value,
SensorServices_SensorAxisType_T  axis 
)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyHumiditySensorValue ( uint32_t  value)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyLightSensorValue ( uint32_t  value)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyMagnetometerValue ( int16_t  value,
SensorServices_MagnetometerType_T  axis 
)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyNoiseSensorValue ( uint32_t  value)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyPressureSensorValue ( uint32_t  value)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyPriorityData ( uint8_t *  buffer,
U8  payloadLen,
SensorServices_HighDataRateType_T  priority 
)
static

+ Here is the caller graph for this function:

static Retcode_T WriteAndNotifyTemperatureSensorValue ( int32_t  value)
static

+ Here is the caller graph for this function:

Variable Documentation

uint8_t AcceleratorSensorCharacteristicValues[SENSOR_AXIS_MAX][2] = { { 0 } }
static

Container for the accelerometer sensor values send via BLE

SensorServices_Characteristic_T AccelerometerCharacteristicProperties[SENSOR_AXIS_MAX]
static
Initial value:
=
{
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x66, 0x71, 0x41, 0x1D, 0x21, 0x5A },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
},
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x66, 0x71, 0x42, 0x1D, 0x21, 0x5A },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
},
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x66, 0x71, 0x43, 0x1D, 0x21, 0x5A },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}
}

Characteristic properties for the accelerometer sensor

const uint8_t AccelerometerSensorServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x66, 0x71, 0x40, 0x1D, 0x21, 0x5A }

Accelerometer Sensor Service UUID: 5a 21 1d 40 71 66 11 e4 82 f8 08 00 20 0c 9a 66

AttServiceAttribute AccelerometorSensorService
static
TickType_t BleLastWakeTimeUponConnect = 0UL
static
uint16_t ConnectionHandle
static

Connection handle to client

AttServiceAttribute ControlNodeService
static

Attribute handle for the high data rate service

const uint8_t ControlNodeServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD0, 0x41, 0xB7, 0x55 }

Control Node Service UUID: 55b741d0-7ada-11e4-82f8-0800200c9a66

SensorServices_DataReceivedCallBack DataReadCallBack = NULL
static

Callback function of type Ble_DataReceivedCallBack to read the data received

SensorServices_Characteristic_T EnvironmentSensorHumidityCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x34, 0x76, 0x63, 0xB0, 0xDA, 0x92 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic properties for the environment sensor humidity value UUID: 92dab063-7634-11e4-82f8-0800200c9a66

uint8_t EnvironmentSensorHumidityCharacteristicValue[4] = { 0 }
static

Container for the humidity sensor values send via BLE

SensorServices_Characteristic_T EnvironmentSensorPressureCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x34, 0x76, 0x61, 0xB0, 0xDA, 0x92 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic properties for the environment sensor pressure value UUID: 92dab061-7634-11e4-82f8-0800200c9a66

uint8_t EnvironmentSensorPressureCharacteristicValue[4] = { 0 }
static

Container for the pressure sensor values send via BLE

AttServiceAttribute EnvironmentSensorService
static

Attribute handle for the magnetometer sensor service

const uint8_t EnvironmentSensorServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x34, 0x76, 0x60, 0xB0, 0xDA, 0x92 }

Environment Sensor Service UUID: 92dab060-7634-11e4-82f8-0800200c9a66

SensorServices_Characteristic_T EnvironmentSensorTemperatureCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x34, 0x76, 0x62, 0xB0, 0xDA, 0x92 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic properties for the environment sensor temperature value UUID: 92dab062-7634-11e4-82f8-0800200c9a66

uint8_t EnvironmentSensorTemperatureCharacteristicValue[4] = { 0 }
static

Container for the temperature sensor values send via BLE

const uint8_t FirmwareVersionCharacteristicValue[4U] = { 18, 10, 13, 01 }
static

Firmware version information Format: {year, month, day, build-number}

SensorServices_Characteristic_T GetNodeFirmwareVersionCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD4, 0x41, 0xB7, 0x55 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic property for getting the firmware version sampling Characteristic UUID: 55b741d4-7ada-11e4-82f8-0800200c9a66

SensorServices_Characteristic_T GyroCharacteristicProperties[SENSOR_AXIS_MAX]
static
Initial value:
=
{
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x74, 0x41, 0x6A, 0xA9, 0xAC },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
},
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x74, 0x42, 0x6A, 0xA9, 0xAC },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
},
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x74, 0x43, 0x6A, 0xA9, 0xAC },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}
}

Characteristic properties for the gyro sensor

uint8_t GyroSensorCharacteristicValues[SENSOR_AXIS_MAX][2] = { { 0 } }
static

Container for the gyro sensor values send via BLE

AttServiceAttribute GyroSensorService
static

Attribute handle for the accelerometer sensor service

const uint8_t GyroSensorServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x74, 0x40, 0x6A, 0xA9, 0xAC }

Gyro Sensor Service Sensor UUID: ac a9 6a 40 74 a4 11 e4 82 f8 08 00 20 0c 9a 66

SensorServices_Characteristic_T HighDataRateCharacteristicProperties[]
static
Initial value:
=
{
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x7B, 0x11, 0x72, 0x96, 0xC2 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
},
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x7B, 0x12, 0x72, 0x96, 0xC2 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}
}

Characteristic properties for the high rate data service

uint8_t HighDataRateCharacteristicValue[HIGH_DATA_RATE_MAX][SENSOR_SERVICES_HIGH_DATA_RATE_ATT_LEN_MAX] = { { 0 } }
static

Container for the high data rate values send via BLE

AttServiceAttribute HighDataRateService
static

Attribute handle for the environment sensor service

const uint8_t HighDataRateServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xA4, 0x7B, 0x10, 0x72, 0x96, 0xC2 }

High Data Rate Service UUID: c2967210-7ba4-11e4-82f8-0800200c9a66

bool IsFirstSendPending = false
static
SensorServices_Characteristic_T LightSensorCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x40, 0x75, 0xC1, 0x02, 0xEB, 0x38 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic properties for the light sensor UUID: 38eb02c1-7540-11e4-82f8-0800200c9a66

uint8_t LightSensorCharacteristicValue[4] = { 0 }
static

Container for the light sensor values send via BLE

AttServiceAttribute LightSensorService
static

Attribute handle for the gyro sensor service

const uint8_t LightSensorServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x40, 0x75, 0xC0, 0x02, 0xEB, 0x38 }

Light Sensor Service UUID: 38eb02c0-7540-11e4-82f8-0800200c9a66

SensorServices_Characteristic_T MagnetometerSensorCharacteristicProperties[4]
static

Characteristic properties for the magnetometer sensor

uint8_t MagnetometerSensorCharacteristicValues[SENSOR_MAGNETOMETER_MAX][2] = { { 0 } }
static

Container for the magnetometer sensor values send via BLE

AttServiceAttribute MagnetometerSensorService
static

Attribute handle for the noise sensor service

const uint8_t MagnetometerSensorServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x79, 0x75, 0x00, 0x4C, 0x1F, 0x65 }

Magnetometer Sensor Service UUID: 651f4c00-7579-11e4-82f8-0800200c9a66

SensorServices_Characteristic_T NoiseSensorCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x4C, 0x75, 0x31, 0x38, 0x03, 0x01 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic properties for the noise sensor UUID: 01033831-754c-11e4-82f8-0800200c9a66

uint8_t NoiseSensorCharacteristicValue[4] = { 0 }
static

Container for the noise sensor values send via BLE

AttServiceAttribute NoiseSensorService
static

Attribute handle for the light sensor service

const uint8_t NoiseSensorServiceUUID[SENSOR_SERVICES_UUID_MAX] = { 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0x4C, 0x75, 0x30, 0x38, 0x03, 0x01 }

Noise Sensor Service UUID: 01033830-754c-11e4-82f8-0800200c9a66

SensorServices_Characteristic_T RebootNodeCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD3, 0x41, 0xB7, 0x55 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic property for reset the Node Characteristic UUID: 55b741d3-7ada-11e4-82f8-0800200c9a66

uint8_t RebootNodeCharacteristicValue[1] = { 0 }
static

Container for the reset Node message received via BLE

SensorServices_SendEventCallback SendCallBack = NULL
static
SensorServices_Characteristic_T SetSamplingRateCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD2, 0x41, 0xB7, 0x55 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic property for the setting the sensor sampling rate Characteristic UUID: 55b741d2-7ada-11e4-82f8-0800200c9a66

uint8_t SetSensorSamplingTimerCharacteristicValue[4] = { 0 }
static

Container for the sampling time message received via BLE

SensorServices_Characteristic_T StartSensorSamplingAndNotificationsCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD1, 0x41, 0xB7, 0x55 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic property for the starting sensor sampling Characteristic UUID: 55b741d1-7ada-11e4-82f8-0800200c9a66

uint8_t StartSensorSamplingCharacteristicValue[1] = { 0 }
static

Container for the start sensor sampling message received via BLE

uint8_t SwitchNodeCharacteristicValue[1] = { 0 }
static

Container for the reset Node message received via BLE

SensorServices_Characteristic_T UseBuiltInSensorFusionCharacteristicProperties
static
Initial value:
=
{
{ 0x66, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0xF8, 0x82, 0xE4, 0x11, 0xDA, 0x7A, 0xD5, 0x41, 0xB7, 0x55 },
{ 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0, { 0 } },
{ 0, 0, 0, { 0 }, { 0 }, 0, 0, 0, 0 }
}

Characteristic property to switch between orientationData or accelData + gpsData UUID: 55b741d5-7ada-11e4-82f8-0800200c9a66


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:40 by doxygen 1.8.8