Search found 6 matches

by Manoel
Sat Jan 25, 2025 8:08 pm
Forum: ESP-IDF
Topic: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to a PC
Replies: 18
Views: 3433

Re: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to

I recorded a video demonstrating the problem (disregard the fact that I'm using the Arduino IDE, it's just for debugging, as my ESP32 is an S2 Mini).
https://www.youtube.com/watch?v=a5JflUhiGdU
by Manoel
Sat Jan 25, 2025 7:58 pm
Forum: ESP-IDF
Topic: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to a PC
Replies: 18
Views: 3433

Re: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to

Sorry for the delay, I wasn't home these days. My code is the basic example from ESP32 (esp-idf/examples/peripherals/usb/host/hid) with an addition of code on line 322. This modification allows the HID data output to be displayed. Below is the complete code as well. static void hid_host_mouse_report...
by Manoel
Thu Jan 23, 2025 11:15 am
Forum: ESP-IDF
Topic: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to a PC
Replies: 18
Views: 3433

Re: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to

There is a possibility that it might be a device that is not fully compatible with HID, but I really don't believe that because, in my case, I tested more than six different manufacturers (all simple three-button mice), and only one of them worked. Unless the vast majority of manufacturers have deci...
by Manoel
Wed Jan 22, 2025 5:19 pm
Forum: ESP-IDF
Topic: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to a PC
Replies: 18
Views: 3433

Re: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to

I discovered something from a report generated by the USB Device Tree software. Apparently, the mice (even those that don't work) are indeed operating (in Windows) in USB 1.1 mode and at LOW speed. The only difference is the type of packet transmission, which in Windows is set to "Interrupt." Howeve...
by Manoel
Tue Jan 21, 2025 11:40 pm
Forum: ESP-IDF
Topic: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to a PC
Replies: 18
Views: 3433

Re: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to

I truly understand that the issue is not with the protocol but rather with the communication the ESP is having with the mouse. The way the native "hid host" library is configured, only 3 bytes arrive in the output. For some older mice, I was able to make it work perfectly. However, with newer mice, ...
by Manoel
Tue Jan 21, 2025 1:19 am
Forum: ESP-IDF
Topic: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to a PC
Replies: 18
Views: 3433

Re: Update 1:ESP32-S3 - TinyUSB - mouse: scroll wheel does not work when mouse is connected to ESP32-S3,but works if to

Hello, were you able to solve your problem? I'm facing something similar: on some mice, the HID data doesn't contain the wheel information. Regarding the 3 bytes you mentioned, I noticed through a sniffer with Wireshark that these mice (where the wheel doesn't work) send some kind of "ID" in the fir...