Raritan PX2/PX3 JSON-RPC API
testrpc.idl
1 
7 module test {
8 
22  structure Result {
23  int code;
24  string errtext;
25  };
26 
33  interface Control {
34 
38  boolean isTestMode();
39 
44  void setTestMode(in boolean isTestModeOn);
45 
46  };
47 
48 
52  interface RS232Serial {
53 
57  vector<string> getDeviceFiles();
58 
63  Result testLoop1(in string devfile);
64 
69  Result testLoop2(in string devfile);
70 
71  };
72 
73 
79  interface FeatSerial {
80 
81  constant int OK = 0;
82  constant int ERR_NO_TEST_MODE = 1;
83  constant int ERR_INVAL_PORT_NUM = 2;
84  constant int ERR_TEST_FAILED = 3;
85 
92  int getNumberOfPorts(out int numPorts);
93 
103  int setPower(in int portNum, in boolean hasPower);
104 
114  int testLoopTxRx(in int portNum, out string errstr);
115 
125  int testLoopDtrDcd(in int portNum, out string errstr);
126 
127  };
128 
129 
135  interface AuxSerial {
136 
137  constant int OK = 0;
138  constant int ERR_NO_TEST_MODE = 1;
139  constant int ERR_INVAL_PORT_NUM = 2;
140  constant int ERR_TEST_FAILED = 3;
141 
148  int getNumberOfPorts(out int numPorts);
149 
158  int testLoop(in int portNum, out string errstr);
159  };
160 
161 
170  interface Ethernet {
171 
175  vector<string> getDevices();
176 
178  enumeration Speed {
181  SPD_1000
182  };
183 
185  enumeration Duplex {
187  DPX_FULL
188  };
189 
196  int setParameters(in string device, in Speed speed, in Duplex duplex,
197  in boolean isAutoNeg);
198 
199  };
200 
201 }
string errtext
Descriptive error string.
Definition: testrpc.idl:24
Duplex
Ethernet Duplex Mode.
Definition: testrpc.idl:185
Interface to enter and exit special test modes.
Definition: testrpc.idl:33
Test Interfaces.
Definition: TestDisplay.idl:7
test routines for Raritan Aux Serial interface (RS485 on pins 3 and 6 of RJ45) Require TestMode to be...
Definition: testrpc.idl:135
Half Duplex.
Definition: testrpc.idl:186
10 Mbit/s
Definition: testrpc.idl:179
test routines for RJ45 Ethernet port This is low level interface using ethtool that does not persist ...
Definition: testrpc.idl:170
Convenience structure to return test or operation results.
Definition: testrpc.idl:22
test routines for Raritan Feature Serial interface (RS232 with some control lines and switched power)...
Definition: testrpc.idl:79
int code
Result code.
Definition: testrpc.idl:23
100 Mbit/s
Definition: testrpc.idl:180
Speed
Ethernet Speed.
Definition: testrpc.idl:178
Test routines for full RS232 Serial Interface.
Definition: testrpc.idl:52