catprinter icon indicating copy to clipboard operation
catprinter copied to clipboard

Doesn't work on windows

Open nakanakaii opened this issue 9 months ago • 3 comments

I tried to run this code on my printer MXW01 but it doesn't print anything on windows but it does on macOS

output on Windows:

> py print.py -d XX:XX:XX:XX:XX:XX -l debug test.jpg
⏳ Applying Floyd-Steinberg dithering to image...
✅ Done.
✅ Read image: (384, 384) (h, w) pixels
✅ Generated BLE commands: 17978 bytes
⏳ Connecting to XX:XX:XX:XX:XX:XX...
✅ Connected: True; MTU: 512
⏳ Sending 17978 bytes of data in chunks of 509 bytes...
⏳ Done printing. Waiting for printer to be ready...
🛑 Timed out while waiting for printer done event. Exiting.

but on macOS

$ py print.py -d XX:XX:XX:XX:XX:XX -l debug test.jpg
⏳ Applying Floyd-Steinberg dithering to image...
✅ Done.
✅ Read image: (384, 384) (h, w) pixels
✅ Generated BLE commands: 17978 bytes
⏳ Connecting to 48:0F:57:20:38:7F...
✅ Connected: True; MTU: 512
⏳ Sending 17978 bytes of data in chunks of 509 bytes...
⏳ Done printing. Waiting for printer to be ready...
✅ Done.

nakanakaii avatar Mar 24 '25 22:03 nakanakaii

I have the same error, but im on macos! I also have the exact same printer!!

dropalltables avatar Apr 13 '25 00:04 dropalltables

I have same error.

It looks like it was successful on MacOS, but it doesn't actually print. It seems to have been fixed in moblin, as described here.

https://github.com/NaitLee/Cat-Printer/issues/114

https://github.com/eerimoq/moblin/blob/main/Moblin/Integrations/CatPrinter/CatPrinter.swift https://github.com/eerimoq/moblin/blob/main/Moblin/Integrations/CatPrinter/CatPrinterCommandsMxw01.swift

nantokaworks avatar Apr 14 '25 23:04 nantokaworks

Fixed, see my friend's version for a working version:

https://github.com/jeremy46231/MXW01-catprinter

I made a webUI based on it here:

https://github.com/dropalltables/catprinter (https://catprinter.vercel.app)

Hope this helps!

dropalltables avatar Apr 20 '25 18:04 dropalltables