Lego Mindstorms

  1. Connect to PC via USB, you should see a new network interface appear
  2. Configure the new network interface (set ip address and add route table record)

    ip addr add <ip address>/<prefix> dev <interface> 
    ip route add <ip address>/<prefix> dev <interface>
    
    where <ip address>/<prefix> can be for example 192.168.0.1/24 and <interface> is the name of the new network interface (can be found in dmesg)

  3. Set the ip address of the EV3 brick (Wireless and Network > All Network Connection > Wired > IPv4 > Change) to an ip address from the same subnet as <interface> and gateway <interface ip> Example: PC <interface> has ip address 192.168.0.1/24 Set the EV3 brick's ip to 192.168.0.2/24 and gateway to 192.168.0.1

  4. Install the Lego Mindstorms Micropython VSCode extension

  5. Under the EV3DEV DEVICE BROWSER tab in VSCode click the connect button

  6. Enter a device name (for example ev3) and the ip address you assigned to the device in step 3.