Skip to content

Client Demo

Urs P. Stettler edited this page Aug 24, 2016 · 4 revisions

You can execute the client demo with maven:

java -jar sr201-client-<version>-jar-with-dependencies.jar

The board and the computer that executed the tool must be in the same network. Since the SR-201 boards are configured to the static IP 192.168.1.100, your computer has to join that network, too.

You can change the IP address and subnet mask of the board using the config tool.

Connect to the board

After the start you are presented with a form that lets you state two things:

  1. The current IP address of the board.
  2. Which protocol to use to communicate with the board.

The port field changes when choosing a protocol and cannot be changed directly.

Note that only over TCP the board sends a feedback containing the state of the relays. However, the UDP implementation tries to predict the current state by analyzing the past commands. This only works, if you are the only client that switches relays.

The "Test" button only makes sense when using TCP.

When ready press the "Connect" button.

Switch relays.

Each button in the second view represents the state of one relay. Numbered from left to right, top to bottom.

Pressing a button sends the opposite state to the board then the button changes its icon.

You can hover over a button to get a tooltip that may help you understand the icons I used.

The "Settings" button returns to the connection form.

Clone this wiki locally