DynamixSoftware / PrintingSample

34 stars 23 forks source link

Brother QL-720NW not working #14

Closed sudhirkhanger closed 3 years ago

sudhirkhanger commented 5 years ago

Hello,

I am trying to print via a Brother QL-720NW printer which is supported by PrintHand. PrintHand app itself is not able to print on the printer. I am using Galaxy Tab A with Android 7.1.1 and Lenovo tab also. The progress percentage either stalls around mid-way or finishes but the rolling doesn't happen. The printer also indicates some error via its read light.

Please let me know what information would you need to resolve this issue.

Regards, Sudhir.

PS: - I was able to fix this issue using Brother Print SDK for Android™ using the code below. It would be great if you could fix the issue promptly and make a release.

final Printer printer = new Printer();
        final PrinterInfo settings = printer.getPrinterInfo();
        settings.printerModel = PrinterInfo.Model.QL_720NW;
        settings.port = PrinterInfo.Port.USB;

        settings.labelNameIndex = LabelInfo.QL700.W62.ordinal();
        settings.printMode = PrinterInfo.PrintMode.FIT_TO_PAGE;
        settings.isAutoCut = true;
        printer.setPrinterInfo(settings);

        new Thread(() -> {
            if (printer.startCommunication()) {
                PrinterStatus result = printer.printPdfFile("sdcard/test.pdf", 1);
                if (result.errorCode != PrinterInfo.ErrorCode.ERROR_NONE) {
                    Timber.e("ERROR - " + result.errorCode);
                }
                // Put any code to use printer
                printer.endCommunication();
            }
        }).start();
DynamixSoftware commented 5 years ago

Hello,

In what way does the app fail to work? I am not quite sure that I fully understood your inquiry. Could you please elaborate?

What is the version of the app? What is the name of the driver selected in our app? It should be available in the More (3 dots) - Send Feedback section once the printer is set up. What interface are you using to print: Wi-Fi, Bluetooth, USB? Do you see any errors? If yes, please send us a screenshot of the error. This would be helpful.

Please describe the problem in more detail so that I could help you.

Kind regards, Konstantin

On Fri, Oct 4, 2019 at 9:26 AM Sudhir Khanger notifications@github.com wrote:

Hello,

I am trying to print via a Brother QL-720NW printer which is supported by PrintHand. PrintHand app itself is not able to print on the printer. I am using Galaxy Tab A with Android 7.1.1 and Lenovo tab also. The print starts and then stalls mid-way.

Please let me know what information would you need to resolve this issue.

Regards, Sudhir.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFKNRWM5JD545DDULLDQM3OYRA5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPS2HKA, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSHWFM4SNMG3MNWQOZT3UDQM3OYRANCNFSM4I5LXZRQ .

-- Tech support

sudhirkhanger commented 5 years ago

In what way does the app fail to work? When I press print then the processing page percentage goes 100% but after that nothing happens. No actual printing happens. The printer light turns red.

What is the version of the app? PrintHand 12.20.0 Premium build 334

What is the name of the driver selected in our app? Brother QL-720NW

Do you see any errors? There are no errors. Even the Intent API didn't produce any errors in the logs.

Screenshot_20191007-093015 Screenshot_20191007-093543

DynamixSoftware commented 5 years ago

Hello,

Your mobile device has to run at least Android 4.0 and have USB Host driver.

