这个功能需要拿手操器来测试

第一,设置$USBCDC/Enable=Off , 设置你现在的esp32为主机(你可以理解为一台电脑)

第二,下载https://webinstaller.esp3d.io/这个固件在手操器上方便操作

第三,手操器里面选择setting,选择通信模式为serial,再回到setting,选择setting editor,选择 swap RX TX 为 disable

第四,setting 里面的 baud rate 设置为 115200

这样就可以通信上了

3.1 Test Secondary USB

Advanced Tests · Optional · Test the secondary USB connection with a pendant / hand controller
ℹ️
Objective: This section tests the secondary USB communication function. A pendant / hand controller is required for this test.
⚠️
NOTE: This is an optional advanced test. If you do not use a pendant / hand controller, you can skip this section.
1
Set the Controller USB Mode
  • Open the FluidNC WebUI command line.
  • Enter command: $USBCDC/Enable=Off
  • This sets the ESP32 side to host mode for this test. You can understand it as making the ESP32 work like a small computer.
  • Restart the controller if required.
2
Install ESP3D Firmware on the Pendant
  • Connect the pendant / hand controller to your computer.
  • Open the ESP3D Web Installer: https://webinstaller.esp3d.io/
  • Install the ESP3D firmware on the pendant.
  • Restart the pendant after installation.
3
Set Pendant Communication
  • On the pendant, open Settings.
  • Set communication mode to Serial.
  • Go back to Settings, then open Setting Editor.
  • Set Swap RX TX to Disable.
  • Set baud rate to 115200.
4
Test Communication
  • Connect the pendant to the controller secondary USB port.
  • Wait a few seconds for the connection to initialize.
  • If the settings are correct, the pendant should communicate with the controller normally.
Expected Results
  • The controller accepts $USBCDC/Enable=Off.
  • The pendant is running ESP3D firmware.
  • Communication mode is set to Serial.
  • Swap RX TX is set to Disable.
  • Baud rate is set to 115200.
  • The pendant can communicate with the controller through the secondary USB port.