WIZ120SR R Userr's Ma anuall (Ve ersion 1.1 1.0) (c)200 09 WIZnet C Co., Ltd. Alll Rights Reserved. For more m inform mation, visi t our websiite at http://www.wizznet.co.kr WIZnet'ss Onlin ne Technicall Supp ort If you have anyy questions or commen nts about WIZnet W prod ducts, you are welcom me to write e down you ur questionss on our Q& &A Board in the WIZne et. WIZnet w will reply to you as so oon as possible. CLICK CLICK WIZ12 20SR User's Manual ii CO OPYRIG GHT NO OTICE Copyrright 2009 WIZnet Co., Ltd. All Rights Reserved. Techn nical Supportt: support@wiznet.co.kr Sales & Distributio on: sales@wizznet.co.kr For m more informattion, visit our website at http://www..wiznet.co.krr WIZ12 20SR User's Manual iii Table of Con ntentss 1. 2. IIntroduction ............................................................................................... 1 1 1.1 Keyy Features .................................................................................. 1 1 1.2 Pro oducts Conte ents (EVB mo odel) .......................................................... 2 1 1.3 Pro oduct Specifiications ....................................................................... 3 1.3.1. WIZ120SR R Module .... ................................................ ......................3 1.3.2. WIZ120SR R Test Board d ............................................... ......................4 G Getting Startted ........................................................................................... 5 2 2.1 Ha ardware Insta allation Proce edure .......................................................... 5 2 2.2 Co onfiguration Tool T ............................................................................ 5 2.2.1. Network Configuration C ns.............................................. ......................5 2.2.2. Port Settin ng ............. ................................................ ......................9 3. F Firmware Up pload ........................................................................................ 13 4. SSerial Config gurations ................................................................................... 15 4 4.1 Serial Comman nd Format ................................................................... 15 4 4.2 WIZ120SR Con nfiguration w with Serial Co ommand ....................................... 18 5. P PIN Assignme ent and Dime ension ....................................................................... 20 6. D Demonstratio on and Test ................................................................................ 22 on History .................................................................................. 26 Document Revisio WIZ12 20SR User's Manual iv F Figure es FIGUR RE 1. WIZ120 0SR TEST BOARD O .............................................................................................................. 4 FIGUR RE 2. CONFIG GURATION TOO OL (NETWORK K CONFIGURAT TION) ................................................................. 5 FIGUR RE 3. PPPOE CONNECTION N PROCESS IN N SERIAL CON NSOLE ................................................................ 7 FIGUR RE 4. CONFIG GURATION TOO OL (SERIAL CO ONFIGURATION N) ...................................................................... 9 FIGUR RE 5. BOARD SEARCH WINDOW ........................................................................................................... 13 FIGUR RE 6. OPEN DIALOG BOX FO OR UPLOADING G ........................................................................................... 14 FIGUR RE 7. FIRMWA ARE UPLOADIN NG WINDOW ................................................................................................. 14 FIGUR RE 8. COMPLE ETE UPLOADIN NG ............................................................................................................... 14 FIGUR RE 9. SERIAL CONFIGURATION ENABLE S ETTING................................................................................ 18 FIGUR RE 10. WIZ12 20SR PIN ASS SIGNMENT ................................................................................................... 20 FIGUR RE 11. WIZ12 20SR BOARD DIMENSIONSS (UNIT : MM).......................................................................... 21 FIGUR RE 12. SERIAL L TERMINAL PROGRAM CON NFIGURATION ....................................................................... 23 FIGUR RE 13. NETWO ORK TERMINA AL PROGRAM C ONFIGURATIION .................................................................. 23 FIGUR RE 14. RECEIV VED DATA BY NETWORK TE ERMINAL PROGRAM .............................................................. 24 FIGUR RE 15. DEVICE TERMINAL PROGRAM.................................................................................................... 25 WIZ12 20SR User's Manual v T Tabless TABLE E 1. PRODUCT TS CONTENTS S .................................................................................................................... 2 TABLE E 2. WIZ120S SR MODULE SPECIFICATIO ONS .......................................................................................... 3 TABLE E 3. SERIAL COMMAND - COMMAND FRA AME FORMAT ........................................................................ 15 TABLE E 4. SERIAL COMMAND - REPLY E FRAME F ORMAT ................................................................................ 15 TABLE E 5. SERIAL COMMAND - STX S & ETX ................................................................................................ 15 TABLE E 6. SERIAL COMMAND - REPLY CODE ................................................................................................ 15 TABLE E 7. SERIAL COMMAND - COMMAND CO DE ......................................................................................... 17 TABLE E 8. SERIAL COMMAND TES STING PROCE DURE .................................................................................... 19 TABLE E 9. SERIAL COMMAND CONSOLE DISPLA AY ......................................................................................... 19 TABLE E 10. WIZ120 0SR PIN ASS SIGNMENT .................................................................................................... 20 WIZ12 20SR User's Manual vi 1. Introdu uction WIZ12 20SR is a 2 ports gatew way module that converrts RS-232 protocol into TCP/IP protocol. This m module enab bles remote gauging, rem mote management of the device thrrough the ne etwork based d on the Ethe ernet and th he TCP/IP byy connecting to existing equipments e w with RS-232 serial interfface. In other words, WIZ120SR W is a protocol converter tha at transmits the data se ent by seriall equipment as TCP/IP data type or vvice versa. 1.1 Key Feattures - Direct Co onnection to o Serial Devicces Addss Network Fu unction Simp ply and Quick kly Proviides Firmware Customizaation - Supportss 2 Ports Serial - Provides System Stab bility and Relliability by using u W5100 Hardwired C Chip - Includes Configuratio on Tool Progrram - Supportss PPPoE Conn nection for A ADSL - Supportss Password fo or the Securiity - Supportss Serial Confiiguration - w with Simple and a Easy com mmand - 10/100 Ethernet E Inte erface and m max 230Kbps Serial Interfface - Supportss Static IP, DH HCP, PPPoE - Supportss DNS functio on - RoHS com mpliant WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 1 1.2 Productts Contentts (EVB mo odel) WIZ120SR M Module WIZ120SR W Tesst Board Serial Caable (to connectt Serial devicce and Test board) b Network C Cable (Crossover C Cable) Powerr (DC 5V 500mA Adaptor) Table 1 . Products Contents C WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 2 1.3 Productt Specifica ations 0SR Module e 1.3.1. WIZ120 Cate egory Specificattions Prottocol TCP, UD DP, IP, ARP, IC CMP, IGMP, MA AC, DHCP, PPPPoE, DNS Network Interface Seria al Port 10/100 Base-T Ethe ernet (Auto detection) d 2 UART((RS232, 3.3V V LVTTL) CP PU 8051 coompatible Serial lin ne format 8-N-1, 88-O-1, 8-E-1,, 7-O-1, 7-E-1 Serial flo ow control None, X XON/XOFF, CTS/RTS Serial signal TXD, RX XD, RTS, CTSS, GND Softw ware Remote e Download and a Configuration SSerial Transm mission Speed d Tempe erature Hum midity Pow wer 1200bpss ~ 230Kbps -20'C ~ 70'C (Opera ating), -40~ ~85'C (Storagge) 10~90% 3.3V, 3000mA(MAX) Connector type 1x14 2m mm Pin header X 2 Size 50mm x 30mm x 8.8 85mm Tab ble 2. WIZ12 20SR Module e Specifications WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 3 1.3.2. WIZ120SR Test Board B WIZ120SR R Module Pow wer Switch Port Stattus LED Re eset Switch Power LED Power Adapter A RJ45 Connector Rese erved (not mounted) m Sele ect Boo ot Port 1 RS2322 Connector Port 2 RS2 232 Connecttor Figure 1. WIZ120SR Test T Board WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 4 2. G Getting g Starte ed 2.1 Hardware Installattion Proce edure For th he testing, the t module and a test boarrd should be e prepared. STEP1: Insert the WIZ120SR m module into the sockets on o the test booard. Be care eful of conn necting the JP1 on the module to the correctt JP1 on the e test board. STEP2: Connect the RJ-45 co nnector of WIZ120SR W test board to the Etherne et hub or LAN port of PC with w networkk cable. STEP3: Connect th he DB9 jack oof WIZ120SR R and serial device d with R RS-232 serial line. STEP4: Connect th he 5V (500mA A) DC powerr adaptor to the WIZ120SSR test board d. 2.2 Configuration Tool 2.2.1. Networrk Configurrations Figure 2.. Configuratiion Tool (Ne etwork Confiiguration) Ve ersion : Displays the firm mware versioon. nable Serial Debug Mode e : If this moode is enable ed, you can monitor the status and socket s En messa ages of WIZ1 120SR (listen n OK, connecct fail etc.) through t the serial termi nal. In this mode, m WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 5 debugg messages can c cause ab bnormal ope eration of the e serial devic ce. Thereforre, you should use this m mode only fo or debugging. onnection Status S : This field show ws the Con nnection Status of UART T0 and UAR RT1 in Co WIZ12 20SR. The message m "Con nnected" wiill be display yed when a peer successsfully conne ects to WIZ12 20SR. oard List : If you click the t "Search"" button, alll the MAC addresses a on the same subnet s Bo will b be displayed. P setting mod de (Static, DHCP, PPPoE m mode). IP Configuration Method: Select an IP - Stattic: "Static" is an option n for setting the WIZ120SSR IP as static. 1. Select a MAC address a which you want tto set as static IP in the `board list'.. 2. Th he "Local IP, Subnet, Gateway" box w will be enablled, and then n input addrress in those fields. 3. Cliick the "settting" button to apply you ur configurattions. Noticce: PPPoE ID and Passworrd box are diisabled in th his mode. - DHC CP: Select th his option to use the DHC CP mode. 1. Select the MAC C address on the board liist. 2. Ch heck `DHCP' and click the e `Setting' b button. 3. A m module will acquire a netw work informaation from th he DHCP serv ver. (Should wait a moment to acquiire network information from the DH HCP server.) 4. Wh hen a modulle on the boa ard list is sellected, the IP address, Subnet S maskk and Gatewa ay are displa ayed. If the e module cou uld not acquire the netw work informa ation from th he DHCP servver, the IP ad ddress, the G Gateway Address and the e Subnet massk will be initialized as 0.0.0.0. 0 - PPP PoE : WIZ120 0SR support PPPoE P for AD DSL users. When W you sele ect PPPoE in "IP Configuration Metho od", the PPP PoE ID and th he Password box is enablled. 1. To setup PPPoE E, directly co onnect WIZ1 20SR to a PC C and executte Configuraation Tool pro ogram. 2. Select `PPPoE' in the "IP Configuration C n Method" ta ab and input your ID & Paassword. 3. Cliick "setting" " button to apply. a 4. Co onnect Modulle to ADSL Line to establlish your PPP PoE connectio on. 5. Wh hen "Enable Serial Debug g Mode" is se elected, you u can see PPP PoE access sttatus via Se erial Console e. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 6 Figure 3. PPPoE Conn nection Proc cess in Seria al Console IP Address Infformation - Loca al IP : WIZ12 20SR's IP Add dress - Subnet : WIZ120 0SR's Subnett Mask - Gatteway : WIZ120SR's Gateway Addresss clear about your Local IP, Subnet Mask, M Gatew way informattion, you ha ave to If you are unc get tthis information from your y networ k administra ator. If the IP address iis not corre ect, IP collission or netw work problem ms may occu ur. PP PPoE ID/Passsword : Whe en you selecct `PPPoE' mode, m you sh hould input your ID/Password which h are provide ed by your IS SP company. Direct IP Searrch c be used for searchin g for WIZ120 0SR which is not in the saame subnet.. Direcct IP Search can If the e Direct IP search is checked, c th he configuration tool usses the TCPP instead off UDP broad dcast to sea arch for mod dule. Thereffore, networrk information of the m module such as IP addre ess, subnet mask m and gatteway are re equired. When n you check Direct IP sea arch, the fie eld for IP add dress will be activated. IIn this field, input the IP P address of the module,, and click th he "Search" button. If module doe es not have valid v netwo ork information, Direct IP I search is not availablle. In thiis case, you u must check k to see whe ether you have a conne ection to eitther your WAN W or NAT a area using a PING test.. If not con nected, pro oceed to connect to eitther one orr both and ttry the Direc ct IP search again. Se earch The SSearch functtion is used to t search forr all existing g modules on n the same LLAN. By using UDP broad dcast, all mo odules on the e same subne et will be fo ound. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 7 The m module found will be displayed as MA AC address in the "Board d list". Se etting This ffunction is to o apply yourr configuratioons. When n you select the MAC address from tthe "Board liist", the deffault value oof the modulle will be diisplayed. Mo odify your co onfiguration s and click "Setting" button to appply your setttings. and save witth your modified configu The m module will re-initialize r urations. You ccan change the configura ations by folllowing the stteps below: SSelect the MA AC address of o the device e which you would w like to o modify in tthe "Board List" L Modify the se ettings accorrding to yourr needs M Cllick the "Settting" button n to apply yoour settings Th he module will w be initialized by a re--booting pro ocess To o verify yourr settings, ple ease click `SSearch' butto on and view your new seettings Up pload Firmw ware will be uploaded th hrough your n network. The P Procedure off Firmware upload u is exp plained detaiils in "Chapter 3. Firmwaare Upload" Ex xit : Close th he configurattion tool pro gram window w. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 8 2.2.2. Port Settting Figure 4. 4 Configuraation Tool (S Serial Config guration) You sshould set to o UART confiiguration aftter checking UART tab whether w it is UART0 or UART1. The n numbers on the t screensh hot correspon nd to the descriptions lissted below. erial Se This m menu is used d for setting up your seriial configura ations. In order to ap pply your settings, click k the "Settin ng" button Ina activity time e When n there is no o data transsmission, th e connection will be cllosed autom matically afte er the time specified in the Inactivitty time. If the e default va alue `0' is se et as the Inaactivity time e, the network connecttion is mainttained even though therre is no data a transmissioon. In orderr to close the connectionn, you should use the `C Close' comm mands. Thiss function iss useful whe en you have e two or mo ore systems which are cconnected to t the WZ12 20SR module e. When one e system is connected to the WIZ120SR, otheer systems cannot c WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 9 conne ect to the module m simulltaneously. Iff you defined a time in the Inactivitty time, the other system can conne ect to the module after tthe inactivitty time elapssed. Inacctivity Time can also be used when the server system s is une expectedly sshut down. In I this case, there will not n be any data commun nication. After the time defined in tthe Inactivity y time elapssed, WIZ120SSR will close the connecttion and ente er into waiting state. D Data Packing g Condition You ccan specify how h the serial data can n be packed to be sent to the Etherrnet. There are 3 delim miters - time, size and ch haracter. If aall of them are a set as `0', wheneverr the serial data d is arrive ed, they are sent to the Ethernet im mmediately. - Tim me: This field d specifies th he waiting tiime. When there is no more m input froom the seria al port, the modulle will wait for the speccified time and a then send out the sserial data to t the network. For F example, if 2000 mss is specified d, the modulle will send out the packet at 2000 ms affter the last input from tthe serial po ort. If there is no data inn the serial buffer, b the module e will not se end out any d data packetss. (`0': Functtion Disable) - Size e: This field d specifies th he size limitt in the serial buffer. Once the seriial buffer re eaches this limit, the data will be sent ou ut to the Eth hernet. If the e serial bufffer is greater than the size lim mit, the mod dule will cre eate an Etherrnet packet and store thhe extra data a, and send out to o the Ethern net when the e limit is reac ched again. (`0': Functtion Disable) - Cha aracter: Register a chara acter to triggger the conv version of se erial data to network packets. Whenever the registerred characte er is inside the t serial bu uffer, all thee data beforre the registered character is i sent out to the netw work excludiing the charracter itselff. The character must be in Hexadecimal H l. (`0' : Function Disable) If any one off these condiitions is met , the data will w be sent to o Ethernet. E Ex) Delimiterr: Size=10, Char=0x0D C SSerial data : 0123456789abc E Ethernet datta : 01234567 789 "abc" re emains in th he serial bu uffer of the module and will not b be sent unttil the sspecified siz ze or character has been n fulfilled. Op peration mo ode - Clie ent / Server / Mixed This ffield is to se elect the com mmunication n mode based d on TCP (Se erver mode, Client mode e, and mixed d mode). TC CP is a proto ocol which requires con nnection establishment (known as "three " way h handshake")) before the data is sentt or received d. On the oth her hand, UD DP sends outt data witho out a connecction establisshment. TCP SServer mode e means WIZ1 120SR operattes as a serv ver. WIZ120SR waits for a connection n from the p peer to a spe ecified port number. n WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 10 The TCP Client mode allow ws the WIZ Z120SR to operate o as a client onn the conne ection estab blishment. TCP T Client mode m tries too connect to o the peer IP P and peer port number. The mixed d mode supp ports both mode of operaations (serve er and client). < In the TCP Se erver mode, WIZ120SR w waits for conn nection requ uests. T TCP Server mode m can be e useful for checking th he status of a system byy connecting g to a d device or forr accepting to t connect frrom control center. In order to operate in this mode, Local IP, Subnet, Gate eway Addresss and Local Port N Number shou uld be config gured first. D Data transmiission procee eds as the foollowings: 1 1. The host connects c to the t WIZ120S R which is co onfigured as TCP Server mode. 2 2. After the connection is establishe ed, data can n be transmittted in both directions - from tthe host to the WIZ120S or vice versaa. < W When TCP cllient mode is i set in WIZ Z120SR, it attempts to establish e a cconnection to t the sserver. T To operate this mode, Lo ocal IP, Subn net, Gateway Address, Peer P IP, and Peer port nu umber sshould be se et. If your server IP is rrepresented as a domaiin name, pleease use the e DNS ffunction. D Data transmiission procee eds as follow ws: 1 1. As long as power is supplied, s the e WIZ120SR board can establish e a cconnection to t the sserver with peer p IP and Peer P Port num mber. 2 2. When the connection is establishe ed, data can n be transmitted in bothh directions - from tthe host to the WIZ120SR R or vice verrsa. In the mixed d mode, WIZ Z120SR autoomatically begins to ope erate as thee TCP Server, and w waits for the e connection n request frrom peers. However, H if WIZ120SR W reeceives data a from tthe serial de evice before a connectioon is establiished, it cha anges to thee client mod de and ssends the data to the peer IP. Thereffore, in the mixed m mode, the server mode has prriority o over the clie ent mode, unless data f rom a seriall device is re eceived firstt. To go back into SSever mode,, close the Client mod de connectio on and the WIZ120SR w will automattically rrevert to Serrver mode. SSimilar to the e TCP Serverr mode, the Mixed mode e is useful for monitoringg the status of the sserial device. In an emerrgency, the m module can be switched d by the devi vice/user to Client m mode to esta ablish the connection too the peer and a deliver the emergeency status of o the d device. - Use e UDP mode In the e UDP mode, the connec ction establisshment is om mitted. Please set the IPP address and d port numb ber of the pe eer then your packet willl send out. UDP Protocol doe es not provide reliable d data commu unication; ass a result, yyou must eva aluate whether UDP is su uitable for your y applicattion or not. - Loccal Port : Thiis field is to set the netw work port number in WIZ120SR. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 11 Yo ou should se et to different port num mber from ea ach other UA ART port. erial Configu urations Se Serial Configurations are nott set by usin ng the netwo ork interface e (PC configguration tool), but you sshould set from f the Se erial interfacce using Se erial Commands. Click tthe check button b "Enab ble" to ente er serial con nfigurations mode. For more details, please re refer to secttion 4 "Serial Configuration" below.. his function is only supp ported by `U UART 0'. Th assword Pa For se ecurity purp poses, you ca an restrict th he access of the module by imposing a password.. 'Passw word' functiion is only available a in Server mode. If `password' functioon is enabled d, the clien nt should inp put the passw word to acce ess the modu ule. 1 1. Execute Configuratio on Tool progrram. 2 2. Select `SServer' in the e "Operation n Mode". 3 3. Check "E Enable" of "P Password(TC CP Server)" and a enter a password p of yyour choice 4 4. Click the e "Setting" button b 5 5. When the client trie es to access this module, client shou uld send thee 'password' to t the server module m before e access is ggranted. estination In nformation De When n your modu ule is set as "Client mod de", "Mixed mode" or "UDP mode",, peer IP and d port shoulld be set in order o for WIZ Z120SR to coonnect to the e server(or peer). p - Use e DNS : If yo our applicatio on needs the e DNS functiion, click the e select buttton and inpu ut the doma ain name and d the DNS Se erver IP addrress. Domain n Name Syste em (DNS) is a database system that a associates th he Domain name with thhe actual IP address. a The e purpose of the DNS systtem is to re esolve the Do omain name e and represe ent it as an IP address. As a result , your devic ce can conne ect to an acttual IP addre ess. - DNSS Server IP: Input your DNS IP addrress or DNS server addre ess providedd by your Intternet Servicce Provider (ISP) - Dom main name : Input Doma ain name of cconnecting node. n (Ex: ww ww.wiznet.cco.kr) DNS ffunction is good for peerr IP that is n ot fixed (DH HCP) or peer that have doomain name e. As a resultt, you do not need to change peer IP P configuratiion every tim me the peer IP change. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 12 3. Firmware Up pload Run `WIZ12 20SR Configuration Tool' program, an nd click the "Search" " buttton. ule is properrly connecte d to the nettwork, the "S Searching Coomplete" me essage If the modu and d the MAC ad ddress will be b displayed on the "Boa ard List" as shown in Figuure.5. Figure 5. Board Searc ch Window Select a mo odule shown in the "Boaard list", and d click the "U Upload" buttton. e firmware through Ethernet, yo ou should sset the nettwork Before uploading the infformation off WIZ120SR first, by Co onfiguration Tool progra am as shown n above in Figure F 5. By using Piing test, you u can check k whether your y networrk is configu ured correctly or not. w as shown in Figu ure 5 is disp played, selec ct file to uplload and clic ck the When the window "O Open" button n. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 13 Fig gure 6. Ope n dialog box x for uploading Do not uplo oad any othe er files exce ept for WIZ120SR applic cation firmw ware file. A dialogue box titled "P Processing" w will be displayed as belo ow. Figure 7. Firm mware uploading windo ow When uplo oading is co ompleted, a message box b with "C Complete Upploading" will w be dissplayed as sh hown in Figure 8. U Figure 8.. Complete Uploading WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 14 4. Serial Configu uration ns 4.1. Serial Co ommand Format F Serrial Comman nd is used to set the WIZ 120SR param meters via se erial interfacce. Please re efer to the e screenshott under secttion 2.2.2. W When specific letters (th hree charactters) are enttered, WIZ120SR operrates serial configuration c n mode. Use er can set any a Special Character C wiith the Conffiguration To ool, and thiss function su upport UA ART 0 only. Fra ame Formatt Com mmand Fram me Format Descriptor STX Le ength(bytes)) Comman nd code Parameter ETX 2 Variable e 1 1 Table 3. Serial Comm mand - Com mmand Frame e Format Rep ply Frame fo ormat Descriptor STX Reply code Parameter ETX Le ength(bytes) 1 1 Variable e 1 Table 4. Serial Co ommand - Re eply Frame Format F STX & ETX Setting S Com mments STX `<' : Hex = 3Ch ETX `>' : Hex H = 3Eh Ta able 5. Seriaal Command d - STX & ET TX Replly Code R Reply Comm ments S Comm mand succeed F Comm mand failed 0 Inv valid STX 1 Invaliid command 2 Invalid parameter 3 Inv valid ETX E Enter Seria al Command Mode M Ta able 6. Seriaal Command d - Reply Cod de WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 15 Com mmand Code Com mmand Se et common param meter Paarameter xxx.x xxx.xxx.xxx (eg.. 192.168.11.13 33) xxx.x xxx.xxx.xxx (eg.. 255.255.255.0 0) xxx.x xxx.xxx.xxx (eg.. 192.168.11.1) Set the Local IP Set the Subneet mask Set the Gatew way W WD 0 : Sttatic, 1 : DHCP, 2 : PPPoE Set the IP connfiguration meth hod W WT 0 : Diisable, 1 : Enabble Set the serial command meth hod W WE xxxxx xx (eg. In hex foormat : 2B 2B 2B) Set the comm mand mode charracter W WY PPPoE E ID Set the PPPoEE ID W WZ PPPoE E Password Set the PPPoEE Password W WR Se et UAR RT0 param meter Restart W WP 0~655 535 Set the Local IP's port numbe er for UART0 W WM 0 : TC CP Client, 1 : TC CP Mixed, 2 : TC CP Server Set the TCP opperation mode for UART0 W WK 0 : TC CP, 1 : UDP Set the Protoccol(TCP or UDP)) for UART0 W WB XXXXX X eg. [B Baudrate]1: 1155200, 2: 57600, 3: 38400, 4: 4 19200, 5: 96000, 6: 4800, 7: 2400,8: 2 1200 [data bits] 7 : 7 bit, 8bit [parity] 0 : no p parity, 1 : Odd, 2 :Even [Stop bit] 1, 2 [Flow] 0 : no, 1 : Xon/Xoff, 2 :RTS/CTS Set the serial baud rate, datta bits, parity, stop bit and fllow control for UART0. 5bytes:[Baud]][data bits][pariity] [Stop bit][flow] W WU 0 : Diisable, 1 : Enabble Set the DNS opption for UART0 0 W WV xxx.x xxx.xxx.xxx (eg.. 255.255.255.0 0) Set the DNS IPP for UART0 W WW xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxx (eg. wiznet.co.kr) w Set the Domaiin for UART0 W WX xxx.x xxx.xxx.xxx (eg.. 192.168.11.14 44) Set the peer I P address for UART0 W WN 0~655 535 W WC XX Set the peer pport number forr UART0 Set the delim miter characte er in hex for UART0 W WJ 0~255 5 Set the delimiiter size for UART0 WH W W WL 0~655 535 0~655 535 Set the delimiiter time for UA ART0 Set the Inactivvity timer value e for UART0 O OP 0~655 535 Set the Local IP's port numbe er for UART1 O OM 0 : TC CP Client, 1 : TC CP Mixed, 2 : TC CP Server Set the TCP opperation mode for UART1 O OK 0 : TC CP, 1 : UDP XXXXX X eg. [B Baudrate]1: 1155200, 2: 57600, 3: 38400, 4: 4 19200, 5: 96000, 6: 4800, 7: 2400,8: 2 1200 [data bits] 7 : 7 bit, 8bit [parity] 0 : no p parity, 1 : Odd, 2 :Even [Stop bit] 1, 2 [Flow] 0 : no, 1 : Xon/Xoff, 2 :RTS/CTS Set the Protoccol(TCP or UDP)) for UART1 O OU 0 : Diisable, 1 : Enabble Set the DNS opption for UART1 1 O OV xxx.x xxx.xxx.xxx (eg.. 255.255.255.0 0) Set the DNS IPP for UART1 O OW xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxx (eg. wiznet.co.kr) w Set the Domaiin for UART1 O OX xxx.x xxx.xxx.xxx (eg.. 192.168.11.14 44) Set the peer I P address for UART1 O ON 0~655 535 Set the peer pport number forr UART1 O OC XX O OJ OH O O OL 0~255 5 0~655 535 0~655 535 O OB Se et UAR RT1 param meter Comments WI W W WS W WG WIZ12 20SR User's Manual M (WIZ Znet, Inc.) Set the serial baud rate, datta bits, parity, stop bit and fllow control for UART1. 5bytes:[Baud]][data bits][pariity] [Stop bit][flow] Set the delim miter characte er in hex for UART1 Set the delimiiter size for UART1 Set the delimiiter time for UA ART1 Set the Inactivvity timer value e for UART1 16 Ge et common param meter RA R R RF R RI R RS MAC Address A x.x (e eg. 1.0) IP Add dress Subne et Mask Get Get Get Get R RG Gatew way address Get the Gatew way R RD 0 : Sttatic, 1 : DHCP, 2 : PPPoE Get the IP connfiguration method R RT 0 : Diisable, 1 : Enabble Get the seriall command method R RE xxxxx xx (eg. In hex foormat : 2B 2B 2B) Get the comm mand mode charracter R RY PPPoE E ID Get the PPPoEE ID PPPoE E Password Get the PPPoEE Password R RP Locall Port Number Get the Local IP's port number for UART0 R RM 0 : TC CP Client, 1 : TC CP Mixed, 2 : TC CP Server Get the operaation mode for UART0 U R RK Get the Protoccol for UART0 RU R R RV 0 : TC CP, 1 : UDP XXXXX X eg. [B Baudrate]1: 1155200, 2: 57600, 3: 3 38400, 4: 192200, 5: 9600, 6: 6 4800, 7: 24000,8: 1200 [data bits] 7 : 7 bit, 8bit [parity] 0 : no p parity, 1 : Odd, 2 :Even [Stop bit] 1, 2 [Flow] 0 : no, 1 : Xon/Xoff, 2 :RTS/CTS 0 : No ot use , 1 : Use IP add dress R RW Doma ain name Get the Domaain Name for UA ART0 R RX xxx.x xxx.xxx.xxx (eg.. 192.168.11.14 44) Get the peer IIP address for UART0 U R RN 0~655 535 R RC XX R RJ RH R R RL 0~255 5 0~655 535 0~655 535 Get the peer pport number for UART0 Get the delim miter characte er in hex for UART0 Get the delim miter size for UA ART0 Get the delim miter time for UA ART0 Get the Inactiivity timer value for UART0 Q QP QM Q Q QK QU Q Q QV Q QW Q QX Q QN Locall Port Number 0 : TC CP Client, 1 : TC CP Mixed, 2 : TC CP Server 0 : TC CP, 1 : UDP XXXXX X eg. [B Baudrate]1: 1155200, 2: 57600, 3: 38400, 4: 4 19200, 5: 96000, 6: 4800, 7: 2400,8: 2 1200 [data bits] 7 : 7 bit, 8bit [parity] 0 : no p parity, 1 : Odd, 2 :Even [Stop bit] 1, 2 [Flow] 0 : no, 1 : Xon/Xoff, 2 :RTS/CTS 0 : No ot use , 1 : Use IP add dress Doma ain name xxx.x xxx.xxx.xxx (eg.. 192.168.11.14 44) 0~655 535 Q QC XX Q QJ QH Q Q QL 0~255 5 0~655 535 0~655 535 Q QB Ge et UAR RT1 param meter MAC AAddress firmw ware version Local IP Subneet mask R RZ R RB Ge et UAR RT0 param meter the the the the Get the seriall baud rate, datta bits, parity, stop bit and fllow control for UART0. 5bytes:[Baud]][data bits][pariity] [Stop bit][flow] Get the DNS ooption for UART T0 Get the DNS IPP for UART0 Get the Local IP's port number for UART1 Get the operaation mode for UART1 U Get the Protoccol for UART1 Set the serial baud rate, datta bits, parity, stop bit and fllow control for UART1. 5bytes:[Baud]][data bits][pariity] [Stop bit][flow] Get the DNS ooption for UART T1 Get the DNS IPP for UART1 Get the Domaain Name for UA ART1 Get the peer IIP address for UART1 U Get the peer pport number for UART1 Get the delim miter characte er in hex for UART1 Get the delim miter size for UA ART1 Get the delim miter time for UA ART1 Get the Inactiivity timer value for UART1 Table 7. Serial C Command - Command Code C WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 17 4.2. WIZ120SR R Configurration with h Serial Co ommand Figurre 9. Serial C Configuratio on Enable Se etting Please check the versions of yo ur WIZ120SR R firmware and a configurration tool. If any version is not the sam me the latesst one, then you should download thhe latest one e from our webp page http:// /www.wiznett.co.kr. Please co onnect your device to `U UART 0' seria al port. Seriall Configuration function is only suppo orted by UAR RT0. Please In nput your th hree specifie ed characterrs to enter the t serial coommand mod de (in the abovve Figure, 2B B, 2B, 2B are e configured d and the `Enable' box iis checked). Make sure you u click the e `Setting' button to save your settings. A According to o the configura ations above e, press `+++ ' to enter se erial configurration mode Notice: 0x2B 0 is the HEX H of `+'. Once you u finish the configuration c ns, follow th he procedure es in the beloow. 1 Inp put "+++" Enter Serrial Configuration mode 2 Che eck answer "" " Notice Ac ccess Successs 3 Inp put "" Change module m IP to 192.168.11..3 4 Che eck answer "" " Notice su uccess IP setting WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 18 5 Inp put "" check mo odule IP address 6 Che eck answe r "" e changed module m IP adddress check the 7 Inp put "" reboot 8 Che eck answer "" " Notice su uccess of reb boot commannd 9 Module reboot Table 8. Serial C Command Te esting Proce edure Above proccedure is sho own in seriall console as below figure e. WIZ120SR F/W Ver.1.0 IP : 192.16 68.11.100 SN : 255.255.255.0 GW : 192.1 168.11.1 [0]Listen 0 WIZ120SR F/W Ver.0.9 IP : 192.16 68.11.3 SN : 255.255.255.0 GW : 192.1 168.11.1 [0]Listen 0 Tab ble 9. Serial Command Console C Disp play WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 19 5. PIN Asssignme ent and d Dimen nsion Figure F 10. W WIZ120SR Pin n Assignmen nt Pin nam me Description I/O /RESET Reset (Active LLow) Input USART1_RX RS-232 Data Inp put for USART1 Input USART1_TX RS-232 Data Ouutput for USART T1 Output USART1_RTS RS-232 Requestt To Send for USSART1 Output USART1_CTS RS-232 Clear Too Send for USAR RT1 Input USART2 2_RX RS-232 Data Inp put for USART2 Input USART2 2_TX RS-232 Data Ouutput for USART T2 Output USART2 2_RTS RS-232 Requestt To Send for USSART2 Output USART2 2_CTS RS-232 Clear Too Send for USAR RT2 Input SW_INP PUT Reserved I/O Input BOOT0 Boot select sig nal High : boot as M MCU bootloader Low : boot as W WIZ120SR applic cation Input STATUS_ _1 High: Not connnected Low: Connecteed STATUS_ _2 High: Not connnected Low: Connecteed Output TPRX- Ethernet Differrential Input- Input TPRX+ Ethernet Differrential Input+ Input TPTX- Ethernet Differrential Output- Output TPTX+ Ethernet Differrential Output+ + Output /LINK_L LED Link LED Output /ACT_L LED Active LED Output PWFBOU UT Power Feedbacck Out Power VCC 3.3V Power Power Output Table T 10. W WIZ120SR PIN N Assignment WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 20 1 1) All signa al levels are 3.3V LVTTL L. 2 2) A high siignal must be b applied fo or 1.2usec in n order for proper p operration. 3 3) The stattus pin `Connected' ind dicates the TCP T socket of o WIZ120SR R is connectted to remote system. s 4 4) /LINK_LE ED pin is use ed to check if Ethernet cable is phy ysically conn nected or no ot. Figure 11. WIZ120SSR Board Dim mensions (un nit : mm) WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 21 6. Demon nstratio on and Test In thiis chapter, we w will provid de you the p procedure to test the fun nctions of WIIZ120SR. The ttesting environment is ass follows; Hardware e P that has a RS-232 seri al port. PC WIZ120SR & WIZ120SR W W Baase Board E Ethernet Dirrect or crooss-over cab ble which connects c beetween PC'ss and W WIZ120SR's LA AN ports. R RS-232 cable e which conn nects the PC C's COM porrt and WIZ1220SR's seriall data p port. Software W WIZ120SR Configuration ttool H HyperTermina al(or other sserial terminal program) STE EP1. C Connect the computer an nd WIZ120SR R Base Board d with a seria al cable. C Connect the computer and a WIZ120SSR Base Boarrd by using an Ethernett cable (Dire ect or C Crossover Ca able). P Power on the e WIZ120SR Test T Board. STE EP2. (WIZ120SR Config guration Setu up) M Modules are searched by y clicking the e search buttton of the Co onfiguration Tool. SSelect the board b to con nfigure and change the value. To apply a your cchanges, clic ck the SSetting butto on. If your chan nges are su uccessfully aapplied, the e "Complete setting" message will be d displayed. STE EP3. (Data Transmissio on) R Run terminall emulator program (e.g.. HyperTerminal) on the PC. SSet the same e baud rate as a specified iin WIZ120SR R (i.e. the value in the coonfiguration tool) WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 22 Figure 12. Serial T Terminal Pro ogram Config guration O Open anothe er Hyper term minal and sett the IP addrress and portt number. Figure 13. Network Terminal Prrogram Conffiguration T Type some ch haracters on n the serial H HyperTermin nal screen. In n this exampple, "01234567890" is entered. Make sure th he characters you have e entered arre shown on the Netwoork HyperTerrminal M w window. (i.e. Serial to Etthernet) WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 23 Figure 14. Received D Data by Netw work Termin nal Program Vice Versa, type t some ch haracters on the networrk HyperTerm minal, and thhen make sure the V ccharacters you have typed are show wn in the serrial HyperTerrminal windoow. (i.e. Eth hernet tto Serial) WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 24 Abovve test can be b performe ed more easilly and conve eniently by using u Device Terminal pro ogram. Below w is the screen of the De evice Terminaal program. Figure F 15. D Device Terminal Program m Devicce Terminal is a program which haas both seria al and netw work terminaals integrate ed for efficiient testing of o WIZnet ga ateway modu ules. As sh hown in Figu ure 15, at th he upper paart of the prrogram is fo or you to coonfigure the serial settin ngs. By click the "Open" button, seriial communiication is ena abled. The llower part off the program m, "Networkk Communica ation", is used to test TC CP Client an nd TCP Serve er modes. When W the Serrver Mode iss checked, Device D Termiinal operatees as a serve er and the m module work ks as a clientt. The PC w where the De evice Terminal is operatiing will work as a serve er, the IP add dress of the PC should b be set as pee er IP of the module. m If Seerver mode is not checkked, Device Terminal wiill operate aas a client, and a the mod dule operatees as a serve er. For the IP address an nd port field ds, please in nput the IP address and d port numbeer of modulle and click "Connect" button b to esttablish a nettwork commu unication. When n serial and network te erminals are e connected, input any character iin the data input windo ow and click k the "Send" button. You u can check the t data tran nsferred in aanother wind dow. WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 25 Docu ument Rev vision Histtory D Date 2009 9-02-23 Revision R v1.0.0 2013 3-06-19 v1.1.0 Changes Released R verrsion The T software e CD is not provide anym more. For F more sofftware conte ents, please visit v our webbsite. (www.wiznet ( t.co.kr) Modified M the e table of Product contents in CH 1..2. Software CD is removed r in tthe table of contents. c WIZ12 20SR User's Manual M (WIZ Znet, Inc.) 26