Run this directly in terminal (no .py file needed):
python3 - <<'PY'
import depthai as dai
with dai.Device() as d:
print("USB speed:", d.getUsbSpeed().name)
PY
HIGH / 480M means USB2, SUPER / 5000M means USB3.
If it still stays on USB2 after app start, it’s usually cable/port...