CodeMinion / another_brother

Another Brother Flutter SDK
BSD 3-Clause "New" or "Revised" License
21 stars 21 forks source link

Help Print. QL_810W = ERROR_WRONG_LABEL #16

Closed elninho22 closed 3 years ago

elninho22 commented 3 years ago

Please help print app flutter Demo-Anhoter-Brother

LabelInfo E/A-Brother(28062): Printer Name: Brother QL-810W E/A-Brother(28062): Out Printers: [{nodeName=BRXB252165F7C41, modelName=Brother QL-810W, macAddress=B0:52:16:5F:FC:41, serNo=M7Z528158, ipAddress=192.168.118.1, location=}] E/Brother (28062): Image Bytes: [B@dcf1e92 - Size 236539 E/Brother (28062): PrintInfo: {binCustomPaper=null, isSpecialTape=false, rollPrinterCase={name=PJ_ROLLCASE_OFF, id=1}, customPaperLength=0, align={name=LEFT, id=1}, pjSpeed=2, isCutMark=false, printMode={name=ORIGINAL, id=1}, isCutAtEnd=false, savePrnPath=, isLabelEndCut=false, mirrorPrint=false, customFeed=0, overwrite=true, margin={top=0, left=0}, pjFeedMode={name=PJ_FEED_MODE_FIXEDPAGE, id=2}, isHalfCut=false, ipAddress=192.168.118.1, rotate180=false, labelMargin=0, valign={name=MIDDLE, id=2}, customPaper=, localName=, useLegacyHalftoneEngine=false, macAddress=, port={name=NET, id=4}, lastConnectedAddress=, printQuality={name=NORMAL, id=2}, pjCarbon=false, customPaperWidth=0, printerModel={name=QL_810W, id=52}, labelNameIndex=20, skipStatusCheck=false, paperPosition={name=CENTER, id=2}, mode9=true, workPath=, timeout={connectionWaitMSec=500, receiveTimeoutSec=180, processTimeoutSec=-1, sendTimeoutSec=90, closeWaitMSec=500, closeWaitDisusingStatusCheckSec=3}, pjPaperKind={name=PJ_CUT_PAPER, id=2}, rawMode=false, useCopyCommandInTemplatePrint=false, peelMode=false, thresholdingValue=127, customPaperInfo={paperKind={name=ROLL}, markPosition=0.0, printerModel={name=QL_810W, id=52}, unit={name=Mm}, leftMargin=0.2, topMargin=0.2, rightMargin=0.2, markHeight=0.0, tapeWidth=2.0, bottomMargin=0.0, tapeLength=0.0, labelPitch=0.0}, numberOfCopies=1, labelName={name=UNSUPPORT, model=QL700, id=255}, orientation={name=PORTRAIT, id=1}, isAutoCut=true, dashLine=false, rjDensity=0, softFocusing=false, scaleValue=1.0, paperSize={name=CUSTOM, id=254}, halftone={name=PATTERNDITHER, id=2}, checkPrintEnd={name=CPE_CHECK, id=3}, enabledTethering=false, banishMargin=false, trimTapeAfterData=false, pjDensity=5} E/Brother (28062): Parsed Info: com.brother.ptouch.sdk.PrinterInfo@36cb063 I/flutter (28062): Print Result: {isBatteryMounted: {name: Unknown, id: -1}, labelId: 65535, maxOfBatteryResidualQuantityLevel: -1, labelType: 65535, errorCode: {name: ERROR_WRONG_LABEL, id: -1}, isACConnected: {name: Yes, id: -1}, batteryLevel: 4, batteryResidualQuantityLevel: -1}

CodeMinion commented 3 years ago

Hello @elninho22 ,

Thank for reaching out about this and for the logs!

I can see from the logs that you either forgot to set the label for the printer or set one that is not supported. labelName={name=UNSUPPORT, model=QL700, id=255} - ERROR_WRONG_LABEL

Since you have a QL_810W you'll need to pick one of the labels from QL700 values. The labels are named using WidthHeight in millimeters. So, for example, if you have an unlimited roll 62 mm wide you would use QL700.W62. Also note that the printer you own also supports RB rolls in which case you might use QL700.W62RB

Do you have some details on the label type you currently have loaded on the printer?

Thanks again reaching out, I hope this help but please don't hesitate to let me know if you are still running into issues.

elninho22 commented 3 years ago

thank you very much for the information. I returned to work today and I will continue with the guidelines, I hope success!

thanks @CodeMinion