Control of the USRP remote power switches

Powering the USRPs

In the testbed we have installed two remote power switches which allow us to remotely power each of the USRPs on and off. To access the remote power switches you must first be logged into one of the testbed nodes. Details on obtaining access can be found here. These switches can be controlled through web interface.

Access the switches by navigating to

http://ctvr-switch.cs.tcd.ie

or

http://ctvr-switch02.cs.tcd.ie

in the web browser of one of the testbed nodes (again, the power switch interfaces can only be accessed from the testbed nodes). On doing so you will see a similar interface to the following:

Tested_Plan

The login details are identical to those used to access the nodes themselves. Here, you can power the USRPs for each node on and off. Please remember to power USRPs off when you have finished using them. The positioning of the different testbed nodes as well as the spectrum analyser and signal generator can be found here .

Powering the USRPs via command line/scripts

The remote switch can also be accessed via HTTP Post commands, using a tool such as curl, or equivalent calls in a script or program. Using a UNIX based system with curl installed

curl --data 'P<port>=<command>' http://nodeuser:ctvrnodepass@ctvr-switch.cs.tcd.ie/cmd.html

will alter the state of socket <port> according to <command>.

<port> choices are as follows:

    For switch http://ctvr-switch.cs.tcd.ie

      * 1 - Node 08 USRP N210 (ETH1)
      * 2 - Node 08 USRP N210 (ETH1)
      * 3 - Node 05 USRP N210 (ETH1)
      * 4 - Node 06 USRP2 (ETH1)

    For switch http://ctvr-switch02.cs.tcd.ie

      * 1 - Currently unspecified
      * 2 - Currently unspecified
      * 3 - Currently unspecified
      * 4 - Currently unspecified

    <command> choices are:

      * 0 - Switch Off
      * 1 - Switch On
      * t - Toggle state
      * r - Restart

Commands to multiple ports can be strung together using ampersands, as per the following example:

curl --data 'P0=r&P1=r&P2=r' http://nodeuser:ctvrnodepass@ctvr-switch.cs.tcd.ie/cmd.html

AttachmentSize
e-power switch.jpg63.91 KB