Skip to content

Instantly share code, notes, and snippets.

@pc-coholic
Created August 5, 2020 18:30
Show Gist options
  • Save pc-coholic/f64aa343d6d4bdba2e1de4f018ed86c1 to your computer and use it in GitHub Desktop.
Save pc-coholic/f64aa343d6d4bdba2e1de4f018ed86c1 to your computer and use it in GitHub Desktop.
pylibmdb tets files
mdbreset()
mdbpoll()
mdbsetup()
features = mdbexpansionidentification()
mdbexpansionfeatureenable(features)
mdbexpansiondiagnosticstatus()
mdbtubestatus()
mdbcointype()
mdbpayout(10)
mdbpayoutpoll()
mdbpayoutpoll()
mdbpayoutpoll()
mdbpayoutstatus()
mdbtubestatus()
from MDB import MDB
import time
a = MDB.MDB("A1OUKMUG")
# Reset Sequence
a.reset()
a.poll()
a.setup()
a.expansionidentification() #IN: Optional Features: 0x0 0x0 0x0 0x7
a.expansionfeatureenable(['\x00', '\x00', '\x00', '\x07'])
a.expansiondiagnosticstatus()
a.tubestatus()
#a.cointype()
a.enableall(manual = True)
#a.payout(100)
while True:
a.poll()
print a.getdeposited()
#63
# 89,75E in Roehren
# - 22x5 cent = 1,10 Bestand
# = 88,65E aus Matemat
from MDB import MDB
import time
from binascii import hexlify, unhexlify
a = MDB.MDB("A1OUKMUG")
#a._send(['\x0B', '\x00'])
#a._send([0xB])
#print a._calcchk([0xB])
#print a._calcchk([(int(hexlify('\x0B'), 16))])
#print a._calcchk(['\x0B'])
#print a._calcchk(['\x08'])
a._send(['\x08'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment