82 lines
4.4 KiB
Markdown
82 lines
4.4 KiB
Markdown
---
|
||
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]]
|