поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

UM1870 датащи(PDF) 41 Page - STMicroelectronics

номер детали UM1870
подробное описание детали  BlueNRG-MS development kits
PDF  58 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM1870 датащи(HTML) 41 Page - STMicroelectronics

Back Button UM1870 Datasheet HTML 37Page - STMicroelectronics UM1870 Datasheet HTML 38Page - STMicroelectronics UM1870 Datasheet HTML 39Page - STMicroelectronics UM1870 Datasheet HTML 40Page - STMicroelectronics UM1870 Datasheet HTML 41Page - STMicroelectronics UM1870 Datasheet HTML 42Page - STMicroelectronics UM1870 Datasheet HTML 43Page - STMicroelectronics UM1870 Datasheet HTML 44Page - STMicroelectronics UM1870 Datasheet HTML 45Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 41 / 58 page
background image
DocID027602 Rev 1
41/58
UM1870
BlueNRG-MS chat demo application
58
First, BlueNRG-MS must be set up on both devices. In order to do this, a series of ACI
commands need to be sent to the processor.
6.2.1
Initialization
BlueNRG-MS’s stack must be correctly initialized before establishing a connection with
another Bluetooth LE device. This is done with two commands
ACI_GATT_INIT
BLE Chat, “Server” role:
ACI_GAP_INIT(Role=0x01): peripheral.
BLE Chat, “Client role:
ACI_GAP_INIT(Role=0x04): central.
Peripheral & central BLE roles must be specified inside the GAP_INIT command. See ACI
documentation for more information on these commands and on those that follow.
6.2.2
Add service and characteristics
The chat service is added on the BLE chat, server role device using the following command:
aci_gatt_add_serv(UUID_TYPE_128, service_uuid, PRIMARY_SERVICE, 7,
&chatServHandle);
Where service_uuid is the private service UUID 128 bits allocated for the chat service
(Primary service).
The command will return the service handle in chatServHandle.
The TX characteristic is added using the following command (on BLE Chat, Server role
device):
aci_gatt_add_char(chatServHandle, UUID_TYPE_128, charUuidTX, 20,
CHAR_PROP_NOTIFY, ATTR_PERMISSION_NONE, 0, 16, 1, &TXCharHandle);
Where charUuidTX is the private characteristic UUID 128 bits allocated for the TX
characteristic (notify property). The characteristic handle is also returned (on
TXCharHandle).
The RX characteristic is added using the following command (on BLE Chat, Server role
device):
aci_gatt_add_char(chatServHandle, UUID_TYPE_128, charUuidRX, 20,
CHAR_PROP_WRITE|CHAR_PROP_WRITE_WITHOUT_RESP,
ATTR_PERMISSION_NONE, GATT_SERVER_ATTR_WRITE,16, 1, &RXCharHandle);
Where charUuidRX is the private characteristic UUID 128 bits allocated for the RX
characteristic (write property). The characteristic handle is also returned (on
RXCharHandle).
See ACI documentation for more information on these commands as well as those that
follow.
6.2.3
Set security requirements
BlueNRG-MS exposes a command that the application can use to specify its security
requirements. If a characteristic has security restrictions, a pairing procedure must be



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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