background image

 

                                                           

 

WIZ127SR User’s Manual 

38 

4.5.3.

 

RTS Only mode Timing Diagram 

Start

Send a byte

Is there 

any data 
to send?

End

No

Yes

8 bits Data

7 bits Data

9 bits Data

7 bits Data

7 bits Data

8 bits Data

9 bits Data

8 bits Data

9 bits Data

RTS

Tx

RTS

Tx

RTS

Tx

Set RTS to 

LOW

Set RTS to 

HIGH

Send(RTS Only)

 

Figure 12. RTS signal Timing Diagram under RTS only mode 

 

 

 

Summary of Contents for WIZ127SR

Page 1: ...WIZ127SR User s Manual Version 1 11 2013 WIZnet Co Ltd All Rights Reserved For more information visit our website at http www wiznet co kr ...

Page 2: ...ent 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 des...

Page 3: ... Rights Reserved Contact Information WIZnet US sales_team wiznettechnology com support_team wiznettechnology com WIZnet HK sales wiznet hk WUZnet EU sales wiznet eu WIZnet HQ sales wiznet co kr support wiznet co kr For more information visit our website at http www wiznet co kr ...

Page 4: ...e data 17 3 2 4 1 Command Frame Format 18 3 2 4 2 Reply Frame Format 19 3 2 4 3 Example 20 3 3 HOW TO GET THE SOCKET STATUS 21 3 4 HOW TO USE EXTRA GPIO PINS 21 4 HOW TO CONFIGURE WIZ127SR 22 4 1 CONFIGURING WITH UDP BROADCASTING AND WIZ127SR CONFIGURATION TOOL 22 4 1 1 Network Configurations 22 4 1 2 Serial Configuration 25 4 1 3 Option Configuration 29 4 2 CONFIGURING WITH WEB BROWSER 31 4 3 CON...

Page 5: ... FIGURE 7 CONFIGURATION TOOL OPTION CONFIGURATION 29 FIGURE 8 CTS SIGNAL TIMING DIAGRAM UNDER CTS RTS MODE 36 FIGURE 9 RTS SIGNAL TIMING DIAGRAM UNDER CTS RTS MODE 36 FIGURE 10 DTR SIGNAL TIMING DIAGRAM UNDER DSR DTR MODE 37 FIGURE 11 DSR SIGNAL TIMING DIAGRAM UNDER DSR DTR MODE 37 FIGURE 12 RTS SIGNAL TIMING DIAGRAM UNDER RTS ONLY MODE 38 FIGURE 13 CONFIGURATION TOOL 39 FIGURE 14 OPEN DIALOG BOX ...

Page 6: ... 8 TABLE 6 SERIAL CONFIGURATION REPLY FRAME FORMAT 8 TABLE 7 SERIAL CONFIGURATION STX ETX 8 TABLE 8 SERIAL CONFIGURATION REPLY CODE 8 TABLE 9 HARDWARE CONFIGURATION FRAME FORMAT 18 TABLE 10 HARDWARE CONFIGURATION COMMAND CODE 18 TABLE 11 HARDWARE CONFIGURATION PARAMETER DESCRIPTIONS 19 TABLE 12 HARDWARE CONFIGURATION REPLY FRAME FORMAT 19 TABLE 13 HARDWARE CONFIGURATION ENTRANCE MESSAGE 20 ...

Page 7: ... equipment as TCP IP data type or vice versa 1 1 Key Feature Plug 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 UDP communication Supports DHCP DNS NTP Easy configuration Web Telne...

Page 8: ...S TTL 5V tolerant Input WIZ127SR check whether this pin is asserted low as input pin during booting If it is low WIZ127SR enter into Hardware 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 Differen...

Page 9: ...nal pull up resistor on UART2_TX Output CMOS TTL 5V tolerant Input J3 6 UART2_RX RX Data Input for UART2 Input CMOS TTL 5V tolerant Input J3 7 STATUS2 High Not connected Low Connected Output CMOS TTL 5V tolerant Input J3 8 PB11 Factory Reset Active Low Input CMOS TTL 5V tolerant Input Factory Reset is done if it is asserted low during MCU booting J3 9 PB12 GPIO pin Input Output CMOS TTL 5V toleran...

Page 10: ...WIZ127SR User s Manual 4 2 2 Dimension Figure 2 Dimension ...

Page 11: ...eter Test Conditon Min Typ Max Unit VDD DC Supply voltage Junction temperature is from 55 to 125 2 97 3 6 V VIH High level input voltage 2 0 3 6 V 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 μA Table 3 DC Characteristic 2 3 3 POWER DISSIPATION Test Condition VCC3 3V Temperature 25 Condition Min Typ Max Unit...

