Conversation
should fix "unpack requires byffer of 4 bytes" error reference: 'https://github.com/eigger/hass-niimbot/blob/836cb4621881cf01c10a12ac492b0f188998269b/custom_components/niimbot/niimprint/printer.py#L413'
device model was updated only on label size change, this affects what we use to connect to device
|
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) |
|
Thats interesting. Is this represents amount of "pages" to print? Seen this referred as 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): |
|
@corpix If I'm not mistaken, D11_H uses 7-data-bytes PrintStart packet, not 1 or 2. |
|
Thanks to your fix, it now works like a charm with my D11_H ! This should be committed to main. |
just got this printer, discovered this project and been wondered it is not working, so decided to fix :)
related: #8