Open ladiko opened 7 years ago
Does anybody has an idea what that error means?
ladiko@XX-A01-0001:~$ sudo ./test_pt.py > StatusEnquiry{05 01} *{'password': '123456'} **[] < 'ACK' < PacketReceived{80 00} **[] > 'ACK' < Completion{06 0F} *{'terminal-status': 0, 'sw-version': 'OPM-C60.SECCVD.t05.0099.29.03.20171203'} **[] > 'ACK' > PacketReceived{80 00} **[] < 'ACK' OPM-C60.SECCVD.t05.0099.29.03.20171203 > StatusEnquiry{05 01} *{'password': '123456'} **[] < 'ACK' < PacketReceived{80 00} **[] > 'ACK' < Completion{06 0F} *{'terminal-status': 0, 'sw-version': 'OPM-C60.SECCVD.t05.0099.29.03.20171203'} **[] > 'ACK' > PacketReceived{80 00} **[] < 'ACK' > Registration{06 00} *{'config_byte': 184, 'cc': [9, 120], 'password': '123456'} **[] < 'ACK' < PacketReceived{80 00} **[] > 'ACK' < Completion{06 0F} **[{'type': [16]}, {'tid': '21999014'}, {'currency_code': '0978'}] > 'ACK' > PacketReceived{80 00} **[] < 'ACK' > StatusEnquiry{05 01} *{'password': '123456'} **[] < 'ACK' < PacketReceived{80 00} **[] > 'ACK' < Completion{06 0F} *{'terminal-status': 0, 'sw-version': 'OPM-C60.SECCVD.t05.0099.29.03.20171203'} **[] > 'ACK' > PacketReceived{80 00} **[] < 'ACK' > Authorisation{06 01} **[{'amount': '000000000050'}, {'currency_code': '0978'}] < 'ACK' < PacketReceived{80 00} **[] > 'ACK' < IntermediateStatus{04 FF}: insert card > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < IntermediateStatus{04 FF}: No status > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < IntermediateStatus{04 FF}: No status > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < IntermediateStatus{04 FF}: please wait... > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < IntermediateStatus{04 FF}: please wait... > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < IntermediateStatus{04 FF}: please wait... > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < StatusInformation{04 0F} **[{'result_code': [0]}, {'tid': '21999014'}, {'amount': '000000000050'}, {'trace_number': '000024'}, {'time': '152325'}, {'date_day': '0616'}, {'card_expire': '2012'}, {'card_sequence_number': '0000'}, {'type': [96]}, {'card_number': 'g)Rt \x17\x01\x04F\x9f'}, {'receipt': '0004'}, {'aid': [48, 48, 48, 48, 49, 49, 49, 49]}, {'currency_code': '0978'}, {'vu': [52, 53, 53, 54, 48, 48, 48, 48, 48, 53, 57, 57, 32, 32, 32]}, {'card_name': 'girocard\x00'}, {'card_type': [5]}, {'additional': 'Authorized by X-Host'}] > 'ACK' > PacketReceived{80 00} **[] < 'ACK' < IntermediateStatus{04 FF}: custom or unknown status. > 'ACK' > PacketReceived{80 00} **[] < 'ACK' DEBUG: Cannot be represented: [16, 2, 6, 211, 255, 178, 4, 6, 130, 4, 174, 31, 7, 1, 1, 37, 130, 4, 166, 9, 1, 0, 7, 30, 32, 32, 32, 32, 32, 32, 32, 45, 32, 84, 69, 83, 84, 86, 69, 82, 83, 73, 79, 78, 32, 45, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 72, 45, 196, 45, 78, 45, 68, 45, 76, 45, 69, 45, 82, 45, 66, 45, 69, 45, 76, 45, 69, 45, 71, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 67, 67, 86, 32, 68, 101, 117, 116, 115, 99, 104, 108, 97, 110, 100, 32, 71, 109, 98, 72, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 79, 80, 80, 32, 252, 98, 101, 114, 32, 88, 72, 111, 115, 116, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 75, 97, 114, 116, 101, 110, 122, 97, 104, 108, 117, 110, 103, 32, 103, 105, 114, 111, 99, 97, 114, 100, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 66, 101, 116, 114, 97, 103, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 44, 53, 48, 32, 69, 85, 82, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 49, 54, 46, 48, 54, 46, 50, 48, 49, 55, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 49, 53, 58, 50, 51, 7, 30, 84, 101, 114, 109, 105, 110, 97, 108, 45, 73, 68, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 50, 49, 57, 57, 57, 48, 49, 52, 7, 30, 84, 65, 45, 78, 114, 46, 32, 48, 48, 48, 48, 50, 52, 32, 32, 32, 66, 101, 108, 101, 103, 45, 78, 114, 46, 32, 48, 48, 48, 52, 7, 30, 75, 97, 114, 116, 101, 110, 110, 114, 46, 32, 32, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 52, 52, 54, 57, 7, 30, 75, 46, 102, 111, 108, 103, 46, 78, 114, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 48, 48, 48, 7, 30, 67, 104, 105, 112, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 79, 110, 108, 105, 110, 101, 7, 30, 86, 85, 45, 78, 117, 109, 109, 101, 114, 32, 32, 32, 32, 32, 32, 52, 53, 53, 54, 48, 48, 48, 48, 48, 53, 57, 57, 32, 32, 32, 7, 30, 65, 73, 68, 45, 80, 97, 114, 97, 109, 101, 116, 101, 114, 32, 32, 32, 32, 32, 32, 32, 52, 50, 52, 50, 52, 50, 52, 50, 52, 50, 7, 30, 65, 117, 116, 111, 114, 105, 115, 105, 101, 114, 117, 110, 103, 115, 110, 117, 109, 109, 101, 114, 32, 32, 48, 48, 48, 48, 49, 49, 49, 49, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 65, 73, 68, 32, 32, 32, 32, 32, 32, 32, 65, 48, 48, 48, 48, 48, 48, 51, 53, 57, 49, 48, 49, 48, 48, 50, 56, 48, 48, 49, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 84, 86, 82, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 48, 48, 48, 56, 48, 48, 48, 48, 48, 7, 30, 84, 83, 73, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 69, 56, 48, 48, 7, 30, 65, 84, 67, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 48, 48, 51, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 85, 80, 78, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 67, 57, 52, 65, 51, 51, 67, 57, 7, 30, 73, 65, 68, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 7, 30, 65, 67, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 52, 68, 54, 49, 54, 70, 65, 51, 55, 69, 70, 66, 68, 65, 69, 57, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 65, 117, 116, 104, 111, 114, 105, 122, 101, 100, 32, 98, 121, 32, 88, 45, 72, 111, 115, 116, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 7, 30, 42, 42, 32, 32, 32, 32, 32, 90, 97, 104, 108, 117, 110, 103, 32, 101, 114, 102, 111, 108, 103, 116, 32, 32, 32, 32, 32, 32, 42, 42, 9, 1, 255, 16, 3, 182, 195] Not enough Data to create the packet data. < 10 02 06 D3 FF B2 04 06 82 04 AE 1F 07 01 01 25 82 04 A6 09 01 00 07 1E 20 20 20 20 20 20 20 2D 20 54 45 53 54 56 45 52 53 49 4F 4E 20 2D 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 48 2D C4 2D 4E 2D 44 2D 4C 2D 45 2D 52 2D 42 2D 45 2D 4C 2D 45 2D 47 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 43 43 56 20 44 65 75 74 73 63 68 6C 61 6E 64 20 47 6D 62 48 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 4F 50 50 20 FC 62 65 72 20 58 48 6F 73 74 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 4B 61 72 74 65 6E 7A 61 68 6C 75 6E 67 20 67 69 72 6F 63 61 72 64 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 42 65 74 72 61 67 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 2C 35 30 20 45 55 52 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 31 36 2E 30 36 2E 32 30 31 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 35 3A 32 33 07 1E 54 65 72 6D 69 6E 61 6C 2D 49 44 20 20 20 20 20 20 20 20 20 20 20 32 31 39 39 39 30 31 34 07 1E 54 41 2D 4E 72 2E 20 30 30 30 30 32 34 20 20 20 42 65 6C 65 67 2D 4E 72 2E 20 30 30 30 34 07 1E 4B 61 72 74 65 6E 6E 72 2E 20 20 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 34 34 36 39 07 1E 4B 2E 66 6F 6C 67 2E 4E 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 30 07 1E 43 68 69 70 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4F 6E 6C 69 6E 65 07 1E 56 55 2D 4E 75 6D 6D 65 72 20 20 20 20 20 20 34 35 35 36 30 30 30 30 30 35 39 39 20 20 20 07 1E 41 49 44 2D 50 61 72 61 6D 65 74 65 72 20 20 20 20 20 20 20 34 32 34 32 34 32 34 32 34 32 07 1E 41 75 74 6F 72 69 73 69 65 72 75 6E 67 73 6E 75 6D 6D 65 72 20 20 30 30 30 30 31 31 31 31 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 41 49 44 20 20 20 20 20 20 20 41 30 30 30 30 30 30 33 35 39 31 30 31 30 30 32 38 30 30 31 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 54 56 52 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 30 38 30 30 30 30 30 07 1E 54 53 49 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 38 30 30 07 1E 41 54 43 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 33 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 55 50 4E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 39 34 41 33 33 43 39 07 1E 49 41 44 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 30 30 30 30 30 30 30 30 30 30 30 07 1E 41 43 20 20 20 20 20 20 20 20 20 20 20 20 34 44 36 31 36 46 41 33 37 45 46 42 44 41 45 39 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 41 75 74 68 6F 72 69 7A 65 64 20 62 79 20 58 2D 48 6F 73 74 20 20 20 20 20 20 20 20 20 20 07 1E 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 07 1E 2A 2A 20 20 20 20 20 5A 61 68 6C 75 6E 67 20 65 72 66 6F 6C 67 74 20 20 20 20 20 20 2A 2A 09 01 FF 10 03 B6 C3 > 'ACK' Traceback (most recent call last): File "./test_pt.py", line 41, in <module> if e.payment(50): File "/home/cosmocard/ecrterm/ecr.py", line 258, in payment code = self.transmit(pkg) File "/home/cosmocard/ecrterm/ecr.py", line 347, in transmit transmission = self.transmitter.transmit(packet) File "/home/cosmocard/ecrterm/transmission/_transmission.py", line 60, in transmit ret = self._transmit(packet, self.last_history) File "/home/cosmocard/ecrterm/transmission/_transmission.py", line 86, in _transmit success, response = self.transport.receive(self.actual_timeout) File "/home/cosmocard/ecrterm/transmission/transport_serial.py", line 235, in receive return True, APDUPacket.parse(message.apdu) File "/home/cosmocard/ecrterm/packets/apdu.py", line 257, in parse instance.data = blob[2:] File "/home/cosmocard/ecrterm/packets/apdu.py", line 231, in set_data raise self.NotEnoughData("Not enough Data to create the packet data.") ecrterm.packets.apdu.NotEnoughData: Not enough Data to create the packet data.
Does anybody has an idea what that error means?