Hide thumbs Also See for WizFi210:
Table of Contents

Advertisement

Quick Links

WizFi210 Programmers' Guide
(Version 1.20)
WizFi220 operates same as described in this documents
©2013 WIZnet Co., Ltd. All Rights Reserved.
☞ For more information, visit our website at
http://www.wiznet.co.kr

Advertisement

Table of Contents
loading

Summary of Contents for Wiznet WizFi210

  • Page 1 WizFi210 Programmers’ Guide (Version 1.20) WizFi220 operates same as described in this documents ©2013 WIZnet Co., Ltd. All Rights Reserved. ☞ For more information, visit our website at http://www.wiznet.co.kr...
  • Page 2 Certification Information CE for Class B ITE INFORMATION TO THE USER Hereby, WIZnet. Declares that these WizFi210 and WizFi220 are in compliance with the essential requirements and other relevant provisions of directive 1999/5/EC. WARNING: These are the class B products. In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures.
  • Page 3 Programmers’ guide for Software Engineer. More detail information included in datasheet. 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.
  • Page 4: Table Of Contents

    Factory default #2 : <Ad-hoc Configuration> ............7-55 7.2.1. Changing mode to <ad hoc & Configuration-Tool mode> ......7-55 7.2.2. Connecting to the WizFi210 with ad-hoc mode ..........7-55 Transmitting and Receiving HTML Data ..............8-57 8.1. Operating as HTTP Client using WizFi210 functions ..........8-57 8.1.1.
  • Page 5 Example of AT commands for configuring HTTP Server ........ 8-65 Using Enterprise Security ..................9-67 9.1. EAP-TLS ........................ 9-67 9.1.1. Connect to RADIUS Server using WizFi210 ........... 9-67 Examples ......................... 10-69 10.1. Station Mode, TCP Client and Auto Connection ..........10-69 10.1.1. Example 1 of commands sequence ............10-69 10.1.2.
  • Page 6 TABLE 19 BYTE STUFFING FOR SPECIAL DATA OF SPI..................3-39 TABLE 20 ESCAPE SEQUENCE FOR SENDING DATA IN COMMAND MODE .......... 4-43 TABLE 21 ESCAPE SEQUENCE FOR RECEIVING DATA IN COMMAND MODE ........4-45 (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide...
  • Page 7 FIGURE 6 EXAMPLE OF USING COMMANDS FOR STATION MODE ............6-49 FIGURE 7 EXAMPLE OF USING COMMANDS FOR LIMITED AP MODE ............6-50 FIGURE 8 BUTTON CORRESPONDING TO THAT PIN IN WIZFI210 EVALUATION BOARD ....7-51 FIGURE 9 EXAMPLE OF USING AT COMMAND INSTEAD OF HARDWARE PIN ........7-51 FIGURE 10 EXAMPLE OF APS LIST ..........................
  • Page 8: Overview

    This document provides programmers with all command and explanation about WizFi210 control. Basically programmers can control WizFi210 with commands set, known as AT command - the character string format. In this document, we describe what AT command are used, how each command operates and how programmers have to handle those commands to get the response as expected.
  • Page 9 Not associated to a wireless S2W_LINK_LOST [DISASSOCIATED] network. Wireless network association S2W_DISASSO_EVT [Disassociation Event] lost. Table 1 List of response for AT commands (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide...
  • Page 10: At Command Category And Description

    2.1.1. Basic commands This category is for basic commands Command Category Description Format Meaning This command is to check whether WizFi210 is in command mode Response [OK] Format =0 (Input echo disable) ex)ATE Meaning =1 (Input echo enable) ex)ATE Response...
  • Page 11 10ms 0~65535 Association Retry Count Nagle Algorithm Wait Time 10ms 0~65535 Scan Time 0~65535 Response [OK] Format Description This command provides version information of WizFi210. Meaning OEM Identification Hardware version Software version ex)ATI or ATI Response Command ATI0 ATI1 ATI2...
  • Page 12: Profile Management

    AT+NMAC Format AT+NMAC= Set the adapter’s MAC address with <MAC Address> Store it to Flash memory Meaning <MAC Address> : colon-delimited 6-byte hexadecimal number ex) AT+NMAC2= 00:08:DC:11:22:33 Response [OK] AT+NMAC2 Format AT+NMAC2= <MAC Address> (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide...
  • Page 13 [OK] =[<SSID>[,<BSSID>][,<Channel>][,<Scan Time>]] AT+WS Format AT+WS This command is to get AP list which WizFi210 can associate with. User can provide some condition like SSID and channel for filtering. Meaning [<SSID>[,<BSSID>][,<Channel>][,<Scan Time>]] This can be changed according to your setting (WIZnet Co., Ltd.)
  • Page 14 =2 (limited AP) Response [OK] AT+WA Format AT+WA <SSID>[,[<BSSID>][,<Ch>]] This command make WizFi210 associate to an AP specified with parameters. SSID among parameters should not be omitted at least. <SSID> : the SSID of AP WizFi210 will associate with Meaning <BSSID>...
  • Page 15 METHOD Meaning Meaning Set to Limited AP mode with default setting Set to Ad hoc mode with default setting <PIN> : PIN value which WizFi210 needs in Limited AP mode Response AT+NSTAT Format AT+NSTAT= Meaning Get Current wireless and network status.
  • Page 16 Get the information about the clients associated to the adapter Meaning when it act as a Limited AP. AT+APCLIEN No.Of Stations Connected=1 TINFO MacAddr Response 00:08:DC:00:00:00 192.168.13.101 [OK] Table 5 List of commands for WiFi interface (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide...
  • Page 17: Wifi Security

    Description AT+WAUTH Format AT+WAUTH= Set Authentication Mode =0 (None) =1 (Open) =2 (Shared with WEP) Meaning If WizFi210 will be used as Limited AP, you must put this command with parameter ‘1’ ex) AT+WAUTH=1 Response [OK] <key> AT+WWEP Format AT+WWEP When AP, which WizFi210 will associate with, is using WEP Security, this command transfer WEP key to WizFi210.
  • Page 18 When AP, which WizFi210 will associate with, is using WPA2PSK Security, this command transfer SSID and passphrase to WizFi210. But When WizFi210 operates as Limited AP, this command is not meaningless, as WizFi210 doesn’t support WPA2PSK Security Meaning <SSID> : AP’s SSID <passphrase>...
  • Page 19 <= Response from WizFi210 <ESC>W <data of size above> This is a command to set which certificate WizFi210 will use. You can use only one of three type and more than two types with multiple of this command having different parameter.
  • Page 20: Wireless Configuration

    Table 6 List of commands for WiFi Security 2.1.6. Wireless configuration This category is for commands related to configure RF signal of WizFi210/220 Command Category Description AT+WRXACT Format AT+WRXACTIVE= =0 (802.11 radio disable) Meaning =1 (802.11 radio enable) ex) AT+WRXACTIVE=...
  • Page 21 On execution of this command, the adapter will set the listen interval for n beacons. This command accepts interval from 1 to 65535 beacons. The parameters set using this command will come in to force only at (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-14...
  • Page 22: Network Interface

    <DNS1 IP>,[<DNS2 IP>] <DNS1 IP>,[<DNS2 IP>] Meaning Set the DNS server addresses to be used. Ex) AT+DNSSET= 192.168.3.1 Response [OK] AT+STOREN Format AT+STORENWCONN WCONN Meaning Store network connection parameters prior to transition to Standby (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-15...
  • Page 23: Connection Management

    Create TCP Client socket and make it try to connect to Destination with Dest Address and Port <Dest Address> : Server’s IP address Meaning <Port> : Server’s Listen port number 192.168.3.200,5000 ex) AT+NCTCP= Response [OK] AT+NCUDP Format AT+NCUDP= <Dest Address>,<Port> [<,Src.Port>] (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-16...
  • Page 24 Get the current connection status with CID CID TYPE MODE LOCAL PORT REMOTE PORT REMOTE IP In case of CLIENT 52388 35001 192.168. 3.105 some Response Connections [OK] In case of No valid Cids (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-17...
  • Page 25 Close a SSL Connection Meaning <cid> : Connection ID Response [OK] <Param>,<Value> AT+HTTPCO Format AT+HTTPCONF= Set a specific parameter of configuration information for HTTP Client with <Value>. <Param> value Meaning Meaning HTTP_HEADER_AUTHORIZATION HTTP_HEADER_CONNECTION HTTP_HEADER_CONTENT_ENCODING HTTP_HEADER_CONTENT_LENGTH (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-18...
  • Page 26 Upon reception of this command the adapter removes the HTTP configuration specified by the param. The ‘param’ is the HTTP header and is one of the following: <Param> value Meaning HTTP_HEADER_AUTHORIZATION Meaning HTTP_HEADER_CONNECTION HTTP_HEADER_CONTENT_ENCODING HTTP_HEADER_CONTENT_LENGTH HTTP_HEADER_CONTENT_RANGE HTTP_HEADER_CONTENT_TYPE HTTP_HEADER_DATE HTTP_HEADER_EXPIRES (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-19...
  • Page 27 Format name>,<proxy>] Open an HTTP Client connection. This command opens an HTTP Client socket on WizFi210 and tries to connect to the server specified by the host name or IP address in <host> field. <host> : Domain name or IP address of the Server <Port Number>...
  • Page 28 Response [OK] Table 9 List of commands for Connection Management (*) is specialized functions for HTTP Client/SSL, not the part of standard firmware. If you want these functions, we can use the WizFi210 firmware for Enterprise. (WIZnet Co., Ltd.) WizFi210 Programmers’...
  • Page 29: Battery Check

    <Batt.chk.freq> : Battery Check Frequency Response [OK] <Warning Level>,<Warning Freq>,<Standby AT+BATTLVL AT+ BATTLVLSET= Format Level> Set the battery warning/standby level to enable WizFi210/220’s Meaning internal battery measuring logic Response [OK] AT+BCHK Format AT+BCHK= <Batt.chk.freq> Reset value of battery check frequency.
  • Page 30: Power State Management

    Mode is 0 for Infrastructure, 1 for Ad-hoc mode and 2 for Limited- AP mode. <mode> : Operating mode Meaning <SSID> : SSID of AP which WizFi210 will associate with [BSSID] : BSSID of AP which WizFi210 will associate with. [channel] : Channel of AP which WizFi210 will associate with. Ex) AT+WAUTO=0,WizFiDemoAP...
  • Page 31 =0 (disable) =5 to 3600 (interval, seconds) In order to exit from Data mode to AT command mode, you have to write +++(0x2B 0x2B 0x2B) without any followed char during more than 2 seconds. (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-24...
  • Page 32: Provisioning

    Get a firmware upgrade from the server address/port to the adapter port SrcPort. <SrvIp> : Server‘s IP address <SrvPort> : Server’s Port number Meaning <SrcPort> : Local port number of WizFi210 <retry> : retry count ex) AT+FWUP=192.168.3.200,667,667 Response [OK] (WIZnet Co., Ltd.) WizFi210 Programmers’...
  • Page 33 PING the IP address provided. Trails = 0 will ping until <Esc> C is issued. <IP> : Target’s IP address <Trails> : Option <Interval> : Option Meaning <Len> : Option <TOS> : Option <TTL> : Option <PAYLOAD> : Option Ex) AT+PING=192.168.3.1,5 (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-26...
  • Page 34 4 ms 5 ms 125.130.13.233 38 ms 10 ms 7 ms 112.174.15.133 5 ms 5 ms 5 ms 112.174.81.102 5 ms 5 ms 4 ms 112.174.83.50 101 ms 73 ms 71 ms 72.14.195.22 (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-27...
  • Page 35 =1 (Bulk Data mode is enable) =0 (Bulk Data mode is disable) Response [OK] AT+XDUM Format AT+XDUM= This command is to set whether Notification from WizFi210 regarding of some event become enable. Meaning =1 (Notification Message is disable) =0 (Notification Message is enable) Response [OK]...
  • Page 36 (in old EVB) Response [OK] Format AT+RESET AT+RESET Meaning The command forcefully reset the WizFi210 Response APP Reset-APP SW Reset Format AT+ERRCOUNT=? Get the error count statistics. This command returns error count information to the interface followed by the standard command response...
  • Page 37: Network Connection Manager(Ncm)

    2.1.14. Network Connection Manager(NCM) The WizFi210 supports network connection manager which manage L2, L3 and L4 level connection automatically. Command Category Description Format AT+NCMAUTO=<Mode>.<Start/Stop>,[Level] This command start the NCM by connecting to the AP(if the mode configured as station) or create a limited AP(if the mode configured as limited AP) with the pre-configured parameters.
  • Page 38 The NCM AP parameters can be configured using the auto connect commands specified in section 2.1.5 and 2.1.11. However, these commands are used for both station and Limited AP mode. To distinguish the parameters for Limited AP mode, WizFi210 provides a command: AT+APCONF Meaning AT+APCONF=<Enable>...
  • Page 39: Summary Of Commands Supported By Firmware Version

    2.1.15. Summary of commands supported by firmware version WizFi210 has some limitation of system resources like computing power and memory, so WizFi210 supply some kind of firmware and hardware according to the main function. WizFi210 has four firmware categories like Standard UART, Standard SPI, Enterprise UART and Enterprise SPI.
  • Page 40 ○ ○ AT+TCERTDEL ○ ○ ○ ○ AT&K ○ ○ AT&R ○ ○ AT&F ○ ○ ○ ○ AT&V ○ ○ ○ ○ AT&W ○ ○ ○ ○ AT&Y ○ ○ ○ ○ (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-33...
  • Page 41 ○ ○ AT+WWPS ○ ○ AT+BDATA ○ ○ ○ ○ AT+EXTPA ○ ○ ○ ○ AT+PSPOLLINTRL ○ ○ ○ ○ AT+UNSOLICITEDTX ○ ○ ○ ○ AT+SPICONF ○ ○ AT+WREGDOMAIN ○ ○ ○ ○ (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-34...
  • Page 42 ○ AT+RESET ○ ○ AT+APCONF ○ ○ AT+NCMAUTO ○ ○ AT+NCMAUTOCONF ○ ○ AT+XDUM ○ ○ AT+XEHT ○ ○ AT+XAR ○ ○ AT+XRESET ○ ○ AT+XGPIO ○ ○ Table 16 AT Command List (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 2-35...
  • Page 43: Communication Interface

    So, programmers using SPI interface have to do handle it in their code. This 3.2 SPI section explains how for WizFi210 to operate in SPI mode and how for users to handle in their code.
  • Page 44: Spi Interface Details

    Table 17 Pin description of SPI interface 3.2.2. SPI interface details In case of SPI interface, additional task is required to handle SPI data transfer and SPI Interface of WizFi210 follows as below. Ø Only Motorola mode is supported Ø...
  • Page 45: Host Wake-Up Signal Handling

    3.2.3. Host Wake-Up Signal Handling We name the pin number 23 of WizFi210 as “Host wake-up signal”. Host wake-up signal is ACTIVE HIGH signal. Host processor must give the SPI clock and SPI read operation, as long as host wake-up signal is HIGH.
  • Page 46: Spi Interface Parameters

    One dedicated GPIO signal known as host wake-up is available for data ready indication from Slave WizFi210 to Master Host processor. Master host processor must provide clock as long as host wake-up signal is active. Host processor can make use of GPIO interrupt (edge triggered low-to-high transition) to receive the data from WizFi210.
  • Page 47 AT&W. The profile used in that command must also be set as the power-on profile using AT&Y. This command returns the standard command response to the serial interface with the new SPI configuration (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 3-40...
  • Page 48: Command Mode & Data Mode

    4.1. AT command mode AT command mode is default communication mode between WizFi210 and user’s system. WizFi210 treats all received data from user as AT command. If all received data follows correct command format, WizFi210 returns a reply to user’s system.
  • Page 49: Escape Sequences

    This escape sequence selects the specified Connection ID as the current connection. Use this sequence to send data to a TCP server, TCP client or UDP socket in WizFi210/220. Example: To send user data (e.g. Hello) on CID 1, the format will be: <Esc>S1Hello<Esc>E...
  • Page 50 Example: When WizFi210 sends data (e.g. Hello) on CID 0 with destination IP(192.168.1.1) and destination port number(52), the format will be: <Esc>U0192.168.1.1:52:Hello<Esc>E Table 20 Escape Sequence for sending data in command mode (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 4-43...
  • Page 51 <Esc>U<CID><IP When this command is used, the remote address and Address>:<port>:<data><Esc>E remote port is transmitted. When WizFi210 received data thru an UDP socket, it send it to host with below format. <Esc>U<CID><IP Address>:<port>:<data><Esc>E Example: When WizFi210 receive data (e.g. Hello) thru CID 0, WizFi210/220 transfer it to host as below <Esc>U0192.168.1.1:52:Hello<Esc>E...
  • Page 52 When WizFi210 received data thru an UDP socket under BULK mode, it send it to host with below format. <Esc>y<CID><IP Address> <port>\t<data> Example: When WizFi210 receive data (e.g. Hello) thru CID 0, WizFi210/220 transfer it to host as below <Esc>y0192.168.1.1 52\t0005Hello <Esc>O...
  • Page 53: Using Multi Sockets

    5. Using multi sockets WizFi210/220 supports up to 16 sockets concurrently. Sometimes user needs to use more than one socket simultaneously. If we use WizFi210, we can do it easily. But there is the restriction to use multi sockets with WizFi210.
  • Page 54 <ESC>S0AAAA<ESC>E<ESC>S1BBBB<ESC>E<ESC>S2CCCC<ESC>E<ESC>S3DDDD<ESC>E Figure 4 Command sequence and response for TCP Client multi sockets As we can see, after connections established, we can get some data from peer system following the format of escape sequence. (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 5-47...
  • Page 55: Tcp Server Multi-Connections

    ② <CID 7> socket receives the <TTTTT>. AT+NSTCP=5001 (Sent AT command followed 0x0d) [OK] AT+NSTCP=5002 [OK] [CONNECT 4 6 192.168.3.102 1744] [CONNECT 5 7 192.168.3.102 1751] <ESC>S6SSSSS<ESC>E<ESC>S7TTTTT<ESC>E Figure 5 Commands sequence for using TCP Server sockets (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 5-48...
  • Page 56: Operation Mode

    Figure 6 Example of using commands for Station Mode In order to Set it as Station mode, user should use AT+WM=0. If user has not set WizFi210 as another mode before, user doesn’t need to use this AT+WM=0, because the default is the Station mode.
  • Page 57 However, Limited AP Mode of WizFi210 is useful when the mobile device, that having WiFi capability, directly connects to WizFi210 and communicate with it without any other Access Point. Below is an example to explain the sequence of AT commands to set WizFi210/220 as Limited AP Mode. (Sent AT command followed 0x0d)
  • Page 58: Using Factory Default Provisioning

    If you click the <Reserved Button>(GPIO21 or GPIO10) button twice consecutively, the WizFi210 is restored to factory default setting and changed to <AP & Web mode>. Figure 8 Button corresponding to that pin in WizFi210 Evaluation board The IP address of WizFi210 is shown below.
  • Page 59: Connect To The Wizfi210 (Limited Ap)

    Now, do connect your PC to the WizFi210. Figure 10 Example of APs list In Limited AP mode, WizFi210 has the DHCP server, so you don’t need use the <static IP address>. You can verify the IP address of your PC on DOS command console writing “ipconfig”.
  • Page 60: Connect To The Web Server

    Users can connect to the web server, the default ID and Password are admin and admin respectively. Figure 12 Example of connecting to Web Server on WizFi210 Then you can see the default web page on WizFi210 and you can configure the WizFi210 at the web browser via WiFi, if you need. (WIZnet Co., Ltd.) WizFi210 Programmers’...
  • Page 61 Figure 13 Web page for configuration on WizFi210 (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 7-54...
  • Page 62: Factory Default #2 :

    Connecting to the WizFi210 with ad-hoc mode If you scan the AP, you can see <WizFi2xxXXXXXX> in the ad hoc list. The MAC address of WizFi210 is attached to the position of <XXXXXX>. Now, connect your PC to the WizFi210.
  • Page 63 In ad hoc mode, you need to use Static IP address as below, because WizFi210 can’t allocate it any IP address dynamically. And in most cases, you need to disable the ethernet adapter. (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 7-56...
  • Page 64: Transmitting And Receiving Html Data

    8. Transmitting and Receiving HTML Data There are two method to transmit and receive HTML data. One is using WizFi210 with built-in capabilities, and the other is to have users’ host processor parse received HTML data and make HTML data to send to the peer system under the condition which WizFi210 just operates as communication device, we call this mode “Emulating”.
  • Page 65: Communicating With Secure Web Server Using Https

    Getting Twitter Certificate You have to get twitter certificate using a Web browser in your PC, as WizFi210 doesn’t operate as a real Web browser. You can do this in the same way that you connect to other secure Web 80 is the default port number of normal HTTP server, not HTTPS server.
  • Page 66 Registering Certificate to WizFi210 inside Before using a TLS(SSL) session, users should register the Certificate of the secure Web server, which WizFi210 will connect to, to WizFi210 inside. The command to use for registering Certificate is “AT+TCERTADD”. (WIZnet Co., Ltd.) WizFi210 Programmers’...
  • Page 67: Emulating Http Server Or Http Client

    (Notification message from WizFi210) 8.2. Emulating HTTP Server or HTTP Client If users want to use their system with WizFi210 as HTTP Server or customize their system’s interaction to peer’s web server, they can emulate HTTP server or HTTP client on their host The CID number of a socket connected to mobile.twitter.com...
  • Page 68: Emulating Http Server

    WizFi210 just operates as a communication device, and users’ host processor should process all of things of a real HTTP Server. In this circumstance, users’ host processor have WizFi210 open and listen a socket with 80 or other port number like 8080. Then if any client connects to the WizFi210’s listen port, WizFi210 informs host processor it with a corresponding CID and...
  • Page 69 After all data is finished, Web server will close its current connection. (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 8-62...
  • Page 70: Making And Testing The Environment For Http Server

    8.3. Making and Testing the environment for HTTP Server 8.3.1. Configuring the Environment for Web Server Test In the case of Web Server using WizFi210, You must constitute environment as bellows Associate WizFi210 with AP Associate PC with AP View Web Page on PC Figure 15 Network environment for testing Web server on WizFi210 (WIZnet Co., Ltd.)
  • Page 71: Http Protocol For Web Server Test

    WizFi210 is waiting for TCP connection of PC. PC will send TCP connection packet and request web page data. WizFi210 will apply web page data and close TCP connection. You will view web page on PC Figure 16 Connection flow for test (WIZnet Co., Ltd.)
  • Page 72: Example Of At Commands For Configuring Http Server

    (Response which means executed successfully) Figure 17 Example of commands for Web server on WizFi210 If any client connected to WizFi210 with WizFi210’s IP address and port number 80, a connection is established successfully and a client browser or application device send WizFi210 some html data, then WizFi210 bypasses that data with escape sequence to host processor via serial interface under escape sequence scheme.
  • Page 73 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n Accept-Encoding: gzip,deflate,sdch\r\n Accept-Language: ko-KR,ko;q=0.8,en-US;q=0.6,en=q=0.4\r\n Accept-Charset: windows-949,utf-8;q=0.7,*;q=0.3<ESC>E Figure 18 Example of received data from web browser Users can send HTML data to clients using WizFi210’s escape sequence like below. <ESC>S1 <HTML> <TABLE width=”600” style=”table-layout:fixed” border=1> <TR><img src=”http://wiznet.co.kr/Sub_Modules/images/kr/sub/Overview_01.gif”></TD></TR> <TR><img src=”http://wiznet.co.kr/Admin_Root/UpLoad_Files/ProductImgs/Dtl_1138_20111005131932.jpg”></TR>...
  • Page 74: Using Enterprise Security

    9. Using Enterprise Security 9.1. EAP-TLS In regard to Enterprise mode of WizFi210, Please refer to an Application note in details. This section only introduces WizFi210 can handle the enterprise mode. 9.1.1. Connect to RADIUS Server using WizFi210 Click Start, click Run, type cmd, and then click OK Convert certificate file into the binary file.
  • Page 75 Figure 21 Example of commands for using EAP-TLS (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 9-68...
  • Page 76: Examples

    This is the popular example that user handles WizFi210 for their application. WizFi210 operates as a WiFi Station to associate with another AP to communicate with a peer system, After associating with AP, it makes a TCP client socket and connect to a server socket on the peer system.
  • Page 77 (Sent AT command followed 0x0d) (AT command echoed back by WizFi210) (Response which means executed successfully) [OK] (Sent AT command followed 0x0d, this make echo back be disable) ATE0 (AT command echoed back by WizFi210) ATE0 (Response which means executed successfully)
  • Page 78: Example 2 Of Commands Sequence

    10.1.2. Example 2 of commands sequence Using “AT+WA”, “AT+NAUTO” and “ATA2” (Sent AT command followed 0x0d) (AT command echoed back by WizFi210) (Response which means executed successfully) [OK] (Sent AT command followed 0x0d, this make echo back be disable) ATE0...
  • Page 79: Station Mode, Udp Socket And Auto Connection

    10.2. Station Mode, UDP socket and Auto Connection This is the same exactly with 10.1 except using an UDP socket. To make an UDP socket, you have to use AT+NAUTO=<type>,0,<Dest IP>,<Dest port> (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 10-72...
  • Page 80: Station Mode And Multi Sockets

    (Response) <= At this point, association is done. AT+NCTCP=192.168.3.105,5000 (AT command connecting with a TCP Client Socket) (Notification Message from WizFi210 by issuing a command, AT+XDUM=0) [CONNECT 0] <= At this point, a TCP connection is done. [OK] (AT command connecting with a TCP Client Socket) AT+NCTCP=192.168.3.105,5001...
  • Page 81: Exchanging Data With A Peer System

    [DISCONNECT 0] <= (Response) [OK] (Sent AT command followed 0x0d) AT+NCLOSE=1 (Notification Message by issuing a command, AT+XDUM=0) [DISCONNECT 1] <= [OK] (Response) Figure 26 Example of commands for closing sockets Data Length Data (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide 10-74...
  • Page 82: Limited Ap, Tcp Server And Auto Connection

    AT+BDATA=0) [OK] AT+WD (AT command making disassociation from previous AP association) [OK] (Response) AT+WM=2 (AT command making WizFi210 Operating Mode as LimitedAP mode) [OK] (Response) AT+WAUTH=1 (AT command making WizFi210 Operating Mode as LimitedAP mode) [OK] AT+WWEP1=1234567890 (AT command setting WiFi security.
  • Page 83: Exchanging Data With A Peer System

    Exchanging data with its peer system is the same to 10.1.3. Refer to it. 10.4.3. Closing TCP connection and UDP socket Closing TCP connections and UDP sockets is the same to 10.1.4. Refer to it. (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide...
  • Page 84: Limited Ap And Multi Sockets

    AT+BDATA=0) [OK] AT+WD (AT command making disassociation from previous AP association) [OK] (Response) AT+WM=2 (AT command making WizFi210 Operating Mode as LimitedAP mode) [OK] (Response) AT+WAUTH=1 (AT command making WizFi210 Operating Mode as LimitedAP mode) [OK] AT+WWEP1=1234567890 (AT command setting WiFi security.
  • Page 85: Exchanging Data With A Peer System

    Exchanging data with its peer system is the same to 10.3.2. Refer to it. 10.5.3. Closing TCP connection and UDP socket Closing TCP connections and UDP sockets are the same to 10.3.3. Refer to it. (WIZnet Co., Ltd.) WizFi210 Programmers’ Guide...

Table of Contents