Warning: DOMDocument::loadHTML(): htmlParseStartTag: misplaced tag in Entity, line: 26 in /home/hosting_users/wizwiki/www/wiki/lib/plugins/markdownextra/syntax.php on line 125 Warning: DOMDocument::loadHTML(): htmlParseStartTag: misplaced tag in Entity, line: 26 in /home/hosting_users/wizwiki/www/wiki/lib/plugins/markdownextra/syntax.php on line 107
This chapter explains how to set WizFi250 in order to exchange data with peer system. This picture shows the environment for using Serial to Wi-Fi as example. In this example, WizFi250 is set to the TCP server and peer system is set to the TCP client. And then data is exchanged between WizFi250 and the peer system.
This section explains how to set WizFi250 using web server in order to use serial to Wi-Fi application.
(If you Use the function button, you can launch web server easily.)
Procedure for setting serial to Wi-Fi is explained below.
|Default information of WizFi250 AP Mode|
LED results of WIZFI250:
|WizFi250 TCP/IP Settings guide|
|Modes||AP or Station (connect to AP)|
|Protocol||TCP/UDP (Server / Client)|
|Remote IP||Connecting device's IP address|
|Remote Port||Connecting device's Port|
|Local Port||Module's Port|
This section explains how to connect to AP by using serial command.
The module start by default in command mode. If the user inputs the AT commands below, WizFi250 will be connected to AP by DHCP and run as TCP server.
In this example, the settings of AP will be created as below:
( SSID : WizFiDemoAP, Security : WPA2, Key : 12345678 )
AT (Sent AT command with 0x0d (Hex of Enter button)) [OK] (response meaning successful execution) AT+WSET=0,WizFiDemoAP (AT command for setting WiFi association) [OK] AT+WSEC=0,,12345678 (AT command for setting WiFi security) [OK] AT+WNET=1 (AT command for setting DHCP) [OK] AT+WJOIN (AT command executing AP association) Joining : WizFiDemoAP Successfully joined : WizFiDemoAP [Link-Up Event] IP Addr : 192.168.3.104 Gateway : 192.168.3.1 [OK] AT+SCON=SO,TSN, , ,5000,1 (AT command for setting TCP Server) [OK] [CONNECT 0] (When TCP connection is done, it shows this message)
Now, the green mode LED is on, and data can be exchanged from Serial I/F to connected client and back. This mode is called data mode.
To exit this data mode or to enter into command mode again you need to send a single '+++' string without CR or LF (0x0D, 0x0A) - just the three 0x2B = '+' characters.