Wiznet WizFi250 Programmer's Manual
Hide thumbs Also See for WizFi250:

Advertisement

Quick Links

Table of Contents

.........................................................................................................................................................
...........................................................................................................................................
.....................................................................................................................................................
...............................................................................................................................................
............................................................................................................................................
...........................................................................................................................................................
............................................................................................................................................
....................................................................................................................................................
.....................................................................................................................................................
................................................................................................................................................
...............................................................................................................................................
....................................................................................................................................................
.......................................................................................................................................................
2020/11/26 12:13
.......................................................................................................................
...........................................................................................................................................
....................................................................................................................................
............................................................................................................................
....................................................................................................................................
....................................................................................................................
...................................................................................................................................
.................................................................................................................
..................................................................................................................................
.......................................................................................................................................
...................................................................................................................................
.............................................................................................................................
.........................................................................................................................
...................................................................................................................................
......................................................................................................................
.....................................................................................................................................
..............................................................................................................
..................................................................................................................
.....................................................................................................................
..............................................................................................................
.........................................................................................................................
...........................................................................................................
.......................................................................................................
...............................................................................................................................
.....................................................................................................
1/1
................................................................................................
...............................................................
..............................................................
..............................................................
.............................................................
......................................................
.....................................................
......................................................
....................................................
WizFi250 Programmer's Guide
1
1
1
2
2
3
3
14
20
35
41
42
42
43
44
44
45
49
50
52
52
53
54
55
55
56
61
62
62
62
63
64
64
65
66
67
68
69
69
70
71
73
74
75
77
80
80

Advertisement

Table of Contents
loading

