-
Notifications
You must be signed in to change notification settings - Fork 8
LoopbackTest_en
renakim edited this page May 10, 2023
·
1 revision
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.