Skip to content

Support D11_H#36

Open
corpix wants to merge 3 commits intolabbots:mainfrom
corpix:d11_h
Open

Support D11_H#36
corpix wants to merge 3 commits intolabbots:mainfrom
corpix:d11_h

Conversation

@corpix
Copy link

@corpix corpix commented May 28, 2025

just got this printer, discovered this project and been wondered it is not working, so decided to fix :)

related: #8

device model was updated only on label size change, this affects what we use to connect to device
@xb4rt
Copy link

xb4rt commented Jul 7, 2025

I had some problems with D11_H printer - it didn't print anything - just empty labels. I changed the command: start print to the line ( 2 bytes of data in place of one)
await self.send_command(RequestCodeEnum.START_PRINT, b"\0x00\x01")
The printer parameters:
Software Version : 10.32
Hardware Version : 10.25

@corpix
Copy link
Author

corpix commented Jul 12, 2025

Thats interesting. Is this represents amount of "pages" to print? Seen this referred as v4 in similar project which packs number of pages to print in 2 byte big endian (+ some additional data).

I have tried to apply the patch and for me this gives empty labels:

diff --git a/NiimPrintX/nimmy/printer.py b/NiimPrintX/nimmy/printer.py
index fa52095..bf51bec 100644
--- a/NiimPrintX/nimmy/printer.py
+++ b/NiimPrintX/nimmy/printer.py
@@ -263,7 +263,7 @@ class PrinterClient:
         return bool(packet.data[0])
 
     async def start_print(self):
-        packet = await self.send_command(RequestCodeEnum.START_PRINT, b"\x01")
+        packet = await self.send_command(RequestCodeEnum.START_PRINT, b"\x00\x01")
         return bool(packet.data[0])
 
     async def end_print(self):

@MultiMote
Copy link

MultiMote commented Jul 13, 2025

@corpix If I'm not mistaken, D11_H uses 7-data-bytes PrintStart packet, not 1 or 2.

55 55 01 07 00 01 00 00 00 00 00 XX aa aa
       │  │  └──┤  └──┴──┴──┘  │  │
       │  │     │   Always 0   │  └─ Checksum
       │  │     │              └─ Page color (unknown use)
       │  │     └─ Total pages (sum of page quantity of each page)
       │  └─ Data length
       └─ PrintStart command

@pntasle
Copy link

pntasle commented Feb 1, 2026

Thanks to your fix, it now works like a charm with my D11_H ! This should be committed to main.
Thanks to good-guy-coder for bring this to us at first place.
Even if NiimBlue is now doing quite a good job, It would be cool to have a standalone executable.
Thanks for your efforts guys

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.

4 participants