WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide



Similar documents
Follow these steps to prepare the module and evaluation board for testing.

3.1 RS-232/422/485 Pinout:PORT1-4(RJ-45) RJ-45 RS-232 RS-422 RS-485 PIN1 TXD PIN2 RXD PIN3 GND PIN4 PIN5 T PIN6 T PIN7 R+ PIN8 R-

User s Manual TCP/IP TO RS-232/422/485 CONVERTER. 1.1 Introduction. 1.2 Main features. Dynamic DNS

2015/02/07 05:41 1/23 WIZ550WEB Users' Guide

Ethernet Interface Manual Thermal / Label Printer. Rev Metapace T-1. Metapace T-2 Metapace L-1 Metapace L-2

WIZ107SR User Manual

Prestige 310. Cable/xDSL Modem Sharing Router. User's Guide Supplement

Debugging Network Communications. 1 Check the Network Cabling

7.7 Ethernet Communication (AFPX-COM5)

Sending MAC Address Function

2. IP Networks, IP Hosts and IP Ports

IP Card Reader Interface User Manual

DSA-1000 / PRT-1000 Device Server / Thermal Printer

RN-XV-RD2 Evaluation Board

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Caml Virtual Machine File & data formats Document version: 1.4

UIP1868P User Interface Guide

Transport and Network Layer

HREP Series DVR DDNS Configuration Application Note

EMG Ethernet Modbus Gateway User Manual

User Manual Revision English Converter / Adapter Ethernet to RS232 / RS485 (Order Code: HD HD M HD HD M)

XPort Device Server User Guide

Application Protocols for TCP/IP Administration

Chapter 1 Configuring Internet Connectivity

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

Chapter 1 Configuring Basic Connectivity

HRG Performance Series DVR DDNS Support Application Note (hrgddns)

Technical Support Bulletin Nr.18 Modbus Tips

Prestige 314 Read Me First

QNAP SYSTEMS INC. QNAP Digital Signage Player Web Console Manual

Guideline for setting up a functional VPN

Ethernet Port Quick Start Manual

H0/H2/H4 -ECOM100 DHCP & HTML Configuration. H0/H2/H4--ECOM100 DHCP Disabling DHCP and Assigning a Static IP Address Using HTML Configuration

Voice Gateway with Router

Multi-Homing Security Gateway

WiFly Command Reference, Advanced Features & Applications User s Guide

EZL-50L User s Manual

Configuration of the DHCP server

ACP ThinManager Tech Notes Troubleshooting Guide

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

xpico User Guide Part Number Revision A April 2012

UDS10 UDS100 User Guide

SYMETRIX SOLUTIONS: TECH TIP August 2015

Hands On Activities: TCP/IP Network Monitoring and Management

29 ThinManager Troubleshooting Guide

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Chapter 3 Management. Remote Management

Chapter 4 Management. Viewing the Activity Log

OLT LTP-8X_v Appendix to Operation Manual OLT LTP-8X Quick Configuration Guide Central Office Node Terminal

DSL- G604T Frequently asked Questions.

RFID MODULE Mifare Reader / Writer SL031 User Manual Version 2.7 Nov 2012 StrongLink

UDS1100 User Guide Part Number Revision B June 2006

Supporting ZDOs with the XBee API

Brunata Optuna W (171)

Broadband Phone Gateway BPG510 Technical Users Guide

DeviceMaster UP Modbus Controller to Controller Communication

Configuring the WT-4 for ftp (Ad-hoc Mode)

MAX T1/E1. Quick Start Guide. VoIP Gateway. Version 1.0

Networking Basics for Automation Engineers

Bits per Second Data Bits Parity Stop Bits Flow Control None 1 None

Art-Net 3. Specification for the Art-Net 3 Ethernet Communication Protocol.

OSBRiDGE 5XLi. Configuration Manual. Firmware 3.10R

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

MATRIX 210. Host Mode Programming

Wifi Web Server Module w TF Socket User s Guide

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Connecting to and Setting Up a Network

EtherNet/IP Modbus XPort, NET232, and NET485

GV-Data Capture V3 Series User's Manual

Multi-Master DF1 Protocol User Guide

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

It should be noted that the installer will delete any existing partitions on your disk in order to install the software required to use BLËSK.

P160S SIP Phone Quick User Guide

Fireware How To VPN. Introduction. Is there anything I need to know before I start? Configuring a BOVPN Gateway

SNMP Manager User s Manual

Chapter 6 Using Network Monitoring Tools

Protecting the Home Network (Firewall)

NPort 5110 Series User s Manual

Soft-Starter SSW-06 V1.6X

RFID MODULE Mifare Reader / Writer SL032 User Manual Version 1.5 Nov 2012 StrongLink

