MDB_Master_User_Manual_en
MDB_Master_User_Manual_en
ENGLISH VERSION
1
Product information
Description
The adapter is designed to control MDB-enabled devices for receiving and dispensing cash. MDB 4.2 protocol
supported; 4 devices can operate at the same time: a coin acceptor (with the possibility of dispensing coins or
without), a bill acceptor (with the possibility of dispensing notes or without), a coin dispenser - 2 pcs.
2 – input from a 24-36V DC power supply, in accordance with the characteristics of peripheral devices
4 – LED indicators for data exchange with the control unit (VMC)
7 – 5V LED
Designations: CC = coin acceptor; BV = bill acceptor; CH1, CH2 = coin dispenser; CD1, CD2 = cashless payment
terminals (or devices emulating them); USD1, USD2, USD3 = devices for the delivery of piece goods.
2
Specifications
3
Getting started
Power
When integrating into an existing system (modernization), the device can use the MDB bus as a power
source, on which the supply voltage of peripheral devices must be present within 24-36V DC. This way MDB
Master connector used.
When designing new systems, it is recommended to supply voltage from the power source directly to the
adapter board, from where it will be supplied to peripheral devices via the MDB Master connector.
ATTENTION: when using UART, do not directly connect control devices such as Raspberry Pi 3, esp32 and
others that work with 3.3V logic levels! Carefully read the VMC documentation and make sure that the control
device supports 5V TTL UART levels, otherwise you risk burning out the VMC RX contact, which is not tolerated
for overvoltage. Use a voltage divider in such cases. Do not worry about reverse data flow and voltage tolerance,
as 5V UART will transparently work with 3V3 levels.
4
Data Exchange
Sending commands
The device receives commands from the control computer via the serial port as ASCII text strings. Each
command consists of a set of numerical parameters separated by a “*” symbol (asterisk), and ends with a “+”
symbol (plus sign). Command example:
1*8*4*1*0*+
This is Coin Changer command
This is command to configure coin type to enable/disable accept and dispense of specific coin type
Coin Type (specific denomination depends on the model of the coin acceptor)
Parameters divider
Reset
1*1*+
This command is the vehicle that the VMC should use to tell the changer that it should return to its default
operating mode. With the exception of the ACK response, it should abort all communication and disable all
acceptance until otherwise instructed by the VMC.
Identification
1*2*+
Changer enable
1*3*+
The acceptance and issue of coins will be activated, in accordance with the settings for each coin type (see
“Configuring a coin of a certain type”)
Changer disable
1*4*+
disables all acceptance until otherwise instructed by the VMC
5
Dispense coins
1*5*X*Y*+
X = [1-16] – coin type; Y = [1-15] – coins quantity
Dispense value
1*6*X*+
X = [1-255] – the number of minimum values to issue
This value is expressed as the number of X*minimum values. The coin changer will determine which actual
denominations of coins will be paid out.
1*8*X*Y*Z*+
X = [1-16] – Coin type; Y = [0, 1] – enable or disable accept, Z = [0, 1] – enable or disable manual dispense.
The settings are saved in the non-volatile memory of the adapter and are applied during the next command
“Changer enable”.
1*9*X*Y*Z*+
X = [0, 1] – enable or disable value dispense; Y = [0, 1] –enable or disable extended diagnostic, Z = [0, 1] –
enable or disable manual fill and payout. The settings are saved in the non-volatile memory of the adapter and
are applied immediately.
6
Bill Validator / Bill Acceptor / Bill Recycler commands
Reset
2*1*+
This command is the vehicle that the VMC should use to tell the validator that it should return to its default
operating mode. It should reject any bills in the validation process, return any bills in the escrow position, and
disable all other activity until otherwise instructed by the VMC.
Идентификация
2*2*+
2*3*+
The acceptance and issue of bills will be activated, in accordance with the settings for each bill type (see
“Configuring a bill of a certain type”)
2*4*+
Bills acceptance and dispensing will be disabled until otherwise instructed by the VMC.
2*5*X*+
X = [0, 1] – 0 = return bill, 1=accept bill.
Dispense bills
2*6*X*Y*+
X = [1-16] – bill type; Y = [1-65535] – bills quantity
Dispense value
2*7*X*+
X = [1-65535] – the number of minimum values to issue
This value is expressed as the number of X*minimum values. Validator will determine which actual
denominations of bills will be paid out.
7
Configuring a certain type of bill
2*8*X*Y*Z*A*B*+
X = [1-16] – bill type; Y = [0, 1] – disable or enable acceptance, Z = [0, 1] – disable or enable Escrow feature,
A = [0, 1] – disable or enable dispensing, B = [0, 1] – disable or enable manual dispensing. The settings are saved
in the non-volatile memory of the adapter and are applied when “Operating mode enable” command issued.
2*9*X*+
X = [0, 1] – disable or enable bill recycling feature. The settings are saved in the non-volatile memory of the
adapter and are applied when “Operating mode enable” command issued.
2*10*+
Due to the fact that two devices of this type can be present on the bus simultaneously, the second parameter
in the commands (X) indicates the target device, can take the values 1 or 2.
Reset
3*X*1*+
This command is the vehicle that the VMC should use to tell the dispenser that it should return to its default
operating mode and initialize internal hardware systems. With the exception of the ACK response, it should
abort all communication until otherwise instructed by the VMC.
Identification
3*X*2*+
Dispense coins
3*X*5*X*Y*+
X = [1-16] – coin type; Y = [1-65535] – coins quantity
8
Dispense value
3*X*6*Y*+
Y = [1-65535] – the number of minimum values to issue. Total value is expressed as the number of Y*minimum
values. The coin changer will determine which actual denominations of coins will be paid out.
3*X*8*Y*Z*+
Y = [1-16] – coin type; Z= [0, 1] – disable or enable manual dispensing. The settings are saved in the non-
volatile memory of the adapter and are applied when Coin Hopper found on bus.
System commands
Reset All
0*0*+
0*1*+
0*2*+
0*3*+
9
Peripheral answers
The device sends data from the periphery to the host computer as ASCII strings (CRLF - ended), which list the
received information, the separator is “*”. Answer example:
CC*ID*NRI*10115089-023*C2Pv0 1 455*300*1*1*1*1
CC – This data is from coin changer
ID – identification
FTL supported (0 = No, 1 = Yes) – not actual as adapter does not supports FTL.
1643 – If the left most digit is a 0, the International Telephone Code is used to indicate the country that the
changer is set-up for; If the left most digit is a 1, the latest version of the ISO 4217 numeric currency code is used
3 – type
1.0 – value
10
CC*TUBE*5*5.00*13*0 – Tube status:
5 – coin type
5.00 – value
13 – coins left
OK – ОК
POWERUP
POWERDOWN
KEYPADSHIFTED
MANUALFILLPAY
NEWINVENTORY
INHIBITED
ERROR
LOWVOLTAGE
11
SEPSENS - Sort sensor error. The acceptor detects an error in the sorting sensor.
CASSENS - Cash box sensor error. The changer detects an error in a cash box sensor
CASLIT – Sunlight on tube sensors. The changer detects too much ambient light on one or more of the tube
sensors.
NOCREDIT – coin was validated but did not get to the place in the system when credit is given.
BADTUBESENSOR – The changer has detected one of the tube sensors behaving abnormally
DOUBLECOIN – Two coins were detected too close together to validate either one
UNPLUGGED – The changer has detected that the acceptor has been removed
ROMERROR – The changers internal checksum does not match the calculated checksum
ROUTERROR – A coin has been validated, but did not follow the intended routing
BUSY – The changer is busy and can not answer a detailed command right now
JUSTRESET – The changer has detected an Reset condition and has returned to its power-on idle condition
4 – coin type
2.00 – value
1 – coins dispensed
1 – coins left
4 – type
2.00 – value
12
Route: TUBE, CASHBOX, REJECT, NA.
4 – type
2.00 – value
5.00 – value
2 – quantity filled
5.00 – value
4 – quantity dispensed
13
Bill Validator / Bill Acceptor / Bill Recycler answers
1810 – If the left most digit is a 0, the International Telephone Code is used to indicate the country that the
validator is set-up for. If the left most digit is a 1, the latest version of the ISO 4217 numeric currency code is
used.
2 – Decimal Places
1 – bill type
10.00 – value
JUSTRESET
BADMOTOR
BADSENSOR
BUSY
14
ROMERROR – checksum error
BILLREMOVED – A bill in the escrow position has been removed by an unknown means
CBOXOUT – The validator has detected the cash box to be open or removed
DISABLED
INVESCROW – An ESCROW command was requested for a bill not in the escrow position
REJECT – A bill was detected, but rejected because it could not be identified
ESCROWREQ
PAYOUTBUSY
BUSY
BADMOTOR
BADSENSOR
JAM
DISABLED
4 – bill type
500.00 – value
15
REC2CB – TRANSFERRED FROM RECYCLER TO CASHBOX
4 – bill type
500.00 – value
20 – quantity
ОК = ОК
ОК = ОК
4 – bill type
500.00 – value
10 – quantity
16
BV*ESC*OK – Escrow action result
10 – bills number
4 – bill type
500.00 – value
BV*ENABLE*OK
BV*DISABLE*OK
Due to the fact that two devices of this type can be present on the bus simultaneously, the first parameter
in the commands indicates the target device, can take the values 1 or 2.
1 – feature level
1810 – If the left most digit is a 0, the International Telephone Code is used to indicate the country that the
validator is set-up for. If the left most digit is a 1, the latest version of the ISO 4217 numeric currency code is
used.
17
CH1*FILL*5.00*15*0– coin count:
5.00 – value
15 – Coin Count
OK / FAIL – result
5.00 – value
2 – coin count
22 – coins left
JUSTRESET – The dispenser has detected a Reset condition and has returned to its power-on idle condition
2 – coin type
2.00 - value
2 – coin type
18
2.00 - value
System messages
This chapter contains messages from adapter that are not part of MDB 4.2 specification
CC –coin changer
BV – bill validator
19