obs: battery reports 1% while charging (expected 99%) #4

Open
opened 2026-10-19 03:42:41 +00:00 by time · 0 comments
Collaborator

BATTERY? returns 99 01 (99%, charging) per the README whenever the printer is charging, but on the P21 at 09:E2:D5:44:88:8A it returned 01 01 — 1% with the charging flag set — while the printer was plugged in and presumably fully charged.

Possibly a per-unit/firmware quirk (the status ESC commands are also silent on this unit), or the BCD/charging-flag decode in the README is subtly wrong for some states. Worth capturing BATTERY? replies over a charge cycle (plugged in, unplugged, draining) to confirm the encoding before changing the decoder in p21_print.py / the web UI.

Reported 2026-10-18 during web UI development (branch webui).

`BATTERY?` returns `99 01` (99%, charging) per the README whenever the printer is charging, but on the P21 at 09:E2:D5:44:88:8A it returned `01 01` — 1% with the charging flag set — while the printer was plugged in and presumably fully charged. Possibly a per-unit/firmware quirk (the status ESC commands are also silent on this unit), or the BCD/charging-flag decode in the README is subtly wrong for some states. Worth capturing `BATTERY?` replies over a charge cycle (plugged in, unplugged, draining) to confirm the encoding before changing the decoder in `p21_print.py` / the web UI. Reported 2026-10-18 during web UI development (branch `webui`).
Sign in to join this conversation.
No labels
bug
docs
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
daru/nelko-p21-print#4
No description provided.