Doesn't work on windows
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.
I have the same error, but im on macos! I also have the exact same printer!!
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
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!