openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.5k stars 281 forks source link

W801 Micro HLK-W801-Kit for 2EUR. #518

Closed valeklubomir closed 1 year ago

valeklubomir commented 1 year ago

I today received HK-W801-Kit image with chipset image Managed to build and flash with OpenW800 and OpenBK7231T_App. image

Findings:

All-in-All good start

openshwprojects commented 1 year ago

Very nice board. I also have one W800, but my one is smaller and more crude.

Regarding drivers:

I am not sure about missing pins. It's worth investigating.

It might be also worth to do a stability check on W800. I didn't have time to do it yet, but from what I remember, the W800 stability is not bad. BL602 had a stability issue, but I fixed it thanks to @valeklubomir idea: https://github.com/openshwprojects/OpenBL602/commit/c73dcaab7e73ab68b29bd20a3b5d4c0992902c1d (above commit, as crude as it is, made it totally stable according to some user reports)

W800 and W600 both supports OTA, but only from HTTP page - by putting a link to HTTP server with binary file. It might be worth looking into adding a support for Web App OTA to those platforms.

If you have some time, you can also post this device to our Elektroda forum - so I can add it to the list: https://openbekeniot.github.io/webapp/devicesList.html . If you are from EU, you might be also able to receive a free gift of Elektroda gadgets - SD card and stickers. Just message @gulson there after posting an article/teardown/review.

In general, any help is welcome. I am currently preparing the Simulator for the release (with a crude schematic drawing and interactions) so both people and devs can easily test drivers, design scripts, etc on PC (currently on Windows).

EDIT: it's worth noting that the mentioned BL602 fix/hack may not be needed anymore, with the @btsimonh MQTT changes in place... most likely it's not needed now.

valeklubomir commented 1 year ago

Nice recruitment speech @openshwprojects I am IN. :-) Since BK7231 chips have not available all documentation, and have some issues which can not be solved without proper PDF, we do not have to stick only to devices which are used in smart devices. Projects for ESP chips live because you can take ESP devkit and build smart device around it. EDIT: I don't have BL602, yet. But I received RTL8720DN devkit, BW16 module which is 2.4G/5.8G capable. Spare CB2S are now available on ali. So I will finish the RAM code execution. A lot of new ideas.

openshwprojects commented 1 year ago

Really, one can buy CB2S now on ali? Can you post a link? I will check, but it sounds like a good news.

I already tried to buy BK7231 on ali once and I had a bad experience. image I ordered BK7231U module and got that: image

valeklubomir commented 1 year ago

Sorry small mistake it is CB3S https://www.aliexpress.com/item/1005004788201798.html But I just ordered it, waiting for delivery, and I hope I will not experience same situation like you, and when it is written CB3S, it will be CB3S inside. There is always some risk with ali. But from my experience 99% purchases where correct.

openshwprojects commented 1 year ago

Btw @valeklubomir , before I forget, I saw that you still have some nice changes in the TuyaMCU code etc etc.

Can you please prepare a Pull Request soon? I am doing a lot of changes these days and I don't really want our forks to drift away from each other too far.

btsimonh commented 1 year ago

@valeklubomir - if looking at Tuya, pls be aware of the Tasmota changes recently merged. I re-worked Tas to have a valid state machine for the tuya protocol..... it fixed issues with crashing some Tuya MCU - the problem being that once they had crashed, the only way out was a power-off, and that's not convenient when it's a wall switch.