Page 12: ...0 11 12 J1 2 0mm HEADER 12x1 1 2 3 4 5 6 7 8 9 10 11 12 J2 2 0mm HEADER 12x1 1 2 3 4 5 6 7 8 9 10 11 12 2 0 Pitch 2 0 Pitch RESET 2 0 Pitch VDD3V3 RS232_RTS1 RS232_TX1 GND RS232_CTS1 RS232_RX1 P2 DB9_MALE RA 5 9 4 8 3 7 2 6 1 10 11 U1 SP3232EUEY L C1 1 V 2 C1 3 C2 4 C2 5 V 6 TOUT2 7 TOUT1 14 ROUT2 9 RIN2 8 TIN2 10 TIN1 11 ROUT1 12 RIN1 13 GND 15 VCC 16 C6 0 1uF C5 0 1uF C4 0 1uF C7 0 1uF C8 0 1uF ...

Page 13: ...485 422 SP3485 RO 1 RO 2 DE 3 DI 4 GND 5 A 6 B 7 VCC 8 UART2_TX UART2_RX UART2_RTS VDD3V3 0 1uF 120R 485 485 HEADER 2 1 2 RS485 Example Circuit VDD3V3 0 1uF 485_TX 485_TX UART2_RX UART2_TX SP3701E VCC 1 RO 2 DI 3 GND 4 Y 5 Z 6 B 7 A 8 485_RX 120R 485_RX HEADER 4 1 2 3 4 RS422 Example Circuit ...

Page 14: ...erial Configuration Frame format Reply Frame format Descriptor STX Reply code Parameter ETX Length bytes 1 1 Variable 1 Table 6 Serial Configuration Reply Frame format STX ETX Setting Comments STX Hex 3Ch ETX Hex 3Eh Table 7 Serial Configuration STX ETX 3 1 2 Reply Code Reply Comments S Command was successful F Command failed 0 Invalid STX 1 Invalid command 2 Invalid parameter 3 Invalid ETX E Ente...

Page 15: ... ex RS Response S255 255 255 0 WG Format WGxxx xxx xxx xxx Meaning Set Gateway Address ex WG192 168 11 1 Response S RG Format RG Meaning Get the current WIZ127SR s Gateway address Its response format is like below S IP Addr IP Addr Server s IP address in a dotted decimal format ex RG Response S192 168 0 1 WP Format WPxxxxx Meaning Set Local port number ex WP35000 Response S RP Format RP Meaning Ge...

Page 16: ... is the same to TCP Server mode at first but While any connection 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 WM0 Response S RM Format RM Meaning Get the current data communication soc...

Page 17: ... bps 38 400 bps 19 200 bps 9 600 bps 4 800 bps 2 400 bps 1 200 bps d data bits size 7 8 9 7 bits 8 bits 9 bits p parity 0 1 2 No Parity Odd Parity Even Parity f flow control 0 2 3 4 None RTS CTS DSR DTR RTS Only For RS485 ex WB1800 115200 8 bits no parity no flow control Response S RB Format RB Meaning Get the current configuration information of WIZ127SR s serial interface Its response format is ...

Page 18: ...le if user wants use A as ch then user should input its ASCII code in hexadecimal format 4 and 1 not A ex If character string for software trigger is then WE2B2B2B Response S RE Format RE Meaning Get the current character string for software trigger to enter the serial command mode Its response format is like below S ch1 ch2 ch3 IP Addr Server s IP address in a dotted decimal format ex RE Response...

Page 19: ...Z127SR in order that those command affect to WIZ127SR s configuration to operate properly So we recommend you do use this command after all command you issued to guarantee WIZ127SR operate successfully ex WR Response S WV Format WV IP addr Meaning Set Domain Name Server s IP address If you want to use Server information in Domain name not IP address then you should set Domain Name Server s IP addr...

Page 20: ...Meaning Get the current password for PPPoE Its response format is like below S Passwd Passwd Server s IP address in a dotted decimal format ex RZ Response Sadmin OC Format OC ch Meaning Set a character delimiter 1 for making a ethernet data block in Hexadecimal format ch character information Default value is 00 If this value is 00 it means Character Delimiter disabled 1 In normal a serial device ...

Page 21: ...S100 Response S QS Format QS Meaning Get the current size delimiter value Its response format is like below S size size Server s IP address in a dotted decimal format ex QS Response S40 OT Format OT time Meaning Set a time delimiter for making a ethernet data block in Decimal format time time information Its range is 0 65535 Unit is millisecond Default value is 0 If this value is 0 it means Time D...

Page 22: ...ex RA Response S00 08 DC 00 11 22 RF Format RF Meaning Get the current firmware version stored in WIZ127SR Its response format is like below S Ver Ver Server s IP address in a dotted decimal format ex RF Response S3 1 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 sh...

Page 23: ... 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 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 mo...

