Updated Xiaomi Mi Desk Lamp (markdown)

Gabor Simon 2019-02-22 13:02:36 +04:00
parent e6f900f7e1
commit 9e1a55d21f
1 changed files with 35 additions and 0 deletions

@ -95,4 +95,39 @@ As there is plenty of free space in the lamp stand, I left the wires long enough
The rest of the serial flashing process is [as usual](https://github.com/arendst/Sonoff-Tasmota/wiki/Hardware-Preparation), but if you want to make a backup of the original firmware, keep in mind that the flash size is **2 MBs**.
If you are re-flashing the original firmware, the flash size must be explicitely set to '2MB-c1', **the auto-detected '2MB' doesn't work**, so: `esptool.py write_flash --flash_size 2MB-c1 0x00000 xiaomi_desk_lamp.orig.bin`
## Serial logging
A bonus feature for debugging/logging: The lamp has an external DC12V power supply, so there is no shock hazard. Nonetheless, accidental 12V can still cause damage to a 3.3V serial converter, so be cautious if you do serial logging on a live lamp.
The [original firmware](https://github.com/gsimon75/Tasmota_MiDeskLamp_Notes/raw/master/xiaomi_desk_lamp.orig.bin) sets the USART to the same 74880 baud as the ESP boot loader, and it dumps some details as well:
```
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x60000020, len 4, room 16
phy ver: 1055_1, pp ver: 10.7
rf cal sector: 507
tcpip_task_hdl : 3fff2958, prio:10,stack:512
idle_task_hdl : 3fff29f8,prio:0, stack:384
tim_task_hdl : 3fff5188, prio:2,stack:512
pwm version:1.0.2
mcu version: 1.3.0_0055
prod: yeelink.light.lamp1
data : 0x3ffe8000 ~ 0x3ffe91f4, len: 4596
rodata: 0x3ffe9310 ~ 0x3ffeaa7c, len: 5996
bss : 0x3ffeaa80 ~ 0x3fff27d8, len: 32088
heap : 0x3fff27d8 ~ 0x40000000, len: 55336
BUILD TIME: May 25 2018,07:01:12
ESP SDK VER: 1.5.0-dev(c6beda8)
did is 65282142
mac addr 7811dc06cfd9
reset reason: 0
current flash flag is 0, current user bin addr 0x101000
mode : softAP(7a:11:dc:06:cf:d9)
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
```