Search found 21 matches

by sraposo
Thu Oct 24, 2024 5:29 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: 0
Views: 549

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

ESP32-S3 - TinyUSB I've just faced a weird situation: an USB Logitech mouse, that fully works when connected to a PC, does not send any byte related to scroll wheel. Input report contains only 3 bytes: 1 for buttons (including the scroll wheel switch), other for horizontal movement and the last for ...
by sraposo
Sun Oct 20, 2024 2:11 pm
Forum: ESP-IDF
Topic: Is there a way to get the number assigned to a COM port emulated by CDC?
Replies: 11
Views: 2591

Re: Is there a way to get the number assigned to a COM port emulated by CDC?

horace99 wrote:
Sun Oct 20, 2024 5:02 am
what software are you running on the PC?
how do you tell it which COM port to use?
SW running on PC is proprietary and developed by a third party.

The current way to get the current COM port is referring to the Windows' Device Manager.
by sraposo
Sat Oct 19, 2024 2:17 pm
Forum: ESP-IDF
Topic: Is there a way to get the number assigned to a COM port emulated by CDC?
Replies: 11
Views: 2591

Re: Is there a way to get the number assigned to a COM port emulated by CDC?

when connecting microcontrollers to PCs where the Windows COM port or Linux /dev/ttyUSB* port is unknown I usually have the host software (implemented in C++, C#, Java, etc) cycle thru the connected serial ports transmitting a prompt (e.g. a "?") to each device in turn the target device would be pr...
by sraposo
Sat Oct 19, 2024 11:49 am
Forum: ESP-IDF
Topic: Is there a way to get the number assigned to a COM port emulated by CDC?
Replies: 11
Views: 2591

Re: Is there a way to get the number assigned to a COM port emulated by CDC?

This COM port number is likely assigned by Windows, exclusively.
I could not find any data structure in TinyUSB that contains an obvious, nor intuitive, reference to this.
by sraposo
Fri Oct 18, 2024 1:42 pm
Forum: ESP-IDF
Topic: Is there a way to get the number assigned to a COM port emulated by CDC?
Replies: 11
Views: 2591

Re: Is there a way to get the number assigned to a COM port emulated by CDC?

If I get you right, it would be enough to receive (part of) descriptor of the current USB devices attached to the PC!
How can I do it?
by sraposo
Fri Oct 18, 2024 11:01 am
Forum: ESP-IDF
Topic: Is there a way to get the number assigned to a COM port emulated by CDC?
Replies: 11
Views: 2591

Is there a way to get the number assigned to a COM port emulated by CDC?

Hi! My current project ESP32-S3 uses CDC and it's working properly. But the only way to know the number assigned to the COM port (example: COM10) is referring to the device manager, what makes it inconvenient to a remote application that intends to be fully user-independent. So, the question is: is ...
by sraposo
Thu Jul 25, 2024 11:43 pm
Forum: ESP-IDF
Topic: How to turn on or off the LEDs of an USB keyboard?
Replies: 0
Views: 704

How to turn on or off the LEDs of an USB keyboard?

I am developing an ESP32S3-based device that has to be able to host a standard USB keyboard The "usb_host_lib" example (https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/usb_host_lib/main) works properly to deliver user's keystrokes to the hid host , but does not show ho...
by sraposo
Sat Feb 25, 2023 1:39 am
Forum: Documentation
Topic: ESP32 instruction set or assembly (ASM) programming docs?
Replies: 19
Views: 66160

Re: ESP32 instruction set or assembly (ASM) programming docs?

Hi.

Indeed, the ideal would be to program directly the ESP32 components, with no intermediation of a RTOS.
by sraposo
Fri Aug 06, 2021 2:31 pm
Forum: ESP-IDF
Topic: routing reference voltage to GPIO pin while WIFI is enabled
Replies: 2
Views: 3911

Re: routing reference voltage to GPIO pin while WIFI is enabled

To whom it may interest, a tip on ADC recalibration: I could not find a way to make function "adc_vref_to_gpio" works but I've got other solution to deal with ADC calibration: to edit "vref" field in "esp_adc_cal_characteristics_t" struct, that's the last parameter in function "esp_adc_cal_character...
by sraposo
Wed Aug 04, 2021 7:11 pm
Forum: ESP-IDF
Topic: routing reference voltage to GPIO pin while WIFI is enabled
Replies: 2
Views: 3911

Re: routing reference voltage to GPIO pin while WIFI is enabled

Hi! I also face a problem related to "adc_vref_to_gpio" function, since it results a error at compile time, although documentation at https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/adc.html?highlight=adc_power_acquire# "adc2_vref_to_gpio" cause no compile tim...