CyberData VoIP V2 Speaker with VoIP Clock Kit Configuration Guide for OmniPCX Enterprise

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

F2103 GPRS DTU USER MANUAL

xdirect User Guide Part Number R Revision A September 2012

WL830RT4 Wireless G Broadband Router

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

A DHCP Primer. Dario Laverde, 2002 Dario Laverde

ACCESS 9340 and 9360 Meter Ethernet Communications Card ETHER

ROM Monitor. Entering the ROM Monitor APPENDIX

Network Management Card. User Manual

Prestige 324 Quick Start Guide. Prestige 324. Intelligent Broadband Sharing Gateway. Version V3.61(JF.0) May 2004 Quick Start Guide

Prestige 324. Prestige 324. Intelligent Broadband Sharing Gateway. Version 3.60 January 2003 Quick Start Guide

LevelOne VOI H.323 VoIP Gatekeeper. User Manual

DSL-G604T Install Guides

Data sheet Wireless UART firmware version 4.02

The irnetbox Manager User Guide

CSE-H21 User s Manual

F-SECURE MESSAGING SECURITY GATEWAY

Chapter 6 Using Network Monitoring Tools

Transcription:

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide Rev 0.2 This document describes how to make your own Configuration Tool for WIZ100SR, WIZ105SR and WIZ110SR of WIZnet. And the detailed communication protocols and message formats will also be introduced. For the other S2E devices, the communication port numbers and setting message are different from these products. If you are using other S2E devices of WIZnet and you want to make you own configuration program, please contact us to get more detailed information for programming. 1. Search Device There are two type search methods: one is broadcast using UDP, the other is uni-cast using TCP. The broadcast method can find all connected S2E devices in the same subnet; as well the uni-cast method can only find the S2E device which has the input IP address. The two methods use the same command that is shown in Fig. 1. Please, note that the remote UDP port is 1460 and local UDP port is 5001, and the remote TCP port for direct searching is 1461. 0x46 0x49 0x4E 0x44 Fig. 1 Search request command format ( FIND ) Once the S2E device receives the Search command from one host, it will response the host with the command and detailed current setting message as shown in Fig. 2 (a) and (b), respectively. 0x49 0x4D 0x49 0x4E (a) Searching response command ( IMIN )

1 2 3 4 5 6 7 8 9 10 11 0 5 7 10 11 14 Byte MAC Address OP IP Address Subnet Mask Gateway IP Address Port Remote Host IP Address R_Port Baud D Bit Prty S Bit Flow Char Length Interval Inactivity Dbug Ver dhcp udp conn DFlg EnP DNS Server IP Address Connection Password (8 Bytes) Remote host domain name (32 Bytes) SCfg PPPoE ID (32 Bytes) PPPoE Password (32 Bytes) scfg String (b) Setting message Fig. 2 Searching response command (a) and setting message (b) The total length of the response message is 153 Bytes (includes command), and each field is introduced as follows. MAC address (6 Bytes) This field is read only which indicates the MAC address of the S2E device. OP (1 Byte) Indicate the operation mode 0x00: client mode 0x01: server mode 0x02: mixed mode IP address (4 Byte) S2E device s IP address Subnet mask (4 Byte) S2E device s subnet mask Gateway IP address Gateway IP address of S2E device Port (2 Byte) Opened TCP or UDP port of S2E device Remote host IP address (4 Byte) Remote host IP address for S2E device to connect (Client mode) R_port (2 Byte) TCP or UDP port of remote host Baud (1 Byte) Indicate the current serial baud rate of the S2E device 0xA0: 1200 0xD0: 2400

0xE8: 4800 0xF4: 9600 0xFA: 19200 0xFD: 38400 0xFE: 57600 0xFF: 115200 0xBB: 230400 D_Bit (1 Byte) The current serial port data bits of the S2E device 0x00: 7 bits 0x01: 8 bits Prty (1 Byte) Indicate the serial port parity settings of the S2E device 0x00: None 0x01: Odd 0x02: Even S_Bit (1 Byte) Indicate the current serial port stop bits of the S2E device 0x00: 1 bit Flow (1 Byte) Indicate the serial port flow control settings of the S2E device 0x00: None 0x01: Xon/Xoff 0x02: CTS/RTS Char (1 Byte) The field defines the special character that the input serial data will not be sent out until the defined character received. 0 means this packing condition is not used. Length (2 Bytes) Input serial data packing length. When the input serial data length reaches to the value, it will be sent out. Please, note that only the low 1 byte is used and the maximum length is 0x00FF. 0 means the packing condition is disabled. Interval (2 Bytes) Input serial data packing interval, which indicates how long to send the input serial data once. 0 means the condition is not used and 0xFFFF is the maximum interval in millisecond.

