API switch LED off?

Post questions, comments and feedback to our 3Dconnexion Mac Development Team.

Moderator: Moderators

Post Reply
hjbflyer
Posts: 9
Joined: Tue Feb 28, 2017 9:47 am

API switch LED off?

Post by hjbflyer » Tue Mar 07, 2017 11:45 am

I have tried to switch the LED of by using the API call

ConnexionClientControl(clientID, kConnexionCtlSetLEDState, 0x0, &result);

Unfortunately nothing happens. The LED is still on. I am using 10.4.3 on OS X 10.11.6.
Using System Settings the LED can be switched on/off.

What could be wrong? Am I missing a magic call in between?

UtaSH
Moderator
Moderator
Posts: 3265
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Re: API switch LED off?

Post by UtaSH » Tue Mar 14, 2017 10:10 am

Moving to Developer's Forum.

crobl
Moderator
Moderator
Posts: 131
Joined: Mon Feb 26, 2007 8:34 am
Location: Freiham, Germany

Re: API switch LED off?

Post by crobl » Tue Mar 28, 2017 6:15 am

Hello hjbflyer,

thank you for your question!
I've had a look into this and we've found a bug in the driver!
It seems that until now no one was interested in using this API call/functionality.

We're fixing the issue and it'll be available in the next release, but at the moment I cannot give you a date for it.

Let me add some more information on setting the LED for you:

The parameter is constructed this way:
int32_t param = (ledMask << 16) | ledState;

To turn off all LEDs:
ConnexionClientControl(fConnexionClientID, kConnexionCtlSetLEDState, 0x00FF0000, &result);

To turn on the first LED and leave all the others untouched:
ConnexionClientControl(fConnexionClientID, kConnexionCtlSetLEDState, 0x00010001, &result);

To turn on the first LED and turn off all the others, if any:
ConnexionClientControl(fConnexionClientID, kConnexionCtlSetLEDState, 0x00FF0001, &result);

Regards,

Christian

TheBaronHimself
Posts: 2
Joined: Sat Apr 01, 2017 10:13 am

Re: API switch LED off?

Post by TheBaronHimself » Sat Apr 01, 2017 10:25 am

I might be blind but I just got my SpaceMouse Wireless today and can't find the option to turn the light off from the driver window. Could anyone help me out?

crobl
Moderator
Moderator
Posts: 131
Joined: Mon Feb 26, 2007 8:34 am
Location: Freiham, Germany

Re: API switch LED off?

Post by crobl » Mon Apr 03, 2017 6:50 am

Hi The BaronHimself,

for the Wireless devices (SpaceMouse Wireless and SpaceMouse Pro Wireless) behaviour of the blue LED is a bit different when compared to our wired devices:
1. When connected via USB cable, the blue LED can be switched on/off via the checkbox "Enable LEDs" from the "Tool" tab in the 3Dconnexion preference panel.
2. When connected via receiver/wireless:
a) the option is NOT available, as the blue LED is always off (save battery power) except for
b) about four seconds seconds after the SMW/SMP(W) has been switched on. The blue LEDs now indicate, that the device is paired to a receiver connected to your computer.
The LED ring will fade out after these ~4s.
If the LED ring does not light up after switching the device ON, then it is not paired to your receiver and you'll have to pair it using our pairing tool:
http://www.3dconnexion.com/pairing

I hope I could help you!

Regards,

Christian

TheBaronHimself
Posts: 2
Joined: Sat Apr 01, 2017 10:13 am

Re: API switch LED off?

Post by TheBaronHimself » Sun Jul 02, 2017 5:24 pm

Hey Christian,

I just tried switching off the LEDs in the preferences panel, but cannot find the checkbox you described. I'm running macOS Sierra. The mouse is connected via USB.

Any ideas why that could be?

Best wishes,
Simon-Claudius

Post Reply