Closed m4rk0m closed 11 months ago
Hi @m4rk0m ,
The usb_host_ch34x_vcp
is not a buildable project, it is only a component that can be added to your project.
An example usage can be found here: https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/cdc/cdc_acm_vcp
I got it thanks, it works for ch430, but when I connect Arduino Mega it throws an error even after I change the pid and vid. Isn't the Arduino also using cdc acm protocol? Arduino pid 0x0042 and vid 0x2341
Isn't the Arduino also using cdc acm protocol?
Arduino probably uses CDC-ACM-like communication. CH340 uses vendor-specific class that is similar to CDC-ACM.
From a quick google search I could find that you are probably trying to connect to an FTDI chip. Could you please try modifying the usb_host_ftdi_vcp
component?
Yea I tried but still same. I've looked it up and arduino mega uses ATMEL mega16u2 chip for serial communication not ftdi. This is the error I get:
I (293) main_task: Calling app_main()
I (293) VCP example: Installing USB Host
I (333) VCP example: Installing CDC-ACM driver
I (333) VCP example: Opening any VCP device...
E (703) HUB: Bad transfer status: CHECK_SHORT_PROD_STR_DESC
E (703) HUB: Stage failed: CHECK_SHORT_PROD_STR_DESC
@m4rk0m We fixed the enumeration issues with Stage failed: CHECK_SHORT_PROD_STR_DESC
internally, it should get public in upcoming days. I'll keep you posted
great, thanks
@m4rk0m The fix https://github.com/espressif/esp-idf/commit/7010349a9aa22785b7ddc1f80df982185bedd6e5 is in master, could you please try again?
still:
I (345946) VCP example: Opening any VCP device...
E (347146) HUB: Bad transfer status 4: CHECK_SHORT_PROD_STR_DESC
E (347146) HUB: Stage failed: CHECK_SHORT_PROD_STR_DESC
slightly different with the status 4...
also tried with another Arduino with ch340 and it sabotages connection every few outputs:
I (122672) VCP example: Opening any VCP device...
test 143
test 144
test 145
test 146
test 147
test 148
tesW (122972) CDC_ACM: Unsupported notification type 0xBD
I (122972) CDC_ACM: 46 bd ff ee
test 576
test 577
test 578
tW (122982) CDC_ACM: Unsupported notification type 0x3F
I (122982) CDC_ACM: 46 3f ff ee
It seems that you will need a specific driver for you USB device. At the moment, we don't have resources to implement it. We can leave this issue open and come back to it, if there are more users requesting this feature
m1 MacBook