Vous êtes sur la page 1sur 4

11/4/2015

ESP8266ElectroDragon

ESP8266
FromElectroDragon
(RedirectedfromWi07c)
Share

Contents
1Modulewiring
1.1ModulePinDescription
2SetupVerification
3Firsttimeuseguide
3.1Stepsandnote
3.2Sockettestrunningresult
3.3Note
4Documents

Modulewiring

Thepindefinitionof
Wi0701

useastandalone
battery,wifispot
ESP****shouldbe
abletobefoundby
cellphonewifi

UsewithaFTDI
FT232RLUSBTTL
board(onlyconnect
greenwireforflashing
mode)

Usewithanothertype
ofFTDIFT232RL
USBTTLboard

UseFT232RLcansupplyenoughpower,mustbegeniusICofcourse
Swaptheuartpinsifnodatashowuponthemonitor
Therearetwoledsontheboard,oneispowerled(RED),anotheroneisstatusLED(BLUE),when
powerup,pwrledkeepsonandstatusledwillblinkonce.
baudratemayworkat9600(seemsthelatestcorrectone),115200or57600

ModulePinDescription
Normalmode:Normalbootfromflash,normalworkingmode
Flashmode:Firmwareflashmode

http://www.electrodragon.com/w/Wi07c

1/4

11/4/2015

ESP8266ElectroDragon

Pin

Description

VCC,
GND*

powersupply,betteruseastandalone,andsharegroundwithuartport

TXD,
RXD**

uartinterface

RST

RestartonlowTTL

CH_PD

ChipselectonhighTTL,shouldbesetforbothmode

GPIO0

settolowTTLforflashmode

GPIO15

shouldbelowTTLonstart

GPIO2

shouldbehighTTLonstart

LEDs

Redkeepsconstantsontoshowthepowerstatus,andBlueformodulestatus,it'sflashing
oncewhenmoduleboot

SetupVerification
checktwoLEDSstatuswhenbootup,ifthisisnotworking,doublecheckyourwiringfirstthen
continue,don'tforgetCHPDtoVCC
checkifyourdevices(phone)canfindawifispotnamedlike"ESP_98529F"orsimilar,thelater
numberpartisthemacID,ifyoucanseethiswifispot,itmeansyourmodulebootupsucessfully
Don'tforgettoconnectGPIO15toGNDifyouareusingtheSMDmodel
Optional:swapRXandTXpinsifyoucannotgetATcommandsresponse
Optional:Tick"newline"optiononSSCOM32serialportmonitortool
Optional:Trybaudrate9600or115200normallyshouldbethesetwo,oldversionis115200

"ESP_990B15"isthe
modulewifispot

Seethefinal"ready"
whenbootup
successfully

Firsttimeuseguide
Stepsandnote
AT+RSTrestartthemodule,receivedsomestrangedata,and"ready"
AT+CWMODe=3changetheworkingmodeto3,AP+STA,onlyusethemostversatilemode3
(AT+RSTmaybenecessarywhenthisisdone.)
JoinRouter
http://www.electrodragon.com/w/Wi07c

2/4

11/4/2015

ESP8266ElectroDragon

AT+CWLAPsearchavailablewifispot
AT+CWJAP=youssid,passwordjoinmymercuryrouterspot
AT+CWJAP=?checkifconnectedsuccessfully,oruseAT+CWJAP?
TCPClient
AT+CIPMUX=1turnonmultipleconnection
AT+CIPSTART=4,"TCP","192,168.1.104",9999connecttoremoteTCPserver192.168.1.104
(thePC)
AT+CIPMODE=1optionallyenterintodatatransmissionmode
AT+CIPSEND=4,5senddataviachannel4,5byteslength(seesockettestresultbelow,only
"elect"received),linkwillbe"unlink"whennodatagothrough
TCPServer
AT+CIPSERVER=1,9999setupTCPserver,onport9999,1meansenable
AT+CIFSRcheckmoduleIPaddress
PCasaTCPclientconnecttomoduleusingsockettest,senddata

Sockettestrunningresult
Inthesockettest,donottickthe"secure"inTCPclient,itcausesunstable

http://www.electrodragon.com/w/Wi07c

3/4

11/4/2015

ESP8266ElectroDragon

Note
Usepowersourcethatcanprovidesufficientcurrent,betternotusingpowerfromUSBTTL
module
Modulewillautomaticallydisconnect"unlink"TCP/UDPwhennodatagothrough
Wifipasswordlengthmustbemorethan8bytes

Documents
SpecificationPDF(https://drive.google.com/file/d/0B_ctPy0pJuW6Y0FHcDlVY09Xdjg/view?
usp=sharing)
ESP8266Firmware
ESP8266SDK
ESP8266withArduino
ESP8266IC
Moredocumentsongoogledrive(https://drive.google.com/folderview?
id=0B3dUKfqzZnlwRXhBTmlhaTROTmM&usp=sharing)
ESP8266anotherwikipage(https://github.com/esp8266/esp8266wiki/wiki/Examples)
ESP8266IoTStandardexample
Retrievedfrom"http://www.electrodragon.com/w/index.php?title=ESP8266&oldid=7833"
Categories: Ethernet,Wifi ESP8266
Thispagewaslastmodifiedon9March2015,at15:57.
Thispagehasbeenaccessed164,931times.

http://www.electrodragon.com/w/Wi07c

4/4

Vous aimerez peut-être aussi