Comments (8)
I flashed directly on the chip using Sensepeek PCBite while the device wasn't connected to power. Instead I used the 3.3V coming from the UART device. I had tried the test pins before as outlined in the guide but when it didn't work immediately I didn't want to invest more time to figure out this variant, instead I went straight on the esp32 pins. I've already flashed about seven devices like this (mostly yeelight lamps and one other xiaomi light).
from esphome-miot.
Does reading from uart work when the device is running the vendor fw? You should see it logging. That needs to work first, and only then can you attempt to flash a new fw.
In my case, I just powered the whole board with its standard power supply. Powering only the esp would be safer, but not as easy. Powering the esp via your uart ttl adapter might not work, depending on how reliable the power output is (you might get lucky, but assume it's not sufficient).
And is that really another revision of the rmb1 or the newer rma2 version (#14)?
from esphome-miot.
In my case, I just powered the whole board with its standard power supply.
How were you been able to power on the board? In my case when I disassembled I had to unplug the display or the sensor from the board (i dont remember now) otherwise I had not enough space/long cable to remove it from the outer shell to have access to the testpoints. And without the sensor I cannot power on the board as it just beeps 3-4 times and thats it.
from esphome-miot.
Does reading from uart work when the device is running the vendor fw? You should see it logging. That needs to work first, and only then can you attempt to flash a new fw.
Esphome (HA) does such thing? Honestly never tried to read out this way. I programmed blank esps only.
from esphome-miot.
How were you been able to power on the board? In my case when I disassembled I had to unplug the display or the sensor from the board
Same here, I detached various connectors to get to the board, but reattached them once I disassembled the device. So the wires temporarily had different paths, but the device as a whole was fully functioning.
Esphome (HA) does such thing?
Either firmware will log over uart, but in this case I meant the original vendor firmware. It's just to confirm that uart is working. Because if it's not there's no way you can flash another firmware over uart (duh ;)
from esphome-miot.
Worked like a charm. Thanks
Some info to others:
You do need to short the filter detector, otherwise it refuse to boot at all and cant flash the ESP (the display part doesn't needs to be plugged)
The first boot seems to me a bit slow or something I mean the Wifi connection, so be patient. I had to plug everything together (including the Display) in order to connect for me to my WiFi AP.
I still don't know how to backup the original FW from ESPHome, it simply instantly installed the default code on to it. Then edited it with the code provided here, re-flashed, and happy.
from esphome-miot.
To back up:
esptool.py --baud 115200 --port /dev/cu.usbserial-110 read_flash 0x00000 0x400000 fwbackup_xyz.bin
To compile:
esptool.py compile airpurifier.yaml
To flash:
esptool.py --baud 115200 --port /dev/cu.usbserial-110 write_flash --flash_size detect 0x00000 firmware-factory.bin
With automatic port detection this might also work instead:
esphome run airpurifier.yaml
from esphome-miot.
In some cases, one of my purifier lose Wifi connection.
I added the following line to the code, but it seem doesnt really reset the ESP upon disconnect.
"wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
reboot_timeout: 15min
"
Am I missing something??
from esphome-miot.
Related Issues (12)
- Mi Air Purifier 3C (zhimi.airp.mb4a) HOT 37
- Heartbeat SIID/PIID not really optional HOT 3
- Support switch and binary_sensor as int HOT 4
- Support `event_occurred` MCU message HOT 4
- Incorrect parsing of `result` from `action` command HOT 3
- Guru Meditation Error in miot.cpp HOT 20
- Xiaomi Air Purifier 4 Lite (zhimi.airp.rma2) support HOT 4
- MCU time request: no time source available HOT 6
- Support for dmaker.fan.p18 and dmaker.fan.p33 HOT 12
- After a day or so "Network status changed to 'cloud'" - unable to control the unit
- Suport for Smart Purifier 4 Compact (board AC-M18-SC)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-miot.