Skip to main content

Debug Mode

1. Remove the back cover

Remove the six screws at the top, left and right sides and tail.

At this point the back cover can be picked up, taking care not to disconnect the switch wires.

2. Confirm the serial port number

Leave the xgo robot on, then plug in the TYPE-C cable and connect the xgo to the computer. Open the device manager on the computer (search in the box at the bottom of the taskbar to open it directly) You will see the device name USB-SERIAL CH340 in the port section, COM4 is the serial port number

3. Writing code for debugging

import xgolib
xgo = xgolib.XGO("COM4", 115200)

Pass in the port number determined above when instantiating the object.

4. Shut down

The Type-C cable needs to be removed before switching off the machine, and then power off the xgo.