Home
WIZ127SR User Manual
Contents
1. 3 HEADER 2 120R 4 UART2_TX gt gt 485 SP3485 RS422 Example Circuit VDD3V3 Gel T otu A VOC 8 485 RX 1 p UART2 BW Z RO 7 120R ER HEADER 4 485 RX 6 485 TX UART2 me Zum 5 485 TX GND SP3701E Figure 4 Reference schematic for interfacing to RS485 422 WIZ127SR User s Manual WiZnet 3 Programmers Guide 3 1 Serial Commands 3 1 1 Serial Command Format It is possible to configure WIZ127SR by using serial command By inputting specified 3 characters you can enter into the configuration mode The characters can be defined at the Configuration Tool lt Frame Format gt Command Frame format Descriptor STX Command code Parameter ETX Length bytes 1 2 Variable 1 Table 5 Serial Configuration Frame format Reply Frame format De pto STX Reply code Parameter ETX ength byte 1 1 Variable 1 Table 6 Serial Configuration Reply Frame format STX amp ETX STX lt Hex 3Ch ETX gt Hex 3Eh Table 7 Serial Configuration STX amp ETX 3 1 2 Reply Code S Command was successful F Command failed 0 Invalid STX 1 Invalid command 2 Invalid parameter 3 Invalid ETX E Enter Serial Command Mode Table 8 Serial Configuration Reply Code 3 1 3 Command Code Command
2. WIZ127SR User s Manual 28 1 2 3 WiZnet 4 1 3 Option Configuration 7 WIZ127SR ConfigTool Ver 1 0 0 0 Q Search Serial to Ethernet UARTO UARTI Option Device name Serial number Password NTP C Enable NTP NTP Server IP Device Time Time Zone Device network settings O Using the follow IP Address Get IP address from DHCP server Device IP F W Version i C Enable Serial Debug Mode Gateway Network Status Subnet mask Port 0 DNS server Poti WIZ1278R Configtoal 1 Figure 7 Configuration Tool Option Configuration You should set to UART configuration after checking UART tab whether it is UARTO or UART1 The numbers on the screenshot correspond to the descriptions listed below Device name The device name is displayed in this area Serial number The serial number of device is displayed in this area Password The password that is used for web configuration and telnet is displayed in this area The shown password is encrypted by MD5 If you want to change the password double click the text box and then type your password in ASCII codes WIZ127SR User s Manual 29 WiZnet 4 NTP NTP Network Time Protocol is a protocol for clock synchronization between computer systems over the networks This function is reserved for customization In case of standard version this function just working for clock synchronization and display the
3. Parameter Structure Value bytes count Description WIZ127SR User s Manual 0008DCxxxxxx 6 MAC address xxxxxx is uniquely factory set 01 1 Mode 00 TCP Client 01 TCP Mixed 02 TCP Server 00000000 4 IP address 00000000 4 Subnet mask 00000000 4 Gateway address 0000 2 Local Port number Module s Port Number 00000000 4 Server IP address 0000 2 Server Port number Serial Baud Rate bps Default is FE BB 230 400 FF 115 200 FE 57 600 FD 38 400 FA 19 200 F4 9 600 E8 4 800 DO 2 400 FE 1 AO 1 200 WiZnet 08 1 Serial data size 08 8 bit 07 7 bit 00 1 Parity 00 No 01 Odd 02 Even 01 1 Stop bit 00 1 Flow control 00 None 01 XON XOFF 02 CTS RTS 00 1 Delimiter character 0000 2 Delimiter size 0000 2 Delimiter time 0000 2 Delimiter inactivity time 00 1 Debug code 00 ON 01 OFF 03 1 Software major version 01 1 Software minor version 00 1 DHCP option 00 DHCP OFF 01 DHCP ON 00 1 UDP mode 00 TCP 01 UDP 00 1 Connection Status 00 not connected 01 connected 00 1 DNS Flag 00 not use DNS 01 use DNS 00000000 4 DNS Server IP address 00 00 32 Server Domain Name 00 1 Serial command method 00 disable 01 enable 2B2B2B 3 Serial command mode character Hex 002020 2
4. Exit Close the configuration tool program window 6 Search Window If you click the Search button all the MAC addresses on the same subnet will be displayed 7 Device network settings Static Using the follow IP Address is an option for setting WIZ127SR modules IP with static IP address 1 Select a MAC address which you want to set as static IP in the Search Window Check Using the follow IP address The Device IP Gateway Subnet mask DNS server box will be enabled and then input address in those fields 4 Click the Setting button to apply your configurations DHCP Select Get IP address from DHCP server option to use the DHCP mode 1 Select the MAC address on the Search Window Check Get IP address from DHCP server and click the Setting button A module will acquire network information from the DHCP server Should wait a moment to acquire network information from the DHCP server 4 When a module on the Search Window is selected the IP address Subnet mask and Gateway are displayed If the module could not acquire the network information from the DHCP server the IP address the Gateway Address and the Subnet mask will be initialized as 0 0 0 0 IP Address Information WIZ127SR User s Manual 23 WiZnet Device IP WIZ127SR s IP Address Gateway WIZ127SR s Gateway Address Subnet mask WIZ127SR s Subnet Mask DNS server DNS Server s IP Address amp f you are unclear about
5. 1 Pin Assignment 2 0mm HEADER 1255 ie Pin name Description I O Attribute J1 1 VDD3V3 3 3V Power Supply J1 2 RESET Reset Active High Input J1 3 GND Ground TX Data Output for UART1 dl VARTI TX NG E Output UART1_TX J1 5 UART1_RTS Request To Send for UART1 Output J1 6 PBO GPIO pin Input Output CMOS TTL 5V tolerant Input J1 7 GND Ground J1 8 UART1 RX RX Data Input for UART1 Input J1 9 UART1 CTS Clear To Send for UART1 Input J1 10 PB1 GPIO pin Input Output CMOS TTL SV tolerant Input J1 11 GND Ground CMOS TTL SV tolerant Input WIZ127SR check whether this pin is asserted low as input pin EG ka Jean ITT LAN configuration mode Otherwise It enters into normal mode J2 1 VDD3V3A Analog 3 3V Output J2 2 RXIN Ethernet Differential Input Input J2 3 RXIP Ethernet Differential Input Input J2 4 GND J2 5 TXON Ethernet Differential Output Output J2 6 TXOP Ethernet Differential Output Output J2 7 GND Ground J2 8 LINKLED_MO Ethernet Link LED Output J2 9 PB5 GPIO pin Input Output CMOS TTL 5V tolerant Input WIZ127SR User s Manual WiZnet WIZ127SR User s Manual J2 10 SPDLED_M1 Ethernet Speed LED Output J2 11 FDXLED_M2 Ethernet Full duplex LED Output J2 12 VDD3V3 3 3V Power Supply J3 1 PC14 Input Output CMOS TTL SV tolerant Input J3
6. 2 PC15 Input Output CMOS TTL SV tolerant Input J3 3 UART2_CTS Clear To Send for UART2 Input CMOS TTL SV tolerant Input J3 4 UART2 RTS Request To Send for UART2 Output CMOS TTL SV tolerant Input TX Data Output for UART2 J3 5 UART2 TX Ka Output CMOS TTL SV tolerant Input UART2 TX J3 6 UART2 RX RX Data Input for UART2 Input CMOS TTL SV tolerant Input J3 7 STATUS2 e ARE Output CMOS TTL SV tolerant Input CMOS TTL SV tolerant Input J3 8 PB11 Factory Reset Active Low Input gag booting J3 9 PB12 GPIO pin Input Output CMOS TTL SV tolerant Input J3 10 PB13 GPIO pin Input Output CMOS TTL SV tolerant Input J3 11 PB14 GPIO pin Input Output CMOS TTL SV tolerant Input J3 12 PB15 GPIO pin Input Output CMOS TTL SV tolerant Input Table 1 Pin Description WiZnet 2 2 Dimension EEEE ooo00 52 5 EEE H open E no OG H Ae 0000000 WIZ127SR VERL O Ga 000000000000 000000000000 Figure 2 Dimension WIZ127SR User s Manual 4 2 3 Electrical Characteristics WiZnet 2 3 1 Absolute Maximum Rating Symbol Parameter Rating Unit VDD DC Supply voltage 0 5 to 3 63 V VIN DC Input voltage 0 5 to 3 63 V IIN DC Input current 5 mA TOP Operating temperature 0 to 70 c TSTG Storage temperature TBD c Table 2 Absolute Maximum Rating 2 3 2 DC Characteristics Symbol Parameter Test Conditon Min Typ Max Unit J
7. Awww wiznet co kr WIZ127SR User s Manual iii WiZnet Table of Contents 1 INTRODUCTION so scccsncccosecsasrssccissondsstsanseceidessescssansantitesdeusncapsucesecesdesscansespseaevensusessesusvanconessedirs 1 ES ENER d lu EEN 1 2 HARDWARE SPECIFICATIONS ressvsnvnnnnnnnenennnnnnnnnennennennnnnnennennennnnenensnnnenenensensennnnensnnensennnnene 2 2 1 PIN ASSIGNMENT AND DESCRIPTION c cccsccsscssscesscssecsecseecaeecsesesesseeseesesesseeseessaecsascsaecaaeeaeesaes 2 2 2 DIMENSION E 4 2 3 ELECTRICAL CHARACTERISTICS ccccsccssssesscsseescssccssesecseesecsscseceascseseescasesecesssessacseasaecausessaecaecnaees 5 2 3 1 Absolute Maximum Pang sas sasa aran saka aaa Sapa aan aanita 5 2 3 2 DC Chargciertetce eee eat 5 2 3 9 POWER DISSIPATION w dac oi a ind Aa Odile 5 2 4 APPLICATION SCHEMATICS csccssesccssesscssesceseescsaecssesecsscsecesesecesecsesaecasesecasseeeeseceseascaueescaeeenenases 6 2471 E EE 6 24 2 RS485 422 siaga pana dag agan anabda anganan pisa ta kani ba Kak AG aga nan lasten 7 3 PROGRAMMERS GUIDE cscccccssccsscsieccsnsscenvtncssnssccsctearsucsincsersatesneeccdarvensebesstnisdensecsstesetess uacesveen 8 Bide SERIAL COMMANDS ssie a yz EE SANE wada aa pa naa EDAR gester kjen 8 3 1 1 Serial Command Format 8 3 1 2 Reply COG EE 8 8 1 8 Command COJE asza ati kiaad oi aa da AEGEE 8 3 2 DATA MODE AND COMMAND MODE aaa asus esa aaa aa aaa bana aaa anana anana anana n anana anana anan
8. Category Description WI Format lt WIXXX XXX XXX XXX gt Set Local IP Meaning ex lt WI192 168 11 133 gt Response lt S gt RI Format lt RI gt WIZ127SR User s Manual 8 WiZnet Get the current WIZ127SR s Local IP address Its response format is like below lt S IP Addr gt Meaning IP Addr Server s IP address in a dotted decimal format ex lt RI gt Response lt 5192 168 0 100 gt WS Format lt WSXXX XXX XXX XXX gt Set Subnet Mark Meaning ex lt WS255 255 255 0 gt Response lt S gt RS Format lt RS gt Get the current WIZ127SR s Subnet Mask Its response format is like below lt S Subnet gt Meaning Subnet Server s IP address in a dotted decimal format ex lt RS gt Response lt 5255 255 255 0 gt WG Format lt WGXXX XXX XXX XXX gt Set Gateway Address Meaning ex lt WG192 168 11 1 gt Response lt S gt RG Format lt RG gt Get the current WIZ127SR s Gateway address Its response format is like below lt S IP Addr gt Meaning IP Addr Server s IP address in a dotted decimal format ex lt RG gt Response lt S192 168 0 1 gt WP Format lt WPXxxxx gt Set Local port number Meaning ex lt WP35000 gt Response lt S gt RP Format lt RP gt Get the current WIZ127SR s Local port number Its response format is like below lt S Port gt Meaning Port Server s IP address in a dotted decimal
9. Tool Figure 5 Configuration Tool Network Configuration 1 Search The Search function is used to search for all existing modules on the same LAN By using UDP broadcast it finds all modules on the same subnet and the founded device will be listed in the Serial to Ethernet tree Search Window with its MAC address 2 Setting This function is to apply your configurations When you select the MAC address from the Search Window the default value of the module will be displayed Modify your configurations and click Setting button to apply your settings The module will re initialize and save the changed configurations You can change the configurations by following steps Select the MAC address of the device which you would like to modify in the Search WIZ127SR User s Manual 22 WiZnet Window Modify the settings according to your needs Click the Setting button to apply your settings The module will be initialized by a re booting process eoeev To verify your settings please click Search button and view your new settings 3 Firmware Upload Firmware will be uploaded through your network The Procedure of Firmware upload is explained details in 5 How to upload a new firmware 4 Factory Reset All setting value is initialized to factory default if you click the Factory Reset button For factory default value of WIZ127SR refer to 4 4 Factory Default Value of WIZ127SR 5
10. booting WIZ127SR change STATUS1 pin to output port and this pin notifies what the current status of UARTO s corresponding socket is s this pin operates as output pin if its value is LOW its corresponding socket is disconnected Otherwise the connection of the socket is established STATUS2 pin is only to notify whether its corresponding socket is connected or not The meaning of its signal value is the same to STATUS1 3 4 How to use extra GPIO Pins WIZ127SR has extra GPIO pins using to control other devices or get control from other devices But with firmware version 0 9 WIZ127SR doesn t support this function yet WIZ127SR User s Manual 21 WiZnet 4 How to configure WIZ127SR 4 1 Configuring with UDP broadcasting and WIZ127SR Configuration Tool 4 1 1 Network Configurations 7 WIZ127SR ConfigTool Ver 1 0 0 0 UARTO UARTI Option COM port settings Timers Baud Rate R Nagle wait time Data Bit D Parity P Stop Bit S Flow Control F Inactivity Reconnection Serial Configuration Enable Code in Hex d 7 d d Working mode TCP client TCP server O TCP mixed O UDP Communication Local port Remote port Device network settings Remote host Using the follow IP Address Get IP address from DHCP server Device IP F W Version J Enable Serial Debug Mode 8 Gateway o E Network Status 60 Subnet mask DNS server amp WIZ1275R Config
11. on the waiting status and if there is any connection request SYN from the monitoring center the connection is established ESTABLISH and data communication is processed Data Transaction Finally connection is closed FIN In order to operate this mode Device IP Subnet mask Gateway and Local port should be configured first The Data transmission proceeds as follows 1 The host connects to the WIZ127SR which is configured as TCP Server mode 2 As the connection is established data can be transmitted in both directions from the host to the WIZ127SR and from the WIZ127SR to the host TCP client mode Communication If WIZ127SR is set as TCP Client it tries to establish connection to the server To operate this mode Device IP Subnet mask Gateway Remote host and Remote port should be set If Remote host has domain name you should be confirmed the DNS server field In TCP Client mode WIZ127SR can actively establish a TCP connection to a host computer when power is supplied The Data transmission proceeds as follows 1 As power is supplied WIZ127SR board operating as TCP client mode actively establishes a connection to the server 2 If the connection is complete data can be transmitted in both directions from the host to the WIZ127SR and from WIZ127SR to the host Mixed mode Communication In this mode WIZ127SR normally operates as TCP Server and waits f
12. response format is like below lt S ch gt Meaning ch Server s IP address in a dotted decimal format ex lt QC gt Response lt S41 gt OS Format lt OS size gt Set a size delimiter for making a ethernet data block in Decimal format Meaning size size information Its range is Oe 255 l s Default value is O If this value is 0 it means Size Delimiter Disabled ex lt OS100 gt Response lt S gt OS Format lt QS gt Get the current size delimiter value Its response format is like below lt S size gt Meaning size Server s IP address in a dotted decimal format ex lt QS gt Response lt S40 gt OT Format lt OT time gt Set a time delimiter for making a ethernet data block in Decimal format Meaning time time information lts range is 0 65505 Unit is millisecond Default value is O If this value is O it means Time Delimiter disabled ex lt OT100 gt Response lt S gt QT Format lt QT gt Get the current time delimiter value Its response format is like below lt S time gt Meaning time Server s IP address in a dotted decimal format ex lt QT gt Response lt S100 gt Ol Format lt Ol time gt WIZ127SR User s Manual 15 WiZnet Set the inactivity time for disconnecting the current established socket as data communication is idle for some time which users already set Meaning time time information Its range is 0 65535 Unit is second Defaul
13. time to configuration tool and web page Enable NTP This check box is to set the enable disable of NTP NTP Server IP This field is to set the NTP server IP address Device Time This field is to shown the current time of WIZ127SR Time Zone This field is to set the time zone of your country WIZ127SR User s Manual 30 WIZnet 4 2 Configuring with Web browser Open the web browser and input the IP address of the module The first page will request the user password as shown in below figure D Webpage configuration x 3 gt ff 5 192 168 11 100 Please input your password Password If you input the password the default value is WIZ127SR the configuration page will be displayed You can set the configuration parameters of network and serial D Serial to Ethernet G W r x gt e O 192 168 11 100 config html Device Information Device name WIZ1275R 16 bytes in Max Serial number WIZ127SR 111213 Device MAC address 00 08 DC 11 12 13 Device Network Settings using the follow IP address O Get IP address from DHCP server Device IP address 192 168 11 100 Gateway 192 168 11 1 Subnet mask 255 255 255 0 DNS server 8 8 8 8 UARTO Settings COM Port Settings Baudrate 115200 Data bit 8 Parity NONE Stop bit 1 sel Flow control NONE e M WIZ127SR User s Manual 31 WiZ
14. your Local IP Subnet Mask Gateway information you have to get this information from your network administrator If the IP address is not correct IP collision or network problems may occur 8 F W Version It displays the firmware version 9 Enable Serial Debug Mode If this mode is enabled you can monitor the status and socket messages of WIZ127SR through the serial terminal listen OK connect fail and etc In this mode debug messages can cause abnormal operation of the serial device Therefore you should use this mode only for debugging 10 Network Status This field shows the Connection Status of UARTO and UART1 in WIZ127SR The message Connected will be displayed when a peer successfully connects to WIZ127SR WIZ127SR User s Manual 24 WiZnet 4 1 2 Serial Configuration o WIZ127SR ConfigTool Ver 1 0 0 0 Q Search Q Exit Serial to Ethernet UARTO UARTI Option COM port settings Timers Baud Rate R Nagle wait time Data Bit D w Inactivity Parity P ei Reconnection Stop Bit S Flow Control E Working mode O TCP client O TCP sere D O TCP mixed UDP Communication Local port Remote port A Bowes network settings Remote host Using the follow IP Address Get IP address from DHCP server Device IP sds FW Version C Enable Serial Debug Mode Gateway Network Status Subnetmask Pont DNS server Poti amp WIZ1275R Config
15. 00 0000000000030100000000000000000020202020202020202020202020202020202020202020 202020202020202020012B2B2B0020202020202020202020202020202020202020202020202 0202020202020200020202020202020202020202020202020202020202020202020202020202 020000000000000000000FF Changing IP Address When changing the parameter value the MAC address is not changed As MAC address is the unique value for the module user can t change it When changing the IP address input the new value after first 6bytes STEP 1 Check HEX value of new IP address In here the new IP address is assumed as 192 168 11 10 Therefore the hex value COA80BON is input STEP 2 Input gt W01COA80BOAFFFFFFOO OOFF STEP 3 Check lt S message is displayed After displaying this message CR 0x0D amp LF 0x0A are displayed together STEP 4 After completing the change check if changed value is appropriated saved by using READ command WIZ127SR User s Manual 20 WIZnet 3 3 How to get the socket status In order to get the current status of its corresponding sockets user can monitor its STATUS pin There are two pins for this function in WIZ127SR One STATUS1 is pin 12 of JP1 and the other STATUS2 is pin 7 of JP3 STATUS1 pin 12 of JP1 pin shares the function of Hardware trigger for configuration of WIZ127SR STATUS1 is operating as input for checking whether user makes to enter it into Hardware trigger mode during booting of WIZ127SR and after
16. 020 32 PPPoE ID 002020 2020 32 PPPoE Password 00 1 Password option for TCP Server 00 disable 01 enable 0000000000000000 8 Password for TCP Server FF Last Byte It means end of parameter Table 11 Hardware Configuration Parameter descriptions 3 2 4 2 Reply Frame Format Frame Format Descriptor STX Reply code Parameter ETX Length bytes 1 1 Variable 2 Command lt OX3C S Variable CR LF OxODOA Table 12 Hardware Configuration Reply Frame format Reply for Entrance Hardware Command Mode Hex 0x3B Normal mod e Debug mode Ver 1 0 WIZ127SR User s Manual WIZ127SR bootloader 19 WiZnet Firmware Ver 0 9 Table 13 Hardware Configuration Entrance Message 3 2 4 3 Example Reading Parameter STEP 1 Supply the power into the module by asserting low pin 12 pin of JP1 STEP 2 Check if the reply message is displayed to notify whether WIZ127SR entered into Hardware Configuration If module is set as Debug mode the message is displayed after showing its model name and version WIZ127SR bootloader Ver 1 0 Firmware Ver 0 9 lt This is the notification message STEP 3 Input gt R and Carriage Return 0x0D STEP 4 Check response message WIZ127SR bootloader Ver 1 0 Firmware Ver 0 9 lt S50008DC135E2401C0A80B03FFFFFF00C0A80B011388C0A80B011388FE080001000000
17. 127SR EVB m Hardware PC having a RS 232 serial port and Ethernet port WIZ127SR 8 WIZ127SR Base Board Ethernet Cable Direct or Crossover Cable e Software WIZ127SR Configuration Tool Hyper Terminal 6 2 Testing Procedure 6 2 1 Hardware Connection Connect the PC and WIZ127SR base board in which the module is plugged with serial cable Connect the PC and WIZ127SR base board by using Ethernet cable Supply the power to the test board 6 2 2 Module Configuration Inthis manual we are going to test the module with following configuration Category Parameters Network Configuration IP Address 192 168 11 100 Subnet 255 255 255 0 WIZ127SR User s Manual 42 Gateway 192 168 11 1 Local port 5000 COM Port setting Baud Rate 115 200 Data bit 8 Parity None Stop bit 1 Flow Control None Working mode TCP server Check the network configuration of the PC and set the appropriate value Both of module and PC should be in the same network Therefore the IP address of the PC should be 192 168 11 xxx with the subnet 255 255 255 0 Execute the configuration tool program and search the module Internet Protocol TCP IP Properties General You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IP settings Obtain an IP address automat
18. 36 FIGURE 10 DTR SIGNAL TIMING DIAGRAM UNDER DGPIDTRvMOpE sue asza asa anana anan an anana ene ee 37 FIGURE 11 DSR SIGNAL TIMING DIAGRAM UNDER DSPRAD TRMOpE naen anana anan n anana en eee 37 FIGURE 12 RTS SIGNAL TIMING DIAGRAM UNDER RTS ONLY MODE eee saa nenen anane az anan an anana zee 38 FIGURE 13 CONFIGURATION TOOL rerenvrerrrnvevrrrvrnververvrerenvernrrnvevresvenvernesvrevernesnsesvensesvenvenresneevsrsvsnsessenvsnrer 39 FIGURE 14 OPEN DIALOG BOX FOR UPLOADING ccesccssssscssesecssesecsseseceaecasesecsscsecsassecsaceaceascatesecsaeseenes 40 FIGURE 15 FIRMWARE UPLOADING WINDOW asus eeu szu aaa ea nenen anane anane n anana aaa anana nane a nenen anane naen 41 FIGURE 16 COMPLETE UPLOADING cccccsccssesscsscescesecscsecssesecsscsecssssecnaccaseaecascsscsassessaceaseascatesecsaeseenes 41 WIZ127SR User s Manual v WiZnet Tables TABLE ROTH BEE 3 TABLE 2 ABSOLUTE MAXIMUM RATING sea eee eee ea aaa enea owane aaa aaa aaa azer e nenen anane 5 TABLE 3 DG CHARACTERISTIC snadder eneeier katn 5 TABLE 4 POWER DISSIPATION mane 5 TABLE 5 SERIAL CONFIGURATION FRAME FORMAT 8 TABLE 6 SERIAL CONFIGURATION REPLY FRAME FORMAT 8 TABLE 7 SERIAL CONFIGURATION STX SEIN 8 TABLE 8 SERIAL CONFIGURATION REPLY Coppi 8 TABLE 9 HARDWARE CONFIGURATION FRAME FORMAT 18 TABLE 10 HARDWARE CONFIGURATION COMMAND CODE 18 TABLE 11 HARDWARE CONFIGURATION PARAMETER DESCRIPTIONS ea eaaa en eaaa anane 19 TABLE 12 HARDWARE CONFIGUR
19. ATION REPLY FRAME FORMAT 19 TABLE 13 HARDWARE CONFIGURATION ENTRANCE MESSAGE 20 p WIZ127SR User s Manual vi WiZnet 1 Introduction WIZ127SR is a 2 ports gateway module that converts RS 232 protocol into TCP IP protocol This module enables remote gauging remote management of the device through the network based on the Ethernet and the TCP IP by connecting to existing equipment with RS 232 serial interface In other words WIZ127SR is a protocol converter that transmits the data sent by serial equipment as TCP IP data type or vice versa 1 1 Key Feature Plug amp Play Type Serial to Ethernet Gateway module Adds Network Function Simply and Quickly Provides Firmware Customization Hardware compatible with WIZ100SR 2port serial to Ethernet supports RS 232 supports RS 422 485 by adding RS 232 to RS 422 485 converter Supports TCP amp UDP communication Supports DHCP DNS NTP Easy configuration Web Telnet Configuration Tool amp Serial Command GPIO Extendable Max 10GPIOS by firmware customization 10 100 Ethernet amp Max 921 600bps Serial Interface Supports Static IP DHCP PPPoE Supports DNS function RoHS compliant WIZ127SR User s Manual 1 WiZnet 2 2 1 Pin Assignment and Description Hardware Specifications VDD3V3 T i 1 RESET 2 3 UART1 TX 4 E 5 6 7 UART1 RX 8 UARTI CTS 1 STATUS1 2 0mm HEADER 12x1 2 0mm HEADER 12x1 Figure
20. CP client O TCP server TCP mixed UDP Communication Local port 5000 Remote port 5001 Device network settings Remote host Using the follow IP Address 192 168 11 101 Get IP address from DHCP server Device IP 192 168 11 100 F W Version re Enable Serial Debug Mode Gateway 255 255 255 0 Network Status Subnet mask 192 168 11 1 PorO Disconnected DNS server 9 8 8 8 Portl Disconnected WZI278R ConfigTool J Figure 13 Configuration Tool Select a module shown in the Search Window and click the Firmware Upload button zs Before uploading the firmware through Ethernet you should set the network information of WIZ127SR first by Configuration Tool program as shown above in Figure 4 By using Ping test you can check whether your network is configured correctly or not When the window as shown in Figure 5 is displayed select file to upload and click the Open button WIZ127SR User s Manual 39 WiZnet File Select Lookin Dome gt emam gt e My Recent Documents Desktop n My Documents My Computer File name My Network Files of type Bin File bin x Cancel Places I Open as read only Figure 14 Open dialog box for uploading Do not upload any other files except for WIZ127SR application firmware file WIZ127SR User s Manual 40 The progress bar will be displayed as below za WIZ1275R ConfigToo
21. PES 3 E ete jete TI EE Hi EER mbi te ou END SS ce c eren Gie Tolu vopava Tege HEA pa Lu E ins CONNECTED STATUS HW TRIGGER SLO sw 2 K W S ze eem D MER ie kk UART1 vpoava Pera au go D wen ca jane Ak sw 2 vopava 1_B15 40K SLo sw 3 1 AK plis a DEI Cs Ip 1 16 owe ata e Jem ech sawsi 0 et v 282 al t DE MALERA os owe 4 6 os Joue ZE DI og ca v E suse 308 uenig s xr m og Lag vanm u D age 3 wana lu mun M BRT IS ne Toute He ZE RESET Br Tai rater vgoava 2 vopava co SPIZSZEUEYT 2 RIG uz Rang R29 JON io vec 10K2 10K RESET FACTORY RESET VARTI IX gg ARTE vppavs om swa o TACT SI O 1uF GND CH J0 1uF a UART2 ala 1 ue 1 16 i ere jane ien Ves a 2 cu inwe pa st Tra Do MALERA papane aloa v 8 er awe pees 2 ako a peia ca o VARTE TX maga 1 D ze pe Ween BEA mam E POWER VARTER EN nen an Te He H B z uk UARTE ETS ANA BOUN Sai SE EH te SVIN UA avan vopava GND 3 mae AMERB1SBEGT30Z SOT 228 T E SP3ZSZEUEV L us ro FR a ec e voosva v VIN ve Du amen seul eh el a SS ES li KE Reis r m e poi DO JACK GEN Hie LESTA GG VARTE DX R TARTE RTS wm e mm Mt a Mas Mas mas mas ETS aie Son vopavaa L bann HERDER 6x T Ps s m me Bu S Ho d d ja 9 9 Htmrsoe ten Ros i Hie Figure 3 WIZ127SR Base board schematic WIZ127SR User s Manual 2 4 2 RS485 422 WiZnet RS485 Example Circuit UART2 RXXC UART2_RTS VDD3V3
22. Tool Figure 6 Configuration Tool Serial Configuration You should set to UART configuration after checking UART tab whether it is UARTO or UART1 The numbers on the screenshot correspond to the descriptions listed below 1 COM port setting This menu is used for setting the serial port In order to apply your settings click the Setting button 2 Working mode Client server mixed This is to select the communication method based on TCP TCP is the protocol to establish the connection before data communication but UDP just processes the data communication without connection establishment The Network mode of WIZ127SR can be divided into TCP Server TCP Client and Mixed mode according to the connection establishing method At the TCP server mode WIZ127SR operates as server on the process of connection and waits for the connection trial from the client WIZ127SR operates as client at the TCP Client mode on the process of connection and tries to connect to the server s IP and Port Mixed WIZ127SR User s Manual 25 WiZnet modes supports both of Server and Client The communication process of each mode is as below TCP server mode Communication At the TCP Server mode WIZ127SR waits for the connection requests TCP Server mode can be useful when the monitoring center tries to connect to the device where WIZ127SR is installed in order to check the status or provide the commands In normal time WIZ127SR is
23. WIZ127SR User s Manual Version 1 11 Wiznet 2013 WiZnet Co Ltd All Rights Reserved For more information visit our website at http www wiznet co kr WiZnet Document Revision History Date Revision Changes 2013 04 01 V1 00 Official Release Add default setting value 4 4 Add CTS RTS timing diagram 4 5 2013 07 04 V1 10 Modify some miss types Update Pin Description 2 1 Update EVB Schematic 2 4 1 2013 09 25 V1 11 Add sentence RS232 Level 4 5 Information in this document is belived to be accurate and reliable However WIZnet does not give any representations or warranties expressed or implied as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information WiZnet reserves the right to make changes to information published in this document including without limitation specifictions and product descriptions at any time and without notice This document supersedes and replaces all information supplied prior to the publication hereof WIZ127SR User s Manual WiZnet COPYRIGHT NOTICE Copyright 2013 WIZnet Co Ltd All Rights Reserved Contact Information WlZnet US sales team wiznettechnology com support team wiznettechnology com WlZnet HK sales wiznet hk WUZnet EU sales wiznet eu WlZnet HQ sales wiznet co kr support wiznet co kr For more information visit our website at http
24. Z127SR Debug Message Enable 1 Enable DHCP Enable 0 Disable Local IP 192 168 11 100 Gateway IP 192 168 11 1 Subnet mask 255 255 255 0 Common DNS Server IP 8 8 8 8 Password WIZ127SR Device Name WIZ127SR NTP Enable 0 Disable NTP Server IP 128 138 140 44 Time Zone 40 UTC 09 00 Serial Configure Enable 0 Disable Serial Configure Trigger 0x2b Ox2b Ox2b Working Mode TCP mixed Local Port 5000 Remote Server IP 192 168 11 101 Remote Server Port 5001 Baudrate 115200 Geno Data bit 8 Parity NONE Stop Bit 1 Flow Control NONE DNS Enable 0 Disable Domain z Nagle Time 0 ms Inactivity Time 10 seconds Reconnection Time 1000 ms Working Mode TCP mixed Local Port 5001 Remote Server IP 192 168 11 101 UART1 Remote Server Port 5002 Baudrate 115200 Data bit 8 Parity NONE WIZ127SR User s Manual 34 WiZnet Stop Bit 1 Flow Control NONE DNS Enable 0 Disable Domain Nagle Time 0 ms Inactivity Time 10 seconds Reconnection Time 1000 ms WIZ127SR User s Manual 35 4 5 Hardware Flow Control Diagram RS232 Level 4 5 1 CTS RTS Mode Timing Diagram Send CTS Start gt lt Check cTs gt E Do not send CTS WiZnet Tx 7 bits Data 7 bits Data 7 bits Data L It is fine
25. anae en enn 17 32k PALA Bee 17 3 2 2 Serial Command mode sesesesesa eee anana anan an anna anganan anane nagan anna nanang aranana nan 17 323 Howto switch the Mode avisene ENEE O daa Badi abah dee 17 3 2 4 How to configure WIZ127SR with a whole data 17 3 2 4 1 Command Frame Format 18 3 242 Reply Frame E 19 32 43 EX GIDC W aaa na KA A Ka NASA A A ad A dE 20 3 3 HOW TO GET THE SOCKET STATUS cscccsscssscssecssecseecssececesesssesesesseecsusceascsaecesecaeecseseseseseeeeseeeeees 21 3 4 HOW TO USE EXTRA GPIO bw 21 4 HOW TO CONFIGURE WIZ127S Riis cisscsc scissscesciscciessnstnceccinsvasstasesteavsoovtncsueuanesssaavecsvaseedenstecvs 22 4 1 CONFIGURING WITH UDP BROADCASTING AND WIZ127SR CONFIGURATION TOOL 22 4 1 1 Network COnPIQUIATIONS EE 22 412 Seal CONUQUIALON EE 25 4 1 3 Option Confiouration awe wawa aaa aaa aaa 29 4 2 CONFIGURING WITH WEB BROWSER 000000 naen aaa enea ane aaa anane way aaa anana nenen a anna nenen 31 4 3 CONFIGURING WITH TELNET EEN 32 4 4 FACTORY DEFAULT VALUES OF WIZ127SR AAA 34 4 5 HARDWARE FLOW CONTROL DIAGRAM RS232 Level 36 4 5 1 CIS RTS Mode Timing Diagram eaaa nana an an anna aaa aaa zaawan nana 36 4 5 2 DTR DSR mode Timing Diagram sssissssesassesen aaa aaa nana anana naen nane 37 4 5 3 RTS Only mode Timing Dagoram ene aaa aaa aaa nana nann 38 5 HOW TO UPLOAD A NEW FIRMWARE 0000000000 0000000000 none nana ene n anana na
26. andise Authorization request form within the applicable warranty period Send the products to the distributors or dealers together with the completed RMA request form All products returned for warranty must be carefully repackaged in the original packing materials Any service issue please contact to sales wiznet co kr WIZ127SR User s Manual 47
27. ect Serial test IT Send Exit Connected 192 168 11 100 5000 WIZ127SR User s Manual 46 WiZnet WiZnet Co Ltd offers the following limited warranties applicable only to the original purchaser 7 Warranty This offer is non transferable WIZnet warrants our products and its parts against defects in materials and workmanship under normal use for period of standard ONE 1 YEAR for the WIZ127SR board and labor warranty after the date of original retail purchase During this period WIZnet will repair or replace a defective products or part free of charge Warranty Conditions The warranty applies only to products distributed by WIZnet or our official distributors The warranty applies only to defects in material or workmanship as mentioned above The warranty applies only to defects which occur during normal use and does not extend to damage to products or parts which results from alternation repair modification faulty installation or service by anyone other than someone authorized by WIZnet Co Ltd damage to products or parts caused by accident abuse or misuse poor maintenance mishandling misapplication or used in violation of instructions furnished by us damage occurring in shipment or any damage caused by an act of God such as lightening or line surge Procedure for Obtaining Warranty Service Contact an authorized distributors or dealer of WIZnet Co Ltd for obtaining an RMA Return Merch
28. ed as Client mode or Mixed mode If user defined the data socket asa Server mode WIZ127SR don t care this Server s IP address Meaning IP Addr Server s IP address in a dotted decimal format ex lt WX192 168 11 144 gt Response lt S gt RX Format lt RX gt Meaning Get the current Server s IP address WIZ127SR User s Manual 12 WiZnet Its response format is like below lt S IP Addr gt IP Addr Server s IP address in a dotted decimal format ex lt RX gt Response lt S192 168 0 115 gt WN Format lt WN port gt Set Server s port number to connect when the data socket is defined as Client mode or Mixed mode Meaning port Server s port number in a decimal format Its range is 0 to 65535 ex lt WN5000 gt Response lt S gt RN Format lt RN gt Get the current Servere Port number Its response format is like below lt S Port number gt Meaning IP Addr Server s IP address in a dotted decimal format ex lt RN gt Response lt S5000 gt WR Format lt WR gt Restart WIZ127SR Some commands need reboot of WIZ127SR in order that those command affect to WIZ127SR s configuration to operate properly Meaning So we recommend you do use this command after all command you issued to guarantee WIZ127SR operate successfully ex lt WR gt Response lt S gt WV Format lt WVIIP addr gt Set Domain Name Server s IP address If yo
29. format ex lt RP gt Response WD Format lt WDx gt Set the method of setting WIZ127SR s IP address Meaning WIZ127SR User s Manual WiZnet 0 Static mode 1 DHCP mode 2 PPPoE mode ex lt WDO gt or lt WD1 gt Response lt S gt RD Format lt RD gt Get the current WIZ127SR s method setting its IP address Its response format is like below lt S Mode gt Meaning Mode Server s IP address in a dotted decimal format ex lt RD gt Response WM Format lt WMx gt Set the operation mode of a TCP socket 0 TCP Client The TCP socket try to connect to the peer until the connection is established 1 TCP Mixed This mode is the same to TCP Server mode at first but While any connection Meaning is not established if WIZ127SR get any data via UART then WIZ127SR make TCP socket be a TCP Client socket and try to connect to the specified peer system 2 TCP Server The TCP socket is in Listen mode waiting for a request of connection from any peer system ex lt WM0 gt Response lt S gt RM Format lt RM gt Get the current data communication socket s operation mode Its response format is like below lt S Mode gt Meaning Mode Server s IP address in a dotted decimal format ex lt RM gt Response WK Format lt WKx gt Set the protocol of the communication socket with one of two mode Paramete
30. g Get the current setting of serial command method WIZ127SR User s Manual 11 WiZnet Its response format is like below lt S Option gt Option Server s IP address in a dotted decimal format ex lt RT gt Response lt S1 gt WU Format lt WU y gt Set Whether DNS service will be allowed y 0 Not use Meaning je ex lt WU1 gt Response lt S gt RU Format lt RU gt Get whether DNS mode is enabled or not Its response format is like below lt S flag gt Meaning flag O Not Use 1 Use ex lt RU gt Response lt S 1 gt WE Format lt WE ch ch ch gt Set character string using for Software trigger in order to enter serial command mode ch is a ASCII character represented in its hexadecimal format For example if user wants use A as ch then user should input its ASCII code in hexadecimal format 4 and 1 not A Meaning ex If character string for software trigger is then lt WE2B2B2B gt Response lt S gt RE Format lt RE gt Get the current character string for software trigger to enter the serial command mode Its response format is like below lt S ch1 ch2 ch3 gt Meaning IP Addr Server s IP address in a dotted decimal format ex lt RE gt Response lt S2B2B2B gt WX Format lt WX IP Addr gt Set Server s IP address to connect when the data socket is defin
31. her byte from UART before the specified time is expired it restart timer and add the received one to the end of serial data buffer 0 Function Disable Inactivity When there is no data transmission the connection will be closed automatically after the time specified in the Inactivity time If the default value O is set as the Inactivity time the network connection is maintained even though there is no data transmission In order to close the connection you should use the Close commands This function is useful when you have two or more systems which are connected to the WZ127SR module When one system is connected to the WIZ127SR other systems cannot connect to the module simultaneously If you defined a time in the Inactivity time the other system can connect to the module after the inactivity time elapsed Inactivity Time can also be used when the server system is unexpectedly shut down In this case there will not be any data communication After the time defined in the Inactivity time elapsed WIZ127SR will close the connection and enter into waiting state Reconnection The connection retry interval Client mode only 5 Serial Configuration This function is for module configuration not through network with configuration tool web configuration and telnet but through serial communication At the default status the serial command mode is disabled When you want to set WIZ127SR via serial communication check enable
32. ically Use the following IP address IP address Subnet mask Default gateway 182 188 11 3 265 255 255 0 192 168 11 1 Use the following DNS server addresses Preferred DNS server Alternate DNS server parameters as indicated in WIZ127SR User s Manual Set the all 43 WiZnet m WIZ1275R ConfigTool Ver 1 0 0 0 Search Q Setting Q Firmware Upload Cay Factory Reset Q Exit Serial to Ethernet UARTO UARTI Option m 00 08 DC 11 12 13 COM port setting Timer option Baud Rate R 115200 Nagle wait time 0 ms Data Bit D 8 Inactivity 10 seconds Parity P NONE Reconnection 1000 ms Stop Bit S 1 Y Serial Configuration Flow Control E NONE v Enable Code in Hex Working mode O TCP client TCP server O TCP mixed O UDP Communication Local port 5000 Remote port 5001 Device s network setting Remote host Using the follow IP Address 182 168 11 101 Get IP address from DHCP server Device IP 192 168 11 100 F W Version 0 9 Gateway 192 168 11 1 Network Status Subnet mask 255 255 255 0 Port 0 Disconnected DNS server 8 8 8 8 Port 1 Disconnected MEIER ConfigTool 7 WIZ127SR User s Manual 44 WiZnet Check the COM port status of the PC and open the serial terminal f Device Terminal Ver 1 0 DER Serial Communication Serial Config
33. is like below Meaning lt S ID gt ID Response lt Sadmin gt WZ Format lt WZ Passwd gt Meaning Set Password for PPPoE authentication Response lt S gt RZ Format lt RZ gt Get the current password for PPPoE Its response format is like below lt S Passwd gt Meaning Passwd Server s IP address in a dotted decimal format ex lt RZ gt Response lt Sadmin gt OC Format lt OC ch gt Set a character delimiter for making a ethernet data block in Hexadecimal format Meaning ch character information Default value is 00 If this value is 00 it means Character Delimiter disabled In normal a serial device send data in chunk Some device never expects those data chunk would be divided more than two pieces But WIZ127SR handle data from serial interface byte by byte in other word WIZ127SR check its serial buffer having data from serial interface and there are some data in that buffer then it make a ethernet packet with those data and send that But because the peer system expects all data chunk that consider those data was broken and discard those So to avoid this fault WIZ127SR provides three scheme to handle serial data chunk by chunk Those are character delimiter size delimiter and time delimiter WIZ127SR User s Manual 14 WiZnet ex lt OC1B gt Response lt S gt ac Format lt QC gt Get the current character delimiter Its
34. l Ver 1 0 0 0 Q Search Q Setting Firmware Upload g Factory Reset Q Exit S Serial to Ethernet UARTO UARTI Option Eg 00 08 0C 11 12 13 COM port settings Timers Baud Rate R Nagle wait time Data Bit D p Inactivity 10 Parity B d Reconnection 1000 Stop Bit S Serial Configuration Flow Control E Enable Code in Hex Working mode TCP client TCP server TCP mixed O UDP Communication Local port 5000 Remote port 5001 Device network settings Remote host Using the follow IP Address 192 168 11 101 O Get IP address from DHCP server Progress Bar EE Device IP 192 16811100 ion T Enable Serial Debug Mode Gateway 255 255 2550 Subnet mask 192 168 11 1 Porto Disconnected DNS server 8 8 8 8 Pori Disconnected Figure 15 Firmware uploading window When uploading is completed a message box with Firmware download over will be displayed as shown in Figure 7 WIZ1275R Config Tool s 1 Firmware download over Figure 16 Complete Uploading WIZ127SR User s Manual 41 WiZnet 6 Quick Installation and Test In this chapter we will provide a example for you to learn how to install and test Serial to Ethernet data communication with the WIZ127SR 6 1 System Configuration Z Serial Cable TE Configuration Tool Ethernet Cabl zw ernet Cable Terminal Program WIZ
35. mode There is a method to switch the mode from data to serial or vice versa That is using the software triggering Software triggering Host processor can make WIZ127SR enter into serial command mode by issuing software triggering string which is already set by user through serial interface User can set this string by the configuration tool web config page or telnet In order to escape from serial command mode host processor just issues lt WR gt command Then WIZ127SR reboots and operates as data mode 3 2 4 How to configure WIZ127SR with a whole data As User wants to configure WIZ127SR in one time operation he can do it using handling the Hardware trigger pin If you supply the power or reset the module with asserting low on pin 12 of JP1 you can WIZ127SR User s Manual 17 configure the module using special serial commands WiZnet At this mode network configuration or data communication is not allowed Therefore after finishing the configuration be sure to assert high on pin 12 of JP1 for normal operation 3 2 4 1 Command Frame Format Frame Format De pto STX Command codes Parameter ETX gth b 1 1 Variable 1 orma gt 0x3E R W X Variable CR 0x0D Table 9 Hardware Configuration Frame format Command Codes Command Comments Read Parameter Write Parameter Exit Hardware Command mode m u Command Error Table 10 Hardware Configuration Command Code
36. net 4 3 Configuring with Telnet You can configure the WIZ127SR by using Telnet Client program If you connect to the WIZ127SR you can see the message of requesting user password HEH Melcome to the WIZ127SR Telnet Console please input your password Input the user password Default P W WIZ127SR You can see the message Press Q to enter the main console menu BEE Me Lcomne to the WIZi27SR Telnet Console please input your password xxxxxxx Press Q to enter the main console menu gt If you input the Q the main menu for the WIZ127SR configuration is displayed WIZ127SR User s Manual 32 cx SI 192 168 11 100 Welcome to the WIZ127SR Telnet Console please input your password saa Press 07 to enter the main console menu gt Q FAH HHH HEHEHE HEHEHE HEE SESE HEISE SHEESH SESH SESS SSS SESE SES SESE SEE ka Conf iguration Menu re L 2 B S ID Device settings Gonnection settings Other Options settings Save all changes without reboot Exit Enter your choice gt WiZnet You can use the Telnet client program which is provided by Windows OS At the Windows XP you can use the Telnet client program without additional setting However at the Windows Vista or above version you must enable the Telnet Client program first For the detail refer to the site http goo gl Plhyu WIZ127SR User s Manual 33 WiZnet 4 4 Factory Default Values of WI
37. on anan en nenen en nenene 39 6 QUICK INSTALLATION AND TEST c0000e0en0nennonnan nona nona nona oda anana anon e nane dad ada GOOD 42 6 1 SYSTEM CONFIGURATION cccsccscesscssssccssesecssesecsseseessecsseeecsecsecsssseessessesaecsessesnseseseascssseesaeeaeceas 42 6 2 TESTING PROCEDURE scsi cec sccsciasheeleizschsccicascaeceessascuhasicsccagaacdees ces KAWA PE wa GAZE Ew 42 6 2 1 Hardware Connection eesti aaa 42 6 2 2 Module Configuration eee wawa ewa nnan anana n anganan anana anganan anana anana nana nengan 42 Ta WARRANTN see 47 WIZ127SR User s Manual iv WiZnet Figures FIGURE 1 PIN ASSIGNMENT c ccscccsccssscssecsccescesscesscesecescnsecseceaecssecseecaeeeneesaeesssesssessenseensscnaecsaecsaceaeeenee 2 FIGURE 2 DIMENSION ud aime 4 FIGURE 3 WIZ127SR BASE BOARD SCHEMATIC nerven vernnrneennesvennesververnesveensenssvresvenvenvenne 6 FIGURE 4 REFERENCE SCHEMATIC FOR INTERFACING TO RS485 422 rrrrrnvrnrrrvenververvvrnervvrnrrsnevresvenvervenne 7 FIGURE 5 CONFIGURATION TOOL NETWORK CONFIGURATION 00 0000 ene ene zana ene ene 22 FIGURE 6 CONFIGURATION TOOL SERIAL CONFIGURATION sss en ene e nenen e nenen e eea eaaa eee 25 FIGURE 7 CONFIGURATION TOOL OPTION CONFIGURATION 00 enere ene aan nenen anane a eee eaaa een 29 FIGURE 8 CTS SIGNAL TIMING DIAGRAM UNDER CTS RTS won 36 FIGURE 9 RTS SIGNAL TIMING DIAGRAM UNDER CTS RTS MODE eee aaa aea aaa an anana nan nan anae n ene
38. or the connection request from the peer However if WIZ127SR receives data from the serial device before connection is established it changes to the client mode and sends the data to the server IP Therefore at the mixed mode the server mode is operated prior to the client mode As like TCP Server mode the Mixed mode is useful for the case that the monitoring center tries to connect to the serial device in which WIZ127SR is used to check device status In addition WIZ127SR User s Manual 26 WiZnet to this if any emergency occurs in the serial device the module will change to Client mode to establish the connection to the server and deliver the emergency status of the device UDP mode Communication UDP is not a connection oriented protocol But the communication port should also be defined well If the UDP mode is selected the data from serial interface can be defined where to delivery via the Remote host and Remote port and the WIZ127SR can also be defined where to receive Ethernet data from via the Remote host and Local port definition If the data destination and source are the same the two IP address will also be the same Please note the destination and source are using the same port 3 Communication When your module is set as Client mode Mixed mode or UDP mode peer IP and port should be set in order for WIZ127SR to connect to the server or peer Local port This field is
39. rsValue Meaning Meaning 0 TCP 1 UDP ex lt WKO gt Response lt S gt RK Format lt RK gt WIZ127SR User s Manual 10 WiZnet Get the current data communication socket s protocol type Its response format is like below lt S Protocol gt Meaning Protocol Server s IP address in a dotted decimal format ex lt RK gt Response WB Format lt WB b d p f gt Configure UART with four parameters b d p and f are a byte parameters and those have the meaning as below Parameter Value Meaning b baud rate c 921 600 bps b 460 800 bps a 230 400 bps 1 115 200 bps 2 57 600 bps 3 38 400 bps 4 19 200 bps 5 9 600 bps 6 4 800 bps Meaning 7 2 400 bps 8 1 200 bps d data bits size 7 7 bits 8 8 bits 9 9 bits p parity 0 No Parity 1 Odd Parity 2 Even Parity f flow control 0 None 2 RTS CTS 3 DSR DTR 4 RTS Only For RS485 ex lt WB1800 gt gt 115200 8 bits no parity no flow control Response lt S gt RB Format lt RB gt Get the current configuration information of WIZ127SR s serial interface Meaning Its response format is like below lt S baud rate data size parity flow control gt ex lt RB gt Response lt S1800 gt WT Format lt WT y gt Set whether serial command will be allowed or not y 0 Disable meaning y 1 Enable ex lt WT1 gt Response lt S gt RT Format lt RT gt Meanin
40. t value is 0 If this value is 0 it means Inactivity Time disabled Response lt S gt QI Format lt QI gt Get the current inactivity time value Its response format is like below lt S time gt Meaning time Server s IP address in a dotted decimal format ex lt Ql gt Response lt S60 gt RA Format lt RA gt Get the current MAC address of WIZ127SR Its response has a format like below lt S MAC Addr gt Meaning MAC addr This is 6 ASCII String in a Hexadecimal format with delimiters following to every 2 characters ex lt RA gt Response lt 500 08 DC 00 11 22 gt RF Format lt RF gt Get the current firmware version stored in WIZ127SR Its response format is like below lt S Ver gt Meaning Ver Server s IP address in a dotted decimal format ex lt RF gt Response lt S3 1 gt 2 WIZ127SR itself doesn t disconnect a TCP connection after a connection established Normally the peer system do that But there are many cases that users system including WIZ127SR should close a established connection after a short data communication and any peer system of WIZ127SR doesn t have those capabilities Inactivity time scheme is a useful function under this circumstance If WIZ127SR doesn t receive any data from the serial interface during the time set as the Inactivity Time then WIZ127SR closes the current established connection itself But If any character is entered from the serial interface before the Inac
41. tivity Time timer is expired the timer will be reinitialized WIZ127SR User s Manual 16 WiZnet WIZ127SR has two operation mode serial command mode and data mode through serial 3 2 Data mode and Command mode interface These are concerned to the communication between host processor and WIZ127SR 3 2 1 Data mode Data mode is the default mode of WIZ127SR After booting WIZ127SR operates itself as Serial to Ethernet converter It tries to connect or listens to get peer s connection request During this mode WIZ127SR holds the data from host processor via serial interface as just data If the connection is already established WIZ127SR transmits the data to peer system and also receives data which are sent by the peer from Ethernet In other words WIZ127SR transparently bypasses data from Ethernet to serial interface and vice versa without editing those data 3 2 2 Serial Command mode In serial command mode WIZ127SR treats data from host processor as a command If the command is valid it sends a proper response If not it responds with error message In the serial command mode there is no data communications between WIZ127SR and peer system If WIZ127SR enters into serial command mode it will print out lt E message through serial interface to inform host processor that it successfully entered into serial command mode But when it switches to data mode it doesn t print out any message 3 2 3 How to switch the
42. to send Yes Send a byte 5 there CTS any data _ to send h No Tx 4 8 bits Data X 4 8 bits Data 8 bits Data end i CTS Tx 9 bits Data 9 bits Data A 9 bits Data Figure 8 CTS signal Timing Diagram under CTS RTS mode Receive RTS Start Receive and store a byte Buffer will be i RTS Rx 7 bits Data 7 bits Data 7 bits Data to buffer overflow Buffer is free Check Buffer w ki w Set RTS to Set RTS to HIGH LOW RTS I gt i Rx 8 bits Data 8 bits Data 8 bits Data End i RTS Rx 9 bits Data 9 bits Data 9 bits Data Figure 9 RTS signal Timing Diagram under CTS RTS mode WIZ127SR User s Manual 36 4 5 2 DTR Data Terminal Ready Start i Do not send Check DTR gt 4 It is fine to send Send a byte fes any data Nto send DTR DSR mode Timing Diagram DTR WiZnet Tx 7 bits Data 7 bits Data _ 7 bits Data DTR Tx 8 bits Data 8 bits Data 8 bits Data DTR Tx 9 bits Data 9 bits Data 9 bits Data Figure 10 DTR signal timing diagram under DSR DTR mode DSR Data Set Ready p Start Device Initialize v i Set DSR to HIGH LOW DSR Rx DSR Rx DSR Rx 7 bi
43. to set the network port number in WIZ127SR amp You should set to different port number from each other UART port Remote port This field is to set the network port number in remote device Remote host This field is to set the network address IP address or Domain name of remote device If your application needs the DNS function input the domain name of connecting node E g www wiznet co kr into Remote host field and the DNS Server IP address into DNS server field Domain Name System DNS is a database system that associates the Domain name with the actual IP address The purpose of the DNS system is to resolve the Domain name and represent it as an IP address As a result your device can connect to an actual IP address 4 Timers Nagle wait time Normally Data which received from UART are sent to Ethernet immediately But in many case user want to send data as a chunk of the whole frame without separated ones This option is for packetizing data to one frame Ordinarily there is some delay between one frame of data and the next one This field is for specifying time value to judge whether one frame is received totally If the time specified in this field is expired after receiving one byte then WIZ127SR notice one data frame WIZ127SR User s Manual 27 WiZnet is finished make an Ethernet packet with all data in its serial buffer and send it to the peer system via Ethernet If WIZ127SR receives anot
44. ts Data 7 bits Data 7 bits Data 8 bits Data 8 bits Data 8 bits Data 9 bits Data 9 bits Data 9 bits Data gt Figure 11 DSR signal Timing Diagram under DSR DTR mode 37 WIZ127SR User s Manual 4 5 3 RTS Only mode Timing Diagram Send RTS Only Start RTS v Set RTS to WiZnet Tx 7 bits Data X 7bitsData LOW i 7 bits Data gt Send a byte i Yes i Is there i T any data RTS o send H No 4 N N Set RTS to i TX 8 8 bits Data 4 8 bits Data 8 bits Data e HIGH b d End RTS Tx 9 bits Data 9 bits Data 9 bits Data ban Figure 12 RTS signal Timing Diagram under RTS only mode WIZ127SR User s Manual 38 WiZnet 5 How to upload a new firmware Run W1Z127SR Configuration Tool program and click the Search button If the module is properly connected to the network the MAC address will be displayed on the Search Window as shown in Figure 4 m WIZ1275R ConfigTool Ver 1 0 0 0 Q Search Q Setting e Firmware Upload Cy Factory Reset Q Exit amp Serial to Ethernet UARTO UARTI Option rem 00 08 00 11 12 13 COM port settings Timers Baud Rate B 115200 Nagle wait time Data Bit D 8 Inactivity 10 Parity P NONE Reconnection 1000 Stop Bit S 1 Serial Configuration Flow Control F NONE Enable Code in Hex Working mode O T
45. u want to use Server information in Domain name not IP address then you should set Domain Name Server s IP address using this command And the Domain Name Server s IP address which you entered should be valid and operate DNS query Meaning successfully IP Addr Server s IP address in a dotted decimal format lt WV8 8 8 8 gt Response lt S gt RV Format lt RV gt Get the current Domain Name Server IP address Its response format is like below lt S IP Addr gt Meaning IP Addr Server s IP address in a dotted decimal format ex lt RV gt Response lt S8 8 8 8 gt WW Format lt WW Domain name gt WIZ127SR User s Manual 13 WiZnet Set Domain Name which you connect to This information is meaningful as if you want use the data socket as Client mode or Mixed mode and set DNS enabled and set a proper DNS IP address Meaning If one of them isn t set properly despite you use this command you can t get a good response Domain name Domain name in string type ex lt WWwww google com gt Response lt S gt RW Format lt RW gt Get the current Domain Name set in WIZ127SR Its response format is like below Meaning lt S Domain Name gt Domain Name Response lt Swww wiznet co kr gt WY Format lt WY ID gt Meaning Set ID for PPPoE authentication Response lt S gt RY Format lt RY gt Get the current ID for PPPoE Its response format
46. unction VDD DC Supply voltage a 2 97 3 6 V 55T to 125 C Vu High level input voltage 20 36 y VIL Low level input voltage 0 3 0 8 V VOH High level output voltage 2 4 V VOL Low level output voltage 0 4 V II Input Current VIN VDD 5 HA Table 3 DC Characteristic 2 3 3 POWER DISSIPATION Test Condition VCC3 3V Temperature 25 C Condition Min Typ Max Unit 100M Link 200 215 mA 10M Link 147 162 mA Loss Link S 158 173 mA 100M Transmitting S 200 215 mA 10M Transmitting 147 162 mA WIZ127SR User s Manual Table 4 Power Dissipation 2 4 Application Schematics 2 4 1 WIZ127SR BASE WiZnet CONNECTOR ETHERNET STATUS RJ45 W MAGNET Kate vopavs vopavaa vopava ue a 42 T 2 m g pou i T2 RESET e Di a oi 1 ARTE CTS PAP LINKLED MO g LED nor 1 VARTE RIS UARTI TX fa JEM TON P VARTE TARTES non eh Er LA x rea 7 o SPDLED m g LED pa Vuen RX LINKLED M PE SR EM Rei x ane mo vopava Ra ma FAT 3 RD FOMED M2 3 LED id aaner z RED NES LED kk kk LINKLED wo D 2 0mm HEADER 12x1 amm HEADER 12x1 2 0mm HEADER 185 Ra Du vDpava 18 2 0 Pitch 2 0 Pitch 2 0 Pitch
47. uration Serial Port Mo x Baud Rate 5000 7 Data Bit 8 bit 7 Stop Bit v Parity None z Flow Control None 7 I Hex View File Send Clear F Network Communication r Network Configuration DUAE I Server Mode IP Address 192 168 II Port 5000 I Hex View e Se Clear Connect Connected COM5 115200 8bit Ibit none none Check the IP Address and port of WIZ127SR and connect to WIZ127SR f Device Terminal Ver 1 0 DER Serial Communication Serial Configuration Serial Port 065 p Baud Rate 115200 x Data Bit 8 bit S Stop Bit v Parity None v Flow Control None 7 I Hex View File Send Clear Close Network Communication Network Configuration F Server IP Address I Hex View File Send Clear Connected 192 168 11 100 5000 WIZ127SR User s Manual 45 WiZnet If you input some characters at the windows of serial you can see they are displayed in the TCP window Vice versa type some characters in the windows of TCP Client you can see the characters are displayed in the serial Windows f Device Terminal Ver 1 0 EIS Serial Communication Serial Configuration Serial Port 1 7 Baud Rate 1500 Data Bit 8 bit 7 Stop Bit 7 Parity None Flow Control Non 7 I Hex View File Send Clear Close Network test Network Communication Network Configuration ja IP Address 9 D Port l I Hex View File Send Clear Disconn
Download Pdf Manuals
Related Search
Related Contents
sptrans bilhete do professor manual de instruções para professores WORKSTATION CHALLENGER Catalogue Automne 2013 .xlsx - To Parent Directory YOUTH BOW OWNER MANUAL bedienungsanleitung instruction manual manuel d (1 500 modèles) / 1999-02 V8-6,0 l Silverado Copyright © All rights reserved.
Failed to retrieve file