From c5a07f42a6802c1d3d0554acb115ba73a3d5defe Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 19 Jul 2018 19:17:29 +0530 Subject: [PATCH 1/5] Update README.md --- 02Peripheral/Infrared/README.md | 119 +++++++++++++++++--------------- 1 file changed, 63 insertions(+), 56 deletions(-) diff --git a/02Peripheral/Infrared/README.md b/02Peripheral/Infrared/README.md index 92508cc..08b9d18 100644 --- a/02Peripheral/Infrared/README.md +++ b/02Peripheral/Infrared/README.md @@ -1,75 +1,82 @@ -##SDK Version : ESP8266_RTOS_SDK_V1.4.2_16_07_04 -##Platform : ESP-LAUNCHER BOARD +## SDK Version : ESP8266_RTOS_SDK_V1.4.2_16_07_04 +## Platform : ESP-LAUNCHER BOARD -##Purpose: +## Purpose: IR sender and receiver function test. -##Procedure: +## Procedure: 1.Enter path:/home/esp8266/Share, clone ESP8266 RTOS SDK to lubuntu environment by command: - git clone https://github.com/espressif/ESP8266_RTOS_SDK.git +``` +git clone https://github.com/espressif/ESP8266_RTOS_SDK.git +``` 2.Enter SDK folder:/home/esp8266/Share/ESP8266_RTOS_SDK, Copy example folder "Infrared" next to bin/ folder in the SDK folder. The SDK folder should have folders inside it like : bin, examples, third party... 3.If the SDK path is not updated in gen_misc.sh, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: - export SDK_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK" - export BIN_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK/bin" +``` +export SDK_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK" +export BIN_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK/bin" +``` 4.Enter example folder, run ./gen_misc.sh, and follow below steps to finish the sample code compile: - Option 1 will be automatically selected, - Option 2 > Enter 1. - Option 3 > Enter Default(Just Press enter) - Option 4 > Enter Default(Just Press enter) - Option 5 > Enter 5. - +``` +Option 1 will be automatically selected, +Option 2 > Enter 1. +Option 3 > Enter Default(Just Press enter) +Option 4 > Enter Default(Just Press enter) +Option 5 > Enter 5. +``` 5."user1.2048.new.5.bin" should be found in "/home/esp8266/Share/ESP8266_RTOS_SDK/bin/upgrade", Flash the Binaries with ESP Flashing tool at the instructed Locations. Download bin files to ESP-LAUNCHER as below sittings. - - Download address of each bin files: - blank.bin 0x1FE000 - esp_init_data_default.bin 0x1FC000 - boot_v1.5.bin 0x00000 - user1.2048.new.5.bin 0x01000 - - Flash download tool settings: - CrystalFreq: 26M - SPI SPEED: 40MHz - SPID MODE: QIO - FLASH SIZE: 16Mbit-C1 -##Result: +``` +Download address of each bin files: +blank.bin 0x1FE000 +esp_init_data_default.bin 0x1FC000 +boot_v1.5.bin 0x00000 +user1.2048.new.5.bin 0x01000 + +Flash download tool settings: +CrystalFreq: 26M +SPI SPEED: 40MHz +SPID MODE: QIO +FLASH SIZE: 16Mbit-C1 +``` + +## Result: Use IR Tx sender and Rx receiver on LAUNCHER BOARD. Demo code will send IR data and print what the receiver gets through UART0. -##UART0 log@74880: +## UART0 log@74880: +``` +addr:55h;cmd:28h;repeat:10; +IR_TX_IDLE LOOPir rcvd:55h aah 28h d7h +REPEAT: 0 +REPEAT: 1 +REPEAT: 2 +REPEAT: 3 +REPEAT: 4 +REPEAT: 5 +REPEAT: 6 +REPEAT: 7 +REPEAT: 8 +REPEAT: 9 +d2 +rep = 0 end +begin - addr:55h;cmd:28h;repeat:10; - IR_TX_IDLE LOOPir rcvd:55h aah 28h d7h - REPEAT: 0 - REPEAT: 1 - REPEAT: 2 - REPEAT: 3 - REPEAT: 4 - REPEAT: 5 - REPEAT: 6 - REPEAT: 7 - REPEAT: 8 - REPEAT: 9 - d2 - rep = 0 end - begin - - ir rx data: - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h - IR buf pop : 28h +ir rx data: +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +IR buf pop : 28h +``` - From 3ec5bc464eefd6e017e7fa7849ab1204b70bef6f Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 19 Jul 2018 19:18:53 +0530 Subject: [PATCH 2/5] fix numbered points --- 02Peripheral/Infrared/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/02Peripheral/Infrared/README.md b/02Peripheral/Infrared/README.md index 08b9d18..d8fc59a 100644 --- a/02Peripheral/Infrared/README.md +++ b/02Peripheral/Infrared/README.md @@ -5,22 +5,22 @@ IR sender and receiver function test. ## Procedure: -1.Enter path:/home/esp8266/Share, clone ESP8266 RTOS SDK to lubuntu environment by command: +1. Enter path:/home/esp8266/Share, clone ESP8266 RTOS SDK to lubuntu environment by command: ``` git clone https://github.com/espressif/ESP8266_RTOS_SDK.git ``` -2.Enter SDK folder:/home/esp8266/Share/ESP8266_RTOS_SDK, Copy example folder "Infrared" next to bin/ folder in the SDK folder. The SDK folder should have folders inside it like : bin, examples, third party... +2. Enter SDK folder:/home/esp8266/Share/ESP8266_RTOS_SDK, Copy example folder "Infrared" next to bin/ folder in the SDK folder. The SDK folder should have folders inside it like : bin, examples, third party... -3.If the SDK path is not updated in gen_misc.sh, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: +3. If the SDK path is not updated in gen_misc.sh, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: ``` export SDK_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK" export BIN_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK/bin" ``` -4.Enter example folder, run ./gen_misc.sh, and follow below steps to finish the sample code compile: +4. Enter example folder, run ./gen_misc.sh, and follow below steps to finish the sample code compile: ``` Option 1 will be automatically selected, From dd12b533216f887f52050b0d8c05b78dfcfb63ca Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 19 Jul 2018 19:20:16 +0530 Subject: [PATCH 3/5] Update README.md --- 02Peripheral/Infrared/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/02Peripheral/Infrared/README.md b/02Peripheral/Infrared/README.md index d8fc59a..c05f313 100644 --- a/02Peripheral/Infrared/README.md +++ b/02Peripheral/Infrared/README.md @@ -11,7 +11,7 @@ IR sender and receiver function test. git clone https://github.com/espressif/ESP8266_RTOS_SDK.git ``` -2. Enter SDK folder:/home/esp8266/Share/ESP8266_RTOS_SDK, Copy example folder "Infrared" next to bin/ folder in the SDK folder. The SDK folder should have folders inside it like : bin, examples, third party... +2. Enter SDK folder: `/home/esp8266/Share/ESP8266_RTOS_SDK`, Copy example folder `Infrared` next to `bin/` folder in the SDK folder. The SDK folder should have folders inside it like : `bin`, `examples`, third party... 3. If the SDK path is not updated in gen_misc.sh, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: @@ -20,7 +20,7 @@ export SDK_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK" export BIN_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK/bin" ``` -4. Enter example folder, run ./gen_misc.sh, and follow below steps to finish the sample code compile: +4. Enter example folder, run `./gen_misc.sh`, and follow below steps to finish the sample code compile: ``` Option 1 will be automatically selected, @@ -29,7 +29,7 @@ Option 3 > Enter Default(Just Press enter) Option 4 > Enter Default(Just Press enter) Option 5 > Enter 5. ``` -5."user1.2048.new.5.bin" should be found in "/home/esp8266/Share/ESP8266_RTOS_SDK/bin/upgrade", Flash the Binaries with ESP Flashing tool at the instructed Locations. Download bin files to ESP-LAUNCHER as below sittings. +5. `user1.2048.new.5.bin` should be found in `/home/esp8266/Share/ESP8266_RTOS_SDK/bin/upgrade`, Flash the Binaries with ESP Flashing tool at the instructed Locations. Download bin files to ESP-LAUNCHER as below sittings. ``` Download address of each bin files: From 47f66fecd6adf4a08c1779e1634fa7efe89815d8 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 19 Jul 2018 19:20:58 +0530 Subject: [PATCH 4/5] Update README.md --- 02Peripheral/Infrared/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02Peripheral/Infrared/README.md b/02Peripheral/Infrared/README.md index c05f313..abdbd0f 100644 --- a/02Peripheral/Infrared/README.md +++ b/02Peripheral/Infrared/README.md @@ -11,7 +11,7 @@ IR sender and receiver function test. git clone https://github.com/espressif/ESP8266_RTOS_SDK.git ``` -2. Enter SDK folder: `/home/esp8266/Share/ESP8266_RTOS_SDK`, Copy example folder `Infrared` next to `bin/` folder in the SDK folder. The SDK folder should have folders inside it like : `bin`, `examples`, third party... +2. Enter SDK folder: `/home/esp8266/Share/ESP8266_RTOS_SDK`, Copy example folder `Infrared` next to `bin/` folder in the SDK folder. The SDK folder should have folders inside it like : `bin`, `examples`, `third party`... 3. If the SDK path is not updated in gen_misc.sh, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: From 98857d69d342d75794f5d081c93b5eb296e0ecf7 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 19 Jul 2018 19:21:37 +0530 Subject: [PATCH 5/5] Update README.md --- 02Peripheral/Infrared/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02Peripheral/Infrared/README.md b/02Peripheral/Infrared/README.md index abdbd0f..3621abc 100644 --- a/02Peripheral/Infrared/README.md +++ b/02Peripheral/Infrared/README.md @@ -13,7 +13,7 @@ git clone https://github.com/espressif/ESP8266_RTOS_SDK.git 2. Enter SDK folder: `/home/esp8266/Share/ESP8266_RTOS_SDK`, Copy example folder `Infrared` next to `bin/` folder in the SDK folder. The SDK folder should have folders inside it like : `bin`, `examples`, `third party`... -3. If the SDK path is not updated in gen_misc.sh, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: +3. If the SDK path is not updated in `gen_misc.sh`, right click the script and edit the path to bin folder and SDK folder. for the current SDK, the gen_mish.sh would have a path like: ``` export SDK_PATH="/home/esp8266/Share/ESP8266_RTOS_SDK"