Skip to content

ESP935

Syntax: [ESP935](ENABLE/DISABLE/CLOSE) json=(no) pwd=(admin password)

Description: display/set native USB CDC state

Controls the native USB CDC command client: on boards using the ESP32-S2/S3 native USB port (no USB-UART chip), a computer opens the USB serial port to send ESP3D commands and G-code and to see the answers. Only available in builds with the USB CDC device feature.

  • State
    • empty: displays the state and whether a terminal has the port open
    • ENABLE: enables the client and starts it if it is stopped
    • DISABLE: disables the client, applied at next boot (or use CLOSE)
    • CLOSE: stops the client until next boot or ENABLE
  • json=no: output format, JSON or plain text
  • pwd=(admin password): the admin password if authentication is enabled

Same setting as service/usb_cdc “enable” in [ESP400], and USB_CDC_active in the [services] section of esp3dcnf.ini. [ESP420] reports the client as usb_cdc.

GuestUserAdmin
NoGetGet/Set
{
"cmd":"935",
"status":"ok",
"data":"ENABLED - Connected"
}
  • cmd: id of requested command, should be 935
  • status: status of command, should be ok
  • data: content of response, here the current state

Plain text:

ENABLED - Connected