UMAX140900RST. Ethernet to CAN Converter. Version 1
Page: 33-41
Information on the existing CAN Mask Filters - GET to
/api/CANMaskFilters
.
The Converter sends response in JSON-format :
In case of error or there were no new data to update the Converter will send error-response in
JSON-format:
A PUT to
/api/CANFilter_default
clears all CAN Filter configuration parameters.
Changed parameters became active immediately.
For example, the following request sets the 2
nd
Range Filter’s EID to ON:
8.3 Converter Diagnostics
A real-time diagnostic information can be seen by posting GET to
/api/diagnostics
.
A PUT to
/api/diagnostics?ResetDiagnostics
resets diagnostics counters.
A PUT to
/api/diagnostics?RebootConverter
reboots the Converter.
GET http://192.168.0.34/api/diagnostics
{
"GenHealthStatus" : "Normal",
"Can Receive Errors" : "0",
"CANTransmitErrors" : "0",
"CANBusOffErrors" : "0",
"CANFramesReceived" : "0",
"CANFramesSent" : "0",
"EthMessagesReceived" : "136",
"EthMessagesSent" : "6"
}
GET http://192.168.0.34/api/CANMaskFilters
{
"CANMaskFilter1OnOff" : "Off",
"CANMaskFilter1Mask" : "0x0",
"CANMaskFilter1ID" : "0x0",
"CANMaskFilter1EID" : "Off",
……..
}
{
"Status" : "success",
“Parsed parameters” :
“Changed parameters” :
}
{
"Status" : "fail"
“Parsed parameters” :
“Changed parameters” :
“Fail parameter” :
“Error” :
}
PUT http://192.168.0.34/api/CANRangeFilters?CANRangeFilter2EID=1
{
"Status" : "success",
"Parsed parameters" : "1",
"Changed parameters" : "1"
}