Espressif ESP8266 Manual
Hide thumbs Also See for ESP8266:

Advertisement

Quick Links

ESP8266 Ping Test
Demonstration
Version 1.0
Copyright © 2016

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Summary of Contents for Espressif ESP8266

  • Page 1 ESP8266 Ping Test Demonstration 
 Version 1.0 Copyright © 2016...
  • Page 2 Introduction to the installation of the UART driver on the PC, and Appendix Ⅰ the ESP-Launcher how to use the UART debug tool. Flash Download Tool Introduction to the Espressif flash download tool, and how to use Appendix Ⅱ Guide it to download the firmware into the ESP-Launcher. Release Notes...
  • Page 3: Table Of Contents

    3.4. The ESP-Launcher ........................4. Test Procedure ........................4.1. Download Firmware ........................4.2. Set ESP8266 to AP Mode for Ping Test ..................4.3. Set ESP8266 to Station Mode for Ping Test ................5. Conclusion of the Demonstration ..................I. Appendix - Installing UART Driver for ESP-Launcher ............
  • Page 4: Overview

    1. Overview Overview This guide is intended to help users run ping test on the ESP8266 easily and quickly. It demonstrates the testing of network connectivity by running ping test Station mode or SoftAP mode of ESP8266. The ping test has been demonstrated and run on the ESP-Launcher. However, with appropriate build settings, the test can be made to run on any ESP8266-based system.
...
  • Page 5: Architecture Of The Demonstration

    Architecture of the Demonstration The architecture of the ping test demonstration is as follows: When the ESP8266 runs in SoftAP mode, the architecture of the ping test • demonstration is as Figure 2-1 shows. Figure 2-1. ESP8266 Running in SoftAP Mode When the ESP8266 runs in Station mode, the architecture of the ping test •...
  • Page 6: Environment Setup

    PC provides power supply. • Micro USB Cable User can trace the log outputted from • ESP8266 on the PC UART tool. PC for running demo tools: Windows XP or Windows 7 OS is recommended. To run the Espressif phone APP: Android Mobile Phone Version Android4.0 or later is...
  • Page 7: Hardware Connection

    ESP-Launcher connects to the PC via the Micro USB cable. For instructions on how to • install the UART driver on your PC, please refer to Appendix Ⅰ. A router through which ESP8266 can access the internet is needed. • 3.3. Software Installation Flash Download Tool is for downloading the firmware into the ESP-Launcher.
  • Page 8: Test Procedure

    4. Test Procedure Test Procedure 4.1. Download Firmware 1. Download firmware into the ESP-Launcher. Use Flash Download Tool (ESP8266 DOWNLOAD TOOL) to download ./Bin-FW/demo.bin into address 0x0000. For more details about using Flash Download Tool, please refer to Appendix Ⅱ.
  • Page 9: Set Esp8266 To Ap Mode For Ping Test

    1. Set UART baud rate to be 115200 for firmware installation. The illegible characters are printed at the baud rate of 74880 and this is normal during correct power-up. Reset ESP8266 upon power-on, when the “ready” message is printed, it means that the firmware is running properly.
  • Page 10 (espressif0-1) are set in the Step 2 above. ⚠ Notice: It is recommended to have a PC with an external wireless card to connect to ESP8266 SoftAP as a station. Using internal wireless card may cause poor Wi-Fi connectivity. 4. Click the network icon # (in the task bar at the lower right corner of the PC desktop screen).
  • Page 11: Set Esp8266 To Station Mode For Ping Test

    Figure 4-6. Ping ESP8266 SoftAP Using a PC �� Note: The "-n 100" in the ping command specifies that the ESP8266 SoftAP is to be pinged 100 times. 6. The result of ping test is as shown below: Figure 4-7. Ping Test Result 4.3.
  • Page 12 2. Connect PC to a router. Suppose the SSID of the target router is “Smart1ap”, and the password is “espressif0-1”. 3. Power up the ESP-Launcher, and connect ESP8266 to the same router by using the following AT command. AT command: AT+CWJAP_DEF=“Smart1ap”,“espressif0-1”...
  • Page 13 Figure 4-11. PC Pinging the ESP8266 Station �� Note: The “-n 100” in the ping command specifies that the ESP8266 Station should be pinged 100 times. 6. The result of ping test is as shown below: Figure 4-12. Ping Test Result
...
  • Page 14: Conclusion Of The Demonstration

    ESP8266 has two Wi-Fi operation modes, Station and SoftAP modes. PC can connect to the ESP8266 in each Wi-Fi mode and test the connectivity by ping test. Both the SoftAP ping test and the Station ping test can be used when the ESP8266 is configured to be in Station + SoftAP mode.
  • Page 15: Appendix - Installing Uart Driver For Esp-Launcher

    Figure Ⅰ-2. UART Driver Installed ⚠ Notice: If the PC does not install the UART driver automatically, user can install it manually. Espressif provides the UART driver in ./Tools/ft232r-usb-uart.zip. 2. Unzip ./Tools/SecureCRT.rar, and open the SecureCRT to check if the UART driver is installed successfully.
  • Page 16 Figure Ⅰ-3. Creating a New Serial Port Connection - If the serial port connection was created before, users can change its configuration by right-clicking on it, and selecting “properties”. Figure Ⅰ-4. Checking the “Properties” of the Serial Port Espressif 13 19 2016.09...
  • Page 17 If AT commands are used, the baud rate should be 115200, and the “New Line • Mode” should be set because the AT commands end with a new line (CR-LF). " Figure Ⅰ-6. Setting the “New Line Mode” for AT Commands Espressif 14 19 2016.09...
  • Page 18 Appendix I �� Note: The default baud rate of ESP8266 is 74880. But to use AT commands, the baud rate should be 115200. 3. Power up the ESP-Launcher by toggling the switch “1” to the upper side. Check if the startup logs (baud rate 74880) are displayed on the SecureCRT.
  • Page 19: Appendix - Flash Download Tool User Guide

    Figure Ⅱ-1. Flash Download Tool �� Note: The selected firmware in the Download Path Config area will turn into green and be downloaded into the ESP-Launcher. If there is any other firmware which is not selected, it will be ignored. Espressif 16 19 2016.09...
  • Page 20 Appendix Ⅱ 3. Click the “START” button on the ESP8266 Flash Download Tool to enter the “SYNC” state. Wait for the ESP-Launcher to power up. Figure Ⅱ-2. “SYNC” State of Flash Download Tool 4. Power up the ESP-Launcher, and start downloading firmware.
  • Page 21 After the download is finished, toggle the switch “1” to the lower side to power off the ESP- Launcher. Set the ESP8266 to be in program execution mode by toggling the switch “2” to the upper side. Then toggle the switch “1” to the upper side again to power on the ESP-Launcher.
...
  • Page 22 The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth logo is a registered trademark of Bluetooth SIG. All trade names, trademarks and registered trademarks mentioned in this document are Espressif IOT Team property of their respective owners, and are hereby acknowledged. Copyright © 2016 Espressif Inc. All rights reserved. www.espressif.com...

Table of Contents