Menu

USB Cash Drawer Trigger

Evan
2013-06-21
2013-07-03
  • Evan

    Evan - 2013-06-21

    Hello,
    Unicenta is the Best Opensource POS ever..!

    I've just bought a cash drawer with a USB Trigger..
    and I've manage to open the cash drawer using cmd command like this :

    mode com1: baud=9600 parity=n data=8 stop=1
    copy open > com1

    Can we running a CMD command from xml?

     

    Last edit: Evan 2013-06-22
  • Evan

    Evan - 2013-07-03

    After several weeks I get my USB Trigger open my cashdrawer.. noob

    Here how I get it done..

    1. Install a Generic/Text only printer then set the Com port same as the USB Trigger Com Port... (I named it CashDrawer)
    2. In Configuration set the Printer 2 for printer then select CashDrawer (the above Mod Printer Driver).
    3. In Resources>Printer.OpenDrawer I put a simple code :
      ~~~
      <ticket printer="2">

      </ticket>
      ~~~
      That would open my cashdrawer when I click Cashdrawer Button on the Sales Panel but it wont open after I clicked Ok in the Change Window... What I missed? any Idea?

    4. Seems that I need to open the drawer before the change window. Then this code
      sales.printTicket("Printer.OpenDrawer");
      in Resources>Ticket.Close after if(iscash) {

    Thanks to Richard in https://sourceforge.net/p/unicentaopos/discussion/1126901/thread/1832ee8b/

     

Log in to post a comment.