UMAX140900RST. Ethernet to CAN Converter. Version 1
Page: 31-41
API Parameter
Configuration Parameter
Range
CANBaudRate
Baud Rate
{1000, 667, 500, 250, 125,
100,
83, 50, 20, 10}
CANIDRangeFilters
CAN Range Filters (Off/On)
Read only
CANIDMaskFilters
CAN Mask Filters (Off/On)
Read only
CANLoopbackState
Loopback Messages
{0-No, 1-Yes}
CANSwitchedPowerOutState
Switched Power Out
{0-Off, 1-On}
The Converter will send 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/settings_default
sets all Converter
’s settings to default (see Table 2).
The Converter will use changed settings(including default settings) after reboot or PUT request
to
/api/settings?Apply
. After
“Apply”-request the Converter replies with successful response:
or fail response
with error “No Data to Write” if it didn’t receive any new data.
Information on the existing
Converter’s profile accessed by GET request to
/api/settings
.
GET http://192.168.0.34/api/settings_default
GET http://192.168.0.34/api/settings
{
"DevPartNumber" : "AX140900RST",
"DevSerialNumber" : "0000116001",
"DevFirmwareVersion" : "V1.00",
"EthMACAddress" : "00:00:00:00:00:01",
"EthDeviceIpAddress" : "192.168.0.34",
"EthDevicePort" : "4000",
"EthDevicePortType" : "UDP",
"EthWebServerPort" : "80",
"EthDeviceSubnetMask" : "255.255.255.0",
"EthDeviceDefaultGateway" : "192.168.0.1",
"EthAutoConnectToRemote" : "No",
"EthRemoteIpAddress" : "192.168.0.35",
"EthRemotePort" : "4000",
"CANBaudRate" : "250",
"CANIDRangeFilters" : "Off",
"CANIDMaskFilters" : "Off",
"CANLoopbackState" : "No",
"CANSwitchedPowerOutState" : "Off"
}
PUT http://192.168.0.34/api/settings?Apply
{
"Status" : "success"
}
{
"Status" : "success",
“Parsed parameters” :
“Changed parameters” :
}
{
"Status" : "fail"
“Parsed parameters” :
“Changed parameters” :
“Fail parameter” :
“Error” :
}