Skip to main content

Communication protocols

USB

We utlize USB CDC connection to create a serial link from the root device to the DeepVibe Server.

Hardware connection

  • The setup is created where the client works as a USB Device and the server works as USB Host using USB CDC stack and implemented using TinyUSB library supported by ESP-IDF. Code is based on this esp-idf example

  • Hardware requirement (Information extracted from here)

    Two ESP boards that have USB-OTG supported. One will act as USB host and the other as USB device. Connect USB_D+, USB_D-, GND and +5V signals of USB host to USB device.

  • Pin assignment (Information extracted from here)

    Pin assignment is only needed for ESP chips that have an USB-OTG peripheral. If your board doesn't have a USB connector connected to the USB-OTG dedicated GPIOs, you may have to DIY a cable and connect D+ and D- to the pins listed below.

    ESP BOARD          USB CONNECTOR (type A)
    --
    | || VCC
    [USBPHY_DM_NUM] ------> | || D-
    [USBPHY_DP_NUM] ------> | || D+
    | || GND
    --

    Refer to soc/usb_pins.h to find the real GPIO number of USBPHY_DP_NUM and USBPHY_DM_NUM.

    USB_DPUSB_DM
    ESP32-S2/S3GPIO20GPIO19