Skip to content
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

SUNMI "r" problem with a lots of test and extra infos #527

Open
attilalenart opened this issue Jun 21, 2024 · 1 comment
Open

SUNMI "r" problem with a lots of test and extra infos #527

attilalenart opened this issue Jun 21, 2024 · 1 comment

Comments

@attilalenart
Copy link

attilalenart commented Jun 21, 2024

Dear @DantSu ,

Your lib is so nice, its work with the most POS printers, congrats.
We used for a lot projects.

Ive a new issue with a SUNMI device, as i read some other customers has.
Ofc first of all, i have read the issues here.

Most of them called an "r" problem:
#509
#471
#317

Plus one, there is a tip:
#204
Ive tested the suggested solution, its not working.

Below ive attached some photos about the test.

Some remark:
On a full size receipt u see the "r" symbols. Its mostly at the line start and at the end. But if u look a little closer, u notice the field/column style blocks open and close tags marked by "r" char.

So, first plan was change the encoding. The lib built in encoding prints not working, but this info is online in two different docs.
https://sunmi-ota.oss-cn-hangzhou.aliyuncs.com/DOC/resource/re_en/SunmiPrinter%20Developer%20documentation1.1.181207.pdf
https://file.cdn.sunmi.com/SUNMIDOCS/%E5%95%86%E7%B1%B3%E5%86%85%E7%BD%AE%E6%89%93%E5%8D%B0%E6%9C%BA%E5%BC%80%E5%8F%91%E8%80%85%E6%96%87%E6%A1%A3EN-0224.pdf

If i changed the encodings the qr and barcode is printed perfect, but the texts are empty.
This confirms that there is a problem with the char encoding. (cuz empty)

But! from the pdf-s only working with 15 and 16 encodings (15 "CP928"; 16 "Windows-1252";) otherwise texts are empty.

A lot times in the issues u asked the guys its the printer support ESCPOS, the answer is yes, on the pictures the qr barcode and other infomations are corrent. Only the open and close tags has a bug, or something else.
https://ota.cdn.sunmi.com/DOC/resource/re_en/ESC-POS%20Command%20set.docx

Plus one more information, ive installed a RawBT application from Play store and printed a some ESCPOS examples.
Do you have any ides, how to solve this problem?

IMG_1079
IMG_1078
IMG_1080
IMG_1081
IMG_1082

@vikrammani-t2s
Copy link

if text print not working na , can you use image printing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants