background preloader

Esp8266

Facebook Twitter

ESP8266 Reboot Cycled Caused by Flash Memory Corruption — Fixed! After I released the ESP8266-based OpenGarage, there has been a weird bug that kept bugging me: a small fraction of the controllers (let’s say 1 out of 10) would crash on restart, and that leads to an infinite reboot cycle.

ESP8266 Reboot Cycled Caused by Flash Memory Corruption — Fixed!

Once this happens, it seems there is no way to stop it until you reflash the controller with NodeMCU firmware, and then flash OpenGarage firmware back. For the longest time I thought there is a bug in the OpenGarage firmware code that causes this to happen. But the above symptom defies any standard reasoning and explanation. This has kept bugging me until yesterday, I finally sat down and did a number of reproducible tests that helped me finally figure out the cause. D1 mini V2.1.0 solid blue light. I wouldn't throw it away just yet.

D1 mini V2.1.0 solid blue light

The GPIO2 is also used as the TX pin of the second UART, which is used on boot to mirror the first UART and spew the diagnostics data. Since you see a continuous stream of that, it probably means that your ESP8266 got into a boot loop -- that is, it tries to boot its firmware, but then it instantly crashes, and the processor restarts and tries to boot again. GitHub - esp8266/arduino-esp8266fs-plugin: Arduino plugin for uploading files to ESP8266 file system.

GitHub - me-no-dev/EspExceptionDecoder: Exception Stack Trace Decoder for ESP8266. GitHub - pulkin/esp8266-injection-example: A small project to demonstrate sniffer / packet injection capabilities of ESP8266 IC. Inject Packets with an ESP8266. [Kripthor] sent us a link to his blog where he writes the Hello World of low-level networking.

Inject Packets with an ESP8266

Basically he’s constructing his own packet and sending it. By itself this isn’t a bad thing. You could use this power for all sorts of networks-diagnostic good. And so, despite the ominous name of his blog post “ESP8266 Jamming”, he’s not really doing anything that bad — he’s just creating many fake WiFi beacon frames and sending them out every so often. Which can apparently do bad things to some vulnerable routers. Naturally we wanted to see how he was doing it, and we opened up the Arduino code in GitHub. Esp8266_reset_causes_and_common_fatal_exception_causes_en. I can't get SPI to work on WeMos D1.... : esp8266. WeMos Mini D1 - Default I2C & SPI pins. ESP8266EX Overview.

Flashing the firmware - NodeMCU Documentation. Below you'll find all necessary information to flash a NodeMCU firmware binary to ESP8266 or ESP8285.

Flashing the firmware - NodeMCU Documentation

Note that this is a reference documentation and not a tutorial with fancy screen shots. Turn to your favorite search engine for those. Make sure you follow a recent tutorial rather than one that is several months old! Attention Keep in mind that the ESP8266 needs to be put into flash mode before you can flash a new firmware! Important When switching between NodeMCU versions, see the notes about Upgrading Firmware. Tool overview¶ esptool.py¶ A Python-based, open source, platform independent, utility to communicate with the ROM bootloader in Espressif ESP8266. Source: Supported platforms: OS X, Linux, Windows, anything that runs Python Running esptool.py.

ESP8266 Mini Sniff. I am constantly amazed at what the inexpensive ESP8266 can perform using only some creative software.

ESP8266 Mini Sniff

In this article, I provide the Arduino sketch code to morph the WiFi device into a promiscuous WiFi scanner that will display both client and AP MAC addresses, broadcasts, signal strength and channel. It is a great project that listens silently to the WiFi 2.4G band looking for activity and then displaying it over the serial port. Since the signal strength is shown, you can even use this project to move your Access Point (WiFi router) around to find the best placement location in your home. I have been working with the ESP8266 for over a year now; one project, the Tardis Time, has been running continuously since September 2015. As this is an all-software project, you should have it up and running in minutes.

Arduino Tutorial: ESP8266 OTA. Update the WeMOS D1 Over the Air (OTA). - educ8s.tv - Watch Learn Build. Arduino Tutorial: ESP8266 OTA.

Arduino Tutorial: ESP8266 OTA. Update the WeMOS D1 Over the Air (OTA). - educ8s.tv - Watch Learn Build

Update the WeMOS D1 Over the Air (OTA). Jeija/esp32free80211: Send arbitrary IEEE 802.11 frames with Espressif's ESP32. ESP32’s Wi-Fi Range Extended to 10 km with a Directional Antenna. The relevant test (for readers within China, please click here) took place in the area around the historical site of Hohenneuffen Castle, which was chosen as an easy-to-target landmark with optimal line of sight between the transmitter and the receiver.