Summary of Contents for Wiznet WizFi250

  • Page 1: Table Of Contents

    Method of setting UDP Server and exchanging data in Command Mode ............ AT+SCON ..............................Example of SSL Connection ......................... Example of Multi Socket Connection ......................Air Command mode - WizFi250AirCmd ....................... Examples - WiFi Direct ..........................Appendix ............................... WizFi250 UART Throughput Test Report ..................... 2020/11/26 12:13 WizFi250 Programmer's Guide...
  • Page 2: Wizfi250 Programmer's Guide

    [OK]. Invalid inputs return [ERROR]. The possible responses sent by WizFi250 to the user side are described at Responses. Below is a possible example which users can input. As you can see, WizFi250 return “\r\n” back instead of “\r”, which means user (host system) always handle '\r\n' as a only delimiter.
  • Page 3: Responses

    Input by User AT\r (0x61 0x74 0x0d) AT\r\n[OK]\r\n (0x0d 0x0a 0x5b 0x4f 0x4b 0x5d 0x0d 0x0a) Output from WizFi250 (* “AT\r\n” is Echo back of user input) Responses Responses are listed below. Response Meaning [OK] Command Request Success [ERROR] Command Request Fail...
  • Page 4: Basic Commands

    Basic commands are listed below. Format: Meaning: Terminal Check Check if AT Command Terminal is working. Response: [OK] 2013/09/04 12:14 · jeonggw WiFi Commands Commands related to WiFi are listed below. AT+WJOIN Format: AT+WJOIN Meaning: WiFi Association 2020/11/26 12:13 3/81 WizFi250 Programmer's Guide...
  • Page 5 And in the AP mode, it starts to run as an Access Point. There are 2 Wi-Fi modes in WizFi250, STA mode and SoftAP mode. When users execute AT+WJOIN command, the current Wi-Fi mode works as the one previously selected by user input. It can be selected or checked by AT+WSET and AT+WSEC commands, and it is the only way to handle Wi-Fi mode.
  • Page 6 Meaning: WiFi Configuration <WiFiMode>: WiFi Mode to set (Required) This changes current WiFi mode. Parameter Meaning Set Wi-Fi mode as STA mode Set Wi-Fi mode as AP mode <SSID>: Target/Own SSID (Required, Max: 32 Character) 2020/11/26 12:13 5/81 WizFi250 Programmer's Guide...
  • Page 7 In AP mode, its own Channel to run (Default: 6) * There are 2 Wi-Fi modes in WizFi250, STA mode and SoftAP mode. When users execute AT+WJOIN command, it works as Wi-Fi mode previously selected by the user. It can be selected or checked by AT+WSET and AT+WSEC commands, and it is the only way to handle Wi-Fi mode.
  • Page 8 In case of WEP mode and 5 bytes key, you should input the key with HEX type. AT+WSEC=0,,12345(X) AT+WSEC=0,,3132333435(O) In case of OPEN mode, you should input the 8 bytes dummy string. Then WizFi250 will ignore the dummy key in OPEN mode. AT+WSEC=0,,(X)
  • Page 9 They can be used later when set as Static(DHCP Off) without inputting these parameters. * In AP mode, DHCP Server will always run despite DHCP option, and Gateway option will not be used, So both options will be ignored. 2020/11/26 12:13 8/81 WizFi250 Programmer's Guide...
  • Page 10 Note that <IP>,<SN>,<GW> address of response are not actual addresses, but addresses stored in the memory. So when DHCP is on, it usually different from actual addresses. Response: <DHCP>,<IP>,<SN>,<GW> [OK] AT+WSTAT Format: AT+WSTAT Meaning: Get Current WiFi Status Response: IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm) [OK] AT+WREG Format: AT+WREG=<Country> 2020/11/26 12:13 9/81 WizFi250 Programmer's Guide...
  • Page 11 Join with an AP through WPS method <Mode>: WPS Mode (Required) Parameter Meaning WPS_PBC_MODE WPS_PIN_MODE <PinNum>: Pin Number (Pin Mode: Required, PBC Mode: N/A) * The maximum pin number letter is 8. Examples) AT+WWPS=0 2020/11/26 12:13 10/81 WizFi250 Programmer's Guide...
  • Page 12 You had better not use this command unless it's absolutely necessary. <Mode>: WiFi Antenna Type (Required) Parameter Meaning u.FL Antenna PCB Antenna Auto Selection Response: [OK] Format: AT+WANT=? Meaning: Get Current WiFi Antenna Type Response: <Antenna Type> [OK] AT+WP2P_START Format: 2020/11/26 12:13 11/81 WizFi250 Programmer's Guide...
  • Page 13 STA MAC: CE:52:AF:C6:CF:B5 [OK] AT+WP2P_STOP Format: AT+WP2P_STOP Meaning: Stop WiFi Direct Response: [OK] AT+WP2P_PEERLIST Format: AT+WP2P_PEERLIST Meaning: Get WiFi Direct peer list Response: P2P Peers: 0: 'SHV-E250S' on channel 1 [OK] AT+WP2P_INVITE Format: AT+WP2P_INVITE=<Peer ID> 2020/11/26 12:13 12/81 WizFi250 Programmer's Guide...
  • Page 14 <time>: try to ping (to gateway) each time. 10 ~ 86400(required, unit:sec) <ping try>: count of ping. 5 ~ 20(required, unit:number of times) <ping error>: WizFi250 will be disassociated if ping timeout is more than this. 1 ~ 20(required, unit:number of times)
  • Page 15: Network Commands

    * AS SERVICE: Registers its information to the profile. When WiFi Joined, socket open/connect will be performed automatically. If you want to use this after reset, It should be saved by using AT+MPROF=S <SocketType>: Socket protocol to use (Required) Parameter Meaning TCP Server Normal 2020/11/26 12:13 14/81 WizFi250 Programmer's Guide...
  • Page 16 <DataMode>: Mode to run (Optional, default: 0) Parameter Meaning Open as Command mode Open as Data mode * About Command/Data mode, refer to Command mode & Data mode Examples) AT+SCON=O,TSN,,,5000,0 AT+SCON=S,UCN,192.168.0.10,12345,5000,1 (Profile must be saved) Response: [OK] Format: 2020/11/26 12:13 15/81 WizFi250 Programmer's Guide...
  • Page 17 <SocketID>: Socket ID (Required) Parameter Meaning 0 ~ 7 The socket ID to close All the opened sockets * Opened socket information can be found by using '?' option. Examples) AT+SMGMT=5 AT+SMGMT=ALL Response: [OK] Format: AT+SMGMT=? 2020/11/26 12:13 16/81 WizFi250 Programmer's Guide...
  • Page 18 <Timeout >: Set timeout value (milliseconds unit) (Optional) If the transmission takes time more time than timeout value, it will fail and return error response. Default value is 10s + (100s / 1 MB) 2020/11/26 12:13 17/81 WizFi250 Programmer's Guide...
  • Page 19 This means ASCII code “hello” was received from 192.168.0.216:59834 by socket ID 0, and its length was 5. You can change this format to suit your system through this command. Factory default option is “111111111,7B,2C,7D,0D,0A” <Format>: Decide each of header items to use. (Required) 2020/11/26 12:13 18/81 WizFi250 Programmer's Guide...
  • Page 20 < End>: Header End Character (Required) < Cls1>: Data End Character 1/2 (Required) < Cls2>: Data End Character 2/2 (Required) Examples) AT+SFORM=111111111,7B,2C,7D,0D,0A AT+SFORM=101100110,5B,2F,5D,0D,00 Response: [OK] Format: AT+SFORM=? Meaning: Get Current Data Receive Header Form Response: <Format>,<Start>,<Delim>,<End>,<Cls1>,<Cls2> [OK] AT+SOPT1 Format: 2020/11/26 12:13 19/81 WizFi250 Programmer's Guide...
  • Page 21: Management Commands

    <Action>: The action to perform (Required) Parameter Meaning Get saved profile Get current profile Load profile Save profile * There is no '?' option at this command. Examples) 2020/11/26 12:13 20/81 WizFi250 Programmer's Guide...
  • Page 22 Meaning: Perform Factory Reset Factory Reset means that all of environmental variables return back to the default state. (You can check that by using AT+MPROF command) Response: [OK] AT+MRESET Format: AT+MRESET Meaning: Perform System Reset 2020/11/26 12:13 21/81 WizFi250 Programmer's Guide...
  • Page 23 <Level>: Message Print Level (Required) Parameter Meaning Not Print Responses Print Responses, Events (Default) Print Responses, Events, Debug Logs Examples) AT+MMSG=2 Response: [OK] Format: AT+MMSG=? Meaning: Get Current Message Print Level Response: <Level> [OK] 2020/11/26 12:13 22/81 WizFi250 Programmer's Guide...
  • Page 24 AT+MMAC=<MAC> Meaning: Set MAC Address <MAC>: MAC Address (separated by colon) (Required) Examples) AT+MMAC=00:08:DC:11:22:33 Response: [OK] Format: AT+MMAC=? Meaning: Get Current MAC Address Response: <MAC> [OK] AT+MINFO Format: AT+MINFO Meaning: Get System Information Response: 2020/11/26 12:13 23/81 WizFi250 Programmer's Guide...
  • Page 25 Host MCU handles AT Command control. <Action>: Echo Mode (Required) Parameter Meaning Echo Off Echo On (Default) Examples) AT+MECHO=0 Response: [OK] Format: AT+MECHO=? Meaning: Get Current Echo Mode Response: <Mode> [OK] 2020/11/26 12:13 24/81 WizFi250 Programmer's Guide...
  • Page 26 Parameter Meaning MCU Power Save Mode Disable MCU Power Save Mode Enable * while using MCU Power Save Mode, WizFi250 cannot use serial communication. <Timeout> : MCU Power Save Timeout value (Required) Valid Range : 10 ~ 3600000 (unit:ms) Response:...
  • Page 27 Wi-Fi Power Save Mode Enable Enables power save mode while attempting to maximize throughput * To using Wi-Fi Power Save Mode, WizFi250 has to connect to Access Point. And WizFi250 can only use this mode in station mode. <Delay > : Return to Sleep Delay If it is set with a bigger value, the performance will improve but the power consumption will rise.
  • Page 28 <New ID> : New ID which you want to change (Required) Max length of New ID : 20 bytes <New P/W> : New Password which you want to change (Required) Max length of New Password : 20 bytes Examples) AT+MCWUI=admin,admin,newid,newpassword Response: [OK] 2020/11/26 12:13 27/81 WizFi250 Programmer's Guide...
  • Page 29 9600 bps 14400 14400 bps 19200 19200 bps 38400 38400 bps 57600 57600 bps 115200 115200 bps 230400 230400 bps 460800 460800 bps 921600 921600 bps 1843200 1843200 bps <Parity>: Set the Parity-Bit type. (Required) 2020/11/26 12:13 28/81 WizFi250 Programmer's Guide...
  • Page 30 0.5 bits 1 bits 1.5 bits 2 bits <FlowCon>: Set the Flow-Control method. (Required) Parameter Meaning None Hardware Flow Control Examples) AT+USET=115200,N,8,1,N AT+USET=921600,N,8,2,HW Response: [OK] Format: AT+USET=? Meaning: Get Current UART Setting Response: <Baudrate>,<Parity>,<WordLen>,<StopBit>,<FlowCon> [OK] 2020/11/26 12:13 29/81 WizFi250 Programmer's Guide...
  • Page 31 If <Interface> set 0, WizFi250 Will set the interface it received first. For example, If MCU sends UART signal to WizFi250, WizFi250 will be set as UART interface. On the other hand, If MCU send SPI signal to WizFi250, WizFi250 will be set as SPI interface.
  • Page 32 <Interface>,<SPI Option> [OK] AT+MCSTGPIO Format: AT+MCSTGPIO Meaning: TBD Response: [OK] AT+MCUSTOM Format: AT+MCUSTOM=<custom code> Meaning: Set to customized settings by request of specific customers. Examples) Default custom code is WIZNET AT+MCUSTOM=WIZNET Response: [OK] Format: 2020/11/26 12:13 31/81 WizFi250 Programmer's Guide...
  • Page 33 TCP/UDP Client, a random port number will be selected. If it was a TCP/UDP Server, it will return an error message. <Option>: Reserved (Required) Examples) AT+MAIRCMD=O,T,50001,0 AT+MAIRCMD=S,U,50001,0 AT+MAIRCMD=? Response: 2020/11/26 12:13 32/81 WizFi250 Programmer's Guide...
  • Page 34 AT+MEVTFORM Format: AT+MEVTFORM=<format> Meaning: Define Event Message Form It is able to control format and printing status of WizFi250 event messages. Uses 10 Parameters and set event message as 0,1,2 for each relevant one 2020/11/26 12:13 33/81 WizFi250 Programmer's Guide...
  • Page 35 <Format>: Event Message Format (Required) 0: No display 1: Full Message 2: Short Message AT+MEVTFORM=abcdefghij 0(No display) 1(Full Message,Default) 2(Short Message) WizFi250 Version 1.0.3.6 (WIZnet Co.Ltd)\r\n \r\n[0]\r\n \r\n[CONNECT %x]\r\n \r\n[1]\r\n \r\n[DISCONNECT %x]\r\n \r\n[2]\r\n \r\n[Link-Up Event]\r\n \r\n[3]\r\n \r\n[Link-Down Event]\r\n \r\n[4]\r\n \r\n[Reset Event]\r\n...
  • Page 36: Function Commands

    Ping Reply : xxx ms [OK] AT+FDNS Format: AT+FDNS=<HostName>,<Timeout> Meaning: DNS Query <HostName>: The domain name to search (Required) <Timeout>: Maximum Delay (milliseconds unit) (Required) Valid Range: 1,000 ~ 1,000,000 (unit:ms)(Recommend: 1000) Examples) AT+FDNS=www.google.com,1000 2020/11/26 12:13 35/81 WizFi250 Programmer's Guide...
  • Page 37 Web server start when enter AT+FWEBS command after Wi-Fi is joined. * If <Action> parameter is 1 and Wi-Fi is joined, WizFi250 starts web server immediately without regard for <Type> parameter. If Wi-Fi is not joined, web server is started according to <Type> parameter. If you want to use <Type>...
  • Page 38 Set GPIO value when <mode> is 1 GPIO Initialize <gpio_number>: Available GPIO number (Required) Return value Meaning GPIO 1 GPIO 5 GPIO 6 GPIO 7 GPIO 8 <config_value>: Current GPIO Configuration Value (It can be used when action is 2) 2020/11/26 12:13 37/81 WizFi250 Programmer's Guide...
  • Page 39 <gpio_value>: Current GPIO Value (It can be used when action is 1) Return value Meaning High Examples) AT+FGPIO=2,6,3 AT+FGPIO=0,1 AT+FGPIO=1,5,1 Response: If <action> is 0 <gpio_value> [OK] AT+FGPIO=0,1 [OK] If <action> is 1 or 2 [OK] Format: AT+FGPIO=? Meaning: Get Current GPIO Setting 2020/11/26 12:13 38/81 WizFi250 Programmer's Guide...
  • Page 40 6,8 options must be set as service mode(AT+SCON=S) for Auto Reconnection. Profile(AT+MPROF=S) has to be saved after AT+FSOCK This function only exist later vision of F/W 1.0.4.1. This is for extended options of Socket. It will be added continuously. 2020/11/26 12:13 39/81 WizFi250 Programmer's Guide...
  • Page 41 Meaning TCP Send error timeout (value : 2000~20000ms) Recreates Socket then attempts Auto-Reconnection after <Value> seconds (value: 10~1000) Automatically resets WizFi250 module. when there is no socket connected (value: 5~1000) <Value> : Value of extended option (Required) Examples) AT+FSOCK=1,5000 AT+FSOCK=6,10...
  • Page 42: Command Mode & Data Mode

    Through AT Commands, users can do 'WiFi Configuration', 'Sending/Receiving Data', 'Managing System', and so on. WizFi250 treats all received data from users as AT command. If all received data follows the correct command format, WizFi250 processes it and returns a proper response to user.
  • Page 43: I/O Pin

    Indicates that there is data to send through SPI SPI_DATA_ READY When WizFi250 has data to send in the SPI mode, this will be changed to high state. This pin can be used for awakening host MCU. 2020/11/26 12:13 42/81...
  • Page 44: Function Pin Usage

    Refer to time diagram below. During running state, tie it to low state and release it for thrice. Factory Default Refer to time diagram below. Time sequence graph is as below. Variable 100 ms 200 ms 2020/11/26 12:13 43/81 WizFi250 Programmer's Guide...
  • Page 45: How To Use Web Configuration

    How to Use Web Configuration Main Page This picture shows the main page of WizFi250’s web server. In order to enter this page, WizFi250 should operate as SoftAP mode or associate to target AP as STA mode. The web server is launched automatically when joined to target AP or operate SoftAP. If you do not want to operate the web server, you can use <AT+FWEBS>...
  • Page 46: Serial To Wi-Fi Setting

    If you want to use AP Mode and TCP Server, you can select parameter as showm on picture. If you want to use TCP Server or UDP Server, you don't need to input <Remote IP> and <Remote Port>. 2020/11/26 12:13 45/81 WizFi250 Programmer's Guide...
  • Page 47 If WizFi250 was set successfully, you willsee the success message as below. And after checking success result, click the <Next_Step> button in order to move on to the next page. If wrong value was inputted, WizFi250 will return fail message like below.
  • Page 48 If the user seta Station Mode on this web page, the user can select protocol and other information as Remote IP, Remote Port and Local Port. In this example, we will explain how to set Station Mode and TCP Client. 2020/11/26 12:13 47/81 WizFi250 Programmer's Guide...
  • Page 49 Enter a Password and then Select the <Join> button you want to associate to SSID. If you can see “Device Started. Web server and access point stopped. See UART for further information.” message in the web browser and “Successfully joined” message in the serial terminal, WizFi250 is associated to AP successfully.
  • Page 50: Wps(Push Button)

    If you click the next_step button after finishing the setting, the web page will be shown as below. If you click the <Go> button on this web page, WizFi250 will scan the Access-Point in order to connect to it. The Access-Point must be set with <WPS-PBC>...
  • Page 51: Wps(Pin)

    This picture shows the log message stating that WizFi250 finished the WPS function successfully. 2013/09/04 13:14 · jeonggw WPS(PIN) This section explains how to set the protocol as TCP or UDP and then associate it to the Access Point by WPS method.
  • Page 52 If you click the next_step button after finishing the setting, the web page will be shown as below. If you enter PIN number and click <Go> button, WizFi250 will scan the Access-Point in order to connect to it. Access-Point must be set as <WPS-PIN> function as below. ( In this example, we used LINKSYS Access-Point ) If the WPS-PIN function is successful, you will see a serial log message as on this picture.
  • Page 53: Change To Ota Mode

    If you select “Change to OTA Mode” icon, you will see the web page as on this picture. If you click the <Change to OTA mode> button on this page, WizFi250 will run in OTA Mode. For detailed information about OTA Mode, refer to Upload newest firmware in OTA mode...
  • Page 54: Serial Setting

    On this page, you can set gpio mode and gpio value of WizFi250. * When set as output mode… mode, WizFi250 will set gpio config value to OUTPUT_PUSH_PULL. * When set as input mode, WizFi250 will set gpio config value to INPUT_HIGH_IMPEDANCE.
  • Page 55: User Information Setting

    On this page, you can change user id and user password. For changing user information, you have to input current id and password. If you select <Setting> button after input value, WizFi250 will be restarted in order to change user information. For detailed information about it, refer to AT+MCWUI.
  • Page 56: How To Upgrade Firmware

    4. Check the log that shows up as below. After 4 seconds, download will be started. First, write the DCT, then write the WizFi250 application firmware. If it is a success step1 message and step2 message. ( execute “02-A. Flash Write(app) if step2 fails )
  • Page 57: Wi-Fi Ota(Over The Air) - App

    ☞ If you want to change firmware binary file, just copy it to 'AppFWFile' folder. 2013/09/04 13:16 · jeonggw Wi-Fi OTA(Over the Air) - APP Start OTA mode using AT+FOTA Command 1. Turn on OTA mode by entering the command as below. AT+FOTA [OK] 2020/11/26 12:13 56/81 WizFi250 Programmer's Guide...
  • Page 58 IP Addr : 192.168.0.1 Gateway : 192.168.0.1 [OK] 2. Connect your PC Wi-Fi to the Wizfi250, open the web browser and enter the IP address of WizFi250 which you can find by using 'AT+WSTAT' 2020/11/26 12:13 57/81 WizFi250 Programmer's Guide...
  • Page 59 3. Click the 'Over the Air' icon 2020/11/26 12:13 58/81 WizFi250 Programmer's Guide...
  • Page 60 4. Click the 'Change to OTA mode' button, then WizFi250 will enter OTA mode. Start OTA mode using FUNCTION pin 1. If entered the OTA Mode using FUNCTION pin, you will see messages as below.(Refer to FUNCTION Pin Usage) 2020/11/26 12:13...
  • Page 61 Upload newest firmware in OTA mode 1. Now you can connect to the WizFi250 OTA Access Point from your PC. Connect your PC WLAN to the AP which the name WIZFI_OTA_(MAC-Address). 2. Open the WEB browser and go to 'wizfi250.wiznet.com'. (If the browser failed to find the page, disconnect the other network connections and try again).
  • Page 62: Firmware Recovery

    1. Input low signal to BOOT pin and FUNCTION pin. 2. Reboot WizFi250 3. If WizFi250 starts the firmware procedure you will see a serial message as below. If this procedure succeeds, WizFi250 will be reset to factory default firmware.
  • Page 63: Examples - Association & Disassociation

    Station Mode using WPA2 Static IP This section explains how to connect to AP using WizFi250 with static IP address. In this example, target AP information is as below. ( SSID : WizFiDemoAP, Security : WPA2, Key : 12345678 )
  • Page 64: Ap Mode Using Wpa2 Static Ip

    AP Mode using WPA2 Static IP This section explains how to set AP mode using WizFi250. In AP mode, WizFi250 have to set static IP address. (AT+WNET=0,xxx,xxx,xxx) After setting AP mode, WizFi250 will operate DHCP Server. Thus, when smart phone or other devices connect to WizFi250, WizFi250 will give IP address to connected device.
  • Page 65: Examples - Data Communication

    If you enter <O> or <SO> value to <Open Type> parameter, WizFi250 will try to connect to TCP Server immediately. But when using <S> value, WizFi250 will try to connect to TCP Server after reboot and you have to set <SocketType>,<RemoteIP>,<RemotePort> and <LocalPort> as below In order to set WizFi250 to data mode, you have to enter 1 value to <Data Mode>...
  • Page 66: Method Of Setting Tcp Server And Exchanging Data In Data Mode

    Exchanging data with a peer system If WizFi250 successfully connects to a peer system, WizFi250 will print [CONNECT(CID)] message and enter data mode. In data mode, WizFi250 can send serial data to peer system and receive network data from peer system without other translation.
  • Page 67: Method Of Setting Udp Client And Exchanging Data In Data Mode

    Exchanging data with a peer system. Socket Close Closing socket connection is the same as previous Socket Close. Checking Socket Status Checking socket status is the same as previous Checking Socket Status. 2013/09/04 13:21 · jeonggw 2020/11/26 12:13 66/81 WizFi250 Programmer's Guide...
  • Page 68: Method Of Setting Udp Server And Exchanging Data In Data Mode

    But before peer system is connected to WizFi250, WizFi250 does not send data to peer system because WizFi250 does not know its information. Thus peer system must send data to WizFi250 in order to know peer system’s information like below.
  • Page 69: Method Of Setting Tcp Client And Exchanging Data In Command Mode

    If WizFi250 connects to peer system successfully, WizFi250 will print [CONNECT(CID)] message. At this time, WizFi250 is in command mode. In order to send data to peer system, you have to use <AT+SSEND=CID, Destination IP, Destination Port, Data Length> command. If you input serial command like <Data Length> , WizFi250 will send serial data to peer system.
  • Page 70: Method Of Setting Tcp Server And Exchanging Data In Command Mode

    Exchanging data with its peer system is the same with previous Exchanging data with a peer system. Socket Close Closing socket connection is the same with previous Socket Close. 2013/09/04 13:21 · jeonggw Method of setting UDP Client and exchanging data in Command Mode 2020/11/26 12:13 69/81 WizFi250 Programmer's Guide...
  • Page 71: Method Of Setting Udp Server And Exchanging Data In Command Mode

    Below is an example for setting UDP Server on Command Mode. For detailed information about <AT+SCON> command, refer to AT+SCON Socket Open. Mode : Command Mode, UDP Server Local Port : 5000 AP Association ( Refer to Association & Disassociation Example ) AT+SCON=O,USN, , ,5000,0 [OK] [CONNECT 0] 2020/11/26 12:13 70/81 WizFi250 Programmer's Guide...
  • Page 72: At+Scon

    Open at Once Open at Once & Register as a Service <S> : Register as a Service When using this parameter, WizFi250 will try to connect to peer system using TCP or UDP when power is on. AT+WLEAVE [OK] AT+WSET=0,WizFiDemoAP...
  • Page 73 <O> : Open at Once When using this parameter, WizFi250 will try to connect to peer system using TCP or UDP when enter the <AT+SCON> command. For using this parameter, WizFi250 should be already associated with AP or running AP mode.
  • Page 74: Example Of Ssl Connection

    This section explains how to connect to and communicate with SSL server. To connect to SSL server, use <TCS(TCP Client SSL)> / <TSS(TCP Server SSL)> parameter of <AT+SCON> command. ( When using UDP, WizFi250 cannot use SSL Connection. ) In order to use SSL connection, you can use AT command as below. AT+SCON=SO,TCS,199.59.148.212,443,5000,0...
  • Page 75: Example Of Multi Socket Connection

    Example of Multi Socket Connection This section explains how to use <Multi Socket Connection> function. WizFi250 can use max 8 TCP or UDP sockets. In order to use <Multi Socket Connection> function, you can use AT command as below. In this example, the peer system was running a loop back program.
  • Page 76: Air Command Mode - Wizfi250Aircmd

    Air Command mode - WizFi250AirCmd This section explains how to operate Air-command-mode of WizFi250. With this Air-command-mode included in the WizFi250, you can issue AT commands to the module via WiFi, while the WizFi250 is in the TCP server or UDP server operation mode.
  • Page 77 IP Addr : 192.168.11.1 Gateway : 192.168.11.1 [OK] AT+MAIRCMD=O,T,50001,0 [OK] Now, TCP Client can connect to the WizFi250 and issue the AT commands via WiFi as below. (TCP Client TX) WizFi250AirCmd:AT+MINFO\r (24 Byte) (RX) FW version/HW version 1.0.1.8/WizFi250 Rev 1.0...
  • Page 78: Examples - Wifi Direct

    Examples - WiFi Direct This section explains how to connect to smartphone using WizFi250 with <WiFi Direct>. In this example, target smartphone information is as below. ( smartphone model : Samsung Galaxy Note 2, Android Version : 4.3, Model Number : SHV-E250S ) Basic Information <WiFi Direct>...
  • Page 79 [Link-Up Event] IP Addr : 192.168.49.219 Gateway : 192.168.49.1 As above, ip address of WizFi250 is <192.168.49.219> and that of smartphone is <192.168.49.1> Data Communication After the connection, you can issue <AT+SCON> command for for data communication. at+scon=o,tsn,,,4000,0 [OK] And, I just used a general TCP client App in the smartphone for the test.
  • Page 80 Now, WizFi250 and smartphone can communicate each other via <WiFi Direct>. at+scon=o,tsn,,,4000,0 [OK] [CONNECT 0] {0,192.168.49.1,47160,19}Hello WizFi250..{0,192.168.49.1,47160,19}Hello WizFi250..2014/05/12 11:04 · ssekim 2020/11/26 12:13 79/81 WizFi250 Programmer's Guide...
  • Page 81: Appendix

    Appendix WizFi250 UART Throughput Test Report Test Environment 2020/11/26 12:13 80/81 WizFi250 Programmer's Guide...
  • Page 82 115200 1m 35s 1m 36s Command Mode : To sending data, WizFi250 have to use AT+SSEND command. Data Mode : Data Mode is the mode which passes data of application layers to peer-device directly, without commands. For more information, Refer to Command mode &...

Table of Contents