Skip to content

Add Ablemark M60 / Marklife X2 printer support#18

Merged
tomLadder merged 1 commit into
mainfrom
feat/m60-x2-support
May 4, 2026
Merged

Add Ablemark M60 / Marklife X2 printer support#18
tomLadder merged 1 commit into
mainfrom
feat/m60-x2-support

Conversation

@tomLadder
Copy link
Copy Markdown
Owner

New X2 protocol (protocol 8) with zlib-compressed bitmap encoding, reverse-engineered from the Marklife APK and confirmed via Ghidra analysis of libCode.so (DFunction.code() = standard zlib compress).

  • X2 protocol: compressed bitmap (1F 10), density mapping 1→3/2→8/3→14
  • M60 device profile: BLE name prefixes "M60"/"X2", 1ms packet delay
  • Added fflate dependency for cross-platform zlib compression

New X2 protocol (protocol 8) with zlib-compressed bitmap encoding,
reverse-engineered from the Marklife APK and confirmed via Ghidra
analysis of libCode.so (DFunction.code() = standard zlib compress).

- X2 protocol: compressed bitmap (1F 10), density mapping 1→3/2→8/3→14
- M60 device profile: BLE name prefixes "M60"/"X2", 1ms packet delay
- Added fflate dependency for cross-platform zlib compression
@tomLadder
Copy link
Copy Markdown
Owner Author

Adds experimental support for #17

@tomLadder tomLadder merged commit b152ce8 into main May 4, 2026
2 checks passed
@tomLadder tomLadder deleted the feat/m60-x2-support branch May 4, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant