Search found 7 matches

by chris_zou
Fri Nov 19, 2021 4:17 am
Forum: General Discussion
Topic: ESP32 S3 USB TX not working with binary data
Replies: 4
Views: 4275

Re: ESP32 S3 USB TX not working with binary data

Hi ESP_Sprite, Thank you for the update. On the PC side, I am using the WinUsb API "WinUsb_ReadPipe(...)" to receive data. As it is purely for data transfer between endpoints, I doubt WinUsb API will do any pre-processing on the received data. Probably can capture USB packets to see what the raw dat...
by chris_zou
Thu Nov 18, 2021 4:36 am
Forum: General Discussion
Topic: ESP32 S3 USB TX not working with binary data
Replies: 4
Views: 4275

Re: USB TX not working with binary data

Hi ESP_Sprite:
I am not using printf. I am using the vendor class function "tud_vendor_write(BufferPtr, size)" to write data into FIFO which eventually will be sent to PC.
by chris_zou
Thu Nov 18, 2021 2:35 am
Forum: General Discussion
Topic: ESP32 S3 USB TX not working with binary data
Replies: 4
Views: 4275

ESP32 S3 USB TX not working with binary data

Hi, I created one sample project for ESP32 S3 hardware with the following changes: 1. enable tinyUSB stack 2. enable vendor class with only 2 endpoints for bulk transfer (one IN and one OUT, buffer size are both 64 bytes) 3. ESP32 S3 is recognized as WinUSB device by PC and a test application on PC ...
by chris_zou
Mon Nov 08, 2021 1:02 am
Forum: General Discussion
Topic: BLE and USB not working together
Replies: 11
Views: 21730

Re: BLE and USB not working together

below is the main function (it is from the example blehr, the only changes are USB initialization code) void app_main(void) { int rc; /* Initialize NVS — it is used to store PHY calibration data */ esp_err_t ret = nvs_flash_init(); if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSI...
by chris_zou
Fri Nov 05, 2021 2:26 am
Forum: General Discussion
Topic: BLE and USB not working together
Replies: 11
Views: 21730

BLE and USB not working together

Environment: ESP32S3 I want to use both BLE and USB stack in the project. However it is discovered BLE and USB stack can not work together. I combine the example "blehr" and "tusb_sample_descriptor". Without initialization code from "blehr", "tusb_sample_descriptor" is working and can be detected by...
by chris_zou
Thu Nov 04, 2021 12:53 am
Forum: General Discussion
Topic: USB vendor class with Microsoft OS descriptor
Replies: 3
Views: 4690

Re: USB vendor class with Microsoft OS descriptor

Thanks for the prompt response with example.
I have fixed the issue which is due to a simple mistake (wIndex value for enum value for compat ID and properties are wrongly defined).
by chris_zou
Wed Nov 03, 2021 10:31 am
Forum: General Discussion
Topic: USB vendor class with Microsoft OS descriptor
Replies: 3
Views: 4690

USB vendor class with Microsoft OS descriptor

In the current SDK, it only supports CDC serial class. I would like to enable USB vendor class with Microsoft descriptor. The use case is to make ESP32S3 appear as WinUSB device so the device can send large data to PC using bulk transfer. So far setup always stop with the following steps and in devi...