1/*Success code*/2#defineHCI_SUCCESS 0x003/*Possible error codes*/4#defineHCI_UNKNOWN_HCI_COMMAND 0x015#defineHCI_NO_CONNECTION 0x026#defineHCI_HW_FAILURE 0x037#defineHCI_PAGE_TIMEOUT 0x048#defineHCI_AUTHENTICATION_FAILURE 0x059#defineHCI_KEY_MISSING 0x0610#defineHCI_MEMORY_FULL 0x0711#defin...
return("Page Timeout"); case HCI_AUTHENTICATION_FAILURE: return("Authentication Failure"); case HCI_KEY_MISSING: return("Key Missing"); case HCI_MEMORY_FULL: return("Memory Full"); case HCI_CONN_TIMEOUT: return("Connection Timeout"); case HCI_MAX_NUMBER_OF_CONNECTIONS: return("Max Number...
*@returnthe Android disconnect reason for apps.*/static@BluetoothAdapter.BluetoothConnectionCallback.DisconnectReasoninthciToAndroidDisconnectReason(inthciReason) {switch(hciReason) {case/*HCI_SUCCESS*/0x00:case/*HCI_ERR_UNSPECIFIED*/0x1F:case/*HCI_ERR_UNDEFINED*/0xff:returnBluetoothStatusCodes.ERROR_...
*@returnthe Android disconnect reason for apps.*/static@BluetoothAdapter.BluetoothConnectionCallback.DisconnectReasoninthciToAndroidDisconnectReason(inthciReason) {switch(hciReason) {case/*HCI_SUCCESS*/0x00:case/*HCI_ERR_UNSPECIFIED*/0x1F:case/*HCI_ERR_UNDEFINED*/0xff:returnBluetoothStatusCodes.ERROR_...
Describe the bug We have an application based on a nrf52840. We see k_sem_take failed with err -11 assertion when we stress the device with a lot of notifications and read requests at the same time. The system is used for a measurement d...
Discussions Collaborate outside of code Explore All features Documentation GitHub Skills Blog Solutions By size Enterprise Teams Startups By industry Healthcare Financial services Manufacturing By use case CI/CD & Automation DevOps DevSecOps Resources Topics AI DevOps Security Software ...
conn->disc_timeout = HCI_DISCONN_TIMEOUT; hci_conn_put(conn); }if(test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend)) {if(!ev->status) {structhci_cp_set_conn_encryptcp;cp.handle = ev->handle; cp.encrypt =0x01;hci_send_cmd(hdev, HCI_OP_SET_CONN_ENCRYPT,sizeof(cp), &cp); ...
355 #define HCI_ERROR_CODE_PAGE_TIMEOUT 0x04 356 #define HCI_ERROR_CODE_AUTH_FAILURE 0x05 357 #define HCI_ERROR_CODE_PIN_KEY_MISSING 0x06 358 #define HCI_ERROR_CODE_MEM_CAP_EXCEEDED 0x07 359 #define HCI_ERROR_CODE_CONN_TIMEOUT 0x08 360...
简单梳理RFKILL子系统、基于USB的Bluetooth驱动、Bluetooth守护进程bluetoothd、Bluetooth配置工具bluetoothctl/hcitool/hciconfig等。 1 RFKILL子系统 rfkill 是 Linux 系统中的一个工具和内核接口,用于启用或禁用
#define VHCI_MAX_TIMEOUT_MS 2000 static SemaphoreHandle_t vhci_send_sem; static void deinitialize_bluetooth(void); static esp_err_t initialise_bluetooth(void); #endif volatile uint8_t action = 0; volatile uint8_t datapath = 0; volatile uint8_t station_connected = 0; @@ -141,31 +128...