32. CCTHopperCheckDispense
GUI command
Command
Parameters/Comments
CCTHopperCheckDispense(N)
“N” is the hopper address.
RASPIVEND daemon answer
Answer
Parameters/Comments
Ex. 1 – success
{ "EventCounter" : "1" ,
"ToDispense" : "0" ,
"Dispensed" : "2" ,
"NotDispensed" : "0" }
Ex. 2 - failed
{ "EventCounter" : "4" ,
"ToDispense" : "0" ,
"Dispensed" : "2" ,
"NotDispensed" : "8" }
Ex. 3 – dispense in progress
{ "EventCounter" : "6" ,
"ToDispense" : "6" ,
"Dispensed" : "4" ,
"NotDispensed" : "0" }
This command will return a message regarding the last known
hopper status.
After issuing CCTHopperDispense or
CCTHopperDispenseCipher commands, the customer’s
application should periodically poll the hopper with this command
until one of the following situation appears:
- “
Dispensed
” has the same value as the number of coins
requested. The dispense is fine and the transaction is finished.
- “
NotDispensed
” has a value bigger than 0. In this situation, the
dispense failed and there a remaining “NotDispensed” coins that
could not be supplied. It is up to the customer’s application to
decide if it will try another dispense command or return to the
main loop.
33. CCTHopperDispenseCipher
GUI command
Command
Parameters/Comments
CCTHopperDispenseCipher(N,M)
“N” is the hopper address and “M” is the number of coins to
dispense using cipher key instead of serial number. Cipher key is
required by some hoppers instead of plain 3 bytes serial number.
Try to use this in case your hopper is correctly initialized but is
not dispensing any coin.
RASPIVEND daemon answer
Answer
Parameters/Comments
{“HopperDispenseCipher":"success"}
or
{“HopperDispenseCipher":"failed"}
This command will instruct the hopper to payout a number of
coins. After issuing this command, the customer’s application
should keep polling with command CCTHopperCheckDispense,
to get informations about the status, number of coins dispensed,
number of coins to dispense and error.
© 2016 – AUTOMATROM SRL – www.vendingtools.ro
Содержание RASPIVEND
Страница 22: ...2016 AUTOMATROM SRL www vendingtools ro...
Страница 51: ...NOTES 2016 AUTOMATROM SRL www vendingtools ro...