-
Notifications
You must be signed in to change notification settings - Fork 197
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
just print the first time by usb #34
Comments
Same problem here... it does not seem related to this product : any attempt to access the printer only works once (then, needs to turn off/on printer again). If someone has an idea... |
cups filter is no way related to the method CUPS uses to access printer itself. |
hello fblondiau, i discover that it was only the fist 23 characters which does not print. So if you try printing a first line with 23 white characters it will work. |
I have the same problem with the ZJ5890K , it prints once and then when i try a second print the paper just moves a little and it halts the printer. Then a printer reset is needed. This problem was not present with the previous batches that we purchased, but it seems that the manufacturer released a new firmware (in february 2021) which we found out it is causing the issue. The issue seems not related to the rastertozj filter, it is rather related to the usb backend and libusb. You can checkout the gist below for more information: https://gist.github.com/Irdroid/09017dea81b9397bca2d71542633d21c |
Can you share your code for printing the first line with 23 white characters? |
I have just identified why it is doing so. It has nothing to do with the rastertozj cups filter, it has to do with the usb backend and the org.cups.usb.quirks where special parameters are defined for different printer models. This file is loaded and parsed by the usb backend each time the printer prints For the USB printer that I am using I have defined the following at the last line of the cups usb quirks file (org.cups.usb-quirks): 0416:5011 unidir soft-reset 0416:5011 is the USB printer VID ( Vendor ID) and PID (product ID) ( I am using POS5890K) but I think most of the Zijiang USB printerd have this VID / PID These printers have one endpoint for configuration and one endpoint for writing data. If the above is not defined , the printer reports bidirectional and it will either stall or The second parameter will instruct libusb to issue a soft reset affer each print job on the usb bus for this device. |
it only prints the first time when prints by usb . When i run the program for second time it does not print (i have to reboot the printer). It seems to be a problem with the usb because by ehternet prints ok.
The text was updated successfully, but these errors were encountered: