|
Raritan PX2/PX3 JSON-RPC API
|
test routines for Raritan Feature Serial interface (RS232 with some control lines and switched power) Require TestMode to be ON. More...
import"testrpc.idl";
Public Member Functions | |
| int | getNumberOfPorts (out int numPorts) |
| returns number of ports More... | |
| int | setPower (in int portNum, in boolean hasPower) |
| Switches Power supplied to the port Observable with special test adapter Power->LED. More... | |
| int | testLoopTxRx (in int portNum, out string errstr) |
| Performs a loop test with special test adapter TX->RX. More... | |
| int | testLoopDtrDcd (in int portNum, out string errstr) |
| Performs a loop test with special test adapter DTR->DCD. More... | |
Public Attributes | |
| constant int | OK = 0 |
| No error. | |
| constant int | ERR_NO_TEST_MODE = 1 |
| Not in test mode. | |
| constant int | ERR_INVAL_PORT_NUM = 2 |
| Invalid port number. | |
| constant int | ERR_TEST_FAILED = 3 |
| Test failed. | |
test routines for Raritan Feature Serial interface (RS232 with some control lines and switched power) Require TestMode to be ON.
| int test::FeatSerial::getNumberOfPorts | ( | out int | numPorts | ) |
returns number of ports
| int test::FeatSerial::setPower | ( | in int | portNum, |
| in boolean | hasPower | ||
| ) |
Switches Power supplied to the port Observable with special test adapter Power->LED.
| int test::FeatSerial::testLoopDtrDcd | ( | in int | portNum, |
| out string | errstr | ||
| ) |
Performs a loop test with special test adapter DTR->DCD.
| int test::FeatSerial::testLoopTxRx | ( | in int | portNum, |
| out string | errstr | ||
| ) |
Performs a loop test with special test adapter TX->RX.
1.8.14