Please try using another USB OTG cable. Also please try using the USB Host Diagnostics app ( https://play.google.com/store/apps/details?id=eu.chainfire.usbhostdiagnostics). Using it you can see if the functionality of the USB port of your mobile device is limited for the 3rd party apps by the device manufacturer. One can get rid of such limitation using the said app on a rooted device only. We do not recommend rooting a device if you are not authorized to do so as this might lead to the violation of warranty.

If the previous app shows that the access to the USB Host is granted for the 3rd party apps, please send us the results provided by the following apps as well. https://play.google.com/store/apps/details?id=com.hardcodedjoy.otgguru https://play.google.com/store/apps/details?id=com.oneman.tools.usbdescriptor This would provide us with the additional information needed to understand what is going wrong.

Please note that some of the mobile devices are unable to communicate with a printer properly even if USB Host mode is supported. This happens due to specific electrical design of the USB port. Sadly in such case the app is not likely to work properly.

The fact that your mobile device works properly with USB mice/keyboards or lets you browse files stored on USB flash drives does not guarantee that it will be able to print via USB.

Kind regards, Konstantin

On Mon, Oct 7, 2019 at 7:11 AM Sudhir Khanger notifications@github.com wrote:

In what way does the app fail to work? When I press print then the processing page percentage goes 100% but after that nothing happens. No actual printing happens. The printer light turns red.

What is the version of the app? PrintHand 12.20.0 Premium build 334

What is the name of the driver selected in our app? Brother QL-720NW

Do you see any errors? There are no errors. Even the Intent API didn't produce any errors in the logs.

[image: Screenshot_20191007-093015] https://user-images.githubusercontent.com/841656/66284658-800d7b00-e8e6-11e9-8a30-817e61124056.jpeg [image: Screenshot_20191007-093543] https://user-images.githubusercontent.com/841656/66284659-80a61180-e8e6-11e9-96d3-a029f0a1d369.jpeg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFLAXLKLRU4TIYC5HDDQNKZGHA5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAO65TY#issuecomment-538832591, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSHWFNYT6Y57LJNAI4TLPLQNKZGHANCNFSM4I5LXZRQ .

-- Tech support

sudhirkhanger commented 5 years ago

@DynamixSoftware

The only thing that is not working is PrintHand. Why do you think the exactly same setup works with Brother Mobile Printing SDK but not PrintHand?

Just so that you know. Exactly same setup, hardware and software, is working with other printers except the Brother QL-720NW. I have been able to print with QL-720NW by implementing the Brother SDK directly. I would prefer to continue using PrintHand if you are able to fix the issue on your side.

DynamixSoftware commented 5 years ago

Hello,

I would still appreciate if you could provide me with the results provided by the USB HOST Diagnostics app. Different apps may be using different protocols in order to print. Therefore, PrintHand may not work with certain equipment even if another app can.

Kind regards, Konstantin

On Tue, Oct 8, 2019 at 8:16 PM Sudhir Khanger notifications@github.com wrote:

@DynamixSoftware https://github.com/DynamixSoftware

  • I mentioned in the original post that the device I am using runs Android 7.1.1.
  • I am able to print using the exactly same setup using Brother Mobile Printing SDK which would mean 1) Device 2) Android OS 3) OTG Cable, etc. are all working fine.

The only thing that is not working is PrintHand. Why do you think the exactly same setup works with Brother Mobile Printing SDK but not PrintHand?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFNTDZYNUBH3UVJRW43QNS6ALA5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAU5Z2I#issuecomment-539614441, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSHWFNIKCC63EEXFL5K6YDQNS6ALANCNFSM4I5LXZRQ .

-- Tech support

sudhirkhanger commented 5 years ago

Screenshot_20191010-131713

Please do take a look at the PrintHand's code. I was able to implement Brother SDK in an afternoon. I am sure you will find the issue and be able to resolve it in due time.

DynamixSoftware commented 5 years ago

Hello,

Could you please try using our older PrinterShare app? Please let us know if it detects the printer in the same setup.

Kind regards, Konstantin

On Thu, Oct 10, 2019 at 10:56 AM Sudhir Khanger notifications@github.com wrote:

[image: Screenshot_20191010-131713] https://user-images.githubusercontent.com/841656/66549328-b35b3e80-eb60-11e9-9849-81a31e307559.jpeg

  • I have been using same device, with same android version, with same otg, with the PrintHand app with a few of my printers. It has worked flawlessly so far.
  • Exactly sam setup is able to print via Brother SDK using QL720NW. PrintHand is not which rules out any issue with the device, otg, and android version.

Please do take a look at the PrintHand's code. I was able to implement Brother SDK in an afternoon. I am sure you will find the issue and be able to resolve it in due time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFOPZK3V45THJNKLOODQN3N27A5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA3JEMA#issuecomment-540447280, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFI2SI3LDUR7BX6U4R3QN3N27ANCNFSM4I5LXZRQ .

-- Tech support

sudhirkhanger commented 5 years ago

The older PrinterShare app is working but I don't think it ever finishes the print. As you can see the bottom borders are missing. I had to switch off the printer and then cut the feed after turning it on.

This definitely prints unlike the PrinterHand app.

IMG_20191014_131455

DynamixSoftware commented 5 years ago

Hello,

Thank you for your report, we found the issue and fixed it in the PrinterShare app. Please install this new build http://dynamixsoftware.com/test/printershare-brother-ql-fix.apk It should work properly. Please let us know the result. If it works we add this fix to the PrintHand app.

Regards, PrinterShare team

On Mon, Oct 14, 2019 at 2:51 AM Sudhir Khanger notifications@github.com wrote:

The older PrinterShare app is working but I don't think it ever finishes the print. As you can see the bottom borders are missing. I had to switch off the printer and then cut the feed after turning it on.

This definitely prints unlike the PrinterHand app.

