Cancelling payout in progress leaves device as Inhibited

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
jklemmack
Posts: 1
Joined: Wed Apr 19, 2017 7:30 pm

Cancelling payout in progress leaves device as Inhibited

Post by jklemmack »

I am using the Paylink connected to several Universal Hoppers in an ATM-like scenario. Sometimes we need to completely empty the hoppers, like for audits. Since this can take a while (10-15 minutes), I've added a "cancel" feature to stop a payout in progress.

Basically, my code looks like this:

Code: Select all

// Disable all dispensers
foreach(var dispenser in Dispensers){
  dispenser.Inhibit = 1;
  dispenser.WriteDetails();
}
Thread.Sleep(2000);
// Re-enable all dispensers
foreach(var dispenser in Dispensers){
  dispenser.Inhibit = 0;
  dispenser.WriteDetails();
}
The problem is that every dispenser is no longer inhibited, the AESImhei.LastPayStatus() shows as "Inhibited". Even if I attempt to do a subsequent payout, it doesn't dispense anything and LastPayStatus stays as Inhibited.

So, how do I stop a payout in progress, and then re-enable the AESImhei device for future payouts?
davebush
Posts: 482
Joined: Fri Oct 22, 2004 12:20 pm

Re: Cancelling payout in progress leaves device as Inhibited

Post by davebush »

There's nothing obviously wrong with your code that I can see.

The Paylink driver is usually set to create a log file, typically called Paylink.log, Can you re-create your problem, up to the subsequent payout attempt that fails, and then post your Paylink.log file. They zip up pretty small.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply