Legacy Action Server (Raspberry Pi) Help

Configuring the Legacy Action Server

The configuration for the Lensmaster Action Server is defined in the “config.json” file in the LensmasterActionServer folder on your Raspberry Pi. By default the “config.json” is as follows.

{ "name": "Raspberry Pi", "device_id": 0, "active_low": true }

Below is a list of the user editable parameters and their definitions:

name

This is the friendly name of your action server that will be displayed in Lensmaster. Change it to something meaningful to help you identify which action server you are controlling. Example: "Pneumatics Action Server"

device_id

This is a unique ID for your action server. It is used by Lensmaster to determine the Action Server identity if multiple Action Servers are connected. "device_id" can take any integer value between 0 and 15.

active_low

This defines the ACTIVE state of Action Server Digital Outputs. If "true" then outputs will be LOW (0V) when ACTIVE. If "false" then outputs will be HIGH (3.3V) when ACTIVE.

To apply the new configuration, uninstall and then reinstall the LensmasterActionServer by running the following code in a new terminal window.

cd Desktop/LensmasterActionServer sudo python3 uninstall.py sudo python3 install.py
Last modified: 05 August 2024