Skip to content

Bluetooth class example #3372

@Loc15

Description

@Loc15

Related area

class driver

Hardware specification

Pico W or other boards with bluetooth support

Is your feature request related to a problem?

Hi, I see there is not an example for Bluetooth device class, I'm would like to get some example how it's the correct use of this driver.

I'm trying to use this driver with rp2040, but I'm having a hard time with an error about the setting the device configuration. I'm getting this error:

USBD Setup Received 00 09 01 00 00 00 00 00
Set Configuration
Open EP 81 with Size = 16
Allocated 64 bytes (0x50100180)
Open EP 82 with Size = 64
Allocated 128 bytes (0x501001C0)
Open EP 02 with Size = 64
Allocated 128 bytes (0x50100240)
Queue EP 02 with 64 bytes ...
BTH opened
Bind EP 81 to driver id 0
Bind EP 82 to driver id 0
Bind EP 02 to driver id 0
Bind EP 83 to driver id 0
Bind EP 03 to driver id 0
Bind EP 83 to driver id 0
Bind EP 03 to driver id 0
Bind EP 83 to driver id 0
Bind EP 03 to driver id 0
Bind EP 83 to driver id 0
Bind EP 03 to driver id 0
Bind EP 83 to driver id 0
Bind EP 03 to driver id 0
Bind EP 83 to driver id 0
Bind EP 03 to driver id 0
process_set_config 1151: ASSERT FAILED
process_control_request 865: ASSERT FAILED
Stall EP0

Describe the solution you'd like

Add an example for this device class, as this seems to be the only one missing.

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions