Reassign dispenser value
Moderators: aardvark, davebush, Admin
Reassign dispenser value
When we reassign dispenser values should we wait any length of time before we check the status to see if it has been updated ? I ask because on trials we have had problems with the status not always returning with DISPENSER_VALUE_REASSIGNED.
Hi,
The times you wait are not clearly defined. The guaranteed sequence is that DISPENSER_REASSIGN_VALUE is set before the call to WriteDispenserDetails returns.
After this call, at some time in the future, the Paylink unit will update its internal details and set the status to DISPENSER_VALUE_REASSIGNED, at some further time in the future this value will be returned to the PC.
The time for this round trip is indeterminate, but in any normal system the value should have returned to the PC in under a second.
As an aside, following the DISPENSER_REASSIGN_VALUE setting, any subsequent Payout call will actually use the new value.
The times you wait are not clearly defined. The guaranteed sequence is that DISPENSER_REASSIGN_VALUE is set before the call to WriteDispenserDetails returns.
After this call, at some time in the future, the Paylink unit will update its internal details and set the status to DISPENSER_VALUE_REASSIGNED, at some further time in the future this value will be returned to the PC.
The time for this round trip is indeterminate, but in any normal system the value should have returned to the PC in under a second.
As an aside, following the DISPENSER_REASSIGN_VALUE setting, any subsequent Payout call will actually use the new value.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
So far as I can tell there is no need to actually check for the new status.
Having checked the code, there is a minor problem in returning the status of DISPENSER_VALUE_REASSIGNED. If the hopper runs a periodic self test before the PC checks the value, DISPENSER_VALUE_REASSIGNED will be replaced by PAY_FINISHED.
Having checked the code, there is a minor problem in returning the status of DISPENSER_VALUE_REASSIGNED. If the hopper runs a periodic self test before the PC checks the value, DISPENSER_VALUE_REASSIGNED will be replaced by PAY_FINISHED.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.