WiFi Module ESP8266 AT-Command Test
ทดสอบการใช้งาน ESP 8266 wifi module ด้วย AT-Command
ESP8266 is Serial Port WiFi Module. It is very low cost.
Then we can use for many Application for Home Automation or IOT.
How to Test
You should use AT-Command to Test Module First.
So,you will know how to use At-Command and step to use ( set mode ,connect wifi, make server )
Hardware for test
You must have USB to RS-232 Converter ( I've one but I can't found it )
So,I decide to use Arduino board as USB to RS-232 Converter by remove MCU out form board.
ESP8266 WiFi Module use 3.3 V power supply and logic.
So,I use Arduino Duemilanove Board because it can set 3.3V power supply and logic.
(Then don't need the logic converter )
Or If you use Arduino 5V supply board such as Arduino UNO or other.
You need logic converter.
Wiring Diagram
ESP8266 PCB layout and pin out
Top Layer
Arduino Pin 0 (Rx) to ESP8266 Pin URXD
Arduino Pin 1 (Tx) to ESP8266 Pin UTXD
3.3 V to ESP8266 Pin CH_PD
and VCC 3.3V , GND
For Arduino 3.3V Power Supply and Logic
For Arduino 5V Power Supply and Logic ( Need logic Converter )
Software to Test
We use Arduino IDE and Serial Monitor to test. It 's work fine.
Set your Module Baud rate and Both NL and CR
use "AT" for check Communication
Response "OK"
use "AT+RST" for Software Reset Module
Response "OK"
use "AT+GMR" for check Firmware Version
Response "Firmware Version xxxxxxx"
Response "OK"
use "AT+CWMODE=1" for Set Mode 1 ( Station )
Response "OK"
use "AT+CWLAP" for check WiFi Network Available
Response "Network Detail"
Response "OK"
AT+CWLAP
+CWLAP:(2,"NONGHOI_WIFI",-81,"24:a4:3c:70:ec:ae",1)
+CWLAP:(4,"DADADA",-93,"70:62:b8:2c:29:46",1)
+CWLAP:(0,".@ TRUEWIFI",-82,"00:02:6f:c3:29:10",11)
+CWLAP:(4,"3BB_Ruamluck",-69,"ec:cb:30:b5:15:44",2)
+CWLAP:(2,"true_homewifi_905",-92,"00:04:ed:ec:19:05",2)
+CWLAP:(0,"ESP_999686",-30,"1a:fe:34:99:96:86",11)
+CWLAP:(4,"Home_Control",-42,"64:66:b3:53:1a:c2",11)
+CWLAP:(0,"@TRUEWIFI",-79,"cc:5d:4e:b3:5e:00",3)
+CWLAP:(4,"dlink",-81,"cc:b2:55:92:74:a6",5)
+CWLAP:(3,"KONG",-93,"00:25:86:cf:e6:2e",6)
+CWLAP:(0,".@ TRUEWIFI",-92,"00:02:6f:c3:6e:78",7)
+CWLAP:(0,"EnGeniusA23E70_2",-90,"00:02:6f:c3:6e:79",7)
+CWLAP:(4,"NANZY",-68,"90:f6:52:92:0f:ee",9)
+CWLAP:(0,".@ TRUEWIFI",-82,"00:02:6f:bb:77:8c",11)
+CWLAP:(0,"EnGeniusA23E70_2",-81,"00:02:6f:bb:77:8d",11)
+CWLAP:(0,"EnGeniusA23E70_3",-82,"00:02:6f:bb:77:8e",11)
+CWLAP:(0,"@TRUEWIFI",-93,"00:02:6f:c3:29:0c",11)
OK
Response "OK"
use AT+CIPMUX=1 set to Multi point Mode
Response "OK"
use AT+CIPSERVER=1,port to Start Server
Response "OK"
use AT+CIFSR to check your IP Address
Response "IP Address"
Response "OK"
use AT+CIPCLOSE=0 to close all socket
Now You can use the Server.
My Website
http://softpowergroup.net/
email : info@softpowergroup.net Tel .081-6452400
Google+ https://plus.google.com/+SoftpowergroupNetThailand/
Start Conversation
Tidak ada komentar
Posting Komentar