ESP32’s Wi-Fi Range Extended to 10 km with a Directional Antenna

Approximately 10 km away from Hohenneuffen Castle, then, ESP32 was connected to an OV2640 module.To decide on the kind of antennas that should be used for this setup, the Friis Equation proved to be particularly helpful: Pr = Pt Gt Gr (λ/4πR)² In general, this equation can be used to estimate the strength of received signs, where lambda (λ) is the wavelength, Pt is the signal power at the transmitter’s end, and Pr is the signal power at the receiver’s end.

Gt and Gr are their respective antenna gains. The R in the Friis equation, which is the distance between the two antennas, is of particular significance here. To tackle this issue, the team had to take into account another important prerequisite. EIRPdBm = Pt,dBm + Gt,dBi EIRPdBm ≤ 20 dBm. ESP32 Security Bug Bounty Program Launched. Developers’ Essential Information - ESP8266 Developer Zone. ESP8266 12E - How to upgrade to latest firmware - ESP8266 Developer Zone. Update the Firmware in Your ESP8266 Wi-Fi Module. Objective and Rationale This is the author's second article about the ESP8266 integrated circuit, a relatively new chip comprising a full-featured 32-bit RISC µC and a built-in 802.11 b/g/n Wi-Fi circuit.

Update the Firmware in Your ESP8266 Wi-Fi Module

The first article described using the Arduino IDE to program the ESP8266, and contains some important background information that will not be repeated here. If you haven't read it, please do. There is no shortage of information on the Web about the 8266; in fact, there may be too much...of the wrong type. Internet of Home Things » 4 ways to eliminate ESP8266 resets. Remember the movie “Groundhog Day “?

Internet of Home Things » 4 ways to eliminate ESP8266 resets

Original Saturday Night Live cast member Bill Murray re-lives Groundhog Day over and over again. And still again. Kinda like the ESP8266 when it repeatedly resetting… Nothing you try makes a difference! If you have worked with the ESP8266 for any length of time, you have undoubtedly experienced the endless resets on power-up. The looping message occurs at about 5 second intervals, which seems to be the default internal watchdog timer time-out period. Ets Jan 8 2013,rst cause:4, boot mode:(3,7) wdt reset load 0x40100000, len 30000, room 16 tail 0 chksum 0x67 load 0x3ffe8000, len 2556, room 8 tail 4 chksum 0xb7 load 0x3ffe8a00, len 3080, room 4 tail 4 chksum 0x59 csum 0x59 r” I have yet to come across a definitive explanation for this behavior.

WEMOS ESP8266 D1 (Arduino sized) board - problems! - Everything ESP8266. Wemos d1 mini pin mapping · Issue #1243 · esp8266/Arduino. _gpio_pin_allocations [ESP8266 Support WIKI] PinMode(), digitalRead(), digitalWrite(), analogWrite() work as usual.

_gpio_pin_allocations [ESP8266 Support WIKI]

Pin numbers correspond directly to the esp8266 GPIO pin numbers. To read GPIO2, call digitalRead(2); All digital IO pins are protected from over-voltage with a snap-back circuit connected between the pad and ground. The snap back voltage is typically about 6V, and the holding voltage is 5.8V. This provides protection from over-voltages and ESD. At startup, pins are configured as INPUT. ESP8266 Thing Hookup Guide. Favorited Favorite 17 If you’ve used Arduino in the past, there will be some new programming schemes to get used to in ESP8266 land. Pin Mappings. Arduino/reference.md at master · esp8266/Arduino. Advanced Arduino – Including Multiple Libraries In Your Project. The Arduino IDE is a great environment for getting started programming microprocessors. It radically lowers the cost of entry, and greatly simplifies the learning curve. The importance of these properties should not be underestimated. SPIFFS file read and write example. - Mon Feb 15, 2016 6:03 pm#41198 Today I coded a basic sketch getting to learn to use the SPIFFS filesystem.

The sketch is attached here, maybe it's of use to anyone. Code: Select all// Very basic Spiffs example, writing 10 strings to SPIFFS filesystem, and then read them back// For SPIFFS doc see : Compiled in Arduino 1.6.7. Runs OK on Wemos D1 ESP8266 board. WeMos.cc. This page is about new D1 board named D1 R2. The D1 R2 is a mini wifi board based on the ESP-8266EX. 11 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire supported(except for D0) 1 analog input(3.2V max input) Micro USB connection Power jack, 9-24V power input. Compatible with Arduino Compatible with nodemcu Getting Started. ESP8266 Thing Hookup Guide. Start [ESP8266 Support WIKI] Register to edit the Wiki Follow on Twitter for the latest NEWS. Also on Facebook.