Closed ladiko closed 7 years ago
Did you copy that by hand or is that verbatim output? Just asking because the output contains some typos like Autohorization or resulkt_code, but they are probably not the problem.
You might need to supply a PIN to your device during initialization. The device we use in production requires an initialization like the following:
self.ecr = ecr.ECR(device='/dev/ttyUSB1', password='000000')
self.ecr.register(config_byte=Registration.generate_config(
ecr_prints_receipt=False,
ecr_prints_admin_receipt=False,
ecr_controls_admin=True,
ecr_controls_payment=True,
))
Note that the example from my previous config might only work with my yet unmerged branch of the project: https://github.com/mathiasfrey/ecrterm/compare/master...raphaelm:python3
Seems like it's my fault. The config_byte helped to get over this error. beside that, i didnt do the initial activation with the remote server of the network carrier. I'm a greenhorn!
When i start the test_pt.py I just get
0x51 : "initialisation required",
as terminal status:Then on e.payment(50) it says:
Any idea what that means?