Hi,
I see the Matter CHIP integration uses BLE for commissioning, so to advertise a ble service the documentation advises to use NUS.
What about scanning for ble devices and connecting to them?
Hi,
I see the Matter CHIP integration uses BLE for commissioning, so to advertise a ble service the documentation advises to use NUS.
What about scanning for ble devices and connecting to them?
Hi,
You can use the CHIP Tool to scan and commission. See Working with the CHIP Tool.
Regards,
Amanda H.
Hi,
You can use the CHIP Tool to scan and commission. See Working with the CHIP Tool.
Regards,
Amanda H.
No, I meant I need to scan for ble devices from the nrf5340 and connect to them.
Hi,
Do you mean the BLE central to connect? If so, you can use Bluetooth: Central UART.
Regards,
Amanda H.
I'm trying to do the usual bt_le_scan_start(&scan_param, device_found) but with the Matter sample integrated bt_hci_cmd_send_sync fails with error 1 (opcode 0x200b status 0x01). That would translate to LE Set Scan Parameters throwing invalid address.
CHIP does enable BLE and use it without errors for Matter commissioning but I can't use it later in my software.
Hi,
0x200b is the opcode for BLE Set Scan Parameters and 0x01 is the error code for UNKNOWN HCI COMMAND.
The Unknown HCI Command error code indicates that the Controller does not understand the HCI Command packet opcode that the Host sent. The opcode given might not correspond to any of the opcodes specified in this document, or any vendor-specific opcodes, or the command may have not been implemented.
-Amanda H.
I see, and what could be causing the scan function to throw unknown hci command?