UMAX140900RST. Ethernet to CAN Converter. Version 1
Page: 32-41
For example, the following request sets the Loopback to ON, the Subnet mask to
255.255.255.0, the Switched Power Out to Off, the Device Port to 4111, the Device Port Type
to TCP:
Then command to apply changes :
8.2 CAN Filters
CAN Range Filters profile can be changed by posting PUT to
/api/CANRangeFilters
the
parameters listed in Table 6 (all are case sensitive) without limitations on number of
parameters.
Table 6. CAN Range Filters RESTful API Parameters
API Parameter
Configuration Parameter
Range
CANRangeFilter[1..5]OnOff
Activate range for filter [1..5]
{0-Off, 1-On}
CANRangeFilter[1..5]From
From
configuration parameter
hex-data
CANRangeFilter[1..5]To
To
configuration parameter
hex-data
CANRangeFilter[1..5]EID
Extended ID
{0-Off, 1-On}
Information on the existing CAN Range Filters - GET to
/api/CANRangeFilters
.
CAN Mask Filters profile can be changed by posting PUT to
/api/CANMaskFilters
the
parameters listed in Table 7 (all are case sensitive) without limitations on number of
parameters.
Table 7. CAN Mask Filters RESTful API Parameters
API Parameter
Configuration Parameter
Range
CANMaskFilter[1..5]OnOff
Activate mask for filter [1..5]
{0-Off, 1-On}
CANMaskFilter[1..5]From
From
configuration parameter
hex-data
CANMaskFilter[1..5]To
To
configuration parameter
hex-data
CANMaskFilter[1..5]EID
Extended ID
{0-Off, 1-On}
GET http://192.168.0.34/api/CANRangeFilters
{
"CANRangeFilter1OnOff" : "Off",
"CANRangeFilter1From" : "0x0",
"CANRangeFilter1To" : "0x0",
"CANRangeFilter1EID" : "Off",
……..
}
PUT
http://192.168.0.34/api/settings?CANLoopbackState=1&EthDeviceSubnetMask=255.255.255.0&CANSwitchedPowerOutState=0&EthDe
vicePort=4111&EthDevicePortType=TCP
{
"Status" : "success",
"Parsed parameters" : "5",
"Changed parameters" : "3"
}
PUT http://192.168.0.34/api/settings?Apply
{
"Status" : "success"
}