| поискавой системы для электроныых деталей |
|
PM0237 датащи(PDF) 58 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 датащи(HTML) 58 Page - STMicroelectronics |
|
58 / 88 page ![]() Design an application using BlueNRG, BlueNRG-MS ACI APIs PM0237 58/88 DocID027104 Rev 2 Conn_Latency: 0 (Slave latency for the connection in a number of connection events); Supervision_Timeout: 60 (Supervision timeout for the LE Link); Conn_Len_Min: 2000 (Minimum length of connection needed for the LE connection); Conn_Len_Max: 2000 (Maximum length of connection needed for the LE connection). */ ret = aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR, GAP_Peripheral_address, PUBLIC_ADDR, 40, 40, 0, 60, 2000 , 2000); if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")} } /* end GAP_Peripheral_Make_Discoverable() */ Note: 1. If ret = BLE_STATUS_SUCCESS is returned, on termination of the GAP procedure, a EVT_LE_CONN_COMPLETE event is returned, on the HCI_Event_CB() event callback, to indicate that a connection has been established with the GAP_Peripheral_address (same event is returned on the GAP peripheral device). 2. The connection procedure can be explicitly terminated by issuing the command aci_gap_terminate_gap_procedure(). 3. The last two parameters Conn_Len_Min and Conn_Len_Max of the aci_gap_create_connection () are the length of the connection event needed for the BLE connection. These parameters allows user to specify the amount of time the master has to allocate for a single slave so they must be wisely choosen. In particular, when a master connects to more slaves, the connection interval for each slave must be equal or a multiple of the other connection intervals and user must not overdo the connection event length for each slave. 3.4.2 Set discoverable mode & use general discovery procedure (active scan) The following pseudocode example illustrates only the specific steps to be followed for putting a GAP Peripheral device in general discoverable mode, and for a GAP central device to start a general discovery procedure in order to discover devices within its radio range. /* GAP Peripheral: general discoverable mode (scan responses are sent): Note: It is assumed that the device public address has been set during the initialization phase as follows: uint8_t bdaddr[] = {0x12, 0x34, 0x00, 0xE1, 0x80, 0x02}; ret = aci_hal_write_config_data(CONFIG_DATA_PUBADDR_OFFSET, CONFIG_DATA_PUBADDR_LEN, bdaddr); if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")} */ void GAP_Peripheral_Make_Discoverable(void ) { |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |