smartavionics / RawMouse

Cura Plugin that lets you use a HID mouse to pan/rotate/zoom the view
94 stars 7 forks source link

Not working (Win 10, Cura 4.5, Space mouse wireless) #3

Closed RealTadango closed 4 years ago

RealTadango commented 4 years ago

I am running Windows 10 and have a spacemouse Wireless. I am running Cura 4.5 and see the plugin in Cura. Under device information it show profile spacemouse. So, all looks correct? But there is no movement in Cura. I have stopped the 3dxWare driver, but that makes no difference....

Anything else i can try?

smartavionics commented 4 years ago

Hi,

Have a look in the cura.log file and see if there are any error messages tagged RawMouse.

When the plugin is loaded you should get messages similar to below (this are from a Linux box)

2020-04-07 18:49:35,564 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [119]: Device 3Dconnexion / 3Dconnexion Universal Receiver, profile spacemouse
2020-04-07 18:49:35,565 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [136]: axis 0, scale = -0.100000, threshold = 0.010000, offset = 0.000000, target = mov
x
2020-04-07 18:49:35,565 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [136]: axis 1, scale = -100.000000, threshold = 1.000000, offset = 0.000000, target = z
oom
2020-04-07 18:49:35,565 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [136]: axis 2, scale = -0.100000, threshold = 0.010000, offset = 0.000000, target = mov
y
2020-04-07 18:49:35,565 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [136]: axis 3, scale = -0.050000, threshold = 0.010000, offset = 0.000000, target = rot
pitch
2020-04-07 18:49:35,566 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [136]: axis 4, scale = -0.050000, threshold = 0.010000, offset = 0.000000, target = rot
roll
2020-04-07 18:49:35,566 - DEBUG - [MainThread] RawMouse.RawMouse._cacheProfileValues [136]: axis 5, scale = 0.100000, threshold = 0.010000, offset = 0.000000, target = roty
aw
2020-04-07 18:49:35,567 - DEBUG - [RawMouse] RawMouse.RawMouse._run_hid [204]: Trying to open /dev/hidraw2
2020-04-07 18:49:35,568 - INFO - [RawMouse] RawMouse.RawMouse._run_hid [210]: Manufacturer: 3Dconnexion
2020-04-07 18:49:35,568 - INFO - [RawMouse] RawMouse.RawMouse._run_hid [211]: Product: 3Dconnexion Universal Receiver
2020-04-07 18:49:35,569 - INFO - [MainThread] UM.PluginRegistry.loadPlugin [449]: Loaded plugin RawMouse

Do you get the "trying to open" message ?

RealTadango commented 4 years ago

Yes.

2020-04-08 14:47:52,394 - DEBUG - [RawMouse] RawMouse.RawMouse._run_hid [204]: Trying to open \?\hid#vid_256f&pid_c652&mi_01&col02#9&2236a930&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030} 2020-04-08 14:47:52,395 - INFO - [RawMouse] RawMouse.RawMouse._run_hid [210]: Manufacturer: 3Dconnexion 2020-04-08 14:47:52,400 - INFO - [MainThread] UM.Logger.info [112]: Loaded plugin RawMouse 2020-04-08 14:47:52,400 - INFO - [RawMouse] RawMouse.RawMouse._run_hid [211]: Product: 3Dconnexion Universal Receiver 2020-04-08 14:47:52,404 - DEBUG - [MainThread] UM.PluginRegistry.loadPlugins [369]: Loading all plugins took 2.468027353286743 seconds

RealTadango commented 4 years ago

Mmh, seems to be working with the cable, but not with the receiver.

smartavionics commented 4 years ago

Have you tried without the cable plugged in and the wireless mouse switched on?

RealTadango commented 4 years ago

Yes (i always have it turned on, only use it wireless ;)) I just tested with the wire because i noticed the devices in the config.

smartavionics commented 4 years ago

Well, that's all very weird because I have tested it OK with a Windows 10 home system. The fact that you are seeing the trying to open message means that the universal receiver is detected correctly.

RealTadango commented 4 years ago

Yes, i understand. But it works with fusion, not with cura (wireless). With cable it works with both (just inverted in cura, need to figure those settings out :))

smartavionics commented 4 years ago

To change the direction of an axis swap the sign of the scale value in the profile, i.e. -0.1 becomes 0.1, etc.

RealTadango commented 4 years ago

Yes, found that ;) Works pretty good, but not perfectly smooth

RealTadango commented 4 years ago

I will do a reboot later and see if that fixes the wireless connection. Can it be a device id / index issue or something? I have a cad mouse connected to the receiver also.

smartavionics commented 4 years ago

Ah, if you have another device connected to the receiver that could make all the difference. I'll look into that and get back to you.

smartavionics commented 4 years ago

Have you cloned this git repo or are you using the release zip file? If you have cloned the repo, please do a git pull and the master branch now has the ability to specify the HID interface_number.

With that, you can change your config to look like this:

[ "0x256f", "0xc652", "spacemouse", "3Dconnexion Space Mouse Universal Receiver",
      { "platform": "Windows", "usage_page": 1, "usage": 8, "interface_number": 1 } ],

try different values for interface_number (0,1,...) and, hopefully, one will match the spacemouse.

RealTadango commented 4 years ago

Thanks, interface 2 is working :) Thanks for the fast support ;)

smartavionics commented 4 years ago

That's good. Cheers!