Alternative ways to Enable IONI USB Configuration

I’m creating an application using a SimuCUBE. I’m communicating with it through the simpleMotion api but to connect to it I have to “Enable IONI USB Configuration” under advanced in the SimuCUBE Configuration Tool. I’m looking for a way to integrate this into my application, is there a way to do this through api calls? Is there another way to connect that doesn’t involve enabling this?

Thanks for any help.

Simucube firmware is open source, so you could implement your app on hardware too.

But have a look at this example:
https://github.com/SimuCUBE/SimuCUBE-OpenSource-Firmware/tree/master/Examples/send_irffb_data_to_simucube_demo

Basically, you would just send a commandPacket with enableSMUSB value in the command field.

See here for all possible commands:
https://github.com/SimuCUBE/SimuCUBE-OpenSource-Firmware/blob/master/Inc/config_comm_defines.h

Also, the current SimuCUBE firmwares use the new simplemotion fastupdatecycle mode, so if your app uses fastupdatecycle, you must remember to set it back to the default mode before trying to use it in the old “normal” mode. And the simplemotion bus is reset to the default baudrate, and the Motor current parameter (MMC) is set to the 100% when the enablesmusb command is sent.

Please let me know if there are any other questions, and if this is enough information for you. I added some comments to above posts, so if you had only email subscription to the posts, then you might have missed them.

Thanks, this is exactly what I’m looking for.

1 Like

Hi @htrease

I am also creating a program using a Simucube with the intent on controlling it through the SimpleMotion api, I have also been searching for a way to automatically enable IONI configuration mode.

The links sent above seem to be broken, so I am wondering if you had any success or if @Mika would be kind enough to point me in the right direction?

Many thanks,
Jonathan

Good point, I had forgotten that we had the API demo. It is still available at

and the enableSM USB command number can be found in the header that is in the demo.

1 Like

Thank you @Mika. That was exactly what I needed.

I created an example project that I found to work (on MacOS) that I was able to enable IONI configuration on my Simucube 1 and set a velocity setpoint via SimplemotionV2.

Kind regards,
Jonathan