| поискавой системы для электроныых деталей |
|
PM0237 датащи(PDF) 82 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 датащи(HTML) 82 Page - STMicroelectronics |
|
82 / 88 page ![]() Design an application using BlueNRG, BlueNRG-MS ACI APIs PM0237 82/88 DocID027104 Rev 2 The two devices are discovered thorugh the EVT_LE_ADVERTISING_REPORT events. 6. Once the two devices are discovered, Master&Slave device starts two connections procedures (as Central) for connecting, respectively, to Slave_A and Slave_B devices: /* Connect to Slave_A: Slave_A addreess type and address have been found during the discovery procedure within the EVT_LE_ADVERTISING_REPORT event */ ret= aci_gap_create_connection(LE_Scan_Interval=0x0010, LE_Scan_Window=0x0010, Peer_Address_Type= ”Slave_A address type”, Peer_Address= ”Slave_A address”, Conn_Interval_Min=0x6c, Conn_Interval_Max=0x6c, Conn_Latency=0x00, Supervision_Timeout=0xc80, Minimum_CE_Length=0x000c, Maximum_CE_Length=0x000c) /* Connect to Slave_B: Slave_B addreess type and address have been found during the discovery procedure within the EVT_LE_ADVERTISING_REPORT event */ ret= aci_gap_create_connection(LE_Scan_Interval=0x0010, LE_Scan_Window=0x0010, Peer_Address_Type= ”Slave_B address type”, Peer_Address= ”Slave_B address”, Conn_Interval_Min=0x6c, Conn_Interval_Max=0x6c, Conn_Latency=0x00, Supervision_Timeout=0xc80, Minimum_CE_Length=0x000c, Maximum_CE_Length=0x000c) 7. Once connected, Master&Slave device enables the characteristics notification, on both of them, using the aci_gatt_write_charac_descriptor() API. Slave_A and Slave_B devices start the characterisitic notification by using the aci_gatt_upd_char_val() API. 8. At this stage, Master&Slave device enters in discovery mode (acting as Peripheral): /* Put Master&Slave device in Discoverable Mode with Name = 'Test' = [0x08,0x74,0x65,0x73,0x74*/ ret = aci_gap_set_discoverable(Advertising_Type= 0x00, Advertising_Interval_Min=0x20, Advertising_Interval_Max=0x100, Local_Name_Length=0x05, Local_Name=[0x08,0x74,0x65,0x73,0x74], Slave_Conn_Interval_Min = 0x0006, |
|
ссылки 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 |