-
Notifications
You must be signed in to change notification settings - Fork 7.6k
vendorRequestCallback not working in USBVendor.ino example #10670
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
Comments
I'm a bit confused. Is this meant to be an alternate code for me to try? If so, it doesn't even seem valid. the Vendor.begin method returns void as far as I can tell, both in 3.0.7 and 3.1.x. So that check thats assuming a bool isn't going to work... |
That said, I took out that check so that it would build, and flashed it onto my ESP32 and tried it. Still nothing at all in the console it looks like when receiving messages from the browser or anything else that should be triggering them. It looks like I may have misspoken in my first post on this topic. As far as I know, on Core 3.0.7 I have never been able to receive a message back from the browser or any other incoming message that should get logged with the vendor request or vendor event callbacks. |
I have been continuing to mess with this while waiting for responses and I think I may just be even more confused than I was before. But here's some additional notes I have gathered so far. I have been testing this using both the Arduino IDE and also PlatformIO with the same results. I have tried many different combinations of USB settings in Arduino IDE and build flags for PIO with varying results. What I have narrowed down though is this:
Hopefully these additional notes are helpful. I'd really like to get this figured out! Let me know if I can provide any other useful info to help in debugging this! |
Hi! |
Hi @Csontikka, unfortunately I have not figured anything out yet. I have kind of put the project aside for now since I really need this in order for it to work. I hope they can resolve it soon so I can resume the project! If you find anything, let me know! |
Hi @ms4sman & @Csontikka I have also the same issue. I can send data from the ESP32 S3 to the browser. But the otherway around wont work. I also tried this library Adafruit but that one is just working the otherway around. Via that library i can only send data from the browser to the ESP32 S3. I am looking for a solution to send data in both directions, you would think that woulndt be that hard? |
I have had the exact same findings with the Adafruit library as well unfortunately. I hope that one or the other gets resolved soon! |
can you guys provide us with code and webpage to reproduce this? One that you know is working with ATmega ? |
For myself, I only have the ESP32, no ATmega so I'll let one of the others fill in about that if they have one. In my testing though, I have this problem just using the included example sketch (also included in my original post) and using the demo page that goes along with it. The problem is present also in my project but in the process of tracking it down I ended up stripping back to just the original example and found that it happens there too. Thanks! |
When I was developing the library, I had a tool I created on my computer and tested it. Since then many things (Chromium) and operating systems changed (MacOS) and my tools no longer work. Obviously something must have changed in a mean time to make Vendor not working, so I need some sort of confirmed working web page to test against |
@me-no-dev this libraryWebUSB ️Arduino is working with the ATmega32U4 and can send and receive data. You can find an example under demos/rgb/sketch/sketch.ino the working is almost the same with Serial.read() and Serial.write() , but this one is not working with the ESP32 s2 or s3 maybe you can use it as an example? I think it is a small thing that should be changed in the library because the Adafruit version can send data from the browser to the ESP S3 it would be realy nice if you can help us with this |
Any progress on this? My project is kind of on hold in the meantime until I can get bi-directional communications working. If there's anything I can do to help, let me know! I just don't have any other devices besides the ESP32-S3 so I unfortunately can't help with testing on other hardware. |
I still have the same issue would be fine if someone could fix this... |
Board
ESP32-S3
Device Description
DevKitC
Hardware Configuration
Currently nothing else connected to any pins
Version
latest development Release Candidate (RC-X)
IDE Name
CLion with PlatformIO Plugin
Operating System
Windows and Linux
Flash frequency
40 MHz
PSRAM enabled
yes
Upload speed
115200
Description
I'm trying to use the example sketch USBVendor.ino from the examples folder. Everything works good, I can connect with the demo HTML page and communicate both ways and it's good. But the vendorRequestCallback method never seems to be hit. None of the Serial logs from it ever appear in the console.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: