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

X  

UM2071 датащи(PDF) 31 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) 31 Page - STMicroelectronics

Back Button 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 UM2071 Datasheet HTML 35Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 56 page
background image
UM2071
BlueNRG-1 chat master and slave demo
application
DocID029370 Rev 3
31/56
The BLE peripheral and central roles are specified in the aci_gap_init() command.
See the BlueNRG-1 BLE API documentation for more information on these and following
commands.
8.1.2
Add service and characteristics
Refer to Section 7.1.2: " Add service and characteristics ".
8.1.3
Start discovery procedure
To find another BlueNRG-1 BLE chat master and slave device in discovery mode, a
discovery procedure must be started via:
aci_gap_start_general_discovery_proc(0x4000, 0x4000, 0x00, 0x00);
8.1.4
Enter connectable mode
The following GAP API command is used for entering general discoverable mode:
aci_gap_set_discoverable(ADV_IND, 0x90, 0x90, PUBLIC_ADDR, NO_WHITE_LIST_USE,
sizeof(local_name), local_name, 0, NULL, 0x6, 0x8);
8.1.5
Connection with chat master and slave client device
In the above mentioned discovery and mode assignment procedures, the two chat master
and slave applications assume respective client and server roles at runtime. During this
initial configuration phase, when a chat master and slave device is placed in discoverable
mode and it is found by the other chat master and slave device performing a discovery
procedure, a Bluetooth low energy connection is created and the device roles are defined.
The following GAP API command is used for connecting to the discovered device:
aci_gap_create_connection(0x4000, 0x4000,device_found_address_type,
device_found_address, PUBLIC_ADDR, 40, 40, 0, 60, 2000 , 2000);
Where device_found_address_type is the address type of the discovered chat master
and slave and device_found_address is the peer address of the discovered chat
master and slave device.
Once the two devices are connected, you can set up corresponding serial terminals and
type messages in either of them. The typed characters are stored in two respective buffers
and when the return key is pressed:
On the BLE chat master-and-slave server device, the typed characters are sent to the
master-and-slave client device by notifying the previously added TX characteristic (after
notifications have been enabled). This is done via:
aci_gatt_update_char_value(chatServHandle, TXCharHandle, 0, len, (uint8_t *)cmd+j);
On the master-and-slave client device, the typed characters are sent to the master-and-
slave server device, by writing the previously added RX characteristic. This is done via:
aci_gatt_write_without_resp (connection_handle, rx_handle +1, len, (uint8_t
*)cmd+j);
Where connection_handle is the handle returned upon connection as a parameter of
the connection complete event, rx_handle is the RX characteristic handle discovered by
the client device.
Once these API commands have been sent, the values of the TX and RX characteristics
are displayed on the serial terminals.



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