Hello,
I’m trying to use ccTalk hoppers, but I can’t update the internal CoinCount.
I found DISPENSER_UPDATE_COUNT / DISPENSER_COUNT_UPDATED in the header files, but I wasn’t able to update the CoinCount using them. Since they don’t appear in the latest API documentation, I assume they may be deprecated.
I’m currently stuck with my hoppers returning -1 (PAY_EMPTY) on all Payout() calls.
System
Driver
Logfile "/var/log/Paylink.log"
Run visible
Protocol cctalk on connector cctalk
Hopper at 1 Value 50
Hopper at 2 Value 100
Protocol MDB on connector MDB
Changer at 08h
I would like to be able to set the coin count with a given value when the hopper is refilled (with a variable number of coins entered by the user).
The Paylink philosophy is to report via the API information sent by devices to the Paylink. It does not in general add any "housekeeping" facilities.
Hoppers do not hold a count of their coins, they just spin when requested and look to see if any coins come out.
DispenserBlock.CoinCount is thus meaningless for a normal hopper - you can tell if DispenserBlock.CoinCount is valid for a given dispenser because DispenserBlock.CoinCountStatus will have the value DISPENSER_ACCURATE.
Some hoppers are fitted with detectors to try to see if any coins are in the bowl, but these do not affect the operation. Your hoppers do not have these as shown by DISPENSER_COIN_NONE in DispenserBlock.CoinCountStatus
Every time you call Payout() the appropriate hopper(s) should spin, only if no coins are detected leaving the hopper should you then get the status PAY_EMPTY
Dave
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.