tft: all four checksums solved (three header CRCs, trailer for any length)
0x44 = CRC of the resource area, 0xC4 = CRC of header [0,0xC4), 0x18C = CRC of [0xC8,0x18C); trailer = CRC of the whole file ^ (len & 0xFF) ^ 0x56. tft.seal() recomputes all of them. Verified against 24 Editor-made files of 8 lengths. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b2835334a
commit
7337e693a5
6 files changed
+124
-22
No files matched your search
+4
-4
@@ -29,7 +29,7 @@ byte for byte, or a file written by nxhmi was opened in the Editor and showed th
|
||||
- **Rendering**: a component type counts as covered when every test case of it is pixel-identical
|
||||
to the Editor canvas (name tags and selection outline excluded). Invisible types (timer,
|
||||
variable, hotspot, touch cap) count when they draw nothing, like the Editor.
|
||||
- **`.tft` milestones** (8): layout map; layout table; trailer checksum (half: same-length only);
|
||||
- **`.tft` milestones** (8): layout map; layout table; trailer checksum;
|
||||
the three header checksums; compiled page/component format; event-code tokens; pictures and fonts
|
||||
in the TFT; a builder that produces a file the display accepts.
|
||||
|
||||
@@ -110,13 +110,13 @@ byte for byte, or a file written by nxhmi was opened in the Editor and showed th
|
||||
|---|---|
|
||||
| File layout | mapped (header, embedded Nextion files, project section, trailer) |
|
||||
| Layout table | decoded (fixed XOR key) |
|
||||
| Trailer checksum | works for same-length edits; **unknown for different lengths** (stuck) |
|
||||
| 3 header checksums (0x44, 0xC4, 0x18C) | not analysed |
|
||||
| Trailer checksum | solved for any length (`tft.trailer`); one model measured |
|
||||
| 3 header checksums (0x44, 0xC4, 0x18C) | solved (`tft.header_checksums`, `tft.seal`) |
|
||||
| Compiled page format, event-code tokens | first look only |
|
||||
| Pictures and fonts inside the TFT | not analysed |
|
||||
| Licensing | every `.tft` embeds Nextion's firmware files; the repo must never ship them -- a builder would read them from the user's own Editor installation |
|
||||
|
||||
## Suggested next steps
|
||||
1. `.tft`: try the remaining trailer-checksum ideas listed in NOTES.md; then the compiled page format.
|
||||
1. `.tft`: the compiled page/component format and the event-code token table (see NOTES.md).
|
||||
2. The anti-aliasing routine of Intelligent rounded shapes (switch knob/track, ComboBox).
|
||||
3. The premultiplied-alpha colour step for transparent JPEG pictures (a few levels off).
|
||||
Reference in new issue
Block a user