
DocID027602 Rev 1 3/58
UM1870 Contents
58
5.2 BlueNRG-MS app for smartphones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.3 BlueNRG-MS sensor profile demo: connection with a central device . . . 35
5.3.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.3.2 Add service and characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.3.3 Set security requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.3.4 Enter connectable mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.3.5 Connection with central device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.4 BlueNRG-MS sensor demo: central profile role . . . . . . . . . . . . . . . . . . . . 37
5.4.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.4.2 Discovery a sensor peripheral device . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.4.3 Connect to discovered sensor peripheral device . . . . . . . . . . . . . . . . . . 38
5.4.4 Discovery sensor peripheral services and characteristics . . . . . . . . . . . 38
5.4.5 Enable sensor peripheral acceleration and free fall notifications . . . . . . 39
5.4.6 Read the sensor peripheral temperature sensor characteristic . . . . . . . 39
6 BlueNRG-MS chat demo application . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.1 Supported platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.2 BlueNRG-MS chat demo application: peripheral & central devices . . . . . 40
6.2.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.2.2 Add service and characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.2.3 Set security requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.2.4 Enter connectable mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.2.5 Connection with central device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7 BlueNRG-MS Beacon demonstration application . . . . . . . . . . . . . . . . 44
7.1 Supported platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2 BLE Beacon application setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.2 Define advertising data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.3 Entering non-connectable mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
8 BLE remote control demo application . . . . . . . . . . . . . . . . . . . . . . . . . 46
8.1 Supported platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
8.2 BLE remote control application setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
8.2.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
8.2.2 Define advertising data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
8.2.3 Add service and characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47