Raritan PX2/PX3 JSON-RPC API
PeripheralDeviceManager.idl
1 #ifndef __PERIPHERAL_DEVICE_MANAGER_IDL__
2 #define __PERIPHERAL_DEVICE_MANAGER_IDL__
3 
4 #include <PeripheralDeviceSlot.idl>
5 #include <PeripheralDevicePackage.idl>
6 #include <NumericSensor.idl>
7 #include <Sensor.idl>
8 #include <UserEvent.idl>
9 
11 module peripheral {
12 
14  interface DeviceManager_3_0_0 {
15 
16  constant int ERR_INVALID_PARAMS = 1;
17 
19  enumeration ZCoordMode {
21  FREEFORM
22  };
23 
25  structure Settings {
32  };
33 
35  structure MetaData {
38  };
39 
41  structure DeviceTypeInfo {
43  boolean isActuator;
44  string identifier;
45  string name;
48  };
49 
51  structure FirmwareUpdateState {
52  boolean active;
53  int remaining;
54  };
55 
57  valueobject SettingsChangedEvent extends event.UserEvent {
58  Settings oldSettings;
60  };
61 
63  valueobject DeviceEvent_2_0_0 extends idl.Event {
64  vector<Device_3_0_1> devices;
65  vector<Device_3_0_1> allDevices;
66  };
67 
69  valueobject DeviceAddedEvent_2_0_0 extends DeviceEvent_2_0_0 { };
70 
72  valueobject DeviceRemovedEvent_2_0_0 extends DeviceEvent_2_0_0 { };
73 
75  valueobject UnknownDeviceAttachedEvent extends idl.Event {
76  string romCode;
77  vector<PosElement> position;
78  };
79 
84  UPDATE_FAILED
85  };
86 
88  valueobject DeviceFirmwareUpdateStateChangedEvent extends idl.Event {
89  string oldVersion;
90  string newVersion;
91  string serial;
93  };
94 
99  valueobject FirmwareUpdateStateChangedEvent extends idl.Event {
100  FirmwareUpdateState newState;
101  };
102 
104  valueobject PackageEvent_2_0_0 extends idl.Event {
105  vector<PackageInfo_2_0_0> packageInfos;
106  vector<PackageInfo_2_0_0> allPackages;
107  };
108 
110  valueobject PackageAddedEvent_2_0_0 extends PackageEvent_2_0_0 { };
112  valueobject PackageRemovedEvent_2_0_0 extends PackageEvent_2_0_0 { };
113 
115  structure Statistics {
117  };
118 
124  vector<DeviceSlot_2_0_2> getDeviceSlots();
125 
132  DeviceSlot_2_0_2 getDeviceSlot(in int idx);
133 
139  vector<Device_3_0_1> getDiscoveredDevices();
140 
146  vector<PackageInfo_2_0_0> getDiscoveredPackageInfos();
147 
153  Settings getSettings();
154 
163  int setSettings(in Settings settings);
164 
170  MetaData getMetaData();
171 
177  vector<DeviceTypeInfo> getDeviceTypeInfos();
178 
185  FirmwareUpdateState getFirmwareUpdateState();
186 
192  Statistics getStatistics();
193 
199  vector<Package> getDiscoveredPackages();
200 
201  };
202 }
203 
204 #endif /* !__PERIPHERAL_DEVICE_MANAGER_IDL__ */
float deviceAltitude
Altitude of device in meters.
Definition: PeripheralDeviceManager.idl:28
A sensor with numeric readings.
Definition: NumericSensor.idl:12
sensors::NumericSensor_4_0_2 Range defaultRange
Default sensor range (numeric sensors only)
Definition: PeripheralDeviceManager.idl:46
Range of possible sensor readings.
Definition: NumericSensor.idl:19
map< string, sensors::NumericSensor_4_0_2.Thresholds > defaultThresholdsMap
Default thresholds by peripheral device type.
Definition: PeripheralDeviceManager.idl:30
int cSumErrCnt
CRC / checksum error counter.
Definition: PeripheralDeviceManager.idl:116
vector< Device_3_0_1 > allDevices
New list of discovered devices after change.
Definition: PeripheralDeviceManager.idl:65
int maxActivePoweredDryContacts
The maximum number of concurrently active powered dry contacts.
Definition: PeripheralDeviceManager.idl:31
vector< PackageInfo_2_0_0 > allPackages
New list of discovered packages after change.
Definition: PeripheralDeviceManager.idl:106
Settings newSettings
Settings after change.
Definition: PeripheralDeviceManager.idl:59
boolean active
true if any peripheral device is currently updated
Definition: PeripheralDeviceManager.idl:52
string identifier
Device type identifier.
Definition: PeripheralDeviceManager.idl:44
peripheral DeviceManager&#39;s s settings
Definition: PeripheralDeviceManager.idl:25
Peripheral Devices.
Definition: PeripheralDeviceManager.idl:11
string serial
Serial number of device.
Definition: PeripheralDeviceManager.idl:91
int remaining
Number of peripheral devices that are still pending to be updated.
Definition: PeripheralDeviceManager.idl:53
Peripheral device statistics.
Definition: PeripheralDeviceManager.idl:115
int presenceDetectionTimeout
Timeout for presence detection (sec)
Definition: PeripheralDeviceManager.idl:29
Peripheral device type info.
Definition: PeripheralDeviceManager.idl:41
ZCoordMode
Z Coordinate Mode identifier.
Definition: PeripheralDeviceManager.idl:19
string newVersion
Firmware version to be updated to.
Definition: PeripheralDeviceManager.idl:90
boolean isActuator
Is actuator or not.
Definition: PeripheralDeviceManager.idl:43
Peripheral Device Manager.
Definition: PeripheralDeviceManager.idl:14
Basic IDL definitions.
Definition: Event.idl:6
Numeric sensor thresholds.
Definition: NumericSensor.idl:106
int oneWirePortCount
Number of 1-wire ports.
Definition: PeripheralDeviceManager.idl:36
Update is running.
Definition: PeripheralDeviceManager.idl:82
string name
Device type display name.
Definition: PeripheralDeviceManager.idl:45
int defaultDecDigits
Default sensor precision (numeric sensors only)
Definition: PeripheralDeviceManager.idl:47
Sensor interface
Definition: Sensor.idl:10
DeviceFirmwareUpdateState
Enumeration: State of device firmware update.
Definition: PeripheralDeviceManager.idl:81
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8
sensors::Sensor_4_0_2 TypeSpec type
Device (sensor) type.
Definition: PeripheralDeviceManager.idl:42
DeviceFirmwareUpdateState state
Update state.
Definition: PeripheralDeviceManager.idl:92
vector< PosElement > position
Device position in the chain.
Definition: PeripheralDeviceManager.idl:77
Peripheral Device Slot.
Definition: PeripheralDeviceSlot.idl:55
Update has finished successfully.
Definition: PeripheralDeviceManager.idl:83
Z coordinate of slot settings is in rack units.
Definition: PeripheralDeviceManager.idl:20
Firmware update status.
Definition: PeripheralDeviceManager.idl:51
Complete sensor type specification.
Definition: Sensor.idl:153
boolean autoManageNewDevices
Automatically manage newly detected devices.
Definition: PeripheralDeviceManager.idl:27
Peripheral DeviceManager&#39;s metadata.
Definition: PeripheralDeviceManager.idl:35
int onboardDeviceCount
Number of onboard peripheral devices.
Definition: PeripheralDeviceManager.idl:37
ZCoordMode zCoordMode
Z coordinate semantics.
Definition: PeripheralDeviceManager.idl:26