Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP HID Vendor ID and Product ID do not apply in BTC mode (IDFGH-11785) #12880

Closed
3 tasks done
mitchellcairns opened this issue Dec 27, 2023 · 3 comments
Closed
3 tasks done
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@mitchellcairns
Copy link
Contributor

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

master

Espressif SoC revision.

ESP32

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32-WROOM

Power Supply used.

USB

What is the expected behavior?

When setting the vendor_id and product_id members of esp_hid_device_config_t, then calling esp_hidd_dev_init, the appropriate Vendor ID and Product ID are reflected on the host device upon successful connection.

What is the actual behavior?

The Vendor ID is always shown as 0xFFFF and the Product ID is always shown as 0x0000

Steps to reproduce.

  1. Create an example HID project (The Mouse is fine)
  2. Set the SDK settings to only use BT Classic HID
  3. Adjust the Vendor/Product IDs
  4. Compile and run, then pair to the device
  5. Using a software such as HID Viewer on Windows, observe the reported Product ID and Vendor ID

Debug Logs.

No response

More Information.

No response

@mitchellcairns mitchellcairns added the Type: Bug bugs in IDF label Dec 27, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 27, 2023
@github-actions github-actions bot changed the title ESP HID Vendor ID and Product ID do not apply in BTC mode ESP HID Vendor ID and Product ID do not apply in BTC mode (IDFGH-11785) Dec 27, 2023
@mitchellcairns
Copy link
Contributor Author

image

See the HID example code and how it does not send the appropriate VID or PID.

@espressif-bot espressif-bot assigned esp-zhp and boblane1 and unassigned esp-zhp Dec 28, 2023
@alex-freeaim
Copy link

I'm also getting the same problem.

IDF version: 5.1
Espressif SoC revision: ESP32
Operating System used: Windows
How did you build your project?: VS Code IDE (with PlatformIO)
If you are using Windows, please specify command line type: None
Development Kit: Adafruit Feather ESP32 V2
Power Supply used: USB

The example is here:
https://github.com/espressif/esp-idf/blob/release/v5.1/examples/bluetooth/esp_hid_device/main/esp_hid_device_main.c
(Set HID_DEV_MODE to HIDD_BT_MODE)

If there are any updates on the progress of the fix, please let us know. Thanks!

@boblane1
Copy link
Collaborator

Hi @alex-freeaim

@mitchellcairns has created a pull request(#12889) to solve this issue, but some changes still need to be made. You can refer to it for now.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Opened Issue is new labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

5 participants