With this model.
Each pin function: Come to the information provided by the manufacturer
GPIO0 default is operating mode (no wiring). If the next low level is the download mode (to the module brush firmware!!) ), so you can not wire, of course, can also connect high level.
The CH_PD must be high when the connection is started anyway. The rest can not be answered.
If your WiFi signal is displayed on your computer's WiFi , the module is already working.
Note The default baud rate is 115200!!!!!! Set up the serial debugging assistant baud rate, and then paste a picture bar to prevent the parents forget.
Remember to enter various at commands, tick "send New line" in the internal information) and then output ready! representative system is
System startup, the system will output a bunch of garbled (in fact, not garbled, the system starts after the output of a regular
For the following operation--first to wake up, if the connection is not connected to the WiFi problem, you can send At+restore restore factory settings or brush firmware
First Look at the moon in the Qin dynasty;;;;; finally done, Android client software
, (Remember to add permissions, network, and WiFi.) Say to yourself)
To talk about EPS8266 's at command.
Let's start with the EPS8266. Two (three) mode of operation: Station mode, AP mode and AP-station mode; You should know that routers, in addition to normal use (AP mode), can also receive signals from other routers (station mode). Then send it back (AP-station mode). How do you use these two (three) modes of work?
Let's talk about AP mode communication: Set his mode to AP mode (equivalent to a normal router)
At+cwmode=? Response returns which modes are currently supported
At+cwmode? What mode of response is currently in
at+cwmode=2 1-station mode, 2-ap mode, 3-AP and station mode
Step 1 Send at+cwmode=2 set to AP Mode
In this mode, the module emits a wireless WiFi signal. Connect it with your computer
Step 2 send at+rst Restart module to make at+cwmode=2 mode effective
Step 3 send at+cipmux=1 start multiple connections
Why to start the multi-connection mode, which means to allow multiple clients to connect, of course, the module allows up to 5 client connections (each client corresponds to an ID number, 0--4). Also must be set, or the server will be configured to error
Then there is how to communicate with it. Of course is the network communication, namely TCP/UDP communication two kinds. {udp--is divided into the sending and receiving end, for non-connected communication (fast), only to the specified IP (each computer has its own IP address, to the specified IP address to send data, data sent to the designated computer ) port (I send the data to the computer, which program in the computer receives it.) Do not know the parents know, in fact, every network software has its own communication port, such as QQ, cool dog music download port and so on. Now you know, send data to the specified IP address and the specified port to be sent to the specified program on the specified computer. Whether you receive it or not, just send it.
{tcp--is divided into servers and clients, and UDP is different from the two sides to establish a normal connection, to communicate, each communication will detect the connection is not normal, (reliable communication, slower than UDP)}
Module as Server
Step 4 send at+cipserver=1,8080 Open Server mode, port number 8080
Turn on your computer's network debugging assistant (don't forget to connect it to the wireless network)
Yes, the remote host address is 192.168.4.1.
You can send AT+CIFSR instructions to see the module's own IP address.
Click Connect
Then I use my mobile phone client to connect (the phone connected to its wireless network)
Then the message is sent (the client is sent to the server)
Then the message is sent (the server is sent to the client)
Remove send new line click to send
Client receives
If you go to your phone,
Module as a client,PC as a server, the most interesting comes
Module as client we'll start over,
1, or set the operating mode of the module for ap mode at+cwmode=2
2, reset the at+rst .
3, send at+cipmux=0 to start a single connection, first get a single connection after making more connections, more connections more interesting, want to know slowly look down
4,at+cipstart= "TCP", "192.168.4.2", 8080
TCP description is TCP connection, if write udp is UDP connection
192.168.4.2 connected IP address, computer IP, port number 8080
Then we can communicate.
The send instruction is at+cipsend=x on a single connection, x is the number of bytes sent
(Think of a word, much less complement,,,,,,)
See Multi-connection (first remind a module can do four-way connection)
1, or set the operating mode of the module for ap mode at+cwmode=2
2, reset the at+rst .
3, send at+cipmux=1 to start multiple connections
4,at+cipstart=0, "TCP", "192.168.4.2", 8080
5, at+cipsend=0,20
6, remove the carriage and hit something.
7, send
and then send
At+cipstart=1, "TCP", "192.168.4.2", 8080
at+cipstart=2, "TCP", "192.168.4.2", 8080
At+cipstart=3, "TCP", "192.168.4.2", 8080
at+cipstart=4, "TCP", "192.168.4.2", 8080
are connected to the!!!!!!.
5, at+cipsend=1,20
6, remove the carriage and hit something.
7, send
5, at+cipsend=2,20
6, remove the carriage and hit something.
7, send
5, at+cipsend=3,20
6, remove the carriage and hit something.
7, send
5, at+cipsend=4,20
6, remove the carriage and hit something.
7, send
Then use the network debugging assistant to send information to the module to try
Well the AP mode is talking so much, the station mode has
Station mode differs from AP mode in that station mode requires that the module be connected to WiFi on the home router. The rest is the same!
Let the module in station mode to do the server, and then communicate with the computer (to a WiFi, the computer and the module connected to the same WiFi signal)
1, send at+cwmode=1 set to station mode
2,at+rst Restart Effective
3, connect home routing at+cwjap= "Tp-link_a52", "1234567890"
Yes, send At+cwlap can query the wifi signal around.
Yes, send At+cwjap to see if the WiFi is really connected .
4,at+cipmux=1 start multi-Connection
5,at+cipserver=1,8080 Open the server port to 8080
6,AT+CIFSR See how much IP you have in your module now , as long as the module is connected to the network will be reassigned IP address. This is also the network assistant inside the remote host column to fill in the IP address
Communication what is not much to say.
Using modules as a client
1 Connecting the router at+cwjap= "Tp-link_a52", "1234567890"
2 At+cipmux=0 Single Connection
3 at+cipstart= "TCP", "192.168.1.101", 8080
The next is to send the data, if there is no connection to shut down the computer firewall
Multiple connections don't show up,
At+cipstart=0, "TCP", "192.168.1.101", 8080 or
At+cipstart=1, "TCP", "192.168.1.101", 8080 or
at+cipstart=2, "TCP", "192.168.1.101", 8080 or
At+cipstart=3, "TCP", "192.168.1.101", 8080 or
at+cipstart=4, "TCP", "192.168.1.101", 8080 or
Send data
at+cipsend=0,20 or
at+cipsend=1,20 or
at+cipsend=2,20 or
at+cipsend=3,20 or
at+cipsend=4,20
It should be about the same ...
ESP8266 use of the detailed