Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
931 Views

Wi-Fi module ESP8266 in Galileo

Hi,

It is not possible to use the Galileo Arduino IDE Monitor as a direct way of communication with ESP8266 because the Galileo Arduino IDE monitor is not related to Galileo's pins 0 & 1 ( , ). However, that's the reason we do not need anything else in Galileo to work on pre-configured 115200 bauds ESP8266 modules (i.e. no extra hardware and no SoftwareSerial library). Adapting the code from http://allaboutee.com/2014/12/30/esp8266-and-arduino-webserver/ http://allaboutee.com/2014/12/30/esp8266-and-arduino-webserver/ I had in the serial monitor:

AT+RST

OK

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 1396, room 16

tail 4

chksum 0x89

load 0x3ffe8000, len 776, room 4

tail 4

chksum 0xe8

load 0x3ffe8308, len 540, room 4

tail 8

chksum 0xc0

csum 0xc0

2nd boot version : 1.4(b1)

SPI Speed : 40MHz

SPI Mode : DIO

SPI Flash Size & Map: 8Mbit(512KB+512KB)

jump to run user1 @ 1000

ó (some junk)

n't use rtc mem data

r Ž 'rl€Ì÷

Ai-Thinker Technology Co.,Ltd.

ready

AT+CWMODE=2

OK

AT+CIFSR

+CIFSR:APIP,"192.168.4.1"

+CIFSR:APMAC,"5e:cf:7f:11:da:0c"

OK

AT+CIPMUX=1

OK

AT+CIPSERVER=1,80

OK

And after connecting the "new" available WiFi (AI-THINKER_11DA0C in my case) from my laptop

I opened the web browser and:

In the meantime, in the serial monitor:

,285:GET / HTTP/1.1

Host: 192.168.4.1

User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-US,en;q=0.5

Accept-Encoding: gzip,AT+CIPSEND=0,50

OK

>

Recv 50 bytes

SEND OK

AT+CIPSEND=0,21

OK

>

Recv 21 bytes

SEND OK

AT+CIPCLOSE=0

0,CLOSED

OK

So everything is "up & running".

BR,

Fernando.

0 Replies