| 전자부품 데이터시트 검색엔진 |
|
UM2071 데이터시트(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM2071 데이터시트(HTML) 25 Page - STMicroelectronics |
|
25 / 56 page ![]() UM2071 BlueNRG-1 beacon demonstration application DocID029370 Rev 3 25/56 6 BlueNRG-1 beacon demonstration application The BlueNRG-1 beacon demo is supported by the BlueNRG-1 development platform (STEVAL-IDB007V1). It demonstrates how to configure a BlueNRG-1 device to advertise specific manufacturing data and allow another BLE device to determine whether it is in BlueNRG-1 BLE beacon device range. 6.1 BLE Beacon application setup This section describes how to configure a BlueNRG-1 device to act as a beacon device. 6.1.1 Initialization The BlueNRG-1 BLE stack must be correctly initialized thus: aci_gatt_init(); aci_gap_init(GAP_PERIPHERAL_ROLE, 0, 0x08, &service_handle, &dev_name_char_handle, &appearance_char_handle); See the BlueNRG-1 BLE stack documentation for more information on these and following commands. 6.1.2 Define advertising data The BLE Beacon application advertises the following manufacturing data: Table 5: BlueNRG-1 Beacon advertising manufacturing data Data field Description Notes Company identifier code SIG company identifier(1) Default is 0x0030 (STMicroelectronics) ID Beacon ID Fixed value Location UUID Beacons UUID Used to distinguish specific beacons from others Major number Identifier for a group of beacons Used to group a related set of beacons Minor number Identifier for a single beacon Used to identify a single beacon Tx Power 2's complement of the Tx power Used to establish how far you are from device Notes: (1)available at: https://www.bluetooth.org/en-us/specification/assigned-numbers/company-identifiers 6.1.3 Entering non-connectable mode The BLE Beacon device uses the GAP API command to enter non-connectable mode thus: aci_gap_set_discoverable(ADV_NONCONN_IND, 160, 160, PUBLIC_ADDR, NO_WHITE_LIST_USE,0, NULL, 0, NULL, 0, 0); To advertise the specific selected manufacturer data, the BLE Beacon application can use the following GAP APIs: /* Remove TX power level field from the advertising data: it is necessary to have enough space for the beacon manufacturing data */ aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL); |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |