-
Notifications
You must be signed in to change notification settings - Fork 24
Client Demo
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.
After the start you are presented with a form that lets you state two things:
- The current IP address of the board.
- 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.
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.