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

X  

PM0237 датащи(PDF) 52 Page - STMicroelectronics

номер детали PM0237
подробное описание детали  The main purpose of this document is to provide a developer
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0237 датащи(HTML) 52 Page - STMicroelectronics

Back Button PM0237 Datasheet HTML 48Page - STMicroelectronics PM0237 Datasheet HTML 49Page - STMicroelectronics PM0237 Datasheet HTML 50Page - STMicroelectronics PM0237 Datasheet HTML 51Page - STMicroelectronics PM0237 Datasheet HTML 52Page - STMicroelectronics PM0237 Datasheet HTML 53Page - STMicroelectronics PM0237 Datasheet HTML 54Page - STMicroelectronics PM0237 Datasheet HTML 55Page - STMicroelectronics PM0237 Datasheet HTML 56Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 52 / 88 page
background image
Design an application using BlueNRG, BlueNRG-MS ACI APIs
PM0237
52/88
DocID027104 Rev 2
3.3
Services and characteristic configuration
In order to add a service and related characteristics, a user application has to define the
specific profile to be addressed:
1.
Standard profile defined by Bluetooth SIG organization. The user must follow the
profile specification and services, characteristic specification documents in order to
implement them by using the related defined Profile, Services & Characteristics 16 bits
UUID (refer to Bluetooth SIG web page: https://www.bluetooth.org/en-
us/specification/adopted-specifications).
2.
Proprietary, non-standard profile. The user must define its own services and
characteristics. In this case, 128-bits UIDS are required and must be generated by
profile implementers (refer to UUID generator web page:
http://www.famkruithof.net/uuid/uuidgen)
A service can be added using the following command:
- aci_gatt_add_serv (Service_UUID_Type, Service_UUID_16, Service_Type,
Max_Attributes_Records, &ServHandle);
This command returns the pointer to the Service Handle (ServHandle ), which is used to
identify the service within the user application. A characteristic can be added to this service
using this command:
- aci_gatt_add_char (ServHandle, Char_UUID_Type, Char_UUID_16,
Char_Value_Length, Char_Properties, Security_Permissions, GATT_Evt_Mask,
Enc_Key_Size, Is_Variable, &CharHandle);
This command returns the pointer to the Characteristic Handle (Char_Handle), which is
used to identify the characteristic within the user application.
For a detailed description of the aci_gatt_add_serv() and aci_gatt_add_char() functions
parameters refer to the user manuals UM1755 and UM1865.
The following pseudocode example illustrates the steps to be followed for adding a service
and two associated characteristic on a proprietary, non-standard profile.
tBleStatus Add_Server_Services_Characteristics(void)
{
tBleStatus ret;
/*
The following 128bits UUIDs have been generated from the random UUID
generator:
D973F2E0-B19E-11E2-9E96-0800200C9A66 --> Service 128bits UUID
D973F2E1-B19E-11E2-9E96-0800200C9A66 --> Characteristic_1 128bits UUID
D973F2E2-B19E-11E2-9E96-0800200C9A66 --> Characteristic_2 128bits UUID
*/
/* Service 128bits UUID */
const uint8_t service_uuid[16] =
{0x66,0x9a,0x0c,0x20,0x00,0x08,0x96,0x9e,0xe2,0x11,0x9e,0xb1,0xe0,0xf2,0x7
3,0xd9};
/* Characteristic_1 128bits UUID */
const uint8_t charUuid_1[16] =
{0x66,0x9a,0x0c,0x20,0x00,0x08,0x96,0x9e,0xe2,0x11,0x9e,0xb1,0xe1,0xf2,0x7
3,0xd9};
/* Characteristic_2 128bits UUID */



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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88


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

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