Config editor tools


Using the config editor

Below we provide details on how to use the config editor.

Documentation

We recommend that you review the Configuration section of the CANedge Docs. This explains how the JSON Schema concept works incl. the role of the Configuration File, Rule Schema and UIschema. Further, it provides detailed examples for some of the more advanced configuration settings like CAN ID filters.

Presentation mode - simple vs. advanced

The editor tools will by default hide advanced settings for simplicity. To show all the available settings, you can switch the Presentation Mode in the sidebar.

Support tools

The editors add a number of configuration tools in the bottom toolbar:

  • Configuration File migration tool: This lets you load a new firmware.bin and migrate your Configuration File to the new structure, carrying over your settings - see our firmware update tips for details

  • OBD tool: This lets you quickly setup your device for e.g. logging OBD2 data from cars incl. creating your OBD2 PID transmit list - see our OBD2 intro for details

  • Filter builder: This tool lets you load a CANedge log file (in CSV format) and DBC file(s) to help analyze your data, design filters - and test their impact. See our intro to reducing file size for details

  • Encryption tool: This tool helps you encrypt passwords. For details see the CANedge Docs and the encryption tool section. For batch encryption, see CANcloud or the OTA batch manager section

  • Filter checker: When setting up CAN ID filters, this tool can help evaluate if a given CAN ID will pass through the filter or not. It also provides guidance for setting up J1939 PGN filters

  • Partial config loader: This lets you load, schema-validate and merge a partial Configuration File (e.g. a transmit list) into your active Configuration File

  • Bit timing calculator: You can use the “Bit-timing (advanced)” mode to set a custom bit rate for your application and this calculator can be useful in checking your settings

  • Schema & config loader: This will be open by default when using the editor and lets you load the UIschema, Rule Schema and Configuration File for use in configuration of the device


Encryption tool

The CANedge supports encryption of passwords - see the CANedge Docs for details.

Below we outline how to easily encrypt fields using the encryption tool within the config editor.

Note

For devices already connected to S3 you can also use the CANcloud to encrypt passwords - including across batches of devices

Automatic encryption (recommended)

Make sure your Configuration File is loaded and that all your passwords are in plain text.

Next, open the ‘Encryption tool’ (lock icon) from the bottom menu in the config editor. Click ‘Load device.json’ to load your device.json file from the CANedge SD card. Then click ‘Merge files’.

Manual mode with new encryption key (advanced)

Within the config editor, click the “Encryption tool” (lock icon) to open the tool.

In the tool, paste the public key (kpub) value from your device.json file and click “Create keys”[1].

This produces two keys:

  1. Server public key: Should be added in the security section of the device Configuration File

  2. Encryption key: Used for the encryption of plain text data (e.g. passwords)

You are now able to encrypt plain text data as follows:

  1. Enter a plain text password and click “Encrypt”

  2. Copy the encrypted password to the relevant field in the Configuration File

  3. Set the corresponding key format to “Encrypted” in the Configuration File

Manual mode with existing encryption key (advanced)

You can securely store the encryption key for later use. This lets you use the second mode of the encryption tool to encrypt fields using an existing key.

This way you can later update/add passwords without changing the server public key or any pre-encrypted data in your Configuration File.