Skip to content

LoopbackTest_ko

renakim edited this page May 10, 2023 · 1 revision

Loopback Test

WIZ75XSR 장치의 동작 검증을 위한 간단한 Loopback 테스트를 수행할 수 있습니다.

장치 연결

루프백 테스트를 위해서는 점퍼 핀 또는 케이블을 사용하여 TX/RX 핀(D-SUB9 포트의 핀 2, 3)을 연결해야 합니다.

Usage

$ 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 옵션은 IP 주소를 호스트와 동일한 네트워크 대역으로 설정하기 위한 것입니다.

$ python wiz75x_loopback_test.py -s <number of port> -t 192.168.X.X

Example

-r/--retry is optional, and -s/--select and -t/--targetip is essential.

호스트 IP 주소가 192.168.0.50이고 장치가 1포트인 경우 다음과 같이 실행할 수 있습니다.

$ python wiz75x_loopback_test.py -s 1 -t 192.168.0.100

장치가 2포트인 경우는 다음과 같이 실행할 수 있습니다.

$ python wiz75x_loopback_test.py -s 2 -t 192.168.0.100

실행 예시

>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.