vivier / phomemo-tools

CUPS driver for Phomemo M02 Label Printer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Other Phomemo printer repos

taylorjdlee opened this issue · comments

It seems there's a few other repos that worked on different Phomemo printers we should be able to add more driver support by taking a look into these repos:

Phomemo D30 (should be able to derive headers footers from here): https://github.com/polskafan/phomemo_d30/blob/master/print_text.py

M02s (already made a PR for this): https://github.com/privatwolke/phomemo-tools

M02 Pro (seems to similar to the M02s both are 300 dpi): https://github.com/noullove/phomemo-tools

T02 (was reversed with help from this project): https://github.com/iamjackg/esp32-phomemo-gameboy-printer

P12Pro, D35, D30 and M220 (Not too sure how much we can derive from here): https://github.com/Knightro63/phomemo

M03 (should be able to derive headers/footers from here): https://github.com/whitechip4/Phomemo-M03-Mod/blob/master/phomemo_m03.py

P12 (should be able to derive headers/footers from here): https://github.com/S1artie/InternetOfTrash/blob/master/labelprinter/labelprinter.py

But yeah it's a good start and it'll be nice to get this repo supporting as many Phomemo printers as possible!

@vivier @daig0rian let me know your thoughts!

So looking at this it seems the T02 has the same protocol as the M02 https://github.com/iamjackg/esp32-phomemo-gameboy-printer/blob/main/src/main.cpp. The Phomemo website all but confirms this by saying "Phomemo M02S mini photo printer is the upgraded version of the M02/T02 printer"

The P12 also has the same protocol as the M02 looking at this code https://github.com/S1artie/InternetOfTrash/blob/master/labelprinter/labelprinter.py

The M03 also seems to have a similar protocol to the M02 but in this code the feed line number is 0x04 instead of 0x02 https://github.com/whitechip4/Phomemo-M03-Mod/blob/master/phomemo_m03.py

I'm also sure the M02PRO is the same as the M02S if you look at the Phoememo webpage they even share the same labels (like the M110 and M120) plus this git repo https://github.com/noullove/phomemo-tools

Thanks for the valuable information. I didn't realize there were so many repositories, so it was helpful to get the big picture.
I looked at the headers and footers of each project for a bit. One project seemed to be using the dump as-is and avoiding parameter analysis. One project seemed to be trying to parse the parameters in detail and succeeding. One project appeared to be sending from a block marker with almost no headers.

I think it is worthwhile to include headers and footers that have been analyzed in detail. However, I was concerned that incorporating something with little consideration might exhaust repository owner with more inquiries from users who expected their printers to work well.

Yes I agree I guess we'll wait until more users come across this repo and want their printers supported