· 7 years ago · May 03, 2018, 01:10 PM
12011-12-16 17:44:41 debug New socket accepted <socket._socketobject object at 0x8abd5a4> from ip 127.0.0.1 (remote port is: 51720)
22011-12-16 17:44:42 debug Processing the request from client #21. Client message is: "?&id_account=394879&amount=100&cmd=dispenser.dispense"
32011-12-16 17:44:42 debug RequestController: new request processing
42011-12-16 17:44:42 info Dispenser is enabled in configs (true)
52011-12-16 17:44:42 debug DispenserController: New dispense request received
62011-12-16 17:44:42 debug DispenserAdapter: port is /dev/ttyS0
72011-12-16 17:44:42 debug DispenserAdapter: parity is N
82011-12-16 17:44:42 debug DispenserAdapter: baudrate is 9600
92011-12-16 17:44:42 debug DispenserAdapter: timeout is 0.5
102011-12-16 17:44:42 debug DispenserAdapter: get_status command received
112011-12-16 17:44:42 debug DispenserAdapter: send command [4, 80, 2, 70, 3, 19]
122011-12-16 17:44:42 debug DispenserAdapter: send command in hex ['04', '50', '02', '46', '03', '13']
132011-12-16 17:44:42 debug >> serial.write [4, 80, 2, 70, 3, 19]
142011-12-16 17:44:42 debug DispenserAdapter.__read: first byte is: ACK
152011-12-16 17:44:42 debug DispenserAdapter.__send: bytes_recd == ACK
162011-12-16 17:44:42 debug >> serial.read in HEX: ['01', '50', '02', '46', '30', '38', 'C0', 'A0', '03', '7E']
172011-12-16 17:44:42 debug Dispenser_LCDM2000: Validate status_frame [1, 80, 2, 70, 48, 56, 192, 160, 3, 126]. Len is 10
182011-12-16 17:44:42 debug DispenserAdapter: [CMD STATUS] result: True
192011-12-16 17:44:42 debug DispenserAdapter: [CMD STATUS] info : {'status': True, 'sensor_1': '3', 'sensor_0': 'A0', 'error_cause': 'C0'}
202011-12-16 17:44:42 debug DispenserAdapter: port is opened: True
212011-12-16 17:44:42 debug DispenserAdapter: portstr is /dev/ttyS0
222011-12-16 17:44:42 debug HTTP: Sending request: {'id_terminal': 158, 'amount': 100, 'cmd': 'atm.dispense_start', 'secret_key': 159357, 'id_account': '394879'}
232011-12-16 17:44:42 debug HTTP: Receive: <?xml version="1.0" encoding="UTF-8"?>
24<response request_key="346516" status="28000"><cassets><cassete id_cassete="0" position="upper" charging="2" denomination="500" id_saloon="3878" is_enabled="1"/><cassete id_cas$
252011-12-16 17:44:42 debug DispenserAdapter: get_status command received
262011-12-16 17:44:42 debug DispenserAdapter: send command [4, 80, 2, 70, 3, 19]
272011-12-16 17:44:42 debug DispenserAdapter: send command in hex ['04', '50', '02', '46', '03', '13']
282011-12-16 17:44:42 debug >> serial.write [4, 80, 2, 70, 3, 19]
292011-12-16 17:44:42 debug DispenserAdapter.__read: first byte is: ACK
302011-12-16 17:44:42 debug DispenserAdapter.__send: bytes_recd == ACK
312011-12-16 17:44:42 debug >> serial.read in HEX: ['01', '50', '02', '46', '30', '38', 'C0', 'A0', '03', '7E']
322011-12-16 17:44:42 debug Dispenser_LCDM2000: Validate status_frame [1, 80, 2, 70, 48, 56, 192, 160, 3, 126]. Len is 10
332011-12-16 17:44:42 debug DispenserAdapter: [CMD STATUS] result: True
342011-12-16 17:44:42 debug DispenserAdapter: [CMD STATUS] info : {'status': True, 'sensor_1': '3', 'sensor_0': 'A0', 'error_cause': 'C0'}
352011-12-16 17:44:42 debug [DISPENSER]: Amount to dispense: 100
362011-12-16 17:44:42 debug [DISPENSER]: Next cassets are available: {0: {u'is_enabled': u'1', u'denomination': 500, u'id_cassete': 0, u'position': u'upper', u'charging': 2$
372011-12-16 17:44:42 debug [DISPENSER]: selected denomination: 500
382011-12-16 17:44:42 debug [DISPENSER]: no such banknotes in cassete #0
392011-12-16 17:44:42 debug [DISPENSER]: Amount to dispense: 100
402011-12-16 17:44:42 debug [DISPENSER]: Next cassets are available: {0: {u'is_enabled': u'1', u'denomination': 500, u'id_cassete': 0, u'position': u'upper', u'charging': 2$
412011-12-16 17:44:42 debug [DISPENSER]: selected denomination: 100
422011-12-16 17:44:42 debug [DISPENSER]: from selected cassete #1 will exit 1 banknotes with denomination 100
432011-12-16 17:44:42 debug DispenserAdapter: Starting dispense of amount 100
442011-12-16 17:44:42 debug Corrected counts: 10 (0), 1 (1)
452011-12-16 17:44:42 debug DispenserAdapter: send command [4, 80, 2, 85, 48, 49, 3, 1]
462011-12-16 17:44:42 debug DispenserAdapter: send command in hex ['04', '50', '02', '55', '30', '31', '03', '01']