-
Notifications
You must be signed in to change notification settings - Fork 22
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
Content below image gets corrupted on everycom printer #16
Comments
It may have something to do with the buffer of the printer receiving too much data too quickly. If it receives data quicker than it can handle the buffer will overflow and ignore incoming data. This could cause the printer to miss part of the image data and start printing corrupted text. How are you sending the data to the printer? Using WebBluetoothReceiptPrinter, or another library? One thing you could try is to connect it using USB instead, for example using WebUSBReceiptPrinter. If it works that way, we can rule out the printer itself and determine it is indeed the way the data is send. |
@NielsLeenheer We are using cordova-plugin-ble-central to transfer the buffer to printer, we also tried with Bluetooth Classic, but the issue is still reproducible. |
Hi @NielsLeenheer, Any update on this issue? Please let me know if you need any additional info for debugging this issue. |
Issue Summary:
When using EscPosEncoder to print images in raster mode, the content below the image gets corrupted. This issue is reproducible on the Everycom bluetooth thermal 3-inch printer(EC400), whereas it works fine on the Shreyans printer.
Steps to Reproduce:
Expected Behavior:
The image and the content below it should be printed correctly without getting corrupted.
Actual Behavior:
Additional Details:
Code Used for Printing:
Print Images:
Resolution 416x416:
The image prints correctly, and the content below it is visible without issues.
Resolution 432x432:
First Print: Only the image is visible.
Second Print: Corrupted text, followed by the content below the image.
Printer Details:
The attached image provides the printer model and details used during testing.
The text was updated successfully, but these errors were encountered: