📄 statuscodes.java
字号:
// Description: // Output turned OFF // Notes: // - Client should include FIELD_OUTPUT_ID in the event packet, // otherwise this status code would have no meaning. // - This status code may be used to indicate that an arbitrary output // 'thing' turned OFF, and the 'thing' can be identified by the 'Output ID'. // This 'ID' can also represent the index of a digital output. public static final int STATUS_INPUT_ON_00 = 0xF420; public static final int STATUS_INPUT_ON_01 = 0xF421; public static final int STATUS_INPUT_ON_02 = 0xF422; public static final int STATUS_INPUT_ON_03 = 0xF423; public static final int STATUS_INPUT_ON_04 = 0xF424; public static final int STATUS_INPUT_ON_05 = 0xF425; public static final int STATUS_INPUT_ON_06 = 0xF426; public static final int STATUS_INPUT_ON_07 = 0xF427; // Description: // Digital input state changed to ON public static final int STATUS_INPUT_OFF_00 = 0xF440; public static final int STATUS_INPUT_OFF_01 = 0xF441; public static final int STATUS_INPUT_OFF_02 = 0xF442; public static final int STATUS_INPUT_OFF_03 = 0xF443; public static final int STATUS_INPUT_OFF_04 = 0xF444; public static final int STATUS_INPUT_OFF_05 = 0xF445; public static final int STATUS_INPUT_OFF_06 = 0xF446; public static final int STATUS_INPUT_OFF_07 = 0xF447; // Description: // Digital input state changed to OFF public static final int STATUS_OUTPUT_ON_00 = 0xF460; public static final int STATUS_OUTPUT_ON_01 = 0xF461; public static final int STATUS_OUTPUT_ON_02 = 0xF462; public static final int STATUS_OUTPUT_ON_03 = 0xF463; public static final int STATUS_OUTPUT_ON_04 = 0xF464; public static final int STATUS_OUTPUT_ON_05 = 0xF465; public static final int STATUS_OUTPUT_ON_06 = 0xF466; public static final int STATUS_OUTPUT_ON_07 = 0xF467; // Description: // Digital output state set to ON public static final int STATUS_OUTPUT_OFF_00 = 0xF480; public static final int STATUS_OUTPUT_OFF_01 = 0xF481; public static final int STATUS_OUTPUT_OFF_02 = 0xF482; public static final int STATUS_OUTPUT_OFF_03 = 0xF483; public static final int STATUS_OUTPUT_OFF_04 = 0xF484; public static final int STATUS_OUTPUT_OFF_05 = 0xF485; public static final int STATUS_OUTPUT_OFF_06 = 0xF486; public static final int STATUS_OUTPUT_OFF_07 = 0xF487; // Description: // Digital output state set to OFF public static final int STATUS_ELAPSED_00 = 0xF4A0; public static final int STATUS_ELAPSED_01 = 0xF4A1; public static final int STATUS_ELAPSED_02 = 0xF4A2; public static final int STATUS_ELAPSED_03 = 0xF4A3; public static final int STATUS_ELAPSED_04 = 0xF4A4; public static final int STATUS_ELAPSED_05 = 0xF4A5; public static final int STATUS_ELAPSED_06 = 0xF4A6; public static final int STATUS_ELAPSED_07 = 0xF4A7; // Description: // Elapsed time // Notes: // - Client should include FIELD_ELAPSED_TIME in the event packet, // otherwise this status code would have no meaning. public static final int STATUS_ELAPSED_LIMIT_00 = 0xF4B0; public static final int STATUS_ELAPSED_LIMIT_01 = 0xF4B1; public static final int STATUS_ELAPSED_LIMIT_02 = 0xF4B2; public static final int STATUS_ELAPSED_LIMIT_03 = 0xF4B3; public static final int STATUS_ELAPSED_LIMIT_04 = 0xF4B4; public static final int STATUS_ELAPSED_LIMIT_05 = 0xF4B5; public static final int STATUS_ELAPSED_LIMIT_06 = 0xF4B6; public static final int STATUS_ELAPSED_LIMIT_07 = 0xF4B7; // Description: // Elapsed timer has exceeded a set limit // Notes: // - Client should include FIELD_ELAPSED_TIME in the event packet, // otherwise this status code would have no meaning.// ----------------------------------------------------------------------------// Analog/etc sensor values (extra data): 0xF600 to 0xF6FF public static final int STATUS_SENSOR32_0 = 0xF600; public static final int STATUS_SENSOR32_1 = 0xF601; public static final int STATUS_SENSOR32_2 = 0xF602; public static final int STATUS_SENSOR32_3 = 0xF603; public static final int STATUS_SENSOR32_4 = 0xF604; public static final int STATUS_SENSOR32_5 = 0xF605; public static final int STATUS_SENSOR32_6 = 0xF606; public static final int STATUS_SENSOR32_7 = 0xF607; // Description: // 32-bit unsigned sensor value // Notes: // - Client should include FIELD_SENSOR32 in the event packet, // otherwise this status code would have no meaning. // - The server must be able to convert this 32-bit value to something // meaningful to the user. This can be done using the following formula: // Actual_Value = ((double)Sensor32_Value * <Gain>) + <Offset>; // Where <Gain> & <Offset> are user configurable values provided at setup. // For instance: Assume Sensor32-0 contains a temperature value that can // have a range of -40.0C to +125.0C. The client would encode -14.7C // by adding 40.0 and multiplying by 10.0. The resulting value would be // 253. The server would then be configured to know how to convert this // value back into the proper temperature using the above formula by // substituting 0.1 for <Gain>, and -40.0 for <Offset>: eg. // -14.7 = ((double)253 * 0.1) + (-40.0); public static final int STATUS_SENSOR32_RANGE_0 = 0xF620; public static final int STATUS_SENSOR32_RANGE_1 = 0xF621; public static final int STATUS_SENSOR32_RANGE_2 = 0xF622; public static final int STATUS_SENSOR32_RANGE_3 = 0xF623; public static final int STATUS_SENSOR32_RANGE_4 = 0xF624; public static final int STATUS_SENSOR32_RANGE_5 = 0xF625; public static final int STATUS_SENSOR32_RANGE_6 = 0xF626; public static final int STATUS_SENSOR32_RANGE_7 = 0xF627; // Description: // 32-bit unsigned sensor value out-of-range violation // Notes: // - Client should include FIELD_SENSOR32 in the event packet, // otherwise this status code would have no meaning.// ----------------------------------------------------------------------------// Temperature sensor values (extra data): 0xF700 to 0xF7FF public static final int STATUS_TEMPERATURE_0 = 0xF710; public static final int STATUS_TEMPERATURE_1 = 0xF711; public static final int STATUS_TEMPERATURE_2 = 0xF712; public static final int STATUS_TEMPERATURE_3 = 0xF713; public static final int STATUS_TEMPERATURE_4 = 0xF714; public static final int STATUS_TEMPERATURE_5 = 0xF715; public static final int STATUS_TEMPERATURE_6 = 0xF716; public static final int STATUS_TEMPERATURE_7 = 0xF717; // Description: // Temperature value // Notes: // - Client should include at least the field FIELD_TEMP_AVER in the // event packet, and may also wish to include FIELD_TEMP_LOW and // FIELD_TEMP_HIGH. public static final int STATUS_TEMPERATURE_RANGE_0 = 0xF730; public static final int STATUS_TEMPERATURE_RANGE_1 = 0xF731; public static final int STATUS_TEMPERATURE_RANGE_2 = 0xF732; public static final int STATUS_TEMPERATURE_RANGE_3 = 0xF733; public static final int STATUS_TEMPERATURE_RANGE_4 = 0xF734; public static final int STATUS_TEMPERATURE_RANGE_5 = 0xF735; public static final int STATUS_TEMPERATURE_RANGE_6 = 0xF736; public static final int STATUS_TEMPERATURE_RANGE_7 = 0xF737; // Description: // Temperature value out-of-range [low/high/average] // Notes: // - Client should include at least one of the fields FIELD_TEMP_AVER, // FIELD_TEMP_LOW, or FIELD_TEMP_HIGH. public static final int STATUS_TEMPERATURE = 0xF7F1; // Description: // All temperature averages [aver/aver/aver/...]// ----------------------------------------------------------------------------// Miscellaneous public static final int STATUS_LOGIN = 0xF811; // Description: // Generic 'login' public static final int STATUS_LOGOUT = 0xF812; // Description: // Generic 'logout' public static final int STATUS_CONNECT = 0xF821; // Description: // Connect/Hook/On public static final int STATUS_DISCONNECT = 0xF822; // Description: // Disconnect/Drop/Off public static final int STATUS_ACK = 0xF831; // Description: // Acknowledge public static final int STATUS_NAK = 0xF832; // Description: // Negative Acknowledge// ----------------------------------------------------------------------------// OBC/J1708 status: 0xF900 to 0xF9FF public static final int STATUS_OBC_FAULT = 0xF911; // Description: // OBC/J1708 fault code occurred. // Notes: // - Client should include the field FIELD_OBC_J1708_FAULT public static final int STATUS_OBC_RANGE = 0xF920; // Description: // Generic OBC/J1708 value out-of-range // Notes: // - Client should include at least one of the FIELD_OBC_xxxxx fields. public static final int STATUS_OBC_RPM_RANGE = 0xF922; // Description: // OBC/J1708 RPM out-of-range // Notes: // - Client should include the field FIELD_OBC_ENGINE_RPM. public static final int STATUS_OBC_FUEL_RANGE = 0xF924; // Description: // OBC/J1708 Fuel level out-of-range (ie. to low) // Notes: // - Client should include the field FIELD_OBC_FUEL_LEVEL. public static final int STATUS_OBC_OIL_RANGE = 0xF926; // Description: // OBC/J1708 Oil level out-of-range (ie. to low) public static final int STATUS_OBC_TEMP_RANGE = 0xF928; // Description: // OBC/J1708 Temperature out-of-range // Notes: // - Client should include at least one of the FIELD_OBC_xxxxx fields // which indicates an OBC temperature out-of-range. public static final int STATUS_EXCESS_BRAKING = 0xF930; // Description: // Excessive acceleration/deceleration detected// ----------------------------------------------------------------------------// Internal device status public static final int STATUS_LOW_BATTERY = 0xFD10; // Description: // Low battery indicator// ----------------------------------------------------------------------------// ----------------------------------------------------------------------------// ---------------------------------------------------------------------------- private static final String CODE_PREFIX = "DMT."; public static class Code { private int code = 0; private String name = ""; private String desc = null; private boolean hiPri = false; public Code(int code, String name, String desc) { this(code, name, desc, false); } public Code(int code, String name, String desc, boolean higherPri) { this.code = code; this.name = CODE_PREFIX + name;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -