11. Reset the current credit
<HEADER>
<CMD>
<SUBCMD>
<PARAMETERS>
<CRC>
0xFE
0x52
0x02
[none]
0xAE
RASPIVEND answer
0xFE
0x52
0x02
0xFB – command execution failed
0xFC – command successfully executed
0xFD – command CRC error
CRC
The RASPIVEND has an internal cash counter which is incremented for each bill or coin
deposited by the MDB PERIPHERALS. This counter can be read by using a POLL
command, detailed on “12. Poll credit and devices status”. For simplicity reasons, this
counter can be reseted by this command. You can use this command after each
transaction, or anytime you need.
12. Return change
<HEADER>
<CMD>
<SUBCMD>
<PARAMETERS>
<CRC>
0xFE
0x52
0x03
<CHANGE TO RETURN> - 4 bytes – MSB
Example: 0xFE 0x52 0x03 0x00 0x00 0x01 0x5E 0xF0 –
this command will return 350 change, which means, for
EUR and USD, 350cents or 3.50EUR/3.50USD
CRC
RASPIVEND answer
0xFE
0x52
0x03
0xFB – command execution failed
0xFC – command successfully executed
0xFD – command CRC error
CRC
This command will start returning change if the RASPIVEND has a changer connected on
the MDB port.
13. Set current cash credit
<HEADER>
<CMD>
<SUBCMD>
<PARAMETERS>
<CRC>
0xFE
0x52
0x04
<SET CURRENT CASH CREDIT> - 4 bytes – MSB
Example: 0xFE 0x52 0x03 0x00 0x00 0x01 0x5E 0xF0 –
this command will set current credit to 350, which means,
for EUR and USD, 350cents or 3.50EUR/3.50USD – This
is used to adjust credit in multivend mode and before the
cashless revalue command to set only remaining credit
for revalue.
CRC
RASPIVEND answer
0xFE
0x52
0x04
0xFB – command execution failed
0xFC – command successfully executed
0xFD – command CRC error
CRC
This command will sest the current credit on the RASPIVEND. It is indicated to use this
command after every cash transaction finished with a successful vend.
© 2016 – AUTOMATROM SRL – www.vendingtools.ro