Page 24: ...mat Command Codes Command Comments R Read Parameter W Write Parameter X Exit Hardware Command mode E Command Error Table 10 Hardware Configuration Command Code Parameter Structure Value bytes count Description 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 Lo...

Page 25: ...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 2020 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 descr...

Page 26: ...000000 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...

Page 27: ...er mode during booting of WIZ127SR and after booting WIZ127SR change STATUS1 pin to output port and this pin notifies what the current status of UART0 s corresponding socket is As 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 connect...

Page 28: ... 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 c...

Page 29: ...tic Using the follow IP Address is an option for setting WIZ127SR module s IP with static IP address 1 Select a MAC address which you want to set as static IP in the Search Window 2 Check Using the follow IP address 3 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 add...

Page 30: ... 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 f...

Page 31: ...r 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 serve...

Page 32: ...ication 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...

Page 33: ...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 f...

Page 34: ...o 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 an...

Page 35: ...eenshot correspond to the descriptions listed below 1 Device name The device name is displayed in this area 2 Serial number The serial number of device is displayed in this area 3 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 passwor...

Page 36: ... In case of standard version this function just working for clock synchronization and display the 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 ...

Page 37: ...owser and input the IP address of the module The first page will request the user password as shown in below figure 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 ...

Page 38: ...ng Telnet Client program If you connect to the WIZ127SR you can see the message of requesting user password Input the user password Default P W WIZ127SR You can see the message Press Q to enter the main console menu If you input the Q the main menu for the WIZ127SR configuration is displayed ...

Page 39: ...am 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 ...

Page 40: ...28 138 140 44 Time Zone 40 UTC 09 00 UART0 Serial Configure Enable 0 Disable Serial Configure Trigger 0x2b 0x2b 0x2b Working Mode TCP mixed Local Port 5000 Remote Server IP 192 168 11 101 Remote Server Port 5001 Baudrate 115200 Data bit 8 Parity NONE Stop Bit 1 Flow Control NONE DNS Enable 0 Disable Domain Nagle Time 0 ms Inactivity Time 10 seconds Reconnection Time 1000 ms UART1 Working Mode TCP ...

Page 41: ...WIZ127SR User s Manual 35 Stop Bit 1 Flow Control NONE DNS Enable 0 Disable Domain Nagle Time 0 ms Inactivity Time 10 seconds Reconnection Time 1000 ms ...

Page 42: ...Data 8 bits Data 9 bits Data 8 bits Data 9 bits Data CTS Tx CTS Tx CTS Tx Send CTS Figure 8 CTS signal Timing Diagram under CTS RTS mode Start Check Buffer Set RTS to HIGH End Buffer is free Buffer will be overflow 8 bits Data 7 bits Data 9 bits Data 7 bits Data 7 bits Data 8 bits Data 9 bits Data 8 bits Data 9 bits Data RTS Rx RTS Rx RTS Rx Set RTS to LOW Receive and store a byte to buffer Receiv...

Page 43: ...a 9 bits Data 8 bits Data 9 bits Data DTR Tx DTR Tx DTR Tx DTR Data Terminal Ready Figure 10 DTR signal timing diagram under DSR DTR mode Start Successful Initialize Set DSR to HIGH End Yes 8 bits Data 7 bits Data 9 bits Data 7 bits Data 7 bits Data 8 bits Data 9 bits Data 8 bits Data 9 bits Data DSR Rx DSR Rx DSR Rx Set DSR to LOW Device Initialize DSR Data Set Ready No Figure 11 DSR signal Timin...

Page 44: ...a byte Is there any data to send End No Yes 8 bits Data 7 bits Data 9 bits Data 7 bits Data 7 bits Data 8 bits Data 9 bits Data 8 bits Data 9 bits Data RTS Tx RTS Tx RTS Tx Set RTS to LOW Set RTS to HIGH Send RTS Only Figure 12 RTS signal Timing Diagram under RTS only mode ...

Page 45: ... Figure 13 Configuration Tool Select a module shown in the Search Window and click the Firmware Upload button 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 disp...

Page 46: ...WIZ127SR User s Manual 40 Figure 14 Open dialog box for uploading Do not upload any other files except for WIZ127SR application firmware file ...

Page 47: ...l 41 The progress bar will be displayed as below Figure 15 Firmware uploading window When uploading is completed a message box with Firmware download over will be displayed as shown in Figure 7 Figure 16 Complete Uploading ...

Page 48: ...ware 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 In this manual we are going to test the module with following configuration Category Parame...

Page 49: ...etwork 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 Set the all parameters as indicated in 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 ...

Page 50: ...WIZ127SR User s Manual 44 ...

Page 51: ...WIZ127SR User s Manual 45 Check the COM port status of the PC and open the serial terminal Check the IP Address and port of WIZ127SR and connect to WIZ127SR ...

Page 52: ... 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 ...

Page 53: ... 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...

Reviews: