WIZnet-S2E-Tool
is command-line module configuration & test tool for WIZnet S2E devices.
Python interpreter based and it is platform independent.
This works on Python version 3.6 or later.
WIZnet Documents provides a step-by-step tutorial of WIZnet-S2E-Tool
.
WIZnet-S2E-Tool
works on Python version 3.6 or later.
If you don't have Python, refer to https://www.python.org/
If python already installed, check the version as follow.
$ python --version
$ python wizconfig.py [Options ...]
You can see detail description as following command.
$ python wizconfig.py -h
<About Channel #N Options>
- 1 Port S2E devices
- WIZ750SR Series
- Use Channel #1 Options only.
- 2 Port S2E devices
- WIZ752SR Series
- Use Channel #1 Options & Channel #2 Options both.
And all other options are common for 1 port & 2 port S2E devices.
You can check the all available options from this Wiki page: Getting Started Guide - Options.
First, you could search devices use '-s' or '--search' option.
$ python wizconfig.py -s
And then mac_list.txt is created, there are MAC address information of each device.
First, find the option(s) for you want to set from Options. And then config the device(s) use following command.
- Single Device
$ python wizconfig.py -d 00:08:DC:XX:XX:XX [Options ...]
- All Devices
$ python wizconfig.py -a [Options ...]
Example
Set baud rate to 115200 of 1 port S2E device. (use --baud0 option)
If device's mac address is '00:08:DC:AA:BB:CC', you can set like this.
$ python wizconfig.py -d 00:08:DC:AA:BB:CC --baud0 115200
If you want to set baud rate for all devices on the network, do like this.
$ python wizconfig.py -a --baud0 115200
When do device's firmware upload, need TCP connection with device to send Firmware file.
So first, use -m/--multiset option for set ip address to the same network-band as host.
$ python wizconfig.py -m <IP address>
Next, prepare the firmware file. You must use App Boot firmware file when do this.
To download firmware binary file, refer below link.
You should use Application Only version to upload firmware using Config tool.
- https://github.com/Wiznet/WIZ750SR/releases
- https://github.com/Wiznet/WIZ750SR/tree/master/Projects/S2E_App/bin
If file is ready, perform the F/W update with the following command:
- Single device
$ python wizconfig.py -d 00:08:DC:XX:XX:XX -u <F/W file path>
- All device
$ python wizconfig.py -a -u <F/W file path>
Confirm your host's network band and set IP address for multiple devices.
And need to perform -s/--search option before this because -m/--multiset command use mac_list.txt
file.
If your host PC use IP '192.168.0.X',
$ python wizconfig.py -s
$ python wizconfig.py -m 192.168.0.100
This is just example. You can any address that not use, instead of '100'.
Single device F/W upload (if mac address is '00:08:DC:AA:BB:CC')
$ python wizconfig.py -d 00:08:DC:AA:BB:CC -u W7500x_S2E_App.bin
All device F/W upload (in mac_list.txt)
$ python wizconfig.py -a -u W7500x_S2E_App.bin
You can check all configuration information of the device use --getfile option.
You can use example files named cmd_oneport.txt and cmd_twoport.txt.
-
Single device
-
for One port
$ python wizconfig.py -d 00:08:DC:XX:XX:XX --getfile cmd_oneport.txt
-
for Two port
$ python wizconfig.py -d 00:08:DC:XX:XX:XX --getfile cmd_twoport.txt
-
-
ALL devices
-
for One port
$ python wizconfig.py -a --getfile cmd_oneport.txt
-
for Two port
$ python wizconfig.py -a --getfile cmd_twoport.txt
-
It will create log file(s) named getfile_0008DCXXXXXX.log that contains information about the device.
You can save the settings you want to keep to a file and set them with the --setfile option. It can be used as macro.
First, To use this option, refer to WIZnet wiki's WIZ750SR command manual.
List up commands to file. here is an example file, set_cmd.txt
IM0
LI192.168.0.25
SM255.255.255.0
GW192.168.0.1
LP5000
BR12
Then, config device use --setfile option.
- Single device
$ python wizconfig.py -d 00:08:DC:XX:XX:XX --setfile set_cmd.txt
- ALL devices
$ python wizconfig.py -a --setfile set_cmd.txt
GUI configuration tool can be refer from WIZnet-S2E-Tool-GUI github page.
This tool is perform simple loopback test for functional verification of WIZ75XSR devices.
- Warning
For loopback test, TX/RX pin(of serial connector:D-SUB9 port, Pin 2 & 3) must be connected (use jumper connector).
$ python wiz75x_loopback_test.py -h
optional arguments:
-h, --help show this help message and exit
-s {1,2}, --select {1,2} Select number of serial port (1: 1 Port S2E, 2: 2 Port S2E)
-t TARGETIP, --targetip TARGETIP Target IP address
-r RETRY, --retry RETRY Test retry number (default: 5)
-t/--targetip option is for set IP address to the same network-band as host.
$ python wiz75x_loopback_test.py -s <number of port> -t 192.168.X.X
-r/--retry is optional, and -s/--select and -t/--targetip is essential.
If host IP address is 192.168.0.50 and device is 1 port S2E module,
$ python wiz75x_loopback_test.py -s 1 -t 192.168.0.100
If device is 2 port S2E module,
$ python wiz75x_loopback_test.py -s 2 -t 192.168.0.100
Result example
>python wiz75x_loopback_test.py -t 192.168.50.208 -r 5
1 devices are detected
Device 1 mac addr: 00:08:DC:XX:XX:XX
thread for '192.168.50.208' is starting
['192.168.50.208'] is OPEN
['192.168.50.208'] is CONNECTED
[192.168.50.208] sent Hello WIZ750SR
[192.168.50.208] received Hello WIZ750SR
[192.168.50.208] 05 Oct 2022 15:23:37: success, success rate : 100.00%, [1/1]
[192.168.50.208] sent Hello WIZ750SR
[192.168.50.208] received Hello WIZ750SR
[192.168.50.208] 05 Oct 2022 15:23:38: success, success rate : 100.00%, [2/2]
[192.168.50.208] sent Hello WIZ750SR
[192.168.50.208] received Hello WIZ750SR
[192.168.50.208] 05 Oct 2022 15:23:38: success, success rate : 100.00%, [3/3]
[192.168.50.208] sent Hello WIZ750SR
[192.168.50.208] received Hello WIZ750SR
[192.168.50.208] 05 Oct 2022 15:23:38: success, success rate : 100.00%, [4/4]
[192.168.50.208] sent Hello WIZ750SR
[192.168.50.208] received Hello WIZ750SR
[192.168.50.208] 05 Oct 2022 15:23:39: success, success rate : 100.00%, [5/5]
TCPClient close()
thread for 192.168.50.208:5000 is shutdowning
======================================
[192.168.50.208:5000] stopped at 05 Oct 2022 15:23:39
Total try: 5
Success count: 5
Fail count: 0
Success Rate: 100.0%
======================================
all threads are dead
Loopback test finished. Factory reset will be proceed.
You can check the contents of configuration tool wiki on the WIZnet-S2E-Tool wiki page.
If you have any problems, use one of the links below and please report the problem.