locked
Open Drawer / Buzzer from POS .Net RRS feed

  • Question

  • Hello,

    Is there a universal OPOS command to open the drawer / activate the buzzer on a PosPrinter? I found some code that works for a Epson TM-T70, printer, but the one for Bixolon SRP 350 does not.

    Epson:

    posPrinter.PrintNormal(PrinterStation.Receipt, "" + (char)27 + (char)112 + (char)0 + (char)255 + (char)0);

    Bixolon:

    posPrinter.PrintNormal(PrinterStation.Receipt, "" + (char)27 + (char)112 + (char)0 + (char)50 + (char)250);

    Any help would be appreciated.

    Thanks!

    Friday, October 9, 2015 11:43 AM

All replies

  • There is no such standardized command in UnifiedPOS and OPOS POSPrinter specification.
    You should use the CashDrawer device, If you want open a cash drawer.
    Also, You should use a ToneIndicator device, If you want ring the buzzer.
    If the printer vendor does not provide those OPOS or POS for.NET service, please request to the vendor.

    These outline has been described in the UnifiedPOS specification is called the Hydra device.

    Friday, October 9, 2015 1:15 PM
  • Each manufacture has their own unique code. The example from my book discusses using a serial command to open a cash drawer. The command came from the manufacturer so these codes are unique.

    Chr(&H1B) & Chr(&H70) & Chr(0) & Chr(25) & Chr(30)

    Unfortunately, the manufacture doesn't make the cash drawer anymore, but the steps and processes to create a custom SO are the same. The POSPrinter used was connected via serial. When the cash drawer opened the bell would ring. There is no separate API for the bell.


    Sean Liming - Book Author: Starter Guide SIM (WEI), Pro Guide to WE8S & WES 7, Pro Guide to POS for .NET - www.annabooks.com / www.seanliming.com

    Friday, October 9, 2015 11:08 PM
    Answerer
  • According to the contents of the Data parameter,
    maybe this is not a problem of universal OPOS command,
    each service is whether data including 0 can be specified as a string.

    This is the same as PrintMemoryBitmap problem.

    EPSON is a POS for.NET service,
    and POS for.NET service of Bixolon is not allowed to 0, or Bixolon is OPOS driver.

    In the case of OPOS driver, as well as the PrintMemoryBitmap problem, please to convert the Data parameters of PrintNormal using BinaryConversion to a string.

    Bixolon is POS for.NET service, or if OPOS driver can not handle the BinaryConversion, please ask compliance with the specification to Bixolon.

    By the way, how to send the printer hardware-specific command is that you specify in the escape sequence of "ESC |[*]#E".
    Please refer to the "Pass through embedded data" of UnifiedPOS 1.14.1 page 30-25.

    Additional notes:
    According to the command reference of both of the company, you can specify a 48 in the third character indicating the drawer number.
    According to the command reference of EPSON, some printer's minimum value of the subsequent time parameters are both 50, therefor the value that does not include the 0 in all of the characters can be specified.

    posPrinter.PrintNormal(PrinterStation.Receipt, "" + (char)27 + (char)112 + (char)48 + (char)50 + (char)50);



    • Edited by Kunif3 Tuesday, November 10, 2015 9:46 PM
    Wednesday, October 28, 2015 10:38 PM