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

X  

UM2071 датащи(PDF) 30 Page - STMicroelectronics

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

UM2071 датащи(HTML) 30 Page - STMicroelectronics

Back Button UM2071 Datasheet HTML 26Page - STMicroelectronics UM2071 Datasheet HTML 27Page - STMicroelectronics UM2071 Datasheet HTML 28Page - STMicroelectronics UM2071 Datasheet HTML 29Page - STMicroelectronics UM2071 Datasheet HTML 30Page - STMicroelectronics UM2071 Datasheet HTML 31Page - STMicroelectronics UM2071 Datasheet HTML 32Page - STMicroelectronics UM2071 Datasheet HTML 33Page - STMicroelectronics UM2071 Datasheet HTML 34Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 30 / 56 page
background image
BlueNRG-1 chat master and slave demo
application
UM2071
30/56
DocID029370 Rev 3
8
BlueNRG-1 chat master and slave demo application
The BlueNRG-1 chat master and slave demo is supported on the BlueNRG-1 development
platform (STEVAL-IDB007V1). It demonstrates simple point-to-point wireless
communication using a single application which configures the chat client and server roles
at runtime.
The new chat demo application configures a BlueNRG-1 BLE device as central or
peripheral using the API:
aci_gap_init(GAP_CENTRAL_ROLE|GAP_PERIPHERAL_ROLE, 0, 0x07, &service_handle,
&dev_name_char_handle, &appearance_char_handle);
It then initiates a discovery procedure for another BlueNRG-1 BLE device configured with
the same chat master and slave application image.
If such a device is found within a random interval, it starts a connection procedure and
waits until a connection is established. If the discovery procedure time expires without
finding another chat master and slave device, the device enters discovery mode and waits
for another chat master and slave device to discover and connect to it.
When connection is established, the client and server roles are defined and the chat
communication channel can be used.
This demo application exposes a single chat service with the following (20 byte max.)
characteristic values:
The TX characteristic, with which the client can enable notifications; when the server
has data to be sent, it sends notifications with the value of the TX characteristic.
The RX characteristic, is a writable characteristic; when the client has data to be sent
to the server, it writes a value in this characteristic.
The application requires two devices to be programmed with the same application, with the
server and client roles defined at runtime. Connect the two devices to a PC via USB and
open a serial terminal on both with the same configuration as Table 6: "Serial port
configuration".
The application listens for keys typed in one device terminal and sends them to the remote
device when the return key is pressed; the remote device then outputs the received RF
messages to the serial port. Therefore, anything typed in one terminal becomes visible in
the other.
8.1
BlueNRG-1 chat master and slave roles
This section describes how two BLE chat master and slave devices interact with each other
in order to set up a point-to-point wireless chat.
The BlueNRG-1 BLE stack must first be set up on both devices by sending a series of API
commands to the processor. The chat master and slave client and server roles are defined
at runtime.
8.1.1
Initialization
The BlueNRG-1 BLE stack must be correctly initialized before establishing a connection
with another BLE device. This is done with two commands:
aci_gatt_init();
aci_gap_init(GAP_CENTRAL_ROLE|GAP_PERIPHERAL_ROLE, TRUE,0x07, &service_handle,
&dev_name_char_handle, &appearance_char_handle);



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


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

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