Article content:

General description

The CAN service is designed to manage the CAN network configuration.

CAN network configuration management is possible with the permission "can" or "all" in the profile of the user performing the request.

Management is carried out by the following commands in the "querrytype" field:

getcan - get information about the CAN interface. Extra options are:

The answer contains information about the status of the module, as well as about the connected and configured devices (if any), and looks like this:

<can if="can1" state="up" mode="normal" timestamp="1981" >
<device node_id="1" vid="781" pcode="VT470
(1)" desc="Motion, vibration, temperature" rev="0.01" sn="217" state="operational" />
</can>

Where, the value of the attributes of the node can are:

The value of the attributes of the device node:


deldevicecan - remove the device from the CAN interface configuration. Extra options are:

savecan - save configuration for CAN interface. Extra options are:

ctlcan - CAN interface control. Extra options are:

Configuring devices on the bus

The "ctlcan" command, with the "mode=config" field, puts the corresponding module into the search and configuration mode for the devices connected to the bus. The configuration process takes some time, the more connected devices, the longer it takes to configure them. The module state can be checked by the "getcan" command, using "mode" field in the response, until it returns value "config" to "normal" value. At the same time, if devices were detected, such modules must and will be included as operational, i.e. field "state=up".