| поискавой системы для электроныых деталей |
|
UM1870 датащи(PDF) 46 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1870 датащи(HTML) 46 Page - STMicroelectronics |
|
46 / 58 page ![]() BLE remote control demo application UM1870 46/58 DocID027602 Rev 1 8 BLE remote control demo application This demo application shows how to control a remote device (like an actuator) using a BlueNRG-MS device.This application periodically sends broadcast data (temperature values) that can be read by any device. The broadcast data is encapsulated in a manufacturer-specific AD type. The data content (besides the manufacturer ID, i.e. 0x0030 for STMicroelectronics) is as follows: The temperature value is given in tenths of degrees Celsius. The device is also connectable and exposes a characteristic used to control the LEDs on the BlueNRG-MS platform. The value of this characteristic is a bitmap of 1 byte. Each bit controls one of the LEDs: • bit 0 is the status of LED 1 • bit 1 is the status of LED 2. • bit 2 is the status of LED 3. • bit 3 is the status of LED 4. • bit 4 is the status of LED 5. As a consequence, a remote device can connect and write this byte to change or read the status of these LEDs (1 for LED ON, 0 for LED OFF). The peripheral disconnects after a timeout (DISCONNECT_TIMEOUT), to prevent that a central is always connected to the device. By default, no security is used, but it can be enabled with ENABLE_SECURITY (refer to file BLE_RC_main.h). When security is enabled the central has to be authenticated before reading or writing the device characteristic. In order to interact with a BlueNRG-MS device configured as a BLE Remote control, another BLE device (a BlueNRG-MS or any SMART READY device) can be used to scan and see broadcast data. To control one of the LEDs, the device has to connect to a BlueNRG-MS BLE Remote Control device and write into the exposed control point characteristic. The Service UUID is ed0ef62e-9b0d-11e4-89d3-123b93f75cba. The control point characteristic UUID is ed0efb1a-9b0d-11e4-89d3-123b93f75cba. 8.1 Supported platforms The BlueNRG-MS BLE Remote Control is supported on the BlueNRG-MS development platform (STEVAL-IDB005V1). Table 12. BLE remote advertising data Byte 0 Byte 1 Byte2 App ID (0x05) Temperature value (little-endian) |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |