Network Operation and Remote Control
R&S
®
SMW200A
815User Manual 1175.6632.02 ─ 30
13.7.5 Establishing a Remote Control Connection over LAN Using Socket
Communication
This section provides an example on how to establish a remote control connection over
Telnet client and a simple sockets-based program example that can be further devel-
oped.
See also Chapter D.2, "Telnet program examples", on page 1335.
The telnet client transmits information unencrypted. Therefore, for sensitive information
we recommend that you use a client which supports secure protocols, like SSH.
In the following example, we assume basic knowledge of programming and operation
of the controller. You can find information on the interface commands in the corre-
sponding manuals.
Setting up a Telnet connection
To control the software, only a Telnet program is required. The Telnet program is part of
every operating system.
1. On the instrument:
a) Enable the LAN interface.
See Chapter 13.6.1, "How To Enable Access via LAN", on page 803.
b) Enable "SCPI over LAN".
See Chapter 13.6.2, "How To Activate LAN Services", on page 803.
2. Connect the remote PC and the instrument in the same network.
See also Chapter 13.6.3, "How To Connect to LAN", on page 804.
3. On the remote PC, start the Telnet program.
Enter the socket address.
The socket address is a combination of the IP address or the hostname of the
R&S SMW and the number of the port configured for remote-control via Telnet.
Tip: The R&S SMW uses the port number 5025 for remote connection via Telnet.
The connection to the instrument is set up and you can send remote-control com-
mands.
Controlling the R&S
SMW Remotely