star-micronics / StarPRNT-SDK-Android-Java

StarPRNT SDK for Android including libraries for supporting application development for Star printers.
https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/android_java/en/index.html
Other
15 stars 4 forks source link

Why does autocut open the cash drawer, is it possible to disable that? #16

Closed satur9nine closed 5 months ago

satur9nine commented 6 months ago

Description

When I execute the following code the printer will cut paper and then open the cash drawer:

        StarIoExt.Emulation emulation = ModelCapability.getEmulation(ModelCapability.SP700);
        ICommandBuilder builder = StarIoExt.createCommandBuilder(emulation);
        builder.appendCutPaper(ICommandBuilder.CutPaperAction.PartialCutWithFeed);
        byte[] cutCommand = builder.getCommands();
        port.writePort(cutCommand, 0, cutCommand.length);

But I do not want to open the cash drawer every time paper is cut.

I checked the programmer manual and memory switch settings but I do not see a way to prevent cutting from opening the cash drawer, is it possible, how?

Your device where the bug occurs

Android Pixel 7

Your printer

Your development environment

Linux 6.5.0-28-generic #29~22.04.1-Ubuntu

bandit-ibayashi commented 6 months ago

@satur9nine I assume that this issue is caused by the printer setting. Perhaps there is a bit standing for some reason outside of the published items in the memory switch.

Would it be possible to install the following Windows tool to initialize the memory switch of your SP700 to the factory defaults and set it up again? https://starmicronics.com/support/download/starprnt-intelligence-software-full/

We are afraid to bother you, but thank you in advance.

satur9nine commented 5 months ago

This appears to have worked, I am surprised there are secret bits like this.