From 8609f3be2709ad810d3c35f8cde16a0aa54fe37f Mon Sep 17 00:00:00 2001 From: William Gill Date: Tue, 1 Dec 2026 14:54:49 -0600 Subject: [PATCH] Record the printers' buffer sizes in the printers plan Epson's Technical Reference Guides give each model's buffers. The TM-T88IV has a 4 KB receive buffer from the factory, or 45 bytes by DIP switch 1-2. The TM-T88VII and TM-m50II have a fixed 4 KB. All three have a 12 KB downloaded buffer, and NV graphics memory of 256 KB on the TM-T88IV and up to 384 KB on the other two. The UB-E02 board adds a 16 KB buffer for data from the host; the UB-E03's guide gives no size. The renderer uses neither stored area, since images go inline. A job larger than the buffers still streams, and what they hold can print after a send that failed or was cut off: on a TM-T88IV behind a UB-E02, up to about 20 KB plus the host's socket buffer. Which board the owner's TM-T88IV has, and its DIP switch 1-2, stay unchecked. Co-Authored-By: Claude Opus 5.5 --- docs/plans/printers.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/plans/printers.md b/docs/plans/printers.md index c069898..44232c6 100644 --- a/docs/plans/printers.md +++ b/docs/plans/printers.md @@ -294,6 +294,9 @@ THE THREE PRINTERS (Epson's Technical Reference Guides and command reference) | Network | UB-E02 or UB-E03 board, port 9100 | built in, port 9100 | built in, port 9100 | | Connections accepted / printing | 3 / 1 | 6 / 1 | 6 / 1 | | Idle time-out | 300 s | 90 s | 90 s | +| Receive buffer | 4 KB, or 45 bytes by DIP switch 1-2 (4 KB from the factory) | 4 KB, fixed | 4 KB, fixed | +| Downloaded buffer | 12 KB | 12 KB | 12 KB | +| NV graphics memory | 256 KB | 256 KB, settable up to 384 KB | 384 KB, settable from 0 | - CLAUDE.md's geometry holds: the TM-m50II is 512 dots, not 576. One profile's layout covers all three, and the default line spacing is the same on all three, so a per-model line spacing changes no byte for them. - Every command the renderer sends is in each model's command list, and so are the code pages it uses (0, 2, 16 and 19). Each job starts with `ESC @` then `ESC t`, so a printer's own default page never matters. @@ -301,6 +304,12 @@ THE THREE PRINTERS (Epson's Technical Reference Guides and command reference) - Only the first accepted connection prints; the others connect, and their data waits until it closes. - The UB-E02 and UB-E03 turn automatic status on at power-on; a job's `ESC @` turns it off. A TM-T88VII with DIP switch 2-1 on keeps it on after `ESC @`. A frame's first byte fails the `DLE EOT` mask, so `Status` would read it as "unsupported". - A byte string inside a command's parameters that matches a real-time command is executed as one: image or `raw` bytes that hold `10 04 n` make the printer send a status byte during a send. +- Buffers: + - Each model keeps a receive buffer per interface. + - The UB-E02 board adds a 16 KB buffer for data from the host, and 512 bytes for data to it. The UB-E03's guide gives no size. + - The renderer uses neither the downloaded buffer nor NV graphics, since images go inline with each job. + - A job larger than the buffers still streams. From the factory, each model is BUSY while its receive buffer is full or it is offline, and the write waits. No guide says how BUSY reaches TCP. + - What the buffers hold can print after a send that failed or was cut off (job-store.md decision 23). On a TM-T88IV behind a UB-E02, that is up to about 20 KB, plus the host's socket buffer. - Settings that change layout, on the TM-T88VII and TM-m50II: 58 mm paper, 48/36 column mode, automatic paper reduction (top and bottom margins, blank lines, barcode and character height), and the top margin. - SNMP on the boards and the newer printers reports status without the print connection. Not researched further. @@ -343,8 +352,8 @@ WHERE THE REPORTS DISAGREE OR ARE UNSURE - `GS r 1`'s fixed bits: Epson's page contradicts itself. Stage 4a's first step reads what the TM-T88VII sends. - Whether automatic-status frames reach a port 9100 client: unverified (job-store.md says the same). Stage 4a's first step. - Whether the TM-T88VII's TM-T88V emulation brings near-end back to `DLE EOT 4`: unknown. +- Which board the owner's TM-T88IV has, a UB-E02 or a UB-E03, and how its DIP switch 1-2 is set: unchecked. - Head-to-cutter distances are "approximately" in Epson's guides; the drawn preview marks them unverified until checked on paper. -- The TM-m50II's receive buffer was not checked. - Every measurement used Expr v1.17.8; v1.18.1 was read on GitHub, not built. Stage 2a records the size with the version it pins. SOURCES @@ -356,6 +365,7 @@ SOURCES - TM-T88VII TRG M00138506 Rev. G, a third-party copy: https://www.123inkt.be/pdf/TM-T88VII_manual.pdf - TM-m50II TRG M00153106 Rev. G: https://files.support.epson.com/pdf/pos/bulk/tm-m50ii_trg_en_rev_g.pdf - UB-E02 TRG Rev. A: https://files.support.epson.com/pdf/pos/bulk/ube02_trg_reva.pdf; UB-E03 TRG, p. 50: https://www.manualslib.com/manual/1807854/Epson-Ub-E03.html?page=50 + - Buffers: TM-T88IV TRG pp. 23 and 36-40; TM-T88VII TRG pp. 28, 71, 112 and 116; TM-m50II TRG pp. 27, 58 and 102; UB-E02 TRG section 4.1.1, p. 4-2. - The ESC/POS command reference, read in a browser, since it refuses automated fetches: `dle_eot.html`, `gs_lr.html` (`GS r`), `esc_2.html`, `esc_3.html`, `gs_cp.html` (`GS P`), `gs_cv.html` (`GS V`), `esc_lt.html` (`ESC t`), `gs_la.html` (`GS a`), `realtime_commands.html`, and the model pages `tmt88iv.html`, `tmt88vii.html` and `tmm50ii.html`, under https://download4.epson.biz/sec_pubs/pos/reference_en/escpos/. ## Overview