esc_pos_bluetooth icon indicating copy to clipboard operation
esc_pos_bluetooth copied to clipboard

iOS printing weird characters

Open andrecmp opened this issue 4 years ago • 14 comments

only in iOS, android ok

andrecmp avatar Mar 17 '20 12:03 andrecmp

Hi there, To let me understand better the issue, could you please provide your code and printer model, please?

andrey-ushakov avatar Mar 17 '20 12:03 andrey-ushakov

Hi,

First I would like to thank you for the work done, it was very good, congratulations!

I used the same example from the github package.

I use a printer purchased in Brazil, 58mm, with the name "Lucky Amazonia"

Only in iOS not printing correct

Attached are the print.

Thank you.

Em ter., 17 de mar. de 2020 às 09:46, Andrey [email protected] escreveu:

Hi there, To let me understand better the issue, could you please provide your code and printer model, please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrey-ushakov/esc_pos_bluetooth/issues/4#issuecomment-600050956, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJIKDZALK5QTJYNR2JJ4F3RH5WMFANCNFSM4LNMKMGA .

andrecmp avatar Mar 17 '20 13:03 andrecmp

Could you please attach a photo of the output you have and a link to your printer to check its specifications? Thanks!

andrey-ushakov avatar Mar 17 '20 14:03 andrey-ushakov

I sent a print in the previous email.

Printer link: https://produto.mercadolivre.com.br/MLB-1109550893-mini-impressora-portatil-sem-fio-termica-58mm-android-ios-_JM?quantity=1&variation=35009959711

Em ter., 17 de mar. de 2020 às 11:06, Andrey [email protected] escreveu:

Could you please attach a photo of the output you have and a link to your printer to check its specifications? Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrey-ushakov/esc_pos_bluetooth/issues/4#issuecomment-600090362, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJIKD5AEPOFF65EXAVW2ELRH57VTANCNFSM4LNMKMGA .

andrecmp avatar Mar 17 '20 14:03 andrecmp

I found the printer on Amazon ...

It seems that it is not compatible with iOS .... :( https://www.amazon.com/Bluetooth-LOSRECAL-Portable-Personal-Compatible/dp/B07ZNN6HFV/ref=sr_1_2_sspa?crid=2N35GLPR4NKF&keywords=pos%2Bprinter%2Bbluetooth&qid=1584455417&sprefix=printer%2Bpos%2Bb%2Caps%2C318&sr=8-2-spons&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExRVVTWUE5TENVS0tMJmVuY3J5cHRlZElkPUEwNDYwNjQ1MU5FM1FET09OVE9HRCZlbmNyeXB0ZWRBZElkPUEwMjkwMTY5MVk0V0RPOENTNjBTSiZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU&th=1

https://www.amazon.com/Bluetooth-LOSRECAL-Portable-Personal-Compatible/dp/B07ZNN6HFV/ref=sr_1_2_sspa?crid=2N35GLPR4NKF&keywords=pos%2Bprinter%2Bbluetooth&qid=1584455417&sprefix=printer%2Bpos%2Bb%2Caps%2C318&sr=8-2-spons&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExRVVTWUE5TENVS0tMJmVuY3J5cHRlZElkPUEwNDYwNjQ1MU5FM1FET09OVE9HRCZlbmNyeXB0ZWRBZElkPUEwMjkwMTY5MVk0V0RPOENTNjBTSiZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU&th=1

Em ter., 17 de mar. de 2020 às 11:25, André Chateaubriand < [email protected]> escreveu:

I sent a print in the previous email.

Printer link:

https://produto.mercadolivre.com.br/MLB-1109550893-mini-impressora-portatil-sem-fio-termica-58mm-android-ios-_JM?quantity=1&variation=35009959711

Em ter., 17 de mar. de 2020 às 11:06, Andrey [email protected] escreveu:

Could you please attach a photo of the output you have and a link to your printer to check its specifications? Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrey-ushakov/esc_pos_bluetooth/issues/4#issuecomment-600090362, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJIKD5AEPOFF65EXAVW2ELRH57VTANCNFSM4LNMKMGA .

andrecmp avatar Mar 17 '20 14:03 andrecmp

I have a printer that looks exactly the same, however, the model number is different. Mine works without any issues on iOS.

BTW, I can't find the photo your test print... Could you please attach it? I would likr to understand better what happening.

IMG_1079

andrey-ushakov avatar Mar 17 '20 14:03 andrey-ushakov

Ok print_model

andrecmp avatar Mar 17 '20 14:03 andrecmp

Hi @andrecmp ,

Have you resolved the issue? Here is my printer' selftest (I guess we have the same hardware but a bit different firmware). You can see 2 major differences:

  1. I'm using ASCII mode
  2. My current CodePade is 0 (OEM437)

Please first try to change your printer's mode to ASCII (you will find the button combination for that in the manual).

IMG_1155 2

andrey-ushakov avatar Mar 20 '20 08:03 andrey-ushakov

Hi, @andrey-ushakov

  1. I didn't find the button combination for that in the manual to mode ASCII
  2. I moved to current page 0

problem continues, may be firmware version...

PrinterTools printer print_test

andrecmp avatar Mar 20 '20 13:03 andrecmp

Ok, here is the instruction. It could be a bit tricky and your printer may print a self-test instead at the beginning.

IMG_1157_HEIC

andrey-ushakov avatar Mar 20 '20 13:03 andrey-ushakov

does not appear ASCII mode :(

print_select

andrecmp avatar Mar 20 '20 14:03 andrecmp

Oh... Then we probably have really different firmwares..

That's still a bit weird because as far I understand, you have no issues under Android. As a last chance, you probably could play with code tables as described here: https://github.com/andrey-ushakov/esc_pos_utils#using-code-tables

andrey-ushakov avatar Mar 20 '20 14:03 andrey-ushakov

Under iOS, have you tried to print using a test app such as this one: https://apps.apple.com/fr/app/pos-printerv1-0/id1133503452

?

andrey-ushakov avatar Mar 20 '20 15:03 andrey-ushakov

Probably be the firmware... :( Android is perfect

I used this Pos-Printer V1.0 app and it worked

andrecmp avatar Mar 20 '20 19:03 andrecmp