-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Compatibility with M220 #13
Comments
Thanks for the report. Is this printed in continuous paper mode in the cups driver for the m110? Actually when I made the change to support continuous paper in the filter for the m110 I did not test it because I do not have continuous paper. So it is possible that the same thing could happen with the m110. When the continuous paper arrives I will test it. |
Thank you for your quick reply and all your effort for this project. |
From the Phomemo m220 manual I can confirm that the m220 is 203dpi, so if the m220 can only print 1200 lines at a time, the maximum print size would be approximately 5.9inch (15cm) high. |
I can also confirm there is an issue with the M220 using the Phomemo-M110.ppd.gz. The printer refuses to print anything longer than a 40mm label without sending a form feed (Gap label paper) . I installed the lame Labelife app from Phonemo on a spare Win10 laptop and it can print a 50mm X 80mm label without any issues. So, there is something different about the way the M220 processes print jobs. Let me know if you want me to run any specific tests to troubleshoot the issue. B |
The code that sends out a GSv0 command every 255 lines seems like it should be eliminated, even on the M110. Summary of problem with gaps every 255 pixel rows on M220
|
@bleriotx |
Here you go! My M220 pcap confirms what you found. The Labelife Windows app only sends on GSV0, at the beginning of the print data. Let me know what else you need. Appreciate the fast response. B |
I did some pcap analysis and wrote up my findings. B |
I was able to get a good 50x80mm print on my M220. @daig0rian was correct - the CUPS filter was breaking up the image into 255 line segments instead of sending the whole image at once to the printer. I modified the CUPS filter file (/usr/lib/cups/rastertopm110). Comment out the original code on line 123: I can now print a test page correctly on a 50x80mm label. I will continue to test to make sure this fixes the printing on large labels. B |
@bleriotx Thanks for the great research and testing.
![]() |
@bleriotx I also checked your two files. About M220_bug_writeup.pdf |
@daig0rian I forked the project and created a pull request. B |
After further testing, I am satisfied the modifications made to the CUPS filter make it compatible with the M220. NOTE: I do not have an M110 so I do not know if this broke compatibility. B |
I recently got an M220 and tried it with the M110 driver.
![Gaps_after_each_GS_v_0](https://private-user-images.githubusercontent.com/1005958/246657861-e45ba900-8621-4333-986f-ba101545df04.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NTgyNzUsIm5iZiI6MTcyMDQ1Nzk3NSwicGF0aCI6Ii8xMDA1OTU4LzI0NjY1Nzg2MS1lNDViYTkwMC04NjIxLTQzMzMtOTg2Zi1iYTEwMTU0NWRmMDQuanBlZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE2NTkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdiZTI3YWJiM2RmN2M0MTM1OTllMGU1MjExMWM2YjIxNTA5ZDM5ZjcwYTBmOWFhYTgzNzIzNThhMDA1NjgyNDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VpeGgoXnYrtEtjptktNBepamh1qDHh1yr2_Qivb-uDA)
I found out that the M220 treats every GS v 0 as a separate print job introducing line feed and back feed resulting in a gap of approx. 6 mm.
I discovered that the M220 supports at most 1200 lines per GS v 0 command. Limiting the maximum printable size to 72 mm x 150 mm
The text was updated successfully, but these errors were encountered: