forked from perdidor/Arduino-MDB-UART
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmd_examples.txt
46 lines (34 loc) · 1.39 KB
/
cmd_examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
WARNING!!! These commands are string representation of HEX bytes of MDB commands. They will be converted to byte array when sending to MDB
by test software included.
i.e. "34ffff000032" means:
*34 - address\command byte (34h & F7h (address mask) = 30h (address of bill validator))
ffff - two bytes enable bill types accepting all types (all bits are set to 1)
0000 - two bytes disable bill types escrow all types (all bits are set to 0)
32 (last byte) - MDB checksum ((34h + ffh + ffh + 00h + 00h) & FFh = 32, only lower 8 bits are checksum)
* - 9th bit set to 1
====Bill Validator commands====
Enable acceptance all bill types (escrow feature disabled)
34ffff000032
Enable acceptance all bill types (escrow feature enabled)
34ffffffff30
Disable acceptance all bill types
340000000034
Return bill in escrow position
350035
Stack bill in escrow position
350136
Reset bill validator (all bill acceptance and escrow will be disabled)
3030
====Coin Changer commands====
Enable acceptance all coin types (manual dispense feature enabled)
0c00ff00ff0a
Disable acceptance all coin types (manual dispense feature enabled)
0c000000ff0b
Payout exact sum value=10 (extended command, check your device datasheet for compatibility)
0f021425
where 14h is doubled sum to dispense (14h = 20DEC)
Request tube status
0a0a
Reset changer (coin accepting will be disabled)
0808
//