-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhopper_communication.txt
64 lines (40 loc) · 1.66 KB
/
hopper_communication.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Port settings: 9600, 8 bits, parity even, stop bits 1
Machine startup->
1) send command POLL DATA: 0x05 0x10 0x00 0x11 0x00 0x26
Response: 05 01 00 04 00 0A machine OK
05 01 00 04 02 0C NO COINS
2) Dispense 1 coin:
Send: 0x05 0x10 0x00 0x18 0x01 0x2E
Response if ok:
05 01 00 AA 01 B1
05 01 00 07 00 0D
05 01 00 08 00 0E
Response: There was no coin left after dispense
Response if no coin:
05 01 00 AA 01 B1
05 01 00 07 00 0D
05 01 00 08 00 0E
05 01 00 04 02 0C
Any other response should be logged to admin panel logs.
Add option in admin menu to test dispense. Also show serial commands.
05 10 00 11 00 26 05 10 00 18 02 2F 2 zseton
05 10 00 11 00 26 05 10 00 18 0A 37 10 zseton
05 10 00 11 00 26 05 10 00 18 14 41 20 zseton
05 10 00 18 01 2E 1 zseton
Poll status
05 10 00 11 00 26
response ok 05 01 00 04 00 0A
response no coin 05 01 00 04 02 0C
Utolso hex osszeadja az elozo hexeket.
0x05 0x10 0x00 0x11 0x00 0x26
0x05 0x10 0x00 0x18 0x01 0x2E
0x05 0x10 0x00 0x18 0x02 0x2F
cu jeton
05 01 00 AA 01 B1
05 01 00 07 00 0D
05 01 00 08 00 0E
fara jeton
05 01 00 AA 01 B1
05 01 00 07 00 0D
05 01 00 08 00 0E
05 01 00 04 02 0C - a ramas fara jeton