Presentation is loading. Please wait.

Presentation is loading. Please wait.

Contents Overview AT-Command TCP Communication using AT Commands

Similar presentations


Presentation on theme: "Contents Overview AT-Command TCP Communication using AT Commands"— Presentation transcript:

1 Espressif Systems : http://espressif.com/

2 Contents Overview AT-Command TCP Communication using AT Commands
ESP8266 and ARDUINO IDE Firmware Update

3 Why ESP8266?

4 Structure

5 Specification Voltage : 3.3V Current consumption : 10uA – 170mA
Flash memory attachable : 16MB max (512K normal) Processor : Tensilica L bit Processor speed : MHz RAM : 32K + 80K GPIOs : 17 (multiplexed with other functions) ADC(Analog to Digital) : 1 input with 1024 step resolution support : b/g/n/d/e/i/k/r Maximum concurrent TCP connections : 5

6 Series ESP-12

7 Reference Design

8 ESP-01 with AT Command AT command

9 Setting USB to Serial Driver installation
Serial Port Setting : Port / bps / <NL>&<CR>

10 Basic AT Command AT : Test if AT system works correctly
AT+RST : Reset the module AT+GMR : Print Firmware version ATE0 : Disable echo ATE1 : Enable echo

11 TCP Communication using AT Commands
TCP and HTTP

12 TCP Communication using AT Commands
1. Install Hercules ( )

13 TCP Communication using AT Commands
2. Check your IP (laptop) start/cmd/ipconfig

14 TCP Communication using AT Commands
Terminal Window>> AT+CWMODE=3 (station & AP mode) AT+CWLAP (search available Aps) AT+CWJAP=“imok”,”kara1004” (connect to imok AP) AT+CIPSTART=“TCP”,” ”,23 (link TCP to your laptop) AT+CIPSEND=5 >Hello AT+CIPCLOSE (Close TCP connection) AT+CWQAP (Close WIFI connection)

15 Request HTTP service and respond
AT+CWMODE=3 (station & AP mode) AT+CWLAP (search available Aps) AT+CWJAP=“imok”,”kara1004” (connect to imok AP) AT+CIPSTART=“TCP”,” ”,80 (link TCP to Raspberry server) AT+CIPSEND=66 >GET /index.php HTTP/1.1 Host: Connection: close AT+CWQAP (Close WIFI connection)

16 ESP8266 and ARDUINO IDE SDK for ARDUINO IDE

17 환경설정

18 Install SDK 툴 / 보드 / 보드 매니저

19 Select ESP8266 Board 보드 : Generic ESP8266 Module Flash Mode: DIO
Flash Frequency : 40MHz CPU Frequency : 80 MHz Flash Size: 512K Debug port : Disabled Debug Level : None Reset Method: ok Upload Speed: 포트: 자신의 컨버터 포트

20 Example program : Print connected IP
#include <ESP8266WiFi.h> char *ssid = "imok"; char *password = "kara1004"; void setup() { Serial.begin(115200); WiFi.begin(ssid, password); // AP 접속 시작 Serial.println(); while(WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } // AP 접속 대기 Serial.println(); Serial.println("WiFi Connected..."); Serial.println(WiFi.localIP()); // IP 주소 출력 } void loop() {

21 Download Flash 버튼을 누른 상태에서 Reset 버튼을 누른다. 부팅이 된 뒤에는 Flash 버튼을 떼어도 된다.
그 다음 아두이노 IDE에서 컴파일 뒤 다운로드 Flash Reset

22 Result

23 Firmware Update 2016/10/21

24 Flash Download Tool http://espressif.com/ Support tools
Check “ESP8266” Flash Download Tools Flash Download Tools V3.4.2 (ESP8266 & ESP32)

25 Flash Download Tool http://espressif.com/ Support SDKs & Demos
Check “ESP8266” ESP8266 NONOS SDK V

26 Firmware update 바이너리 파일 파일 경로 메모리 주소 blank.bin 0x78000
esp_init_data_default.bin 0x7C000 0x7A000 0x7E000 eagle.flash.bin at/noboot 0x00000 eagle.irom0text.bin 0x10000 보드에서 Flash 버튼 누른 상태에서 Reset 버튼을 누른 후, 프로그램에서 포트와 통신속도를 설정하고 “START”를 누르면 된다.

27 끝~


Download ppt "Contents Overview AT-Command TCP Communication using AT Commands"

Similar presentations


Ads by Google