- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the RFCOMM_Serial_Port_Multi-Port example project for a CYW20721 the function hci_spp_handle_command is in the file hci_spp.c
I can't find anywhere in the code, or library headers any clues as to how hci_spp_handle_command is registered to receive commands from from the HCI UART. Is "hci_spp_handle_command" a defacto name that has to be used and that is baked into the Bluetooth stack? Or is the function registered through a const structure somewhere?
Solved! Go to Solution.
- Tags:
- HCI UART Example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @bt_fw_eng ,
spp_multi_port_proc_rx_cmd (user defined) is the handle used to receive HCI commands over UART from the host. The handle is registered in the configuration structure wiced_transport_cfg_t transport_cfg in spp_multi_port.c. Whenever the SPP group command is received, hci_spp_handle_command() (user defined) is called to process the commands.
Check the following exercise where this is explained clearly.
Bragadeesh