Install License Key
3 minute read
This page is applicable for the latest image version mcx-rtos-v.2022.09
. For other mcx-rtos-images checkout: Older versions.
Motorcortex Libraries require a license.lic
([hardwarekey].lic
) file to run in a production environment. This section will explain how to acquire and install license.lic
file. You can always run your Motorcortex application without a license key, but the program will exit after 30 minutes.
Prerequisites
- Laptop
- Motorcortex.io account
- Motorcortex Controller with running a application connected to laptop
Log into the Motorcortex controller from the console using a screen and keyboard or through ssh as described in Remote Access & File Transfer.
Acquire The License File.
For generating a License.lic file the controller Hardware key is needed.
-
Email this hardware key and list of components to
license@vectioneer.com
-
You wil receive a
license.lic
file trough E-mail.
Add The License File To The Default File Location.
-
Go to login to your
motorcortex.io
account and openyour project
-
Browse to the configuration package.
-
Place the
license.lic
file in the configuration package (if you have to upload the file pressfiles
under theUPLOAD
tab on the right).

-
Open the
config.json
file. -
In
line #10
change “licence.pem” to the name of yourlicense.lic
file.

-
Press save and exit the file.
-
Congratulations the your license has been installed.
Add The License File To A Fixed File Location.
The license file can be stored in a fixed location: /etc/motorcortex/
this file directory is not overwritten after deploying a new configuration.
Note
Perform the following steps each time after a new mcx-os is installed.
-
Inside config.json change license path to:
"License": "/etc/motorcortex/license.lic"
. -
Deploy license.lic via Deployed Application Procedure, this will store the file in
/etc/motorcortex/config/
. -
Move license.lic to
/etc/motorcortex/
with following command:
sudo mv license.lic /etc/motorcortex/
- Redirect to
/etc/motorcortex/
directory. In case you have a license, it is named[hardwarekey].lic
, for example4529503465872302212.lic
. create a symbolic link to license.lic:
ln -s 4529503465872302212.lic license.lic
- Confirm if the
symbolic link
is created:
ls -lart
search for:
license.lic -> 4529503465872302212.lic
Now your license
is in a fixed location and is not overwritten after deploying a new configuration.
Check If The License File Is Valid
A license file is valid
if it matches the controllers Hardware Key
and application: List of Components
and List Of Features
. License check can either be done with to following commands:
mcx-license-check
mcx-lastlog
Both commands should provide you with the license information: either valid
or invalid
License is valid
License is invalid
If your license check turns out invalid
: Checkout if your Hardware Key
, List Of Components
and List Of Features
matches your application.