Test the BEEP command #1

Closed
opened 2026-07-18 19:56:56 +00:00 by victor · 1 comment
Owner
No description provided.
Author
Owner

Fixed in 0f9c69e. Root cause: the BEEP command needs a space before the on/off byte (BEEP + 0x01/0x00), matching BATTERY?/CONFIG?; we were sending BEEP + byte with no space, so it had no effect.

Verified on hardware:

  • config round-trips: beep --off -> CONFIG? reports beep off; beep -> reports on
  • audible: the beeper sounds

Note: on the tested unit, enabling makes it beep continuously until turned off, so p21 beep / p21 beep --off act as an on/off switch. Added a unit test locking the exact byte format (BEEP \x01\r\n / BEEP \x00\r\n).

Fixed in 0f9c69e. Root cause: the BEEP command needs a space before the on/off byte (`BEEP ` + 0x01/0x00), matching BATTERY?/CONFIG?; we were sending `BEEP` + byte with no space, so it had no effect. Verified on hardware: - config round-trips: `beep --off` -> CONFIG? reports beep off; `beep` -> reports on - audible: the beeper sounds Note: on the tested unit, enabling makes it beep continuously until turned off, so `p21 beep` / `p21 beep --off` act as an on/off switch. Added a unit test locking the exact byte format (`BEEP \x01\r\n` / `BEEP \x00\r\n`).
Sign in to join this conversation.
No labels
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
victor/p21-print#1
No description provided.