How can I use a MicroEJ USB dongle on Linux?

linux

#1

I’m using MicroEJ SDK on Linux (Xubuntu 16.04) but it can’t detect the MicroEJ USB dongle to enable the license.
Can you help me ?


#2

Hi Jerry,

Yes, you can use the dongle on Linux, but for that it should be readable when detected. Assuming you are using udev for device management, you should add a new rule (e.g in a /etc/udev/rules.d/91-usbdongle.rules file) with the following content:

ACTION!="add", GOTO="usbdongle_end"
SUBSYSTEM=="usb", GOTO="usbdongle_start"
SUBSYSTEMS=="usb", GOTO="usbdongle_start"
GOTO="usbdongle_end"

LABEL="usbdongle_start"

ATTRS{idVendor}=="096e" , ATTRS{idProduct}=="0006" , MODE="0666"

LABEL="usbdongle_end"

Then restart the udev service:

service udev restart

Also unplug and plug your device again for the detection to happen and the dongle should be detected in your MicroEJ SDK (in the MicroEJ preferences).

Gaëtan


[SDK] License Activation
#3

Great !
Thanks Gaetan :slight_smile: