Closed Yingdong-Hu closed 5 months ago
Hi, I encountered this error as well. What's the solution?
The person perviously asked solved the issue by just replugging the spacemosue to the machine after all the configuration setup following our documentation. Please give me more details if things still don't work.
Just a reminder:
Try to use "lsusb". This will list all connected USB devices, and you should see an entry for your SpaceMouse. The ATTRS{idProduct} = "yyyy" will be shown in the format xxxx:yyyy. Then, you might need to modify xx-spacemouse.rules under the folder /etc/udev/rules.d/:
KERNEL=="hidraw*", ATTRS{idVendor}=="256f", ATTRS{idProduct}=="yyyy", MODE="0666", GROUP="plugdev" SUBSYSTEM=="usb", ATTRS{idVendor}=="256f", ATTRS{idProduct}=="yyyy", MODE="0666", GROUP="plugdev"
This works for me.
I use SpaceMouse Compact. The vendor_id=9583, product_id=50741 But it seems that hid cannot open the device when I run
python examples/run_deoxys_with_spacemouse.py
I get the vendor_id and product_id from
hid.enumerate()
. I found that after connecting the SpaceMouse to the computer, this item will appear, so I am sure this is its id. I don’t know if these outputs mean that the spacemouse is successfully connected.