Skip to content
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

Usb ip with two esp32's (AEGHB-801) #127

Open
maaamcube opened this issue Sep 6, 2024 · 13 comments
Open

Usb ip with two esp32's (AEGHB-801) #127

maaamcube opened this issue Sep 6, 2024 · 13 comments

Comments

@maaamcube
Copy link

Hi everyone,
I don't know where i can answer my question because there is no discussion section.
I looking to establish wifi comunication between two esp32's, one connected to a PC to the software and another one to Stm32's(USB device).
Is it possible to send the Stm32's USB's to the PC using the esp now ? like usb ip
Thank's.

@github-actions github-actions bot changed the title Usb ip with two esp32's Usb ip with two esp32's (AEGHB-801) Sep 6, 2024
@lhespress
Copy link
Collaborator

@maaamcube PTAL get-start example which show two ESP32 comunication. One device receives data through the serial port and broadcasts it to all nodes through ESP-NOW data. The others will output the data through the serial port when receive the data.

@maaamcube
Copy link
Author

maaamcube commented Sep 6, 2024

@lhespress This one is using uart, no ? how can i use USB ?

@lhespress
Copy link
Collaborator

@maaamcube PTAL usb_wireless_bridge solutions.

@maaamcube
Copy link
Author

@lhespress i can't use usb for the MCU

@lhespress
Copy link
Collaborator

@maaamcube The struct is as follows, right?
Struct

@maaamcube
Copy link
Author

@lhespress exactly, only usb, no uart.

@lhespress
Copy link
Collaborator

@maaamcube Correct?
001

@maaamcube
Copy link
Author

maaamcube commented Sep 19, 2024

@lhespress yes, my stm32 is a usb device

@lhespress
Copy link
Collaborator

@maaamcube
Copy link
Author

@lhespress it's an example for usb only, there is no wifi.

@lhespress
Copy link
Collaborator

@maaamcube First, confirm the USB function works fine based on usb example, Then replace UART to USB and confirm the ESP-NOW function works fine based on get-start example.

@maaamcube
Copy link
Author

@lhespress i tested https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb and https://github.com/espressif/esp-iot-solution/tree/master/examples/usb/host/usb_cdc_basic works fine but i don't know how to replace UART by USB, can you show me what i have to do ?

@lhespress
Copy link
Collaborator

@maaamcube Please change app_uart_initialize API to USB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants