brasizza / sunmi_printer

BSD 3-Clause "New" or "Revised" License
39 stars 46 forks source link

Paper size 58mm not 80mm #7

Closed AnasSan closed 1 year ago

AnasSan commented 2 years ago

I have Sunmi V2. The paper size is 58mm, but it returns 80mm. That causes a problem while printing.

How can I fix it?

brasizza commented 2 years ago

Mine is 58 but the library always sent to me 80. I tried everything but doesn't work . This is the part of the code

static Future paperSize() async { int? _size = await _channel.invokeMethod("PAPER_SIZE"); return _paperize[_size ?? 0]; }

Always _size returns 0 unfortunately

AnasSan commented 2 years ago

Thanks for your reply Hope we can find solution soon.

brasizza commented 2 years ago

Thanks for your reply Hope we can find solution soon.

If we can arrange a date to debug in your sunmi i can send you some branch that u can try to see if works!

AnasSan commented 2 years ago

Thanks for your reply Hope we can find solution soon.

If we can arrange a date to debug in your sunmi i can send you some branch that u can try to see if works!

OK, I have V2 and V2 Pro.

bashiryousufy commented 2 years ago

Thanks for your reply Hope we can find solution soon.

If we can arrange a date to debug in your sunmi i can send you some branch that u can try to see if works!

OK, I have V2 and V2 Pro.

Does this work on Sunmi T2?

brasizza commented 2 years ago

I think the paper sensor is not sending the correct value

bashiryousufy commented 2 years ago

I think the paper sensor is not sending the correct value

I have tested with K2 Mini and it works.

But not sure if it works on T2 and K2 ...

brasizza commented 2 years ago

Im not sure u will need to test, because the adil is the same to all devices

bashiryousufy commented 2 years ago

Alright, hopefully they works

bashiryousufy commented 2 years ago

I have tested this plugin with Sunmi K2 device, unfortunately its not working.

brasizza commented 2 years ago

I can do a branch and we can try to see if we can find. Are you still with this printer? Can u add me or send me a dm on instagram or discord?

Brasizza#7615 @marcus.brasizza

bashiryousufy commented 2 years ago

Unfortunately I don't have access to the device anymore. But if I get the device in future I will let you know.

By the way I have added you on Discord.

キングバシル#4502

bashiryousufy commented 2 years ago

I used this plugin for printing for Sunmi K2

https://pub.dev/packages/flutter_usb_printer

brasizza commented 1 year ago

Closing without any response.