Wiznet WIZ120SR User Manual page 17

Hide thumbs Also See for WIZ120SR:
Table of Contents

Advertisement

establishment. TCP Client mode tries to connect to the peer IP and peer port number. The
mixed mode supports both mode of operations (server and client).
<TCP server mode>
In the TCP Server mode, WIZ120SR waits for connection requests.
TCP Server mode can be useful for checking the status of a system by connecting to a
device or for accepting to connect from control center.
In order to operate in this mode, Local IP, Subnet, Gateway Address and Local Port
Number should be configured first.
Data transmission proceeds as the followings:
1. The host connects to the WIZ120SR which is configured as TCP Server mode.
2. After the connection is established, data can be transmitted in both directions – from
the host to the WIZ120S or vice versa.
<TCP client mode>
When TCP client mode is set in WIZ120SR, it attempts to establish a connection to the
server.
To operate this mode, Local IP, Subnet, Gateway Address, Peer IP, and Peer port number
should be set. If your server IP is represented as a domain name, please use the DNS
function.
Data transmission proceeds as follows:
1. As long as power is supplied, the WIZ120SR board can establish a connection to the
server with peer IP and Peer Port number.
2. When the connection is established, data can be transmitted in both directions – from
the host to the WIZ120SR or vice versa.
<Mixed mode>
In the mixed mode, WIZ120SR automatically begins to operate as the TCP Server, and
waits for the connection request from peers. However, if WIZ120SR receives data from
the serial device before a connection is established, it changes to the client mode and
sends the data to the peer IP. Therefore, in the mixed mode, the server mode has priority
over the client mode, unless data from a serial device is received first. To go back into
Sever mode, close the Client mode connection and the WIZ120SR will automatically
revert to Server mode.
Similar to the TCP Server mode, the Mixed mode is useful for monitoring the status of the
serial device. In an emergency, the module can be switched by the device/user to Client
mode to establish the connection to the peer and deliver the emergency status of the
device.
- Use UDP mode
In the UDP mode, the connection establishment is omitted. Please set the IP address and port
number of the peer then your packet will send out.
UDP Protocol does not provide reliable data communication; as a result, you must evaluate
whether UDP is suitable for your application or not.
- Local Port : This field is to set the network port number in WIZ120SR.
☞ You should set to different port number from each other UART port.
WIZ120SR User‟s Manual (WIZnet, Inc.)
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wiz120sr-evb

Table of Contents