User Tools

Site Tools


products:s2e_module:wiz752sr-120:configtoolmanual:start

Contents


Overview

This Tool is Configuration & Test Tool for WIZnet S2E devices.

The latest version tool can be downloaded at this WIZnet-S2E-Tool github page.


Configuration Tool

CLI Configuration Tool

Pre-Required

1) Python

This tool works on Python version 2.7.X. If you don't have Python, refer to https://www.python.org/

If python already installed, check the version as follow.

  $ python --version
  Python 2.7.X

2) pySerial

Next, you have to install pySerial module as follow.

  $ pip install pyserial

If you want more detail, refer to https://github.com/pyserial/pyserial


Usage

  $ python wizconfig.py [Options ...]

You can see available all options as following command.

  $ python wizconfig.py -h
  ...
  <WIZnet CLI Configuration Tool>
  optional arguments:
  -h, --help            show this help message and exit
  -d MACADDR, --device MACADDR
                          Device mac address to configuration
  -a, --all             Configuration about all devices (in mac_list.txt)
  Firmware Upload:
  -u FWFILE, --upload FWFILE
                          Firmware upload from file
  No parameter Options:
  -s, --search          Search devices (in same network)
  -c, --clear           Mac list clear
  -r, --reset           Reboot device
  -f, --factory         Factory reset
  Network Configuration:
  --nmode {0,1,2,3}     Network operation mode (0: tcpclient, 1: tcpserver, 2: mixed, 3: udp)
  --alloc {0,1}         IP address allocation method (0: Static, 1: DHCP)
  --ip IP               Local ip address
  --subnet SUBNET       Subnet mask
  --gw GW               Gateway address
  --dns DNS             DNS server address
  --port PORT           Local port number
  --rip IP              Remote host IP address / Domain
  --rport PORT          Remote host port number
  UART #0 Configurations:
  --baud0 BAUD0         baud rate (300|600|1200|1800|2400|4800|9600|14400|19200|28800|38400|57600|115200|230400)
  --data0 {0,1}         data bit (0: 7-bit, 1: 8-bit)
  --parity0 {0,1,2}     parity bit (0: NONE, 1: ODD, 2: EVEN)
  --stop0 {0,1}         stop bit (0: 1-bit, 1: 2-bit)
  --flow0 {0,1,2}       flow control (0: NONE, 1: XON/XOFF, 2: RTS/CTS)
  --time0 TIME0         Time delimiter (0: Not use / 1~65535: Data packing time (Unit: millisecond))
  --size0 SIZE0         Data size delimiter (0: Not use / 1~255: Data packing size (Unit: byte))
  --char0 CHAR0         Designated character delimiter (00: Not use / Other: Designated character)
  --it timer            Inactivity timer value for TCP connection close
                          when there is no data exchange (0: Not use / 1~65535: timer value)
  --ka {0,1}            Keep-alive packet transmit enable for checking TCP connection established
  --ki number           Initial TCP keep-alive packet transmission interval value
                          (0: Not use / 1~65535: Initial Keep-alive packet transmission interval (Unit: millisecond))
  --ke number           TCP Keep-alive packet transmission retry interval value
                          (0: Not use / 1~65535: Keep-alive packet transmission retry interval (Unit: millisecond))
  --ri number           TCP client reconnection interval value [TCP client only]
                          (0: Not use / 1~65535: TCP client reconnection interval (Unit: millisecond))
  UART #1 Configurations:
  --baud1 BAUD1         baud rate (300|600|1200|1800|2400|4800|9600|14400|19200|28800|38400|57600|115200|230400)
  --data1 {0,1}         data bit (0: 7-bit, 1: 8-bit)
  --parity1 {0,1,2}     parity bit (0: NONE, 1: ODD, 2: EVEN)
  --stop1 {0,1}         stop bit (0: 1-bit, 1: 2-bit)
  --flow1 {0,1,2}       flow control (0: NONE, 1: XON/XOFF, 2: RTS/CTS)
  --time1 TIME1         Time delimiter (0: Not use / 1~65535: Data packing time (Unit: millisecond))
  --size1 SIZE1         Data size delimiter (0: Not use / 1~255: Data packing size (Unit: byte))
  --char1 CHAR1         Designated character delimiter (00: Not use / Other: Designated character)
  --rv timer            Inactivity timer value for TCP connection close
                          when there is no data exchange (0: Not use / 1~65535: timer value)
  --ra {0,1}            Keep-alive packet transmit enable for checking TCP connection established
  --rs number           Initial TCP keep-alive packet transmission interval value
                          (0: Not use / 1~65535: Initial Keep-alive packet transmission interval (Unit: millisecond))
  --re number           TCP Keep-alive packet transmission retry interval value
                          (0: Not use / 1~65535: Keep-alive packet transmission retry interval (Unit: millisecond))
  --rr number           TCP client reconnection interval value [TCP client only]
                          (0: Not use / 1~65535: TCP client reconnection interval (Unit: millisecond))
  UART Command mode switch settings:
  --te {0,1}            Serial command mode switch code enable
  --ss 3-byte hex       Serial command mode switch code (default: 2B2B2B)
  Configs:
  --cp {0,1}            TCP connection password enable [TCP server mode only]
  --np pw               TCP connection password (string, up to 8 bytes / default: None) [TCP server mode only]
  --sp value            Search identification code (string, up to 8 bytes / default: None)
  --dg {0,1}            Serial debug message enable (Debug UART port)
  Configuration from File:
  --setfile SETFILE     File name to Set
  --getfile GETFILE     File name to Get info. Refer default command(cmd_oneport.txt or cmd_twoport.txt).
  Set IP address for multi devices:
  -m ipaddr, --multiset ipaddr
                          Set IP address for all device in 'mac_list.txt'. Parameter is first address.
  • Warning

The UART #1 Configurations is for 2 port S2E devices. refer to below.

  • 1 Port S2E devices
    • WIZ750SR Series
    • Use UART #0 Configurations only.
  • 2 Port S2E devices
    • WIZ752SR Series
    • Use UART #0 Configurations & UART #1 Configurations both.

And all other options are common for 1 port & 2 port S2E devices.


1. Search Devices

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


2. Configuration

  • Single Device
  $ python wizconfig.py -d 00:08:DC:XX:XX:XX [Options ...]
  • All Devices
  $ python wizconfig.py -a [Options ...] 
  • Set example

Set baud rate to 115200 of 1 port S2E device. 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 

3. Firmware Upload

When do device's firmware upload, need TCP connection with devices 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>

And you must use App part firmware file when do this. To download firmware file, refer to below.

  • Single devcie
    $ 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>

4. Get/Set configs Use File

Getfile

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 devcie
    $ python wizconfig.py -d 00:08:DC:XX:XX:XX --getfile <file_name>
  • ALL devcie
    $ python wizconfig.py -a --getfile <file_name>

Then log files will be created that containing device information.

Setfile

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 deivce use –setfile option.

  • Single devcie
    $ python wizconfig.py -d 00:08:DC:XX:XX:XX --setfile set_cmd.txt
  • ALL devcie
    $ python wizconfig.py -a --setfile set_cmd.txt

GUI Configuration Tool

GUI Configuration Tool is not supported yet. It will be update soon.


Test Tool

Loopback Test

This tool is perform simple loopback test for functional verification of WIZ75XSR devices.

  • Warning

For use this, TX/RX pin(of serial connector:D-SUB9 port) must be connected (use jumper connector).

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

FAQ

If you have any problems, please visit WIZnet Forum.


products/s2e_module/wiz752sr-120/configtoolmanual/start.txt · Last modified: 2018/02/01 08:53 by rena