[image: IMG_20191014_131455] https://user-images.githubusercontent.com/841656/66735952-7dca9400-ee85-11e9-9b3e-e34243bc922c.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFKFXEK2LIJXHW4AOYLQOQQJXA5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBDTGJA#issuecomment-541537060, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFMZHOUAB4CPM3UWCS3QOQQJXANCNFSM4I5LXZRQ .

sudhirkhanger commented 5 years ago

Thanks for getting back. Now it's able to cut the feed automatically and is working. The only issue I can see that the outer line is not printed in the bottom as you can see in the image below. Other than that it is working fine.

IMG_20191015_094116

DynamixSoftware commented 5 years ago

Hello Sudhir,

Could you please let us know if you are able to print real content normally? Please pay attention to Scaling and Margins options.

Best regards, Konstantin

On Tue, Oct 15, 2019 at 7:17 AM Sudhir Khanger notifications@github.com wrote:

Thanks for getting back. Now it's able to cut the feed automatically and is working. The only issue I can see that the outer line is not printed in the bottom as you can see in the image below. Other than that it is working fine.

[image: IMG_20191015_094116] https://user-images.githubusercontent.com/841656/66799762-0ef64500-ef30-11e9-8174-da332a76c252.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFLZRIIUQ35XJBIJO7LQOU753A5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBHLHFQ#issuecomment-542028694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFJMGC6Q4FJPGDISR2DQOU753ANCNFSM4I5LXZRQ .

-- Tech support

sudhirkhanger commented 5 years ago

I am unable to print anything other than the test page because I don't have PrinterShare's Premium key.

PS: I am not using any scaling or margins via PrintHand. I do all customization within the PDF and then print it via PrintHand.

sudhirkhanger commented 5 years ago

@DynamixSoftware Do you have a timeline on when you will be able to release a fix in PrintHand? I will have to write my own solution if you are not able to release one in a week or so. Please let me know.

DynamixSoftware commented 5 years ago

Hello,

We do not have a timeline for this yet. However, I have forwarded a request to our developers.

Best regards, Konstantin

On Thu, Oct 17, 2019 at 7:04 AM Sudhir Khanger notifications@github.com wrote:

@DynamixSoftware https://github.com/DynamixSoftware Do you have a timeline on when you will be able to release a fix in PrintHand? I will have to write my own solution if you are not able to release one in a week or so. Please let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFJGRVOZEPRI4IFYW6LQO7P5RA5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBOV5OY#issuecomment-542990011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFMWMVOAUUHIRY2SLODQO7P5RANCNFSM4I5LXZRQ .

-- Tech support

sudhirkhanger commented 5 years ago

Has there been any progress on this issue?

DynamixSoftware commented 5 years ago

Hello,

Unfortunately, we have not estimate for this yet.

Kind regards, Konstantin

On Wed, Nov 6, 2019 at 6:50 AM Sudhir Khanger notifications@github.com wrote:

Has there been any progress on this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFPJF7CE34DMSGMVQA3QSI5JZA5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDFFKVY#issuecomment-550131031, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFKCRBPHE2TQQM3X7GTQSI5JZANCNFSM4I5LXZRQ .

-- Tech support

stevenoglesby commented 4 years ago

We would like to use a QL810W and have a similar problem. Is there a timeline on when the fix will get into PrintHand?

DynamixSoftware commented 4 years ago

Hello Steven,

I will get some updates on Monday. Sorry for the long wait.

Regards, Konstantin

On Fri, Jan 17, 2020, 7:31 PM Steven notifications@github.com wrote:

We would like to use a QL810W and have a similar problem. Is there a timeline on when the fix will get into PrintHand?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFNGXN3ERQ2P2B2MJDTQ6G6K3A5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJH3I6Y#issuecomment-575648891, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFMQGQFPF4Y56LVNXZTQ6G6K3ANCNFSM4I5LXZRQ .

DynamixSoftware commented 4 years ago

Hello Steven,

I would expect a fix to be released in a couple of weeks.

Have a nice day, Konstantin

On Fri, Jan 17, 2020 at 7:31 PM Steven notifications@github.com wrote:

We would like to use a QL810W and have a similar problem. Is there a timeline on when the fix will get into PrintHand?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamixSoftware/PrintingSample/issues/14?email_source=notifications&email_token=ADSHWFNGXN3ERQ2P2B2MJDTQ6G6K3A5CNFSM4I5LXZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJH3I6Y#issuecomment-575648891, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSHWFMQGQFPF4Y56LVNXZTQ6G6K3ANCNFSM4I5LXZRQ .

-- Tech support