Skip to content

Xiaomi compact4 driver introduction#2141

Draft
DeDaMrAzR wants to merge 19 commits into
openshwprojects:mainfrom
DeDaMrAzR:xiaomi-compact4-bringup
Draft

Xiaomi compact4 driver introduction#2141
DeDaMrAzR wants to merge 19 commits into
openshwprojects:mainfrom
DeDaMrAzR:xiaomi-compact4-bringup

Conversation

@DeDaMrAzR

Copy link
Copy Markdown
Contributor

initial driver release with a lot of features that can go wrong but focused on a specific device

@DeDaMrAzR DeDaMrAzR marked this pull request as draft June 23, 2026 01:49
@DeDaMrAzR

DeDaMrAzR commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

This is a device specific driver so a lot of things are introduced, another set of eyes on it would be appreciated before merge. so far this is how OBK Index looks like

image

and similarly in HA

image

To flash OBK to it here is the pinout of the board, top view

image

Bottom view

image

top down: Tx, Rx, GND, RST, BOOT0 on the J12 connector.

Add startDriver XiaomiCompact4 to autoexec file.

@DeDaMrAzR DeDaMrAzR marked this pull request as ready for review June 23, 2026 13:34
@DeDaMrAzR

DeDaMrAzR commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Added forgotten "reset filter" button to Web UI

image

@DeDaMrAzR

Copy link
Copy Markdown
Contributor Author

First time playing with variants and since the Xiaomi Compact 4 is single core ESP32 I had to gate it and make a separate variant in order not to touch and mess up other EPS32 stuff. I hope I did it justice, @openshwprojects let me know if this is acceptable and if not what should I change.

@DeDaMrAzR DeDaMrAzR marked this pull request as draft June 24, 2026 13:32
@DeDaMrAzR DeDaMrAzR marked this pull request as ready for review June 24, 2026 17:29
Keep the generic WDT feed path unchanged for non-Xiaomi builds, while letting the Xiaomi Compact 4 driver withhold the feed if its QuickTick path stalls.

Also expose Xiaomi-local diagnostics and force the motor failsafe when the driver detects a stale QuickTick path.
@DeDaMrAzR

Copy link
Copy Markdown
Contributor Author

I am still battling with issues of a random device freeze as WDT is not able to help (yet) so this drivers is still in experimental phase.

@DeDaMrAzR DeDaMrAzR marked this pull request as draft July 1, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant