SCH2 Technical Manual TSP016.doc Issue 3.0 – January 2005
Money Controls 2005. All rights reserved.
Page 27 of 61
14. Simple Coin Payout
The following shows the minimum command set needed to pay out some coins after receiving a
‘factory-fresh’ hopper. This will be helpful when writing new software drivers or for testing.
We will assume that the hopper is on address 3 and has just powered-up.
Send the following commands…
¾
Enable
hopper
¾
Request cipher key
¾
Dispense hopper coins
¾
Request hopper status
In detail…
Message packets are shown in full ( not just the data part ). The host address is assumed to be
1 and [ byte values ] are in decimal.
Enable hopper
TX:
[ 3 ] [ 1 ] [ 1 ] [ 164 ] [ 165 ] [ 178 ]
RX:
[ 1 ] [ 0 ] [ 3 ] [ 0 ] [ 252 ] = ACK
Request cipher key
TX:
[ 3 ] [ 0 ] [ 1 ] [ 160 ] [ 92 ]
RX:
[ 1 ] [ 8 ] [ 3 ] [ 0 ] [ key 1 ] [ key 2 ] [ key 3 ] [ key 4 ] [ key 5 ]
[ key 6 ] [ key 7 ] [ key 8 ] [ checksum ]
The data bytes returned by this command are used in the encryption algorithm. For security
reasons details of the encryption algorithm are not given in this document.
Dispense hopper coins
TX:
[ 3 ] [ 1 ] [ 1 ] [ 167 ] [ sec 1 ] [ sec 2 ] [ sec 3 ] [ sec 4 ] [ sec 5 ]
[ sec 6 ] [ sec 7 ] [ sec 8 ] [ N coins ] [ checksum ]
RX:
[ 1 ] [ 1 ] [ 3 ] [ 0 ] [ event counter ] [ checksum ]
Between 1 and 255 coins can be dispensed with this command.
Request hopper status
TX:
[ 3 ] [ 0 ] [ 1 ] [ 166 ] [ 86 ]
RX:
[ 1 ] [ 4 ] [ 3 ] [ 0 ] [ event counter ] [ payout coins remaining ]
[ last payout : coins paid ] [ last payout : coins unpaid ]
[ checksum ]
This command should be repeated until [ payout coins remaining ] = 0. Another cipher key can
then be requested and more coins dispensed.
Содержание SCH2
Страница 8: ......