From 69b52e73efd46f0a0a97f85c6acc53e2ad11500e Mon Sep 17 00:00:00 2001 From: "Nikki (wiki profile)" Date: Fri, 9 Oct 2026 08:50:35 +0100 Subject: [PATCH] Ingest Kodak P210R reverse-engineering research --- ...kodak-p210r-reverse-engineering-project.md | 81 +++++++++++++++++ index.md | 14 +-- log.md | 9 ++ ...p210r-computer-compatibility-2026-10-08.md | 89 +++++++++++++++++++ 4 files changed, 187 insertions(+), 6 deletions(-) create mode 100644 concepts/kodak-p210r-reverse-engineering-project.md create mode 100644 raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md diff --git a/concepts/kodak-p210r-reverse-engineering-project.md b/concepts/kodak-p210r-reverse-engineering-project.md new file mode 100644 index 0000000..cf7fea2 --- /dev/null +++ b/concepts/kodak-p210r-reverse-engineering-project.md @@ -0,0 +1,81 @@ +--- +title: Kodak P210R Reverse-Engineering Project +created: 2026-10-09 +updated: 2026-10-09 +type: concept +tags: [kb, concept, tool, workflow, open-question] +sources: [raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md] +confidence: medium +contested: false +--- +# Kodak P210R Reverse-Engineering Project + +## Project goal + +Develop a computer-side printing path for the Kodak Mini 2 Retro P210R by documenting its proprietary Bluetooth protocol, reconstructing its image format, and implementing a reliable RFCOMM bridge or CUPS backend. Treat this as a potential reverse-engineering project rather than a quick compatibility fix. + +## Printer details + +- Product: Kodak Mini 2 Retro, model P210R; Prinics Co., Ltd is the underlying manufacturer. +- Interface: Bluetooth Classic. The printer advertises in the `KODAK Instant-XXXX` format and has no confirmed USB, Wi-Fi, IPP, CUPS, or desktop-driver path. +- Printing system: 4PASS dye sublimation, 2.1 × 3.4 inch output at 291 × 300 dpi, using the ICRG-260 combined ribbon-and-paper cartridge. +- Supported workflow: transfer the image to a phone and print through the Kodak Photo Printer iOS or Android app. + +## Current state + +Research dated 2026-10-08 found no open desktop driver or complete protocol implementation. A public `oldmud0` gist provides only an initial analysis of the Prinics app and traffic: + +- Bluetooth Serial Port Profile appears to carry the protocol over RFCOMM. +- Messages use an observed header containing a message ID, two unknown bytes, one zero-padding byte, and a big-endian 32-bit payload length. +- Several command IDs have been observed, but their complete meanings and state transitions remain unknown. +- The expected image encoding, compression, colour conversion, and print-job framing have not been reconstructed. +- The app contains support for Wi-Fi transport in some Prinics configurations, but the P210R itself is reported as Bluetooth-only. + +The practical computer workflow remains computer → phone → Kodak app → printer. A native bridge is feasible in principle but unproven. + +## Required tools + +### Capture and observation + +- Linux host with a compatible Bluetooth Classic adapter. +- `bluetoothctl`, `btmon`, and Wireshark for HCI/RFCOMM capture and dissection. +- Android device with developer access, `adb logcat`, Frida, and Objection for runtime observation of `com.prinics.kodak.photoprinter`. + +### App and binary analysis + +- `jadx` and `apktool` for APK inspection. +- Frida for tracing command construction, image conversion, and socket writes. +- Ghidra, IDA Pro, Binary Ninja, or radare2 if protocol or image processing resides in a native `.so` library. + +### Implementation and testing + +- Python with direct Bluetooth sockets or a serial interface over RFCOMM; BLE-focused libraries are not sufficient for a Bluetooth Classic SPP target. +- A packet builder, response logger, replay harness, and test-image corpus. +- Access to the printer, charged battery, consumable cartridges, and a controlled test plan that limits wasted media. +- Later milestone: a Linux/Windows bridge, simple command-line print interface, or CUPS backend plus an encoder for the printer's native raster format. + +### Optional hardware work + +- FCC internal photographs to identify the MCU and test points. +- Logic analyser and a correctly voltage-matched UART interface. +- ST-Link or J-Link plus OpenOCD/J-Link Commander if accessible SWD/JTAG pads and a supported MCU are confirmed. + +## Suggested milestones + +1. Confirm the RFCOMM channel and capture one complete successful print from app connection through job completion. +2. Correlate packet IDs with app methods, printer responses, and physical state changes. +3. Extract the exact raster-generation and colour-conversion pipeline from the APK or native library. +4. Replay a captured job safely, then generate a new minimal test image without the app. +5. Package the protocol implementation behind a command-line tool; consider CUPS only after repeatable printing works. + +## Risks and open questions + +- Packet semantics, checksums, flow control, and error recovery remain undocumented. +- Firmware revisions may alter commands or accepted image data. +- Hardware probing adds electrical and warranty risk and should follow software-only analysis, not precede it. +- Consumable cost makes disciplined capture and replay more important than trial-and-error fuzzing. + +## Related + +- [[raw/articles/kodak-p210r-computer-compatibility-2026-10-08|Full research handoff and source URLs]] +- [[index|Wiki index]] diff --git a/index.md b/index.md index 7a7dd22..fe4fd5b 100644 --- a/index.md +++ b/index.md @@ -3,7 +3,7 @@ > Content catalog for personal-wiki (`https://gitea.maukit.com/hermes/personal-wiki`). > Local root: `/opt/data/wiki`. Profile: `~/profiles/wiki/` (isolated Hermes agent). > Shared with `floof` (Gitea push access). Read access: public repo clone. -> Last updated: 2026-10-08 | Total pages: 12 +> Last updated: 2026-10-09 | Total pages: 14 ## Raw Sources (`raw/`) - `raw/articles/` — web clippings, saved articles @@ -14,6 +14,7 @@ - `raw/articles/how-to-break-up-with-google-a-practical-step-by-step-migration-guide.md` — ezhosted.com: How to Break Up with Google: A Practical, Step-by-Step Migration Guide (Wayback snapshot 2026-05-20) - `raw/articles/google-workspace-mobile-account-migration.md` — verified source (Google Workspace cancel + Android account, official docs + Proton Easy Switch) - `raw/articles/best-stationery-uk-2026.md` — Danbury & Lovejoy: Best Stationery UK 2026 — Six Pieces Worth Buying (Jun 2026) +- `raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md` — research handoff on computer compatibility, partial protocol analysis, and requirements for reverse-engineering the P210R - `raw/articles/kindle-repair-code-2-jailbreak-recovery-handoff.md` — research handoff on PW5 Repair Code 2, recovery order, warranty, and serial-unbrick caveats - `raw/articles/uk-battery-video-doorbells-without-mandatory-subscriptions-2026-10-08.md` — research handoff comparing Reolink, Tapo, and eufy battery doorbells for UK subscription-free and local-server use @@ -26,14 +27,15 @@ - [[onlyoffice|OnlyOffice Document Server]] — OnlyOffice CE (AGPL-3) for docx in OpenCloud dockhand; compose reference only; see `/opt/data/raw-sources/onlyoffice-step-by-step.md` (2026-10-03) ### Concepts (topics, techniques, patterns, categories) -- [[stationery|Stationery]] — notebooks, pens, ink, paper, planners (UK market; picks from Danbury & Lovejoy Jun 2026) -- [[soul-md-introduction|SOUL.md — Introduction, Placement, and Three Approaches]] — agent identity file placement / method / 3 approaches (official + community + persona); raw sources ingested 2026-09-25 -- [[concepts/hermes-config-loader|Hermes Config Loader]] — multi-layered config system; YAML hierarchy, alias resolution, fallback providers, secrets handling; from 2026-10-08 config.yaml investigation -- [[moving-domain-email-away-from-google-workspace|Moving Domain Email Away from Google Workspace]] — full migration guide: choosing a host, steps, MX records, canceling Workspace - [[email-hosting|Email Hosting]] — options for hosting email for a custom domain -- [[mx-records|MX Records]] — DNS records that direct email delivery; key to switching providers +- [[concepts/hermes-config-loader|Hermes Config Loader]] — multi-layered config system; YAML hierarchy, alias resolution, fallback providers, secrets handling; from 2026-10-08 config.yaml investigation - [[how-to-break-up-with-google-a-practical-step-by-step-migration-guide|How to Break Up with Google: A Practical, Step-by-Step Migration Guide]] — layered de-Google strategy: identity → storage → daily tools → mobile; domain-first; self-hosting email warnings; provider comparisons - [[concepts/kindle-repair-code-2-and-jailbreak-recovery|Kindle Repair Code 2 and Jailbreak Recovery]] — PW5 boot-failure triage, safe recovery order, warranty context, and explicit warning that the older serial guide is unverified for PW5 +- [[concepts/kodak-p210r-reverse-engineering-project|Kodak P210R Reverse-Engineering Project]] — potential project to reconstruct the Bluetooth RFCOMM protocol, image format, and computer-side print bridge +- [[moving-domain-email-away-from-google-workspace|Moving Domain Email Away from Google Workspace]] — full migration guide: choosing a host, steps, MX records, canceling Workspace +- [[mx-records|MX Records]] — DNS records that direct email delivery; key to switching providers +- [[soul-md-introduction|SOUL.md — Introduction, Placement, and Three Approaches]] — agent identity file placement / method / 3 approaches (official + community + persona); raw sources ingested 2026-09-25 +- [[stationery|Stationery]] — notebooks, pens, ink, paper, planners (UK market; picks from Danbury & Lovejoy Jun 2026) ### Comparisons (side-by-side analyses) - [[uk-battery-video-doorbells-without-mandatory-subscriptions|UK Battery Video Doorbells Without Mandatory Subscriptions]] — Reolink, Tapo, and eufy compared; Reolink 2nd Gen with Home Hub recommended for local-server integration diff --git a/log.md b/log.md index e8b7208..5710a93 100644 --- a/log.md +++ b/log.md @@ -89,3 +89,12 @@ Appended to log - Validation: raw body matches the handoff and declared SHA-256; required frontmatter present; 2 outbound wikilinks valid; index completeness 0 missing - Pre-existing lint debt remains: 13 broken active wikilinks elsewhere in the wiki; neither new file adds a broken link - Files created or updated: `raw/articles/uk-battery-video-doorbells-without-mandatory-subscriptions-2026-10-08.md`, `comparisons/uk-battery-video-doorbells-without-mandatory-subscriptions.md`, `index.md`, `log.md` + +## [2026-10-09] ingest | Kodak P210R computer compatibility and reverse-engineering project +- Raw source preserved: `raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md`; ingestion frontmatter added and body SHA-256 verified as `4d8507712d5faf8c252f812c0a22526ea5d0981b48ad02ee0c25c8808682e605` +- Concept created: `concepts/kodak-p210r-reverse-engineering-project.md` covering printer details, current protocol state, required tools, milestones, risks, and open questions +- Index updated: raw source and concept added, Concepts sorted alphabetically, and total reconciled to 14 Layer 2 pages +- Taxonomy unchanged; the concept uses existing tags only +- Validation: new page required frontmatter present, 2 outbound wikilinks valid, raw hash valid, and index completeness 0 missing +- Pre-existing lint debt remains: 13 broken active wikilinks and older frontmatter/tag issues elsewhere; neither new file adds a broken link +- Files created or updated: `raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md`, `concepts/kodak-p210r-reverse-engineering-project.md`, `index.md`, `log.md` diff --git a/raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md b/raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md new file mode 100644 index 0000000..3829263 --- /dev/null +++ b/raw/articles/kodak-p210r-computer-compatibility-2026-10-08.md @@ -0,0 +1,89 @@ +--- +source_type: research_handoff +source_url: https://gist.github.com/oldmud0/4d8b50cc6fdba0dc301ac78f4f05082d +ingested: 2026-10-09 +sha256: 4d8507712d5faf8c252f812c0a22526ea5d0981b48ad02ee0c25c8808682e605 +--- +# Kodak P210R — can it print from a standard computer? + +**Short answer: not without workarounds. No Windows/Mac/Linux driver exists. The printer is Bluetooth-only and speaks a proprietary protocol through the mobile app.** + +## What it is + +- Model: Kodak Mini 2 Retro (P210R) +- Manufacturer: Prinics Co., Ltd (South Korea) — FCC ID PO5C210R; derivative C210R +- Connection: Bluetooth (Classic / BDR/EDR, 79 channels, 2.4 GHz, GFSK/π/4DQPSK) +- Technology: 4PASS dye-sublimation (not ZINK) +- Print: 2.1 × 3.4 in, 291 × 300 dpi +- Bluetooth name format: `KODAK Instant-XXXX` (XXXX = 4-digit combo), MAC address inside cartridge door +- Power: 620 mAh rechargeable, ~90 min charge, ~20 prints/charge +- Cartridge: ICRG-260 (4PASS ribbon + paper combined) + +## Direct computer compatibility + +**None confirmed.** The official product site explicitly says: *"Kodak photo printers and instant cameras work with a mobile app. To print photos stored on your computer, simply transfer the files to your smartphone and print via the Kodak app."* There is no USB, Wi-Fi, or standard printer-protocol interface (no CUPS/IPP/OPP driver). The app (`com.prinics.kodak.photoprinter`) is mobile-only (iOS/Android). + +## Workaround (no reverse engineering) + +Transfer image to phone → open Kodak Photo Printer app → pair via Bluetooth → print. This is the only supported method today. + +## Reverse-engineering status (partial) + +A public gist (`oldmud0`, ~1 hour of work) reverse-engineered `com.prinics.kodak.photoprinter`. + +- Transport: **Bluetooth Serial Port Profile (SPP)** — also supports Wi-Fi ad-hoc (port 56065) and Wi-Fi Direct (port 56067) in some configurations, but the P210R is Bluetooth-only per FCC. +- Protocol is **not OBEX**, not AirPrint, not standard printer protocols. +- Packet format (at least 8 bytes): + - `u8` msg id + - `u8` unknown + - `u8` unknown + - `u8` padding (0) + - `u32be` additional data length (0 to unbounded; ~2048/4096 practical max) + - `u8[...]` payload +- Observed packet IDs from traffic: + - `100, 1, 0` — first connect + - `82, 0, 0` — likely begin print + - `1, 0, 0`; `7, ?, 0`; `84, 0, 0`; `11, 0, 0`; `101, 1, 0`; `18, ?, ?`; `9, ?, ?` +- One 128-byte message structure: bytes 0–52 binary, 53–84 ASCII, 85–127 ASCII. + +## Required tools to complete a reverse-engineering pipeline + +### 1. Traffic capture / protocol observation +- Linux `bluetoothctl` / `hcitool` / `btmon` (Bluetooth Classic HCI trace) +- Android: `adb logcat`, Frida/Objection to hook the `Prinics` app +- iOS: Traffic interception with a TLS/mitm proxy (if Wi-Fi mode exists) +- `Wireshark` with BT_HCI / RFCOMM dissection (after capture via `btmon` → pcap conversion) + +### 2. APK / binary analysis +- `jadx` / `apktool` / `frida` to decompile `com.prinics.kodak.photoprinter` +- `strings`, `grep` for message IDs, command names, firmware update URLs +- `Ghidra` / `IDA Pro` / `Binary Ninja` for the native library (`.so`) handling print data +- `radare2` / `r2` for quick disassembly if no decompiler available + +### 3. Protocol reconstruction +- Python (`pybluez`, `bleak` — though this is Classic BT, not BLE; use `pyserial` over RFCOMM or direct `bluetooth` sockets) +- A reconstructed packet builder using the 8-byte header format above +- Test harness that sends observed packets and compares printer responses (led status, print output) +- Firmware update analysis (the app pushes firmware; observe via `bluetoothctl` / Wireshark during update) + +### 4. Computer-side bridge +- A Linux/Windows bridge that opens RFCOMM channel to the printer, sends reconstructed packets, and exposes a simple print interface or CUPS backend +- If the printer really uses a proprietary image format rather than standard TIFF/JPEG-over-BT, build an image-to-printer-format encoder + +### 5. Firmware / hardware (optional, deeper) +- FCC internal photos (FCC ID PO5C210R) show printer internals — can identify MCU/chipset for potential UART/JTAG dump +- SWD / JTAG adapter (ST-Link, J-Link) if test pads accessible on the PCB +- `J-Link Commander`, `OpenOCD` for firmware extraction if chip is identified + +## Assessment + +**Not practical as a quick project.** The partial reverse engineering exists (packet structure, transport modes, command IDs) but no open implementation exists. Completing it requires: +- Decompiling the Android APK thoroughly (the app handles both image editing and the protocol) +- Confirming the exact image encoding / compression the printer expects +- Building a RFCOMM/SFP bridge that is reliable enough to print +- Dealing with potential firmware updates that change the protocol + +If your goal is just to print from a computer, the practical answer remains: send the file to a phone, print via the app. + +--- +*Self-ID confirmation (per session): model switched openrouter/free. Response written directly (no preamble). Source: https://gist.github.com/oldmud0/4d8b50cc6fdba0dc301ac78f4f05082d (protocol overview); https://kodakphotoprinter.com (official product site — mobile-only); FCC ID PO5C210R (Prinics, BT Classic).*