Inactivity (2 Bytes) This field indicates that the TCP connection will be closed when there is no input serial data in the defined inactivity interval in second. 0 disables the condition. Dbug (1 Byte) This field determines if the debug message is printed out or not via serial port. 0x00: Enable output debug message 0x01: Disable output debug message Ver (2 Bytes) Firmware version. Low byte is major version and high byte is minor version (e.g. 0x0309 means version 3.9). dhcp (1 Byte) This field defines how the device gets its IP address. 0x00: Using static IP address 0x01: Using DHCP dynamic IP address 0x02: Using PPPoE gets dynamic IP address udp (1 Byte) This field defines the transmission protocol, TCP or UDP. 0x00: Using UDP 0x01: Using TCP conn (1 Byte) This field is read only which indicates the remote host connection status. 0x00: The device is disconnected with remote host 0x01: The device is connected with remote host DFlg (1 Byte) This flag indicates the remote host using IP address or domain name. 0x00: IP address 0x01: Domain name DNS Server IP Address (4 Bytes) This field defines the DNS server IP address of the device. Remote host domain name (32 Bytes) This field stores the remote host domain name. scfg (1 Byte) This field defines the serial configuration mode trigger status. 0x00: Disabled 0x01: Enabled

scfg String (3 Bytes) Serial configuration mode trigger command. (if the device receives the defined 3 bytes via serial port, it will go to configuration mode) PPPoE ID (32 Bytes) User s PPPoE ID. PPPoE Password (32 Bytes) User s PPPoE password. EnP (1 Byte) This byte defines remote host TCP connection password is used or not. This function can only be used in server mode. If this function is enabled, the remote host must send the defined password to the device when connection built. 0x00: Disabled 0x01: Enabled Connection Password (8 Bytes) The connection password defined for the remote host. Fig. 3 shows the message exchange timing sequence between configuration tool and a S2E device. Configuration Tool (UDP: 5001/TCP ) S2E Device (UDP:1460/TCP: 1461) Fig. 3 Searching message exchange timing sequence diagram 2. Setting Device If some S2E devices have been listed after searching, you can select one device to set its parameters using the following command. Here, the remote UDP port is 1460 and local UDP port is 5001, and TCP port 1461 is opened in the S2E device side for directly

connection oriented setting. You should send the setting command as shown in Fig. 4 with the setting message to the selected device. 0x53 0x45 0x54 0x54 Fig. 4 Setting request command ( SETT ) After the device receiving the setting request command and message successfully, it will response the host with a setting response command as shown in Fig. 5 with the same setting message. 0x53 0x45 0x54 0x43 Fig. 5 Setting response command ( SETC ) If the host receives the response command from the S2E device, it means that the new setting message has been processed successfully. And now the S2E device will run with new parameter values. The whole setting procedure is shown in Fig. 6. Configuration Tool (UDP: 5001/TCP ) S2E Device (UDP:1460/TCP: 1461) Fig. 6 Setting message exchange timing sequence diagram 3. Upload Firmware The S2E s firmware can also be updated via network. A command is needed to make the S2E device jump to boot code to receive data of the new firmware. The command is shown in Fig. 7. You also can broadcast the command with the above introduced setting message via local UDP port 5001 to remote UDP port 1460. If the direct searching is checked, the command with setting message should be sent out by TCP via

port 1461. Please, note the created binary file should be attached a 6 bytes header and 2 bytes checksum in the end of the file. The header is shown as Fig. 8. After the S2E received the command, it will jump to boot and listen on the TCP port 1470. So, another TCP socket is needed to connect the predefined port. After the TCP connection established, the length of the generated binary file including header and checksum should be sent to the S2E firstly. The length is 4 bytes in little-endian. And now, you can transfer the binary file to the S2E via the established connection. 0x46 0x49 0x52 0x53 Fig. 7 Firmware uploading command ( FIRS ) 0 6 Byte 0x57 0x6C 0x7A 0x6E 0x65 0x74 Fig. 8 Firmware header format ( Wiznet ) After the S2E received the whole new firmware, it will reboot again, and the new firmware will be applied. Please, note if error occurs during file transferring, the version of firmware will be set to 82.0. If you find a device has this version number, you have to upload the firmware again. Please note that only the firmware provided by WIZnet can be uploaded to your device. The following Fig. 9 shows a whole firmware uploading procedure.

Configuration Tool (UDP: 5001/TCP ) S2E Device (UDP:1460/TCP: 1461) Jump to boot Listen on TCP port 1470 Prepare F/W binary file Connect port 1470 Fig. 9 Firmware uploading timing sequence diagram