List of SDR4All server commands

From Tools4SDR

Jump to: navigation, search


This page is devoted to the SDR4All server commands. It can be used if you want to program software based on the server rather than on the DLL.

We highly recommend that you develop a small client to dialog with the server. If you don't have one, you can use the one developed by SDR4All and available for downlink here. It looks like:

Screen shot of SDR4All simple client

The server interface

When you are talking with the server, from your own program or from Matlab, the instructions are printed on the server IHM. This feature allows you to check which orders have been given:

Illustration of SDR4All server interface

The server commands

The commands are splitted in three parts:

  • Commands to dialog with the USRPs which do not require connection to one USRP.
  • Commands to set up a connection to an USRP and get further details about it.
  • Commands to control data flows

Commands to dialog with the USRPs which do not requiere connection

  • "1" get the number of connected USRPs
  • Commands "3:x:y" returns 1 if the daughterboard card on USRP #x and slot y (y = 0 for RX A, 1 -> TX A, 2 -> RX B, 3 -> TX B) is supported by the toolbox.
    Example: "3:0:1" returns 1 if the daughterboard card on USRP #0 and slot 1 (RX A) is supported by the toolbox
  • Commands "4:x:y" returns the name of the daughterboard card on USRP #x and slot y.
    Example : "4:0:3" returns the name of the daughterboard card on USRP #0 and slot 2 (RX B)

Commands to set up a connection with an USRP and get more detailled informations

Connecting to USRP

  • Commands "2:x:y" set up a communication in RX with USRP x and RX slot y (y=0 for RX A and y=1 for RX B)
  • Commands "6:x:y" set up a communication in TX with USRP x and TX slot y (y=0 for TX A and y=1 for TX B)

Connected to USRP in RX and TX

  • [RX only] Change decimation rate: "20:x" where x is the decimation rate
  • [TX only] Change interpolation rate: "25:x" where x is the interpolation rate
  • Get gain range "21".
  • Set gain "22:x" where x is the new gain
  • Get frequency range "23"
  • Set freq "24:x" where x is the new frequency

Commands to control data flows

  • "10" starts the data reception
  • "11" stops the data reception
  • "12:x" asks for a burst of x samples
  • "15" starts the data transmission
  • "16" stops the data transmission

Note that the proposed version of the simple client is not compatible with the deployed version of the server. When using the functions to control the data flows, you will probably have some errors in the baudrate displayed by the client.

Personal tools
Software defined radio