[06:58:47]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:58:47]ProducePacketName [06:58:47]name=ofd_packets/00001686 [06:58:47]OFD Sender: To server: pG, [06:58:47]CommunicateWithHost lk.salyk.kg:30040 [06:58:47]ConnectInit lk.salyk.kg [06:58:52]ConnectInit Can't take IP for lk.salyk.kg [06:58:52]CommunicateWithHost connect error [06:58:52]CommunicateWithHost err = -1 [06:58:52]OFD Sender: Server communicate error [06:58:57]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:58:57]ProducePacketName [06:58:57]name=ofd_packets/00001686 [06:58:57]OFD Sender: To server: pG, [06:58:57]CommunicateWithHost lk.salyk.kg:30040 [06:58:57]ConnectInit lk.salyk.kg [06:59:02]ConnectInit Can't take IP for lk.salyk.kg [06:59:02]CommunicateWithHost connect error [06:59:02]CommunicateWithHost err = -1 [06:59:02]OFD Sender: Server communicate error [06:59:07]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:59:07]ProducePacketName [06:59:07]name=ofd_packets/00001686 [06:59:07]OFD Sender: To server: pG, [06:59:07]CommunicateWithHost lk.salyk.kg:30040 [06:59:07]ConnectInit lk.salyk.kg [06:59:12]ConnectInit Can't take IP for lk.salyk.kg [06:59:12]CommunicateWithHost connect error [06:59:12]CommunicateWithHost err = -1 [06:59:12]OFD Sender: Server communicate error [06:59:17]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:59:17]ProducePacketName [06:59:17]name=ofd_packets/00001686 [06:59:17]OFD Sender: To server: pG, [06:59:17]CommunicateWithHost lk.salyk.kg:30040 [06:59:17]ConnectInit lk.salyk.kg [06:59:22]ConnectInit Can't take IP for lk.salyk.kg [06:59:22]CommunicateWithHost connect error [06:59:22]CommunicateWithHost err = -1 [06:59:22]OFD Sender: Server communicate error [06:59:27]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:59:27]ProducePacketName [06:59:27]name=ofd_packets/00001686 [06:59:27]OFD Sender: To server: pG, [06:59:27]CommunicateWithHost lk.salyk.kg:30040 [06:59:27]ConnectInit lk.salyk.kg [06:59:32]ConnectInit Can't take IP for lk.salyk.kg [06:59:32]CommunicateWithHost connect error [06:59:32]CommunicateWithHost err = -1 [06:59:32]OFD Sender: Server communicate error [06:59:37]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:59:37]ProducePacketName [06:59:37]name=ofd_packets/00001686 [06:59:37]OFD Sender: To server: pG, [06:59:37]CommunicateWithHost lk.salyk.kg:30040 [06:59:37]ConnectInit lk.salyk.kg [06:59:42]ConnectInit Can't take IP for lk.salyk.kg [06:59:42]CommunicateWithHost connect error [06:59:42]CommunicateWithHost err = -1 [06:59:42]OFD Sender: Server communicate error [06:59:47]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:59:47]ProducePacketName [06:59:47]name=ofd_packets/00001686 [06:59:47]OFD Sender: To server: pG, [06:59:47]CommunicateWithHost lk.salyk.kg:30040 [06:59:47]ConnectInit lk.salyk.kg [06:59:52]ConnectInit Can't take IP for lk.salyk.kg [06:59:52]CommunicateWithHost connect error [06:59:52]CommunicateWithHost err = -1 [06:59:52]OFD Sender: Server communicate error [06:59:57]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [06:59:57]ProducePacketName [06:59:57]name=ofd_packets/00001686 [06:59:57]OFD Sender: To server: pG, [06:59:57]CommunicateWithHost lk.salyk.kg:30040 [06:59:57]ConnectInit lk.salyk.kg [07:00:02]ConnectInit Can't take IP for lk.salyk.kg [07:00:02]CommunicateWithHost connect error [07:00:02]CommunicateWithHost err = -1 [07:00:02]OFD Sender: Server communicate error [07:00:07]OFD Sender: Processing packet 1686 [packets to send 8, broken 0] [07:00:07]ProducePacketName [07:00:07]name=ofd_packets/00001686 [07:00:07]OFD Sender: To server: pG, [07:00:07]CommunicateWithHost lk.salyk.kg:30040 [07:00:07]ConnectInit lk.salyk.kg [07:00:07]Connected sock=6 [07:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2C 01 00 00 3E 7C 24 01 6B D0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 4B 40 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 96 06 00 00 35 04 06 00 A2 5D 58 FB 6F C7 AA E4 BD 89 B4 AE 0C 25 [07:00:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 E3 50 47 00 BC 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 96 06 00 00 F4 03 04 00 33 2E 8F 66 B6 04 01 00 00 A6 2E 1C 9E 68 F4 BB 43 [07:00:08]CommunicateWithHost err = 0 [07:00:08]CheckOFDResponse [07:00:08]1017 (14) - 77093643461234 [07:00:08]1041 (16) - 0000000002098592 [07:00:08]1040 (4) - 1686 [07:00:08]1012 (4) - 11.07.2024 00:58 [07:00:08]1206 (1) - 0 [07:00:08]OFD Sender: Remove packet 1686 [07:00:08]ProducePacketName [07:00:08]name=ofd_packets/00001686 [07:00:08]NVStorageDeleteData [07:00:08]OFD Sender: Processing packet 1687 [packets to send 7, broken 0] [07:00:08]ProducePacketName [07:00:08]name=ofd_packets/00001687 [07:00:08]OFD Sender: To server: pG, [07:00:08]CommunicateWithHost lk.salyk.kg:30040 [07:00:08]ConnectInit lk.salyk.kg [07:00:09]Connected sock=6 [07:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3A 01 00 00 21 6E 32 01 61 62 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 74 46 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 97 06 00 00 35 04 06 00 05 20 23 0E C8 F3 C6 53 26 3D A1 CC B7 4C [07:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 B1 8C 47 00 72 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 97 06 00 00 F4 03 04 00 34 2E 8F 66 B6 04 01 00 00 20 3C FF 8C 6A 3C 6A 80 [07:00:09]CommunicateWithHost err = 0 [07:00:09]CheckOFDResponse [07:00:09]1017 (14) - 77093643461234 [07:00:09]1041 (16) - 0000000002098592 [07:00:09]1040 (4) - 1687 [07:00:09]1012 (4) - 11.07.2024 00:58 [07:00:09]1206 (1) - 0 [07:00:09]OFD Sender: Remove packet 1687 [07:00:09]ProducePacketName [07:00:09]name=ofd_packets/00001687 [07:00:09]NVStorageDeleteData [07:00:09]OFD Sender: Processing packet 1688 [packets to send 6, broken 0] [07:00:09]ProducePacketName [07:00:09]name=ofd_packets/00001688 [07:00:09]OFD Sender: To server: pG, [07:00:09]CommunicateWithHost lk.salyk.kg:30040 [07:00:09]ConnectInit lk.salyk.kg [07:00:10]Connected sock=6 [07:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 1D 01 00 00 87 A2 15 01 F0 FF 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 94 4B 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 98 06 00 00 35 04 06 00 D2 D0 57 BA 2C 64 BC D2 66 34 19 79 EF 46 [07:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 FA 3E 47 00 52 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 98 06 00 00 F4 03 04 00 35 2E 8F 66 B6 04 01 00 00 1E 2D 70 88 8D 4B DF DD [07:00:10]CommunicateWithHost err = 0 [07:00:10]CheckOFDResponse [07:00:10]1017 (14) - 77093643461234 [07:00:10]1041 (16) - 0000000002098592 [07:00:10]1040 (4) - 1688 [07:00:10]1012 (4) - 11.07.2024 00:58 [07:00:10]1206 (1) - 0 [07:00:10]OFD Sender: Remove packet 1688 [07:00:10]ProducePacketName [07:00:10]name=ofd_packets/00001688 [07:00:10]NVStorageDeleteData [07:00:11]OFD Sender: Processing packet 1689 [packets to send 5, broken 0] [07:00:11]ProducePacketName [07:00:11]name=ofd_packets/00001689 [07:00:11]OFD Sender: To server: pG, [07:00:11]CommunicateWithHost lk.salyk.kg:30040 [07:00:11]ConnectInit lk.salyk.kg [07:00:11]Connected sock=6 [07:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 93 01 00 00 4A AA 8B 01 86 1D 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 5E 55 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 99 06 00 00 35 04 06 00 50 B5 30 F1 7C 07 1E FB 8F 13 EE 7C 50 F5 [07:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 A9 FB 47 00 9A 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 99 06 00 00 F4 03 04 00 36 2E 8F 66 B6 04 01 00 00 23 16 82 5A 2C 9B EB 4E [07:00:11]CommunicateWithHost err = 0 [07:00:11]CheckOFDResponse [07:00:11]1017 (14) - 77093643461234 [07:00:11]1041 (16) - 0000000002098592 [07:00:11]1040 (4) - 1689 [07:00:11]1012 (4) - 11.07.2024 00:58 [07:00:11]1206 (1) - 0 [07:00:11]OFD Sender: Remove packet 1689 [07:00:11]ProducePacketName [07:00:11]name=ofd_packets/00001689 [07:00:11]NVStorageDeleteData [07:00:12]OFD Sender: Processing packet 1690 [packets to send 4, broken 0] [07:00:12]ProducePacketName [07:00:12]name=ofd_packets/00001690 [07:00:12]OFD Sender: To server: pG, [07:00:12]CommunicateWithHost lk.salyk.kg:30040 [07:00:12]ConnectInit lk.salyk.kg [07:00:12]Connected sock=6 [07:00:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 F4 02 00 00 F3 D1 EC 02 82 F5 5A 03 01 00 03 00 E0 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 58 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 24 00 00 00 00 07 04 06 00 24 58 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 81 6A 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9A 06 00 00 35 04 06 00 0A D7 AB 1C EB A7 81 D4 FC ED 81 96 10 3C [07:00:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 91 56 47 00 9F F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9A 06 00 00 F4 03 04 00 38 2E 8F 66 B6 04 01 00 00 B5 B3 CD 94 B9 12 4B 14 [07:00:12]CommunicateWithHost err = 0 [07:00:12]CheckOFDResponse [07:00:12]1017 (14) - 77093643461234 [07:00:12]1041 (16) - 0000000002098592 [07:00:12]1040 (4) - 1690 [07:00:12]1012 (4) - 11.07.2024 00:58 [07:00:12]1206 (1) - 0 [07:00:12]OFD Sender: Remove packet 1690 [07:00:12]ProducePacketName [07:00:12]name=ofd_packets/00001690 [07:00:12]NVStorageDeleteData [07:00:13]OFD Sender: Processing packet 1691 [packets to send 3, broken 0] [07:00:13]ProducePacketName [07:00:13]name=ofd_packets/00001691 [07:00:13]OFD Sender: To server: pG, [07:00:13]CommunicateWithHost lk.salyk.kg:30040 [07:00:13]ConnectInit lk.salyk.kg [07:00:13]Connected sock=6 [07:00:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 25 01 00 00 F7 57 1D 01 B8 9E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 CC 6C 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9B 06 00 00 35 04 06 00 29 C9 E0 DC E3 18 A1 A7 13 C6 4A A2 F1 7F [07:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 C8 21 47 00 00 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9B 06 00 00 F4 03 04 00 39 2E 8F 66 B6 04 01 00 00 95 8C 6C 00 88 B6 87 C0 [07:00:13]CommunicateWithHost err = 0 [07:00:13]CheckOFDResponse [07:00:13]1017 (14) - 77093643461234 [07:00:13]1041 (16) - 0000000002098592 [07:00:13]1040 (4) - 1691 [07:00:13]1012 (4) - 11.07.2024 00:58 [07:00:13]1206 (1) - 0 [07:00:13]OFD Sender: Remove packet 1691 [07:00:13]ProducePacketName [07:00:13]name=ofd_packets/00001691 [07:00:13]NVStorageDeleteData [07:00:14]OFD Sender: Processing packet 1692 [packets to send 2, broken 0] [07:00:14]ProducePacketName [07:00:14]name=ofd_packets/00001692 [07:00:14]OFD Sender: To server: pG, [07:00:14]CommunicateWithHost lk.salyk.kg:30040 [07:00:14]ConnectInit lk.salyk.kg [07:00:14]Connected sock=6 [07:00:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 8B 01 00 00 E8 13 83 01 49 2A 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 B4 76 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9C 06 00 00 35 04 06 00 78 52 10 CE 08 0D 65 A8 75 31 57 6E 64 2A [07:00:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 47 32 47 00 CC F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9C 06 00 00 F4 03 04 00 3A 2E 8F 66 B6 04 01 00 00 8F 55 73 21 DF E0 0C B2 [07:00:14]CommunicateWithHost err = 0 [07:00:14]CheckOFDResponse [07:00:14]1017 (14) - 77093643461234 [07:00:14]1041 (16) - 0000000002098592 [07:00:14]1040 (4) - 1692 [07:00:14]1012 (4) - 11.07.2024 00:58 [07:00:14]1206 (1) - 0 [07:00:14]OFD Sender: Remove packet 1692 [07:00:14]ProducePacketName [07:00:14]name=ofd_packets/00001692 [07:00:14]NVStorageDeleteData [07:00:15]OFD Sender: Processing packet 1693 [packets to send 1, broken 0] [07:00:15]ProducePacketName [07:00:15]name=ofd_packets/00001693 [07:00:15]OFD Sender: To server: pG, [07:00:15]CommunicateWithHost lk.salyk.kg:30040 [07:00:15]ConnectInit lk.salyk.kg [07:00:15]Connected sock=6 [07:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 23 01 00 00 D8 3F 1B 01 4D AD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D6 78 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9D 06 00 00 35 04 06 00 E9 A7 9C 98 DE 69 C8 93 A9 6D 9B E7 F6 70 [07:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 B0 03 47 00 DE 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9D 06 00 00 F4 03 04 00 3A 2E 8F 66 B6 04 01 00 00 A4 6B BB 68 F7 A0 4E BE [07:00:15]CommunicateWithHost err = 0 [07:00:15]CheckOFDResponse [07:00:15]1017 (14) - 77093643461234 [07:00:15]1041 (16) - 0000000002098592 [07:00:15]1040 (4) - 1693 [07:00:15]1012 (4) - 11.07.2024 00:58 [07:00:15]1206 (1) - 0 [07:00:15]OFD Sender: Remove packet 1693 [07:00:15]ProducePacketName [07:00:15]name=ofd_packets/00001693 [07:00:15]NVStorageDeleteData [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:00:57]ConnectInit Can't connect to host [07:01:00]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:40]recv_with_timeout no data received [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:04:37]ConnectInit Can't connect to host [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]ConnectInit Can't connect to host [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]recv_with_timeout no data received [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:25:20]ConnectInit Can't connect to host [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:48]accept exits with 8 [07:27:48]New connection [07:27:48]New thread 3067415908 created [07:27:48]Thread 3067272548 joined [07:27:48]Waiting for new connection... [07:27:48] Sock 8.Parse request [07:27:48]Sock 8.Check first char [07:27:48]Sock 8.First char is OK [07:27:48]request: POST /json_proto HTTP/1.0 [07:27:48]Method: POST [07:27:48]URL: /json_proto [07:27:48]Method is POST - this is cgi request [07:27:48]url: /json_proto [07:27:48]query_string will be loaded in cgi processing [07:27:48]execute_cgi json_proto POST (null) [07:27:48]execute_cgi path=json_proto method=POST [07:27:48]POST find Content-Length [07:27:48]Host: 172.17.35.133:8080 [07:27:48]Content-Length: 634 [07:27:48]Content-Type: application/json [07:27:48] [07:27:48]POST finish read [07:27:48]Found Content-Length = 634 [07:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256168", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:48]execute_script... [07:27:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256168", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:48]POST & json_proto [07:27:48]process_json_proto [07:27:48]json parsed OK: [07:27:48]protocol is kg_v1.0 [07:27:48]action value=close_receipt [07:27:48]process_action close_receipt [07:27:48]cmd_close_receipt [07:27:48]MH_GetDate [07:27:48]Write to MH i2c: F0 00 00 23 07 19 [07:27:48]Write i2c OK [07:27:48]MH_I2C_Read... [07:27:48]Read from MH i2c: F0 [07:27:48]MH_I2C_Read... [07:27:48]Read from MH i2c: F0 09 00 [07:27:48]MH_I2C_Read... [07:27:48]Read from MH i2c: F0 09 00 23 07 00 77 89 8F 66 1B 28 2A 66 EA [07:27:48]GetLastDocTimeStamp 1720678614 [07:27:48]current date 1720682871 [07:27:48]FM_GetShiftState [07:27:48]SAM_PROTO_GetShiftState [07:27:48]wFMCommunicate request_size=4 [07:27:48]MH_SAM_APDU [07:27:48]CAPDU: 80 13 01 00 [07:27:48]Write to MH i2c: E2 08 00 24 07 80 13 01 00 00 00 00 00 A8 [07:27:48]Write i2c OK [07:27:48]MH_I2C_Read... [07:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:48]Read from MH i2c: E2 [07:27:48]MH_I2C_Read... [07:27:48]Read from MH i2c: E2 0E 00 [07:27:48]MH_I2C_Read... [07:27:48]Read from MH i2c: E2 0E 00 24 07 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 06 [07:27:48]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [07:27:48]wFMCommunicate OK [07:27:48]SAM_PROTO_GetShiftState done [07:27:48]FM_GetShiftState done [07:27:48]opened in 1720656698 [07:27:48]opened+sec_in_day 1720743098 [07:27:48]quantity*price = 12000 [07:27:48]sum+1 = 12001 [07:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 10 11.07.2024 07:27 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1694 ФПД: 99763673896042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T072751&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1694&fm=99763673896042&tin=02508201610067®Number=0000000000177495&sum=12000 0 [07:27:50]StoreToDocumentArchive [07:27:50]shift 22 fd 1694 [07:27:50]save to /storage/0022/doc_00001694 [07:27:50]save last doc name /storage/0022/doc_00001694 to /storage/kkm_last_doc_name [07:27:50]save OK [07:27:50]Clear old archive folders... [07:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:27:50]tlvbuf is 0113F790 [07:27:50]SAM_PROTO_ClearQueue [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 09 00 00 [07:27:50]Write to MH i2c: E2 08 00 31 07 80 09 00 00 00 00 00 00 AA [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]SAM_PROTO_ClearQueue done [07:27:50]KKMCreateOFDPacket [07:27:50]OFDProtocolAddRootSTLVToBuf [07:27:50]FM_MakeSignedData [07:27:50]FM_MakeSignedData [07:27:50]SAM_PROTO_SignData [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 01 02 [07:27:50]Write to MH i2c: E2 08 00 32 07 80 0D 01 02 00 00 00 00 B2 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]wFMCommunicate request_size=255 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 77 89 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:27:50]Write to MH i2c: E2 02 01 33 07 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 77 89 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 5A [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]wFMCommunicate request_size=30 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 02 02 19 32 30 39 38 35 39 32 10 04 04 00 9E 06 00 00 35 04 06 00 5A BC 0A 58 14 6A [07:27:50]Write to MH i2c: E2 21 00 34 07 80 0D 02 02 19 00 32 30 39 38 35 39 32 10 04 04 00 9E 06 00 00 35 04 06 00 5A BC 0A 58 14 6A 00 00 4B [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 03 02 [07:27:50]Write to MH i2c: E2 08 00 35 07 80 0D 03 02 00 00 00 00 B7 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 0B 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 0B 00 35 07 00 CE 25 91 FB E3 55 13 E9 90 00 6B [07:27:50]RAPDU: CE 25 91 FB E3 55 13 E9 90 00 [07:27:50]wFMCommunicate OK [07:27:50]SAM_PROTO_SignData done [07:27:50]FM_MakeSignedData done [07:27:50]CreateOFDProtocolMessage [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 11 00 00 [07:27:50]Write to MH i2c: E2 08 00 36 07 80 11 00 00 00 00 00 00 B7 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 17 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 17 00 36 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0D [07:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [07:27:50]wFMCommunicate OK [07:27:50]CreateOFDProtocolMessage done [07:27:50]OFDSenderStorePacket 1694 [07:27:50]StoreOFDPacket docnum=1694 [07:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 23 01 00 00 E3 4F 1B 01 6B 22 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 77 89 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9E 06 00 00 35 04 06 00 5A BC 0A 58 14 6A CE 25 91 FB E3 55 13 E9 [07:27:50]CheckFolder [07:27:50]dirname=/storage/ofd_packets [07:27:50]CheckFolder done [07:27:50]ProducePacketName [07:27:50]name=ofd_packets/00001694 [07:27:50]NVStorageSaveData ofd_packets/00001694 [07:27:50]File name is /storage/ofd_packets/00001694 [07:27:50]Write 321 bytes [07:27:50]NVStorageSaveData done [07:27:50]OFDSenderStorePacket done [07:27:50]KKMCreateOFDPacket done [07:27:50]NVStorageSaveData kkm_last_timestamp [07:27:50]File name is /storage/kkm_last_timestamp [07:27:50]Write 4 bytes [07:27:50]NVStorageSaveData done [07:27:50]ExternCall_PrintAddStr [07:27:50]wPrintStart [07:27:50]Write to MH i2c: 01 00 00 37 07 3E [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: 01 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: 01 07 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 FF 0F 53 [07:27:50]RasterBufferAndPrint [07:27:50]line Счет N : (3)256168 [07:27:50]line ИНН: 02508201610067 [07:27:50]line Контрольно-Кассовый Чек [07:27:50]line ПРОДАЖА [07:27:50]line Товар: 4700025313937 [07:27:50]line ВОДКА МЯГКАЯ 0,1л [07:27:50]line 2.000 * 60.00 [07:27:50]line = 120.00 [07:27:50]line НДС 12% НСП 1% [07:27:50]line > о реализуемом товаре [07:27:50]line ИТОГО: 120.00 [07:27:50]line НСП 1% : 1.06 [07:27:50]line НДС 12% : 12.74 [07:27:50]line Наличными: 120.00 [07:27:50]line Безнал.: 0.00 [07:27:50]line Место: АЗС № 76 "Партнер Нефть" [07:27:50]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [07:27:50]line СНО: Общий режим [07:27:50]line Чек 10 11.07.2024 07:27 [07:27:50]line Смена: 22 ФФД: 1.0 [07:27:50]line ЗНМ: 0300000124 [07:27:50]line РНМ: 0000000000177495 [07:27:50]line Версия ККМ: 001 [07:27:50]line ФМ: 0000000002098592 [07:27:50]line ФД: 1694 [07:27:50]line ФПД: 99763673896042 [07:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T072751&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1694&fm=99763673896042&tin=02508201610067®Number=0000000000177495&sum=12000 [07:27:50]line 0 [07:27:50]OFD Sender: Processing packet 1694 [packets to send 1, broken 0] [07:27:50]ProducePacketName [07:27:50]name=ofd_packets/00001694 [07:27:50]OFD Sender: To server: pG, [07:27:50]CommunicateWithHost lk.salyk.kg:30040 [07:27:50]ConnectInit lk.salyk.kg [07:27:50]written 0, free lines is 4095 [07:27:51]Connected sock=6 [07:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 23 01 00 00 E3 4F 1B 01 6B 22 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 77 89 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9E 06 00 00 35 04 06 00 5A BC 0A 58 14 6A CE 25 91 FB E3 55 13 E9 [07:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 64 FC 47 00 EE 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9E 06 00 00 F4 03 04 00 B2 34 8F 66 B6 04 01 00 00 D2 A0 FD E2 ED 38 61 18 [07:27:51]CommunicateWithHost err = 0 [07:27:51]CheckOFDResponse [07:27:51]1017 (14) - 77093643461234 [07:27:51]1041 (16) - 0000000002098592 [07:27:51]1040 (4) - 1694 [07:27:51]1012 (4) - 11.07.2024 01:26 [07:27:51]1206 (1) - 0 [07:27:51]OFD Sender: Remove packet 1694 [07:27:51]ProducePacketName [07:27:51]name=ofd_packets/00001694 [07:27:51]NVStorageDeleteData [07:27:51]Write to MH i2c: 01 00 00 5F 07 66 [07:27:51]Write i2c OK [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: 01 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: 01 07 00 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 1F 0D 99 [07:27:51]RasterBufferAndPrint [07:27:51]line [07:27:51]line [07:27:51]line [07:27:51]line [07:27:51]line [07:27:51]written 0, free lines is 3365 [07:27:51]MH_Cut [07:27:51]Write to MH i2c: D1 01 00 66 07 01 3F [07:27:51]Write i2c OK [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: D1 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: D1 01 00 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: D1 01 00 66 07 00 3E [07:27:51]Write to MH i2c: 01 00 00 67 07 6E [07:27:51]Write i2c OK [07:27:51]MH_I2C_Read... [07:27:51]OFD Sender: No OFD packet to send [07:27:52]*** Cut start [07:27:52]*** Partial cut [07:27:52]*** CUTSNS_PIN = 1 [07:27:52]*** CUTSNS_PIN = 0 [07:27:52]*** Brake cut motor [07:27:52]Read from MH i2c: 01 [07:27:52]MH_I2C_Read... [07:27:52]*** Stop cut motor [07:27:52]*** Cut end [07:27:52]Read from MH i2c: 01 07 00 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [07:27:52]process_action close_receipt done [07:27:52]requested_data is exist [07:27:52]produce_requested_data [07:27:52]requested_item fm.sn is exist - process it [07:27:52]wFMCommunicate request_size=4 [07:27:52]MH_SAM_APDU [07:27:52]CAPDU: 80 11 00 00 [07:27:52]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [07:27:52]Write i2c OK [07:27:52]MH_I2C_Read... [07:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:52]Read from MH i2c: E2 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: E2 17 00 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3F [07:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [07:27:52]wFMCommunicate OK [07:27:52]requested_item fd.num is exist - process it [07:27:52]SAM_PROTO_GetFieldsCounters [07:27:52]wFMCommunicate request_size=4 [07:27:52]MH_SAM_APDU [07:27:52]CAPDU: 80 13 00 00 [07:27:52]Write to MH i2c: E2 08 00 69 07 80 13 00 00 00 00 00 00 EC [07:27:52]Write i2c OK [07:27:52]MH_I2C_Read... [07:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:52]Read from MH i2c: E2 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: E2 62 00 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: E2 62 00 69 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 9E 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [07:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 9E 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:27:52]wFMCommunicate OK [07:27:52]SAM_PROTO_GetFieldsCounters done [07:27:52]requested_item shift.num is exist - process it [07:27:52]requested_item shift.opened is exist - process it [07:27:52]req_shift_opened [07:27:52]FM_GetShiftState [07:27:52]SAM_PROTO_GetShiftState [07:27:52]wFMCommunicate request_size=4 [07:27:52]MH_SAM_APDU [07:27:52]CAPDU: 80 13 01 00 [07:27:52]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [07:27:52]Write i2c OK [07:27:52]MH_I2C_Read... [07:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:52]Read from MH i2c: E2 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: E2 0E 00 [07:27:52]MH_I2C_Read... [07:27:52]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 4C [07:27:52]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [07:27:52]wFMCommunicate OK [07:27:52]SAM_PROTO_GetShiftState done [07:27:52]FM_GetShiftState done [07:27:52]req_shift_opened done [07:27:52]requested_item shift.open_date is exist - process it [07:27:52]req_shift_open_date [07:27:52]req_shift_open_date done [07:27:52]produce_requested_data done [07:27:52]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1694,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [07:27:52]process_action_free close_receipt [07:27:52]json_value_free [07:27:52]json_value_free done [07:27:52]process_json_proto returns [07:27:52]Send response to host [07:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1694,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [07:27:52]free response buf [07:27:52]execute_script done [07:27:52]execute_script returns [07:27:52]free content buf [07:27:52]Sock 8.Close socket [07:27:52]Sock 8.Thread stoped [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:46:58]accept exits with 5 [07:46:58]New connection [07:46:58]New thread 3067272548 created [07:46:58]Thread 3067415908 joined [07:46:58]Waiting for new connection... [07:46:58] Sock 5.Parse request [07:46:58]Sock 5.Check first char [07:46:58]Sock 5.First char is OK [07:46:58]request: POST /json_proto HTTP/1.0 [07:46:58]Method: POST [07:46:58]URL: /json_proto [07:46:58]Method is POST - this is cgi request [07:46:58]url: /json_proto [07:46:58]query_string will be loaded in cgi processing [07:46:58]execute_cgi json_proto POST (null) [07:46:58]execute_cgi path=json_proto method=POST [07:46:58]POST find Content-Length [07:46:58]Host: 172.17.35.133:8080 [07:46:58]Content-Length: 629 [07:46:58]Content-Type: application/json [07:46:58] [07:46:58]POST finish read [07:46:58]Found Content-Length = 629 [07:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256169", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:58]execute_script... [07:46:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256169", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:58]POST & json_proto [07:46:58]process_json_proto [07:46:58]json parsed OK: [07:46:58]protocol is kg_v1.0 [07:46:58]action value=close_receipt [07:46:58]process_action close_receipt [07:46:58]cmd_close_receipt [07:46:58]MH_GetDate [07:46:58]Write to MH i2c: F0 00 00 6B 07 61 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: F0 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: F0 09 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: F0 09 00 6B 07 00 F5 8D 8F 66 1B 28 2A 66 B4 [07:46:58]GetLastDocTimeStamp 1720682871 [07:46:58]current date 1720684021 [07:46:58]FM_GetShiftState [07:46:58]SAM_PROTO_GetShiftState [07:46:58]wFMCommunicate request_size=4 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 13 01 00 [07:46:58]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0E 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 4E [07:46:58]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [07:46:58]wFMCommunicate OK [07:46:58]SAM_PROTO_GetShiftState done [07:46:58]FM_GetShiftState done [07:46:58]opened in 1720656698 [07:46:58]opened+sec_in_day 1720743098 [07:46:58]quantity*price = 55000 [07:46:58]sum+1 = 55001 [07:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.87 НДС 12% : 58.41 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 11 11.07.2024 07:47 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1695 ФПД: 146487238658075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T074701&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1695&fm=146487238658075&tin=02508201610067®Number=0000000000177495&sum=55000 0 [07:46:59]StoreToDocumentArchive [07:46:59]shift 22 fd 1695 [07:46:59]save to /storage/0022/doc_00001695 [07:46:59]save last doc name /storage/0022/doc_00001695 to /storage/kkm_last_doc_name [07:46:59]save OK [07:46:59]Clear old archive folders... [07:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=269 [07:46:59]tlvbuf is 0113F0A0 [07:46:59]SAM_PROTO_ClearQueue [07:46:59]wFMCommunicate request_size=4 [07:46:59]MH_SAM_APDU [07:46:59]CAPDU: 80 09 00 00 [07:46:59]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:59]Read from MH i2c: E2 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: E2 03 00 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [07:46:59]RAPDU: 90 00 [07:46:59]wFMCommunicate OK [07:46:59]SAM_PROTO_ClearQueue done [07:46:59]KKMCreateOFDPacket [07:46:59]OFDProtocolAddRootSTLVToBuf [07:46:59]FM_MakeSignedData [07:46:59]FM_MakeSignedData [07:46:59]SAM_PROTO_SignData [07:46:59]wFMCommunicate request_size=4 [07:46:59]MH_SAM_APDU [07:46:59]CAPDU: 80 0D 01 02 [07:46:59]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [07:47:00]RAPDU: 90 00 [07:47:00]wFMCommunicate OK [07:47:00]wFMCommunicate request_size=255 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F5 8D 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [07:47:00]Write to MH i2c: E2 02 01 7B 07 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F5 8D 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 81 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [07:47:00]RAPDU: 90 00 [07:47:00]wFMCommunicate OK [07:47:00]wFMCommunicate request_size=28 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 0D 02 02 17 39 38 35 39 32 10 04 04 00 9F 06 00 00 35 04 06 00 85 3A B7 D3 08 1B [07:47:00]Write to MH i2c: E2 1F 00 7C 07 80 0D 02 02 17 00 39 38 35 39 32 10 04 04 00 9F 06 00 00 35 04 06 00 85 3A B7 D3 08 1B 00 00 A4 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [07:47:00]RAPDU: 90 00 [07:47:00]wFMCommunicate OK [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 0D 03 02 [07:47:00]Write to MH i2c: E2 08 00 7D 07 80 0D 03 02 00 00 00 00 FF [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0B 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0B 00 7D 07 00 56 12 92 62 B7 66 39 BB 90 00 6D [07:47:00]RAPDU: 56 12 92 62 B7 66 39 BB 90 00 [07:47:00]wFMCommunicate OK [07:47:00]SAM_PROTO_SignData done [07:47:00]FM_MakeSignedData done [07:47:00]CreateOFDProtocolMessage [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 11 00 00 [07:47:00]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 55 [07:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [07:47:00]wFMCommunicate OK [07:47:00]CreateOFDProtocolMessage done [07:47:00]OFDSenderStorePacket 1695 [07:47:00]StoreOFDPacket docnum=1695 [07:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 21 01 00 00 71 A1 19 01 08 66 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F5 8D 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9F 06 00 00 35 04 06 00 85 3A B7 D3 08 1B 56 12 92 62 B7 66 39 BB [07:47:00]CheckFolder [07:47:00]dirname=/storage/ofd_packets [07:47:00]CheckFolder done [07:47:00]ProducePacketName [07:47:00]name=ofd_packets/00001695 [07:47:00]NVStorageSaveData ofd_packets/00001695 [07:47:00]File name is /storage/ofd_packets/00001695 [07:47:00]Write 319 bytes [07:47:00]NVStorageSaveData done [07:47:00]OFDSenderStorePacket done [07:47:00]KKMCreateOFDPacket done [07:47:00]NVStorageSaveData kkm_last_timestamp [07:47:00]File name is /storage/kkm_last_timestamp [07:47:00]Write 4 bytes [07:47:00]NVStorageSaveData done [07:47:00]ExternCall_PrintAddStr [07:47:00]wPrintStart [07:47:00]Write to MH i2c: 01 00 00 7F 07 86 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [07:47:00]RasterBufferAndPrint [07:47:00]line Счет N : (3)256169 [07:47:00]line ИНН: 02508201610067 [07:47:00]line Контрольно-Кассовый Чек [07:47:00]line ПРОДАЖА [07:47:00]line Товар: 4620006990387 [07:47:00]line Водка Талка 0,5л [07:47:00]line 1.000 * 550.00 [07:47:00]line = 550.00 [07:47:00]line НДС 12% НСП 1% [07:47:00]line > о реализуемом товаре [07:47:00]line ИТОГО: 550.00 [07:47:00]line НСП 1% : 4.87 [07:47:00]line НДС 12% : 58.41 [07:47:00]line Наличными: 550.00 [07:47:00]line Безнал.: 0.00 [07:47:00]line Место: АЗС № 76 "Партнер Нефть" [07:47:00]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [07:47:00]line СНО: Общий режим [07:47:00]line Чек 11 11.07.2024 07:47 [07:47:00]line Смена: 22 ФФД: 1.0 [07:47:00]line ЗНМ: 0300000124 [07:47:00]line РНМ: 0000000000177495 [07:47:00]line Версия ККМ: 001 [07:47:00]line ФМ: 0000000002098592 [07:47:00]line ФД: 1695 [07:47:00]line ФПД: 146487238658075 [07:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T074701&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1695&fm=146487238658075&tin=02508201610067®Number=0000000000177495&sum=55000 [07:47:00]line 0 [07:47:00]OFD Sender: Processing packet 1695 [packets to send 1, broken 0] [07:47:00]ProducePacketName [07:47:00]name=ofd_packets/00001695 [07:47:00]OFD Sender: To server: pG, [07:47:00]CommunicateWithHost lk.salyk.kg:30040 [07:47:00]ConnectInit lk.salyk.kg [07:47:00]written 0, free lines is 4095 [07:47:00]Connected sock=8 [07:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 21 01 00 00 71 A1 19 01 08 66 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F5 8D 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9F 06 00 00 35 04 06 00 85 3A B7 D3 08 1B 56 12 92 62 B7 66 39 BB [07:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 D0 3A 47 00 4E 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9F 06 00 00 F4 03 04 00 30 39 8F 66 B6 04 01 00 00 65 22 5B 42 DC D5 16 FC [07:47:01]CommunicateWithHost err = 0 [07:47:01]CheckOFDResponse [07:47:01]1017 (14) - 77093643461234 [07:47:01]1041 (16) - 0000000002098592 [07:47:01]1040 (4) - 1695 [07:47:01]1012 (4) - 11.07.2024 01:45 [07:47:01]1206 (1) - 0 [07:47:01]OFD Sender: Remove packet 1695 [07:47:01]ProducePacketName [07:47:01]name=ofd_packets/00001695 [07:47:01]NVStorageDeleteData [07:47:01]Write to MH i2c: 01 00 00 A7 07 AE [07:47:01]Write i2c OK [07:47:01]MH_I2C_Read... [07:47:01]Read from MH i2c: 01 [07:47:01]MH_I2C_Read... [07:47:01]Read from MH i2c: 01 07 00 [07:47:01]MH_I2C_Read... [07:47:01]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 22 0D E4 [07:47:01]RasterBufferAndPrint [07:47:01]line [07:47:01]line [07:47:01]line [07:47:01]line [07:47:01]line [07:47:01]written 0, free lines is 3371 [07:47:01]MH_Cut [07:47:01]Write to MH i2c: D1 01 00 AE 07 01 87 [07:47:01]Write i2c OK [07:47:01]MH_I2C_Read... [07:47:01]Read from MH i2c: D1 [07:47:01]MH_I2C_Read... [07:47:01]Read from MH i2c: D1 01 00 [07:47:01]MH_I2C_Read... [07:47:01]Read from MH i2c: D1 01 00 AE 07 00 86 [07:47:01]Write to MH i2c: 01 00 00 AF 07 B6 [07:47:01]Write i2c OK [07:47:01]MH_I2C_Read... [07:47:01]OFD Sender: No OFD packet to send [07:47:01]*** Cut start [07:47:01]*** Partial cut [07:47:01]*** CUTSNS_PIN = 1 [07:47:01]*** CUTSNS_PIN = 0 [07:47:02]*** Brake cut motor [07:47:02]Read from MH i2c: 01 [07:47:02]MH_I2C_Read... [07:47:02]*** Stop cut motor [07:47:02]*** Cut end [07:47:02]Read from MH i2c: 01 07 00 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [07:47:02]process_action close_receipt done [07:47:02]requested_data is exist [07:47:02]produce_requested_data [07:47:02]requested_item fm.sn is exist - process it [07:47:02]wFMCommunicate request_size=4 [07:47:02]MH_SAM_APDU [07:47:02]CAPDU: 80 11 00 00 [07:47:02]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [07:47:02]Write i2c OK [07:47:02]MH_I2C_Read... [07:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:02]Read from MH i2c: E2 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 17 00 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 87 [07:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [07:47:02]wFMCommunicate OK [07:47:02]requested_item fd.num is exist - process it [07:47:02]SAM_PROTO_GetFieldsCounters [07:47:02]wFMCommunicate request_size=4 [07:47:02]MH_SAM_APDU [07:47:02]CAPDU: 80 13 00 00 [07:47:02]Write to MH i2c: E2 08 00 B1 07 80 13 00 00 00 00 00 00 34 [07:47:02]Write i2c OK [07:47:02]MH_I2C_Read... [07:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:02]Read from MH i2c: E2 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 62 00 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 62 00 B1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 9F 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [07:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 9F 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:02]wFMCommunicate OK [07:47:02]SAM_PROTO_GetFieldsCounters done [07:47:02]requested_item shift.num is exist - process it [07:47:02]requested_item shift.opened is exist - process it [07:47:02]req_shift_opened [07:47:02]FM_GetShiftState [07:47:02]SAM_PROTO_GetShiftState [07:47:02]wFMCommunicate request_size=4 [07:47:02]MH_SAM_APDU [07:47:02]CAPDU: 80 13 01 00 [07:47:02]Write to MH i2c: E2 08 00 B2 07 80 13 01 00 00 00 00 00 36 [07:47:02]Write i2c OK [07:47:02]MH_I2C_Read... [07:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:02]Read from MH i2c: E2 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 0E 00 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 0E 00 B2 07 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 94 [07:47:02]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [07:47:02]wFMCommunicate OK [07:47:02]SAM_PROTO_GetShiftState done [07:47:02]FM_GetShiftState done [07:47:02]req_shift_opened done [07:47:02]requested_item shift.open_date is exist - process it [07:47:02]req_shift_open_date [07:47:02]req_shift_open_date done [07:47:02]produce_requested_data done [07:47:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1695,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [07:47:02]process_action_free close_receipt [07:47:02]json_value_free [07:47:02]json_value_free done [07:47:02]process_json_proto returns [07:47:02]Send response to host [07:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1695,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [07:47:02]free response buf [07:47:02]execute_script done [07:47:02]execute_script returns [07:47:02]free content buf [07:47:02]Sock 5.Close socket [07:47:02]Sock 5.Thread stoped [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:32]accept exits with 6 [08:02:32]New connection [08:02:32]New thread 3067415908 created [08:02:32]Thread 3067272548 joined [08:02:32]Waiting for new connection... [08:02:32] Sock 6.Parse request [08:02:32]Sock 6.Check first char [08:02:32]Sock 6.First char is OK [08:02:32]request: POST /json_proto HTTP/1.0 [08:02:32]Method: POST [08:02:32]URL: /json_proto [08:02:32]Method is POST - this is cgi request [08:02:32]url: /json_proto [08:02:32]query_string will be loaded in cgi processing [08:02:32]execute_cgi json_proto POST (null) [08:02:32]execute_cgi path=json_proto method=POST [08:02:32]POST find Content-Length [08:02:32]Host: 172.17.35.133:8080 [08:02:32]Content-Length: 1458 [08:02:32]Content-Type: application/json [08:02:32] [08:02:32]POST finish read [08:02:32]Found Content-Length = 1458 [08:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256170", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401805", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0414\u0416\u0418\u041D\u041D \u0441\u043E\u043B\u044C 130\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:32]execute_script... [08:02:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256170", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401805", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0414\u0416\u0418\u041D\u041D \u0441\u043E\u043B\u044C 130\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:32]POST & json_proto [08:02:32]process_json_proto [08:02:32]json parsed OK: [08:02:32]protocol is kg_v1.0 [08:02:32]action value=close_receipt [08:02:32]process_action close_receipt [08:02:32]cmd_close_receipt [08:02:32]MH_GetDate [08:02:32]Write to MH i2c: F0 00 00 B3 07 A9 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: F0 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: F0 09 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: F0 09 00 B3 07 00 9A 91 8F 66 1B 28 2A 66 A5 [08:02:32]GetLastDocTimeStamp 1720684021 [08:02:32]current date 1720684954 [08:02:32]FM_GetShiftState [08:02:32]SAM_PROTO_GetShiftState [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 13 01 00 [08:02:32]Write to MH i2c: E2 08 00 B4 07 80 13 01 00 00 00 00 00 38 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 B4 07 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 96 [08:02:32]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetShiftState done [08:02:32]FM_GetShiftState done [08:02:32]opened in 1720656698 [08:02:32]opened+sec_in_day 1720743098 [08:02:32]quantity*price = 6000 [08:02:32]sum+1 = 6001 [08:02:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007401805 Арахис ДЖИНН соль 130г 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 560.00 НСП 1% : 4.95 НДС 12% : 59.47 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 12 11.07.2024 08:02 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1696 ФПД: 27788441392181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T080235&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1696&fm=27788441392181&tin=02508201610067®Number=0000000000177495&sum=56000 0 [08:02:33]StoreToDocumentArchive [08:02:33]shift 22 fd 1696 [08:02:33]save to /storage/0022/doc_00001696 [08:02:33]save last doc name /storage/0022/doc_00001696 to /storage/kkm_last_doc_name [08:02:33]save OK [08:02:33]Clear old archive folders... [08:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=615 [08:02:33]tlvbuf is 0113E9C0 [08:02:33]SAM_PROTO_ClearQueue [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 09 00 00 [08:02:33]Write to MH i2c: E2 08 00 C1 07 80 09 00 00 00 00 00 00 3A [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]SAM_PROTO_ClearQueue done [08:02:33]KKMCreateOFDPacket [08:02:33]OFDProtocolAddRootSTLVToBuf [08:02:33]FM_MakeSignedData [08:02:33]FM_MakeSignedData [08:02:33]SAM_PROTO_SignData [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 01 02 [08:02:33]Write to MH i2c: E2 08 00 C2 07 80 0D 01 02 00 00 00 00 42 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=255 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 02 02 FA 03 00 67 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 [08:02:33]Write to MH i2c: E2 02 01 C3 07 80 0D 02 02 FA 00 03 00 67 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 00 00 84 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:34]Read from MH i2c: E2 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 03 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [08:02:34]RAPDU: 90 00 [08:02:34]wFMCommunicate OK [08:02:34]wFMCommunicate request_size=255 [08:02:34]MH_SAM_APDU [08:02:34]CAPDU: 80 0D 02 02 FA 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [08:02:34]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 63 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:34]Read from MH i2c: E2 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 03 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [08:02:34]RAPDU: 90 00 [08:02:34]wFMCommunicate OK [08:02:34]wFMCommunicate request_size=124 [08:02:34]MH_SAM_APDU [08:02:34]CAPDU: 80 0D 02 02 77 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 9B 91 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 06 00 00 35 04 06 00 19 46 00 2D 94 35 [08:02:34]Write to MH i2c: E2 7F 00 C5 07 80 0D 02 02 77 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 9B 91 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 06 00 00 35 04 06 00 19 46 00 2D 94 35 00 00 A3 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:34]Read from MH i2c: E2 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 03 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [08:02:34]RAPDU: 90 00 [08:02:34]wFMCommunicate OK [08:02:34]wFMCommunicate request_size=4 [08:02:34]MH_SAM_APDU [08:02:34]CAPDU: 80 0D 03 02 [08:02:34]Write to MH i2c: E2 08 00 C6 07 80 0D 03 02 00 00 00 00 48 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:34]Read from MH i2c: E2 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 0B 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 0B 00 C6 07 00 5F A2 54 2A 6E DF 20 CC 90 00 01 [08:02:34]RAPDU: 5F A2 54 2A 6E DF 20 CC 90 00 [08:02:34]wFMCommunicate OK [08:02:34]SAM_PROTO_SignData done [08:02:34]FM_MakeSignedData done [08:02:34]CreateOFDProtocolMessage [08:02:34]wFMCommunicate request_size=4 [08:02:34]MH_SAM_APDU [08:02:34]CAPDU: 80 11 00 00 [08:02:34]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:34]Read from MH i2c: E2 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 17 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9E [08:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:02:34]wFMCommunicate OK [08:02:34]CreateOFDProtocolMessage done [08:02:34]OFDSenderStorePacket 1696 [08:02:34]StoreOFDPacket docnum=1696 [08:02:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 7B 02 00 00 93 B0 73 02 9D D2 5A 03 01 00 03 00 67 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 9B 91 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 06 00 00 35 04 06 00 19 46 00 2D 94 35 5F A2 54 2A 6E DF 20 CC [08:02:34]CheckFolder [08:02:34]dirname=/storage/ofd_packets [08:02:34]CheckFolder done [08:02:34]ProducePacketName [08:02:34]name=ofd_packets/00001696 [08:02:34]NVStorageSaveData ofd_packets/00001696 [08:02:34]File name is /storage/ofd_packets/00001696 [08:02:34]Write 665 bytes [08:02:34]NVStorageSaveData done [08:02:34]OFDSenderStorePacket done [08:02:34]KKMCreateOFDPacket done [08:02:34]NVStorageSaveData kkm_last_timestamp [08:02:34]File name is /storage/kkm_last_timestamp [08:02:34]Write 4 bytes [08:02:34]NVStorageSaveData done [08:02:34]ExternCall_PrintAddStr [08:02:34]wPrintStart [08:02:34]Write to MH i2c: 01 00 00 C8 07 CF [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 FF 0F E4 [08:02:34]RasterBufferAndPrint [08:02:34]line Счет N : (3)256170 [08:02:34]line ИНН: 02508201610067 [08:02:34]line Контрольно-Кассовый Чек [08:02:34]line ПРОДАЖА [08:02:34]line Товар: 4700000310043 [08:02:34]line Вода Жалалабат 27 1л [08:02:34]line 1.000 * 60.00 [08:02:34]line = 60.00 [08:02:34]line НДС 12% НСП 1% [08:02:35]line > о реализуемом товаре [08:02:35]line Товар: 4870112002775 [08:02:35]line Шок батончик ALBENI BITES 80гр [08:02:35]line 2.000 * 75.00 [08:02:35]line = 150.00 [08:02:35]line НДС 12% НСП 1% [08:02:35]line > о реализуемом товаре [08:02:35]line Товар: 2000036190018 [08:02:35]line Кофе Американо XL(GABB TRADE) [08:02:35]line 2.000 * 125.00 [08:02:35]line = 250.00 [08:02:35]line НДС 12% НСП 1% [08:02:35]line > о реализуемом товаре [08:02:35]line Товар: 4630007401805 [08:02:35]line Арахис ДЖИНН соль 130г [08:02:35]line 1.000 * 100.00 [08:02:35]line = 100.00 [08:02:35]line НДС 12% НСП 1% [08:02:35]line > о реализуемом товаре [08:02:35]line ИТОГО: 560.00 [08:02:35]line НСП 1% : 4.95 [08:02:35]line НДС 12% : 59.47 [08:02:35]line Наличными: 560.00 [08:02:35]line Безнал.: 0.00 [08:02:35]line Место: АЗС № 76 "Партнер Нефть" [08:02:35]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:02:35]line СНО: Общий режим [08:02:35]line Чек 12 11.07.2024 08:02 [08:02:35]line Смена: 22 ФФД: 1.0 [08:02:35]line ЗНМ: 0300000124 [08:02:35]line РНМ: 0000000000177495 [08:02:35]line Версия ККМ: 001 [08:02:35]line ФМ: 0000000002098592 [08:02:35]line ФД: 1696 [08:02:35]line ФПД: 27788441392181 [08:02:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T080235&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1696&fm=27788441392181&tin=02508201610067®Number=0000000000177495&sum=56000 [08:02:35]line 0 [08:02:35]OFD Sender: Processing packet 1696 [packets to send 1, broken 0] [08:02:35]ProducePacketName [08:02:35]name=ofd_packets/00001696 [08:02:35]OFD Sender: To server: pG, [08:02:35]CommunicateWithHost lk.salyk.kg:30040 [08:02:35]ConnectInit lk.salyk.kg [08:02:35]written 0, free lines is 4095 [08:02:35]Connected sock=9 [08:02:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 7B 02 00 00 93 B0 73 02 9D D2 5A 03 01 00 03 00 67 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 9B 91 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 06 00 00 35 04 06 00 19 46 00 2D 94 35 5F A2 54 2A 6E DF 20 CC [08:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 8B 89 47 00 E9 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 06 00 00 F4 03 04 00 D7 3C 8F 66 B6 04 01 00 00 07 2A 25 BA 70 F2 CA 86 [08:02:35]CommunicateWithHost err = 0 [08:02:35]CheckOFDResponse [08:02:35]1017 (14) - 77093643461234 [08:02:35]1041 (16) - 0000000002098592 [08:02:35]1040 (4) - 1696 [08:02:35]1012 (4) - 11.07.2024 02:00 [08:02:35]1206 (1) - 0 [08:02:35]OFD Sender: Remove packet 1696 [08:02:35]ProducePacketName [08:02:35]name=ofd_packets/00001696 [08:02:35]NVStorageDeleteData [08:02:35]Write to MH i2c: 01 00 00 04 08 0C [08:02:35]Write i2c OK [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: 01 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: 01 07 00 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 43 0C 62 [08:02:35]RasterBufferAndPrint [08:02:35]line [08:02:35]line [08:02:35]line [08:02:35]line [08:02:35]line [08:02:35]written 0, free lines is 3150 [08:02:35]MH_Cut [08:02:35]Write to MH i2c: D1 01 00 0B 08 01 E5 [08:02:35]Write i2c OK [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: D1 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: D1 01 00 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: D1 01 00 0B 08 00 E4 [08:02:35]Write to MH i2c: 01 00 00 0C 08 14 [08:02:35]Write i2c OK [08:02:35]MH_I2C_Read... [08:02:35]OFD Sender: No OFD packet to send [08:02:36]*** Cut start [08:02:36]*** Partial cut [08:02:36]*** CUTSNS_PIN = 1 [08:02:36]*** CUTSNS_PIN = 0 [08:02:36]*** Brake cut motor [08:02:37]Read from MH i2c: 01 [08:02:37]MH_I2C_Read... [08:02:37]*** Stop cut motor [08:02:37]*** Cut end [08:02:37]Read from MH i2c: 01 07 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 FF 0F 29 [08:02:37]process_action close_receipt done [08:02:37]requested_data is exist [08:02:37]produce_requested_data [08:02:37]requested_item fm.sn is exist - process it [08:02:37]wFMCommunicate request_size=4 [08:02:37]MH_SAM_APDU [08:02:37]CAPDU: 80 11 00 00 [08:02:37]Write to MH i2c: E2 08 00 0D 08 80 11 00 00 00 00 00 00 8F [08:02:37]Write i2c OK [08:02:37]MH_I2C_Read... [08:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:37]Read from MH i2c: E2 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 17 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 17 00 0D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E5 [08:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:02:37]wFMCommunicate OK [08:02:37]requested_item fd.num is exist - process it [08:02:37]SAM_PROTO_GetFieldsCounters [08:02:37]wFMCommunicate request_size=4 [08:02:37]MH_SAM_APDU [08:02:37]CAPDU: 80 13 00 00 [08:02:37]Write to MH i2c: E2 08 00 0E 08 80 13 00 00 00 00 00 00 92 [08:02:37]Write i2c OK [08:02:37]MH_I2C_Read... [08:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:37]Read from MH i2c: E2 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 62 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 62 00 0E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [08:02:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:37]wFMCommunicate OK [08:02:37]SAM_PROTO_GetFieldsCounters done [08:02:37]requested_item shift.num is exist - process it [08:02:37]requested_item shift.opened is exist - process it [08:02:37]req_shift_opened [08:02:37]FM_GetShiftState [08:02:37]SAM_PROTO_GetShiftState [08:02:37]wFMCommunicate request_size=4 [08:02:37]MH_SAM_APDU [08:02:37]CAPDU: 80 13 01 00 [08:02:37]Write to MH i2c: E2 08 00 0F 08 80 13 01 00 00 00 00 00 94 [08:02:37]Write i2c OK [08:02:37]MH_I2C_Read... [08:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:37]Read from MH i2c: E2 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 0E 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 0E 00 0F 08 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F2 [08:02:37]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:02:37]wFMCommunicate OK [08:02:37]SAM_PROTO_GetShiftState done [08:02:37]FM_GetShiftState done [08:02:37]req_shift_opened done [08:02:37]requested_item shift.open_date is exist - process it [08:02:37]req_shift_open_date [08:02:37]req_shift_open_date done [08:02:37]produce_requested_data done [08:02:37]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1696,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [08:02:37]process_action_free close_receipt [08:02:37]json_value_free [08:02:37]json_value_free done [08:02:37]process_json_proto returns [08:02:37]Send response to host [08:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1696,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [08:02:37]free response buf [08:02:37]execute_script done [08:02:37]execute_script returns [08:02:37]free content buf [08:02:37]Sock 6.Close socket [08:02:37]Sock 6.Thread stoped [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [08:28:09]wFMCommunicate OK [08:28:09]wFMCommunicate request_size=4 [08:28:09]MH_SAM_APDU [08:28:09]CAPDU: 80 17 00 00 [08:28:09]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:28:09]Write i2c OK [08:28:09]MH_I2C_Read... [08:28:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:28:10]Read from MH i2c: E2 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: E2 CA 00 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: E2 CA 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [08:28:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:28:10]wFMCommunicate OK [08:28:10]SAM_PROTO_GetShiftData done [08:28:10]requested_item shift.sale.total_cash is exist - process it [08:28:10]requested_item shift.sale_refund.total is exist - process it [08:28:10]requested_item shift.sale_refund.total_cash is exist - process it [08:28:10]requested_item shift.buy.total is exist - process it [08:28:10]requested_item shift.buy.total_cash is exist - process it [08:28:10]produce_requested_data done [08:28:10]produce_requested_data return {"fm.sale.total":693217.35,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":3301.00,"shift.sale.total_cash":2471.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:28:10]process_action_free get_value [08:28:10]json_value_free [08:28:10]json_value_free done [08:28:10]process_json_proto returns [08:28:10]Send response to host [08:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":693217.35,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":3301.00,"shift.sale.total_cash":2471.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:28:10]free response buf [08:28:10]execute_script done [08:28:10]execute_script returns [08:28:10]free content buf [08:28:10]Sock 9.Close socket [08:28:10]Sock 9.Thread stoped [08:28:10]ConnectInit Can't connect to host [08:28:13]OFD Sender: No OFD packet to send [08:28:15]ConnectInit Can't connect to host [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:55]accept exits with 6 [08:33:55]New connection [08:33:55]New thread 3067129188 created [08:33:55]Thread 3066985828 joined [08:33:55]Waiting for new connection... [08:33:55] Sock 6.Parse request [08:33:55]Sock 6.Check first char [08:33:55]Sock 6.First char is OK [08:33:55]request: POST /json_proto HTTP/1.0 [08:33:55]Method: POST [08:33:55]URL: /json_proto [08:33:55]Method is POST - this is cgi request [08:33:55]url: /json_proto [08:33:55]query_string will be loaded in cgi processing [08:33:55]execute_cgi json_proto POST (null) [08:33:55]execute_cgi path=json_proto method=POST [08:33:55]POST find Content-Length [08:33:55]Host: 172.17.35.133:8080 [08:33:55]Content-Length: 860 [08:33:55]Content-Type: application/json [08:33:55] [08:33:55]POST finish read [08:33:55]Found Content-Length = 860 [08:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256171", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:55]execute_script... [08:33:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256171", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:55]POST & json_proto [08:33:55]process_json_proto [08:33:55]json parsed OK: [08:33:55]protocol is kg_v1.0 [08:33:55]action value=close_receipt [08:33:55]process_action close_receipt [08:33:55]cmd_close_receipt [08:33:55]MH_GetDate [08:33:55]Write to MH i2c: F0 00 00 1D 00 0C [08:33:55]Write i2c OK [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: F0 [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: F0 09 00 [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: F0 09 00 1D 00 00 F4 98 8F 66 1B 28 2A 66 69 [08:33:55]GetLastDocTimeStamp 1720684955 [08:33:55]current date 1720686836 [08:33:55]FM_GetShiftState [08:33:55]SAM_PROTO_GetShiftState [08:33:55]wFMCommunicate request_size=4 [08:33:55]MH_SAM_APDU [08:33:55]CAPDU: 80 13 01 00 [08:33:55]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:33:55]Write i2c OK [08:33:55]MH_I2C_Read... [08:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:55]Read from MH i2c: E2 [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: E2 0E 00 [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F9 [08:33:55]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:33:55]wFMCommunicate OK [08:33:55]SAM_PROTO_GetShiftState done [08:33:55]FM_GetShiftState done [08:33:55]opened in 1720656698 [08:33:55]opened+sec_in_day 1720743098 [08:33:55]quantity*price = 14000 [08:33:55]sum+1 = 14001 [08:33:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 13 11.07.2024 08:33 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1697 ФПД: 239298440832782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T083357&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1697&fm=239298440832782&tin=02508201610067®Number=0000000000177495&sum=28000 0 [08:33:57]StoreToDocumentArchive [08:33:57]shift 22 fd 1697 [08:33:57]save to /storage/0022/doc_00001697 [08:33:57]save last doc name /storage/0022/doc_00001697 to /storage/kkm_last_doc_name [08:33:57]save OK [08:33:57]Clear old archive folders... [08:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=378 [08:33:57]tlvbuf is 01D91580 [08:33:57]SAM_PROTO_ClearQueue [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 09 00 00 [08:33:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:33:57]RAPDU: 90 00 [08:33:57]wFMCommunicate OK [08:33:57]SAM_PROTO_ClearQueue done [08:33:57]KKMCreateOFDPacket [08:33:57]OFDProtocolAddRootSTLVToBuf [08:33:57]FM_MakeSignedData [08:33:57]FM_MakeSignedData [08:33:57]SAM_PROTO_SignData [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 0D 01 02 [08:33:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:33:57]RAPDU: 90 00 [08:33:57]wFMCommunicate OK [08:33:57]wFMCommunicate request_size=255 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 [08:33:57]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 00 00 2D [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:33:57]RAPDU: 90 00 [08:33:57]wFMCommunicate OK [08:33:57]wFMCommunicate request_size=137 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F5 98 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A1 06 00 00 35 04 06 00 D9 A4 02 8F A7 0E [08:33:57]Write to MH i2c: E2 8C 00 2E 00 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F5 98 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A1 06 00 00 35 04 06 00 D9 A4 02 8F A7 0E 00 00 6D [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:33:57]RAPDU: 90 00 [08:33:57]wFMCommunicate OK [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 0D 03 02 [08:33:57]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 0B 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 0B 00 2F 00 00 73 5F 77 5B 67 B2 71 B5 90 00 8E [08:33:57]RAPDU: 73 5F 77 5B 67 B2 71 B5 90 00 [08:33:57]wFMCommunicate OK [08:33:57]SAM_PROTO_SignData done [08:33:57]FM_MakeSignedData done [08:33:57]CreateOFDProtocolMessage [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 11 00 00 [08:33:57]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 17 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 00 [08:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:33:57]wFMCommunicate OK [08:33:57]CreateOFDProtocolMessage done [08:33:57]OFDSenderStorePacket 1697 [08:33:57]StoreOFDPacket docnum=1697 [08:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 8E 01 00 00 B8 1C 86 01 84 9A 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F5 98 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A1 06 00 00 35 04 06 00 D9 A4 02 8F A7 0E 73 5F 77 5B 67 B2 71 B5 [08:33:57]CheckFolder [08:33:57]dirname=/storage/ofd_packets [08:33:57]CheckFolder done [08:33:57]ProducePacketName [08:33:57]name=ofd_packets/00001697 [08:33:57]NVStorageSaveData ofd_packets/00001697 [08:33:57]File name is /storage/ofd_packets/00001697 [08:33:57]Write 428 bytes [08:33:57]NVStorageSaveData done [08:33:57]OFDSenderStorePacket done [08:33:57]KKMCreateOFDPacket done [08:33:57]NVStorageSaveData kkm_last_timestamp [08:33:57]File name is /storage/kkm_last_timestamp [08:33:57]Write 4 bytes [08:33:57]NVStorageSaveData done [08:33:57]ExternCall_PrintAddStr [08:33:57]wPrintStart [08:33:57]Write to MH i2c: 01 00 00 31 00 31 [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: 01 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: 01 07 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:33:57]RasterBufferAndPrint [08:33:57]line Счет N : (3)256171 [08:33:57]line ИНН: 02508201610067 [08:33:57]line Контрольно-Кассовый Чек [08:33:57]line ПРОДАЖА [08:33:57]line Товар: 48743587 [08:33:57]line Сигареты Winston XStyle Silver [08:33:57]line 1.000 * 140.00 [08:33:57]line = 140.00 [08:33:57]line НДС 12% НСП 1% [08:33:57]line > о реализуемом товаре [08:33:57]line Товар: 48743570 [08:33:57]line Сигареты Winston XStyle Blue [08:33:57]line 1.000 * 140.00 [08:33:57]line = 140.00 [08:33:57]line НДС 12% НСП 1% [08:33:58]line > о реализуемом товаре [08:33:58]line ИТОГО: 280.00 [08:33:58]line НСП 1% : 2.48 [08:33:58]line НДС 12% : 29.74 [08:33:58]line Наличными: 280.00 [08:33:58]line Безнал.: 0.00 [08:33:58]line Место: АЗС № 76 "Партнер Нефть" [08:33:58]OFD Sender: Processing packet 1697 [packets to send 1, broken 0] [08:33:58]ProducePacketName [08:33:58]name=ofd_packets/00001697 [08:33:58]OFD Sender: To server: pG, [08:33:58]CommunicateWithHost lk.salyk.kg:30040 [08:33:58]ConnectInit lk.salyk.kg [08:33:58]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:33:58]line СНО: Общий режим [08:33:58]line Чек 13 11.07.2024 08:33 [08:33:58]line Смена: 22 ФФД: 1.0 [08:33:58]line ЗНМ: 0300000124 [08:33:58]line РНМ: 0000000000177495 [08:33:58]line Версия ККМ: 001 [08:33:58]line ФМ: 0000000002098592 [08:33:58]line ФД: 1697 [08:33:58]line ФПД: 239298440832782 [08:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T083357&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1697&fm=239298440832782&tin=02508201610067®Number=0000000000177495&sum=28000 [08:33:58]line 0 [08:33:58]written 0, free lines is 4095 [08:33:58]Connected sock=10 [08:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 8E 01 00 00 B8 1C 86 01 84 9A 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F5 98 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A1 06 00 00 35 04 06 00 D9 A4 02 8F A7 0E 73 5F 77 5B 67 B2 71 B5 [08:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 31 2B 47 00 88 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A1 06 00 00 F4 03 04 00 30 44 8F 66 B6 04 01 00 00 2C DA 94 0C 0A 80 63 33 [08:33:58]CommunicateWithHost err = 0 [08:33:58]CheckOFDResponse [08:33:58]1017 (14) - 77093643461234 [08:33:58]1041 (16) - 0000000002098592 [08:33:58]1040 (4) - 1697 [08:33:58]1012 (4) - 11.07.2024 02:32 [08:33:58]1206 (1) - 0 [08:33:58]OFD Sender: Remove packet 1697 [08:33:58]ProducePacketName [08:33:58]name=ofd_packets/00001697 [08:33:58]NVStorageDeleteData [08:33:58]Write to MH i2c: 01 00 00 60 00 60 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: 01 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: 01 07 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 C0 0C 33 [08:33:58]RasterBufferAndPrint [08:33:58]line [08:33:58]line [08:33:58]line [08:33:58]line [08:33:58]line [08:33:58]written 0, free lines is 3270 [08:33:58]MH_Cut [08:33:58]Write to MH i2c: D1 01 00 67 00 01 39 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: D1 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: D1 01 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: D1 01 00 67 00 00 38 [08:33:58]Write to MH i2c: 01 00 00 68 00 68 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]OFD Sender: No OFD packet to send [08:33:59]*** Cut start [08:33:59]*** Partial cut [08:33:59]*** CUTSNS_PIN = 1 [08:33:59]*** CUTSNS_PIN = 0 [08:33:59]*** Brake cut motor [08:33:59]Read from MH i2c: 01 [08:33:59]MH_I2C_Read... [08:33:59]*** Stop cut motor [08:33:59]Read from MH i2c: *** Cut end [08:33:59]01 07 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [08:33:59]process_action close_receipt done [08:33:59]requested_data is exist [08:33:59]produce_requested_data [08:33:59]requested_item fm.sn is exist - process it [08:33:59]wFMCommunicate request_size=4 [08:33:59]MH_SAM_APDU [08:33:59]CAPDU: 80 11 00 00 [08:33:59]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:59]Read from MH i2c: E2 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 17 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 39 [08:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:33:59]wFMCommunicate OK [08:33:59]requested_item fd.num is exist - process it [08:33:59]SAM_PROTO_GetFieldsCounters [08:33:59]wFMCommunicate request_size=4 [08:33:59]MH_SAM_APDU [08:33:59]CAPDU: 80 13 00 00 [08:33:59]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:00]Read from MH i2c: E2 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 62 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 62 00 6A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [08:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:00]wFMCommunicate OK [08:34:00]SAM_PROTO_GetFieldsCounters done [08:34:00]requested_item shift.num is exist - process it [08:34:00]requested_item shift.opened is exist - process it [08:34:00]req_shift_opened [08:34:00]FM_GetShiftState [08:34:00]SAM_PROTO_GetShiftState [08:34:00]wFMCommunicate request_size=4 [08:34:00]MH_SAM_APDU [08:34:00]CAPDU: 80 13 01 00 [08:34:00]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:00]Read from MH i2c: E2 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 0E 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 46 [08:34:00]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:34:00]wFMCommunicate OK [08:34:00]SAM_PROTO_GetShiftState done [08:34:00]FM_GetShiftState done [08:34:00]req_shift_opened done [08:34:00]requested_item shift.open_date is exist - process it [08:34:00]req_shift_open_date [08:34:00]req_shift_open_date done [08:34:00]produce_requested_data done [08:34:00]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1697,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [08:34:00]process_action_free close_receipt [08:34:00]json_value_free [08:34:00]json_value_free done [08:34:00]process_json_proto returns [08:34:00]Send response to host [08:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1697,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [08:34:00]free response buf [08:34:00]execute_script done [08:34:00]execute_script returns [08:34:00]free content buf [08:34:00]Sock 6.Close socket [08:34:00]Sock 6.Thread stoped [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:58]accept exits with 9 [08:47:58]New connection [08:47:58]New thread 3066985828 created [08:47:58]Thread 3067129188 joined [08:47:58]Waiting for new connection... [08:47:58] Sock 9.Parse request [08:47:58]Sock 9.Check first char [08:47:58]Sock 9.First char is OK [08:47:58]request: POST /json_proto HTTP/1.0 [08:47:58]Method: POST [08:47:58]URL: /json_proto [08:47:58]Method is POST - this is cgi request [08:47:58]url: /json_proto [08:47:58]query_string will be loaded in cgi processing [08:47:58]execute_cgi json_proto POST (null) [08:47:58]execute_cgi path=json_proto method=POST [08:47:58]POST find Content-Length [08:47:58]Host: 172.17.35.133:8080 [08:47:58]Content-Length: 849 [08:47:58]Content-Type: application/json [08:47:58] [08:47:58]POST finish read [08:47:58]Found Content-Length = 849 [08:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:58]execute_script... [08:47:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:58]POST & json_proto [08:47:58]process_json_proto [08:47:58]json parsed OK: [08:47:58]protocol is kg_v1.0 [08:47:58]action value=close_receipt [08:47:58]process_action close_receipt [08:47:58]cmd_close_receipt [08:47:58]MH_GetDate [08:47:58]Write to MH i2c: F0 00 00 6C 00 5B [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: F0 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: F0 09 00 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: F0 09 00 6C 00 00 3F 9C 8F 66 1B 28 2A 66 07 [08:47:58]GetLastDocTimeStamp 1720686837 [08:47:58]current date 1720687679 [08:47:58]FM_GetShiftState [08:47:58]SAM_PROTO_GetShiftState [08:47:58]wFMCommunicate request_size=4 [08:47:58]MH_SAM_APDU [08:47:58]CAPDU: 80 13 01 00 [08:47:58]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:58]Read from MH i2c: E2 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 0E 00 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 48 [08:47:58]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:47:58]wFMCommunicate OK [08:47:58]SAM_PROTO_GetShiftState done [08:47:58]FM_GetShiftState done [08:47:58]opened in 1720656698 [08:47:58]opened+sec_in_day 1720743098 [08:47:58]quantity*price = 120007 [08:47:58]sum+1 = 120009 [08:47:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.08 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.08 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 14 11.07.2024 08:47 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1698 ФПД: 100815114204747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T084759&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1698&fm=100815114204747&tin=02508201610067®Number=0000000000177495&sum=120008 [08:47:59]StoreToDocumentArchive [08:47:59]shift 22 fd 1698 [08:47:59]save to /storage/0022/doc_00001698 [08:47:59]save last doc name /storage/0022/doc_00001698 to /storage/kkm_last_doc_name [08:47:59]save OK [08:47:59]Clear old archive folders... [08:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:47:59]tlvbuf is 01D8E850 [08:47:59]SAM_PROTO_ClearQueue [08:47:59]wFMCommunicate request_size=4 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 09 00 00 [08:47:59]Write to MH i2c: E2 08 00 7A 00 80 09 00 00 00 00 00 00 EC [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [08:47:59]RAPDU: 90 00 [08:47:59]wFMCommunicate OK [08:47:59]SAM_PROTO_ClearQueue done [08:47:59]KKMCreateOFDPacket [08:47:59]OFDProtocolAddRootSTLVToBuf [08:47:59]FM_MakeSignedData [08:47:59]FM_MakeSignedData [08:47:59]SAM_PROTO_SignData [08:47:59]wFMCommunicate request_size=4 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 0D 01 02 [08:47:59]Write to MH i2c: E2 08 00 7B 00 80 0D 01 02 00 00 00 00 F4 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [08:47:59]RAPDU: 90 00 [08:47:59]wFMCommunicate OK [08:47:59]wFMCommunicate request_size=255 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3F 9C 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A2 06 00 00 35 04 06 00 [08:47:59]Write to MH i2c: E2 02 01 7C 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3F 9C 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A2 06 00 00 35 04 06 00 00 00 23 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]OFD Sender: No OFD packet to send [08:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [08:47:59]RAPDU: 90 00 [08:47:59]wFMCommunicate OK [08:47:59]wFMCommunicate request_size=11 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 0D 02 02 06 5B B0 D9 11 F6 4B [08:47:59]Write to MH i2c: E2 0E 00 7D 00 80 0D 02 02 06 00 5B B0 D9 11 F6 4B 00 00 39 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [08:47:59]RAPDU: 90 00 [08:47:59]wFMCommunicate OK [08:47:59]wFMCommunicate request_size=4 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 0D 03 02 [08:47:59]Write to MH i2c: E2 08 00 7E 00 80 0D 03 02 00 00 00 00 F9 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 0B 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 0B 00 7E 00 00 4D E0 B0 CE 5C 75 74 9D 90 00 87 [08:47:59]RAPDU: 4D E0 B0 CE 5C 75 74 9D 90 00 [08:47:59]wFMCommunicate OK [08:47:59]SAM_PROTO_SignData done [08:47:59]FM_MakeSignedData done [08:47:59]CreateOFDProtocolMessage [08:47:59]wFMCommunicate request_size=4 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 11 00 00 [08:47:59]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 17 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4F [08:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:47:59]wFMCommunicate OK [08:47:59]CreateOFDProtocolMessage done [08:47:59]OFDSenderStorePacket 1698 [08:47:59]StoreOFDPacket docnum=1698 [08:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 01 00 00 98 49 08 01 AB 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3F 9C 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A2 06 00 00 35 04 06 00 5B B0 D9 11 F6 4B 4D E0 B0 CE 5C 75 74 9D [08:47:59]CheckFolder [08:47:59]dirname=/storage/ofd_packets [08:47:59]CheckFolder done [08:47:59]ProducePacketName [08:47:59]name=ofd_packets/00001698 [08:47:59]NVStorageSaveData ofd_packets/00001698 [08:47:59]File name is /storage/ofd_packets/00001698 [08:47:59]Write 302 bytes [08:47:59]NVStorageSaveData done [08:47:59]OFDSenderStorePacket done [08:47:59]KKMCreateOFDPacket done [08:47:59]NVStorageSaveData kkm_last_timestamp [08:47:59]File name is /storage/kkm_last_timestamp [08:47:59]Write 4 bytes [08:47:59]NVStorageSaveData done [08:47:59]ExternCall_PrintAddStr [08:47:59]wPrintStart [08:47:59]Write to MH i2c: 01 00 00 80 00 80 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 07 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [08:47:59]RasterBufferAndPrint [08:47:59]line Счет N : (1)1618401 [08:47:59]line ИНН: 02508201610067 [08:47:59]line Контрольно-Кассовый Чек [08:47:59]line ПРОДАЖА [08:47:59]line ТРК (МРК, ГНК) : 41 [08:47:59]line Товар: 2710194210 [08:47:59]line ДТ(л)-К-4 [08:47:59]line 16.530 * 72.60 [08:47:59]line = 1200.08 [08:47:59]line НДС 12% НСП 1% [08:47:59]line > о реализуемом товаре [08:47:59]line ИТОГО: 1200.08 [08:47:59]line НСП 1% : 10.62 [08:47:59]line НДС 12% : 127.44 [08:47:59]line Наличными: 0.00 [08:47:59]line Безнал.: 1200.08 [08:47:59]line Место: АЗС № 76 "Партнер Нефть" [08:47:59]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:47:59]line СНО: Общий режим [08:47:59]line Чек 14 11.07.2024 08:47 [08:47:59]line Смена: 22 ФФД: 1.0 [08:47:59]line ЗНМ: 0300000124 [08:47:59]line РНМ: 0000000000177495 [08:47:59]line Версия ККМ: 001 [08:47:59]line Платежная система: АКБ Кыргызстан [08:47:59]line ФМ: 0000000002098592 [08:47:59]line ФД: 1698 [08:47:59]line ФПД: 100815114204747 [08:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T084759&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1698&fm=100815114204747&tin=02508201610067®Number=0000000000177495&sum=120008 [08:48:00]OFD Sender: Processing packet 1698 [packets to send 1, broken 0] [08:48:00]ProducePacketName [08:48:00]name=ofd_packets/00001698 [08:48:00]OFD Sender: To server: pG, [08:48:00]CommunicateWithHost lk.salyk.kg:30040 [08:48:00]ConnectInit lk.salyk.kg [08:48:00]written 0, free lines is 4095 [08:48:00]Connected sock=10 [08:48:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 01 00 00 98 49 08 01 AB 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3F 9C 8F 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A2 06 00 00 35 04 06 00 5B B0 D9 11 F6 4B 4D E0 B0 CE 5C 75 74 9D [08:48:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 57 8E 47 00 6C 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A2 06 00 00 F4 03 04 00 7A 47 8F 66 B6 04 01 00 00 71 1A E0 29 3C 94 0E 92 [08:48:00]CommunicateWithHost err = 0 [08:48:00]CheckOFDResponse [08:48:00]1017 (14) - 77093643461234 [08:48:00]1041 (16) - 0000000002098592 [08:48:00]1040 (4) - 1698 [08:48:00]1012 (4) - 11.07.2024 02:46 [08:48:00]1206 (1) - 0 [08:48:00]OFD Sender: Remove packet 1698 [08:48:00]ProducePacketName [08:48:00]name=ofd_packets/00001698 [08:48:00]NVStorageDeleteData [08:48:00]Write to MH i2c: 01 00 00 AA 00 AA [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: 01 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: 01 07 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 1A 0D D8 [08:48:00]RasterBufferAndPrint [08:48:00]line [08:48:00]line [08:48:00]line [08:48:00]line [08:48:00]line [08:48:00]written 0, free lines is 3360 [08:48:00]MH_Cut [08:48:00]Write to MH i2c: D1 01 00 B1 00 01 83 [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: D1 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: D1 01 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: D1 01 00 B1 00 00 82 [08:48:00]Write to MH i2c: 01 00 00 B2 00 B2 [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:01]OFD Sender: No OFD packet to send [08:48:01]*** Cut start [08:48:01]*** Partial cut [08:48:01]*** CUTSNS_PIN = 1 [08:48:01]*** CUTSNS_PIN = 0 [08:48:01]*** Brake cut motor [08:48:01]Read from MH i2c: 01 [08:48:01]MH_I2C_Read... [08:48:01]*** Stop cut motor [08:48:01]*** Cut end [08:48:01]Read from MH i2c: 01 07 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 FF 0F C7 [08:48:01]process_action close_receipt done [08:48:01]requested_data is exist [08:48:01]produce_requested_data [08:48:01]requested_item fm.sn is exist - process it [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 11 00 00 [08:48:01]Write to MH i2c: E2 08 00 B3 00 80 11 00 00 00 00 00 00 2D [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 17 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 17 00 B3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 83 [08:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:48:02]wFMCommunicate OK [08:48:02]requested_item fd.num is exist - process it [08:48:02]SAM_PROTO_GetFieldsCounters [08:48:02]wFMCommunicate request_size=4 [08:48:02]MH_SAM_APDU [08:48:02]CAPDU: 80 13 00 00 [08:48:02]Write to MH i2c: E2 08 00 B4 00 80 13 00 00 00 00 00 00 30 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 62 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 62 00 B4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A2 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [08:48:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A2 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:02]wFMCommunicate OK [08:48:02]SAM_PROTO_GetFieldsCounters done [08:48:02]requested_item shift.num is exist - process it [08:48:02]requested_item shift.opened is exist - process it [08:48:02]req_shift_opened [08:48:02]FM_GetShiftState [08:48:02]SAM_PROTO_GetShiftState [08:48:02]wFMCommunicate request_size=4 [08:48:02]MH_SAM_APDU [08:48:02]CAPDU: 80 13 01 00 [08:48:02]Write to MH i2c: E2 08 00 B5 00 80 13 01 00 00 00 00 00 32 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 0E 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 0E 00 B5 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 90 [08:48:02]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:48:02]wFMCommunicate OK [08:48:02]SAM_PROTO_GetShiftState done [08:48:02]FM_GetShiftState done [08:48:02]req_shift_opened done [08:48:02]requested_item shift.open_date is exist - process it [08:48:02]req_shift_open_date [08:48:02]req_shift_open_date done [08:48:02]produce_requested_data done [08:48:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1698,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [08:48:02]process_action_free close_receipt [08:48:02]json_value_free [08:48:02]json_value_free done [08:48:02]process_json_proto returns [08:48:02]Send response to host [08:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1698,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [08:48:02]free response buf [08:48:02]execute_script done [08:48:02]execute_script returns [08:48:02]free content buf [08:48:02]Sock 9.Close socket [08:48:02]Sock 9.Thread stoped [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:50]accept exits with 8 [08:54:50]New connection [08:54:50]New thread 3067129188 created [08:54:50]Thread 3066985828 joined [08:54:50]Waiting for new connection... [08:54:50] Sock 8.Parse request [08:54:50]Sock 8.Check first char [08:54:50]Sock 8.First char is OK [08:54:50]request: POST /json_proto HTTP/1.0 [08:54:50]Method: POST [08:54:50]URL: /json_proto [08:54:50]Method is POST - this is cgi request [08:54:50]url: /json_proto [08:54:50]query_string will be loaded in cgi processing [08:54:50]execute_cgi json_proto POST (null) [08:54:50]execute_cgi path=json_proto method=POST [08:54:50]POST find Content-Length [08:54:50]Host: 172.17.35.133:8080 [08:54:50]Content-Length: 608 [08:54:50]Content-Type: application/json [08:54:50] [08:54:50]POST finish read [08:54:50]Found Content-Length = 608 [08:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256172", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:50]execute_script... [08:54:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256172", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:50]POST & json_proto [08:54:50]process_json_proto [08:54:50]json parsed OK: [08:54:50]protocol is kg_v1.0 [08:54:50]action value=close_receipt [08:54:50]process_action close_receipt [08:54:50]cmd_close_receipt [08:54:50]MH_GetDate [08:54:50]Write to MH i2c: F0 00 00 B6 00 A5 [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: F0 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: F0 09 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: F0 09 00 B6 00 00 DB 9D 8F 66 1B 28 2A 66 EE [08:54:50]GetLastDocTimeStamp 1720687679 [08:54:50]current date 1720688091 [08:54:50]FM_GetShiftState [08:54:50]SAM_PROTO_GetShiftState [08:54:50]wFMCommunicate request_size=4 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 13 01 00 [08:54:50]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 0E 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 92 [08:54:50]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [08:54:50]wFMCommunicate OK [08:54:50]SAM_PROTO_GetShiftState done [08:54:50]FM_GetShiftState done [08:54:50]opened in 1720656698 [08:54:50]opened+sec_in_day 1720743098 [08:54:50]quantity*price = 1000 [08:54:50]sum+1 = 1001 [08:54:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 16 11.07.2024 15:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1700 ФПД: 227718515657485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155929&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1700&fm=227718515657485&tin=02508201610067®Number=0000000000177495&sum=24000 0 [15:59:30]StoreToDocumentArchive [15:59:30]shift 22 fd 1700 [15:59:30]save to /storage/0022/doc_00001700 [15:59:30]save last doc name /storage/0022/doc_00001700 to /storage/kkm_last_doc_name [15:59:30]save OK [15:59:30]Clear old archive folders... [15:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=284 [15:59:30]tlvbuf is 00A43B60 [15:59:30]SAM_PROTO_ClearQueue [15:59:30]wFMCommunicate request_size=4 [15:59:30]MH_SAM_APDU [15:59:30]CAPDU: 80 09 00 00 [15:59:30]Write to MH i2c: E2 08 00 2D 00 80 09 00 00 00 00 00 00 9F [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:30]Read from MH i2c: E2 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: E2 03 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:59:30]RAPDU: 90 00 [15:59:30]wFMCommunicate OK [15:59:30]SAM_PROTO_ClearQueue done [15:59:30]KKMCreateOFDPacket [15:59:30]OFDProtocolAddRootSTLVToBuf [15:59:30]FM_MakeSignedData [15:59:30]FM_MakeSignedData [15:59:30]SAM_PROTO_SignData [15:59:30]wFMCommunicate request_size=4 [15:59:30]MH_SAM_APDU [15:59:30]CAPDU: 80 0D 01 02 [15:59:30]Write to MH i2c: E2 08 00 2E 00 80 0D 01 02 00 00 00 00 A7 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=255 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 61 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 [15:59:31]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 61 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 00 00 87 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=43 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A4 06 00 00 35 04 06 00 CF 1B D9 3C 0B 0D [15:59:31]Write to MH i2c: E2 2E 00 30 00 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A4 06 00 00 35 04 06 00 CF 1B D9 3C 0B 0D 00 00 56 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 03 02 [15:59:31]Write to MH i2c: E2 08 00 31 00 80 0D 03 02 00 00 00 00 AC [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0B 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0B 00 31 00 00 5D 2A 3B 8F E3 24 C8 44 90 00 11 [15:59:31]RAPDU: 5D 2A 3B 8F E3 24 C8 44 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_SignData done [15:59:31]FM_MakeSignedData done [15:59:31]CreateOFDProtocolMessage [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 11 00 00 [15:59:31]Write to MH i2c: E2 08 00 32 00 80 11 00 00 00 00 00 00 AC [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 17 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 17 00 32 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 02 [15:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:31]wFMCommunicate OK [15:59:31]CreateOFDProtocolMessage done [15:59:31]OFDSenderStorePacket 1700 [15:59:31]StoreOFDPacket docnum=1700 [15:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 30 01 00 00 59 91 28 01 AD C9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 61 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A4 06 00 00 35 04 06 00 CF 1B D9 3C 0B 0D 5D 2A 3B 8F E3 24 C8 44 [15:59:31]CheckFolder [15:59:31]dirname=/storage/ofd_packets [15:59:31]CheckFolder done [15:59:31]ProducePacketName [15:59:31]name=ofd_packets/00001700 [15:59:31]NVStorageSaveData ofd_packets/00001700 [15:59:31]File name is /storage/ofd_packets/00001700 [15:59:31]Write 334 bytes [15:59:31]NVStorageSaveData done [15:59:31]OFDSenderStorePacket done [15:59:31]KKMCreateOFDPacket done [15:59:31]NVStorageSaveData kkm_last_timestamp [15:59:31]File name is /storage/kkm_last_timestamp [15:59:31]Write 4 bytes [15:59:31]NVStorageSaveData done [15:59:31]ExternCall_PrintAddStr [15:59:31]wPrintStart [15:59:31]Write to MH i2c: 01 00 00 33 00 33 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 07 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 07 00 33 00 00 00 00 00 00 FF 0F 48 [15:59:31]RasterBufferAndPrint [15:59:31]line Счет N : (3)256173 [15:59:31]line ИНН: 02508201610067 [15:59:31]line Контрольно-Кассовый Чек [15:59:31]line ПРОДАЖА [15:59:31]line Товар: 2000034250011 [15:59:31]line Горячий шоколад (GABB trade) [15:59:31]line 2.000 * 120.00 [15:59:31]line = 240.00 [15:59:31]line НДС 12% НСП 1% [15:59:31]line > о реализуемом товаре [15:59:31]line ИТОГО: 240.00 [15:59:31]line НСП 1% : 2.12 [15:59:31]line НДС 12% : 25.49 [15:59:31]line Наличными: 240.00 [15:59:31]line Безнал.: 0.00 [15:59:31]line Место: АЗС № 76 "Партнер Нефть" [15:59:31]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:59:31]line СНО: Общий режим [15:59:31]line Чек 16 11.07.2024 15:59 [15:59:31]line Смена: 22 ФФД: 1.0 [15:59:31]line ЗНМ: 0300000124 [15:59:31]line РНМ: 0000000000177495 [15:59:31]line Версия ККМ: 001 [15:59:31]line ФМ: 0000000002098592 [15:59:31]line ФД: 1700 [15:59:31]line ФПД: 227718515657485 [15:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155929&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1700&fm=227718515657485&tin=02508201610067®Number=0000000000177495&sum=24000 [15:59:31]line 0 [15:59:31]written 0, free lines is 4095 [15:59:31]OFD Sender: Processing packet 1700 [packets to send 1, broken 0] [15:59:31]ProducePacketName [15:59:31]name=ofd_packets/00001700 [15:59:31]OFD Sender: To server: pG, [15:59:31]CommunicateWithHost lk.salyk.kg:30040 [15:59:31]ConnectInit lk.salyk.kg [15:59:31]Connected sock=10 [15:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 30 01 00 00 59 91 28 01 AD C9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 61 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A4 06 00 00 35 04 06 00 CF 1B D9 3C 0B 0D 5D 2A 3B 8F E3 24 C8 44 [15:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 F6 54 47 00 AE 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A4 06 00 00 F4 03 04 00 9C AC 8F 66 B6 04 01 00 00 FF 76 6B 86 0D 31 6F DE [15:59:32]CommunicateWithHost err = 0 [15:59:32]CheckOFDResponse [15:59:32]1017 (14) - 77093643461234 [15:59:32]1041 (16) - 0000000002098592 [15:59:32]1040 (4) - 1700 [15:59:32]1012 (4) - 11.07.2024 09:57 [15:59:32]1206 (1) - 0 [15:59:32]OFD Sender: Remove packet 1700 [15:59:32]ProducePacketName [15:59:32]name=ofd_packets/00001700 [15:59:32]NVStorageDeleteData [15:59:32]Write to MH i2c: 01 00 00 5C 00 5C [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 37 0D A7 [15:59:32]RasterBufferAndPrint [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]written 0, free lines is 3407 [15:59:32]MH_Cut [15:59:32]Write to MH i2c: D1 01 00 63 00 01 35 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 01 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 01 00 63 00 00 34 [15:59:32]Write to MH i2c: 01 00 00 64 00 64 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]OFD Sender: No OFD packet to send [15:59:32]*** Cut start [15:59:32]*** Partial cut [15:59:32]*** CUTSNS_PIN = 1 [15:59:32]*** CUTSNS_PIN = 0 [15:59:33]*** Brake cut motor [15:59:33]Read from MH i2c: 01 [15:59:33]MH_I2C_Read... [15:59:33]*** Stop cut motor [15:59:33]*** Cut end [15:59:33]Read from MH i2c: 01 07 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [15:59:33]process_action close_receipt done [15:59:33]requested_data is exist [15:59:33]produce_requested_data [15:59:33]requested_item fm.sn is exist - process it [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 11 00 00 [15:59:33]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 35 [15:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:33]wFMCommunicate OK [15:59:33]requested_item fd.num is exist - process it [15:59:33]SAM_PROTO_GetFieldsCounters [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 13 00 00 [15:59:33]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 62 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:59:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:33]wFMCommunicate OK [15:59:33]SAM_PROTO_GetFieldsCounters done [15:59:33]requested_item shift.num is exist - process it [15:59:33]requested_item shift.opened is exist - process it [15:59:33]req_shift_opened [15:59:33]FM_GetShiftState [15:59:33]SAM_PROTO_GetShiftState [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 13 01 00 [15:59:33]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 0E 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 42 [15:59:33]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:33]wFMCommunicate OK [15:59:33]SAM_PROTO_GetShiftState done [15:59:33]FM_GetShiftState done [15:59:33]req_shift_opened done [15:59:33]requested_item shift.open_date is exist - process it [15:59:33]req_shift_open_date [15:59:33]req_shift_open_date done [15:59:33]produce_requested_data done [15:59:33]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1700,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [15:59:33]process_action_free close_receipt [15:59:33]json_value_free [15:59:33]json_value_free done [15:59:33]process_json_proto returns [15:59:33]Send response to host [15:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1700,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [15:59:33]free response buf [15:59:33]execute_script done [15:59:33]execute_script returns [15:59:33]free content buf [15:59:33]Sock 6.Close socket [15:59:33]Sock 6.Thread stoped [15:59:35]accept exits with 8 [15:59:35]New connection [15:59:35]New thread 3067227492 created [15:59:35]Thread 3067370852 joined [15:59:35]Waiting for new connection... [15:59:35] Sock 8.Parse request [15:59:35]Sock 8.Check first char [15:59:35]Sock 8.First char is OK [15:59:35]request: POST /json_proto HTTP/1.0 [15:59:35]Method: POST [15:59:35]URL: /json_proto [15:59:35]Method is POST - this is cgi request [15:59:35]url: /json_proto [15:59:35]query_string will be loaded in cgi processing [15:59:35]execute_cgi json_proto POST (null) [15:59:35]execute_cgi path=json_proto method=POST [15:59:35]POST find Content-Length [15:59:35]Host: 172.17.35.133:8080 [15:59:35]Content-Length: 632 [15:59:35]Content-Type: application/json [15:59:35] [15:59:35]POST finish read [15:59:35]Found Content-Length = 632 [15:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256174", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 2.000, "sum" : 296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 296.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:35]execute_script... [15:59:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256174", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 2.000, "sum" : 296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 296.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:35]POST & json_proto [15:59:35]process_json_proto [15:59:35]json parsed OK: [15:59:35]protocol is kg_v1.0 [15:59:35]action value=close_receipt [15:59:35]process_action close_receipt [15:59:35]cmd_close_receipt [15:59:35]MH_GetDate [15:59:35]Write to MH i2c: F0 00 00 68 00 57 [15:59:35]Write i2c OK [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: F0 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: F0 09 00 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: F0 09 00 68 00 00 67 01 90 66 1B 28 2A 66 91 [15:59:35]GetLastDocTimeStamp 1720713569 [15:59:35]current date 1720713575 [15:59:35]FM_GetShiftState [15:59:35]SAM_PROTO_GetShiftState [15:59:35]wFMCommunicate request_size=4 [15:59:35]MH_SAM_APDU [15:59:35]CAPDU: 80 13 01 00 [15:59:35]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [15:59:35]Write i2c OK [15:59:35]MH_I2C_Read... [15:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:35]Read from MH i2c: E2 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: E2 0E 00 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 44 [15:59:35]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:35]wFMCommunicate OK [15:59:35]SAM_PROTO_GetShiftState done [15:59:35]FM_GetShiftState done [15:59:35]opened in 1720656698 [15:59:35]opened+sec_in_day 1720743098 [15:59:35]quantity*price = 29600 [15:59:35]sum+1 = 29601 [15:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 296.00 НСП 1% : 2.62 НДС 12% : 31.43 Наличными: 296.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 17 11.07.2024 15:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1701 ФПД: 24314723405989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155935&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1701&fm=24314723405989&tin=02508201610067®Number=0000000000177495&sum=29600 0 [15:59:36]StoreToDocumentArchive [15:59:36]shift 22 fd 1701 [15:59:36]save to /storage/0022/doc_00001701 [15:59:36]save last doc name /storage/0022/doc_00001701 to /storage/kkm_last_doc_name [15:59:36]save OK [15:59:36]Clear old archive folders... [15:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:59:36]tlvbuf is 00A500C0 [15:59:36]SAM_PROTO_ClearQueue [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 09 00 00 [15:59:36]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:59:36]RAPDU: 90 00 [15:59:36]wFMCommunicate OK [15:59:36]SAM_PROTO_ClearQueue done [15:59:36]KKMCreateOFDPacket [15:59:36]OFDProtocolAddRootSTLVToBuf [15:59:36]FM_MakeSignedData [15:59:36]FM_MakeSignedData [15:59:36]SAM_PROTO_SignData [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 0D 01 02 [15:59:36]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:59:36]RAPDU: 90 00 [15:59:36]wFMCommunicate OK [15:59:36]wFMCommunicate request_size=255 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 [15:59:36]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 00 00 FC [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:59:37]RAPDU: 90 00 [15:59:37]wFMCommunicate OK [15:59:37]wFMCommunicate request_size=35 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A5 06 00 00 35 04 06 00 16 1D 36 73 90 A5 [15:59:37]Write to MH i2c: E2 26 00 79 00 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A5 06 00 00 35 04 06 00 16 1D 36 73 90 A5 00 00 A5 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [15:59:37]RAPDU: 90 00 [15:59:37]wFMCommunicate OK [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 0D 03 02 [15:59:37]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0B 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0B 00 7A 00 00 48 B4 2D 9C 56 B7 DA 8F 90 00 31 [15:59:37]RAPDU: 48 B4 2D 9C 56 B7 DA 8F 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_SignData done [15:59:37]FM_MakeSignedData done [15:59:37]CreateOFDProtocolMessage [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 11 00 00 [15:59:37]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 17 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4B [15:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:37]wFMCommunicate OK [15:59:37]CreateOFDProtocolMessage done [15:59:37]OFDSenderStorePacket 1701 [15:59:37]StoreOFDPacket docnum=1701 [15:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 28 01 00 00 45 27 20 01 08 37 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A5 06 00 00 35 04 06 00 16 1D 36 73 90 A5 48 B4 2D 9C 56 B7 DA 8F [15:59:37]CheckFolder [15:59:37]dirname=/storage/ofd_packets [15:59:37]CheckFolder done [15:59:37]ProducePacketName [15:59:37]name=ofd_packets/00001701 [15:59:37]NVStorageSaveData ofd_packets/00001701 [15:59:37]File name is /storage/ofd_packets/00001701 [15:59:37]Write 326 bytes [15:59:37]NVStorageSaveData done [15:59:37]OFDSenderStorePacket done [15:59:37]KKMCreateOFDPacket done [15:59:37]NVStorageSaveData kkm_last_timestamp [15:59:37]File name is /storage/kkm_last_timestamp [15:59:37]Write 4 bytes [15:59:37]NVStorageSaveData done [15:59:37]ExternCall_PrintAddStr [15:59:37]wPrintStart [15:59:37]Write to MH i2c: 01 00 00 7C 00 7C [15:59:37]OFD Sender: Processing packet 1701 [packets to send 1, broken 0] [15:59:37]ProducePacketName [15:59:37]name=ofd_packets/00001701 [15:59:37]OFD Sender: To server: pG, [15:59:37]CommunicateWithHost lk.salyk.kg:30040 [15:59:37]ConnectInit lk.salyk.kg [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [15:59:37]RasterBufferAndPrint [15:59:37]line Счет N : (3)256174 [15:59:37]line ИНН: 02508201610067 [15:59:37]line Контрольно-Кассовый Чек [15:59:37]line ПРОДАЖА [15:59:37]line Товар: 4780022460452 [15:59:37]line Антифриз Yumiko gold 1кг [15:59:37]line 2.000 * 148.00 [15:59:37]line = 296.00 [15:59:37]line НДС 12% НСП 1% [15:59:37]line > о реализуемом товаре [15:59:37]line ИТОГО: 296.00 [15:59:37]line НСП 1% : 2.62 [15:59:37]line НДС 12% : 31.43 [15:59:37]line Наличными: 296.00 [15:59:37]line Безнал.: 0.00 [15:59:37]line Место: АЗС № 76 "Партнер Нефть" [15:59:37]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:59:37]line СНО: Общий режим [15:59:37]line Чек 17 11.07.2024 15:59 [15:59:37]line Смена: 22 ФФД: 1.0 [15:59:37]line ЗНМ: 0300000124 [15:59:37]line РНМ: 0000000000177495 [15:59:37]line Версия ККМ: 001 [15:59:37]line ФМ: 0000000002098592 [15:59:37]line ФД: 1701 [15:59:37]line ФПД: 24314723405989 [15:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155935&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1701&fm=24314723405989&tin=02508201610067®Number=0000000000177495&sum=29600 [15:59:37]line 0 [15:59:37]written 0, free lines is 4095 [15:59:37]Connected sock=10 [15:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 28 01 00 00 45 27 20 01 08 37 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A5 06 00 00 35 04 06 00 16 1D 36 73 90 A5 48 B4 2D 9C 56 B7 DA 8F [15:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 0E 74 47 00 B8 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A5 06 00 00 F4 03 04 00 A2 AC 8F 66 B6 04 01 00 00 39 2B 73 28 CE F4 D2 C1 [15:59:38]CommunicateWithHost err = 0 [15:59:38]CheckOFDResponse [15:59:38]1017 (14) - 77093643461234 [15:59:38]1041 (16) - 0000000002098592 [15:59:38]1040 (4) - 1701 [15:59:38]1012 (4) - 11.07.2024 09:57 [15:59:38]1206 (1) - 0 [15:59:38]OFD Sender: Remove packet 1701 [15:59:38]ProducePacketName [15:59:38]name=ofd_packets/00001701 [15:59:38]NVStorageDeleteData [15:59:38]Write to MH i2c: 01 00 00 A4 00 A4 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 26 0D DE [15:59:38]RasterBufferAndPrint [15:59:38]line [15:59:38]line [15:59:38]line [15:59:38]line [15:59:38]line [15:59:38]written 0, free lines is 3392 [15:59:38]MH_Cut [15:59:38]Write to MH i2c: D1 01 00 AB 00 01 7D [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: D1 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: D1 01 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: D1 01 00 AB 00 00 7C [15:59:38]Write to MH i2c: 01 00 00 AC 00 AC [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]OFD Sender: No OFD packet to send [15:59:38]*** Cut start [15:59:38]*** Partial cut [15:59:38]*** CUTSNS_PIN = 1 [15:59:38]*** CUTSNS_PIN = 0 [15:59:39]*** Brake cut motor [15:59:39]Read from MH i2c: 01 *** Stop cut motor [15:59:39] [15:59:39]*** Cut end [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [15:59:39]process_action close_receipt done [15:59:39]requested_data is exist [15:59:39]produce_requested_data [15:59:39]requested_item fm.sn is exist - process it [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 11 00 00 [15:59:39]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 17 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7D [15:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:39]wFMCommunicate OK [15:59:39]requested_item fd.num is exist - process it [15:59:39]SAM_PROTO_GetFieldsCounters [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 13 00 00 [15:59:39]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 62 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [15:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:39]wFMCommunicate OK [15:59:39]SAM_PROTO_GetFieldsCounters done [15:59:39]requested_item shift.num is exist - process it [15:59:39]requested_item shift.opened is exist - process it [15:59:39]req_shift_opened [15:59:39]FM_GetShiftState [15:59:39]SAM_PROTO_GetShiftState [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 13 01 00 [15:59:39]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 0E 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 8A [15:59:39]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:39]wFMCommunicate OK [15:59:39]SAM_PROTO_GetShiftState done [15:59:39]FM_GetShiftState done [15:59:39]req_shift_opened done [15:59:39]requested_item shift.open_date is exist - process it [15:59:39]req_shift_open_date [15:59:39]req_shift_open_date done [15:59:39]produce_requested_data done [15:59:39]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1701,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [15:59:39]process_action_free close_receipt [15:59:39]json_value_free [15:59:39]json_value_free done [15:59:39]process_json_proto returns [15:59:39]Send response to host [15:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1701,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [15:59:39]free response buf [15:59:39]execute_script done [15:59:39]execute_script returns [15:59:39]free content buf [15:59:39]Sock 8.Close socket [15:59:39]Sock 8.Thread stoped [15:59:41]accept exits with 6 [15:59:41]New connection [15:59:41]New thread 3067370852 created [15:59:41]Thread 3067227492 joined [15:59:41]Waiting for new connection... [15:59:41] Sock 6.Parse request [15:59:41]Sock 6.Check first char [15:59:41]Sock 6.First char is OK [15:59:41]request: POST /json_proto HTTP/1.0 [15:59:41]Method: POST [15:59:41]URL: /json_proto [15:59:41]Method is POST - this is cgi request [15:59:41]url: /json_proto [15:59:41]query_string will be loaded in cgi processing [15:59:41]execute_cgi json_proto POST (null) [15:59:41]execute_cgi path=json_proto method=POST [15:59:41]POST find Content-Length [15:59:41]Host: 172.17.35.133:8080 [15:59:41]Content-Length: 669 [15:59:41]Content-Type: application/json [15:59:41] [15:59:41]POST finish read [15:59:41]Found Content-Length = 669 [15:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256175", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:41]execute_script... [15:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256175", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:41]POST & json_proto [15:59:41]process_json_proto [15:59:41]json parsed OK: [15:59:41]protocol is kg_v1.0 [15:59:41]action value=close_receipt [15:59:41]process_action close_receipt [15:59:41]cmd_close_receipt [15:59:41]MH_GetDate [15:59:41]Write to MH i2c: F0 00 00 B0 00 9F [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: F0 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: F0 09 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: F0 09 00 B0 00 00 6D 01 90 66 1B 28 2A 66 DF [15:59:41]GetLastDocTimeStamp 1720713575 [15:59:41]current date 1720713581 [15:59:41]FM_GetShiftState [15:59:41]SAM_PROTO_GetShiftState [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 01 00 [15:59:41]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 8C [15:59:41]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetShiftState done [15:59:41]FM_GetShiftState done [15:59:41]opened in 1720656698 [15:59:41]opened+sec_in_day 1720743098 [15:59:41]quantity*price = 10700 [15:59:41]sum+1 = 10701 [15:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 18 11.07.2024 15:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1702 ФПД: 267235249098632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155941&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1702&fm=267235249098632&tin=02508201610067®Number=0000000000177495&sum=10700 0 [15:59:42]StoreToDocumentArchive [15:59:42]shift 22 fd 1702 [15:59:42]save to /storage/0022/doc_00001702 [15:59:42]save last doc name /storage/0022/doc_00001702 to /storage/kkm_last_doc_name [15:59:42]save OK [15:59:42]Clear old archive folders... [15:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:59:42]tlvbuf is 00A5F110 [15:59:42]SAM_PROTO_ClearQueue [15:59:42]wFMCommunicate request_size=4 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 09 00 00 [15:59:42]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:42]E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [15:59:42]RAPDU: 90 00 [15:59:42]wFMCommunicate OK [15:59:42]SAM_PROTO_ClearQueue done [15:59:42]KKMCreateOFDPacket [15:59:42]OFDProtocolAddRootSTLVToBuf [15:59:42]FM_MakeSignedData [15:59:42]FM_MakeSignedData [15:59:42]SAM_PROTO_SignData [15:59:42]wFMCommunicate request_size=4 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 0D 01 02 [15:59:42]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [15:59:42]RAPDU: 90 00 [15:59:42]wFMCommunicate OK [15:59:42]wFMCommunicate request_size=255 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 [15:59:42]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 00 00 30 [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:43]Read from MH i2c: E2 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 03 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [15:59:43]RAPDU: 90 00 [15:59:43]wFMCommunicate OK [15:59:43]wFMCommunicate request_size=44 [15:59:43]MH_SAM_APDU [15:59:43]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A6 06 00 00 35 04 06 00 F3 0C 8E 18 0F 88 [15:59:43]Write to MH i2c: E2 2F 00 C1 00 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A6 06 00 00 35 04 06 00 F3 0C 8E 18 0F 88 00 00 45 [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:43]Read from MH i2c: E2 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 03 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:59:43]RAPDU: 90 00 [15:59:43]wFMCommunicate OK [15:59:43]wFMCommunicate request_size=4 [15:59:43]MH_SAM_APDU [15:59:43]CAPDU: 80 0D 03 02 [15:59:43]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:43]Read from MH i2c: E2 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 0B 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 0B 00 C2 00 00 77 42 AC DC EB 50 05 D8 90 00 97 [15:59:43]RAPDU: 77 42 AC DC EB 50 05 D8 90 00 [15:59:43]wFMCommunicate OK [15:59:43]SAM_PROTO_SignData done [15:59:43]FM_MakeSignedData done [15:59:43]CreateOFDProtocolMessage [15:59:43]wFMCommunicate request_size=4 [15:59:43]MH_SAM_APDU [15:59:43]CAPDU: 80 11 00 00 [15:59:43]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:43]Read from MH i2c: E2 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 17 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 93 [15:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:43]wFMCommunicate OK [15:59:43]CreateOFDProtocolMessage done [15:59:43]OFDSenderStorePacket 1702 [15:59:43]StoreOFDPacket docnum=1702 [15:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 31 01 00 00 A9 E4 29 01 97 6D 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A6 06 00 00 35 04 06 00 F3 0C 8E 18 0F 88 77 42 AC DC EB 50 05 D8 [15:59:43]CheckFolder [15:59:43]dirname=/storage/ofd_packets [15:59:43]CheckFolder done [15:59:43]ProducePacketName [15:59:43]name=ofd_packets/00001702 [15:59:43]NVStorageSaveData ofd_packets/00001702 [15:59:43]File name is /storage/ofd_packets/00001702 [15:59:43]Write 335 bytes [15:59:43]NVStorageSaveData done [15:59:43]OFDSenderStorePacket done [15:59:43]KKMCreateOFDPacket done [15:59:43]NVStorageSaveData kkm_last_timestamp [15:59:43]File name is /storage/kkm_last_timestamp [15:59:43]Write 4 bytes [15:59:43]NVStorageSaveData done [15:59:43]ExternCall_PrintAddStr [15:59:43]wPrintStart [15:59:43]Write to MH i2c: 01 00 00 C4 00 C4 [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 07 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [15:59:43]RasterBufferAndPrint [15:59:43]line Счет N : (3)256175 [15:59:43]line ИНН: 02508201610067 [15:59:43]line Контрольно-Кассовый Чек [15:59:43]line ПРОДАЖА [15:59:43]line Товар: 5449000189318 [15:59:43]line Холодный чай Fuse лимон 1л [15:59:43]line 1.000 * 107.00 [15:59:43]line = 107.00 [15:59:43]line НДС 12% НСП 1% [15:59:43]line > о реализуемом товаре [15:59:43]line ИТОГО: 107.00 [15:59:43]line НСП 1% : 0.95 [15:59:43]line НДС 12% : 11.36 [15:59:43]line Наличными: 107.00 [15:59:43]line Безнал.: 0.00 [15:59:43]line Место: АЗС № 76 "Партнер Нефть" [15:59:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:59:43]line СНО: Общий режим [15:59:43]line Чек 18 11.07.2024 15:59 [15:59:43]line Смена: 22 ФФД: 1.0 [15:59:43]line ЗНМ: 0300000124 [15:59:43]line РНМ: 0000000000177495 [15:59:43]line Версия ККМ: 001 [15:59:43]line ФМ: 0000000002098592 [15:59:43]line ФД: 1702 [15:59:43]line ФПД: 267235249098632 [15:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155941&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1702&fm=267235249098632&tin=02508201610067®Number=0000000000177495&sum=10700 [15:59:43]line 0 [15:59:43]written 0, free lines is 4095 [15:59:43]OFD Sender: Processing packet 1702 [packets to send 1, broken 0] [15:59:43]ProducePacketName [15:59:43]name=ofd_packets/00001702 [15:59:43]OFD Sender: To server: pG, [15:59:43]CommunicateWithHost lk.salyk.kg:30040 [15:59:43]ConnectInit lk.salyk.kg [15:59:43]Connected sock=10 [15:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 31 01 00 00 A9 E4 29 01 97 6D 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A6 06 00 00 35 04 06 00 F3 0C 8E 18 0F 88 77 42 AC DC EB 50 05 D8 [15:59:43]Write to MH i2c: 01 00 00 EC 00 EC [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 07 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 44 0D 44 [15:59:43]RasterBufferAndPrint [15:59:43]line [15:59:43]line [15:59:43]line [15:59:43]line [15:59:43]line [15:59:43]written 0, free lines is 3426 [15:59:43]MH_Cut [15:59:43]Write to MH i2c: D1 01 00 F3 00 01 C5 [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 5F 31 47 00 B4 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A6 06 00 00 F4 03 04 00 A8 AC 8F 66 B6 04 01 00 00 41 38 EC 15 CB 36 48 61 [15:59:44]CommunicateWithHost err = 0 [15:59:44]CheckOFDResponse [15:59:44]1017 (14) - 77093643461234 [15:59:44]1041 (16) - 0000000002098592 [15:59:44]1040 (4) - 1702 [15:59:44]1012 (4) - 11.07.2024 09:58 [15:59:44]1206 (1) - 0 [15:59:44]OFD Sender: Remove packet 1702 [15:59:44]ProducePacketName [15:59:44]name=ofd_packets/00001702 [15:59:44]NVStorageDeleteData [15:59:44]Read from MH i2c: D1 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: D1 01 00 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: D1 01 00 F3 00 00 C4 [15:59:44]Write to MH i2c: 01 00 00 F4 00 F4 [15:59:44]Write i2c OK [15:59:44]MH_I2C_Read... [15:59:44]*** Cut start [15:59:44]*** Partial cut [15:59:44]*** CUTSNS_PIN = 1 [15:59:44]OFD Sender: No OFD packet to send [15:59:44]*** CUTSNS_PIN = 0 [15:59:44]*** Brake cut motor [15:59:45]Read from MH i2c: 01 [15:59:45]MH_I2C_Read... [15:59:45]*** Stop cut motor [15:59:45]*** Cut end [15:59:45]Read from MH i2c: 01 07 00 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [15:59:45]process_action close_receipt done [15:59:45]requested_data is exist [15:59:45]produce_requested_data [15:59:45]requested_item fm.sn is exist - process it [15:59:45]wFMCommunicate request_size=4 [15:59:45]MH_SAM_APDU [15:59:45]CAPDU: 80 11 00 00 [15:59:45]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [15:59:45]Write i2c OK [15:59:45]MH_I2C_Read... [15:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:45]Read from MH i2c: E2 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: E2 17 00 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C5 [15:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:45]wFMCommunicate OK [15:59:45]requested_item fd.num is exist - process it [15:59:45]SAM_PROTO_GetFieldsCounters [15:59:45]wFMCommunicate request_size=4 [15:59:45]MH_SAM_APDU [15:59:45]CAPDU: 80 13 00 00 [15:59:45]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [15:59:45]Write i2c OK [15:59:45]MH_I2C_Read... [15:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:45]Read from MH i2c: E2 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: E2 62 00 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: E2 62 00 F6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A6 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [15:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A6 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:45]wFMCommunicate OK [15:59:45]SAM_PROTO_GetFieldsCounters done [15:59:45]requested_item shift.num is exist - process it [15:59:45]requested_item shift.opened is exist - process it [15:59:45]req_shift_opened [15:59:45]FM_GetShiftState [15:59:45]SAM_PROTO_GetShiftState [15:59:45]wFMCommunicate request_size=4 [15:59:45]MH_SAM_APDU [15:59:45]CAPDU: 80 13 01 00 [15:59:45]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [15:59:45]Write i2c OK [15:59:45]MH_I2C_Read... [15:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:45]Read from MH i2c: E2 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: E2 0E 00 [15:59:45]MH_I2C_Read... [15:59:45]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D2 [15:59:45]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:45]wFMCommunicate OK [15:59:45]SAM_PROTO_GetShiftState done [15:59:45]FM_GetShiftState done [15:59:45]req_shift_opened done [15:59:45]requested_item shift.open_date is exist - process it [15:59:45]req_shift_open_date [15:59:45]req_shift_open_date done [15:59:45]produce_requested_data done [15:59:45]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1702,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [15:59:45]process_action_free close_receipt [15:59:45]json_value_free [15:59:45]json_value_free done [15:59:45]process_json_proto returns [15:59:45]Send response to host [15:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1702,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [15:59:45]free response buf [15:59:45]execute_script done [15:59:45]execute_script returns [15:59:45]free content buf [15:59:45]Sock 6.Close socket [15:59:45]Sock 6.Thread stoped [15:59:46]accept exits with 8 [15:59:46]New connection [15:59:46]New thread 3067227492 created [15:59:46]Thread 3067370852 joined [15:59:46]Waiting for new connection... [15:59:46] Sock 8.Parse request [15:59:46]Sock 8.Check first char [15:59:46]Sock 8.First char is OK [15:59:46]request: POST /json_proto HTTP/1.0 [15:59:46]Method: POST [15:59:46]URL: /json_proto [15:59:46]Method is POST - this is cgi request [15:59:46]url: /json_proto [15:59:46]query_string will be loaded in cgi processing [15:59:46]execute_cgi json_proto POST (null) [15:59:46]execute_cgi path=json_proto method=POST [15:59:46]POST find Content-Length [15:59:46]Host: 172.17.35.133:8080 [15:59:46]Content-Length: 660 [15:59:46]Content-Type: application/json [15:59:46] [15:59:46]POST finish read [15:59:46]Found Content-Length = 660 [15:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256176", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:46]execute_script... [15:59:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256176", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:46]POST & json_proto [15:59:46]process_json_proto [15:59:46]json parsed OK: [15:59:46]protocol is kg_v1.0 [15:59:46]action value=close_receipt [15:59:46]process_action close_receipt [15:59:46]cmd_close_receipt [15:59:46]MH_GetDate [15:59:46]Write to MH i2c: F0 00 00 F8 00 E7 [15:59:46]Write i2c OK [15:59:46]MH_I2C_Read... [15:59:46]Read from MH i2c: F0 [15:59:46]MH_I2C_Read... [15:59:46]Read from MH i2c: F0 09 00 [15:59:46]MH_I2C_Read... [15:59:46]Read from MH i2c: F0 09 00 F8 00 00 72 01 90 66 1B 28 2A 66 2C [15:59:46]GetLastDocTimeStamp 1720713581 [15:59:46]current date 1720713586 [15:59:46]FM_GetShiftState [15:59:46]SAM_PROTO_GetShiftState [15:59:46]wFMCommunicate request_size=4 [15:59:46]MH_SAM_APDU [15:59:46]CAPDU: 80 13 01 00 [15:59:46]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [15:59:46]Write i2c OK [15:59:46]MH_I2C_Read... [15:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:46]Read from MH i2c: E2 [15:59:46]MH_I2C_Read... [15:59:46]Read from MH i2c: E2 0E 00 [15:59:46]MH_I2C_Read... [15:59:46]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D4 [15:59:46]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:46]wFMCommunicate OK [15:59:46]SAM_PROTO_GetShiftState done [15:59:46]FM_GetShiftState done [15:59:46]opened in 1720656698 [15:59:46]opened+sec_in_day 1720743098 [15:59:46]quantity*price = 6500 [15:59:46]sum+1 = 6501 [15:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 19 11.07.2024 15:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1703 ФПД: 194154537289495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155946&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1703&fm=194154537289495&tin=02508201610067®Number=0000000000177495&sum=6500 0 [15:59:47]StoreToDocumentArchive [15:59:47]shift 22 fd 1703 [15:59:47]save to /storage/0022/doc_00001703 [15:59:47]save last doc name /storage/0022/doc_00001703 to /storage/kkm_last_doc_name [15:59:47]save OK [15:59:47]Clear old archive folders... [15:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=295 [15:59:47]tlvbuf is 00A956D0 [15:59:47]SAM_PROTO_ClearQueue [15:59:47]wFMCommunicate request_size=4 [15:59:47]MH_SAM_APDU [15:59:47]CAPDU: 80 09 00 00 [15:59:47]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [15:59:47]Write i2c OK [15:59:47]MH_I2C_Read... [15:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:47]Read from MH i2c: E2 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: E2 03 00 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [15:59:47]RAPDU: 90 00 [15:59:47]wFMCommunicate OK [15:59:47]SAM_PROTO_ClearQueue done [15:59:48]KKMCreateOFDPacket [15:59:48]OFDProtocolAddRootSTLVToBuf [15:59:48]FM_MakeSignedData [15:59:48]FM_MakeSignedData [15:59:48]SAM_PROTO_SignData [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 01 02 [15:59:48]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=255 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [15:59:48]Write to MH i2c: E2 02 01 08 01 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 A0 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=54 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A7 06 00 00 35 04 06 00 B0 95 20 3A 07 17 [15:59:48]Write to MH i2c: E2 39 00 09 01 80 0D 02 02 31 00 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A7 06 00 00 35 04 06 00 B0 95 20 3A 07 17 00 00 20 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 03 02 [15:59:48]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 0B 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 0B 00 0A 01 00 BF E4 69 4F C4 08 9B 28 90 00 71 [15:59:48]RAPDU: BF E4 69 4F C4 08 9B 28 90 00 [15:59:48]wFMCommunicate OK [15:59:48]SAM_PROTO_SignData done [15:59:48]FM_MakeSignedData done [15:59:48]CreateOFDProtocolMessage [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 11 00 00 [15:59:48]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 17 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DC [15:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:48]wFMCommunicate OK [15:59:48]CreateOFDProtocolMessage done [15:59:48]OFDSenderStorePacket 1703 [15:59:48]StoreOFDPacket docnum=1703 [15:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3B 01 00 00 DC F1 33 01 0B 2E 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A7 06 00 00 35 04 06 00 B0 95 20 3A 07 17 BF E4 69 4F C4 08 9B 28 [15:59:48]CheckFolder [15:59:48]dirname=/storage/ofd_packets [15:59:48]CheckFolder done [15:59:48]ProducePacketName [15:59:48]name=ofd_packets/00001703 [15:59:48]NVStorageSaveData ofd_packets/00001703 [15:59:48]File name is /storage/ofd_packets/00001703 [15:59:48]Write 345 bytes [15:59:48]NVStorageSaveData done [15:59:48]OFDSenderStorePacket done [15:59:48]KKMCreateOFDPacket done [15:59:48]NVStorageSaveData kkm_last_timestamp [15:59:48]File name is /storage/kkm_last_timestamp [15:59:48]Write 4 bytes [15:59:48]NVStorageSaveData done [15:59:48]ExternCall_PrintAddStr [15:59:48]wPrintStart [15:59:48]Write to MH i2c: 01 00 00 0C 01 0D [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: 01 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: 01 07 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [15:59:48]RasterBufferAndPrint [15:59:48]line Счет N : (3)256176 [15:59:48]line ИНН: 02508201610067 [15:59:48]line Контрольно-Кассовый Чек [15:59:48]line ПРОДАЖА [15:59:48]line Товар: 4620016307540 [15:59:48]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [15:59:48]line 1.000 * 65.00 [15:59:48]line = 65.00 [15:59:48]line НДС 12% НСП 1% [15:59:48]line > о реализуемом товаре [15:59:48]line ИТОГО: 65.00 [15:59:48]line НСП 1% : 0.57 [15:59:48]line НДС 12% : 6.90 [15:59:48]line Наличными: 65.00 [15:59:48]line Безнал.: 0.00 [15:59:48]line Место: АЗС № 76 "Партнер Нефть" [15:59:48]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:59:48]line СНО: Общий режим [15:59:48]line Чек 19 11.07.2024 15:59 [15:59:48]line Смена: 22 ФФД: 1.0 [15:59:48]line ЗНМ: 0300000124 [15:59:48]line РНМ: 0000000000177495 [15:59:48]line Версия ККМ: 001 [15:59:48]line ФМ: 0000000002098592 [15:59:48]line ФД: 1703 [15:59:48]line ФПД: 194154537289495 [15:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155946&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1703&fm=194154537289495&tin=02508201610067®Number=0000000000177495&sum=6500 [15:59:49]line 0 [15:59:49]written 0, free lines is 4095 [15:59:49]OFD Sender: Processing packet 1703 [packets to send 1, broken 0] [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00001703 [15:59:49]OFD Sender: To server: pG, [15:59:49]CommunicateWithHost lk.salyk.kg:30040 [15:59:49]ConnectInit lk.salyk.kg [15:59:49]Connected sock=10 [15:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3B 01 00 00 DC F1 33 01 0B 2E 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A7 06 00 00 35 04 06 00 B0 95 20 3A 07 17 BF E4 69 4F C4 08 9B 28 [15:59:49]Write to MH i2c: 01 00 00 35 01 36 [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 07 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 18 0D 62 [15:59:49]RasterBufferAndPrint [15:59:49]line [15:59:49]line [15:59:49]line [15:59:49]line [15:59:49]line [15:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 73 7B 47 00 CC CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A7 06 00 00 F4 03 04 00 AE AC 8F 66 B6 04 01 00 00 44 C9 8E 79 70 94 42 DB [15:59:49]CommunicateWithHost err = 0 [15:59:49]CheckOFDResponse [15:59:49]1017 (14) - 77093643461234 [15:59:49]1041 (16) - 0000000002098592 [15:59:49]1040 (4) - 1703 [15:59:49]1012 (4) - 11.07.2024 09:58 [15:59:49]1206 (1) - 0 [15:59:49]OFD Sender: Remove packet 1703 [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00001703 [15:59:49]NVStorageDeleteData [15:59:49]written 0, free lines is 3407 [15:59:49]MH_Cut [15:59:49]Write to MH i2c: D1 01 00 3C 01 01 0F [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: D1 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: D1 01 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: D1 01 00 3C 01 00 0E [15:59:49]Write to MH i2c: 01 00 00 3D 01 3E [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:50]*** Cut start [15:59:50]*** Partial cut [15:59:50]*** CUTSNS_PIN = 1 [15:59:50]OFD Sender: No OFD packet to send [15:59:50]*** CUTSNS_PIN = 0 [15:59:50]*** Brake cut motor [15:59:50]Read from MH i2c: 01 [15:59:50]MH_I2C_Read... [15:59:50]*** Stop cut motor [15:59:50]*** Cut end [15:59:50]Read from MH i2c: 01 07 00 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FF 0F 53 [15:59:50]process_action close_receipt done [15:59:50]requested_data is exist [15:59:50]produce_requested_data [15:59:50]requested_item fm.sn is exist - process it [15:59:50]wFMCommunicate request_size=4 [15:59:50]MH_SAM_APDU [15:59:50]CAPDU: 80 11 00 00 [15:59:50]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [15:59:50]Write i2c OK [15:59:50]MH_I2C_Read... [15:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:50]Read from MH i2c: E2 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: E2 17 00 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0F [15:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:50]wFMCommunicate OK [15:59:50]requested_item fd.num is exist - process it [15:59:50]SAM_PROTO_GetFieldsCounters [15:59:50]wFMCommunicate request_size=4 [15:59:50]MH_SAM_APDU [15:59:50]CAPDU: 80 13 00 00 [15:59:50]Write to MH i2c: E2 08 00 3F 01 80 13 00 00 00 00 00 00 BC [15:59:50]Write i2c OK [15:59:50]MH_I2C_Read... [15:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 62 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 62 00 3F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:51]wFMCommunicate OK [15:59:51]SAM_PROTO_GetFieldsCounters done [15:59:51]requested_item shift.num is exist - process it [15:59:51]requested_item shift.opened is exist - process it [15:59:51]req_shift_opened [15:59:51]FM_GetShiftState [15:59:51]SAM_PROTO_GetShiftState [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 13 01 00 [15:59:51]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 0E 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 1C [15:59:51]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:51]wFMCommunicate OK [15:59:51]SAM_PROTO_GetShiftState done [15:59:51]FM_GetShiftState done [15:59:51]req_shift_opened done [15:59:51]requested_item shift.open_date is exist - process it [15:59:51]req_shift_open_date [15:59:51]req_shift_open_date done [15:59:51]produce_requested_data done [15:59:51]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1703,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [15:59:51]process_action_free close_receipt [15:59:51]json_value_free [15:59:51]json_value_free done [15:59:51]process_json_proto returns [15:59:51]Send response to host [15:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1703,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [15:59:51]free response buf [15:59:51]execute_script done [15:59:51]execute_script returns [15:59:51]free content buf [15:59:51]Sock 8.Close socket [15:59:51]Sock 8.Thread stoped [15:59:52]accept exits with 7 [15:59:52]New connection [15:59:52]New thread 3067370852 created [15:59:52]Thread 3067227492 joined [15:59:52]Waiting for new connection... [15:59:52] Sock 7.Parse request [15:59:52]Sock 7.Check first char [15:59:52]Sock 7.First char is OK [15:59:52]request: POST /json_proto HTTP/1.0 [15:59:52]Method: POST [15:59:52]URL: /json_proto [15:59:52]Method is POST - this is cgi request [15:59:52]url: /json_proto [15:59:52]query_string will be loaded in cgi processing [15:59:52]execute_cgi json_proto POST (null) [15:59:52]execute_cgi path=json_proto method=POST [15:59:52]POST find Content-Length [15:59:52]Host: 172.17.35.133:8080 [15:59:52]Content-Length: 1039 [15:59:52]Content-Type: application/json [15:59:52] [15:59:52]POST finish read [15:59:52]Found Content-Length = 1039 [15:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256177", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:52]execute_script... [15:59:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256177", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:52]POST & json_proto [15:59:52]process_json_proto [15:59:52]json parsed OK: [15:59:52]protocol is kg_v1.0 [15:59:52]action value=close_receipt [15:59:52]process_action close_receipt [15:59:52]cmd_close_receipt [15:59:52]MH_GetDate [15:59:52]Write to MH i2c: F0 00 00 41 01 31 [15:59:52]Write i2c OK [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: F0 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: F0 09 00 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: F0 09 00 41 01 00 79 01 90 66 1B 28 2A 66 7D [15:59:52]GetLastDocTimeStamp 1720713586 [15:59:52]current date 1720713593 [15:59:52]FM_GetShiftState [15:59:52]SAM_PROTO_GetShiftState [15:59:52]wFMCommunicate request_size=4 [15:59:52]MH_SAM_APDU [15:59:52]CAPDU: 80 13 01 00 [15:59:52]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [15:59:52]Write i2c OK [15:59:52]MH_I2C_Read... [15:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:52]Read from MH i2c: E2 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 0E 00 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 1E [15:59:52]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:52]wFMCommunicate OK [15:59:52]SAM_PROTO_GetShiftState done [15:59:52]FM_GetShiftState done [15:59:52]opened in 1720656698 [15:59:52]opened+sec_in_day 1720743098 [15:59:52]quantity*price = 7000 [15:59:52]sum+1 = 7001 [15:59:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 20 11.07.2024 15:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1704 ФПД: 49643300939883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155953&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1704&fm=49643300939883&tin=02508201610067®Number=0000000000177495&sum=16000 0 [15:59:54]StoreToDocumentArchive [15:59:54]shift 22 fd 1704 [15:59:54]save to /storage/0022/doc_00001704 [15:59:54]save last doc name /storage/0022/doc_00001704 to /storage/kkm_last_doc_name [15:59:54]save OK [15:59:54]Clear old archive folders... [15:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=429 [15:59:54]tlvbuf is 00A22D00 [15:59:54]SAM_PROTO_ClearQueue [15:59:54]wFMCommunicate request_size=4 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 09 00 00 [15:59:54]Write to MH i2c: E2 08 00 4F 01 80 09 00 00 00 00 00 00 C2 [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 03 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [15:59:54]RAPDU: 90 00 [15:59:54]wFMCommunicate OK [15:59:54]SAM_PROTO_ClearQueue done [15:59:54]KKMCreateOFDPacket [15:59:54]OFDProtocolAddRootSTLVToBuf [15:59:54]FM_MakeSignedData [15:59:54]FM_MakeSignedData [15:59:54]SAM_PROTO_SignData [15:59:54]wFMCommunicate request_size=4 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 0D 01 02 [15:59:54]Write to MH i2c: E2 08 00 50 01 80 0D 01 02 00 00 00 00 CA [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 03 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [15:59:54]RAPDU: 90 00 [15:59:54]wFMCommunicate OK [15:59:54]wFMCommunicate request_size=255 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 [15:59:54]Write to MH i2c: E2 02 01 51 01 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 08 [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 03 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [15:59:54]RAPDU: 90 00 [15:59:54]wFMCommunicate OK [15:59:54]wFMCommunicate request_size=188 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 0D 02 02 B7 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 79 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A8 06 00 00 35 04 06 00 2D 26 7B 51 68 6B [15:59:54]Write to MH i2c: E2 BF 00 52 01 80 0D 02 02 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 79 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A8 06 00 00 35 04 06 00 2D 26 7B 51 68 6B 00 00 29 [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]OFD Sender: No OFD packet to send [15:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 03 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [15:59:55]RAPDU: 90 00 [15:59:55]wFMCommunicate OK [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 0D 03 02 [15:59:55]Write to MH i2c: E2 08 00 53 01 80 0D 03 02 00 00 00 00 CF [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 0B 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 0B 00 53 01 00 73 B6 13 8D 45 D3 DF E2 90 00 72 [15:59:55]RAPDU: 73 B6 13 8D 45 D3 DF E2 90 00 [15:59:55]wFMCommunicate OK [15:59:55]SAM_PROTO_SignData done [15:59:55]FM_MakeSignedData done [15:59:55]CreateOFDProtocolMessage [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 11 00 00 [15:59:55]Write to MH i2c: E2 08 00 54 01 80 11 00 00 00 00 00 00 CF [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:55]Read from MH i2c: E2 17 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 17 00 54 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 25 [15:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:55]wFMCommunicate OK [15:59:55]CreateOFDProtocolMessage done [15:59:55]OFDSenderStorePacket 1704 [15:59:55]StoreOFDPacket docnum=1704 [15:59:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 C1 01 00 00 51 02 B9 01 01 21 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 79 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A8 06 00 00 35 04 06 00 2D 26 7B 51 68 6B 73 B6 13 8D 45 D3 DF E2 [15:59:55]CheckFolder [15:59:55]dirname=/storage/ofd_packets [15:59:55]CheckFolder done [15:59:55]ProducePacketName [15:59:55]name=ofd_packets/00001704 [15:59:55]NVStorageSaveData ofd_packets/00001704 [15:59:55]File name is /storage/ofd_packets/00001704 [15:59:55]Write 479 bytes [15:59:55]NVStorageSaveData done [15:59:55]OFDSenderStorePacket done [15:59:55]KKMCreateOFDPacket done [15:59:55]NVStorageSaveData kkm_last_timestamp [15:59:55]File name is /storage/kkm_last_timestamp [15:59:55]Write 4 bytes [15:59:55]NVStorageSaveData done [15:59:55]ExternCall_PrintAddStr [15:59:55]wPrintStart [15:59:55]Write to MH i2c: 01 00 00 55 01 56 [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: 01 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: 01 07 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [15:59:55]RasterBufferAndPrint [15:59:55]line Счет N : (3)256177 [15:59:55]line ИНН: 02508201610067 [15:59:55]line Контрольно-Кассовый Чек [15:59:55]line ПРОДАЖА [15:59:55]line Товар: 4870202521285 [15:59:55]line Напиток Сок березовый негаз 0,45л [15:59:55]line 1.000 * 70.00 [15:59:55]line = 70.00 [15:59:55]line НДС 12% НСП 1% [15:59:55]line > о реализуемом товаре [15:59:55]line Товар: 4660085515163 [15:59:55]line Шок Батончик Сникерс супер 95/80г [15:59:55]line 1.000 * 90.00 [15:59:55]line = 90.00 [15:59:55]line НДС 12% НСП 1% [15:59:55]line > о реализуемом товаре [15:59:55]line ИТОГО: 160.00 [15:59:55]line НСП 1% : 1.42 [15:59:55]line НДС 12% : 16.99 [15:59:55]line Наличными: 160.00 [15:59:55]line Безнал.: 0.00 [15:59:55]line Место: АЗС № 76 "Партнер Нефть" [15:59:55]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:59:55]line СНО: Общий режим [15:59:55]line Чек 20 11.07.2024 15:59 [15:59:55]line Смена: 22 ФФД: 1.0 [15:59:55]line ЗНМ: 0300000124 [15:59:55]line РНМ: 0000000000177495 [15:59:55]line Версия ККМ: 001 [15:59:55]line ФМ: 0000000002098592 [15:59:55]line ФД: 1704 [15:59:55]line ФПД: 49643300939883 [15:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155953&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1704&fm=49643300939883&tin=02508201610067®Number=0000000000177495&sum=16000 [15:59:55]line 0 [15:59:55]OFD Sender: Processing packet 1704 [packets to send 1, broken 0] [15:59:55]ProducePacketName [15:59:55]name=ofd_packets/00001704 [15:59:55]OFD Sender: To server: pG, [15:59:55]CommunicateWithHost lk.salyk.kg:30040 [15:59:55]ConnectInit lk.salyk.kg [15:59:55]written 0, free lines is 4095 [15:59:55]Connected sock=10 [15:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 C1 01 00 00 51 02 B9 01 01 21 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 79 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A8 06 00 00 35 04 06 00 2D 26 7B 51 68 6B 73 B6 13 8D 45 D3 DF E2 [15:59:56]Write to MH i2c: 01 00 00 85 01 86 [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 07 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 B9 0C 52 [15:59:56]RasterBufferAndPrint [15:59:56]line [15:59:56]line [15:59:56]line [15:59:56]line [15:59:56]line [15:59:56]written 0, free lines is 3297 [15:59:56]MH_Cut [15:59:56]Write to MH i2c: D1 01 00 8C 01 01 5F [15:59:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 26 39 47 00 F4 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A8 06 00 00 F4 03 04 00 B4 AC 8F 66 B6 04 01 00 00 0D E3 EF 07 3D FA D6 1D [15:59:56]CommunicateWithHost err = 0 [15:59:56]CheckOFDResponse [15:59:56]1017 (14) - 77093643461234 [15:59:56]1041 (16) - 0000000002098592 [15:59:56]1040 (4) - 1704 [15:59:56]1012 (4) - 11.07.2024 09:58 [15:59:56]1206 (1) - 0 [15:59:56]OFD Sender: Remove packet 1704 [15:59:56]ProducePacketName [15:59:56]name=ofd_packets/00001704 [15:59:56]NVStorageDeleteData [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: D1 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: D1 01 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: D1 01 00 8C 01 00 5E [15:59:56]Write to MH i2c: 01 00 00 8D 01 8E [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]*** Cut start [15:59:56]*** Partial cut [15:59:56]*** CUTSNS_PIN = 1 [15:59:56]OFD Sender: No OFD packet to send [15:59:56]*** CUTSNS_PIN = 0 [15:59:57]*** Brake cut motor [15:59:57]Read from MH i2c: 01 [15:59:57]MH_I2C_Read... [15:59:57]*** Stop cut motor [15:59:57]*** Cut end [15:59:57]Read from MH i2c: 01 07 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [15:59:57]process_action close_receipt done [15:59:57]requested_data is exist [15:59:57]produce_requested_data [15:59:57]requested_item fm.sn is exist - process it [15:59:57]wFMCommunicate request_size=4 [15:59:57]MH_SAM_APDU [15:59:57]CAPDU: 80 11 00 00 [15:59:57]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 17 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5F [15:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:59:57]wFMCommunicate OK [15:59:57]requested_item fd.num is exist - process it [15:59:57]SAM_PROTO_GetFieldsCounters [15:59:57]wFMCommunicate request_size=4 [15:59:57]MH_SAM_APDU [15:59:57]CAPDU: 80 13 00 00 [15:59:57]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 62 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A8 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [15:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A8 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:57]wFMCommunicate OK [15:59:57]SAM_PROTO_GetFieldsCounters done [15:59:57]requested_item shift.num is exist - process it [15:59:57]requested_item shift.opened is exist - process it [15:59:57]req_shift_opened [15:59:57]FM_GetShiftState [15:59:57]SAM_PROTO_GetShiftState [15:59:57]wFMCommunicate request_size=4 [15:59:57]MH_SAM_APDU [15:59:57]CAPDU: 80 13 01 00 [15:59:57]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0E 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 6C [15:59:57]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:57]wFMCommunicate OK [15:59:57]SAM_PROTO_GetShiftState done [15:59:57]FM_GetShiftState done [15:59:57]req_shift_opened done [15:59:57]requested_item shift.open_date is exist - process it [15:59:57]req_shift_open_date [15:59:57]req_shift_open_date done [15:59:57]produce_requested_data done [15:59:57]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1704,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [15:59:57]process_action_free close_receipt [15:59:57]json_value_free [15:59:57]json_value_free done [15:59:57]process_json_proto returns [15:59:57]Send response to host [15:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1704,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [15:59:57]free response buf [15:59:57]execute_script done [15:59:57]execute_script returns [15:59:57]free content buf [15:59:57]Sock 7.Close socket [15:59:57]Sock 7.Thread stoped [15:59:59]accept exits with 8 [15:59:59]New connection [15:59:59]New thread 3067227492 created [15:59:59]Thread 3067370852 joined [15:59:59]Waiting for new connection... [15:59:59] Sock 8.Parse request [15:59:59]Sock 8.Check first char [15:59:59]Sock 8.First char is OK [15:59:59]request: POST /json_proto HTTP/1.0 [15:59:59]Method: POST [15:59:59]URL: /json_proto [15:59:59]Method is POST - this is cgi request [15:59:59]url: /json_proto [15:59:59]query_string will be loaded in cgi processing [15:59:59]execute_cgi json_proto POST (null) [15:59:59]execute_cgi path=json_proto method=POST [15:59:59]POST find Content-Length [15:59:59]Host: 172.17.35.133:8080 [15:59:59]Content-Length: 658 [15:59:59]Content-Type: application/json [15:59:59] [15:59:59]POST finish read [15:59:59]Found Content-Length = 658 [15:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256178", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:59]execute_script... [15:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256178", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:59]POST & json_proto [15:59:59]process_json_proto [15:59:59]json parsed OK: [15:59:59]protocol is kg_v1.0 [15:59:59]action value=close_receipt [15:59:59]process_action close_receipt [15:59:59]cmd_close_receipt [15:59:59]MH_GetDate [15:59:59]Write to MH i2c: F0 00 00 91 01 81 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: F0 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: F0 09 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: F0 09 00 91 01 00 7F 01 90 66 1B 28 2A 66 D3 [15:59:59]GetLastDocTimeStamp 1720713593 [15:59:59]current date 1720713599 [15:59:59]FM_GetShiftState [15:59:59]SAM_PROTO_GetShiftState [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 13 01 00 [15:59:59]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 0E 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 6E [15:59:59]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [15:59:59]wFMCommunicate OK [15:59:59]SAM_PROTO_GetShiftState done [15:59:59]FM_GetShiftState done [15:59:59]opened in 1720656698 [15:59:59]opened+sec_in_day 1720743098 [15:59:59]quantity*price = 12500 [15:59:59]sum+1 = 12501 [15:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 21 11.07.2024 15:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1705 ФПД: 15914532446111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155959&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1705&fm=15914532446111&tin=02508201610067®Number=0000000000177495&sum=12500 0 [16:00:01]StoreToDocumentArchive [16:00:01]shift 22 fd 1705 [16:00:01]save to /storage/0022/doc_00001705 [16:00:01]save last doc name /storage/0022/doc_00001705 to /storage/kkm_last_doc_name [16:00:01]save OK [16:00:01]Clear old archive folders... [16:00:01]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:00:01]tlvbuf is 00AAB510 [16:00:01]SAM_PROTO_ClearQueue [16:00:01]wFMCommunicate request_size=4 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 09 00 00 [16:00:01]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:01]Read from MH i2c: E2 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 03 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [16:00:01]RAPDU: 90 00 [16:00:01]wFMCommunicate OK [16:00:01]SAM_PROTO_ClearQueue done [16:00:01]KKMCreateOFDPacket [16:00:01]OFDProtocolAddRootSTLVToBuf [16:00:01]FM_MakeSignedData [16:00:01]FM_MakeSignedData [16:00:01]SAM_PROTO_SignData [16:00:01]wFMCommunicate request_size=4 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 0D 01 02 [16:00:01]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:01]Read from MH i2c: E2 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 03 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [16:00:01]RAPDU: 90 00 [16:00:01]wFMCommunicate OK [16:00:01]wFMCommunicate request_size=255 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7F 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 [16:00:01]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7F 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 00 00 6F [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]OFD Sender: No OFD packet to send [16:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [16:00:02]RAPDU: 90 00 [16:00:02]wFMCommunicate OK [16:00:02]wFMCommunicate request_size=37 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A9 06 00 00 35 04 06 00 0E 79 64 0D 9F 9F [16:00:02]Write to MH i2c: E2 28 00 A2 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A9 06 00 00 35 04 06 00 0E 79 64 0D 9F 9F 00 00 5C [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [16:00:02]RAPDU: 90 00 [16:00:02]wFMCommunicate OK [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 0D 03 02 [16:00:02]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 0B 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 0B 00 A3 01 00 CA CC 4E 87 46 51 04 0A 90 00 30 [16:00:02]RAPDU: CA CC 4E 87 46 51 04 0A 90 00 [16:00:02]wFMCommunicate OK [16:00:02]SAM_PROTO_SignData done [16:00:02]FM_MakeSignedData done [16:00:02]CreateOFDProtocolMessage [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 11 00 00 [16:00:02]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:02]Read from MH i2c: E2 17 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 75 [16:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:02]wFMCommunicate OK [16:00:02]CreateOFDProtocolMessage done [16:00:02]OFDSenderStorePacket 1705 [16:00:02]StoreOFDPacket docnum=1705 [16:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 8D 09 22 01 FB E1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7F 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A9 06 00 00 35 04 06 00 0E 79 64 0D 9F 9F CA CC 4E 87 46 51 04 0A [16:00:02]CheckFolder [16:00:02]dirname=/storage/ofd_packets [16:00:02]CheckFolder done [16:00:02]ProducePacketName [16:00:02]name=ofd_packets/00001705 [16:00:02]NVStorageSaveData ofd_packets/00001705 [16:00:02]File name is /storage/ofd_packets/00001705 [16:00:02]Write 328 bytes [16:00:02]NVStorageSaveData done [16:00:02]OFDSenderStorePacket done [16:00:02]KKMCreateOFDPacket done [16:00:02]NVStorageSaveData kkm_last_timestamp [16:00:02]File name is /storage/kkm_last_timestamp [16:00:02]Write 4 bytes [16:00:02]NVStorageSaveData done [16:00:02]ExternCall_PrintAddStr [16:00:02]wPrintStart [16:00:02]Write to MH i2c: 01 00 00 A5 01 A6 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [16:00:02]RasterBufferAndPrint [16:00:02]line Счет N : (3)256178 [16:00:02]line ИНН: 02508201610067 [16:00:02]line Контрольно-Кассовый Чек [16:00:02]line ПРОДАЖА [16:00:02]line Товар: 5449000054227 [16:00:02]line Напиток Кока-Кола 1л [16:00:02]line 1.000 * 125.00 [16:00:02]line = 125.00 [16:00:02]line НДС 12% НСП 1% [16:00:02]line > о реализуемом товаре [16:00:02]line ИТОГО: 125.00 [16:00:02]line НСП 1% : 1.11 [16:00:02]line НДС 12% : 13.27 [16:00:02]line Наличными: 125.00 [16:00:02]line Безнал.: 0.00 [16:00:02]line Место: АЗС № 76 "Партнер Нефть" [16:00:02]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:02]line СНО: Общий режим [16:00:02]line Чек 21 11.07.2024 15:59 [16:00:02]line Смена: 22 ФФД: 1.0 [16:00:02]line ЗНМ: 0300000124 [16:00:02]line РНМ: 0000000000177495 [16:00:02]line Версия ККМ: 001 [16:00:02]line ФМ: 0000000002098592 [16:00:02]line ФД: 1705 [16:00:02]line ФПД: 15914532446111 [16:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T155959&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1705&fm=15914532446111&tin=02508201610067®Number=0000000000177495&sum=12500 [16:00:02]line 0 [16:00:02]OFD Sender: Processing packet 1705 [packets to send 1, broken 0] [16:00:02]ProducePacketName [16:00:02]name=ofd_packets/00001705 [16:00:02]OFD Sender: To server: pG, [16:00:02]CommunicateWithHost lk.salyk.kg:30040 [16:00:02]ConnectInit lk.salyk.kg [16:00:02]written 0, free lines is 4095 [16:00:02]Connected sock=10 [16:00:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 8D 09 22 01 FB E1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7F 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A9 06 00 00 35 04 06 00 0E 79 64 0D 9F 9F CA CC 4E 87 46 51 04 0A [16:00:02]Write to MH i2c: 01 00 00 CD 01 CE [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 1F 0D 01 [16:00:02]RasterBufferAndPrint [16:00:02]line [16:00:02]line [16:00:02]line [16:00:02]line [16:00:02]line [16:00:02]written 0, free lines is 3405 [16:00:02]MH_Cut [16:00:02]Write to MH i2c: D1 01 00 D4 01 01 A7 [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: D1 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: D1 01 00 [16:00:03]MH_I2C_Read... [16:00:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 99 E6 47 00 CD EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A9 06 00 00 F4 03 04 00 BB AC 8F 66 B6 04 01 00 00 70 0D 0C 7F 12 B9 1F 86 [16:00:03]CommunicateWithHost err = 0 [16:00:03]CheckOFDResponse [16:00:03]1017 (14) - 77093643461234 [16:00:03]1041 (16) - 0000000002098592 [16:00:03]1040 (4) - 1705 [16:00:03]1012 (4) - 11.07.2024 09:58 [16:00:03]1206 (1) - 0 [16:00:03]OFD Sender: Remove packet 1705 [16:00:03]ProducePacketName [16:00:03]name=ofd_packets/00001705 [16:00:03]NVStorageDeleteData [16:00:03]Read from MH i2c: D1 01 00 D4 01 00 A6 [16:00:03]Write to MH i2c: 01 00 00 D5 01 D6 [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]*** Cut start [16:00:03]*** Partial cut [16:00:03]*** CUTSNS_PIN = 1 [16:00:03]*** CUTSNS_PIN = 0 [16:00:03]OFD Sender: No OFD packet to send [16:00:03]*** Brake cut motor [16:00:04]Read from MH i2c: 01 [16:00:04]MH_I2C_Read... [16:00:04]*** Stop cut motor [16:00:04]*** Cut end [16:00:04]Read from MH i2c: 01 07 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [16:00:04]process_action close_receipt done [16:00:04]requested_data is exist [16:00:04]produce_requested_data [16:00:04]requested_item fm.sn is exist - process it [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 11 00 00 [16:00:04]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 17 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A7 [16:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:04]wFMCommunicate OK [16:00:04]requested_item fd.num is exist - process it [16:00:04]SAM_PROTO_GetFieldsCounters [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 13 00 00 [16:00:04]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 62 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A9 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [16:00:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 A9 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:04]wFMCommunicate OK [16:00:04]SAM_PROTO_GetFieldsCounters done [16:00:04]requested_item shift.num is exist - process it [16:00:04]requested_item shift.opened is exist - process it [16:00:04]req_shift_opened [16:00:04]FM_GetShiftState [16:00:04]SAM_PROTO_GetShiftState [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 13 01 00 [16:00:04]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 0E 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 B4 [16:00:04]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:04]wFMCommunicate OK [16:00:04]SAM_PROTO_GetShiftState done [16:00:04]FM_GetShiftState done [16:00:04]req_shift_opened done [16:00:04]requested_item shift.open_date is exist - process it [16:00:04]req_shift_open_date [16:00:04]req_shift_open_date done [16:00:04]produce_requested_data done [16:00:04]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1705,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:04]process_action_free close_receipt [16:00:04]json_value_free [16:00:04]json_value_free done [16:00:04]process_json_proto returns [16:00:04]Send response to host [16:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1705,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:04]free response buf [16:00:04]execute_script done [16:00:04]execute_script returns [16:00:04]free content buf [16:00:04]Sock 8.Close socket [16:00:04]Sock 8.Thread stoped [16:00:06]accept exits with 7 [16:00:06]New connection [16:00:06]New thread 3067370852 created [16:00:06]Thread 3067227492 joined [16:00:06]Waiting for new connection... [16:00:06] Sock 7.Parse request [16:00:06]Sock 7.Check first char [16:00:06]Sock 7.First char is OK [16:00:06]request: POST /json_proto HTTP/1.0 [16:00:06]Method: POST [16:00:06]URL: /json_proto [16:00:06]Method is POST - this is cgi request [16:00:06]url: /json_proto [16:00:06]query_string will be loaded in cgi processing [16:00:06]execute_cgi json_proto POST (null) [16:00:06]execute_cgi path=json_proto method=POST [16:00:06]POST find Content-Length [16:00:06]Host: 172.17.35.133:8080 [16:00:06]Content-Length: 675 [16:00:06]Content-Type: application/json [16:00:06] [16:00:06]POST finish read [16:00:06]Found Content-Length = 675 [16:00:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256179", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:06]execute_script... [16:00:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256179", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:06]POST & json_proto [16:00:06]process_json_proto [16:00:06]json parsed OK: [16:00:06]protocol is kg_v1.0 [16:00:06]action value=close_receipt [16:00:06]process_action close_receipt [16:00:06]cmd_close_receipt [16:00:06]MH_GetDate [16:00:06]Write to MH i2c: F0 00 00 D9 01 C9 [16:00:06]Write i2c OK [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: F0 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: F0 09 00 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: F0 09 00 D9 01 00 86 01 90 66 1B 28 2A 66 22 [16:00:06]GetLastDocTimeStamp 1720713599 [16:00:06]current date 1720713606 [16:00:06]FM_GetShiftState [16:00:06]SAM_PROTO_GetShiftState [16:00:06]wFMCommunicate request_size=4 [16:00:06]MH_SAM_APDU [16:00:06]CAPDU: 80 13 01 00 [16:00:06]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [16:00:06]Write i2c OK [16:00:06]MH_I2C_Read... [16:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:06]Read from MH i2c: E2 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 0E 00 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 B6 [16:00:06]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:06]wFMCommunicate OK [16:00:06]SAM_PROTO_GetShiftState done [16:00:06]FM_GetShiftState done [16:00:06]opened in 1720656698 [16:00:06]opened+sec_in_day 1720743098 [16:00:06]quantity*price = 4200 [16:00:06]sum+1 = 4201 [16:00:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 22 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1706 ФПД: 177083324473203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160006&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1706&fm=177083324473203&tin=02508201610067®Number=0000000000177495&sum=4200 0 [16:00:08]StoreToDocumentArchive [16:00:08]shift 22 fd 1706 [16:00:08]save to /storage/0022/doc_00001706 [16:00:08]save last doc name /storage/0022/doc_00001706 to /storage/kkm_last_doc_name [16:00:08]save OK [16:00:08]Clear old archive folders... [16:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:00:08]tlvbuf is 009FC210 [16:00:08]SAM_PROTO_ClearQueue [16:00:08]wFMCommunicate request_size=4 [16:00:08]MH_SAM_APDU [16:00:08]CAPDU: 80 09 00 00 [16:00:08]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:08]Read from MH i2c: E2 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 03 00 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [16:00:08]RAPDU: 90 00 [16:00:08]wFMCommunicate OK [16:00:08]SAM_PROTO_ClearQueue done [16:00:08]KKMCreateOFDPacket [16:00:08]OFDProtocolAddRootSTLVToBuf [16:00:08]FM_MakeSignedData [16:00:08]FM_MakeSignedData [16:00:08]SAM_PROTO_SignData [16:00:08]wFMCommunicate request_size=4 [16:00:08]MH_SAM_APDU [16:00:08]CAPDU: 80 0D 01 02 [16:00:08]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:08]Read from MH i2c: E2 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 03 00 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [16:00:08]RAPDU: 90 00 [16:00:08]wFMCommunicate OK [16:00:08]wFMCommunicate request_size=255 [16:00:08]MH_SAM_APDU [16:00:08]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 86 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 [16:00:08]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 86 01 90 66 0E 04 04 00 16 00 00 00 B9 OFD Sender: No OFD packet to send [16:00:08]04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 00 00 A9 [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]wFMCommunicate request_size=46 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 02 02 29 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AA 06 00 00 35 04 06 00 A1 0E 6C A6 9F 73 [16:00:09]Write to MH i2c: E2 31 00 EA 01 80 0D 02 02 29 00 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AA 06 00 00 35 04 06 00 A1 0E 6C A6 9F 73 00 00 7B [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 03 02 [16:00:09]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 0B 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 0B 00 EB 01 00 71 51 59 BE 69 CA 7C C6 90 00 B6 [16:00:09]RAPDU: 71 51 59 BE 69 CA 7C C6 90 00 [16:00:09]wFMCommunicate OK [16:00:09]SAM_PROTO_SignData done [16:00:09]FM_MakeSignedData done [16:00:09]CreateOFDProtocolMessage [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 11 00 00 [16:00:09]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 17 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BD [16:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:09]wFMCommunicate OK [16:00:09]CreateOFDProtocolMessage done [16:00:09]OFDSenderStorePacket 1706 [16:00:09]StoreOFDPacket docnum=1706 [16:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 33 01 00 00 E4 37 2B 01 24 2A 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 86 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AA 06 00 00 35 04 06 00 A1 0E 6C A6 9F 73 71 51 59 BE 69 CA 7C C6 [16:00:09]CheckFolder [16:00:09]dirname=/storage/ofd_packets [16:00:09]CheckFolder done [16:00:09]ProducePacketName [16:00:09]name=ofd_packets/00001706 [16:00:09]NVStorageSaveData ofd_packets/00001706 [16:00:09]File name is /storage/ofd_packets/00001706 [16:00:09]Write 337 bytes [16:00:09]NVStorageSaveData done [16:00:09]OFDSenderStorePacket done [16:00:09]KKMCreateOFDPacket done [16:00:09]NVStorageSaveData kkm_last_timestamp [16:00:09]File name is /storage/kkm_last_timestamp [16:00:09]Write 4 bytes [16:00:09]NVStorageSaveData done [16:00:09]ExternCall_PrintAddStr [16:00:09]wPrintStart [16:00:09]Write to MH i2c: 01 00 00 ED 01 EE [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 07 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [16:00:09]RasterBufferAndPrint [16:00:09]line Счет N : (3)256179 [16:00:09]line ИНН: 02508201610067 [16:00:09]line Контрольно-Кассовый Чек [16:00:09]line ПРОДАЖА [16:00:09]line Товар: 2000053020015 [16:00:09]line Бумажные стаканы 250мл 1шт [16:00:09]line 6.000 * 7.00 [16:00:09]line = 42.00 [16:00:09]line НДС 12% НСП 1% [16:00:09]line > о реализуемом товаре [16:00:09]line ИТОГО: 42.00 [16:00:09]line НСП 1% : 0.37 [16:00:09]line НДС 12% : 4.46 [16:00:09]line Наличными: 42.00 [16:00:09]line Безнал.: 0.00 [16:00:09]line Место: АЗС № 76 "Партнер Нефть" [16:00:09]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:09]line СНО: Общий режим [16:00:09]line Чек 22 11.07.2024 16:00 [16:00:09]line Смена: 22 ФФД: 1.0 [16:00:09]line ЗНМ: 0300000124 [16:00:09]line РНМ: 0000000000177495 [16:00:09]line Версия ККМ: 001 [16:00:09]line ФМ: 0000000002098592 [16:00:09]line ФД: 1706 [16:00:09]line ФПД: 177083324473203 [16:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160006&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1706&fm=177083324473203&tin=02508201610067®Number=0000000000177495&sum=4200 [16:00:09]line 0 [16:00:09]written 0, free lines is 4095 [16:00:09]OFD Sender: Processing packet 1706 [packets to send 1, broken 0] [16:00:09]ProducePacketName [16:00:09]name=ofd_packets/00001706 [16:00:09]OFD Sender: To server: pG, [16:00:09]CommunicateWithHost lk.salyk.kg:30040 [16:00:09]ConnectInit lk.salyk.kg [16:00:09]Connected sock=10 [16:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 33 01 00 00 E4 37 2B 01 24 2A 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 86 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AA 06 00 00 35 04 06 00 A1 0E 6C A6 9F 73 71 51 59 BE 69 CA 7C C6 [16:00:10]Write to MH i2c: 01 00 00 16 02 18 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 14 0D 40 [16:00:10]RasterBufferAndPrint [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]written 0, free lines is 3398 [16:00:10]MH_Cut [16:00:10]Write to MH i2c: D1 01 00 1D 02 01 F1 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 01 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 01 00 1D 02 00 F0 [16:00:10]Write to MH i2c: 01 00 00 1E 02 20 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 9E B1 47 00 CA 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AA 06 00 00 F4 03 04 00 C2 AC 8F 66 B6 04 01 00 00 93 75 73 B3 A7 3B 23 F5 [16:00:10]CommunicateWithHost err = 0 [16:00:10]CheckOFDResponse [16:00:10]1017 (14) - 77093643461234 [16:00:10]1041 (16) - 0000000002098592 [16:00:10]1040 (4) - 1706 [16:00:10]1012 (4) - 11.07.2024 09:58 [16:00:10]1206 (1) - 0 [16:00:10]OFD Sender: Remove packet 1706 [16:00:10]ProducePacketName [16:00:10]name=ofd_packets/00001706 [16:00:10]NVStorageDeleteData [16:00:10]*** Cut start [16:00:10]*** Partial cut [16:00:10]*** CUTSNS_PIN = 1 [16:00:10]*** CUTSNS_PIN = 0 [16:00:11]OFD Sender: No OFD packet to send [16:00:11]*** Brake cut motor [16:00:11]Read from MH i2c: 01 [16:00:11]MH_I2C_Read... [16:00:11]*** Stop cut motor [16:00:11]*** Cut end [16:00:11]Read from MH i2c: 01 07 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [16:00:11]process_action close_receipt done [16:00:11]requested_data is exist [16:00:11]produce_requested_data [16:00:11]requested_item fm.sn is exist - process it [16:00:11]wFMCommunicate request_size=4 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 11 00 00 [16:00:11]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 17 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F1 [16:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:11]wFMCommunicate OK [16:00:11]requested_item fd.num is exist - process it [16:00:11]SAM_PROTO_GetFieldsCounters [16:00:11]wFMCommunicate request_size=4 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 13 00 00 [16:00:11]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 62 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 62 00 20 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [16:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:11]wFMCommunicate OK [16:00:11]SAM_PROTO_GetFieldsCounters done [16:00:11]requested_item shift.num is exist - process it [16:00:11]requested_item shift.opened is exist - process it [16:00:11]req_shift_opened [16:00:11]FM_GetShiftState [16:00:11]SAM_PROTO_GetShiftState [16:00:11]wFMCommunicate request_size=4 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 13 01 00 [16:00:11]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 0E 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 FE [16:00:12]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:12]wFMCommunicate OK [16:00:12]SAM_PROTO_GetShiftState done [16:00:12]FM_GetShiftState done [16:00:12]req_shift_opened done [16:00:12]requested_item shift.open_date is exist - process it [16:00:12]req_shift_open_date [16:00:12]req_shift_open_date done [16:00:12]produce_requested_data done [16:00:12]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1706,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:12]process_action_free close_receipt [16:00:12]json_value_free [16:00:12]json_value_free done [16:00:12]process_json_proto returns [16:00:12]Send response to host [16:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1706,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:12]free response buf [16:00:12]execute_script done [16:00:12]execute_script returns [16:00:12]free content buf [16:00:12]Sock 7.Close socket [16:00:12]Sock 7.Thread stoped [16:00:13]accept exits with 8 [16:00:13]New connection [16:00:13]New thread 3067227492 created [16:00:13]Thread 3067370852 joined [16:00:13]Waiting for new connection... [16:00:13] Sock 8.Parse request [16:00:13]Sock 8.Check first char [16:00:13]Sock 8.First char is OK [16:00:13]request: POST /json_proto HTTP/1.0 [16:00:13]Method: POST [16:00:13]URL: /json_proto [16:00:13]Method is POST - this is cgi request [16:00:13]url: /json_proto [16:00:13]query_string will be loaded in cgi processing [16:00:13]execute_cgi json_proto POST (null) [16:00:13]execute_cgi path=json_proto method=POST [16:00:13]POST find Content-Length [16:00:13]Host: 172.17.35.133:8080 [16:00:13]Content-Length: 675 [16:00:13]Content-Type: application/json [16:00:13] [16:00:13]POST finish read [16:00:13]Found Content-Length = 675 [16:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256180", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:13]execute_script... [16:00:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256180", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:13]POST & json_proto [16:00:13]process_json_proto [16:00:13]json parsed OK: [16:00:13]protocol is kg_v1.0 [16:00:13]action value=close_receipt [16:00:13]process_action close_receipt [16:00:13]cmd_close_receipt [16:00:13]MH_GetDate [16:00:13]Write to MH i2c: F0 00 00 22 02 13 [16:00:13]Write i2c OK [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: F0 [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: F0 09 00 [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: F0 09 00 22 02 00 8D 01 90 66 1B 28 2A 66 73 [16:00:13]GetLastDocTimeStamp 1720713606 [16:00:13]current date 1720713613 [16:00:13]FM_GetShiftState [16:00:13]SAM_PROTO_GetShiftState [16:00:13]wFMCommunicate request_size=4 [16:00:13]MH_SAM_APDU [16:00:13]CAPDU: 80 13 01 00 [16:00:13]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [16:00:13]Write i2c OK [16:00:13]MH_I2C_Read... [16:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:13]Read from MH i2c: E2 [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: E2 0E 00 [16:00:13]MH_I2C_Read... [16:00:13]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 00 [16:00:13]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:13]wFMCommunicate OK [16:00:13]SAM_PROTO_GetShiftState done [16:00:13]FM_GetShiftState done [16:00:13]opened in 1720656698 [16:00:13]opened+sec_in_day 1720743098 [16:00:13]quantity*price = 10700 [16:00:13]sum+1 = 10701 [16:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 23 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1707 ФПД: 21801677464179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160013&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1707&fm=21801677464179&tin=02508201610067®Number=0000000000177495&sum=10700 0 [16:00:15]StoreToDocumentArchive [16:00:15]shift 22 fd 1707 [16:00:15]save to /storage/0022/doc_00001707 [16:00:15]save last doc name /storage/0022/doc_00001707 to /storage/kkm_last_doc_name [16:00:15]save OK [16:00:15]Clear old archive folders... [16:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:00:15]tlvbuf is 00AFCAF0 [16:00:15]SAM_PROTO_ClearQueue [16:00:15]wFMCommunicate request_size=4 [16:00:15]MH_SAM_APDU [16:00:15]CAPDU: 80 09 00 00 [16:00:15]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:15]Read from MH i2c: E2 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [16:00:15]RAPDU: 90 00 [16:00:15]wFMCommunicate OK [16:00:15]SAM_PROTO_ClearQueue done [16:00:15]KKMCreateOFDPacket [16:00:15]OFDProtocolAddRootSTLVToBuf [16:00:15]FM_MakeSignedData [16:00:15]FM_MakeSignedData [16:00:15]SAM_PROTO_SignData [16:00:15]wFMCommunicate request_size=4 [16:00:15]MH_SAM_APDU [16:00:15]CAPDU: 80 0D 01 02 [16:00:15]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:15]Read from MH i2c: E2 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [16:00:15]RAPDU: 90 00 [16:00:15]wFMCommunicate OK [16:00:15]wFMCommunicate request_size=255 [16:00:15]MH_SAM_APDU [16:00:15]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 [16:00:15]Write to MH i2c: E2 02 01 32 02 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 OFD Sender: No OFD packet to send [16:00:16]F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 00 00 6D [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=46 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 02 02 29 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AB 06 00 00 35 04 06 00 13 D4 19 3D A2 73 [16:00:16]Write to MH i2c: E2 31 00 33 02 80 0D 02 02 29 00 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AB 06 00 00 35 04 06 00 13 D4 19 3D A2 73 00 00 45 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 03 02 [16:00:16]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0B 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0B 00 34 02 00 D8 2A DE 95 EA B5 37 54 90 00 51 [16:00:16]RAPDU: D8 2A DE 95 EA B5 37 54 90 00 [16:00:16]wFMCommunicate OK [16:00:16]SAM_PROTO_SignData done [16:00:16]FM_MakeSignedData done [16:00:16]CreateOFDProtocolMessage [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 11 00 00 [16:00:16]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 17 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 07 [16:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:16]wFMCommunicate OK [16:00:16]CreateOFDProtocolMessage done [16:00:16]OFDSenderStorePacket 1707 [16:00:16]StoreOFDPacket docnum=1707 [16:00:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 33 01 00 00 69 38 2B 01 50 93 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AB 06 00 00 35 04 06 00 13 D4 19 3D A2 73 D8 2A DE 95 EA B5 37 54 [16:00:16]CheckFolder [16:00:16]dirname=/storage/ofd_packets [16:00:16]CheckFolder done [16:00:16]ProducePacketName [16:00:16]name=ofd_packets/00001707 [16:00:16]NVStorageSaveData ofd_packets/00001707 [16:00:16]File name is /storage/ofd_packets/00001707 [16:00:16]Write 337 bytes [16:00:16]NVStorageSaveData done [16:00:16]OFDSenderStorePacket done [16:00:16]KKMCreateOFDPacket done [16:00:16]NVStorageSaveData kkm_last_timestamp [16:00:16]File name is /storage/kkm_last_timestamp [16:00:16]Write 4 bytes [16:00:16]NVStorageSaveData done [16:00:16]ExternCall_PrintAddStr [16:00:16]wPrintStart [16:00:16]Write to MH i2c: 01 00 00 36 02 38 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 07 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [16:00:16]RasterBufferAndPrint [16:00:16]line Счет N : (3)256180 [16:00:16]line ИНН: 02508201610067 [16:00:16]line Контрольно-Кассовый Чек [16:00:16]line ПРОДАЖА [16:00:16]line Товар: 5449000189332 [16:00:16]line Холодный чай Fuse персик 1л [16:00:17]line 1.000 * 107.00 [16:00:17]line = 107.00 [16:00:17]line НДС 12% НСП 1% [16:00:17]line > о реализуемом товаре [16:00:17]line ИТОГО: 107.00 [16:00:17]line НСП 1% : 0.95 [16:00:17]line НДС 12% : 11.36 [16:00:17]line Наличными: 107.00 [16:00:17]line Безнал.: 0.00 [16:00:17]line Место: АЗС № 76 "Партнер Нефть" [16:00:17]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:17]line СНО: Общий режим [16:00:17]line Чек 23 11.07.2024 16:00 [16:00:17]line Смена: 22 ФФД: 1.0 [16:00:17]line ЗНМ: 0300000124 [16:00:17]line РНМ: 0000000000177495 [16:00:17]line Версия ККМ: 001 [16:00:17]line ФМ: 0000000002098592 [16:00:17]line ФД: 1707 [16:00:17]line ФПД: 21801677464179 [16:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160013&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1707&fm=21801677464179&tin=02508201610067®Number=0000000000177495&sum=10700 [16:00:17]OFD Sender: Processing packet 1707 [packets to send 1, broken 0] [16:00:17]ProducePacketName [16:00:17]name=ofd_packets/00001707 [16:00:17]OFD Sender: To server: pG, [16:00:17]CommunicateWithHost lk.salyk.kg:30040 [16:00:17]ConnectInit lk.salyk.kg [16:00:17]line 0 [16:00:17]written 0, free lines is 4095 [16:00:17]Connected sock=10 [16:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 33 01 00 00 69 38 2B 01 50 93 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8D 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AB 06 00 00 35 04 06 00 13 D4 19 3D A2 73 D8 2A DE 95 EA B5 37 54 [16:00:17]Write to MH i2c: 01 00 00 5E 02 60 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 07 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 BB 0D 2F [16:00:17]RasterBufferAndPrint [16:00:17]line [16:00:17]line [16:00:17]line [16:00:17]line [16:00:17]line [16:00:17]written 0, free lines is 3566 [16:00:17]MH_Cut [16:00:17]Write to MH i2c: D1 01 00 65 02 01 39 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 01 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 01 00 65 02 00 38 [16:00:17]Write to MH i2c: 01 00 00 66 02 68 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 D0 2E 47 00 63 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AB 06 00 00 F4 03 04 00 CA AC 8F 66 B6 04 01 00 00 4C EC 70 21 7D FF 0F 47 [16:00:17]CommunicateWithHost err = 0 [16:00:17]CheckOFDResponse [16:00:17]1017 (14) - 77093643461234 [16:00:18]1041 (16) - 0000000002098592 [16:00:18]1040 (4) - 1707 [16:00:18]1012 (4) - 11.07.2024 09:58 [16:00:18]1206 (1) - 0 [16:00:18]OFD Sender: Remove packet 1707 [16:00:18]ProducePacketName [16:00:18]name=ofd_packets/00001707 [16:00:18]NVStorageDeleteData [16:00:18]*** Cut start [16:00:18]*** Partial cut [16:00:18]*** CUTSNS_PIN = 1 [16:00:18]*** CUTSNS_PIN = 0 [16:00:18]*** Brake cut motor [16:00:18]OFD Sender: No OFD packet to send [16:00:18]Read from MH i2c: 01 [16:00:18]MH_I2C_Read... [16:00:18]*** Stop cut motor [16:00:18]*** Cut end [16:00:18]Read from MH i2c: 01 07 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [16:00:18]process_action close_receipt done [16:00:18]requested_data is exist [16:00:18]produce_requested_data [16:00:18]requested_item fm.sn is exist - process it [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 11 00 00 [16:00:18]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 67 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 39 [16:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:18]wFMCommunicate OK [16:00:18]requested_item fd.num is exist - process it [16:00:18]SAM_PROTO_GetFieldsCounters [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 13 00 00 [16:00:18]Write to MH i2c: E2 08 00 68 02 80 13 00 00 00 00 00 00 E6 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 62 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 62 00 68 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AB 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [16:00:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AB 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:19]wFMCommunicate OK [16:00:19]SAM_PROTO_GetFieldsCounters done [16:00:19]requested_item shift.num is exist - process it [16:00:19]requested_item shift.opened is exist - process it [16:00:19]req_shift_opened [16:00:19]FM_GetShiftState [16:00:19]SAM_PROTO_GetShiftState [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 13 01 00 [16:00:19]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 46 [16:00:19]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:19]wFMCommunicate OK [16:00:19]SAM_PROTO_GetShiftState done [16:00:19]FM_GetShiftState done [16:00:19]req_shift_opened done [16:00:19]requested_item shift.open_date is exist - process it [16:00:19]req_shift_open_date [16:00:19]req_shift_open_date done [16:00:19]produce_requested_data done [16:00:19]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1707,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:19]process_action_free close_receipt [16:00:19]json_value_free [16:00:19]json_value_free done [16:00:19]process_json_proto returns [16:00:19]Send response to host [16:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1707,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:19]free response buf [16:00:19]execute_script done [16:00:19]execute_script returns [16:00:19]free content buf [16:00:19]Sock 8.Close socket [16:00:19]Sock 8.Thread stoped [16:00:20]accept exits with 7 [16:00:20]New connection [16:00:20]New thread 3067370852 created [16:00:20]Thread 3067227492 joined [16:00:20]Waiting for new connection... [16:00:20] Sock 7.Parse request [16:00:20]Sock 7.Check first char [16:00:20]Sock 7.First char is OK [16:00:20]request: POST /json_proto HTTP/1.0 [16:00:20]Method: POST [16:00:20]URL: /json_proto [16:00:20]Method is POST - this is cgi request [16:00:20]url: /json_proto [16:00:20]query_string will be loaded in cgi processing [16:00:20]execute_cgi json_proto POST (null) [16:00:20]execute_cgi path=json_proto method=POST [16:00:20]POST find Content-Length [16:00:20]Host: 172.17.35.133:8080 [16:00:20]Content-Length: 929 [16:00:20]Content-Type: application/json [16:00:20] [16:00:20]POST finish read [16:00:20]Found Content-Length = 929 [16:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256181", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:20]execute_script... [16:00:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256181", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:20]POST & json_proto [16:00:20]process_json_proto [16:00:20]json parsed OK: [16:00:20]protocol is kg_v1.0 [16:00:20]action value=close_receipt [16:00:20]process_action close_receipt [16:00:20]cmd_close_receipt [16:00:20]MH_GetDate [16:00:20]Write to MH i2c: F0 00 00 6A 02 5B [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: F0 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: F0 09 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: F0 09 00 6A 02 00 94 01 90 66 1B 28 2A 66 C2 [16:00:20]GetLastDocTimeStamp 1720713613 [16:00:20]current date 1720713620 [16:00:20]FM_GetShiftState [16:00:20]SAM_PROTO_GetShiftState [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 13 01 00 [16:00:20]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0E 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 48 [16:00:20]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_GetShiftState done [16:00:20]FM_GetShiftState done [16:00:20]opened in 1720656698 [16:00:20]opened+sec_in_day 1720743098 [16:00:20]quantity*price = 10700 [16:00:20]sum+1 = 10701 [16:00:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 0.00 Безнал.: 107.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 24 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1708 ФПД: 258986553968906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160020&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1708&fm=258986553968906&tin=02508201610067®Number=0000000000177495&sum=10700 0 [16:00:22]StoreToDocumentArchive [16:00:22]shift 22 fd 1708 [16:00:22]save to /storage/0022/doc_00001708 [16:00:22]save last doc name /storage/0022/doc_00001708 to /storage/kkm_last_doc_name [16:00:22]save OK [16:00:22]Clear old archive folders... [16:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=308 [16:00:22]tlvbuf is 00A70A50 [16:00:22]SAM_PROTO_ClearQueue [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 09 00 00 [16:00:22]Write to MH i2c: E2 08 00 78 02 80 09 00 00 00 00 00 00 EC [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 03 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [16:00:22]RAPDU: 90 00 [16:00:22]wFMCommunicate OK [16:00:22]SAM_PROTO_ClearQueue done [16:00:22]KKMCreateOFDPacket [16:00:22]OFDProtocolAddRootSTLVToBuf [16:00:22]FM_MakeSignedData [16:00:22]FM_MakeSignedData [16:00:22]SAM_PROTO_SignData [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 0D 01 02 [16:00:22]Write to MH i2c: E2 08 00 79 02 80 0D 01 02 00 00 00 00 F4 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 03 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [16:00:22]RAPDU: 90 00 [16:00:22]wFMCommunicate OK [16:00:22]wFMCommunicate request_size=255 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 01 90 66 0E 04 04 00 16 00 00 00 B9 [16:00:23]Write to MH i2c: E2 02 01 7A 02 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 01 90 66 0E 04 04 00 16 00 00 00 B9 00 00 E4 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]OFD Sender: No OFD packet to send [16:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 03 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [16:00:23]RAPDU: 90 00 [16:00:23]wFMCommunicate OK [16:00:23]wFMCommunicate request_size=67 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 06 00 00 35 04 06 00 EB 8C 01 8D 09 0A [16:00:23]Write to MH i2c: E2 46 00 7B 02 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 06 00 00 35 04 06 00 EB 8C 01 8D 09 0A 00 00 24 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 03 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [16:00:23]RAPDU: 90 00 [16:00:23]wFMCommunicate OK [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 0D 03 02 [16:00:23]Write to MH i2c: E2 08 00 7C 02 80 0D 03 02 00 00 00 00 F9 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0B 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0B 00 7C 02 00 0B 18 6F 3B 9E 3B A1 EF 90 00 30 [16:00:23]RAPDU: 0B 18 6F 3B 9E 3B A1 EF 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_SignData done [16:00:23]FM_MakeSignedData done [16:00:23]CreateOFDProtocolMessage [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 11 00 00 [16:00:23]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:24]Read from MH i2c: E2 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 17 00 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4F [16:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:24]wFMCommunicate OK [16:00:24]CreateOFDProtocolMessage done [16:00:24]OFDSenderStorePacket 1708 [16:00:24]StoreOFDPacket docnum=1708 [16:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 48 01 00 00 0D 95 40 01 F2 BA 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 06 00 00 35 04 06 00 EB 8C 01 8D 09 0A 0B 18 6F 3B 9E 3B A1 EF [16:00:24]CheckFolder [16:00:24]dirname=/storage/ofd_packets [16:00:24]CheckFolder done [16:00:24]ProducePacketName [16:00:24]name=ofd_packets/00001708 [16:00:24]NVStorageSaveData ofd_packets/00001708 [16:00:24]File name is /storage/ofd_packets/00001708 [16:00:24]Write 358 bytes [16:00:24]NVStorageSaveData done [16:00:24]OFDSenderStorePacket done [16:00:24]KKMCreateOFDPacket done [16:00:24]NVStorageSaveData kkm_last_timestamp [16:00:24]File name is /storage/kkm_last_timestamp [16:00:24]Write 4 bytes [16:00:24]NVStorageSaveData done [16:00:24]ExternCall_PrintAddStr [16:00:24]wPrintStart [16:00:24]Write to MH i2c: 01 00 00 7E 02 80 [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: 01 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: 01 07 00 [16:00:24]MH_I2C_Read... [16:00:24]OFD Sender: Processing packet 1708 [packets to send 1, broken 0] [16:00:24]ProducePacketName [16:00:24]name=ofd_packets/00001708 [16:00:24]OFD Sender: To server: pG, [16:00:24]CommunicateWithHost lk.salyk.kg:30040 [16:00:24]ConnectInit lk.salyk.kg [16:00:24]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 FF 0F 95 [16:00:24]RasterBufferAndPrint [16:00:24]line Счет N : (3)256181 [16:00:24]line ИНН: 02508201610067 [16:00:24]line Контрольно-Кассовый Чек [16:00:24]line ПРОДАЖА [16:00:24]line Товар: 5449000027474 [16:00:24]line Напиток FuzeTea зел чай манго,ромашка 1л [16:00:24]line 1.000 * 107.00 [16:00:24]line = 107.00 [16:00:24]line НДС 12% НСП 1% [16:00:24]line > о реализуемом товаре [16:00:24]line ИТОГО: 107.00 [16:00:24]line НСП 1% : 0.95 [16:00:24]line НДС 12% : 11.36 [16:00:24]line Наличными: 0.00 [16:00:24]line Безнал.: 107.00 [16:00:24]line Место: АЗС № 76 "Партнер Нефть" [16:00:24]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:24]line СНО: Общий режим [16:00:24]line Чек 24 11.07.2024 16:00 [16:00:24]line Смена: 22 ФФД: 1.0 [16:00:24]line ЗНМ: 0300000124 [16:00:24]line РНМ: 0000000000177495 [16:00:24]line Версия ККМ: 001 [16:00:24]line Платежная система: АКБ Кыргызстан [16:00:24]line ФМ: 0000000002098592 [16:00:24]line ФД: 1708 [16:00:24]line ФПД: 258986553968906 [16:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160020&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1708&fm=258986553968906&tin=02508201610067®Number=0000000000177495&sum=10700 [16:00:24]line 0 [16:00:24]written 0, free lines is 4095 [16:00:24]Connected sock=10 [16:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 48 01 00 00 0D 95 40 01 F2 BA 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 06 00 00 35 04 06 00 EB 8C 01 8D 09 0A 0B 18 6F 3B 9E 3B A1 EF [16:00:24]Write to MH i2c: 01 00 00 A9 02 AB [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: 01 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: 01 07 00 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 01 0D C0 [16:00:24]RasterBufferAndPrint [16:00:24]line [16:00:24]line [16:00:24]line [16:00:24]line [16:00:24]line [16:00:24]written 0, free lines is 3391 [16:00:24]MH_Cut [16:00:24]Write to MH i2c: D1 01 00 B0 02 01 84 [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: D1 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: D1 01 00 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: D1 01 00 B0 02 00 83 [16:00:24]Write to MH i2c: 01 00 00 B1 02 B3 [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 E9 CA 47 00 92 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 06 00 00 F4 03 04 00 D1 AC 8F 66 B6 04 01 00 00 DE CA 34 34 16 13 EF 7C [16:00:24]CommunicateWithHost err = 0 [16:00:24]CheckOFDResponse [16:00:24]1017 (14) - 77093643461234 [16:00:24]1041 (16) - 0000000002098592 [16:00:24]1040 (4) - 1708 [16:00:24]1012 (4) - 11.07.2024 09:58 [16:00:24]1206 (1) - 0 [16:00:24]OFD Sender: Remove packet 1708 [16:00:24]ProducePacketName [16:00:24]name=ofd_packets/00001708 [16:00:24]NVStorageDeleteData [16:00:25]*** Cut start [16:00:25]*** Partial cut [16:00:25]*** CUTSNS_PIN = 1 [16:00:25]*** CUTSNS_PIN = 0 [16:00:25]OFD Sender: No OFD packet to send [16:00:25]*** Brake cut motor [16:00:25]Read from MH i2c: 01 [16:00:25]MH_I2C_Read... [16:00:26]*** Stop cut motor [16:00:26]*** Cut end [16:00:26]Read from MH i2c: 01 07 00 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [16:00:26]process_action close_receipt done [16:00:26]requested_data is exist [16:00:26]produce_requested_data [16:00:26]requested_item fm.sn is exist - process it [16:00:26]wFMCommunicate request_size=4 [16:00:26]MH_SAM_APDU [16:00:26]CAPDU: 80 11 00 00 [16:00:26]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [16:00:26]Write i2c OK [16:00:26]MH_I2C_Read... [16:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:26]Read from MH i2c: E2 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 17 00 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 84 [16:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:26]wFMCommunicate OK [16:00:26]requested_item fd.num is exist - process it [16:00:26]SAM_PROTO_GetFieldsCounters [16:00:26]wFMCommunicate request_size=4 [16:00:26]MH_SAM_APDU [16:00:26]CAPDU: 80 13 00 00 [16:00:26]Write to MH i2c: E2 08 00 B3 02 80 13 00 00 00 00 00 00 31 [16:00:26]Write i2c OK [16:00:26]MH_I2C_Read... [16:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:26]Read from MH i2c: E2 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 62 00 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 62 00 B3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AC 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [16:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AC 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:26]wFMCommunicate OK [16:00:26]SAM_PROTO_GetFieldsCounters done [16:00:26]requested_item shift.num is exist - process it [16:00:26]requested_item shift.opened is exist - process it [16:00:26]req_shift_opened [16:00:26]FM_GetShiftState [16:00:26]SAM_PROTO_GetShiftState [16:00:26]wFMCommunicate request_size=4 [16:00:26]MH_SAM_APDU [16:00:26]CAPDU: 80 13 01 00 [16:00:26]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [16:00:26]Write i2c OK [16:00:26]MH_I2C_Read... [16:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:26]Read from MH i2c: E2 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 0E 00 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 91 [16:00:26]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:26]wFMCommunicate OK [16:00:26]SAM_PROTO_GetShiftState done [16:00:26]FM_GetShiftState done [16:00:26]req_shift_opened done [16:00:26]requested_item shift.open_date is exist - process it [16:00:26]req_shift_open_date [16:00:26]req_shift_open_date done [16:00:26]produce_requested_data done [16:00:26]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1708,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:26]process_action_free close_receipt [16:00:26]json_value_free [16:00:26]json_value_free done [16:00:26]process_json_proto returns [16:00:26]Send response to host [16:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1708,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:26]free response buf [16:00:26]execute_script done [16:00:26]execute_script returns [16:00:26]free content buf [16:00:26]Sock 7.Close socket [16:00:26]Sock 7.Thread stoped [16:00:28]accept exits with 8 [16:00:28]New connection [16:00:28]New thread 3067227492 created [16:00:28]Thread 3067370852 joined [16:00:28]Waiting for new connection... [16:00:28] Sock 8.Parse request [16:00:28]Sock 8.Check first char [16:00:28]Sock 8.First char is OK [16:00:28]request: POST /json_proto HTTP/1.0 [16:00:28]Method: POST [16:00:28]URL: /json_proto [16:00:28]Method is POST - this is cgi request [16:00:28]url: /json_proto [16:00:28]query_string will be loaded in cgi processing [16:00:28]execute_cgi json_proto POST (null) [16:00:28]execute_cgi path=json_proto method=POST [16:00:28]POST find Content-Length [16:00:28]Host: 172.17.35.133:8080 [16:00:28]Content-Length: 621 [16:00:28]Content-Type: application/json [16:00:28] [16:00:28]POST finish read [16:00:28]Found Content-Length = 621 [16:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256183", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:28]execute_script... [16:00:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256183", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:28]POST & json_proto [16:00:28]process_json_proto [16:00:28]json parsed OK: [16:00:28]protocol is kg_v1.0 [16:00:28]action value=close_receipt [16:00:28]process_action close_receipt [16:00:28]cmd_close_receipt [16:00:28]MH_GetDate [16:00:28]Write to MH i2c: F0 00 00 B5 02 A6 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: F0 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: F0 09 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: F0 09 00 B5 02 00 9C 01 90 66 1B 28 2A 66 15 [16:00:28]GetLastDocTimeStamp 1720713620 [16:00:28]current date 1720713628 [16:00:28]FM_GetShiftState [16:00:28]SAM_PROTO_GetShiftState [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 13 01 00 [16:00:28]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 93 [16:00:28]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_GetShiftState done [16:00:28]FM_GetShiftState done [16:00:28]opened in 1720656698 [16:00:28]opened+sec_in_day 1720743098 [16:00:28]quantity*price = 14000 [16:00:28]sum+1 = 14001 [16:00:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 25 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1709 ФПД: 191013961456804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160028&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1709&fm=191013961456804&tin=02508201610067®Number=0000000000177495&sum=14000 0 [16:00:30]StoreToDocumentArchive [16:00:30]shift 22 fd 1709 [16:00:30]save to /storage/0022/doc_00001709 [16:00:30]save last doc name /storage/0022/doc_00001709 to /storage/kkm_last_doc_name [16:00:30]save OK [16:00:30]Clear old archive folders... [16:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:00:30]tlvbuf is 00B102A0 [16:00:30]SAM_PROTO_ClearQueue [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 09 00 00 [16:00:30]Write to MH i2c: E2 08 00 C3 02 80 09 00 00 00 00 00 00 37 [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 03 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [16:00:30]RAPDU: 90 00 [16:00:30]wFMCommunicate OK [16:00:30]SAM_PROTO_ClearQueue done [16:00:30]KKMCreateOFDPacket [16:00:30]OFDProtocolAddRootSTLVToBuf [16:00:30]FM_MakeSignedData [16:00:30]FM_MakeSignedData [16:00:30]SAM_PROTO_SignData [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 0D 01 02 [16:00:30]Write to MH i2c: E2 08 00 C4 02 80 0D 01 02 00 00 00 00 3F [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 03 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [16:00:30]RAPDU: 90 00 [16:00:30]wFMCommunicate OK [16:00:30]wFMCommunicate request_size=255 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9C 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 [16:00:31]Write to MH i2c: E2 02 01 C5 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9C 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 EA [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]wFMCommunicate request_size=32 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 38 35 39 32 10 04 04 00 AD 06 00 00 35 04 06 00 AD B9 E7 51 DC A4 [16:00:31]Write to MH i2c: E2 23 00 C6 02 80 0D 02 02 1B 00 30 30 32 30 39 38 35 39 32 10 04 04 00 AD 06 00 00 35 04 06 00 AD B9 E7 51 DC A4 00 00 73 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 0D 03 02 [16:00:31]Write to MH i2c: E2 08 00 C7 02 80 0D 03 02 00 00 00 00 44 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 0B 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 0B 00 C7 02 00 18 4C 4F 12 14 48 16 13 90 00 8F [16:00:31]RAPDU: 18 4C 4F 12 14 48 16 13 90 00 [16:00:32]wFMCommunicate OK [16:00:32]SAM_PROTO_SignData done [16:00:32]FM_MakeSignedData done [16:00:32]CreateOFDProtocolMessage [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 11 00 00 [16:00:32]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 17 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9A [16:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:32]wFMCommunicate OK [16:00:32]CreateOFDProtocolMessage done [16:00:32]OFDSenderStorePacket 1709 [16:00:32]StoreOFDPacket docnum=1709 [16:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 25 01 00 00 0B 7F 1D 01 40 9C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9C 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AD 06 00 00 35 04 06 00 AD B9 E7 51 DC A4 18 4C 4F 12 14 48 16 13 [16:00:32]CheckFolder [16:00:32]dirname=/storage/ofd_packets [16:00:32]CheckFolder done [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00001709 [16:00:32]NVStorageSaveData ofd_packets/00001709 [16:00:32]File name is /storage/ofd_packets/00001709 [16:00:32]Write 323 bytes [16:00:32]NVStorageSaveData done [16:00:32]OFDSenderStorePacket done [16:00:32]KKMCreateOFDPacket done [16:00:32]NVStorageSaveData kkm_last_timestamp [16:00:32]File name is /storage/kkm_last_timestamp [16:00:32]Write 4 bytes [16:00:32]NVStorageSaveData done [16:00:32]ExternCall_PrintAddStr [16:00:32]wPrintStart [16:00:32]Write to MH i2c: 01 00 00 C9 02 CB [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 [16:00:32]MH_I2C_Read... [16:00:32]OFD Sender: Processing packet 1709 [packets to send 1, broken 0] [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00001709 [16:00:32]OFD Sender: To server: pG, [16:00:32]CommunicateWithHost lk.salyk.kg:30040 [16:00:32]ConnectInit lk.salyk.kg [16:00:32]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [16:00:32]RasterBufferAndPrint [16:00:32]line Счет N : (3)256183 [16:00:32]line ИНН: 02508201610067 [16:00:32]line Контрольно-Кассовый Чек [16:00:32]line ПРОДАЖА [16:00:32]line Товар: 48747059 [16:00:32]line Сигареты Winston Legend Blue [16:00:32]line 1.000 * 140.00 [16:00:32]line = 140.00 [16:00:32]line НДС 12% НСП 1% [16:00:32]line > о реализуемом товаре [16:00:32]line ИТОГО: 140.00 [16:00:32]line НСП 1% : 1.24 [16:00:32]line НДС 12% : 14.87 [16:00:32]line Наличными: 140.00 [16:00:32]line Безнал.: 0.00 [16:00:32]line Место: АЗС № 76 "Партнер Нефть" [16:00:32]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:32]line СНО: Общий режим [16:00:32]line Чек 25 11.07.2024 16:00 [16:00:32]line Смена: 22 ФФД: 1.0 [16:00:32]line ЗНМ: 0300000124 [16:00:32]line РНМ: 0000000000177495 [16:00:32]line Версия ККМ: 001 [16:00:32]line ФМ: 0000000002098592 [16:00:32]line ФД: 1709 [16:00:32]line ФПД: 191013961456804 [16:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160028&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1709&fm=191013961456804&tin=02508201610067®Number=0000000000177495&sum=14000 [16:00:32]line 0 [16:00:32]written 0, free lines is 4095 [16:00:32]Connected sock=11 [16:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 25 01 00 00 0B 7F 1D 01 40 9C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9C 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AD 06 00 00 35 04 06 00 AD B9 E7 51 DC A4 18 4C 4F 12 14 48 16 13 [16:00:32]Write to MH i2c: 01 00 00 F2 02 F4 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 06 0D 0E [16:00:32]RasterBufferAndPrint [16:00:32]line [16:00:32]line [16:00:32]line [16:00:32]line [16:00:32]line [16:00:32]written 0, free lines is 3399 [16:00:32]MH_Cut [16:00:32]Write to MH i2c: D1 01 00 F9 02 01 CD [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: D1 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: D1 01 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: D1 01 00 F9 02 00 CC [16:00:32]Write to MH i2c: 01 00 00 FA 02 FC [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 03 EA 47 00 B4 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AD 06 00 00 F4 03 04 00 D9 AC 8F 66 B6 04 01 00 00 4F 54 3C 48 B7 BF 0F F8 [16:00:33]CommunicateWithHost err = 0 [16:00:33]CheckOFDResponse [16:00:33]1017 (14) - 77093643461234 [16:00:33]1041 (16) - 0000000002098592 [16:00:33]1040 (4) - 1709 [16:00:33]1012 (4) - 11.07.2024 09:58 [16:00:33]1206 (1) - 0 [16:00:33]OFD Sender: Remove packet 1709 [16:00:33]ProducePacketName [16:00:33]name=ofd_packets/00001709 [16:00:33]NVStorageDeleteData [16:00:33]*** Cut start [16:00:33]*** Partial cut [16:00:33]*** CUTSNS_PIN = 1 [16:00:33]*** CUTSNS_PIN = 0 [16:00:33]OFD Sender: No OFD packet to send [16:00:33]*** Brake cut motor [16:00:34]Read from MH i2c: 01 [16:00:34]MH_I2C_Read... [16:00:34]*** Stop cut motor [16:00:34]*** Cut end [16:00:34]Read from MH i2c: 01 07 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [16:00:34]process_action close_receipt done [16:00:34]requested_data is exist [16:00:34]produce_requested_data [16:00:34]requested_item fm.sn is exist - process it [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 11 00 00 [16:00:34]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CD [16:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:34]wFMCommunicate OK [16:00:34]requested_item fd.num is exist - process it [16:00:34]SAM_PROTO_GetFieldsCounters [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 00 00 [16:00:34]Write to MH i2c: E2 08 00 FC 02 80 13 00 00 00 00 00 00 7A [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 62 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 62 00 FC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AD 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [16:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AD 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetFieldsCounters done [16:00:34]requested_item shift.num is exist - process it [16:00:34]requested_item shift.opened is exist - process it [16:00:34]req_shift_opened [16:00:34]FM_GetShiftState [16:00:34]SAM_PROTO_GetShiftState [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 01 00 [16:00:34]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 DA [16:00:34]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetShiftState done [16:00:34]FM_GetShiftState done [16:00:34]req_shift_opened done [16:00:34]requested_item shift.open_date is exist - process it [16:00:34]req_shift_open_date [16:00:34]req_shift_open_date done [16:00:34]produce_requested_data done [16:00:34]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1709,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:34]process_action_free close_receipt [16:00:34]json_value_free [16:00:34]json_value_free done [16:00:34]process_json_proto returns [16:00:34]Send response to host [16:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1709,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:34]free response buf [16:00:34]execute_script done [16:00:34]execute_script returns [16:00:34]free content buf [16:00:34]Sock 8.Close socket [16:00:34]Sock 8.Thread stoped [16:00:36]accept exits with 7 [16:00:36]New connection [16:00:36]New thread 3067370852 created [16:00:36]Thread 3067227492 joined [16:00:36]Waiting for new connection... [16:00:36] Sock 7.Parse request [16:00:36]Sock 7.Check first char [16:00:36]Sock 7.First char is OK [16:00:36]request: POST /json_proto HTTP/1.0 [16:00:36]Method: POST [16:00:36]URL: /json_proto [16:00:36]Method is POST - this is cgi request [16:00:36]url: /json_proto [16:00:36]query_string will be loaded in cgi processing [16:00:36]execute_cgi json_proto POST (null) [16:00:36]execute_cgi path=json_proto method=POST [16:00:36]POST find Content-Length [16:00:36]Host: 172.17.35.133:8080 [16:00:36]Content-Length: 965 [16:00:36]Content-Type: application/json [16:00:36] [16:00:36]POST finish read [16:00:36]Found Content-Length = 965 [16:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256184", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42182115", "name": "\u0416\u0435\u0432 Five \u0421\u0432\u0435\u0436\u0430\u044F \u041C\u044F\u0442\u0430", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:36]execute_script... [16:00:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256184", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42182115", "name": "\u0416\u0435\u0432 Five \u0421\u0432\u0435\u0436\u0430\u044F \u041C\u044F\u0442\u0430", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:36]POST & json_proto [16:00:36]process_json_proto [16:00:36]json parsed OK: [16:00:36]protocol is kg_v1.0 [16:00:36]action value=close_receipt [16:00:36]process_action close_receipt [16:00:36]cmd_close_receipt [16:00:36]MH_GetDate [16:00:36]Write to MH i2c: F0 00 00 FE 02 EF [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: F0 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: F0 09 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: F0 09 00 FE 02 00 A4 01 90 66 1B 28 2A 66 66 [16:00:36]GetLastDocTimeStamp 1720713628 [16:00:36]current date 1720713636 [16:00:36]FM_GetShiftState [16:00:36]SAM_PROTO_GetShiftState [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 13 01 00 [16:00:36]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0E 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 DC [16:00:36]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_GetShiftState done [16:00:36]FM_GetShiftState done [16:00:36]opened in 1720656698 [16:00:36]opened+sec_in_day 1720743098 [16:00:36]quantity*price = 11000 [16:00:36]sum+1 = 11001 [16:00:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42182115 Жев Five Свежая Мята 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 26 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1710 ФПД: 278306697845385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160037&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1710&fm=278306697845385&tin=02508201610067®Number=0000000000177495&sum=23000 0 [16:00:38]StoreToDocumentArchive [16:00:38]shift 22 fd 1710 [16:00:38]save to /storage/0022/doc_00001710 [16:00:38]save last doc name /storage/0022/doc_00001710 to /storage/kkm_last_doc_name [16:00:38]save OK [16:00:38]Clear old archive folders... [16:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=403 [16:00:38]tlvbuf is 00A72690 [16:00:38]SAM_PROTO_ClearQueue [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 09 00 00 [16:00:38]Write to MH i2c: E2 08 00 0C 03 80 09 00 00 00 00 00 00 81 [16:00:38]OFD Sender: No OFD packet to send [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [16:00:38]RAPDU: 90 00 [16:00:38]wFMCommunicate OK [16:00:38]SAM_PROTO_ClearQueue done [16:00:38]KKMCreateOFDPacket [16:00:38]OFDProtocolAddRootSTLVToBuf [16:00:38]FM_MakeSignedData [16:00:38]FM_MakeSignedData [16:00:38]SAM_PROTO_SignData [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 0D 01 02 [16:00:38]Write to MH i2c: E2 08 00 0D 03 80 0D 01 02 00 00 00 00 89 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [16:00:38]RAPDU: 90 00 [16:00:38]wFMCommunicate OK [16:00:38]wFMCommunicate request_size=255 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 38 32 31 31 35 06 04 21 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 B2 D0 B5 D0 B6 D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 [16:00:39]Write to MH i2c: E2 02 01 0E 03 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 38 32 31 31 35 06 04 21 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 B2 D0 B5 D0 B6 D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 3B [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:39]Read from MH i2c: E2 03 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [16:00:39]RAPDU: 90 00 [16:00:39]wFMCommunicate OK [16:00:39]wFMCommunicate request_size=162 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AE 06 00 00 35 04 06 00 FD 1E 53 DD 1A 89 [16:00:40]Write to MH i2c: E2 A5 00 0F 03 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AE 06 00 00 35 04 06 00 FD 1E 53 DD 1A 89 00 00 0B [16:00:40]Write i2c OK [16:00:40]MH_I2C_Read... [16:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:40]Read from MH i2c: E2 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: E2 03 00 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [16:00:40]RAPDU: 90 00 [16:00:40]wFMCommunicate OK [16:00:40]wFMCommunicate request_size=4 [16:00:40]MH_SAM_APDU [16:00:40]CAPDU: 80 0D 03 02 [16:00:40]Write to MH i2c: E2 08 00 10 03 80 0D 03 02 00 00 00 00 8E [16:00:40]Write i2c OK [16:00:40]MH_I2C_Read... [16:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:40]Read from MH i2c: E2 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: E2 0B 00 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: E2 0B 00 10 03 00 32 BE 73 92 9D F7 84 D4 90 00 70 [16:00:40]RAPDU: 32 BE 73 92 9D F7 84 D4 90 00 [16:00:40]wFMCommunicate OK [16:00:40]SAM_PROTO_SignData done [16:00:40]FM_MakeSignedData done [16:00:40]CreateOFDProtocolMessage [16:00:40]wFMCommunicate request_size=4 [16:00:40]MH_SAM_APDU [16:00:40]CAPDU: 80 11 00 00 [16:00:40]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [16:00:40]Write i2c OK [16:00:40]MH_I2C_Read... [16:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:40]Read from MH i2c: E2 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: E2 17 00 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E4 [16:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:40]wFMCommunicate OK [16:00:40]CreateOFDProtocolMessage done [16:00:40]OFDSenderStorePacket 1710 [16:00:40]StoreOFDPacket docnum=1710 [16:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A7 01 00 00 E9 4F 9F 01 EF 20 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 38 32 31 31 35 06 04 21 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 B2 D0 B5 D0 B6 D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AE 06 00 00 35 04 06 00 FD 1E 53 DD 1A 89 32 BE 73 92 9D F7 84 D4 [16:00:40]CheckFolder [16:00:40]dirname=/storage/ofd_packets [16:00:40]CheckFolder done [16:00:40]ProducePacketName [16:00:40]name=ofd_packets/00001710 [16:00:40]NVStorageSaveData ofd_packets/00001710 [16:00:40]File name is /storage/ofd_packets/00001710 [16:00:40]Write 453 bytes [16:00:40]NVStorageSaveData done [16:00:40]OFDSenderStorePacket done [16:00:40]KKMCreateOFDPacket done [16:00:40]NVStorageSaveData kkm_last_timestamp [16:00:40]File name is /storage/kkm_last_timestamp [16:00:40]Write 4 bytes [16:00:40]NVStorageSaveData done [16:00:40]ExternCall_PrintAddStr [16:00:40]wPrintStart [16:00:40]Write to MH i2c: 01 00 00 12 03 15 [16:00:40]Write i2c OK [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: 01 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: 01 07 00 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 FF 0F 2A [16:00:40]RasterBufferAndPrint [16:00:40]line Счет N : (3)256184 [16:00:40]line ИНН: 02508201610067 [16:00:40]line Контрольно-Кассовый Чек [16:00:40]line ПРОДАЖА [16:00:40]line Товар: 4870202521216 [16:00:40]line Напиток MAXI чай 1,2 зел.лимон (новый) [16:00:40]line 1.000 * 110.00 [16:00:40]line = 110.00 [16:00:40]line НДС 12% НСП 1% [16:00:40]line > о реализуемом товаре [16:00:40]line Товар: 42182115 [16:00:40]line Жев Five Свежая Мята [16:00:40]line 1.000 * 120.00 [16:00:40]line = 120.00 [16:00:40]line НДС 12% НСП 1% [16:00:40]line > о реализуемом товаре [16:00:40]line ИТОГО: 230.00 [16:00:40]line НСП 1% : 2.03 [16:00:40]line НДС 12% : 24.42 [16:00:40]line Наличными: 230.00 [16:00:40]line Безнал.: 0.00 [16:00:40]line Место: АЗС № 76 "Партнер Нефть" [16:00:40]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:40]line СНО: Общий режим [16:00:40]line Чек 26 11.07.2024 16:00 [16:00:40]line Смена: 22 ФФД: 1.0 [16:00:40]line ЗНМ: 0300000124 [16:00:40]OFD Sender: Processing packet 1710 [packets to send 1, broken 0] [16:00:40]line РНМ: 0000000000177495 [16:00:40]ProducePacketName [16:00:40]line Версия ККМ: 001 [16:00:40]name=ofd_packets/00001710 [16:00:40]line ФМ: 0000000002098592 [16:00:40]OFD Sender: To server: pG, [16:00:40]line ФД: 1710 [16:00:40]CommunicateWithHost lk.salyk.kg:30040 [16:00:40]line ФПД: 278306697845385 [16:00:40]ConnectInit lk.salyk.kg [16:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160037&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1710&fm=278306697845385&tin=02508201610067®Number=0000000000177495&sum=23000 [16:00:40]line 0 [16:00:40]written 0, free lines is 4095 [16:00:40]Connected sock=10 [16:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A7 01 00 00 E9 4F 9F 01 EF 20 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 38 32 31 31 35 06 04 21 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 B2 D0 B5 D0 B6 D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 Write to MH i2c: 37 01 37 00 34 00 39 41 35 03 11 44 04 [16:00:41]10 00 30 30 Write i2c OK [16:00:41]30 MH_I2C_Read... [16:00:41]30 30 30 30 30 Read from MH i2c: 30 01 32 [16:00:41]30 39 38 35 MH_I2C_Read... [16:00:41]39 32 10 04 04 00 AE Read from MH i2c: 06 01 00 07 00 00 35 [16:00:41]04 MH_I2C_Read... [16:00:41]06 Read from MH i2c: 00 01 FD 07 1E 00 53 41 DD 03 1A 00 89 00 32 00 BE 00 73 00 92 9D F7 84 D4 [16:00:41]F7 0D 4F [16:00:41]RasterBufferAndPrint [16:00:41]line [16:00:41]line [16:00:41]line [16:00:41]line [16:00:41]line [16:00:41]written 0, free lines is 3781 [16:00:41]MH_Cut [16:00:41]Write to MH i2c: D1 01 00 48 03 01 1D [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: D1 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: D1 01 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: D1 01 00 48 03 00 1C [16:00:41]Write to MH i2c: 01 00 00 49 03 4C [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 42 7C 47 00 0C 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 *** Cut start [16:00:42]AE *** Partial cut [16:00:42]06 00 00 F4 *** CUTSNS_PIN = 1 [16:00:42]03 04 00 E2 AC 8F 66 B6 04 *** CUTSNS_PIN = 0 [16:00:42]01 00 00 D0 27 4E 33 BF F5 D4 27 [16:00:42]CommunicateWithHost err = 0 [16:00:42]CheckOFDResponse [16:00:42]1017 (14) - 77093643461234 [16:00:42]1041 (16) - 0000000002098592 [16:00:42]1040 (4) - 1710 [16:00:42]1012 (4) - 11.07.2024 09:58 [16:00:42]1206 (1) - 0 [16:00:42]OFD Sender: Remove packet 1710 [16:00:42]ProducePacketName [16:00:42]name=ofd_packets/00001710 [16:00:42]NVStorageDeleteData [16:00:42]*** Brake cut motor [16:00:42]Read from MH i2c: *** Stop cut motor [16:00:42]01 *** Cut end [16:00:42] [16:00:42]MH_I2C_Read... [16:00:42]OFD Sender: No OFD packet to send [16:00:42]Read from MH i2c: 01 07 00 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [16:00:42]process_action close_receipt done [16:00:42]requested_data is exist [16:00:42]produce_requested_data [16:00:42]requested_item fm.sn is exist - process it [16:00:42]wFMCommunicate request_size=4 [16:00:42]MH_SAM_APDU [16:00:42]CAPDU: 80 11 00 00 [16:00:42]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:42]Read from MH i2c: E2 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: E2 17 00 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1D [16:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:42]wFMCommunicate OK [16:00:42]requested_item fd.num is exist - process it [16:00:42]SAM_PROTO_GetFieldsCounters [16:00:42]wFMCommunicate request_size=4 [16:00:42]MH_SAM_APDU [16:00:42]CAPDU: 80 13 00 00 [16:00:42]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:43]Read from MH i2c: E2 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 62 00 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AE 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [16:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AE 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:43]wFMCommunicate OK [16:00:43]SAM_PROTO_GetFieldsCounters done [16:00:43]requested_item shift.num is exist - process it [16:00:43]requested_item shift.opened is exist - process it [16:00:43]req_shift_opened [16:00:43]FM_GetShiftState [16:00:43]SAM_PROTO_GetShiftState [16:00:43]wFMCommunicate request_size=4 [16:00:43]MH_SAM_APDU [16:00:43]CAPDU: 80 13 01 00 [16:00:43]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [16:00:43]Write i2c OK [16:00:43]MH_I2C_Read... [16:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:43]Read from MH i2c: E2 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 0E 00 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 2A [16:00:43]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:43]wFMCommunicate OK [16:00:43]SAM_PROTO_GetShiftState done [16:00:43]FM_GetShiftState done [16:00:43]req_shift_opened done [16:00:43]requested_item shift.open_date is exist - process it [16:00:43]req_shift_open_date [16:00:43]req_shift_open_date done [16:00:43]produce_requested_data done [16:00:43]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1710,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:43]process_action_free close_receipt [16:00:43]json_value_free [16:00:43]json_value_free done [16:00:43]process_json_proto returns [16:00:43]Send response to host [16:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1710,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:43]free response buf [16:00:43]execute_script done [16:00:43]execute_script returns [16:00:43]free content buf [16:00:43]Sock 7.Close socket [16:00:43]Sock 7.Thread stoped [16:00:45]accept exits with 8 [16:00:45]New connection [16:00:45]New thread 3067227492 created [16:00:45]Thread 3067370852 joined [16:00:45]Waiting for new connection... [16:00:45] Sock 8.Parse request [16:00:45]Sock 8.Check first char [16:00:45]Sock 8.First char is OK [16:00:45]request: POST /json_proto HTTP/1.0 [16:00:45]Method: POST [16:00:45]URL: /json_proto [16:00:45]Method is POST - this is cgi request [16:00:45]url: /json_proto [16:00:45]query_string will be loaded in cgi processing [16:00:45]execute_cgi json_proto POST (null) [16:00:45]execute_cgi path=json_proto method=POST [16:00:45]POST find Content-Length [16:00:45]Host: 172.17.35.133:8080 [16:00:45]Content-Length: 622 [16:00:45]Content-Type: application/json [16:00:45] [16:00:45]POST finish read [16:00:45]Found Content-Length = 622 [16:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256185", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]execute_script... [16:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256185", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]POST & json_proto [16:00:45]process_json_proto [16:00:45]json parsed OK: [16:00:45]protocol is kg_v1.0 [16:00:45]action value=close_receipt [16:00:45]process_action close_receipt [16:00:45]cmd_close_receipt [16:00:45]MH_GetDate [16:00:45]Write to MH i2c: F0 00 00 4D 03 3F [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 4D 03 00 AD 01 90 66 1B 28 2A 66 BF [16:00:45]GetLastDocTimeStamp 1720713637 [16:00:45]current date 1720713645 [16:00:45]FM_GetShiftState [16:00:45]SAM_PROTO_GetShiftState [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 13 01 00 [16:00:45]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 2C [16:00:45]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_GetShiftState done [16:00:45]FM_GetShiftState done [16:00:45]opened in 1720656698 [16:00:45]opened+sec_in_day 1720743098 [16:00:45]quantity*price = 30200 [16:00:45]sum+1 = 30201 [16:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 302.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 27 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1711 ФПД: 252645586880954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160045&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1711&fm=252645586880954&tin=02508201610067®Number=0000000000177495&sum=30200 0 [16:00:47]StoreToDocumentArchive [16:00:47]shift 22 fd 1711 [16:00:47]save to /storage/0022/doc_00001711 [16:00:47]save last doc name /storage/0022/doc_00001711 to /storage/kkm_last_doc_name [16:00:47]save OK [16:00:47]Clear old archive folders... [16:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:00:47]tlvbuf is 00B67D50 [16:00:47]SAM_PROTO_ClearQueue [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 09 00 00 [16:00:47]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]SAM_PROTO_ClearQueue done [16:00:47]KKMCreateOFDPacket [16:00:47]OFDProtocolAddRootSTLVToBuf [16:00:47]FM_MakeSignedData [16:00:47]FM_MakeSignedData [16:00:47]SAM_PROTO_SignData [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 01 02 [16:00:47]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]wFMCommunicate request_size=255 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 OFD Sender: No OFD packet to send [16:00:47]34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 [16:00:48]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 00 00 DF [16:00:48]Write i2c OK [16:00:48]MH_I2C_Read... [16:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:48]Read from MH i2c: E2 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: E2 03 00 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [16:00:48]RAPDU: 90 00 [16:00:48]wFMCommunicate OK [16:00:48]wFMCommunicate request_size=33 [16:00:48]MH_SAM_APDU [16:00:48]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 06 00 00 35 04 06 00 E5 C7 A2 75 C9 BA [16:00:48]Write to MH i2c: E2 24 00 5E 03 80 0D 02 02 1C 00 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 06 00 00 35 04 06 00 E5 C7 A2 75 C9 BA 00 00 68 [16:00:48]Write i2c OK [16:00:48]MH_I2C_Read... [16:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:48]Read from MH i2c: E2 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: E2 03 00 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [16:00:49]RAPDU: 90 00 [16:00:49]wFMCommunicate OK [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 0D 03 02 [16:00:49]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0B 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0B 00 5F 03 00 D6 6E 68 E7 BA 19 6E F9 90 00 AB [16:00:49]RAPDU: D6 6E 68 E7 BA 19 6E F9 90 00 [16:00:49]wFMCommunicate OK [16:00:49]SAM_PROTO_SignData done [16:00:49]FM_MakeSignedData done [16:00:49]CreateOFDProtocolMessage [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 11 00 00 [16:00:49]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 17 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 33 [16:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:49]wFMCommunicate OK [16:00:49]CreateOFDProtocolMessage done [16:00:49]OFDSenderStorePacket 1711 [16:00:49]StoreOFDPacket docnum=1711 [16:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 26 01 00 00 2B C5 1E 01 07 16 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 06 00 00 35 04 06 00 E5 C7 A2 75 C9 BA D6 6E 68 E7 BA 19 6E F9 [16:00:49]CheckFolder [16:00:49]dirname=/storage/ofd_packets [16:00:49]CheckFolder done [16:00:49]ProducePacketName [16:00:49]name=ofd_packets/00001711 [16:00:49]NVStorageSaveData ofd_packets/00001711 [16:00:49]File name is /storage/ofd_packets/00001711 [16:00:49]Write 324 bytes [16:00:49]NVStorageSaveData done [16:00:49]OFDSenderStorePacket done [16:00:49]KKMCreateOFDPacket done [16:00:49]NVStorageSaveData kkm_last_timestamp [16:00:49]File name is /storage/kkm_last_timestamp [16:00:49]Write 4 bytes [16:00:49]NVStorageSaveData done [16:00:49]ExternCall_PrintAddStr [16:00:49]wPrintStart [16:00:49]Write to MH i2c: 01 00 00 61 03 64 [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 07 00 [16:00:49]MH_I2C_Read... [16:00:49]OFD Sender: Processing packet 1711 [packets to send 1, broken 0] [16:00:49]ProducePacketName [16:00:49]name=ofd_packets/00001711 [16:00:49]OFD Sender: To server: pG, [16:00:49]CommunicateWithHost lk.salyk.kg:30040 [16:00:49]ConnectInit lk.salyk.kg [16:00:49]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [16:00:49]RasterBufferAndPrint [16:00:49]line Счет N : (3)256185 [16:00:49]line ИНН: 02508201610067 [16:00:49]line Контрольно-Кассовый Чек [16:00:49]line ПРОДАЖА [16:00:49]line Товар: 48741958 [16:00:49]line Сигареты Parliament Aqua Blue [16:00:49]line 2.000 * 151.00 [16:00:49]line = 302.00 [16:00:49]line НДС 12% НСП 1% [16:00:49]line > о реализуемом товаре [16:00:49]line ИТОГО: 302.00 [16:00:49]line НСП 1% : 2.67 [16:00:49]line НДС 12% : 32.07 [16:00:49]line Наличными: 302.00 [16:00:49]line Безнал.: 0.00 [16:00:49]line Место: АЗС № 76 "Партнер Нефть" [16:00:49]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:49]line СНО: Общий режим [16:00:49]line Чек 27 11.07.2024 16:00 [16:00:49]line Смена: 22 ФФД: 1.0 [16:00:49]line ЗНМ: 0300000124 [16:00:49]line РНМ: 0000000000177495 [16:00:49]line Версия ККМ: 001 [16:00:49]line ФМ: 0000000002098592 [16:00:49]line ФД: 1711 [16:00:49]line ФПД: 252645586880954 [16:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160045&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1711&fm=252645586880954&tin=02508201610067®Number=0000000000177495&sum=30200 [16:00:49]line 0 [16:00:49]written 0, free lines is 4095 [16:00:49]Connected sock=10 [16:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 26 01 00 00 2B C5 1E 01 07 16 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 06 00 00 35 04 06 00 E5 C7 A2 75 C9 BA D6 6E 68 E7 BA 19 6E F9 [16:00:49]Write to MH i2c: 01 00 00 8A 03 8D [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 07 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 72 0D 13 [16:00:49]RasterBufferAndPrint [16:00:49]line [16:00:49]line [16:00:49]line [16:00:49]line [16:00:49]line [16:00:49]written 0, free lines is 3515 [16:00:50]MH_Cut [16:00:50]Write to MH i2c: D1 01 00 91 03 01 66 [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: D1 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: D1 01 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: D1 01 00 91 03 00 65 [16:00:50]Write to MH i2c: 01 00 00 92 03 95 [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 89 A0 47 00 42 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 06 00 00 F4 03 04 00 EA AC 8F 66 B6 04 01 00 00 E0 44 63 1F D8 DC 09 A6 [16:00:50]CommunicateWithHost err = 0 [16:00:50]CheckOFDResponse [16:00:50]1017 (14) - 77093643461234 [16:00:50]1041 (16) - 0000000002098592 [16:00:50]1040 (4) - 1711 [16:00:50]1012 (4) - 11.07.2024 09:59 [16:00:50]1206 (1) - 0 [16:00:50]OFD Sender: Remove packet 1711 [16:00:50]ProducePacketName [16:00:50]name=ofd_packets/00001711 [16:00:50]NVStorageDeleteData [16:00:50]*** Cut start [16:00:50]*** Partial cut [16:00:50]*** CUTSNS_PIN = 1 [16:00:50]*** CUTSNS_PIN = 0 [16:00:50]*** Brake cut motor [16:00:50]OFD Sender: No OFD packet to send [16:00:51]Read from MH i2c: 01 [16:00:51]MH_I2C_Read... [16:00:51]*** Stop cut motor [16:00:51]*** Cut end [16:00:51]Read from MH i2c: 01 07 00 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [16:00:51]process_action close_receipt done [16:00:51]requested_data is exist [16:00:51]produce_requested_data [16:00:51]requested_item fm.sn is exist - process it [16:00:51]wFMCommunicate request_size=4 [16:00:51]MH_SAM_APDU [16:00:51]CAPDU: 80 11 00 00 [16:00:51]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [16:00:51]Write i2c OK [16:00:51]MH_I2C_Read... [16:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:51]Read from MH i2c: E2 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: E2 17 00 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: E2 17 00 93 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 66 [16:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:51]wFMCommunicate OK [16:00:51]requested_item fd.num is exist - process it [16:00:51]SAM_PROTO_GetFieldsCounters [16:00:51]wFMCommunicate request_size=4 [16:00:51]MH_SAM_APDU [16:00:51]CAPDU: 80 13 00 00 [16:00:51]Write to MH i2c: E2 08 00 94 03 80 13 00 00 00 00 00 00 13 [16:00:51]Write i2c OK [16:00:51]MH_I2C_Read... [16:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:51]Read from MH i2c: E2 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: E2 62 00 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: E2 62 00 94 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AF 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [16:00:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 AF 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:51]wFMCommunicate OK [16:00:51]SAM_PROTO_GetFieldsCounters done [16:00:51]requested_item shift.num is exist - process it [16:00:51]requested_item shift.opened is exist - process it [16:00:51]req_shift_opened [16:00:51]FM_GetShiftState [16:00:51]SAM_PROTO_GetShiftState [16:00:51]wFMCommunicate request_size=4 [16:00:51]MH_SAM_APDU [16:00:51]CAPDU: 80 13 01 00 [16:00:51]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [16:00:51]Write i2c OK [16:00:51]MH_I2C_Read... [16:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:51]Read from MH i2c: E2 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: E2 0E 00 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 73 [16:00:51]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:51]wFMCommunicate OK [16:00:51]SAM_PROTO_GetShiftState done [16:00:51]FM_GetShiftState done [16:00:51]req_shift_opened done [16:00:51]requested_item shift.open_date is exist - process it [16:00:51]req_shift_open_date [16:00:51]req_shift_open_date done [16:00:51]produce_requested_data done [16:00:52]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1711,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:00:52]process_action_free close_receipt [16:00:52]json_value_free [16:00:52]json_value_free done [16:00:52]process_json_proto returns [16:00:52]Send response to host [16:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1711,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:00:52]free response buf [16:00:52]execute_script done [16:00:52]execute_script returns [16:00:52]free content buf [16:00:52]Sock 8.Close socket [16:00:52]Sock 8.Thread stoped [16:00:53]accept exits with 7 [16:00:53]New connection [16:00:53]New thread 3067370852 created [16:00:53]Thread 3067227492 joined [16:00:53]Waiting for new connection... [16:00:53] Sock 7.Parse request [16:00:53]Sock 7.Check first char [16:00:53]Sock 7.First char is OK [16:00:53]request: POST /json_proto HTTP/1.0 [16:00:53]Method: POST [16:00:53]URL: /json_proto [16:00:53]Method is POST - this is cgi request [16:00:53]url: /json_proto [16:00:53]query_string will be loaded in cgi processing [16:00:53]execute_cgi json_proto POST (null) [16:00:53]execute_cgi path=json_proto method=POST [16:00:53]POST find Content-Length [16:00:53]Host: 172.17.35.133:8080 [16:00:53]Content-Length: 676 [16:00:53]Content-Type: application/json [16:00:53] [16:00:53]POST finish read [16:00:53]Found Content-Length = 676 [16:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256186", "tax_sys" : 0, "items" : [ { "code": "4607015232547", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0445\u0430\u043B\u0432\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:53]execute_script... [16:00:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256186", "tax_sys" : 0, "items" : [ { "code": "4607015232547", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0445\u0430\u043B\u0432\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:53]POST & json_proto [16:00:53]process_json_proto [16:00:53]json parsed OK: [16:00:53]protocol is kg_v1.0 [16:00:53]action value=close_receipt [16:00:53]process_action close_receipt [16:00:53]cmd_close_receipt [16:00:53]MH_GetDate [16:00:53]Write to MH i2c: F0 00 00 96 03 88 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 09 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 09 00 96 03 00 B5 01 90 66 1B 28 2A 66 10 [16:00:53]GetLastDocTimeStamp 1720713645 [16:00:53]current date 1720713653 [16:00:53]FM_GetShiftState [16:00:53]SAM_PROTO_GetShiftState [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 13 01 00 [16:00:53]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 75 [16:00:53]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:00:53]wFMCommunicate OK [16:00:53]SAM_PROTO_GetShiftState done [16:00:53]FM_GetShiftState done [16:00:53]opened in 1720656698 [16:00:53]opened+sec_in_day 1720743098 [16:00:53]quantity*price = 8100 [16:00:53]sum+1 = 8101 [16:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 28 11.07.2024 16:00 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1712 ФПД: 235988507728394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160053&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1712&fm=235988507728394&tin=02508201610067®Number=0000000000177495&sum=8100 0 [16:00:55]StoreToDocumentArchive [16:00:55]shift 22 fd 1712 [16:00:55]save to /storage/0022/doc_00001712 [16:00:55]save last doc name /storage/0022/doc_00001712 to /storage/kkm_last_doc_name [16:00:55]save OK [16:00:55]Clear old archive folders... [16:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:00:55]tlvbuf is 00A1DF30 [16:00:55]SAM_PROTO_ClearQueue [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 09 00 00 [16:00:55]Write to MH i2c: E2 08 00 A4 03 80 09 00 00 00 00 00 00 19 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [16:00:55]RAPDU: 90 00 [16:00:55]wFMCommunicate OK [16:00:55]SAM_PROTO_ClearQueue done [16:00:55]KKMCreateOFDPacket [16:00:55]OFDProtocolAddRootSTLVToBuf [16:00:55]FM_MakeSignedData [16:00:55]FM_MakeSignedData [16:00:55]SAM_PROTO_SignData [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 0D 01 02 [16:00:55]Write to MH i2c: E2 08 00 A5 03 80 0D 01 02 00 00 00 00 21 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]OFD Sender: No OFD packet to send [16:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [16:00:55]RAPDU: 90 00 [16:00:55]wFMCommunicate OK [16:00:55]wFMCommunicate request_size=255 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 [16:00:56]Write to MH i2c: E2 02 01 A6 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 00 00 3E [16:00:56]Write i2c OK [16:00:56]MH_I2C_Read... [16:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:56]Read from MH i2c: E2 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [16:00:56]RAPDU: 90 00 [16:00:56]wFMCommunicate OK [16:00:56]wFMCommunicate request_size=46 [16:00:56]MH_SAM_APDU [16:00:56]CAPDU: 80 0D 02 02 29 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B0 06 00 00 35 04 06 00 D6 A1 5B 2C 9A 0A [16:00:57]Write to MH i2c: E2 31 00 A7 03 80 0D 02 02 29 00 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B0 06 00 00 35 04 06 00 D6 A1 5B 2C 9A 0A 00 00 0F [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 03 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [16:00:57]RAPDU: 90 00 [16:00:57]wFMCommunicate OK [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 0D 03 02 [16:00:57]Write to MH i2c: E2 08 00 A8 03 80 0D 03 02 00 00 00 00 26 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0B 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0B 00 A8 03 00 D0 06 86 4A 83 3B 92 1B 90 00 38 [16:00:57]RAPDU: D0 06 86 4A 83 3B 92 1B 90 00 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_SignData done [16:00:57]FM_MakeSignedData done [16:00:57]CreateOFDProtocolMessage [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 11 00 00 [16:00:57]Write to MH i2c: E2 08 00 A9 03 80 11 00 00 00 00 00 00 26 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 A9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7C [16:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:57]wFMCommunicate OK [16:00:57]CreateOFDProtocolMessage done [16:00:57]OFDSenderStorePacket 1712 [16:00:57]StoreOFDPacket docnum=1712 [16:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 33 01 00 00 30 37 2B 01 B3 D6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B0 06 00 00 35 04 06 00 D6 A1 5B 2C 9A 0A D0 06 86 4A 83 3B 92 1B [16:00:57]CheckFolder [16:00:57]dirname=/storage/ofd_packets [16:00:57]CheckFolder done [16:00:57]ProducePacketName [16:00:57]name=ofd_packets/00001712 [16:00:57]NVStorageSaveData ofd_packets/00001712 [16:00:57]File name is /storage/ofd_packets/00001712 [16:00:57]Write 337 bytes [16:00:57]NVStorageSaveData done [16:00:57]OFDSenderStorePacket done [16:00:57]KKMCreateOFDPacket done [16:00:57]NVStorageSaveData kkm_last_timestamp [16:00:57]File name is /storage/kkm_last_timestamp [16:00:57]Write 4 bytes [16:00:57]NVStorageSaveData done [16:00:57]ExternCall_PrintAddStr [16:00:57]wPrintStart [16:00:57]Write to MH i2c: 01 00 00 AA 03 AD [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 [16:00:57]MH_I2C_Read... [16:00:57]OFD Sender: Processing packet 1712 [packets to send 1, broken 0] [16:00:57]ProducePacketName [16:00:57]name=ofd_packets/00001712 [16:00:57]OFD Sender: To server: pG, [16:00:57]CommunicateWithHost lk.salyk.kg:30040 [16:00:57]ConnectInit lk.salyk.kg [16:00:57]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 FF 0F C2 [16:00:57]RasterBufferAndPrint [16:00:57]line Счет N : (3)256186 [16:00:57]line ИНН: 02508201610067 [16:00:57]line Контрольно-Кассовый Чек [16:00:57]line ПРОДАЖА [16:00:57]line Товар: 4607015232547 [16:00:57]line Вафли Яшкино с халвой 200г [16:00:57]line 1.000 * 81.00 [16:00:57]line = 81.00 [16:00:57]line НДС 12% НСП 1% [16:00:57]line > о реализуемом товаре [16:00:57]line ИТОГО: 81.00 [16:00:57]line НСП 1% : 0.72 [16:00:57]line НДС 12% : 8.60 [16:00:57]line Наличными: 81.00 [16:00:57]line Безнал.: 0.00 [16:00:57]line Место: АЗС № 76 "Партнер Нефть" [16:00:57]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:00:57]line СНО: Общий режим [16:00:57]line Чек 28 11.07.2024 16:00 [16:00:57]line Смена: 22 ФФД: 1.0 [16:00:57]line ЗНМ: 0300000124 [16:00:57]line РНМ: 0000000000177495 [16:00:57]line Версия ККМ: 001 [16:00:57]line ФМ: 0000000002098592 [16:00:57]line ФД: 1712 [16:00:57]line ФПД: 235988507728394 [16:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160053&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1712&fm=235988507728394&tin=02508201610067®Number=0000000000177495&sum=8100 [16:00:57]line 0 [16:00:57]written 0, free lines is 4095 [16:00:57]Connected sock=10 [16:00:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 33 01 00 00 30 37 2B 01 B3 D6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 Write to MH i2c: 35 01 39 00 32 00 10 D2 04 03 04 D5 00 B0 06 00 00 35 04 06 [16:00:58]00 Write i2c OK [16:00:58]D6 MH_I2C_Read... [16:00:58]A1 5B 2C 9A 0A D0 06 86 4A Read from MH i2c: 83 01 3B [16:00:58]92 MH_I2C_Read... [16:00:58]1B Read from MH i2c: [16:00:58]01 07 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 C7 0D B0 [16:00:58]RasterBufferAndPrint [16:00:58]line [16:00:58]line [16:00:58]line [16:00:58]line [16:00:58]line [16:00:58]written 0, free lines is 3641 [16:00:58]MH_Cut [16:00:58]Write to MH i2c: D1 01 00 D9 03 01 AE [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: D1 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: D1 01 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: D1 01 00 D9 03 00 AD [16:00:58]Write to MH i2c: 01 00 00 DA 03 DD [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 EC 59 47 00 EB 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B0 06 00 00 F4 03 04 00 F3 AC 8F 66 B6 04 01 00 00 24 D3 01 11 70 3D 29 8D [16:00:58]CommunicateWithHost err = 0 [16:00:58]CheckOFDResponse [16:00:58]1017 (14) - 77093643461234 [16:00:58]1041 (16) - 0000000002098592 [16:00:58]1040 (4) - 1712 [16:00:58]1012 (4) - 11.07.2024 09:59 [16:00:58]1206 (1) - 0 [16:00:58]OFD Sender: Remove packet 1712 [16:00:58]ProducePacketName [16:00:58]name=ofd_packets/00001712 [16:00:58]NVStorageDeleteData [16:00:58]*** Cut start [16:00:58]*** Partial cut [16:00:58]*** CUTSNS_PIN = 1 [16:00:58]*** CUTSNS_PIN = 0 [16:00:59]*** Brake cut motor [16:00:59]OFD Sender: No OFD packet to send [16:00:59]Read from MH i2c: 01 [16:00:59]MH_I2C_Read... [16:00:59]*** Stop cut motor [16:00:59]*** Cut end [16:00:59]Read from MH i2c: 01 07 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [16:00:59]process_action close_receipt done [16:00:59]requested_data is exist [16:00:59]produce_requested_data [16:00:59]requested_item fm.sn is exist - process it [16:00:59]wFMCommunicate request_size=4 [16:00:59]MH_SAM_APDU [16:00:59]CAPDU: 80 11 00 00 [16:00:59]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:59]Read from MH i2c: E2 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 17 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AE [16:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:00:59]wFMCommunicate OK [16:00:59]requested_item fd.num is exist - process it [16:00:59]SAM_PROTO_GetFieldsCounters [16:00:59]wFMCommunicate request_size=4 [16:00:59]MH_SAM_APDU [16:00:59]CAPDU: 80 13 00 00 [16:00:59]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:59]Read from MH i2c: E2 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 62 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [16:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:00]wFMCommunicate OK [16:01:00]SAM_PROTO_GetFieldsCounters done [16:01:00]requested_item shift.num is exist - process it [16:01:00]requested_item shift.opened is exist - process it [16:01:00]req_shift_opened [16:01:00]FM_GetShiftState [16:01:00]SAM_PROTO_GetShiftState [16:01:00]wFMCommunicate request_size=4 [16:01:00]MH_SAM_APDU [16:01:00]CAPDU: 80 13 01 00 [16:01:00]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [16:01:00]Write i2c OK [16:01:00]MH_I2C_Read... [16:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:00]Read from MH i2c: E2 [16:01:00]MH_I2C_Read... [16:01:00]Read from MH i2c: E2 0E 00 [16:01:00]MH_I2C_Read... [16:01:00]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 BB [16:01:00]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:00]wFMCommunicate OK [16:01:00]SAM_PROTO_GetShiftState done [16:01:00]FM_GetShiftState done [16:01:00]req_shift_opened done [16:01:00]requested_item shift.open_date is exist - process it [16:01:00]req_shift_open_date [16:01:00]req_shift_open_date done [16:01:00]produce_requested_data done [16:01:00]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1712,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:00]process_action_free close_receipt [16:01:00]json_value_free [16:01:00]json_value_free done [16:01:00]process_json_proto returns [16:01:00]Send response to host [16:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1712,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:00]free response buf [16:01:00]execute_script done [16:01:00]execute_script returns [16:01:00]free content buf [16:01:00]Sock 7.Close socket [16:01:00]Sock 7.Thread stoped [16:01:01]accept exits with 8 [16:01:01]New connection [16:01:01]New thread 3067227492 created [16:01:01]Thread 3067370852 joined [16:01:01]Waiting for new connection... [16:01:01] Sock 8.Parse request [16:01:01]Sock 8.Check first char [16:01:01]Sock 8.First char is OK [16:01:01]request: POST /json_proto HTTP/1.0 [16:01:01]Method: POST [16:01:01]URL: /json_proto [16:01:01]Method is POST - this is cgi request [16:01:01]url: /json_proto [16:01:01]query_string will be loaded in cgi processing [16:01:01]execute_cgi json_proto POST (null) [16:01:01]execute_cgi path=json_proto method=POST [16:01:01]POST find Content-Length [16:01:01]Host: 172.17.35.133:8080 [16:01:01]Content-Length: 681 [16:01:01]Content-Type: application/json [16:01:01] [16:01:01]POST finish read [16:01:01]Found Content-Length = 681 [16:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256187", "tax_sys" : 0, "items" : [ { "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:01]execute_script... [16:01:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256187", "tax_sys" : 0, "items" : [ { "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:01]POST & json_proto [16:01:01]process_json_proto [16:01:01]json parsed OK: [16:01:01]protocol is kg_v1.0 [16:01:01]action value=close_receipt [16:01:01]process_action close_receipt [16:01:01]cmd_close_receipt [16:01:01]MH_GetDate [16:01:01]Write to MH i2c: F0 00 00 DE 03 D0 [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: F0 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: F0 09 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: F0 09 00 DE 03 00 BD 01 90 66 1B 28 2A 66 60 [16:01:01]GetLastDocTimeStamp 1720713653 [16:01:01]current date 1720713661 [16:01:01]FM_GetShiftState [16:01:01]SAM_PROTO_GetShiftState [16:01:01]wFMCommunicate request_size=4 [16:01:01]MH_SAM_APDU [16:01:01]CAPDU: 80 13 01 00 [16:01:01]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:01]Read from MH i2c: E2 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 0E 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 BD [16:01:01]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:01]wFMCommunicate OK [16:01:01]SAM_PROTO_GetShiftState done [16:01:01]FM_GetShiftState done [16:01:01]opened in 1720656698 [16:01:01]opened+sec_in_day 1720743098 [16:01:01]quantity*price = 3500 [16:01:01]sum+1 = 3501 [16:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 29 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1713 ФПД: 10809846894725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160101&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1713&fm=10809846894725&tin=02508201610067®Number=0000000000177495&sum=3500 0 [16:01:04]StoreToDocumentArchive [16:01:04]shift 22 fd 1713 [16:01:04]save to /storage/0022/doc_00001713 [16:01:04]save last doc name /storage/0022/doc_00001713 to /storage/kkm_last_doc_name [16:01:04]save OK [16:01:04]Clear old archive folders... [16:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=288 [16:01:04]tlvbuf is 00B544D0 [16:01:04]SAM_PROTO_ClearQueue [16:01:04]wFMCommunicate request_size=4 [16:01:04]MH_SAM_APDU [16:01:04]CAPDU: 80 09 00 00 [16:01:04]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [16:01:04]Write i2c OK [16:01:04]MH_I2C_Read... [16:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:04]Read from MH i2c: E2 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 [16:01:04]MH_I2C_Read... [16:01:04]OFD Sender: No OFD packet to send [16:01:04]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [16:01:04]RAPDU: 90 00 [16:01:04]wFMCommunicate OK [16:01:04]SAM_PROTO_ClearQueue done [16:01:04]KKMCreateOFDPacket [16:01:04]OFDProtocolAddRootSTLVToBuf [16:01:04]FM_MakeSignedData [16:01:04]FM_MakeSignedData [16:01:04]SAM_PROTO_SignData [16:01:04]wFMCommunicate request_size=4 [16:01:04]MH_SAM_APDU [16:01:04]CAPDU: 80 0D 01 02 [16:01:04]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [16:01:04]Write i2c OK [16:01:04]MH_I2C_Read... [16:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:04]Read from MH i2c: E2 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [16:01:04]RAPDU: 90 00 [16:01:04]wFMCommunicate OK [16:01:04]wFMCommunicate request_size=255 [16:01:04]MH_SAM_APDU [16:01:04]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 [16:01:04]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 00 00 9D [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:05]Read from MH i2c: E2 03 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [16:01:05]RAPDU: 90 00 [16:01:05]wFMCommunicate OK [16:01:05]wFMCommunicate request_size=47 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 0D 02 02 2A 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B1 06 00 00 35 04 06 00 09 D4 DD 15 90 85 [16:01:05]Write to MH i2c: E2 32 00 EF 03 80 0D 02 02 2A 00 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B1 06 00 00 35 04 06 00 09 D4 DD 15 90 85 00 00 D3 [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [16:01:05]RAPDU: 90 00 [16:01:05]wFMCommunicate OK [16:01:05]wFMCommunicate request_size=4 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 0D 03 02 [16:01:05]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 0B 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 0B 00 F0 03 00 51 C8 D7 1C 14 CB 40 E4 90 00 7E [16:01:05]RAPDU: 51 C8 D7 1C 14 CB 40 E4 90 00 [16:01:05]wFMCommunicate OK [16:01:05]SAM_PROTO_SignData done [16:01:05]FM_MakeSignedData done [16:01:05]CreateOFDProtocolMessage [16:01:05]wFMCommunicate request_size=4 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 11 00 00 [16:01:05]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 17 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C4 [16:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:06]wFMCommunicate OK [16:01:06]CreateOFDProtocolMessage done [16:01:06]OFDSenderStorePacket 1713 [16:01:06]StoreOFDPacket docnum=1713 [16:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 34 01 00 00 1B 6A 2C 01 F7 99 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B1 06 00 00 35 04 06 00 09 D4 DD 15 90 85 51 C8 D7 1C 14 CB 40 E4 [16:01:06]CheckFolder [16:01:06]dirname=/storage/ofd_packets [16:01:06]CheckFolder done [16:01:06]ProducePacketName [16:01:06]name=ofd_packets/00001713 [16:01:06]NVStorageSaveData ofd_packets/00001713 [16:01:06]File name is /storage/ofd_packets/00001713 [16:01:06]Write 338 bytes [16:01:06]NVStorageSaveData done [16:01:06]OFDSenderStorePacket done [16:01:06]KKMCreateOFDPacket done [16:01:06]NVStorageSaveData kkm_last_timestamp [16:01:06]File name is /storage/kkm_last_timestamp [16:01:06]Write 4 bytes [16:01:06]NVStorageSaveData done [16:01:06]ExternCall_PrintAddStr [16:01:06]wPrintStart [16:01:06]Write to MH i2c: 01 00 00 F2 03 F5 [16:01:06]OFD Sender: Processing packet 1713 [packets to send 1, broken 0] [16:01:06]ProducePacketName [16:01:06]name=ofd_packets/00001713 [16:01:06]OFD Sender: To server: pG, [16:01:06]CommunicateWithHost lk.salyk.kg:30040 [16:01:06]ConnectInit lk.salyk.kg [16:01:06]Write i2c OK [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: 01 [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: 01 07 00 [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [16:01:06]RasterBufferAndPrint [16:01:06]line Счет N : (3)256187 [16:01:06]line ИНН: 02508201610067 [16:01:06]line Контрольно-Кассовый Чек [16:01:06]line ПРОДАЖА [16:01:06]line Товар: 4011100091993 [16:01:06]line Шок Батончик Милки Вей 26г [16:01:06]line 1.000 * 35.00 [16:01:06]line = 35.00 [16:01:06]line НДС 12% НСП 1% [16:01:06]line > о реализуемом товаре [16:01:06]line ИТОГО: 35.00 [16:01:06]line НСП 1% : 0.31 [16:01:06]line НДС 12% : 3.72 [16:01:06]line Наличными: 35.00 [16:01:06]line Безнал.: 0.00 [16:01:06]line Место: АЗС № 76 "Партнер Нефть" [16:01:06]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:01:06]line СНО: Общий режим [16:01:06]line Чек 29 11.07.2024 16:01 [16:01:06]line Смена: 22 ФФД: 1.0 [16:01:06]line ЗНМ: 0300000124 [16:01:06]line РНМ: 0000000000177495 [16:01:06]line Версия ККМ: 001 [16:01:06]line ФМ: 0000000002098592 [16:01:06]line ФД: 1713 [16:01:06]line ФПД: 10809846894725 [16:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160101&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1713&fm=10809846894725&tin=02508201610067®Number=0000000000177495&sum=3500 [16:01:06]line 0 [16:01:06]written 0, free lines is 4095 [16:01:06]Connected sock=10 [16:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 34 01 00 00 1B 6A 2C 01 F7 99 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B1 06 00 00 35 04 06 Write to MH i2c: 00 01 09 00 D4 00 DD 1A 15 04 90 85 51 C8 D7 1C 14 CB 1E 40 [16:01:06]E4 [16:01:06]Write i2c OK [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: 01 [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: 01 07 00 [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 42 0E 75 [16:01:06]RasterBufferAndPrint [16:01:06]line [16:01:06]line [16:01:06]line [16:01:06]line [16:01:06]line [16:01:06]written 0, free lines is 3743 [16:01:06]MH_Cut [16:01:06]Write to MH i2c: D1 01 00 21 04 01 F7 [16:01:06]Write i2c OK [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: D1 [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: D1 01 00 [16:01:06]MH_I2C_Read... [16:01:06]Read from MH i2c: D1 01 00 21 04 00 F6 [16:01:06]Write to MH i2c: 01 00 00 22 04 26 [16:01:06]Write i2c OK [16:01:06]MH_I2C_Read... [16:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 D2 38 47 00 68 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B1 06 00 00 F4 03 04 00 FB AC 8F 66 B6 04 01 00 00 AE 05 5F 3D B4 C1 64 A0 [16:01:07]CommunicateWithHost err = 0 [16:01:07]CheckOFDResponse [16:01:07]1017 (14) - 77093643461234 [16:01:07]1041 (16) - 0000000002098592 [16:01:07]1040 (4) - 1713 [16:01:07]1012 (4) - 11.07.2024 09:59 [16:01:07]1206 (1) - 0 [16:01:07]OFD Sender: Remove packet 1713 [16:01:07]ProducePacketName [16:01:07]name=ofd_packets/00001713 [16:01:07]NVStorageDeleteData [16:01:07]*** Cut start [16:01:07]*** Partial cut [16:01:07]*** CUTSNS_PIN = 1 [16:01:07]*** CUTSNS_PIN = 0 [16:01:07]*** Brake cut motor [16:01:07]OFD Sender: No OFD packet to send [16:01:07]Read from MH i2c: 01 [16:01:07]MH_I2C_Read... [16:01:07]*** Stop cut motor [16:01:07]*** Cut end [16:01:07]Read from MH i2c: 01 07 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [16:01:07]process_action close_receipt done [16:01:07]requested_data is exist [16:01:07]produce_requested_data [16:01:07]requested_item fm.sn is exist - process it [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 11 00 00 [16:01:07]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:08]Read from MH i2c: E2 [16:01:08]MH_I2C_Read... [16:01:08]Read from MH i2c: E2 17 00 [16:01:08]MH_I2C_Read... [16:01:08]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F7 [16:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:08]wFMCommunicate OK [16:01:08]requested_item fd.num is exist - process it [16:01:08]SAM_PROTO_GetFieldsCounters [16:01:08]wFMCommunicate request_size=4 [16:01:08]MH_SAM_APDU [16:01:08]CAPDU: 80 13 00 00 [16:01:08]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [16:01:08]Write i2c OK [16:01:08]MH_I2C_Read... [16:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:08]Read from MH i2c: E2 [16:01:08]MH_I2C_Read... [16:01:08]Read from MH i2c: E2 62 00 [16:01:08]MH_I2C_Read... [16:01:08]Read from MH i2c: E2 62 00 24 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:08]wFMCommunicate OK [16:01:08]SAM_PROTO_GetFieldsCounters done [16:01:08]requested_item shift.num is exist - process it [16:01:08]requested_item shift.opened is exist - process it [16:01:08]req_shift_opened [16:01:08]FM_GetShiftState [16:01:08]SAM_PROTO_GetShiftState [16:01:08]wFMCommunicate request_size=4 [16:01:08]MH_SAM_APDU [16:01:08]CAPDU: 80 13 01 00 [16:01:08]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [16:01:08]Write i2c OK [16:01:08]MH_I2C_Read... [16:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:08]Read from MH i2c: E2 [16:01:08]MH_I2C_Read... [16:01:08]Read from MH i2c: E2 0E 00 [16:01:08]MH_I2C_Read... [16:01:08]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 04 [16:01:08]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:08]wFMCommunicate OK [16:01:08]SAM_PROTO_GetShiftState done [16:01:08]FM_GetShiftState done [16:01:08]req_shift_opened done [16:01:08]requested_item shift.open_date is exist - process it [16:01:08]req_shift_open_date [16:01:08]req_shift_open_date done [16:01:08]produce_requested_data done [16:01:08]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1713,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:08]process_action_free close_receipt [16:01:08]json_value_free [16:01:08]json_value_free done [16:01:08]process_json_proto returns [16:01:08]Send response to host [16:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1713,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:08]free response buf [16:01:08]execute_script done [16:01:08]execute_script returns [16:01:08]free content buf [16:01:08]Sock 8.Close socket [16:01:08]Sock 8.Thread stoped [16:01:10]accept exits with 7 [16:01:10]New connection [16:01:10]New thread 3067370852 created [16:01:10]Thread 3067227492 joined [16:01:10]Waiting for new connection... [16:01:10] Sock 7.Parse request [16:01:10]Sock 7.Check first char [16:01:10]Sock 7.First char is OK [16:01:10]request: POST /json_proto HTTP/1.0 [16:01:10]Method: POST [16:01:10]URL: /json_proto [16:01:10]Method is POST - this is cgi request [16:01:10]url: /json_proto [16:01:10]query_string will be loaded in cgi processing [16:01:10]execute_cgi json_proto POST (null) [16:01:10]execute_cgi path=json_proto method=POST [16:01:10]POST find Content-Length [16:01:10]Host: 172.17.35.133:8080 [16:01:10]Content-Length: 851 [16:01:10]Content-Type: application/json [16:01:10] [16:01:10]POST finish read [16:01:10]Found Content-Length = 851 [16:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256188", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:10]execute_script... [16:01:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256188", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:10]POST & json_proto [16:01:10]process_json_proto [16:01:10]json parsed OK: [16:01:10]protocol is kg_v1.0 [16:01:10]action value=close_receipt [16:01:10]process_action close_receipt [16:01:10]cmd_close_receipt [16:01:10]MH_GetDate [16:01:10]Write to MH i2c: F0 00 00 26 04 19 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: F0 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: F0 09 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: F0 09 00 26 04 00 C6 01 90 66 1B 28 2A 66 B2 [16:01:10]GetLastDocTimeStamp 1720713661 [16:01:10]current date 1720713670 [16:01:10]FM_GetShiftState [16:01:10]SAM_PROTO_GetShiftState [16:01:10]wFMCommunicate request_size=4 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 13 01 00 [16:01:10]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 0E 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 06 [16:01:10]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:10]wFMCommunicate OK [16:01:10]SAM_PROTO_GetShiftState done [16:01:10]FM_GetShiftState done [16:01:10]opened in 1720656698 [16:01:10]opened+sec_in_day 1720743098 [16:01:10]quantity*price = 1000 [16:01:10]sum+1 = 1001 [16:01:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 30 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1714 ФПД: 48781782095320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160111&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1714&fm=48781782095320&tin=02508201610067®Number=0000000000177495&sum=2000 0 [16:01:13]StoreToDocumentArchive [16:01:13]shift 22 fd 1714 [16:01:13]save to /storage/0022/doc_00001714 [16:01:13]save last doc name /storage/0022/doc_00001714 to /storage/kkm_last_doc_name [16:01:13]save OK [16:01:13]Clear old archive folders... [16:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=370 [16:01:13]tlvbuf is 00BB2210 [16:01:13]SAM_PROTO_ClearQueue [16:01:13]wFMCommunicate request_size=4 [16:01:13]MH_SAM_APDU [16:01:13]CAPDU: 80 09 00 00 [16:01:13]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [16:01:13]Write i2c OK [16:01:13]MH_I2C_Read... [16:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:13]Read from MH i2c: E2 [16:01:13]MH_I2C_Read... [16:01:13]Read from MH i2c: E2 03 00 [16:01:13]MH_I2C_Read... [16:01:13]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [16:01:13]RAPDU: 90 00 [16:01:13]wFMCommunicate OK [16:01:13]SAM_PROTO_ClearQueue done [16:01:13]KKMCreateOFDPacket [16:01:13]OFDProtocolAddRootSTLVToBuf [16:01:13]FM_MakeSignedData [16:01:13]FM_MakeSignedData [16:01:13]SAM_PROTO_SignData [16:01:13]wFMCommunicate request_size=4 [16:01:13]MH_SAM_APDU [16:01:13]CAPDU: 80 0D 01 02 [16:01:13]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [16:01:13]Write i2c OK [16:01:13]MH_I2C_Read... [16:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:13]Read from MH i2c: E2 [16:01:13]MH_I2C_Read... [16:01:13]Read from MH i2c: E2 03 00 [16:01:13]MH_I2C_Read... [16:01:13]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [16:01:13]RAPDU: 90 00 [16:01:13]wFMCommunicate OK [16:01:13]wFMCommunicate request_size=255 [16:01:13]MH_SAM_APDU [16:01:13]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [16:01:13]Write to MH i2c: E2 02 01 36 04 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 B7 [16:01:14]Write i2c OK [16:01:14]MH_I2C_Read... [16:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:14]Read from MH i2c: E2 [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: E2 03 00 [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [16:01:14]RAPDU: 90 00 [16:01:14]wFMCommunicate OK [16:01:14]wFMCommunicate request_size=129 [16:01:14]MH_SAM_APDU [16:01:14]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B2 06 00 00 35 04 06 00 2C 5D E4 CB 15 D8 [16:01:14]Write to MH i2c: E2 84 00 37 04 80 0D 02 02 7C 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B2 06 00 00 35 04 06 00 2C 5D E4 CB 15 D8 00 00 69 [16:01:14]Write i2c OK [16:01:14]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [16:01:15]RAPDU: 90 00 [16:01:15]wFMCommunicate OK [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 0D 03 02 [16:01:15]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0B 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0B 00 38 04 00 9D C3 36 C1 CB F4 2B 65 90 00 5E [16:01:15]RAPDU: 9D C3 36 C1 CB F4 2B 65 90 00 [16:01:15]wFMCommunicate OK [16:01:15]SAM_PROTO_SignData done [16:01:15]FM_MakeSignedData done [16:01:15]CreateOFDProtocolMessage [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 11 00 00 [16:01:15]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 17 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0D [16:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:15]wFMCommunicate OK [16:01:15]CreateOFDProtocolMessage done [16:01:15]OFDSenderStorePacket 1714 [16:01:15]StoreOFDPacket docnum=1714 [16:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 86 01 00 00 D6 75 7E 01 B5 6B 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B2 06 00 00 35 04 06 00 2C 5D E4 CB 15 D8 9D C3 36 C1 CB F4 2B 65 [16:01:15]CheckFolder [16:01:15]dirname=/storage/ofd_packets [16:01:15]CheckFolder done [16:01:15]ProducePacketName [16:01:15]name=ofd_packets/00001714 [16:01:15]NVStorageSaveData ofd_packets/00001714 [16:01:15]File name is /storage/ofd_packets/00001714 [16:01:15]Write 420 bytes [16:01:15]NVStorageSaveData done [16:01:15]OFDSenderStorePacket done [16:01:15]KKMCreateOFDPacket done [16:01:15]NVStorageSaveData kkm_last_timestamp [16:01:15]File name is /storage/kkm_last_timestamp [16:01:15]Write 4 bytes [16:01:15]NVStorageSaveData done [16:01:15]ExternCall_PrintAddStr [16:01:15]wPrintStart [16:01:15]Write to MH i2c: 01 00 00 3A 04 3E [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 07 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 OFD Sender: Processing packet 1714 [packets to send 1, broken 0] [16:01:15] [16:01:15]ProducePacketName [16:01:15]RasterBufferAndPrint [16:01:15]name=ofd_packets/00001714 [16:01:15]line Счет N : (3)256188 [16:01:15]OFD Sender: To server: pG, [16:01:15]line ИНН: 02508201610067 [16:01:15]CommunicateWithHost lk.salyk.kg:30040 [16:01:15]line Контрольно-Кассовый Чек [16:01:15]ConnectInit lk.salyk.kg [16:01:15]line ПРОДАЖА [16:01:15]line Товар: 46231529 [16:01:15]line Mentos ПФ Арбуз 6*100*2 [16:01:15]line 1.000 * 10.00 [16:01:15]line = 10.00 [16:01:15]line НДС 12% НСП 1% [16:01:15]line > о реализуемом товаре [16:01:15]line Товар: 46226624 [16:01:15]line Mentos ПВ Клубника 6*100*2 [16:01:15]line 1.000 * 10.00 [16:01:15]line = 10.00 [16:01:15]line НДС 12% НСП 1% [16:01:15]line > о реализуемом товаре [16:01:15]line ИТОГО: 20.00 [16:01:15]line НСП 1% : 0.18 [16:01:15]line НДС 12% : 2.12 [16:01:15]line Наличными: 20.00 [16:01:15]line Безнал.: 0.00 [16:01:15]line Место: АЗС № 76 "Партнер Нефть" [16:01:15]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:01:15]line СНО: Общий режим [16:01:15]line Чек 30 11.07.2024 16:01 [16:01:15]line Смена: 22 ФФД: 1.0 [16:01:15]line ЗНМ: 0300000124 [16:01:15]line РНМ: 0000000000177495 [16:01:15]line Версия ККМ: 001 [16:01:15]line ФМ: 0000000002098592 [16:01:15]line ФД: 1714 [16:01:15]line ФПД: 48781782095320 [16:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160111&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1714&fm=48781782095320&tin=02508201610067®Number=0000000000177495&sum=2000 [16:01:15]Connected sock=8 [16:01:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 86 01 00 00 D6 75 7E 01 B5 6B 5A 03 01 00 03 00 72 01 1E 04 line 0 [16:01:15]01 00 written 0, free lines is 4095 [16:01:15]01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 Write to MH i2c: 37 01 34 00 39 00 35 11 04 10 00 30 30 30 68 30 04 30 6C 30 30 30 30 32 30 39 38 [16:01:16]35 39 32 10 04 04 Write i2c OK [16:01:16]00 MH_I2C_Read... [16:01:16]B2 06 00 00 35 04 06 00 2C Read from MH i2c: 5D 01 E4 [16:01:16]CB MH_I2C_Read... [16:01:16]15 Read from MH i2c: D8 01 9D 07 C3 36 C1 CB F4 2B 65 00 [16:01:16] [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 1D 0D 9D [16:01:16]RasterBufferAndPrint [16:01:16]line [16:01:16]line [16:01:16]line [16:01:16]line [16:01:16]line [16:01:16]written 0, free lines is 3516 [16:01:16]MH_Cut [16:01:16]Write to MH i2c: D1 01 00 6F 04 01 45 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: D1 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: D1 01 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: D1 01 00 6F 04 00 44 [16:01:16]Write to MH i2c: 01 00 00 70 04 74 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 20 AA 47 00 4C E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B2 06 00 00 F4 03 04 00 05 AD 8F 66 B6 04 01 00 00 85 64 EB 90 C6 5D 6C E8 [16:01:17]CommunicateWithHost err = 0 [16:01:17]CheckOFDResponse [16:01:17]1017 (14) - 77093643461234 [16:01:17]1041 (16) - 0000000002098592 [16:01:17]1040 (4) - 1714 [16:01:17]1012 (4) - 11.07.2024 09:59 [16:01:17]1206 (1) - 0 [16:01:17]OFD Sender: Remove packet 1714 [16:01:17]ProducePacketName [16:01:17]*** Cut start [16:01:17]name=ofd_packets/00001714 [16:01:17]*** Partial cut [16:01:17]NVStorageDeleteData [16:01:17]*** CUTSNS_PIN = 1 [16:01:17]*** CUTSNS_PIN = 0 [16:01:17]*** Brake cut motor [16:01:17]OFD Sender: No OFD packet to send [16:01:17]Read from MH i2c: *** Stop cut motor [16:01:17]01 *** Cut end [16:01:17] [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 07 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [16:01:17]process_action close_receipt done [16:01:17]requested_data is exist [16:01:17]produce_requested_data [16:01:17]requested_item fm.sn is exist - process it [16:01:17]wFMCommunicate request_size=4 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 11 00 00 [16:01:17]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:17]Read from MH i2c: E2 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 17 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 45 [16:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:17]wFMCommunicate OK [16:01:17]requested_item fd.num is exist - process it [16:01:17]SAM_PROTO_GetFieldsCounters [16:01:17]wFMCommunicate request_size=4 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 13 00 00 [16:01:17]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 62 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 62 00 72 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B2 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [16:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B2 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_GetFieldsCounters done [16:01:18]requested_item shift.num is exist - process it [16:01:18]requested_item shift.opened is exist - process it [16:01:18]req_shift_opened [16:01:18]FM_GetShiftState [16:01:18]SAM_PROTO_GetShiftState [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 13 01 00 [16:01:18]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0E 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 52 [16:01:18]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_GetShiftState done [16:01:18]FM_GetShiftState done [16:01:18]req_shift_opened done [16:01:18]requested_item shift.open_date is exist - process it [16:01:18]req_shift_open_date [16:01:18]req_shift_open_date done [16:01:18]produce_requested_data done [16:01:18]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1714,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:18]process_action_free close_receipt [16:01:18]json_value_free [16:01:18]json_value_free done [16:01:18]process_json_proto returns [16:01:18]Send response to host [16:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1714,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:18]free response buf [16:01:18]execute_script done [16:01:18]execute_script returns [16:01:18]free content buf [16:01:18]Sock 7.Close socket [16:01:18]Sock 7.Thread stoped [16:01:20]accept exits with 10 [16:01:20]New connection [16:01:20]New thread 3067227492 created [16:01:20]Thread 3067370852 joined [16:01:20]Waiting for new connection... [16:01:20] Sock 10.Parse request [16:01:20]Sock 10.Check first char [16:01:20]Sock 10.First char is OK [16:01:20]request: POST /json_proto HTTP/1.0 [16:01:20]Method: POST [16:01:20]URL: /json_proto [16:01:20]Method is POST - this is cgi request [16:01:20]url: /json_proto [16:01:20]query_string will be loaded in cgi processing [16:01:20]execute_cgi json_proto POST (null) [16:01:20]execute_cgi path=json_proto method=POST [16:01:20]POST find Content-Length [16:01:20]Host: 172.17.35.133:8080 [16:01:20]Content-Length: 697 [16:01:20]Content-Type: application/json [16:01:20] [16:01:20]POST finish read [16:01:20]Found Content-Length = 697 [16:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256189", "tax_sys" : 0, "items" : [ { "code": "47018068", "name": "\u0421\u043F\u0440\u0435\u0439 Beauty \u0421\u0435\u043F\u0442 \u0430/\u0431\u0430\u043A\u0442 \u0434\u043B\u044F \u0440\u0443\u043A 60\u043C\u043B", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:20]execute_script... [16:01:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256189", "tax_sys" : 0, "items" : [ { "code": "47018068", "name": "\u0421\u043F\u0440\u0435\u0439 Beauty \u0421\u0435\u043F\u0442 \u0430/\u0431\u0430\u043A\u0442 \u0434\u043B\u044F \u0440\u0443\u043A 60\u043C\u043B", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:20]POST & json_proto [16:01:20]process_json_proto [16:01:20]json parsed OK: [16:01:20]protocol is kg_v1.0 [16:01:20]action value=close_receipt [16:01:20]process_action close_receipt [16:01:20]cmd_close_receipt [16:01:20]MH_GetDate [16:01:20]Write to MH i2c: F0 00 00 74 04 67 [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: F0 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: F0 09 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: F0 09 00 74 04 00 D0 01 90 66 1B 28 2A 66 0A [16:01:20]GetLastDocTimeStamp 1720713671 [16:01:20]current date 1720713680 [16:01:20]FM_GetShiftState [16:01:20]SAM_PROTO_GetShiftState [16:01:20]wFMCommunicate request_size=4 [16:01:20]MH_SAM_APDU [16:01:20]CAPDU: 80 13 01 00 [16:01:20]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:20]Read from MH i2c: E2 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 0E 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 54 [16:01:20]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:20]wFMCommunicate OK [16:01:20]SAM_PROTO_GetShiftState done [16:01:20]FM_GetShiftState done [16:01:20]opened in 1720656698 [16:01:20]opened+sec_in_day 1720743098 [16:01:20]quantity*price = 5100 [16:01:20]sum+1 = 5101 [16:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 31 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1715 ФПД: 26031039545500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160121&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1715&fm=26031039545500&tin=02508201610067®Number=0000000000177495&sum=5100 0 [16:01:23]StoreToDocumentArchive [16:01:23]shift 22 fd 1715 [16:01:23]save to /storage/0022/doc_00001715 [16:01:23]save last doc name /storage/0022/doc_00001715 to /storage/kkm_last_doc_name [16:01:23]save OK [16:01:23]Clear old archive folders... [16:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=296 [16:01:23]tlvbuf is 00AB5940 [16:01:23]SAM_PROTO_ClearQueue [16:01:23]wFMCommunicate request_size=4 [16:01:23]MH_SAM_APDU [16:01:23]CAPDU: 80 09 00 00 [16:01:23]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:23]Read from MH i2c: E2 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: E2 03 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [16:01:23]RAPDU: 90 00 [16:01:23]wFMCommunicate OK [16:01:23]SAM_PROTO_ClearQueue done [16:01:23]KKMCreateOFDPacket [16:01:23]OFDProtocolAddRootSTLVToBuf [16:01:23]FM_MakeSignedData [16:01:23]FM_MakeSignedData [16:01:23]SAM_PROTO_SignData [16:01:23]wFMCommunicate request_size=4 [16:01:23]MH_SAM_APDU [16:01:23]CAPDU: 80 0D 01 02 [16:01:23]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:23]Read from MH i2c: E2 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: E2 03 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [16:01:23]RAPDU: 90 00 [16:01:23]wFMCommunicate OK [16:01:23]wFMCommunicate request_size=255 [16:01:23]MH_SAM_APDU [16:01:23]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D1 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [16:01:23]Write to MH i2c: E2 02 01 84 04 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D1 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 0B [16:01:24]Write i2c OK [16:01:24]MH_I2C_Read... [16:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:24]Read from MH i2c: E2 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 03 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [16:01:24]RAPDU: 90 00 [16:01:24]wFMCommunicate OK [16:01:24]wFMCommunicate request_size=55 [16:01:24]MH_SAM_APDU [16:01:24]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B3 06 00 00 35 04 06 00 17 AC D2 DD 80 9C [16:01:24]Write to MH i2c: E2 3A 00 85 04 80 0D 02 02 32 00 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B3 06 00 00 35 04 06 00 17 AC D2 DD 80 9C 00 00 AE [16:01:24]Write i2c OK [16:01:24]MH_I2C_Read... [16:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:24]Read from MH i2c: E2 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 03 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [16:01:24]RAPDU: 90 00 [16:01:24]wFMCommunicate OK [16:01:24]wFMCommunicate request_size=4 [16:01:24]MH_SAM_APDU [16:01:24]CAPDU: 80 0D 03 02 [16:01:24]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [16:01:24]Write i2c OK [16:01:24]MH_I2C_Read... [16:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:24]Read from MH i2c: E2 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 0B 00 [16:01:24]MH_I2C_Read... [16:01:24]Read from MH i2c: E2 0B 00 86 04 00 E1 5C BB 88 74 ED 1B 79 90 00 7B [16:01:25]RAPDU: E1 5C BB 88 74 ED 1B 79 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_SignData done [16:01:25]FM_MakeSignedData done [16:01:25]CreateOFDProtocolMessage [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 11 00 00 [16:01:25]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5B [16:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:25]wFMCommunicate OK [16:01:25]CreateOFDProtocolMessage done [16:01:25]OFDSenderStorePacket 1715 [16:01:25]StoreOFDPacket docnum=1715 [16:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3C 01 00 00 5D F0 34 01 7C 36 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D1 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B3 06 00 00 35 04 06 00 17 AC D2 DD 80 9C E1 5C BB 88 74 ED 1B 79 [16:01:25]CheckFolder [16:01:25]dirname=/storage/ofd_packets [16:01:25]CheckFolder done [16:01:25]ProducePacketName [16:01:25]name=ofd_packets/00001715 [16:01:25]NVStorageSaveData ofd_packets/00001715 [16:01:25]File name is /storage/ofd_packets/00001715 [16:01:25]Write 346 bytes [16:01:25]NVStorageSaveData done [16:01:25]OFDSenderStorePacket done [16:01:25]KKMCreateOFDPacket done [16:01:25]NVStorageSaveData kkm_last_timestamp [16:01:25]File name is /storage/kkm_last_timestamp [16:01:25]Write 4 bytes [16:01:25]NVStorageSaveData done [16:01:25]ExternCall_PrintAddStr [16:01:25]wPrintStart [16:01:25]Write to MH i2c: 01 00 00 88 04 8C [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: 01 [16:01:25]MH_I2C_Read... [16:01:25]OFD Sender: Processing packet 1715 [packets to send 1, broken 0] [16:01:25]ProducePacketName [16:01:25]name=ofd_packets/00001715 [16:01:25]OFD Sender: To server: pG, [16:01:25]CommunicateWithHost lk.salyk.kg:30040 [16:01:25]ConnectInit lk.salyk.kg [16:01:25]Read from MH i2c: 01 07 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [16:01:25]RasterBufferAndPrint [16:01:25]line Счет N : (3)256189 [16:01:25]line ИНН: 02508201610067 [16:01:25]line Контрольно-Кассовый Чек [16:01:25]line ПРОДАЖА [16:01:25]line Товар: 47018068 [16:01:25]line Спрей Beauty Септ а/бакт для рук 60мл [16:01:25]line 1.000 * 51.00 [16:01:25]line = 51.00 [16:01:25]line НДС 12% НСП 1% [16:01:25]line > о реализуемом товаре [16:01:25]line ИТОГО: 51.00 [16:01:25]line НСП 1% : 0.45 [16:01:25]line НДС 12% : 5.42 [16:01:25]line Наличными: 51.00 [16:01:25]line Безнал.: 0.00 [16:01:25]line Место: АЗС № 76 "Партнер Нефть" [16:01:25]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:01:25]line СНО: Общий режим [16:01:25]line Чек 31 11.07.2024 16:01 [16:01:25]line Смена: 22 ФФД: 1.0 [16:01:25]line ЗНМ: 0300000124 [16:01:25]line РНМ: 0000000000177495 [16:01:25]line Версия ККМ: 001 [16:01:25]line ФМ: 0000000002098592 [16:01:25]line ФД: 1715 [16:01:25]line ФПД: 26031039545500 [16:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160121&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1715&fm=26031039545500&tin=02508201610067®Number=0000000000177495&sum=5100 [16:01:25]line 0 [16:01:25]written 0, free lines is 4095 [16:01:25]Connected sock=8 [16:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3C 01 00 00 5D F0 34 01 7C 36 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 Write to MH i2c: 00 01 12 00 04 04 00 1F 00 00 00 00 F4 B1 03 04 04 00 D1 01 90 66 0E B5 04 [16:01:25]04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 Write i2c OK [16:01:26]30 MH_I2C_Read... [16:01:26]30 Read from MH i2c: 30 30 30 01 30 [16:01:26]30 30 32 30 39 38 35 MH_I2C_Read... [16:01:26]39 Read from MH i2c: 32 01 10 04 04 00 B3 06 00 00 07 35 00 04 [16:01:26]06 00 17 MH_I2C_Read... [16:01:26]AC D2 DD Read from MH i2c: 80 9C E1 5C BB 88 74 ED 01 1B 07 79 00 [16:01:26]B1 04 00 00 00 00 00 72 0D 3B [16:01:26]RasterBufferAndPrint [16:01:26]line [16:01:26]line [16:01:26]line [16:01:26]line [16:01:26]line [16:01:26]written 0, free lines is 3844 [16:01:26]MH_Cut [16:01:26]Write to MH i2c: D1 01 00 B8 04 01 8E [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: D1 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: D1 01 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: D1 01 00 B8 04 00 8D [16:01:26]Write to MH i2c: 01 00 00 B9 04 BD [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 A4 1E 47 00 CA 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 *** Cut start [16:01:26]31 *** Partial cut [16:01:26]32 33 34 11 *** CUTSNS_PIN = 1 [16:01:26]04 10 00 30 30 30 *** CUTSNS_PIN = 0 [16:01:26]30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B3 06 00 00 F4 03 04 00 0F AD 8F 66 B6 04 01 00 00 91 81 4C 30 5A DD 0C 2F [16:01:26]CommunicateWithHost err = 0 [16:01:26]CheckOFDResponse [16:01:26]1017 (14) - 77093643461234 [16:01:26]1041 (16) - 0000000002098592 [16:01:26]1040 (4) - 1715 [16:01:26]1012 (4) - 11.07.2024 09:59 [16:01:26]1206 (1) - 0 [16:01:26]OFD Sender: Remove packet 1715 [16:01:26]ProducePacketName [16:01:26]name=ofd_packets/00001715 [16:01:26]NVStorageDeleteData [16:01:26]*** Brake cut motor [16:01:27]Read from MH i2c: *** Stop cut motor [16:01:27]01 *** Cut end [16:01:27] [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 07 00 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [16:01:27]process_action close_receipt done [16:01:27]requested_data is exist [16:01:27]produce_requested_data [16:01:27]requested_item fm.sn is exist - process it [16:01:27]wFMCommunicate request_size=4 [16:01:27]MH_SAM_APDU [16:01:27]CAPDU: 80 11 00 00 [16:01:27]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:27]Read from MH i2c: E2 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: E2 17 00 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: E2 OFD Sender: No OFD packet to send [16:01:27]17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 8E [16:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:27]wFMCommunicate OK [16:01:27]requested_item fd.num is exist - process it [16:01:27]SAM_PROTO_GetFieldsCounters [16:01:27]wFMCommunicate request_size=4 [16:01:27]MH_SAM_APDU [16:01:27]CAPDU: 80 13 00 00 [16:01:27]Write to MH i2c: E2 08 00 BB 04 80 13 00 00 00 00 00 00 3B [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:27]Read from MH i2c: E2 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: E2 62 00 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: E2 62 00 BB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B3 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B3 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:27]wFMCommunicate OK [16:01:27]SAM_PROTO_GetFieldsCounters done [16:01:27]requested_item shift.num is exist - process it [16:01:27]requested_item shift.opened is exist - process it [16:01:27]req_shift_opened [16:01:27]FM_GetShiftState [16:01:27]SAM_PROTO_GetShiftState [16:01:27]wFMCommunicate request_size=4 [16:01:27]MH_SAM_APDU [16:01:27]CAPDU: 80 13 01 00 [16:01:27]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:28]Read from MH i2c: E2 [16:01:28]MH_I2C_Read... [16:01:28]Read from MH i2c: E2 0E 00 [16:01:28]MH_I2C_Read... [16:01:28]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 9B [16:01:28]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:28]wFMCommunicate OK [16:01:28]SAM_PROTO_GetShiftState done [16:01:28]FM_GetShiftState done [16:01:28]req_shift_opened done [16:01:28]requested_item shift.open_date is exist - process it [16:01:28]req_shift_open_date [16:01:28]req_shift_open_date done [16:01:28]produce_requested_data done [16:01:28]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1715,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:28]process_action_free close_receipt [16:01:28]json_value_free [16:01:28]json_value_free done [16:01:28]process_json_proto returns [16:01:28]Send response to host [16:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1715,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:28]free response buf [16:01:28]execute_script done [16:01:28]execute_script returns [16:01:28]free content buf [16:01:28]Sock 10.Close socket [16:01:28]Sock 10.Thread stoped [16:01:29]accept exits with 7 [16:01:29]New connection [16:01:29]New thread 3067370852 created [16:01:29]Thread 3067227492 joined [16:01:29]Waiting for new connection... [16:01:29] Sock 7.Parse request [16:01:29]Sock 7.Check first char [16:01:29]Sock 7.First char is OK [16:01:29]request: POST /json_proto HTTP/1.0 [16:01:29]Method: POST [16:01:29]URL: /json_proto [16:01:29]Method is POST - this is cgi request [16:01:29]url: /json_proto [16:01:29]query_string will be loaded in cgi processing [16:01:29]execute_cgi json_proto POST (null) [16:01:29]execute_cgi path=json_proto method=POST [16:01:29]POST find Content-Length [16:01:29]Host: 172.17.35.133:8080 [16:01:29]Content-Length: 694 [16:01:29]Content-Type: application/json [16:01:29] [16:01:29]POST finish read [16:01:29]Found Content-Length = 694 [16:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256190", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:29]execute_script... [16:01:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256190", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:29]POST & json_proto [16:01:29]process_json_proto [16:01:29]json parsed OK: [16:01:29]protocol is kg_v1.0 [16:01:29]action value=close_receipt [16:01:29]process_action close_receipt [16:01:29]cmd_close_receipt [16:01:29]MH_GetDate [16:01:29]Write to MH i2c: F0 00 00 BD 04 B0 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 09 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 09 00 BD 04 00 D9 01 90 66 1B 28 2A 66 5C [16:01:29]GetLastDocTimeStamp 1720713681 [16:01:29]current date 1720713689 [16:01:29]FM_GetShiftState [16:01:29]SAM_PROTO_GetShiftState [16:01:29]wFMCommunicate request_size=4 [16:01:29]MH_SAM_APDU [16:01:29]CAPDU: 80 13 01 00 [16:01:29]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:29]Read from MH i2c: E2 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 9D [16:01:29]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:29]wFMCommunicate OK [16:01:29]SAM_PROTO_GetShiftState done [16:01:29]FM_GetShiftState done [16:01:29]opened in 1720656698 [16:01:29]opened+sec_in_day 1720743098 [16:01:29]quantity*price = 6500 [16:01:29]sum+1 = 6501 [16:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 32 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1716 ФПД: 122724290926928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160130&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1716&fm=122724290926928&tin=02508201610067®Number=0000000000177495&sum=6500 0 [16:01:32]StoreToDocumentArchive [16:01:32]shift 22 fd 1716 [16:01:32]save to /storage/0022/doc_00001716 [16:01:32]save last doc name /storage/0022/doc_00001716 to /storage/kkm_last_doc_name [16:01:32]save OK [16:01:32]Clear old archive folders... [16:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=297 [16:01:32]tlvbuf is 009FA7A0 [16:01:32]SAM_PROTO_ClearQueue [16:01:32]wFMCommunicate request_size=4 [16:01:32]MH_SAM_APDU [16:01:32]CAPDU: 80 09 00 00 [16:01:32]Write to MH i2c: E2 08 00 CB 04 80 09 00 00 00 00 00 00 41 [16:01:32]Write i2c OK [16:01:32]MH_I2C_Read... [16:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:32]Read from MH i2c: E2 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: E2 03 00 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [16:01:32]RAPDU: 90 00 [16:01:32]wFMCommunicate OK [16:01:32]SAM_PROTO_ClearQueue done [16:01:32]KKMCreateOFDPacket [16:01:32]OFDProtocolAddRootSTLVToBuf [16:01:32]FM_MakeSignedData [16:01:32]FM_MakeSignedData [16:01:32]SAM_PROTO_SignData [16:01:32]wFMCommunicate request_size=4 [16:01:32]MH_SAM_APDU [16:01:32]CAPDU: 80 0D 01 02 [16:01:32]Write to MH i2c: E2 08 00 CC 04 80 0D 01 02 00 00 00 00 49 [16:01:32]OFD Sender: No OFD packet to send [16:01:32]Write i2c OK [16:01:32]MH_I2C_Read... [16:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:32]Read from MH i2c: E2 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: E2 03 00 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [16:01:32]RAPDU: 90 00 [16:01:32]wFMCommunicate OK [16:01:32]wFMCommunicate request_size=255 [16:01:32]MH_SAM_APDU [16:01:32]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DA 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [16:01:32]Write to MH i2c: E2 02 01 CD 04 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DA 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 4B [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 03 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [16:01:33]RAPDU: 90 00 [16:01:33]wFMCommunicate OK [16:01:33]wFMCommunicate request_size=56 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B4 06 00 00 35 04 06 00 6F 9D F9 C4 19 50 [16:01:33]Write to MH i2c: E2 3B 00 CE 04 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B4 06 00 00 35 04 06 00 6F 9D F9 C4 19 50 00 00 CE [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 03 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [16:01:34]RAPDU: 90 00 [16:01:34]wFMCommunicate OK [16:01:34]wFMCommunicate request_size=4 [16:01:34]MH_SAM_APDU [16:01:34]CAPDU: 80 0D 03 02 [16:01:34]Write to MH i2c: E2 08 00 CF 04 80 0D 03 02 00 00 00 00 4E [16:01:34]Write i2c OK [16:01:34]MH_I2C_Read... [16:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:34]Read from MH i2c: E2 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 0B 00 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 0B 00 CF 04 00 50 15 E4 0A 15 E5 22 33 90 00 F1 [16:01:34]RAPDU: 50 15 E4 0A 15 E5 22 33 90 00 [16:01:34]wFMCommunicate OK [16:01:34]SAM_PROTO_SignData done [16:01:34]FM_MakeSignedData done [16:01:34]CreateOFDProtocolMessage [16:01:34]wFMCommunicate request_size=4 [16:01:34]MH_SAM_APDU [16:01:34]CAPDU: 80 11 00 00 [16:01:34]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [16:01:34]Write i2c OK [16:01:34]MH_I2C_Read... [16:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:34]Read from MH i2c: E2 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 17 00 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A4 [16:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:34]wFMCommunicate OK [16:01:34]CreateOFDProtocolMessage done [16:01:34]OFDSenderStorePacket 1716 [16:01:34]StoreOFDPacket docnum=1716 [16:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3D 01 00 00 FA 39 35 01 B7 A2 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DA 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B4 06 00 00 35 04 06 00 6F 9D F9 C4 19 50 50 15 E4 0A 15 E5 22 33 [16:01:34]CheckFolder [16:01:34]dirname=/storage/ofd_packets [16:01:34]CheckFolder done [16:01:34]ProducePacketName [16:01:34]name=ofd_packets/00001716 [16:01:34]NVStorageSaveData ofd_packets/00001716 [16:01:34]File name is /storage/ofd_packets/00001716 [16:01:34]Write 347 bytes [16:01:34]NVStorageSaveData done [16:01:34]OFDSenderStorePacket done [16:01:34]KKMCreateOFDPacket done [16:01:34]NVStorageSaveData kkm_last_timestamp [16:01:34]File name is /storage/kkm_last_timestamp [16:01:34]Write 4 bytes [16:01:34]NVStorageSaveData done [16:01:34]ExternCall_PrintAddStr [16:01:34]wPrintStart [16:01:34]Write to MH i2c: 01 00 00 D1 04 D5 [16:01:34]OFD Sender: Processing packet 1716 [packets to send 1, broken 0] [16:01:34]ProducePacketName [16:01:34]name=ofd_packets/00001716 [16:01:34]OFD Sender: To server: pG, [16:01:34]CommunicateWithHost lk.salyk.kg:30040 [16:01:34]ConnectInit lk.salyk.kg [16:01:34]Write i2c OK [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: 01 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: 01 07 00 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [16:01:34]RasterBufferAndPrint [16:01:34]line Счет N : (3)256190 [16:01:34]line ИНН: 02508201610067 [16:01:34]line Контрольно-Кассовый Чек [16:01:34]line ПРОДАЖА [16:01:34]line Товар: 4870001571535 [16:01:34]line Вода ASU пит н.газ персик ПЭТ 0,5л [16:01:34]line 1.000 * 65.00 [16:01:34]line = 65.00 [16:01:34]line НДС 12% НСП 1% [16:01:34]line > о реализуемом товаре [16:01:34]line ИТОГО: 65.00 [16:01:34]line НСП 1% : 0.57 [16:01:34]line НДС 12% : 6.90 [16:01:34]line Наличными: 65.00 [16:01:34]line Безнал.: 0.00 [16:01:34]line Место: АЗС № 76 "Партнер Нефть" [16:01:34]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:01:34]line СНО: Общий режим [16:01:34]line Чек 32 11.07.2024 16:01 [16:01:34]line Смена: 22 ФФД: 1.0 [16:01:34]line ЗНМ: 0300000124 [16:01:34]line РНМ: 0000000000177495 [16:01:34]line Версия ККМ: 001 [16:01:34]line ФМ: 0000000002098592 [16:01:34]line ФД: 1716 [16:01:34]line ФПД: 122724290926928 [16:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160130&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1716&fm=122724290926928&tin=02508201610067®Number=0000000000177495&sum=6500 [16:01:34]Connected sock=10 [16:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3D 01 00 00 FA line 0 [16:01:34]39 written 0, free lines is 4095 [16:01:34]35 01 B7 A2 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 Write to MH i2c: 04 01 06 00 00 00 00 00 00 00 00 00 1F FA 04 02 00 01 00 12 04 04 04 FE 00 [16:01:35]20 Write i2c OK [16:01:35]00 MH_I2C_Read... [16:01:35]00 00 F4 03 04 00 DA 01 90 Read from MH i2c: 66 01 0E [16:01:35]04 04 00 16 00 00 00 MH_I2C_Read... [16:01:35]B9 Read from MH i2c: 04 01 01 07 00 00 01 0D 04 10 00 30 30 [16:01:35]30 MH_I2C_Read... [16:01:35]30 Read from MH i2c: 30 01 30 30 30 30 30 31 07 37 00 37 FA 34 39 35 11 04 10 00 04 30 00 30 00 30 30 30 30 30 30 30 00 32 30 39 38 35 00 39 00 32 59 10 04 04 00 B4 06 00 00 35 0D 04 6B 06 [16:01:35]00 6F 9D F9 C4 19 50 RasterBufferAndPrint [16:01:35]50 line [16:01:35]15 line [16:01:35]E4 line [16:01:35]0A line [16:01:35]15 line [16:01:35]E5 22 33 [16:01:35]written 0, free lines is 3764 [16:01:35]MH_Cut [16:01:35]Write to MH i2c: D1 01 00 01 05 01 D8 [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: D1 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: D1 01 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: D1 01 00 01 05 00 D7 [16:01:35]Write to MH i2c: 01 00 00 02 05 07 [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 AD 72 47 00 11 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 *** Cut start [16:01:35]36 *** Partial cut [16:01:35]34 33 34 *** CUTSNS_PIN = 1 [16:01:35]36 31 32 33 34 11 *** CUTSNS_PIN = 0 [16:01:35]04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B4 06 00 00 F4 03 04 00 18 AD 8F 66 B6 04 01 00 00 84 49 AD 56 69 C8 51 A8 [16:01:36]CommunicateWithHost err = 0 [16:01:36]CheckOFDResponse [16:01:36]1017 (14) - 77093643461234 [16:01:36]1041 (16) - 0000000002098592 [16:01:36]1040 (4) - 1716 [16:01:36]1012 (4) - 11.07.2024 09:59 [16:01:36]*** Brake cut motor [16:01:36]1206 (1) - 0 [16:01:36]OFD Sender: Remove packet 1716 [16:01:36]ProducePacketName [16:01:36]name=ofd_packets/00001716 [16:01:36]NVStorageDeleteData [16:01:36]Read from MH i2c: *** Stop cut motor [16:01:36]01 *** Cut end [16:01:36] [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: 01 07 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [16:01:36]process_action close_receipt done [16:01:36]requested_data is exist [16:01:36]produce_requested_data [16:01:36]requested_item fm.sn is exist - process it [16:01:36]wFMCommunicate request_size=4 [16:01:36]MH_SAM_APDU [16:01:36]CAPDU: 80 11 00 00 [16:01:36]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:36]Read from MH i2c: E2 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 17 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 OFD Sender: No OFD packet to send [16:01:36]39 38 35 39 32 90 00 D8 [16:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:36]wFMCommunicate OK [16:01:36]requested_item fd.num is exist - process it [16:01:36]SAM_PROTO_GetFieldsCounters [16:01:36]wFMCommunicate request_size=4 [16:01:36]MH_SAM_APDU [16:01:36]CAPDU: 80 13 00 00 [16:01:36]Write to MH i2c: E2 08 00 04 05 80 13 00 00 00 00 00 00 85 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:36]Read from MH i2c: E2 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 62 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 62 00 04 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [16:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:37]wFMCommunicate OK [16:01:37]SAM_PROTO_GetFieldsCounters done [16:01:37]requested_item shift.num is exist - process it [16:01:37]requested_item shift.opened is exist - process it [16:01:37]req_shift_opened [16:01:37]FM_GetShiftState [16:01:37]SAM_PROTO_GetShiftState [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 13 01 00 [16:01:37]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0E 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 E5 [16:01:37]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:37]wFMCommunicate OK [16:01:37]SAM_PROTO_GetShiftState done [16:01:37]FM_GetShiftState done [16:01:37]req_shift_opened done [16:01:37]requested_item shift.open_date is exist - process it [16:01:37]req_shift_open_date [16:01:37]req_shift_open_date done [16:01:37]produce_requested_data done [16:01:37]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1716,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:37]process_action_free close_receipt [16:01:37]json_value_free [16:01:37]json_value_free done [16:01:37]process_json_proto returns [16:01:37]Send response to host [16:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1716,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:37]free response buf [16:01:37]execute_script done [16:01:37]execute_script returns [16:01:37]free content buf [16:01:37]Sock 7.Close socket [16:01:37]Sock 7.Thread stoped [16:01:38]accept exits with 8 [16:01:38]New connection [16:01:38]New thread 3067227492 created [16:01:38]Thread 3067370852 joined [16:01:38]Waiting for new connection... [16:01:38] Sock 8.Parse request [16:01:38]Sock 8.Check first char [16:01:38]Sock 8.First char is OK [16:01:38]request: POST /json_proto HTTP/1.0 [16:01:38]Method: POST [16:01:38]URL: /json_proto [16:01:38]Method is POST - this is cgi request [16:01:38]url: /json_proto [16:01:38]query_string will be loaded in cgi processing [16:01:38]execute_cgi json_proto POST (null) [16:01:38]execute_cgi path=json_proto method=POST [16:01:38]POST find Content-Length [16:01:38]Host: 172.17.35.133:8080 [16:01:38]Content-Length: 645 [16:01:38]Content-Type: application/json [16:01:38] [16:01:38]POST finish read [16:01:38]Found Content-Length = 645 [16:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256191", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:38]execute_script... [16:01:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256191", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:38]POST & json_proto [16:01:38]process_json_proto [16:01:38]json parsed OK: [16:01:38]protocol is kg_v1.0 [16:01:38]action value=close_receipt [16:01:38]process_action close_receipt [16:01:38]cmd_close_receipt [16:01:38]MH_GetDate [16:01:38]Write to MH i2c: F0 00 00 06 05 FA [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: F0 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: F0 09 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: F0 09 00 06 05 00 E2 01 90 66 1B 28 2A 66 AF [16:01:38]GetLastDocTimeStamp 1720713690 [16:01:38]current date 1720713698 [16:01:38]FM_GetShiftState [16:01:38]SAM_PROTO_GetShiftState [16:01:38]wFMCommunicate request_size=4 [16:01:38]MH_SAM_APDU [16:01:38]CAPDU: 80 13 01 00 [16:01:38]Write to MH i2c: E2 08 00 07 05 80 13 01 00 00 00 00 00 89 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:38]Read from MH i2c: E2 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 0E 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 0E 00 07 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 E7 [16:01:38]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:38]wFMCommunicate OK [16:01:38]SAM_PROTO_GetShiftState done [16:01:38]FM_GetShiftState done [16:01:38]opened in 1720656698 [16:01:38]opened+sec_in_day 1720743098 [16:01:38]quantity*price = 1000 [16:01:38]sum+1 = 1001 [16:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 33 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1717 ФПД: 52996510001313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160138&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1717&fm=52996510001313&tin=02508201610067®Number=0000000000177495&sum=1000 0 [16:01:41]StoreToDocumentArchive [16:01:41]shift 22 fd 1717 [16:01:41]save to /storage/0022/doc_00001717 [16:01:41]save last doc name /storage/0022/doc_00001717 to /storage/kkm_last_doc_name [16:01:41]save OK [16:01:41]Clear old archive folders... [16:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:01:41]tlvbuf is 00B92580 [16:01:41]SAM_PROTO_ClearQueue [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 09 00 00 [16:01:41]Write to MH i2c: E2 08 00 14 05 80 09 00 00 00 00 00 00 8B [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [16:01:41]RAPDU: 90 00 [16:01:41]wFMCommunicate OK [16:01:41]SAM_PROTO_ClearQueue done [16:01:41]KKMCreateOFDPacket [16:01:41]OFDProtocolAddRootSTLVToBuf [16:01:41]FM_MakeSignedData [16:01:41]FM_MakeSignedData [16:01:41]SAM_PROTO_SignData [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 0D 01 02 [16:01:41]Write to MH i2c: E2 08 00 15 05 80 0D 01 02 00 00 00 00 93 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [16:01:41]RAPDU: 90 00 [16:01:41]wFMCommunicate OK [16:01:41]wFMCommunicate request_size=255 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 OFD Sender: No OFD packet to send [16:01:42]04 10 00 [16:01:42]Write to MH i2c: E2 02 01 16 05 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 00 00 EF [16:01:43]Write i2c OK [16:01:43]MH_I2C_Read... [16:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:43]Read from MH i2c: E2 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 03 00 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [16:01:43]RAPDU: 90 00 [16:01:43]wFMCommunicate OK [16:01:43]wFMCommunicate request_size=39 [16:01:43]MH_SAM_APDU [16:01:43]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B5 06 00 00 35 04 06 00 30 33 36 27 28 A1 [16:01:43]Write to MH i2c: E2 2A 00 17 05 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B5 06 00 00 35 04 06 00 30 33 36 27 28 A1 00 00 98 [16:01:43]Write i2c OK [16:01:43]MH_I2C_Read... [16:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:43]Read from MH i2c: E2 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 03 00 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [16:01:43]RAPDU: 90 00 [16:01:43]wFMCommunicate OK [16:01:43]wFMCommunicate request_size=4 [16:01:43]MH_SAM_APDU [16:01:43]CAPDU: 80 0D 03 02 [16:01:43]Write to MH i2c: E2 08 00 18 05 80 0D 03 02 00 00 00 00 98 [16:01:43]Write i2c OK [16:01:43]MH_I2C_Read... [16:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:43]Read from MH i2c: E2 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 0B 00 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 0B 00 18 05 00 40 9B C9 6A 22 79 F0 3F 90 00 71 [16:01:43]RAPDU: 40 9B C9 6A 22 79 F0 3F 90 00 [16:01:43]wFMCommunicate OK [16:01:43]SAM_PROTO_SignData done [16:01:43]FM_MakeSignedData done [16:01:43]CreateOFDProtocolMessage [16:01:43]wFMCommunicate request_size=4 [16:01:43]MH_SAM_APDU [16:01:43]CAPDU: 80 11 00 00 [16:01:43]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [16:01:43]Write i2c OK [16:01:43]MH_I2C_Read... [16:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:43]Read from MH i2c: E2 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 17 00 [16:01:43]MH_I2C_Read... [16:01:43]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EE [16:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:44]wFMCommunicate OK [16:01:44]CreateOFDProtocolMessage done [16:01:44]OFDSenderStorePacket 1717 [16:01:44]StoreOFDPacket docnum=1717 [16:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2C 01 00 00 95 B7 24 01 E4 01 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B5 06 00 00 35 04 06 00 30 33 36 27 28 A1 40 9B C9 6A 22 79 F0 3F [16:01:44]CheckFolder [16:01:44]dirname=/storage/ofd_packets [16:01:44]CheckFolder done [16:01:44]ProducePacketName [16:01:44]name=ofd_packets/00001717 [16:01:44]NVStorageSaveData ofd_packets/00001717 [16:01:44]File name is /storage/ofd_packets/00001717 [16:01:44]Write 330 bytes [16:01:44]NVStorageSaveData done [16:01:44]OFDSenderStorePacket done [16:01:44]KKMCreateOFDPacket done [16:01:44]NVStorageSaveData kkm_last_timestamp [16:01:44]File name is /storage/kkm_last_timestamp [16:01:44]Write 4 bytes [16:01:44]NVStorageSaveData done [16:01:44]ExternCall_PrintAddStr [16:01:44]wPrintStart [16:01:44]Write to MH i2c: 01 00 00 1A 05 1F [16:01:44]Write i2c OK [16:01:44]MH_I2C_Read... [16:01:44]Read from MH i2c: 01 [16:01:44]MH_I2C_Read... [16:01:44]Read from MH i2c: 01 07 00 [16:01:44]MH_I2C_Read... [16:01:44]OFD Sender: Processing packet 1717 [packets to send 1, broken 0] [16:01:44]ProducePacketName [16:01:44]name=ofd_packets/00001717 [16:01:44]OFD Sender: To server: pG, [16:01:44]CommunicateWithHost lk.salyk.kg:30040 [16:01:44]ConnectInit lk.salyk.kg [16:01:44]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [16:01:44]RasterBufferAndPrint [16:01:44]line Счет N : (3)256191 [16:01:44]line ИНН: 02508201610067 [16:01:44]line Контрольно-Кассовый Чек [16:01:44]line ПРОДАЖА [16:01:44]line Товар: 46226617 [16:01:44]line Mentos ПВ Нежная Мята 6*100*2г [16:01:44]line 1.000 * 10.00 [16:01:44]line = 10.00 [16:01:44]line НДС 12% НСП 1% [16:01:44]line > о реализуемом товаре [16:01:44]line ИТОГО: 10.00 [16:01:44]line НСП 1% : 0.09 [16:01:44]line НДС 12% : 1.06 [16:01:44]line Наличными: 10.00 [16:01:44]line Безнал.: 0.00 [16:01:44]line Место: АЗС № 76 "Партнер Нефть" [16:01:44]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:01:44]line СНО: Общий режим [16:01:44]line Чек 33 11.07.2024 16:01 [16:01:44]line Смена: 22 ФФД: 1.0 [16:01:44]line ЗНМ: 0300000124 [16:01:44]line РНМ: 0000000000177495 [16:01:44]line Версия ККМ: 001 [16:01:44]line ФМ: 0000000002098592 [16:01:44]line ФД: 1717 [16:01:44]line ФПД: 52996510001313 [16:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160138&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1717&fm=52996510001313&tin=02508201610067®Number=0000000000177495&sum=1000 [16:01:44]line 0 [16:01:44]Connected sock=10 [16:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2C 01 00 00 95 B7 24 01 E4 01 5A written 0, free lines is 4095 [16:01:44]03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 Write to MH i2c: 02 01 00 00 01 00 00 43 12 05 04 48 04 00 21 00 00 00 F4 [16:01:44]03 Write i2c OK [16:01:44]04 MH_I2C_Read... [16:01:44]00 E2 Read from MH i2c: 01 01 90 [16:01:44]66 MH_I2C_Read... [16:01:44]0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B5 06 00 00 35 04 06 00 30 33 36 27 28 A1 40 Read from MH i2c: 9B 01 C9 07 6A 00 22 [16:01:45]79 MH_I2C_Read... [16:01:45]F0 3F [16:01:45]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 62 0D BE [16:01:45]RasterBufferAndPrint [16:01:45]line [16:01:45]line [16:01:45]line [16:01:45]line [16:01:45]line [16:01:45]written 0, free lines is 4005 [16:01:45]MH_Cut [16:01:45]Write to MH i2c: D1 01 00 4A 05 01 21 [16:01:45]Write i2c OK [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: D1 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: D1 01 00 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: D1 01 00 4A 05 00 20 [16:01:45]Write to MH i2c: 01 00 00 4B 05 50 [16:01:45]Write i2c OK [16:01:45]MH_I2C_Read... [16:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 61 F5 47 00 43 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 *** Cut start [16:01:45]31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B5 *** Partial cut [16:01:45]06 *** CUTSNS_PIN = 1 [16:01:45]00 *** CUTSNS_PIN = 0 [16:01:45]00 F4 03 04 00 22 AD 8F 66 B6 04 01 00 00 9A BF E3 86 08 74 E8 16 [16:01:45]CommunicateWithHost err = 0 [16:01:45]CheckOFDResponse [16:01:45]*** Brake cut motor [16:01:45]1017 (14) - 77093643461234 [16:01:45]1041 (16) - 0000000002098592 [16:01:45]1040 (4) - 1717 [16:01:45]1012 (4) - 11.07.2024 10:00 [16:01:45]1206 (1) - 0 [16:01:45]OFD Sender: Remove packet 1717 [16:01:45]ProducePacketName [16:01:45]name=ofd_packets/00001717 [16:01:45]NVStorageDeleteData [16:01:46]Read from MH i2c: *** Stop cut motor [16:01:46]01 *** Cut end [16:01:46] [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: 01 07 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 FF 0F 65 [16:01:46]process_action close_receipt done [16:01:46]requested_data is exist [16:01:46]produce_requested_data [16:01:46]requested_item fm.sn is exist - process it [16:01:46]wFMCommunicate request_size=4 [16:01:46]MH_SAM_APDU [16:01:46]CAPDU: 80 11 00 00 [16:01:46]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [16:01:46]Write i2c OK [16:01:46]MH_I2C_Read... [16:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:46]Read from MH i2c: E2 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 17 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 OFD Sender: No OFD packet to send [16:01:46]32 30 39 38 35 39 32 90 00 21 [16:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:46]wFMCommunicate OK [16:01:46]requested_item fd.num is exist - process it [16:01:46]SAM_PROTO_GetFieldsCounters [16:01:46]wFMCommunicate request_size=4 [16:01:46]MH_SAM_APDU [16:01:46]CAPDU: 80 13 00 00 [16:01:46]Write to MH i2c: E2 08 00 4D 05 80 13 00 00 00 00 00 00 CE [16:01:46]Write i2c OK [16:01:46]MH_I2C_Read... [16:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:46]Read from MH i2c: E2 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 62 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 62 00 4D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [16:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:46]wFMCommunicate OK [16:01:46]SAM_PROTO_GetFieldsCounters done [16:01:46]requested_item shift.num is exist - process it [16:01:46]requested_item shift.opened is exist - process it [16:01:46]req_shift_opened [16:01:46]FM_GetShiftState [16:01:46]SAM_PROTO_GetShiftState [16:01:46]wFMCommunicate request_size=4 [16:01:46]MH_SAM_APDU [16:01:46]CAPDU: 80 13 01 00 [16:01:46]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0E 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 2E [16:01:47]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:47]wFMCommunicate OK [16:01:47]SAM_PROTO_GetShiftState done [16:01:47]FM_GetShiftState done [16:01:47]req_shift_opened done [16:01:47]requested_item shift.open_date is exist - process it [16:01:47]req_shift_open_date [16:01:47]req_shift_open_date done [16:01:47]produce_requested_data done [16:01:47]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1717,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:47]process_action_free close_receipt [16:01:47]json_value_free [16:01:47]json_value_free done [16:01:47]process_json_proto returns [16:01:47]Send response to host [16:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1717,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:47]free response buf [16:01:47]execute_script done [16:01:47]execute_script returns [16:01:47]free content buf [16:01:47]Sock 8.Close socket [16:01:47]Sock 8.Thread stoped [16:01:48]accept exits with 7 [16:01:48]New connection [16:01:48]New thread 3067370852 created [16:01:48]Thread 3067227492 joined [16:01:48]Waiting for new connection... [16:01:48] Sock 7.Parse request [16:01:48]Sock 7.Check first char [16:01:48]Sock 7.First char is OK [16:01:48]request: POST /json_proto HTTP/1.0 [16:01:48]Method: POST [16:01:48]URL: /json_proto [16:01:48]Method is POST - this is cgi request [16:01:48]url: /json_proto [16:01:48]query_string will be loaded in cgi processing [16:01:48]execute_cgi json_proto POST (null) [16:01:48]execute_cgi path=json_proto method=POST [16:01:48]POST find Content-Length [16:01:48]Host: 172.17.35.133:8080 [16:01:48]Content-Length: 646 [16:01:48]Content-Type: application/json [16:01:48] [16:01:48]POST finish read [16:01:48]Found Content-Length = 646 [16:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256192", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 157.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:48]execute_script... [16:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256192", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 157.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:48]POST & json_proto [16:01:48]process_json_proto [16:01:48]json parsed OK: [16:01:48]protocol is kg_v1.0 [16:01:48]action value=close_receipt [16:01:48]process_action close_receipt [16:01:48]cmd_close_receipt [16:01:48]MH_GetDate [16:01:48]Write to MH i2c: F0 00 00 4F 05 43 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: F0 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: F0 09 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: F0 09 00 4F 05 00 EC 01 90 66 1B 28 2A 66 02 [16:01:48]GetLastDocTimeStamp 1720713698 [16:01:48]current date 1720713708 [16:01:48]FM_GetShiftState [16:01:48]SAM_PROTO_GetShiftState [16:01:48]wFMCommunicate request_size=4 [16:01:48]MH_SAM_APDU [16:01:48]CAPDU: 80 13 01 00 [16:01:48]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:48]Read from MH i2c: E2 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: E2 0E 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 30 [16:01:48]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:48]wFMCommunicate OK [16:01:48]SAM_PROTO_GetShiftState done [16:01:48]FM_GetShiftState done [16:01:48]opened in 1720656698 [16:01:48]opened+sec_in_day 1720743098 [16:01:48]quantity*price = 15700 [16:01:48]sum+1 = 15701 [16:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 157.00 НСП 1% : 1.39 НДС 12% : 16.67 Наличными: 157.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 34 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1718 ФПД: 201140663721489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160149&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1718&fm=201140663721489&tin=02508201610067®Number=0000000000177495&sum=15700 0 [16:01:51]StoreToDocumentArchive [16:01:51]shift 22 fd 1718 [16:01:51]save to /storage/0022/doc_00001718 [16:01:51]save last doc name /storage/0022/doc_00001718 to /storage/kkm_last_doc_name [16:01:51]save OK [16:01:51]Clear old archive folders... [16:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:01:51]tlvbuf is 00C0BAF0 [16:01:51]SAM_PROTO_ClearQueue [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 09 00 00 [16:01:51]Write to MH i2c: E2 08 00 5D 05 80 09 00 00 00 00 00 00 D4 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_ClearQueue done [16:01:51]KKMCreateOFDPacket [16:01:51]OFDProtocolAddRootSTLVToBuf [16:01:51]FM_MakeSignedData [16:01:51]FM_MakeSignedData [16:01:51]SAM_PROTO_SignData [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 01 02 [16:01:51]Write to MH i2c: E2 08 00 5E 05 80 0D 01 02 00 00 00 00 DC [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=255 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 [16:01:52]Write to MH i2c: E2 02 01 5F 05 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 00 00 3E [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:53]Read from MH i2c: E2 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 03 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [16:01:53]RAPDU: 90 00 [16:01:53]wFMCommunicate OK [16:01:53]wFMCommunicate request_size=37 [16:01:53]MH_SAM_APDU [16:01:53]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B6 06 00 00 35 04 06 00 B6 EF B5 CF 9E 11 [16:01:53]Write to MH i2c: E2 28 00 60 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B6 06 00 00 35 04 06 00 B6 EF B5 CF 9E 11 00 00 CD [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:53]Read from MH i2c: E2 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 03 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [16:01:53]RAPDU: 90 00 [16:01:53]wFMCommunicate OK [16:01:53]wFMCommunicate request_size=4 [16:01:53]MH_SAM_APDU [16:01:53]CAPDU: 80 0D 03 02 [16:01:53]Write to MH i2c: E2 08 00 61 05 80 0D 03 02 00 00 00 00 E1 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:53]Read from MH i2c: E2 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 0B 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 0B 00 61 05 00 9A 8B 5B D0 43 B0 3E D6 90 00 39 [16:01:53]RAPDU: 9A 8B 5B D0 43 B0 3E D6 90 00 [16:01:53]wFMCommunicate OK [16:01:53]SAM_PROTO_SignData done [16:01:53]FM_MakeSignedData done [16:01:53]CreateOFDProtocolMessage [16:01:53]wFMCommunicate request_size=4 [16:01:53]MH_SAM_APDU [16:01:53]CAPDU: 80 11 00 00 [16:01:53]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:53]Read from MH i2c: E2 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 17 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 37 [16:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:53]wFMCommunicate OK [16:01:53]CreateOFDProtocolMessage done [16:01:53]OFDSenderStorePacket 1718 [16:01:53]StoreOFDPacket docnum=1718 [16:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 E7 69 22 01 EA 10 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B6 06 00 00 35 04 06 00 B6 EF B5 CF 9E 11 9A 8B 5B D0 43 B0 3E D6 [16:01:53]CheckFolder [16:01:53]dirname=/storage/ofd_packets [16:01:53]CheckFolder done [16:01:53]ProducePacketName [16:01:53]name=ofd_packets/00001718 [16:01:53]NVStorageSaveData ofd_packets/00001718 [16:01:53]File name is /storage/ofd_packets/00001718 [16:01:53]Write 328 bytes [16:01:53]NVStorageSaveData done [16:01:53]OFDSenderStorePacket done [16:01:53]KKMCreateOFDPacket done [16:01:53]NVStorageSaveData kkm_last_timestamp [16:01:53]File name is /storage/kkm_last_timestamp [16:01:53]Write 4 bytes [16:01:53]NVStorageSaveData done [16:01:53]ExternCall_PrintAddStr [16:01:53]wPrintStart [16:01:53]Write to MH i2c: 01 00 00 63 05 68 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 07 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 07 00 63 05 00 00 00 00 00 FF 0F 7D [16:01:53]RasterBufferAndPrint [16:01:53]line Счет N : (3)256192 [16:01:53]line ИНН: 02508201610067 [16:01:53]line Контрольно-Кассовый Чек [16:01:53]line ПРОДАЖА [16:01:53]line Товар: 90162602 [16:01:53]line Энерг напиток Red bull 0,25л [16:01:53]line 1.000 * 157.00 [16:01:53]line = 157.00 [16:01:53]line НДС 12% НСП 1% [16:01:53]line > о реализуемом товаре [16:01:53]line ИТОГО: 157.00 [16:01:53]line НСП 1% : 1.39 [16:01:53]line НДС 12% : 16.67 [16:01:53]line Наличными: 157.00 [16:01:53]line Безнал.: 0.00 [16:01:53]line Место: АЗС № 76 "Партнер Нефть" [16:01:53]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:01:54]line СНО: Общий режим [16:01:54]line Чек 34 11.07.2024 16:01 [16:01:54]line Смена: 22 ФФД: 1.0 [16:01:54]line ЗНМ: 0300000124 [16:01:54]line РНМ: 0000000000177495 [16:01:54]line Версия ККМ: 001 [16:01:54]line ФМ: 0000000002098592 [16:01:54]line ФД: 1718 [16:01:54]line ФПД: 201140663721489 [16:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160149&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1718&fm=201140663721489&tin=02508201610067®Number=0000000000177495&sum=15700 [16:01:54]OFD Sender: Processing packet 1718 [packets to send 1, broken 0] [16:01:54]ProducePacketName [16:01:54]line 0 [16:01:54]name=ofd_packets/00001718 [16:01:54]written 0, free lines is 4095 [16:01:54]OFD Sender: To server: pG, [16:01:54]CommunicateWithHost lk.salyk.kg:30040 [16:01:54]ConnectInit lk.salyk.kg [16:01:54]Connected sock=10 [16:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 E7 69 22 01 EA 10 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 Write to MH i2c: 01 00 00 8B 05 90 [16:01:54]00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B Write i2c OK [16:01:54]00 MH_I2C_Read... [16:01:54]00 00 Read from MH i2c: 00 01 00 [16:01:54]EE 03 0F 00 F2 03 MH_I2C_Read... [16:01:54]01 00 01 F3 Read from MH i2c: 03 01 06 07 00 83 06 00 00 00 00 00 07 [16:01:54]04 MH_I2C_Read... [16:01:54]06 Read from MH i2c: 00 01 54 07 3D 00 00 8B 00 00 00 39 04 06 00 05 00 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 00 00 F4 00 03 C5 04 0D 00 69 ED [16:01:54]01 RasterBufferAndPrint [16:01:54]90 66 0E 04 04 00 16 line [16:01:54]00 line [16:01:54]00 line [16:01:54]00 line [16:01:54]B9 line [16:01:54]04 01 00 01 0D 04 10 00 written 0, free lines is 4055 [16:01:54]30 30 30 30 30 30 MH_Cut [16:01:54]30 Write to MH i2c: 30 D1 30 01 30 00 31 92 37 05 37 01 34 69 39 35 11 04 10 00 30 [16:01:55]30 30 30 30 30 Write i2c OK [16:01:55]30 MH_I2C_Read... [16:01:55]30 30 32 30 39 38 35 Read from MH i2c: 39 D1 32 [16:01:55]10 MH_I2C_Read... [16:01:55]04 04 00 B6 Read from MH i2c: 06 D1 00 01 00 35 04 06 00 B6 00 EF [16:01:55]B5 MH_I2C_Read... [16:01:55]CF Read from MH i2c: 9E D1 11 9A 8B 5B D0 43 B0 01 00 3E 92 D6 [16:01:55]05 00 68 [16:01:55]Write to MH i2c: 01 00 00 93 05 98 [16:01:55]*** Cut start [16:01:55]Write i2c OK [16:01:55]*** Partial cut [16:01:55]MH_I2C_Read... [16:01:55]*** CUTSNS_PIN = 1 [16:01:55]*** CUTSNS_PIN = 0 [16:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 1C F5 47 00 BD 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B6 06 00 00 F4 03 04 00 2B AD 8F 66 B6 04 01 00 00 72 4B 91 FA *** Brake cut motor [16:01:55]E8 78 6B C7 [16:01:55]CommunicateWithHost err = 0 [16:01:55]CheckOFDResponse [16:01:55]1017 (14) - 77093643461234 [16:01:55]1041 (16) - 0000000002098592 [16:01:55]1040 (4) - 1718 [16:01:55]1012 (4) - 11.07.2024 10:00 [16:01:55]1206 (1) - 0 [16:01:55]OFD Sender: Remove packet 1718 [16:01:55]ProducePacketName [16:01:55]name=ofd_packets/00001718 [16:01:55]NVStorageDeleteData [16:01:55]Read from MH i2c: *** Stop cut motor [16:01:55]01 *** Cut end [16:01:55] [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 07 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 FF 0F AD [16:01:55]process_action close_receipt done [16:01:55]requested_data is exist [16:01:55]produce_requested_data [16:01:55]requested_item fm.sn is exist - process it [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 11 00 00 [16:01:55]Write to MH i2c: E2 08 00 94 05 80 11 00 00 00 00 00 00 13 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 94 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 69 [16:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:01:56]wFMCommunicate OK [16:01:56]requested_item fd.num is exist - process it [16:01:56]SAM_PROTO_GetFieldsCounters [16:01:56]wFMCommunicate request_size=4 [16:01:56]MH_SAM_APDU [16:01:56]CAPDU: 80 13 00 00 [16:01:56]Write to MH i2c: E2 08 00 95 05 80 13 00 00 00 00 00 00 16 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:56]Read from MH i2c: E2 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: E2 OFD Sender: No OFD packet to send [16:01:56]62 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: E2 62 00 95 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B6 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [16:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B6 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:56]wFMCommunicate OK [16:01:56]SAM_PROTO_GetFieldsCounters done [16:01:56]requested_item shift.num is exist - process it [16:01:56]requested_item shift.opened is exist - process it [16:01:56]req_shift_opened [16:01:56]FM_GetShiftState [16:01:56]SAM_PROTO_GetShiftState [16:01:56]wFMCommunicate request_size=4 [16:01:56]MH_SAM_APDU [16:01:56]CAPDU: 80 13 01 00 [16:01:56]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:56]Read from MH i2c: E2 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: E2 0E 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 76 [16:01:56]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:56]wFMCommunicate OK [16:01:56]SAM_PROTO_GetShiftState done [16:01:56]FM_GetShiftState done [16:01:56]req_shift_opened done [16:01:56]requested_item shift.open_date is exist - process it [16:01:56]req_shift_open_date [16:01:56]req_shift_open_date done [16:01:56]produce_requested_data done [16:01:56]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1718,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:01:56]process_action_free close_receipt [16:01:56]json_value_free [16:01:56]json_value_free done [16:01:56]process_json_proto returns [16:01:56]Send response to host [16:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1718,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:01:56]free response buf [16:01:56]execute_script done [16:01:56]execute_script returns [16:01:56]free content buf [16:01:56]Sock 7.Close socket [16:01:56]Sock 7.Thread stoped [16:01:58]accept exits with 8 [16:01:58]New connection [16:01:58]New thread 3067227492 created [16:01:58]Thread 3067370852 joined [16:01:58]Waiting for new connection... [16:01:58] Sock 8.Parse request [16:01:58]Sock 8.Check first char [16:01:58]Sock 8.First char is OK [16:01:58]request: POST /json_proto HTTP/1.0 [16:01:58]Method: POST [16:01:58]URL: /json_proto [16:01:58]Method is POST - this is cgi request [16:01:58]url: /json_proto [16:01:58]query_string will be loaded in cgi processing [16:01:58]execute_cgi json_proto POST (null) [16:01:58]execute_cgi path=json_proto method=POST [16:01:58]POST find Content-Length [16:01:58]Host: 172.17.35.133:8080 [16:01:58]Content-Length: 893 [16:01:58]Content-Type: application/json [16:01:58] [16:01:58]POST finish read [16:01:58]Found Content-Length = 893 [16:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256193", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:58]execute_script... [16:01:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256193", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:58]POST & json_proto [16:01:58]process_json_proto [16:01:58]json parsed OK: [16:01:58]protocol is kg_v1.0 [16:01:58]action value=close_receipt [16:01:58]process_action close_receipt [16:01:58]cmd_close_receipt [16:01:58]MH_GetDate [16:01:58]Write to MH i2c: F0 00 00 97 05 8B [16:01:58]Write i2c OK [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: F0 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: F0 09 00 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: F0 09 00 97 05 00 F7 01 90 66 1B 28 2A 66 55 [16:01:58]GetLastDocTimeStamp 1720713709 [16:01:58]current date 1720713719 [16:01:58]FM_GetShiftState [16:01:58]SAM_PROTO_GetShiftState [16:01:58]wFMCommunicate request_size=4 [16:01:58]MH_SAM_APDU [16:01:58]CAPDU: 80 13 01 00 [16:01:58]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [16:01:58]Write i2c OK [16:01:58]MH_I2C_Read... [16:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:58]Read from MH i2c: E2 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 0E 00 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 78 [16:01:58]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:01:58]wFMCommunicate OK [16:01:58]SAM_PROTO_GetShiftState done [16:01:58]FM_GetShiftState done [16:01:58]opened in 1720656698 [16:01:58]opened+sec_in_day 1720743098 [16:01:58]quantity*price = 8500 [16:01:58]sum+1 = 8501 [16:01:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 35 11.07.2024 16:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1719 ФПД: 42607313359027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160159&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1719&fm=42607313359027&tin=02508201610067®Number=0000000000177495&sum=22500 0 [16:02:01]StoreToDocumentArchive [16:02:01]shift 22 fd 1719 [16:02:01]save to /storage/0022/doc_00001719 [16:02:01]save last doc name /storage/0022/doc_00001719 to /storage/kkm_last_doc_name [16:02:01]save OK [16:02:01]Clear old archive folders... [16:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=397 [16:02:01]tlvbuf is 00C18450 [16:02:01]SAM_PROTO_ClearQueue [16:02:01]wFMCommunicate request_size=4 [16:02:01]MH_SAM_APDU [16:02:01]CAPDU: 80 09 00 00 [16:02:01]Write to MH i2c: E2 08 00 A5 05 80 09 00 00 00 00 00 00 1C [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [16:02:01]RAPDU: 90 00 [16:02:01]wFMCommunicate OK [16:02:01]SAM_PROTO_ClearQueue done [16:02:01]KKMCreateOFDPacket [16:02:01]OFDProtocolAddRootSTLVToBuf [16:02:01]FM_MakeSignedData [16:02:01]FM_MakeSignedData [16:02:01]SAM_PROTO_SignData [16:02:01]wFMCommunicate request_size=4 [16:02:01]MH_SAM_APDU [16:02:01]CAPDU: 80 0D 01 02 [16:02:01]Write to MH i2c: E2 08 00 A6 05 80 0D 01 02 00 00 00 00 24 [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [16:02:02]RAPDU: 90 00 [16:02:02]wFMCommunicate OK [16:02:02]wFMCommunicate request_size=255 [16:02:02]MH_SAM_APDU [16:02:02]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 [16:02:02]Write to MH i2c: E2 02 01 A7 05 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 00 00 11 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [16:02:03]RAPDU: 90 00 [16:02:03]wFMCommunicate OK [16:02:03]wFMCommunicate request_size=156 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B7 06 00 00 35 04 06 00 26 C0 49 C7 10 B3 [16:02:03]Write to MH i2c: E2 9F 00 A8 05 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B7 06 00 00 35 04 06 00 26 C0 49 C7 10 B3 00 00 87 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 03 02 [16:02:04]Write to MH i2c: E2 08 00 A9 05 80 0D 03 02 00 00 00 00 29 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 A9 05 00 DA 04 2D 26 82 D1 D2 B6 90 00 36 [16:02:04]RAPDU: DA 04 2D 26 82 D1 D2 B6 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_SignData done [16:02:04]FM_MakeSignedData done [16:02:04]CreateOFDProtocolMessage [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 11 00 00 [16:02:04]Write to MH i2c: E2 08 00 AA 05 80 11 00 00 00 00 00 00 29 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 AA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7F [16:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:02:04]wFMCommunicate OK [16:02:04]CreateOFDProtocolMessage done [16:02:04]OFDSenderStorePacket 1719 [16:02:04]StoreOFDPacket docnum=1719 [16:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A1 01 00 00 8A 1A 99 01 E8 BC 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F7 01 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B7 06 00 00 35 04 06 00 26 C0 49 C7 10 B3 DA 04 2D 26 82 D1 D2 B6 [16:02:04]CheckFolder [16:02:04]dirname=/storage/ofd_packets [16:02:04]CheckFolder done [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00001719 [16:02:04]NVStorageSaveData ofd_packets/00001719 [16:02:04]File name is /storage/ofd_packets/00001719 [16:02:04]Write 447 bytes [16:02:04]NVStorageSaveData done [16:02:04]OFDSenderStorePacket done [16:02:04]KKMCreateOFDPacket done [16:02:04]NVStorageSaveData kkm_last_timestamp [16:02:04]File name is /storage/kkm_last_timestamp [16:02:04]Write 4 bytes [16:02:04]NVStorageSaveData done [16:02:04]ExternCall_PrintAddStr [16:02:04]wPrintStart [16:02:04]Write to MH i2c: 01 00 00 AB 05 B0 [16:02:04]OFD Sender: Processing packet 1719 [packets to send 1, broken 0] [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00001719 [16:02:04]OFD Sender: To server: pG, [16:02:04]CommunicateWithHost lk.salyk.kg:30040 [16:02:04]ConnectInit lk.salyk.kg [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 AB 05 00 00 00 00 00 FF 0F C5 [16:02:04]RasterBufferAndPrint [16:02:04]line Счет N : (3)256193 [16:02:04]line ИНН: 02508201610067 [16:02:04]line Контрольно-Кассовый Чек [16:02:04]line ПРОДАЖА [16:02:04]line Товар: 4600682557456 [16:02:04]line Напиток FLash up energy эн ж/б 0,5/0,45л [16:02:04]line 1.000 * 85.00 [16:02:04]line = 85.00 [16:02:04]line НДС 12% НСП 1% [16:02:04]line > о реализуемом товаре [16:02:04]line Товар: 48747059 [16:02:04]line Сигареты Winston Legend Blue [16:02:04]line 1.000 * 140.00 [16:02:04]line = 140.00 [16:02:04]line НДС 12% НСП 1% [16:02:04]line > о реализуемом товаре [16:02:04]line ИТОГО: 225.00 [16:02:04]line НСП 1% : 1.99 [16:02:04]line НДС 12% : 23.90 [16:02:04]line Наличными: 225.00 [16:02:04]line Безнал.: 0.00 [16:02:04]line Место: АЗС № 76 "Партнер Нефть" [16:02:04]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:02:04]line СНО: Общий режим [16:02:04]line Чек 35 11.07.2024 16:01 [16:02:04]line Смена: 22 ФФД: 1.0 [16:02:04]line ЗНМ: 0300000124 [16:02:04]line РНМ: 0000000000177495 [16:02:04]line Версия ККМ: 001 [16:02:04]Connected sock=7 [16:02:04]Data to sent: line ФМ: 0000000002098592 [16:02:04]87 line ФД: 1719 [16:02:04]line ФПД: 42607313359027 [16:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160159&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1719&fm=42607313359027&tin=02508201610067®Number=0000000000177495&sum=22500 [16:02:04]line 0 [16:02:04]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A1 01 00 00 8A 1A 99 01 E8 BC 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 written 0, free lines is 4095 [16:02:05]78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 Write to MH i2c: 01 01 00 00 01 00 BC DB 04 05 01 E0 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 [16:02:05]00 Write i2c OK [16:02:05]00 MH_I2C_Read... [16:02:05]1F 04 02 00 01 Read from MH i2c: 00 01 12 [16:02:05]04 MH_I2C_Read... [16:02:05]04 00 23 Read from MH i2c: 00 01 00 07 00 00 F4 [16:02:05]03 04 00 F7 01 90 MH_I2C_Read... [16:02:05]66 0E 04 04 Read from MH i2c: 00 01 16 07 00 00 00 00 DB B9 04 01 00 01 0D 05 04 10 00 30 30 00 30 00 30 00 30 00 30 30 30 30 30 31 37 37 34 00 39 80 35 0E 11 75 04 [16:02:06]10 RasterBufferAndPrint [16:02:06]00 line [16:02:06]line [16:02:06]line [16:02:06]line [16:02:06]line [16:02:06]30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B7 06 00 00 35 04 06 written 0, free lines is 4034 [16:02:06]00 26 C0 49 C7 10 B3 DA 04 2D MH_Cut [16:02:06]26 Write to MH i2c: 82 D1 D1 01 D2 00 B6 [16:02:06]E2 05 01 B9 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: D1 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: D1 01 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: D1 01 00 E2 05 00 B8 [16:02:06]Write to MH i2c: 01 00 00 E3 05 E8 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 5E 47 47 00 *** Cut start [16:02:06]A6 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 *** Partial cut [16:02:06]33 34 36 *** CUTSNS_PIN = 1 [16:02:06]31 32 33 34 11 *** CUTSNS_PIN = 0 [16:02:06]04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 *** Brake cut motor [16:02:06]38 35 39 32 10 04 04 00 B7 06 00 00 F4 03 04 00 37 AD 8F 66 B6 04 01 00 00 29 7E 02 BE 16 95 A6 09 [16:02:06]CommunicateWithHost err = 0 [16:02:06]CheckOFDResponse [16:02:06]1017 (14) - 77093643461234 [16:02:06]1041 (16) - 0000000002098592 [16:02:06]1040 (4) - 1719 [16:02:06]1012 (4) - 11.07.2024 10:00 [16:02:06]1206 (1) - 0 [16:02:06]OFD Sender: Remove packet 1719 [16:02:06]ProducePacketName [16:02:06]name=ofd_packets/00001719 [16:02:06]NVStorageDeleteData [16:02:07]Read from MH i2c: *** Stop cut motor [16:02:07]01 *** Cut end [16:02:07] [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: 01 07 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 FF 0F FD [16:02:07]process_action close_receipt done [16:02:07]requested_data is exist [16:02:07]produce_requested_data [16:02:07]requested_item fm.sn is exist - process it [16:02:07]wFMCommunicate request_size=4 [16:02:07]MH_SAM_APDU [16:02:07]CAPDU: 80 11 00 00 [16:02:07]Write to MH i2c: E2 08 00 E4 05 80 11 00 00 00 00 00 00 63 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:07]Read from MH i2c: E2 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 17 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 17 00 E4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B9 [16:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:02:07]wFMCommunicate OK [16:02:07]requested_item fd.num is exist - process it [16:02:07]SAM_PROTO_GetFieldsCounters [16:02:07]wFMCommunicate request_size=4 [16:02:07]MH_SAM_APDU [16:02:07]CAPDU: 80 13 00 00 OFD Sender: No OFD packet to send [16:02:07] [16:02:07]Write to MH i2c: E2 08 00 E5 05 80 13 00 00 00 00 00 00 66 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:07]Read from MH i2c: E2 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 62 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 62 00 E5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 B7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_GetFieldsCounters done [16:02:08]requested_item shift.num is exist - process it [16:02:08]requested_item shift.opened is exist - process it [16:02:08]req_shift_opened [16:02:08]FM_GetShiftState [16:02:08]SAM_PROTO_GetShiftState [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 13 01 00 [16:02:08]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:08]Read from MH i2c: E2 0E 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 C6 [16:02:08]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_GetShiftState done [16:02:08]FM_GetShiftState done [16:02:08]req_shift_opened done [16:02:08]requested_item shift.open_date is exist - process it [16:02:08]req_shift_open_date [16:02:08]req_shift_open_date done [16:02:08]produce_requested_data done [16:02:08]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1719,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:02:08]process_action_free close_receipt [16:02:08]json_value_free [16:02:08]json_value_free done [16:02:08]process_json_proto returns [16:02:08]Send response to host [16:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1719,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:02:08]free response buf [16:02:08]execute_script done [16:02:08]execute_script returns [16:02:08]free content buf [16:02:08]Sock 8.Close socket [16:02:08]Sock 8.Thread stoped [16:02:09]accept exits with 10 [16:02:09]New connection [16:02:09]New thread 3067370852 created [16:02:09]Thread 3067227492 joined [16:02:09]Waiting for new connection... [16:02:09] Sock 10.Parse request [16:02:09]Sock 10.Check first char [16:02:09]Sock 10.First char is OK [16:02:09]request: POST /json_proto HTTP/1.0 [16:02:09]Method: POST [16:02:09]URL: /json_proto [16:02:09]Method is POST - this is cgi request [16:02:09]url: /json_proto [16:02:09]query_string will be loaded in cgi processing [16:02:09]execute_cgi json_proto POST (null) [16:02:09]execute_cgi path=json_proto method=POST [16:02:09]POST find Content-Length [16:02:09]Host: 172.17.35.133:8080 [16:02:09]Content-Length: 706 [16:02:09]Content-Type: application/json [16:02:09] [16:02:09]POST finish read [16:02:09]Found Content-Length = 706 [16:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256194", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:09]execute_script... [16:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256194", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:09]POST & json_proto [16:02:09]process_json_proto [16:02:09]json parsed OK: [16:02:09]protocol is kg_v1.0 [16:02:09]action value=close_receipt [16:02:09]process_action close_receipt [16:02:09]cmd_close_receipt [16:02:09]MH_GetDate [16:02:09]Write to MH i2c: F0 00 00 E7 05 DB [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: F0 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: F0 09 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: F0 09 00 E7 05 00 01 02 90 66 1B 28 2A 66 B0 [16:02:09]GetLastDocTimeStamp 1720713719 [16:02:09]current date 1720713729 [16:02:09]FM_GetShiftState [16:02:09]SAM_PROTO_GetShiftState [16:02:09]wFMCommunicate request_size=4 [16:02:09]MH_SAM_APDU [16:02:09]CAPDU: 80 13 01 00 [16:02:09]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:09]Read from MH i2c: E2 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 0E 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 C8 [16:02:09]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:02:09]wFMCommunicate OK [16:02:09]SAM_PROTO_GetShiftState done [16:02:09]FM_GetShiftState done [16:02:09]opened in 1720656698 [16:02:09]opened+sec_in_day 1720743098 [16:02:09]quantity*price = 10700 [16:02:09]sum+1 = 10701 [16:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 36 11.07.2024 16:02 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1720 ФПД: 15076732431403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160210&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1720&fm=15076732431403&tin=02508201610067®Number=0000000000177495&sum=10700 0 [16:02:12]StoreToDocumentArchive [16:02:12]shift 22 fd 1720 [16:02:12]save to /storage/0022/doc_00001720 [16:02:12]save last doc name /storage/0022/doc_00001720 to /storage/kkm_last_doc_name [16:02:12]save OK [16:02:12]Clear old archive folders... [16:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=298 [16:02:12]tlvbuf is 00B03340 [16:02:12]SAM_PROTO_ClearQueue [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 09 00 00 [16:02:12]Write to MH i2c: E2 08 00 F5 05 80 09 00 00 00 00 00 00 6C [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]SAM_PROTO_ClearQueue done [16:02:12]KKMCreateOFDPacket [16:02:12]OFDProtocolAddRootSTLVToBuf [16:02:12]FM_MakeSignedData [16:02:12]FM_MakeSignedData [16:02:12]SAM_PROTO_SignData [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 0D 01 02 [16:02:12]Write to MH i2c: E2 08 00 F6 05 80 0D 01 02 00 00 00 00 74 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:13]Read from MH i2c: E2 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: E2 03 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [16:02:13]RAPDU: 90 00 [16:02:13]wFMCommunicate OK [16:02:13]wFMCommunicate request_size=255 [16:02:13]MH_SAM_APDU [16:02:13]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 02 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [16:02:13]Write to MH i2c: E2 02 01 F7 05 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 02 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 AD [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 03 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [16:02:14]RAPDU: 90 00 [16:02:14]wFMCommunicate OK [16:02:14]wFMCommunicate request_size=57 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B8 06 00 00 35 04 06 00 0D B6 53 47 EC 2B [16:02:14]Write to MH i2c: E2 3C 00 F8 05 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B8 06 00 00 35 04 06 00 0D B6 53 47 EC 2B 00 00 71 [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 03 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [16:02:14]RAPDU: 90 00 [16:02:14]wFMCommunicate OK [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 0D 03 02 [16:02:14]Write to MH i2c: E2 08 00 F9 05 80 0D 03 02 00 00 00 00 79 [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 0B 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 0B 00 F9 05 00 96 47 BB 53 DB E8 22 09 90 00 53 [16:02:15]RAPDU: 96 47 BB 53 DB E8 22 09 90 00 [16:02:15]wFMCommunicate OK [16:02:15]SAM_PROTO_SignData done [16:02:15]FM_MakeSignedData done [16:02:15]CreateOFDProtocolMessage [16:02:15]wFMCommunicate request_size=4 [16:02:15]MH_SAM_APDU [16:02:15]CAPDU: 80 11 00 00 [16:02:15]Write to MH i2c: E2 08 00 FA 05 80 11 00 00 00 00 00 00 79 [16:02:15]Write i2c OK [16:02:15]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 17 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 17 00 FA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CF [16:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:02:15]wFMCommunicate OK [16:02:15]CreateOFDProtocolMessage done [16:02:15]OFDSenderStorePacket 1720 [16:02:15]StoreOFDPacket docnum=1720 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 68 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0D [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572568 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 6675144+1714038811=1720713955 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 68 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0E [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 E4 02 90 66 1B 28 2A 66 AE [16:05:56]Current date/time: 11.07.2024 16:05 [16:05:56]FM_Init [16:05:56]wFMConnect [16:05:56]MH_SAM_On [16:05:56]Write to MH i2c: E0 00 00 08 00 E7 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_init finished! [16:05:56]*** atr: [16:05:56]*** 0F 3B D5 18 FF 81 91 FE [16:05:56]*** 1F C3 80 73 C8 21 10 0A [16:05:56]*** 00 00 00 00 00 00 00 00 [16:05:56]*** 00 00 00 00 00 00 00 00 [16:05:56]*** 00 00 00 00 00 00 00 00 [16:05:56]*** 00 00 00 00 00 00 00 00 [16:05:56]*** 00 00 00 00 00 00 00 00 [16:05:56]*** 00 00 00 00 00 00 00 00 [16:05:56]Read from MH i2c: E0 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E0 10 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:05:56]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:05:56]wFMCommunicate request_size=10 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:05:56]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:05:56]RAPDU: 90 00 [16:05:56]wFMCommunicate OK [16:05:56]wFMCommunicate request_size=4 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 11 00 00 [16:05:56]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 17 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DA [16:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:05:56]wFMCommunicate OK [16:05:56]Detected FM SN is 0000000002098592 [16:05:56]Stored FM SN is 0000000002098592 [16:05:56]wFMCommunicate request_size=9 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 16 00 00 04 4C 6E 00 00 [16:05:56]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 4C 6E 00 00 00 00 4C [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:05:56]RAPDU: 90 00 [16:05:56]wFMCommunicate OK [16:05:56]FM PIN OK [16:05:56]wFMCommunicate request_size=8 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 14 04 00 03 02 00 01 [16:05:56]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:05:56]RAPDU: 90 00 [16:05:56]wFMCommunicate OK [16:05:56]wFMCommunicate request_size=13 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:05:56]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:05:56]RAPDU: 90 00 [16:05:56]wFMCommunicate OK [16:05:56]wFMCommunicate request_size=4 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 11 00 00 [16:05:56]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 17 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DE [16:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:05:56]wFMCommunicate OK [16:05:56]DocumentArchiveInit [16:05:56]Start Httpd... [16:05:56]Httpd thread 3067137380 created [16:05:56]Write to MH i2c: 01 00 00 0F 00 0F [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: 01 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: 01 07 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:05:56]Allocated Socket 5 [16:05:56]Bind OK [16:05:56]Listen OK [16:05:56]httpd running on port 8080 [16:05:56]Waiting for new connection... [16:05:56]MH Int Process started [16:05:56]OFD Sender: No OFD packet to send [16:05:58]accept exits with 6 [16:05:58]New connection [16:05:58]New thread 3066850660 created [16:05:58]Waiting for new connection... [16:05:58] Sock 6.Parse request [16:05:58]Sock 6.Check first char [16:05:58]Sock 6.First char is OK [16:05:58]request: POST /json_proto HTTP/1.0 [16:05:58]Method: POST [16:05:58]URL: /json_proto [16:05:58]Method is POST - this is cgi request [16:05:58]url: /json_proto [16:05:58]query_string will be loaded in cgi processing [16:05:58]execute_cgi json_proto POST (null) [16:05:58]execute_cgi path=json_proto method=POST [16:05:58]POST find Content-Length [16:05:58]Host: 172.17.35.133:8080 [16:05:58]Content-Length: 215 [16:05:58]Content-Type: application/json [16:05:58] [16:05:58]POST finish read [16:05:58]Found Content-Length = 215 [16:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:58]execute_script... [16:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:58]POST & json_proto [16:05:58]process_json_proto [16:05:58]json parsed OK: [16:05:58]protocol is kg_v1.0 [16:05:58]action value=get_value [16:05:58]process_action get_value [16:05:58]cmd_get_value [16:05:58]process_action get_value done [16:05:58]requested_data is exist [16:05:58]produce_requested_data [16:05:58]requested_item kkm.sn is exist - process it [16:05:58]requested_item kkm.ver is exist - process it [16:05:58]requested_item fm.sn is exist - process it [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 11 00 00 [16:05:58]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 17 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E0 [16:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:05:58]wFMCommunicate OK [16:05:58]requested_item fd.num is exist - process it [16:05:58]SAM_PROTO_GetFieldsCounters [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 13 00 00 [16:05:58]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 62 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 C7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 C7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:58]wFMCommunicate OK [16:05:58]SAM_PROTO_GetFieldsCounters done [16:05:58]requested_item shift.num is exist - process it [16:05:58]requested_item shift.opened is exist - process it [16:05:58]req_shift_opened [16:05:58]FM_GetShiftState [16:05:58]SAM_PROTO_GetShiftState [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 13 01 00 [16:05:58]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 0E 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 ED [16:05:58]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:05:58]wFMCommunicate OK [16:05:58]SAM_PROTO_GetShiftState done [16:05:58]FM_GetShiftState done [16:05:58]req_shift_opened done [16:05:58]requested_item shift.open_date is exist - process it [16:05:58]req_shift_open_date [16:05:58]req_shift_open_date done [16:05:58]produce_requested_data done [16:05:58]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1735,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:05:58]process_action_free get_value [16:05:58]json_value_free [16:05:58]json_value_free done [16:05:58]process_json_proto returns [16:05:58]Send response to host [16:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1735,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:05:58]free response buf [16:05:58]execute_script done [16:05:58]execute_script returns [16:05:58]free content buf [16:05:58]Sock 6.Close socket [16:05:58]Sock 6.Thread stoped [16:05:58]accept exits with 9 [16:05:58]New connection [16:05:58]New thread 3066707300 created [16:05:58]Thread 3066850660 joined [16:05:58]Waiting for new connection... [16:05:58] Sock 9.Parse request [16:05:58]Sock 9.Check first char [16:05:58]Sock 9.First char is OK [16:05:58]request: POST /json_proto HTTP/1.0 [16:05:58]Method: POST [16:05:58]URL: /json_proto [16:05:58]Method is POST - this is cgi request [16:05:58]url: /json_proto [16:05:58]query_string will be loaded in cgi processing [16:05:58]execute_cgi json_proto POST (null) [16:05:58]execute_cgi path=json_proto method=POST [16:05:58]POST find Content-Length [16:05:58]Host: 172.17.35.133:8080 [16:05:58]Content-Length: 331 [16:05:58]Content-Type: application/json [16:05:58] [16:05:58]POST finish read [16:05:58]Found Content-Length = 331 [16:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:05:58]execute_script... [16:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:05:58]POST & json_proto [16:05:58]process_json_proto [16:05:58]json parsed OK: [16:05:58]protocol is kg_v1.0 [16:05:58]action value=get_value [16:05:58]process_action get_value [16:05:58]cmd_get_value [16:05:58]process_action get_value done [16:05:58]requested_data is exist [16:05:58]produce_requested_data [16:05:58]requested_item fm.sale.total is exist - process it [16:05:58]SAM_PROTO_GetFMData [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 13 03 00 [16:05:58]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:05:59]Read from MH i2c: E2 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 13 00 00 BA 04 85 04 B6 04 6E 04 04 00 9B 06 00 00 69 04 9F 00 6F 04 04 00 99 06 00 00 B1 04 04 00 67 A3 2B 04 70 04 04 00 A8 13 78 03 72 04 03 00 BF 8F B3 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 61 71 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 71 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 09 [16:05:59]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 9B 06 00 00 69 04 9F 00 6F 04 04 00 99 06 00 00 B1 04 04 00 67 A3 2B 04 70 04 04 00 A8 13 78 03 72 04 03 00 BF 8F B3 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 61 71 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 71 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:05:59]wFMCommunicate OK [16:05:59]wFMCommunicate request_size=4 [16:05:59]MH_SAM_APDU [16:05:59]CAPDU: 80 17 00 00 [16:05:59]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:05:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:59]Read from MH i2c: E2 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 14 00 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 91 [16:05:59]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [16:05:59]wFMCommunicate OK [16:05:59]wFMCommunicate request_size=4 [16:05:59]MH_SAM_APDU [16:05:59]CAPDU: 80 17 00 00 [16:05:59]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:05:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:59]Read from MH i2c: E2 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 15 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C1 [16:05:59]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [16:05:59]wFMCommunicate OK [16:05:59]wFMCommunicate request_size=4 [16:05:59]MH_SAM_APDU [16:05:59]CAPDU: 80 17 00 00 [16:05:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:06:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:00]Read from MH i2c: E2 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 FD 00 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 0E [16:06:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [16:06:00]wFMCommunicate OK [16:06:00]wFMCommunicate request_size=4 [16:06:00]MH_SAM_APDU [16:06:00]CAPDU: 80 17 00 00 [16:06:00]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:06:00]Write i2c OK [16:06:00]MH_I2C_Read... [16:06:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [16:06:00]Read from MH i2c: E2 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 D7 00 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 D7 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7A [16:06:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:06:00]wFMCommunicate OK [16:06:00]SAM_PROTO_GetFMData done [16:06:00]requested_item fm.sale_refund.total is exist - process it [16:06:00]requested_item fm.buy.total is exist - process it [16:06:00]requested_item shift.sale.total is exist - process it [16:06:00]SAM_PROTO_GetShiftData [16:06:00]wFMCommunicate request_size=4 [16:06:00]MH_SAM_APDU [16:06:00]CAPDU: 80 13 02 00 [16:06:00]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:06:00]Write i2c OK [16:06:00]MH_I2C_Read... [16:06:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:06:00]Read from MH i2c: E2 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 FD 00 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 33 00 00 00 69 04 9B 00 6F 04 04 00 33 00 00 00 B1 04 03 00 D4 E8 0E 70 04 03 00 D0 5B 0B 72 04 03 00 04 8D 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 4F 95 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C1 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 18 [16:06:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 33 00 00 00 69 04 9B 00 6F 04 04 00 33 00 00 00 B1 04 03 00 D4 E8 0E 70 04 03 00 D0 5B 0B 72 04 03 00 04 8D 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 4F 95 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C1 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:06:00]wFMCommunicate OK [16:06:00]wFMCommunicate request_size=4 [16:06:00]MH_SAM_APDU [16:06:00]CAPDU: 80 17 00 00 [16:06:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:06:00]Write i2c OK [16:06:00]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 FD 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [16:06:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [16:06:01]wFMCommunicate OK [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 17 00 00 [16:06:01]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]OFD Sender: No OFD packet to send [16:06:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 FD 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [16:06:01]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:06:01]wFMCommunicate OK [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 17 00 00 [16:06:01]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 FD 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [16:06:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [16:06:01]wFMCommunicate OK [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 17 00 00 [16:06:01]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:06:02]Read from MH i2c: E2 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 CB 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [16:06:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:06:02]wFMCommunicate OK [16:06:02]SAM_PROTO_GetShiftData done [16:06:02]requested_item shift.sale.total_cash is exist - process it [16:06:02]requested_item shift.sale_refund.total is exist - process it [16:06:02]requested_item shift.sale_refund.total_cash is exist - process it [16:06:02]requested_item shift.buy.total is exist - process it [16:06:02]requested_item shift.buy.total_cash is exist - process it [16:06:02]produce_requested_data done [16:06:02]produce_requested_data return {"fm.sale.total":699687.43,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":9771.08,"shift.sale.total_cash":7444.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:06:02]process_action_free get_value [16:06:02]json_value_free [16:06:02]json_value_free done [16:06:02]process_json_proto returns [16:06:02]Send response to host [16:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":699687.43,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":9771.08,"shift.sale.total_cash":7444.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:06:02]free response buf [16:06:02]execute_script done [16:06:02]execute_script returns [16:06:02]free content buf [16:06:02]Sock 9.Close socket [16:06:02]Sock 9.Thread stoped [16:06:02]accept exits with 6 [16:06:02]New connection [16:06:02]New thread 3066850660 created [16:06:02]Thread 3066707300 joined [16:06:02]Waiting for new connection... [16:06:02] Sock 6.Parse request [16:06:02]Sock 6.Check first char [16:06:02]Sock 6.First char is OK [16:06:02]request: POST /json_proto HTTP/1.0 [16:06:02]Method: POST [16:06:02]URL: /json_proto [16:06:02]Method is POST - this is cgi request [16:06:02]url: /json_proto [16:06:02]query_string will be loaded in cgi processing [16:06:02]execute_cgi json_proto POST (null) [16:06:02]execute_cgi path=json_proto method=POST [16:06:02]POST find Content-Length [16:06:02]Host: 172.17.35.133:8080 [16:06:02]Content-Length: 711 [16:06:02]Content-Type: application/json [16:06:02] [16:06:02]POST finish read [16:06:02]Found Content-Length = 711 [16:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256210", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:02]execute_script... [16:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256210", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:02]POST & json_proto [16:06:02]process_json_proto [16:06:02]json parsed OK: [16:06:02]protocol is kg_v1.0 [16:06:02]action value=close_receipt [16:06:02]process_action close_receipt [16:06:02]cmd_close_receipt [16:06:02]MH_GetDate [16:06:02]Write to MH i2c: F0 00 00 1D 00 0C [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: F0 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: F0 09 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: F0 09 00 1D 00 00 EB 02 90 66 1B 28 2A 66 CB [16:06:02]GetLastDocTimeStamp 48 [16:06:02]current date 1720713963 [16:06:02]FM_GetShiftState [16:06:02]SAM_PROTO_GetShiftState [16:06:02]wFMCommunicate request_size=4 [16:06:02]MH_SAM_APDU [16:06:02]CAPDU: 80 13 01 00 [16:06:02]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 0E 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F9 [16:06:03]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:06:03]wFMCommunicate OK [16:06:03]SAM_PROTO_GetShiftState done [16:06:03]FM_GetShiftState done [16:06:03]opened in 1720656698 [16:06:03]opened+sec_in_day 1720743098 [16:06:03]quantity*price = 11000 [16:06:03]sum+1 = 11001 [16:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 52 11.07.2024 16:06 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1736 ФПД: 133515107649351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160603&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1736&fm=133515107649351&tin=02508201610067®Number=0000000000177495&sum=11000 0 [16:06:04]StoreToDocumentArchive [16:06:04]shift 22 fd 1736 [16:06:04]save to /storage/0022/doc_00001736 [16:06:04]save last doc name /storage/0022/doc_00001736 to /storage/kkm_last_doc_name [16:06:04]save OK [16:06:04]Clear old archive folders... [16:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=303 [16:06:04]tlvbuf is 01E28AF0 [16:06:04]SAM_PROTO_ClearQueue [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 09 00 00 [16:06:04]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:04]Read from MH i2c: E2 03 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:06:04]RAPDU: 90 00 [16:06:04]wFMCommunicate OK [16:06:04]SAM_PROTO_ClearQueue done [16:06:04]KKMCreateOFDPacket [16:06:04]OFDProtocolAddRootSTLVToBuf [16:06:04]FM_MakeSignedData [16:06:04]FM_MakeSignedData [16:06:04]SAM_PROTO_SignData [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 0D 01 02 [16:06:04]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 03 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:06:04]RAPDU: 90 00 [16:06:04]wFMCommunicate OK [16:06:04]wFMCommunicate request_size=255 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EB 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D [16:06:04]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EB 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 00 00 C2 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 03 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:06:04]RAPDU: 90 00 [16:06:04]wFMCommunicate OK [16:06:04]wFMCommunicate request_size=62 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C8 06 00 00 35 04 06 00 79 6E 68 90 47 47 [16:06:04]Write to MH i2c: E2 41 00 2E 00 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C8 06 00 00 35 04 06 00 79 6E 68 90 47 47 00 00 29 [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:05]Read from MH i2c: E2 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 03 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:06:05]RAPDU: 90 00 [16:06:05]wFMCommunicate OK [16:06:05]wFMCommunicate request_size=4 [16:06:05]MH_SAM_APDU [16:06:05]CAPDU: 80 0D 03 02 [16:06:05]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:05]Read from MH i2c: E2 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 0B 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 0B 00 2F 00 00 43 E6 27 EB 8D 4F 83 B5 90 00 FA [16:06:05]RAPDU: 43 E6 27 EB 8D 4F 83 B5 90 00 [16:06:05]wFMCommunicate OK [16:06:05]SAM_PROTO_SignData done [16:06:05]FM_MakeSignedData done [16:06:05]CreateOFDProtocolMessage [16:06:05]wFMCommunicate request_size=4 [16:06:05]MH_SAM_APDU [16:06:05]CAPDU: 80 11 00 00 [16:06:05]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:05]Read from MH i2c: E2 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 17 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 00 [16:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:06:05]wFMCommunicate OK [16:06:05]CreateOFDProtocolMessage done [16:06:05]OFDSenderStorePacket 1736 [16:06:05]StoreOFDPacket docnum=1736 [16:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 43 01 00 00 B3 04 3B 01 F1 32 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EB 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C8 06 00 00 35 04 06 00 79 6E 68 90 47 47 43 E6 27 EB 8D 4F 83 B5 [16:06:05]CheckFolder [16:06:05]dirname=/storage/ofd_packets [16:06:05]CheckFolder done [16:06:05]ProducePacketName [16:06:05]name=ofd_packets/00001736 [16:06:05]NVStorageSaveData ofd_packets/00001736 [16:06:05]File name is /storage/ofd_packets/00001736 [16:06:05]Write 353 bytes [16:06:05]NVStorageSaveData done [16:06:05]OFDSenderStorePacket done [16:06:05]KKMCreateOFDPacket done [16:06:05]NVStorageSaveData kkm_last_timestamp [16:06:05]File name is /storage/kkm_last_timestamp [16:06:05]Write 4 bytes [16:06:05]NVStorageSaveData done [16:06:05]ExternCall_PrintAddStr [16:06:05]wPrintStart [16:06:05]Write to MH i2c: 01 00 00 31 00 31 [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 07 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:06:05]RasterBufferAndPrint [16:06:05]line Счет N : (3)256210 [16:06:05]line ИНН: 02508201610067 [16:06:05]line Контрольно-Кассовый Чек [16:06:05]line ПРОДАЖА [16:06:05]line Товар: 4870202521216 [16:06:05]line Напиток MAXI чай 1,2 зел.лимон (новый) [16:06:05]line 1.000 * 110.00 [16:06:05]line = 110.00 [16:06:05]line НДС 12% НСП 1% [16:06:05]line > о реализуемом товаре [16:06:05]line ИТОГО: 110.00 [16:06:05]line НСП 1% : 0.97 [16:06:05]line НДС 12% : 11.68 [16:06:05]line Наличными: 110.00 [16:06:05]line Безнал.: 0.00 [16:06:05]line Место: АЗС № 76 "Партнер Нефть" [16:06:05]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:06:05]line СНО: Общий режим [16:06:05]line Чек 52 11.07.2024 16:06 [16:06:05]line Смена: 22 ФФД: 1.0 [16:06:05]line ЗНМ: 0300000124 [16:06:05]line РНМ: 0000000000177495 [16:06:05]line Версия ККМ: 001 [16:06:05]line ФМ: 0000000002098592 [16:06:05]line ФД: 1736 [16:06:05]line ФПД: 133515107649351 [16:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160603&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1736&fm=133515107649351&tin=02508201610067®Number=0000000000177495&sum=11000 [16:06:05]line 0 [16:06:05]written 0, free lines is 4095 [16:06:05]OFD Sender: Processing packet 1736 [packets to send 1, broken 0] [16:06:05]ProducePacketName [16:06:05]name=ofd_packets/00001736 [16:06:05]OFD Sender: To server: pG, [16:06:05]CommunicateWithHost lk.salyk.kg:30040 [16:06:05]ConnectInit lk.salyk.kg [16:06:05]Connected sock=11 [16:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 43 01 00 00 B3 04 3B 01 F1 32 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EB 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C8 06 00 00 35 04 06 00 79 6E 68 90 47 47 43 E6 27 EB 8D 4F 83 B5 [16:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 6F 91 47 00 A1 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C8 06 00 00 F4 03 04 00 26 AE 8F 66 B6 04 01 00 00 EA 5F 7E EB 98 31 0B 60 [16:06:05]CommunicateWithHost err = 0 [16:06:05]CheckOFDResponse [16:06:05]1017 (14) - 77093643461234 [16:06:05]1041 (16) - 0000000002098592 [16:06:05]1040 (4) - 1736 [16:06:05]1012 (4) - 11.07.2024 10:04 [16:06:05]1206 (1) - 0 [16:06:05]OFD Sender: Remove packet 1736 [16:06:05]ProducePacketName [16:06:05]name=ofd_packets/00001736 [16:06:05]NVStorageDeleteData [16:06:05]Write to MH i2c: 01 00 00 5A 00 5A [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 07 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 5C 0D CA [16:06:05]RasterBufferAndPrint [16:06:05]line [16:06:05]line [16:06:05]line [16:06:05]line [16:06:05]line [16:06:05]written 0, free lines is 3442 [16:06:05]MH_Cut [16:06:05]Write to MH i2c: D1 01 00 61 00 01 33 [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: D1 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: D1 01 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: D1 01 00 61 00 00 32 [16:06:05]Write to MH i2c: 01 00 00 62 00 62 [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:06]OFD Sender: No OFD packet to send [16:06:06]*** Cut start [16:06:06]*** Partial cut [16:06:06]*** CUTSNS_PIN = 1 [16:06:06]*** CUTSNS_PIN = 0 [16:06:06]*** Brake cut motor [16:06:06]Read from MH i2c: 01 [16:06:06]MH_I2C_Read... [16:06:06]*** Stop cut motor [16:06:07]*** Cut end [16:06:07]Read from MH i2c: 01 07 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [16:06:07]process_action close_receipt done [16:06:07]requested_data is exist [16:06:07]produce_requested_data [16:06:07]requested_item fm.sn is exist - process it [16:06:07]wFMCommunicate request_size=4 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 11 00 00 [16:06:07]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 17 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 33 [16:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:06:07]wFMCommunicate OK [16:06:07]requested_item fd.num is exist - process it [16:06:07]SAM_PROTO_GetFieldsCounters [16:06:07]wFMCommunicate request_size=4 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 13 00 00 [16:06:07]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 62 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 C8 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16:06:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 C8 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:07]wFMCommunicate OK [16:06:07]SAM_PROTO_GetFieldsCounters done [16:06:07]requested_item shift.num is exist - process it [16:06:07]requested_item shift.opened is exist - process it [16:06:07]req_shift_opened [16:06:07]FM_GetShiftState [16:06:07]SAM_PROTO_GetShiftState [16:06:07]wFMCommunicate request_size=4 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 13 01 00 [16:06:07]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 0E 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 40 [16:06:07]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:06:07]wFMCommunicate OK [16:06:07]SAM_PROTO_GetShiftState done [16:06:07]FM_GetShiftState done [16:06:07]req_shift_opened done [16:06:07]requested_item shift.open_date is exist - process it [16:06:07]req_shift_open_date [16:06:07]req_shift_open_date done [16:06:07]produce_requested_data done [16:06:07]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1736,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:06:07]process_action_free close_receipt [16:06:07]json_value_free [16:06:07]json_value_free done [16:06:07]process_json_proto returns [16:06:07]Send response to host [16:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1736,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:06:07]free response buf [16:06:07]execute_script done [16:06:07]execute_script returns [16:06:07]free content buf [16:06:07]Sock 6.Close socket [16:06:07]Sock 6.Thread stoped [16:06:09]accept exits with 9 [16:06:09]New connection [16:06:09]New thread 3066707300 created [16:06:09]Thread 3066850660 joined [16:06:09]Waiting for new connection... [16:06:09] Sock 9.Parse request [16:06:09]Sock 9.Check first char [16:06:09]Sock 9.First char is OK [16:06:09]request: POST /json_proto HTTP/1.0 [16:06:09]Method: POST [16:06:09]URL: /json_proto [16:06:09]Method is POST - this is cgi request [16:06:09]url: /json_proto [16:06:09]query_string will be loaded in cgi processing [16:06:09]execute_cgi json_proto POST (null) [16:06:09]execute_cgi path=json_proto method=POST [16:06:09]POST find Content-Length [16:06:09]Host: 172.17.35.133:8080 [16:06:09]Content-Length: 2171 [16:06:09]Content-Type: application/json [16:06:09] [16:06:09]POST finish read [16:06:09]Found Content-Length = 2171 [16:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256211", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 539.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:09]execute_script... [16:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256211", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 539.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:09]POST & json_proto [16:06:09]process_json_proto [16:06:09]json parsed OK: [16:06:09]protocol is kg_v1.0 [16:06:09]action value=close_receipt [16:06:09]process_action close_receipt [16:06:09]cmd_close_receipt [16:06:09]MH_GetDate [16:06:09]Write to MH i2c: F0 00 00 66 00 55 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: F0 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: F0 09 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: F0 09 00 66 00 00 F2 02 90 66 1B 28 2A 66 1B [16:06:09]GetLastDocTimeStamp 1720713963 [16:06:09]current date 1720713970 [16:06:09]FM_GetShiftState [16:06:09]SAM_PROTO_GetShiftState [16:06:09]wFMCommunicate request_size=4 [16:06:09]MH_SAM_APDU [16:06:09]CAPDU: 80 13 01 00 [16:06:09]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:09]Read from MH i2c: E2 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 0E 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 42 [16:06:09]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:06:09]wFMCommunicate OK [16:06:09]SAM_PROTO_GetShiftState done [16:06:09]FM_GetShiftState done [16:06:09]opened in 1720656698 [16:06:09]opened+sec_in_day 1720743098 [16:06:09]quantity*price = 10700 [16:06:09]sum+1 = 10701 [16:06:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 539.00 НСП 1% : 4.77 НДС 12% : 57.22 Наличными: 539.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 53 11.07.2024 16:06 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1737 ФПД: 107995111570765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160610&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1737&fm=107995111570765&tin=02508201610067®Number=0000000000177495&sum=53900 0 [16:06:11]StoreToDocumentArchive [16:06:11]shift 22 fd 1737 [16:06:11]save to /storage/0022/doc_00001737 [16:06:11]save last doc name /storage/0022/doc_00001737 to /storage/kkm_last_doc_name [16:06:11]save OK [16:06:11]Clear old archive folders... [16:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=883 [16:06:11]tlvbuf is 01E286E0 [16:06:11]SAM_PROTO_ClearQueue [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 09 00 00 [16:06:11]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_ClearQueue done [16:06:11]KKMCreateOFDPacket [16:06:11]OFDProtocolAddRootSTLVToBuf [16:06:11]FM_MakeSignedData [16:06:11]FM_MakeSignedData [16:06:11]SAM_PROTO_SignData [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 01 02 [16:06:11]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=255 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 FA 03 00 73 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 [16:06:11]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 73 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 00 00 8A [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]wFMCommunicate request_size=255 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 02 02 FA 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 [16:06:12]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 00 00 D0 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]wFMCommunicate request_size=255 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 02 02 FA B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD [16:06:12]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 F9 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]wFMCommunicate request_size=142 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F2 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C9 06 00 00 35 04 06 00 62 38 92 43 3D 4D [16:06:13]Write to MH i2c: E2 91 00 79 00 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F2 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C9 06 00 00 35 04 06 00 62 38 92 43 3D 4D 00 00 09 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:13]Read from MH i2c: E2 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: E2 03 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [16:06:13]RAPDU: 90 00 [16:06:13]wFMCommunicate OK [16:06:13]wFMCommunicate request_size=4 [16:06:13]MH_SAM_APDU [16:06:13]CAPDU: 80 0D 03 02 [16:06:13]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:13]Read from MH i2c: E2 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: E2 0B 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: E2 0B 00 7A 00 00 D1 54 85 5D F1 48 2C 7F 90 00 E1 [16:06:13]RAPDU: D1 54 85 5D F1 48 2C 7F 90 00 [16:06:13]wFMCommunicate OK [16:06:13]SAM_PROTO_SignData done [16:06:13]FM_MakeSignedData done [16:06:13]CreateOFDProtocolMessage [16:06:13]wFMCommunicate request_size=4 [16:06:13]MH_SAM_APDU [16:06:13]CAPDU: 80 11 00 00 [16:06:13]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:13]Read from MH i2c: E2 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: E2 17 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4B [16:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:06:13]wFMCommunicate OK [16:06:13]CreateOFDProtocolMessage done [16:06:13]OFDSenderStorePacket 1737 [16:06:13]StoreOFDPacket docnum=1737 [16:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 87 03 00 00 62 F1 7F 03 68 FF 5A 03 01 00 03 00 73 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F2 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C9 06 00 00 35 04 06 00 62 38 92 43 3D 4D D1 54 85 5D F1 48 2C 7F [16:06:13]CheckFolder [16:06:13]dirname=/storage/ofd_packets [16:06:13]CheckFolder done [16:06:13]ProducePacketName [16:06:13]name=ofd_packets/00001737 [16:06:13]NVStorageSaveData ofd_packets/00001737 [16:06:13]File name is /storage/ofd_packets/00001737 [16:06:13]Write 933 bytes [16:06:13]NVStorageSaveData done [16:06:13]OFDSenderStorePacket done [16:06:13]KKMCreateOFDPacket done [16:06:13]NVStorageSaveData kkm_last_timestamp [16:06:13]File name is /storage/kkm_last_timestamp [16:06:13]Write 4 bytes [16:06:13]NVStorageSaveData done [16:06:13]ExternCall_PrintAddStr [16:06:13]wPrintStart [16:06:13]Write to MH i2c: 01 00 00 7C 00 7C [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 07 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [16:06:13]RasterBufferAndPrint [16:06:13]line Счет N : (3)256211 [16:06:13]line ИНН: 02508201610067 [16:06:13]line Контрольно-Кассовый Чек [16:06:13]line ПРОДАЖА [16:06:13]line Товар: 5449000189332 [16:06:13]line Холодный чай Fuse персик 1л [16:06:13]line 1.000 * 107.00 [16:06:13]line = 107.00 [16:06:13]line НДС 12% НСП 1% [16:06:13]line > о реализуемом товаре [16:06:13]line Товар: 5449000027474 [16:06:13]line Напиток FuzeTea зел чай манго,ромашка 1л [16:06:13]line 1.000 * 107.00 [16:06:13]line = 107.00 [16:06:13]line НДС 12% НСП 1% [16:06:13]line > о реализуемом товаре [16:06:13]line Товар: 4700000160358 [16:06:13]line Вода Легенда 1л [16:06:13]line 1.000 * 50.00 [16:06:13]line = 50.00 [16:06:13]line НДС 12% НСП 1% [16:06:13]line > о реализуемом товаре [16:06:13]line Товар: 4607065000790 [16:06:13]line Шок M&M`s с арахисом 45г [16:06:13]line 1.000 * 70.00 [16:06:13]line = 70.00 [16:06:13]line НДС 12% НСП 1% [16:06:13]line > о реализуемом товаре [16:06:13]line Товар: 2000027340020 [16:06:13]line Пакет бумажный витая ручка [16:06:13]line 1.000 * 25.00 [16:06:13]line = 25.00 [16:06:13]line НДС 12% НСП 1% [16:06:13]line > о реализуемом товаре [16:06:13]line Товар: 4660085515163 [16:06:13]line Шок Батончик Сникерс супер 95/80г [16:06:13]line 2.000 * 90.00 [16:06:13]line = 180.00 [16:06:13]line НДС 12% НСП 1% [16:06:13]line > о реализуемом товаре [16:06:13]line ИТОГО: 539.00 [16:06:13]line НСП 1% : 4.77 [16:06:13]line НДС 12% : 57.22 [16:06:13]line Наличными: 539.00 [16:06:13]line Безнал.: 0.00 [16:06:13]line Место: АЗС № 76 "Партнер Нефть" [16:06:13]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:06:13]line СНО: Общий режим [16:06:13]line Чек 53 11.07.2024 16:06 [16:06:13]line Смена: 22 ФФД: 1.0 [16:06:13]line ЗНМ: 0300000124 [16:06:13]line РНМ: 0000000000177495 [16:06:13]line Версия ККМ: 001 [16:06:13]line ФМ: 0000000002098592 [16:06:13]line ФД: 1737 [16:06:13]line ФПД: 107995111570765 [16:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160610&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1737&fm=107995111570765&tin=02508201610067®Number=0000000000177495&sum=53900 [16:06:13]line 0 [16:06:13]OFD Sender: Processing packet 1737 [packets to send 1, broken 0] [16:06:13]ProducePacketName [16:06:13]name=ofd_packets/00001737 [16:06:13]OFD Sender: To server: pG, [16:06:13]CommunicateWithHost lk.salyk.kg:30040 [16:06:13]ConnectInit lk.salyk.kg [16:06:13]written 0, free lines is 4095 [16:06:13]Connected sock=10 [16:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 87 03 00 00 62 F1 7F 03 68 FF 5A 03 01 00 03 00 73 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F2 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C9 06 00 00 35 04 06 00 62 38 92 43 3D 4D D1 54 85 5D F1 48 2C 7F [16:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 1B 86 47 00 D8 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 C9 06 00 00 F4 03 04 00 2E AE 8F 66 B6 04 01 00 00 AE 21 58 2E EC 50 34 F2 [16:06:14]CommunicateWithHost err = 0 [16:06:14]CheckOFDResponse [16:06:14]1017 (14) - 77093643461234 [16:06:14]1041 (16) - 0000000002098592 [16:06:14]1040 (4) - 1737 [16:06:14]1012 (4) - 11.07.2024 10:04 [16:06:14]1206 (1) - 0 [16:06:14]OFD Sender: Remove packet 1737 [16:06:14]ProducePacketName [16:06:14]name=ofd_packets/00001737 [16:06:14]NVStorageDeleteData [16:06:14]Write to MH i2c: 01 00 00 C4 00 C4 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: 01 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: 01 07 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 C8 0B 9E [16:06:14]RasterBufferAndPrint [16:06:14]line [16:06:14]line [16:06:14]line [16:06:14]line [16:06:14]line [16:06:14]written 0, free lines is 3047 [16:06:14]MH_Cut [16:06:14]Write to MH i2c: D1 01 00 CB 00 01 9D [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: D1 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: D1 01 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: D1 01 00 CB 00 00 9C [16:06:14]Write to MH i2c: 01 00 00 CC 00 CC [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:15]OFD Sender: No OFD packet to send [16:06:15]*** Cut start [16:06:15]*** Partial cut [16:06:15]*** CUTSNS_PIN = 1 [16:06:15]*** CUTSNS_PIN = 0 [16:06:15]*** Brake cut motor [16:06:16]Read from MH i2c: 01 [16:06:16]MH_I2C_Read... [16:06:16]*** Stop cut motor [16:06:16]*** Cut end [16:06:16]Read from MH i2c: 01 07 00 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: 01 07 00 CC 00 00 00 00 00 00 FF 0F E1 [16:06:16]process_action close_receipt done [16:06:16]requested_data is exist [16:06:16]produce_requested_data [16:06:16]requested_item fm.sn is exist - process it [16:06:16]wFMCommunicate request_size=4 [16:06:16]MH_SAM_APDU [16:06:16]CAPDU: 80 11 00 00 [16:06:16]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [16:06:16]Write i2c OK [16:06:16]MH_I2C_Read... [16:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:16]Read from MH i2c: E2 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: E2 17 00 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9D [16:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:06:16]wFMCommunicate OK [16:06:16]requested_item fd.num is exist - process it [16:06:16]SAM_PROTO_GetFieldsCounters [16:06:16]wFMCommunicate request_size=4 [16:06:16]MH_SAM_APDU [16:06:16]CAPDU: 80 13 00 00 [16:06:16]Write to MH i2c: E2 08 00 CE 00 80 13 00 00 00 00 00 00 4A [16:06:16]Write i2c OK [16:06:16]MH_I2C_Read... [16:06:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:16]Read from MH i2c: E2 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: E2 62 00 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: E2 62 00 CE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 C9 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [16:06:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 C9 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:16]wFMCommunicate OK [16:06:16]SAM_PROTO_GetFieldsCounters done [16:06:16]requested_item shift.num is exist - process it [16:06:16]requested_item shift.opened is exist - process it [16:06:16]req_shift_opened [16:06:16]FM_GetShiftState [16:06:16]SAM_PROTO_GetShiftState [16:06:16]wFMCommunicate request_size=4 [16:06:16]MH_SAM_APDU [16:06:16]CAPDU: 80 13 01 00 [16:06:16]Write to MH i2c: E2 08 00 CF 00 80 13 01 00 00 00 00 00 4C [16:06:16]Write i2c OK [16:06:16]MH_I2C_Read... [16:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:16]Read from MH i2c: E2 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: E2 0E 00 [16:06:16]MH_I2C_Read... [16:06:16]Read from MH i2c: E2 0E 00 CF 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 AA [16:06:16]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:06:16]wFMCommunicate OK [16:06:16]SAM_PROTO_GetShiftState done [16:06:16]FM_GetShiftState done [16:06:16]req_shift_opened done [16:06:16]requested_item shift.open_date is exist - process it [16:06:16]req_shift_open_date [16:06:16]req_shift_open_date done [16:06:16]produce_requested_data done [16:06:16]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1737,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:06:16]process_action_free close_receipt [16:06:16]json_value_free [16:06:16]json_value_free done [16:06:16]process_json_proto returns [16:06:16]Send response to host [16:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1737,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:06:16]free response buf [16:06:16]execute_script done [16:06:16]execute_script returns [16:06:16]free content buf [16:06:16]Sock 9.Close socket [16:06:16]Sock 9.Thread stoped [16:06:17]accept exits with 6 [16:06:17]New connection [16:06:17]New thread 3066850660 created [16:06:17]Thread 3066707300 joined [16:06:17]Waiting for new connection... [16:06:17] Sock 6.Parse request [16:06:17]Sock 6.Check first char [16:06:17]Sock 6.First char is OK [16:06:17]request: POST /json_proto HTTP/1.0 [16:06:17]Method: POST [16:06:17]URL: /json_proto [16:06:17]Method is POST - this is cgi request [16:06:17]url: /json_proto [16:06:17]query_string will be loaded in cgi processing [16:06:17]execute_cgi json_proto POST (null) [16:06:17]execute_cgi path=json_proto method=POST [16:06:17]POST find Content-Length [16:06:17]Host: 172.17.35.133:8080 [16:06:17]Content-Length: 916 [16:06:17]Content-Type: application/json [16:06:17] [16:06:17]POST finish read [16:06:17]Found Content-Length = 916 [16:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256212", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 307.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:17]execute_script... [16:06:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256212", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 307.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:17]POST & json_proto [16:06:17]process_json_proto [16:06:17]json parsed OK: [16:06:17]protocol is kg_v1.0 [16:06:17]action value=close_receipt [16:06:17]process_action close_receipt [16:06:17]cmd_close_receipt [16:06:17]MH_GetDate [16:06:17]Write to MH i2c: F0 00 00 D0 00 BF [16:06:17]Write i2c OK [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: F0 [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: F0 09 00 [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: F0 09 00 D0 00 00 F9 02 90 66 1B 28 2A 66 8C [16:06:17]GetLastDocTimeStamp 1720713970 [16:06:17]current date 1720713977 [16:06:17]FM_GetShiftState [16:06:17]SAM_PROTO_GetShiftState [16:06:17]wFMCommunicate request_size=4 [16:06:17]MH_SAM_APDU [16:06:17]CAPDU: 80 13 01 00 [16:06:17]Write to MH i2c: E2 08 00 D1 00 80 13 01 00 00 00 00 00 4E [16:06:17]Write i2c OK [16:06:17]MH_I2C_Read... [16:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:18]Read from MH i2c: E2 [16:06:18]MH_I2C_Read... [16:06:18]Read from MH i2c: E2 0E 00 [16:06:18]MH_I2C_Read... [16:06:18]Read from MH i2c: E2 0E 00 D1 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 AC [16:06:18]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:06:18]wFMCommunicate OK [16:06:18]SAM_PROTO_GetShiftState done [16:06:18]FM_GetShiftState done [16:06:18]opened in 1720656698 [16:06:18]opened+sec_in_day 1720743098 [16:06:18]quantity*price = 15000 [16:06:18]sum+1 = 15001 [16:06:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 157.00 = 157.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 307.00 НСП 1% : 2.72 НДС 12% : 32.60 Наличными: 307.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 54 11.07.2024 16:06 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1738 ФПД: 234104621175019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160618&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1738&fm=234104621175019&tin=02508201610067®Number=0000000000177495&sum=30700 0 [16:06:19]StoreToDocumentArchive [16:06:19]shift 22 fd 1738 [16:06:19]save to /storage/0022/doc_00001738 [16:06:19]save last doc name /storage/0022/doc_00001738 to /storage/kkm_last_doc_name [16:06:19]save OK [16:06:19]Clear old archive folders... [16:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=383 [16:06:19]tlvbuf is 01DEE720 [16:06:19]SAM_PROTO_ClearQueue [16:06:19]wFMCommunicate request_size=4 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 09 00 00 [16:06:19]Write to MH i2c: E2 08 00 DE 00 80 09 00 00 00 00 00 00 50 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 DE 00 00 90 00 52 [16:06:19]RAPDU: 90 00 [16:06:19]wFMCommunicate OK [16:06:19]SAM_PROTO_ClearQueue done [16:06:19]KKMCreateOFDPacket [16:06:19]OFDProtocolAddRootSTLVToBuf [16:06:19]FM_MakeSignedData [16:06:19]FM_MakeSignedData [16:06:19]SAM_PROTO_SignData [16:06:19]wFMCommunicate request_size=4 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 0D 01 02 [16:06:19]Write to MH i2c: E2 08 00 DF 00 80 0D 01 02 00 00 00 00 58 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 DF 00 00 90 00 53 [16:06:19]RAPDU: 90 00 [16:06:19]wFMCommunicate OK [16:06:19]wFMCommunicate request_size=255 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 [16:06:19]Write to MH i2c: E2 02 01 E0 00 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 00 00 4A [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:20]Read from MH i2c: E2 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 03 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 03 00 E0 00 00 90 00 54 [16:06:20]RAPDU: 90 00 [16:06:20]wFMCommunicate OK [16:06:20]wFMCommunicate request_size=142 [16:06:20]MH_SAM_APDU [16:06:20]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FA 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CA 06 00 00 35 04 06 00 D4 EA BA C9 10 EB [16:06:20]Write to MH i2c: E2 91 00 E1 00 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FA 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CA 06 00 00 35 04 06 00 D4 EA BA C9 10 EB 00 00 1B [16:06:20]OFD Sender: No OFD packet to send [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:20]Read from MH i2c: E2 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 03 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 03 00 E1 00 00 90 00 55 [16:06:20]RAPDU: 90 00 [16:06:20]wFMCommunicate OK [16:06:20]wFMCommunicate request_size=4 [16:06:20]MH_SAM_APDU [16:06:20]CAPDU: 80 0D 03 02 [16:06:20]Write to MH i2c: E2 08 00 E2 00 80 0D 03 02 00 00 00 00 5D [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:20]Read from MH i2c: E2 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 0B 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 0B 00 E2 00 00 30 DA 57 60 09 58 A4 28 90 00 4C [16:06:20]RAPDU: 30 DA 57 60 09 58 A4 28 90 00 [16:06:20]wFMCommunicate OK [16:06:20]SAM_PROTO_SignData done [16:06:20]FM_MakeSignedData done [16:06:20]CreateOFDProtocolMessage [16:06:20]wFMCommunicate request_size=4 [16:06:20]MH_SAM_APDU [16:06:20]CAPDU: 80 11 00 00 [16:06:20]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:20]Read from MH i2c: E2 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 17 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B3 [16:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:06:20]wFMCommunicate OK [16:06:20]CreateOFDProtocolMessage done [16:06:20]OFDSenderStorePacket 1738 [16:06:20]StoreOFDPacket docnum=1738 [16:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 93 01 00 00 FD 9A 8B 01 F6 93 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FA 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CA 06 00 00 35 04 06 00 D4 EA BA C9 10 EB 30 DA 57 60 09 58 A4 28 [16:06:20]CheckFolder [16:06:20]dirname=/storage/ofd_packets [16:06:20]CheckFolder done [16:06:20]ProducePacketName [16:06:20]name=ofd_packets/00001738 [16:06:20]NVStorageSaveData ofd_packets/00001738 [16:06:20]File name is /storage/ofd_packets/00001738 [16:06:20]Write 433 bytes [16:06:20]NVStorageSaveData done [16:06:20]OFDSenderStorePacket done [16:06:20]KKMCreateOFDPacket done [16:06:20]NVStorageSaveData kkm_last_timestamp [16:06:20]File name is /storage/kkm_last_timestamp [16:06:20]Write 4 bytes [16:06:20]NVStorageSaveData done [16:06:20]ExternCall_PrintAddStr [16:06:20]wPrintStart [16:06:20]Write to MH i2c: 01 00 00 E4 00 E4 [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: 01 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: 01 07 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [16:06:20]RasterBufferAndPrint [16:06:20]line Счет N : (3)256212 [16:06:20]line ИНН: 02508201610067 [16:06:20]line Контрольно-Кассовый Чек [16:06:20]line ПРОДАЖА [16:06:20]line Товар: 54491472 [16:06:20]line Напиток Кока-Кола 0,5л [16:06:20]line 2.000 * 75.00 [16:06:20]line = 150.00 [16:06:20]line НДС 12% НСП 1% [16:06:20]line > о реализуемом товаре [16:06:20]line Товар: 90162602 [16:06:20]line Энерг напиток Red bull 0,25л [16:06:20]line 1.000 * 157.00 [16:06:20]line = 157.00 [16:06:20]line НДС 12% НСП 1% [16:06:20]line > о реализуемом товаре [16:06:20]line ИТОГО: 307.00 [16:06:20]line НСП 1% : 2.72 [16:06:20]line НДС 12% : 32.60 [16:06:20]line Наличными: 307.00 [16:06:20]line Безнал.: 0.00 [16:06:20]line Место: АЗС № 76 "Партнер Нефть" [16:06:20]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:06:20]line СНО: Общий режим [16:06:20]line Чек 54 11.07.2024 16:06 [16:06:20]line Смена: 22 ФФД: 1.0 [16:06:20]line ЗНМ: 0300000124 [16:06:20]line РНМ: 0000000000177495 [16:06:20]line Версия ККМ: 001 [16:06:20]line ФМ: 0000000002098592 [16:06:20]line ФД: 1738 [16:06:20]line ФПД: 234104621175019 [16:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T160618&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1738&fm=234104621175019&tin=02508201610067®Number=0000000000177495&sum=30700 [16:06:20]line 0 [16:06:20]OFD Sender: Processing packet 1738 [packets to send 1, broken 0] [16:06:20]ProducePacketName [16:06:20]name=ofd_packets/00001738 [16:06:20]OFD Sender: To server: pG, [16:06:20]CommunicateWithHost lk.salyk.kg:30040 [16:06:20]ConnectInit lk.salyk.kg [16:06:20]written 0, free lines is 4095 [16:06:20]Connected sock=10 [16:06:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 93 01 00 00 FD 9A 8B 01 F6 93 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 FA 02 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CA 06 00 00 35 04 06 00 D4 EA BA C9 10 EB 30 DA 57 60 09 58 A4 28 [16:06:21]Write to MH i2c: 01 00 00 12 01 13 [16:06:21]Write i2c OK [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: 01 [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: 01 07 00 [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 EE 0C 14 [16:06:21]RasterBufferAndPrint [16:06:21]line [16:06:21]line [16:06:21]line [16:06:21]line [16:06:21]line [16:06:21]written 0, free lines is 3343 [16:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 64 A0 47 00 24 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CA 06 00 00 F4 03 04 00 35 AE 8F 66 B6 04 01 00 00 88 07 MH_Cut [16:06:21]50 Write to MH i2c: E8 D1 09 01 57 00 7E 19 D0 01 [16:06:21]01 CommunicateWithHost err = 0 [16:06:21]EC CheckOFDResponse [16:06:21] [16:06:21]1017 (14) - 77093643461234 [16:06:21]1041 (16) - 0000000002098592 [16:06:21]Write i2c OK [16:06:21]1040 (4) - 1738 [16:06:21]MH_I2C_Read... [16:06:21]1012 (4) - 11.07.2024 10:04 [16:06:21]Read from MH i2c: 1206 (1) - 0 [16:06:21]D1 OFD Sender: Remove packet 1738 [16:06:21] [16:06:21]ProducePacketName [16:06:21]MH_I2C_Read... [16:06:21]name=ofd_packets/00001738 [16:06:21]Read from MH i2c: D1 01 00 [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: D1 01 00 19 01 00 EB [16:06:21]Write to MH i2c: 01 00 00 NVStorageDeleteData [16:06:21]1A 01 1B [16:06:21]Write i2c OK [16:06:21]MH_I2C_Read... [16:06:21]*** Cut start [16:06:21]*** Partial cut [16:06:21]*** CUTSNS_PIN = 1 [16:06:21]OFD Sender: No OFD packet to send [16:06:21]*** CUTSNS_PIN = 0 [16:06:22]*** Brake cut motor [16:06:22]Read from MH i2c: 01 [16:06:22]MH_I2C_Read... [16:06:22]*** Stop cut motor [16:06:22]*** Cut end [16:06:22]Read from MH i2c: 01 07 00 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [16:06:22]process_action close_receipt done [16:06:22]requested_data is exist [16:06:22]produce_requested_data [16:06:22]requested_item fm.sn is exist - process it [16:06:22]wFMCommunicate request_size=4 [16:06:22]MH_SAM_APDU [16:06:22]CAPDU: 80 11 00 00 [16:06:22]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [16:06:22]Write i2c OK [16:06:22]MH_I2C_Read... [16:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:22]Read from MH i2c: E2 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 17 00 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EC [16:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:06:22]wFMCommunicate OK [16:06:22]requested_item fd.num is exist - process it [16:06:22]SAM_PROTO_GetFieldsCounters [16:06:22]wFMCommunicate request_size=4 [16:06:22]MH_SAM_APDU [16:06:22]CAPDU: 80 13 00 00 [16:06:22]Write to MH i2c: E2 08 00 1C 01 80 13 00 00 00 00 00 00 99 [16:06:22]Write i2c OK [16:06:22]MH_I2C_Read... [16:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:22]Read from MH i2c: E2 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 62 00 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 62 00 1C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:22]wFMCommunicate OK [16:06:22]SAM_PROTO_GetFieldsCounters done [16:06:22]requested_item shift.num is exist - process it [16:06:22]requested_item shift.opened is exist - process it [16:06:22]req_shift_opened [16:06:22]FM_GetShiftState [16:06:22]SAM_PROTO_GetShiftState [16:06:22]wFMCommunicate request_size=4 [16:06:22]MH_SAM_APDU [16:06:22]CAPDU: 80 13 01 00 [16:06:22]Write to MH i2c: E2 08 00 1D 01 80 13 01 00 00 00 00 00 9B [16:06:22]Write i2c OK [16:06:22]MH_I2C_Read... [16:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:22]Read from MH i2c: E2 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 0E 00 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 0E 00 1D 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F9 [16:06:22]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:06:22]wFMCommunicate OK [16:06:22]SAM_PROTO_GetShiftState done [16:06:22]FM_GetShiftState done [16:06:22]req_shift_opened done [16:06:22]requested_item shift.open_date is exist - process it [16:06:22]req_shift_open_date [16:06:22]req_shift_open_date done [16:06:22]produce_requested_data done [16:06:22]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1738,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:06:22]process_action_free close_receipt [16:06:22]json_value_free [16:06:22]json_value_free done [16:06:22]process_json_proto returns [16:06:22]Send response to host [16:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1738,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:06:22]free response buf [16:06:22]execute_script done [16:06:22]execute_script returns [16:06:22]free content buf [16:06:22]Sock 6.Close socket [16:06:22]Sock 6.Thread stoped [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:53]accept exits with 9 [16:08:53]New connection [16:08:53]New thread 3066707300 created [16:08:53]Thread 3066850660 joined [16:08:53]Waiting for new connection... [16:08:53] Sock 9.Parse request [16:08:53]Sock 9.Check first char [16:08:53]Sock 9.First char is OK [16:08:53]request: POST /json_proto HTTP/1.0 [16:08:53]Method: POST [16:08:53]URL: /json_proto [16:08:53]Method is POST - this is cgi request [16:08:53]url: /json_proto [16:08:53]query_string will be loaded in cgi processing [16:08:53]execute_cgi json_proto POST (null) [16:08:53]execute_cgi path=json_proto method=POST [16:08:53]POST find Content-Length [16:08:53]Host: 172.17.35.133:8080 [16:08:53]Content-Length: 215 [16:08:53]Content-Type: application/json [16:08:53] [16:08:53]POST finish read [16:08:53]Found Content-Length = 215 [16:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:53]execute_script... [16:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:53]POST & json_proto [16:08:53]process_json_proto [16:08:53]json parsed OK: [16:08:53]protocol is kg_v1.0 [16:08:53]action value=get_value [16:08:53]process_action get_value [16:08:53]cmd_get_value [16:08:53]process_action get_value done [16:08:53]requested_data is exist [16:08:53]produce_requested_data [16:08:53]requested_item kkm.sn is exist - process it [16:08:53]requested_item kkm.ver is exist - process it [16:08:53]requested_item fm.sn is exist - process it [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 11 00 00 [16:08:53]Write to MH i2c: E2 08 00 1E 01 80 11 00 00 00 00 00 00 99 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:53]Read from MH i2c: E2 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 17 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 17 00 1E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EF [16:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:08:53]wFMCommunicate OK [16:08:53]requested_item fd.num is exist - process it [16:08:53]SAM_PROTO_GetFieldsCounters [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 13 00 00 [16:08:53]Write to MH i2c: E2 08 00 1F 01 80 13 00 00 00 00 00 00 9C [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:53]Read from MH i2c: E2 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 62 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 62 00 1F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:53]wFMCommunicate OK [16:08:53]SAM_PROTO_GetFieldsCounters done [16:08:53]requested_item shift.num is exist - process it [16:08:53]requested_item shift.opened is exist - process it [16:08:53]req_shift_opened [16:08:53]FM_GetShiftState [16:08:53]SAM_PROTO_GetShiftState [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 13 01 00 [16:08:53]Write to MH i2c: E2 08 00 20 01 80 13 01 00 00 00 00 00 9E [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:53]Read from MH i2c: E2 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 0E 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 0E 00 20 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 FC [16:08:53]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:08:53]wFMCommunicate OK [16:08:53]SAM_PROTO_GetShiftState done [16:08:53]FM_GetShiftState done [16:08:53]req_shift_opened done [16:08:53]requested_item shift.open_date is exist - process it [16:08:53]req_shift_open_date [16:08:53]req_shift_open_date done [16:08:53]produce_requested_data done [16:08:53]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1738,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:08:53]process_action_free get_value [16:08:53]json_value_free [16:08:53]json_value_free done [16:08:53]process_json_proto returns [16:08:53]Send response to host [16:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1738,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:08:53]free response buf [16:08:53]execute_script done [16:08:53]execute_script returns [16:08:53]free content buf [16:08:53]Sock 9.Close socket [16:08:53]Sock 9.Thread stoped [16:08:53]accept exits with 8 [16:08:53]New connection [16:08:53]New thread 3066850660 created [16:08:53]Thread 3066707300 joined [16:08:53]Waiting for new connection... [16:08:53] Sock 8.Parse request [16:08:53]Sock 8.Check first char [16:08:53]Sock 8.First char is OK [16:08:53]request: POST /json_proto HTTP/1.0 [16:08:53]Method: POST [16:08:53]URL: /json_proto [16:08:53]Method is POST - this is cgi request [16:08:53]url: /json_proto [16:08:53]query_string will be loaded in cgi processing [16:08:53]execute_cgi json_proto POST (null) [16:08:53]execute_cgi path=json_proto method=POST [16:08:53]POST find Content-Length [16:08:53]Host: 172.17.35.133:8080 [16:08:53]Content-Length: 331 [16:08:53]Content-Type: application/json [16:08:53] [16:08:53]POST finish read [16:08:53]Found Content-Length = 331 [16:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:08:53]execute_script... [16:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:08:53]POST & json_proto [16:08:53]process_json_proto [16:08:53]json parsed OK: [16:08:53]protocol is kg_v1.0 [16:08:53]action value=get_value [16:08:53]process_action get_value [16:08:53]cmd_get_value [16:08:53]process_action get_value done [16:08:53]requested_data is exist [16:08:53]produce_requested_data [16:08:53]requested_item fm.sale.total is exist - process it [16:08:53]SAM_PROTO_GetFMData [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 13 03 00 [16:08:53]Write to MH i2c: E2 08 00 21 01 80 13 03 00 00 00 00 00 A1 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 21 01 00 BA 04 85 04 B6 04 6E 04 04 00 9E 06 00 00 69 04 9F 00 6F 04 04 00 9C 06 00 00 B1 04 04 00 D7 18 2D 04 70 04 04 00 18 89 79 03 72 04 03 00 BF 8F B3 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA 88 71 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FF 74 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 0A [16:08:54]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 9E 06 00 00 69 04 9F 00 6F 04 04 00 9C 06 00 00 B1 04 04 00 D7 18 2D 04 70 04 04 00 18 89 79 03 72 04 03 00 BF 8F B3 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA 88 71 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FF 74 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 17 00 00 [16:08:54]Write to MH i2c: E2 08 00 22 01 80 17 00 00 00 00 00 00 A3 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 22 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 A0 [16:08:54]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 17 00 00 [16:08:54]Write to MH i2c: E2 08 00 23 01 80 17 00 00 00 00 00 00 A4 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 23 01 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 D0 [16:08:54]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 17 00 00 [16:08:54]Write to MH i2c: E2 08 00 24 01 80 17 00 00 00 00 00 00 A5 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 FD 00 24 01 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 1D [16:08:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [16:08:54]wFMCommunicate OK [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 17 00 00 [16:08:54]Write to MH i2c: E2 08 00 25 01 80 17 00 00 00 00 00 00 A6 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 D7 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 D7 00 25 01 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [16:08:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_GetFMData done [16:08:55]requested_item fm.sale_refund.total is exist - process it [16:08:55]requested_item fm.buy.total is exist - process it [16:08:55]requested_item shift.sale.total is exist - process it [16:08:55]SAM_PROTO_GetShiftData [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 13 02 00 [16:08:55]Write to MH i2c: E2 08 00 26 01 80 13 02 00 00 00 00 00 A5 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 FD 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 FD 00 26 01 00 AE 04 AA 04 AA 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 44 5E 10 70 04 03 00 40 D1 0C 72 04 03 00 04 8D 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F5 BC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 25 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 1B [16:08:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 44 5E 10 70 04 03 00 40 D1 0C 72 04 03 00 04 8D 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F5 BC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 25 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 17 00 00 [16:08:55]Write to MH i2c: E2 08 00 27 01 80 17 00 00 00 00 00 00 A8 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 FD 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 FD 00 27 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 CA [16:08:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 17 00 00 [16:08:55]Write to MH i2c: E2 08 00 28 01 80 17 00 00 00 00 00 00 A9 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 FD 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 FD 00 28 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 60 [16:08:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:08:56]wFMCommunicate OK [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 17 00 00 [16:08:56]Write to MH i2c: E2 08 00 29 01 80 17 00 00 00 00 00 00 AA [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 FD 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 FD 00 29 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1C [16:08:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [16:08:56]wFMCommunicate OK [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 17 00 00 [16:08:56]Write to MH i2c: E2 08 00 2A 01 80 17 00 00 00 00 00 00 AB [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 CB 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 CB 00 2A 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [16:08:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:08:56]wFMCommunicate OK [16:08:56]SAM_PROTO_GetShiftData done [16:08:56]requested_item shift.sale.total_cash is exist - process it [16:08:56]requested_item shift.sale_refund.total is exist - process it [16:08:56]requested_item shift.sale_refund.total_cash is exist - process it [16:08:56]requested_item shift.buy.total is exist - process it [16:08:56]requested_item shift.buy.total_cash is exist - process it [16:08:56]produce_requested_data done [16:08:56]produce_requested_data return {"fm.sale.total":700643.43,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":10727.08,"shift.sale.total_cash":8400.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:08:56]process_action_free get_value [16:08:56]json_value_free [16:08:56]json_value_free done [16:08:56]process_json_proto returns [16:08:56]Send response to host [16:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":700643.43,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":10727.08,"shift.sale.total_cash":8400.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:08:56]free response buf [16:08:56]execute_script done [16:08:56]execute_script returns [16:08:56]free content buf [16:08:56]Sock 8.Close socket [16:08:56]Sock 8.Thread stoped [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:44]accept exits with 9 [16:12:44]New connection [16:12:44]New thread 3066707300 created [16:12:44]Thread 3066850660 joined [16:12:44]Waiting for new connection... [16:12:44] Sock 9.Parse request [16:12:44]Sock 9.Check first char [16:12:44]Sock 9.First char is OK [16:12:44]request: POST /json_proto HTTP/1.0 [16:12:44]Method: POST [16:12:44]URL: /json_proto [16:12:44]Method is POST - this is cgi request [16:12:44]url: /json_proto [16:12:44]query_string will be loaded in cgi processing [16:12:44]execute_cgi json_proto POST (null) [16:12:44]execute_cgi path=json_proto method=POST [16:12:44]POST find Content-Length [16:12:44]Host: 172.17.35.133:8080 [16:12:44]Content-Length: 678 [16:12:44]Content-Type: application/json [16:12:44] [16:12:44]POST finish read [16:12:44]Found Content-Length = 678 [16:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.600, "sum" : 570.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:44]execute_script... [16:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.600, "sum" : 570.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:44]POST & json_proto [16:12:44]process_json_proto [16:12:44]json parsed OK: [16:12:44]protocol is kg_v1.0 [16:12:44]action value=close_receipt [16:12:44]process_action close_receipt [16:12:44]cmd_close_receipt [16:12:44]MH_GetDate [16:12:44]Write to MH i2c: F0 00 00 2B 01 1B [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: F0 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: F0 09 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: F0 09 00 2B 01 00 7D 04 90 66 1B 28 2A 66 6E [16:12:44]GetLastDocTimeStamp 1720713978 [16:12:44]current date 1720714365 [16:12:44]FM_GetShiftState [16:12:44]SAM_PROTO_GetShiftState [16:12:44]wFMCommunicate request_size=4 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 13 01 00 [16:12:44]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 0E 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 08 [16:12:44]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:12:44]wFMCommunicate OK [16:12:44]SAM_PROTO_GetShiftState done [16:12:44]FM_GetShiftState done [16:12:44]opened in 1720656698 [16:12:44]opened+sec_in_day 1720743098 [16:12:44]quantity*price = 57018 [16:12:44]sum+1 = 57019 [16:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.55 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 55 11.07.2024 16:12 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1739 ФПД: 266642770162839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T161245&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1739&fm=266642770162839&tin=02508201610067®Number=0000000000177495&sum=57000 [16:12:45]StoreToDocumentArchive [16:12:45]shift 22 fd 1739 [16:12:45]save to /storage/0022/doc_00001739 [16:12:45]save last doc name /storage/0022/doc_00001739 to /storage/kkm_last_doc_name [16:12:45]save OK [16:12:45]Clear old archive folders... [16:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:45]tlvbuf is B6EC18F0 [16:12:45]SAM_PROTO_ClearQueue [16:12:45]wFMCommunicate request_size=4 [16:12:45]MH_SAM_APDU [16:12:45]CAPDU: 80 09 00 00 [16:12:45]Write to MH i2c: E2 08 00 39 01 80 09 00 00 00 00 00 00 AC [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:45]Read from MH i2c: E2 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: E2 03 00 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [16:12:45]RAPDU: 90 00 [16:12:45]wFMCommunicate OK [16:12:45]SAM_PROTO_ClearQueue done [16:12:45]KKMCreateOFDPacket [16:12:45]OFDProtocolAddRootSTLVToBuf [16:12:45]FM_MakeSignedData [16:12:45]FM_MakeSignedData [16:12:45]SAM_PROTO_SignData [16:12:45]wFMCommunicate request_size=4 [16:12:45]MH_SAM_APDU [16:12:45]CAPDU: 80 0D 01 02 [16:12:45]Write to MH i2c: E2 08 00 3A 01 80 0D 01 02 00 00 00 00 B4 [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 3A 01 00 90 00 AF [16:12:46]RAPDU: 90 00 [16:12:46]wFMCommunicate OK [16:12:46]wFMCommunicate request_size=255 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7D 04 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CB 06 00 00 35 04 06 00 F2 [16:12:46]Write to MH i2c: E2 02 01 3B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7D 04 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CB 06 00 00 35 04 06 00 F2 00 00 64 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [16:12:46]RAPDU: 90 00 [16:12:46]wFMCommunicate OK [16:12:46]wFMCommunicate request_size=10 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 0D 02 02 05 82 9B 98 F4 97 [16:12:46]Write to MH i2c: E2 0D 00 3C 01 80 0D 02 02 05 00 82 9B 98 F4 97 00 00 01 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [16:12:46]RAPDU: 90 00 [16:12:46]wFMCommunicate OK [16:12:46]wFMCommunicate request_size=4 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 0D 03 02 [16:12:46]Write to MH i2c: E2 08 00 3D 01 80 0D 03 02 00 00 00 00 B9 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 0B 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 0B 00 3D 01 00 E8 E8 25 46 96 D6 E7 4A 90 00 92 [16:12:46]RAPDU: E8 E8 25 46 96 D6 E7 4A 90 00 [16:12:46]wFMCommunicate OK [16:12:46]SAM_PROTO_SignData done [16:12:46]FM_MakeSignedData done [16:12:46]CreateOFDProtocolMessage [16:12:46]wFMCommunicate request_size=4 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 11 00 00 [16:12:46]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 17 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0F [16:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:12:46]wFMCommunicate OK [16:12:46]CreateOFDProtocolMessage done [16:12:46]OFDSenderStorePacket 1739 [16:12:46]StoreOFDPacket docnum=1739 [16:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 6F AD 07 01 7A F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7D 04 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CB 06 00 00 35 04 06 00 F2 82 9B 98 F4 97 E8 E8 25 46 96 D6 E7 4A [16:12:46]CheckFolder [16:12:46]dirname=/storage/ofd_packets [16:12:46]CheckFolder done [16:12:46]ProducePacketName [16:12:46]name=ofd_packets/00001739 [16:12:46]NVStorageSaveData ofd_packets/00001739 [16:12:46]File name is /storage/ofd_packets/00001739 [16:12:46]Write 301 bytes [16:12:46]NVStorageSaveData done [16:12:46]OFDSenderStorePacket done [16:12:46]KKMCreateOFDPacket done [16:12:46]NVStorageSaveData kkm_last_timestamp [16:12:46]File name is /storage/kkm_last_timestamp [16:12:46]Write 4 bytes [16:12:46]NVStorageSaveData done [16:12:46]ExternCall_PrintAddStr [16:12:46]wPrintStart [16:12:46]Write to MH i2c: 01 00 00 3F 01 40 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 07 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [16:12:46]RasterBufferAndPrint [16:12:46]line Счет N : (1)1618514 [16:12:46]line ИНН: 02508201610067 [16:12:46]line Контрольно-Кассовый Чек [16:12:46]line ПРОДАЖА [16:12:46]line ТРК (МРК, ГНК) : 33 [16:12:46]line Товар: 2710124130 [16:12:46]line Аи-92-К-5 [16:12:46]line 8.600 * 66.30 [16:12:46]line = 570.18 [16:12:46]line НДС 12% НСП 1% [16:12:46]line > о реализуемом товаре [16:12:46]line ОКРУГЛЕНИЕ: -0.18 [16:12:46]line ИТОГО: 570.00 [16:12:46]line Внесено: 570.00 [16:12:46]line СДАЧА: 0.00 [16:12:46]line НСП 1% : 5.05 [16:12:46]line НДС 12% : 60.55 [16:12:46]line Наличными: 570.00 [16:12:46]line Безнал.: 0.00 [16:12:46]line Место: АЗС № 76 "Партнер Нефть" [16:12:46]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:12:46]line СНО: Общий режим [16:12:46]line Чек 55 11.07.2024 16:12 [16:12:46]line Смена: 22 ФФД: 1.0 [16:12:46]line ЗНМ: 0300000124 [16:12:46]line РНМ: 0000000000177495 [16:12:46]line Версия ККМ: 001 [16:12:46]line ФМ: 0000000002098592 [16:12:46]line ФД: 1739 [16:12:46]line ФПД: 266642770162839 [16:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T161245&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1739&fm=266642770162839&tin=02508201610067®Number=0000000000177495&sum=57000 [16:12:46]OFD Sender: Processing packet 1739 [packets to send 1, broken 0] [16:12:46]ProducePacketName [16:12:46]name=ofd_packets/00001739 [16:12:46]OFD Sender: To server: pG, [16:12:46]CommunicateWithHost lk.salyk.kg:30040 [16:12:46]ConnectInit lk.salyk.kg [16:12:46]written 0, free lines is 4095 [16:12:46]Connected sock=6 [16:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 6F AD 07 01 7A F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7D 04 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CB 06 00 00 35 04 06 00 F2 82 9B 98 F4 97 E8 E8 25 46 96 D6 E7 4A [16:12:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 AD D7 47 00 00 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CB 06 00 00 F4 03 04 00 B7 AF 8F 66 B6 04 01 00 00 0E 5E 1A C6 0F 87 BE 21 [16:12:47]CommunicateWithHost err = 0 [16:12:47]CheckOFDResponse [16:12:47]1017 (14) - 77093643461234 [16:12:47]1041 (16) - 0000000002098592 [16:12:47]1040 (4) - 1739 [16:12:47]1012 (4) - 11.07.2024 10:11 [16:12:47]1206 (1) - 0 [16:12:47]OFD Sender: Remove packet 1739 [16:12:47]ProducePacketName [16:12:47]name=ofd_packets/00001739 [16:12:47]NVStorageDeleteData [16:12:47]Write to MH i2c: 01 00 00 6A 01 6B [16:12:47]Write i2c OK [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: 01 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: 01 07 00 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: 01 07 00 6A 01 00 00 00 00 00 FD 0C 7B [16:12:47]RasterBufferAndPrint [16:12:47]line [16:12:47]line [16:12:47]line [16:12:47]line [16:12:47]line [16:12:47]written 0, free lines is 3331 [16:12:47]MH_Cut [16:12:47]Write to MH i2c: D1 01 00 71 01 01 44 [16:12:47]Write i2c OK [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: D1 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: D1 01 00 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: D1 01 00 71 01 00 43 [16:12:47]Write to MH i2c: 01 00 00 72 01 73 [16:12:47]Write i2c OK [16:12:47]MH_I2C_Read... [16:12:47]OFD Sender: No OFD packet to send [16:12:47]*** Cut start [16:12:47]*** Partial cut [16:12:47]*** CUTSNS_PIN = 1 [16:12:47]*** CUTSNS_PIN = 0 [16:12:48]*** Brake cut motor [16:12:48]Read from MH i2c: 01 [16:12:48]MH_I2C_Read... [16:12:48]*** Stop cut motor [16:12:48]*** Cut end [16:12:48]Read from MH i2c: 01 07 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 FF 0F 88 [16:12:48]process_action close_receipt done [16:12:48]requested_data is exist [16:12:48]produce_requested_data [16:12:48]requested_item fm.sn is exist - process it [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 11 00 00 [16:12:48]Write to MH i2c: E2 08 00 73 01 80 11 00 00 00 00 00 00 EE [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 17 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 17 00 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 44 [16:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:12:48]wFMCommunicate OK [16:12:48]requested_item fd.num is exist - process it [16:12:48]SAM_PROTO_GetFieldsCounters [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 13 00 00 [16:12:48]Write to MH i2c: E2 08 00 74 01 80 13 00 00 00 00 00 00 F1 [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 62 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 62 00 74 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CB 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [16:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CB 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:48]wFMCommunicate OK [16:12:48]SAM_PROTO_GetFieldsCounters done [16:12:48]requested_item shift.num is exist - process it [16:12:48]requested_item shift.opened is exist - process it [16:12:48]req_shift_opened [16:12:48]FM_GetShiftState [16:12:48]SAM_PROTO_GetShiftState [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 13 01 00 [16:12:48]Write to MH i2c: E2 08 00 75 01 80 13 01 00 00 00 00 00 F3 [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 0E 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 0E 00 75 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 51 [16:12:48]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:12:48]wFMCommunicate OK [16:12:48]SAM_PROTO_GetShiftState done [16:12:48]FM_GetShiftState done [16:12:48]req_shift_opened done [16:12:48]requested_item shift.open_date is exist - process it [16:12:48]req_shift_open_date [16:12:48]req_shift_open_date done [16:12:48]produce_requested_data done [16:12:48]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1739,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:12:48]process_action_free close_receipt [16:12:48]json_value_free [16:12:48]json_value_free done [16:12:48]process_json_proto returns [16:12:48]Send response to host [16:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1739,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:12:48]free response buf [16:12:48]execute_script done [16:12:48]execute_script returns [16:12:48]free content buf [16:12:48]Sock 9.Close socket [16:12:48]Sock 9.Thread stoped [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:20]int [16:17:20]Write to MH i2c: 01 00 00 76 01 77 [16:17:20]*** FLAG_PRN_KEY set [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 07 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 07 00 76 01 00 08 00 00 00 FF 0F 94 [16:17:20]state=0 [16:17:20]Key pressed [16:17:20]Feed [16:17:20]Write to MH i2c: D8 00 00 77 01 4F [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: D8 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: D8 01 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: D8 01 00 77 01 00 50 [16:17:20]int [16:17:20]Write to MH i2c: 01 00 00 78 01 79 [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 07 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 07 00 78 01 00 48 00 00 00 3D 00 05 [16:17:20]state=2 [16:17:20]Key pressed [16:17:21]int [16:17:21]Write to MH i2c: 01 00 00 79 01 7A [16:17:21]*** FLAG_PRN_KEY reset [16:17:21]Write i2c OK [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: 01 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: 01 07 00 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 F7 0F 87 [16:17:21]state=2 [16:17:21]Stop feed [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:35]accept exits with 8 [16:17:35]New connection [16:17:35]New thread 3066850660 created [16:17:35]Thread 3066707300 joined [16:17:35]Waiting for new connection... [16:17:35] Sock 8.Parse request [16:17:35]Sock 8.Check first char [16:17:35]Sock 8.First char is OK [16:17:35]request: POST /json_proto HTTP/1.0 [16:17:35]Method: POST [16:17:35]URL: /json_proto [16:17:35]Method is POST - this is cgi request [16:17:35]url: /json_proto [16:17:35]query_string will be loaded in cgi processing [16:17:35]execute_cgi json_proto POST (null) [16:17:35]execute_cgi path=json_proto method=POST [16:17:35]POST find Content-Length [16:17:35]Host: 172.17.35.133:8080 [16:17:35]Content-Length: 656 [16:17:35]Content-Type: application/json [16:17:35] [16:17:35]POST finish read [16:17:35]Found Content-Length = 656 [16:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256214", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:35]execute_script... [16:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256214", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:35]POST & json_proto [16:17:35]process_json_proto [16:17:35]json parsed OK: [16:17:35]protocol is kg_v1.0 [16:17:35]action value=close_receipt [16:17:35]process_action close_receipt [16:17:35]cmd_close_receipt [16:17:35]MH_GetDate [16:17:35]Write to MH i2c: F0 00 00 7A 01 6A [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: F0 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: F0 09 00 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: F0 09 00 7A 01 00 9F 05 90 66 1B 28 2A 66 E0 [16:17:35]GetLastDocTimeStamp 1720714365 [16:17:35]current date 1720714655 [16:17:35]FM_GetShiftState [16:17:35]SAM_PROTO_GetShiftState [16:17:35]wFMCommunicate request_size=4 [16:17:35]MH_SAM_APDU [16:17:35]CAPDU: 80 13 01 00 [16:17:35]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:35]Read from MH i2c: E2 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 0E 00 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 57 [16:17:35]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:17:35]wFMCommunicate OK [16:17:35]SAM_PROTO_GetShiftState done [16:17:35]FM_GetShiftState done [16:17:35]opened in 1720656698 [16:17:35]opened+sec_in_day 1720743098 [16:17:35]quantity*price = 400 [16:17:35]sum+1 = 401 [16:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 56 11.07.2024 16:17 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1740 ФПД: 264052107647672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T161735&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1740&fm=264052107647672&tin=02508201610067®Number=0000000000177495&sum=400 0 [16:17:36]StoreToDocumentArchive [16:17:36]shift 22 fd 1740 [16:17:36]save to /storage/0022/doc_00001740 [16:17:36]save last doc name /storage/0022/doc_00001740 to /storage/kkm_last_doc_name [16:17:36]save OK [16:17:36]Clear old archive folders... [16:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:17:36]tlvbuf is 01DC54F0 [16:17:36]SAM_PROTO_ClearQueue [16:17:36]wFMCommunicate request_size=4 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 09 00 00 [16:17:36]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [16:17:36]RAPDU: 90 00 [16:17:36]wFMCommunicate OK [16:17:36]SAM_PROTO_ClearQueue done [16:17:36]KKMCreateOFDPacket [16:17:36]OFDProtocolAddRootSTLVToBuf [16:17:36]FM_MakeSignedData [16:17:36]FM_MakeSignedData [16:17:36]SAM_PROTO_SignData [16:17:36]wFMCommunicate request_size=4 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 0D 01 02 [16:17:36]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [16:17:36]RAPDU: 90 00 [16:17:36]wFMCommunicate OK [16:17:36]wFMCommunicate request_size=255 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9F 05 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 [16:17:36]Write to MH i2c: E2 02 01 8A 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9F 05 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 00 00 30 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [16:17:36]RAPDU: 90 00 [16:17:36]wFMCommunicate OK [16:17:36]wFMCommunicate request_size=37 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CC 06 00 00 35 04 06 00 F0 27 6C 14 1A B8 [16:17:36]Write to MH i2c: E2 28 00 8B 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CC 06 00 00 35 04 06 00 F0 27 6C 14 1A B8 00 00 9B [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [16:17:37]RAPDU: 90 00 [16:17:37]wFMCommunicate OK [16:17:37]wFMCommunicate request_size=4 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 0D 03 02 [16:17:37]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 0B 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 0B 00 8C 01 00 63 52 5F A3 01 9B 14 E5 90 00 55 [16:17:37]RAPDU: 63 52 5F A3 01 9B 14 E5 90 00 [16:17:37]wFMCommunicate OK [16:17:37]SAM_PROTO_SignData done [16:17:37]FM_MakeSignedData done [16:17:37]CreateOFDProtocolMessage [16:17:37]wFMCommunicate request_size=4 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 11 00 00 [16:17:37]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 17 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5E [16:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:17:37]wFMCommunicate OK [16:17:37]CreateOFDProtocolMessage done [16:17:37]OFDSenderStorePacket 1740 [16:17:37]StoreOFDPacket docnum=1740 [16:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 1C 0D 22 01 3B 38 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9F 05 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CC 06 00 00 35 04 06 00 F0 27 6C 14 1A B8 63 52 5F A3 01 9B 14 E5 [16:17:37]CheckFolder [16:17:37]dirname=/storage/ofd_packets [16:17:37]CheckFolder done [16:17:37]ProducePacketName [16:17:37]name=ofd_packets/00001740 [16:17:37]NVStorageSaveData ofd_packets/00001740 [16:17:37]File name is /storage/ofd_packets/00001740 [16:17:37]Write 328 bytes [16:17:37]NVStorageSaveData done [16:17:37]OFDSenderStorePacket done [16:17:37]KKMCreateOFDPacket done [16:17:37]NVStorageSaveData kkm_last_timestamp [16:17:37]File name is /storage/kkm_last_timestamp [16:17:37]Write 4 bytes [16:17:37]NVStorageSaveData done [16:17:37]ExternCall_PrintAddStr [16:17:37]wPrintStart [16:17:37]Write to MH i2c: 01 00 00 8E 01 8F [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 07 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [16:17:37]RasterBufferAndPrint [16:17:37]line Счет N : (3)256214 [16:17:37]line ИНН: 02508201610067 [16:17:37]line Контрольно-Кассовый Чек [16:17:37]line ПРОДАЖА [16:17:37]line Товар: 2000031750019 [16:17:37]line Пакет Партнер Нефть [16:17:37]line 1.000 * 4.00 [16:17:37]line = 4.00 [16:17:37]line НДС 12% НСП 1% [16:17:37]line > о реализуемом товаре [16:17:37]line ИТОГО: 4.00 [16:17:37]line НСП 1% : 0.03 [16:17:37]line НДС 12% : 0.42 [16:17:37]line Наличными: 4.00 [16:17:37]line Безнал.: 0.00 [16:17:37]line Место: АЗС № 76 "Партнер Нефть" [16:17:37]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:17:37]line СНО: Общий режим [16:17:37]line Чек 56 11.07.2024 16:17 [16:17:37]line Смена: 22 ФФД: 1.0 [16:17:37]line ЗНМ: 0300000124 [16:17:37]line РНМ: 0000000000177495 [16:17:37]line Версия ККМ: 001 [16:17:37]line ФМ: 0000000002098592 [16:17:37]line ФД: 1740 [16:17:37]line ФПД: 264052107647672 [16:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T161735&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1740&fm=264052107647672&tin=02508201610067®Number=0000000000177495&sum=400 [16:17:37]line 0 [16:17:37]OFD Sender: Processing packet 1740 [packets to send 1, broken 0] [16:17:37]ProducePacketName [16:17:37]name=ofd_packets/00001740 [16:17:37]OFD Sender: To server: pG, [16:17:37]CommunicateWithHost lk.salyk.kg:30040 [16:17:37]ConnectInit lk.salyk.kg [16:17:37]written 0, free lines is 4095 [16:17:37]Connected sock=10 [16:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 1C 0D 22 01 3B 38 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9F 05 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CC 06 00 00 35 04 06 00 F0 27 6C 14 1A B8 63 52 5F A3 01 9B 14 E5 [16:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 B6 87 47 00 DA 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CC 06 00 00 F4 03 04 00 DA B0 8F 66 B6 04 01 00 00 8A 48 FA 89 06 AC 03 9B [16:17:37]CommunicateWithHost err = 0 [16:17:37]CheckOFDResponse [16:17:37]1017 (14) - 77093643461234 [16:17:37]1041 (16) - 0000000002098592 [16:17:37]1040 (4) - 1740 [16:17:37]1012 (4) - 11.07.2024 10:15 [16:17:37]1206 (1) - 0 [16:17:37]OFD Sender: Remove packet 1740 [16:17:37]ProducePacketName [16:17:37]name=ofd_packets/00001740 [16:17:37]NVStorageDeleteData [16:17:37]Write to MH i2c: 01 00 00 B6 01 B7 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 07 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 17 0D E2 [16:17:37]RasterBufferAndPrint [16:17:37]line [16:17:37]line [16:17:37]line [16:17:37]line [16:17:37]line [16:17:37]written 0, free lines is 3356 [16:17:37]MH_Cut [16:17:37]Write to MH i2c: D1 01 00 BD 01 01 90 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: D1 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: D1 01 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: D1 01 00 BD 01 00 8F [16:17:37]Write to MH i2c: 01 00 00 BE 01 BF [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:38]OFD Sender: No OFD packet to send [16:17:38]*** Cut start [16:17:38]*** Partial cut [16:17:38]*** CUTSNS_PIN = 1 [16:17:38]*** CUTSNS_PIN = 0 [16:17:38]*** Brake cut motor [16:17:39]Read from MH i2c: 01 [16:17:39]MH_I2C_Read... [16:17:39]*** Stop cut motor [16:17:39]*** Cut end [16:17:39]Read from MH i2c: 01 07 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [16:17:39]process_action close_receipt done [16:17:39]requested_data is exist [16:17:39]produce_requested_data [16:17:39]requested_item fm.sn is exist - process it [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 11 00 00 [16:17:39]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 17 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 90 [16:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:17:39]wFMCommunicate OK [16:17:39]requested_item fd.num is exist - process it [16:17:39]SAM_PROTO_GetFieldsCounters [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 00 00 [16:17:39]Write to MH i2c: E2 08 00 C0 01 80 13 00 00 00 00 00 00 3D [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 62 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 62 00 C0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CC 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [16:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CC 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetFieldsCounters done [16:17:39]requested_item shift.num is exist - process it [16:17:39]requested_item shift.opened is exist - process it [16:17:39]req_shift_opened [16:17:39]FM_GetShiftState [16:17:39]SAM_PROTO_GetShiftState [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 01 00 [16:17:39]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 9D [16:17:39]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetShiftState done [16:17:39]FM_GetShiftState done [16:17:39]req_shift_opened done [16:17:39]requested_item shift.open_date is exist - process it [16:17:39]req_shift_open_date [16:17:39]req_shift_open_date done [16:17:39]produce_requested_data done [16:17:39]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1740,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:17:39]process_action_free close_receipt [16:17:39]json_value_free [16:17:39]json_value_free done [16:17:39]process_json_proto returns [16:17:39]Send response to host [16:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1740,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:17:39]free response buf [16:17:39]execute_script done [16:17:39]execute_script returns [16:17:39]free content buf [16:17:39]Sock 8.Close socket [16:17:39]Sock 8.Thread stoped [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:34]accept exits with 9 [16:22:34]New connection [16:22:34]New thread 3066707300 created [16:22:34]Thread 3066850660 joined [16:22:34]Waiting for new connection... [16:22:34] Sock 9.Parse request [16:22:34]Sock 9.Check first char [16:22:34]Sock 9.First char is OK [16:22:34]request: POST /json_proto HTTP/1.0 [16:22:34]Method: POST [16:22:34]URL: /json_proto [16:22:34]Method is POST - this is cgi request [16:22:34]url: /json_proto [16:22:34]query_string will be loaded in cgi processing [16:22:34]execute_cgi json_proto POST (null) [16:22:34]execute_cgi path=json_proto method=POST [16:22:34]POST find Content-Length [16:22:34]Host: 172.17.35.133:8080 [16:22:34]Content-Length: 1168 [16:22:34]Content-Type: application/json [16:22:34] [16:22:34]POST finish read [16:22:34]Found Content-Length = 1168 [16:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256215", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:34]execute_script... [16:22:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256215", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:34]POST & json_proto [16:22:34]process_json_proto [16:22:34]json parsed OK: [16:22:34]protocol is kg_v1.0 [16:22:34]action value=close_receipt [16:22:34]process_action close_receipt [16:22:34]cmd_close_receipt [16:22:34]MH_GetDate [16:22:34]Write to MH i2c: F0 00 00 C2 01 B2 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: F0 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: F0 09 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: F0 09 00 C2 01 00 CB 06 90 66 1B 28 2A 66 55 [16:22:34]GetLastDocTimeStamp 1720714655 [16:22:34]current date 1720714955 [16:22:34]FM_GetShiftState [16:22:34]SAM_PROTO_GetShiftState [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 01 00 [16:22:34]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 9F [16:22:34]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_GetShiftState done [16:22:34]FM_GetShiftState done [16:22:34]opened in 1720656698 [16:22:34]opened+sec_in_day 1720743098 [16:22:34]quantity*price = 400 [16:22:34]sum+1 = 401 [16:22:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.44 НДС 12% : 17.41 Наличными: 164.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 57 11.07.2024 16:22 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1741 ФПД: 238304879775205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T162235&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1741&fm=238304879775205&tin=02508201610067®Number=0000000000177495&sum=16400 0 [16:22:36]StoreToDocumentArchive [16:22:36]shift 22 fd 1741 [16:22:36]save to /storage/0022/doc_00001741 [16:22:36]save last doc name /storage/0022/doc_00001741 to /storage/kkm_last_doc_name [16:22:36]save OK [16:22:36]Clear old archive folders... [16:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=483 [16:22:36]tlvbuf is 01DC7960 [16:22:36]SAM_PROTO_ClearQueue [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 09 00 00 [16:22:36]Write to MH i2c: E2 08 00 D0 01 80 09 00 00 00 00 00 00 43 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [16:22:36]RAPDU: 90 00 [16:22:36]wFMCommunicate OK [16:22:36]SAM_PROTO_ClearQueue done [16:22:36]KKMCreateOFDPacket [16:22:36]OFDProtocolAddRootSTLVToBuf [16:22:36]FM_MakeSignedData [16:22:36]FM_MakeSignedData [16:22:36]SAM_PROTO_SignData [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 0D 01 02 [16:22:36]Write to MH i2c: E2 08 00 D1 01 80 0D 01 02 00 00 00 00 4B [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [16:22:36]RAPDU: 90 00 [16:22:36]wFMCommunicate OK [16:22:36]wFMCommunicate request_size=255 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 0D 02 02 FA 03 00 E3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 [16:22:36]Write to MH i2c: E2 02 01 D2 01 80 0D 02 02 FA 00 03 00 E3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 00 00 E2 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:36]Read from MH i2c: E2 03 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [16:22:36]RAPDU: 90 00 [16:22:36]wFMCommunicate OK [16:22:36]wFMCommunicate request_size=242 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 0D 02 02 ED D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CB 06 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CD 06 00 00 35 04 06 00 D8 BC AD B5 0D E5 [16:22:36]Write to MH i2c: E2 F5 00 D3 01 80 0D 02 02 ED 00 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CB 06 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CD 06 00 00 35 04 06 00 D8 BC AD B5 0D E5 00 00 16 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [16:22:36]RAPDU: 90 00 [16:22:36]wFMCommunicate OK [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 0D 03 02 [16:22:36]Write to MH i2c: E2 08 00 D4 01 80 0D 03 02 00 00 00 00 50 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 0B 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 0B 00 D4 01 00 4B 4C CC 93 39 E6 54 8E 90 00 48 [16:22:36]RAPDU: 4B 4C CC 93 39 E6 54 8E 90 00 [16:22:36]wFMCommunicate OK [16:22:36]SAM_PROTO_SignData done [16:22:36]FM_MakeSignedData done [16:22:36]CreateOFDProtocolMessage [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 11 00 00 [16:22:36]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 17 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A6 [16:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:22:37]wFMCommunicate OK [16:22:37]CreateOFDProtocolMessage done [16:22:37]OFDSenderStorePacket 1741 [16:22:37]StoreOFDPacket docnum=1741 [16:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 F7 01 00 00 5A 55 EF 01 36 21 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CB 06 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CD 06 00 00 35 04 06 00 D8 BC AD B5 0D E5 4B 4C CC 93 39 E6 54 8E [16:22:37]CheckFolder [16:22:37]dirname=/storage/ofd_packets [16:22:37]CheckFolder done [16:22:37]ProducePacketName [16:22:37]name=ofd_packets/00001741 [16:22:37]NVStorageSaveData ofd_packets/00001741 [16:22:37]File name is /storage/ofd_packets/00001741 [16:22:37]Write 533 bytes [16:22:37]NVStorageSaveData done [16:22:37]OFDSenderStorePacket done [16:22:37]KKMCreateOFDPacket done [16:22:37]NVStorageSaveData kkm_last_timestamp [16:22:37]File name is /storage/kkm_last_timestamp [16:22:37]Write 4 bytes [16:22:37]NVStorageSaveData done [16:22:37]ExternCall_PrintAddStr [16:22:37]wPrintStart [16:22:37]Write to MH i2c: 01 00 00 D6 01 D7 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [16:22:37]RasterBufferAndPrint [16:22:37]line Счет N : (3)256215 [16:22:37]line ИНН: 02508201610067 [16:22:37]line Контрольно-Кассовый Чек [16:22:37]line ПРОДАЖА [16:22:37]line Товар: 2000031750019 [16:22:37]line Пакет Партнер Нефть [16:22:37]line 1.000 * 4.00 [16:22:37]line = 4.00 [16:22:37]line НДС 12% НСП 1% [16:22:37]line > о реализуемом товаре [16:22:37]line Товар: 4700000160358 [16:22:37]line Вода Легенда 1л [16:22:37]line 2.000 * 50.00 [16:22:37]line = 100.00 [16:22:37]line НДС 12% НСП 1% [16:22:37]line > о реализуемом товаре [16:22:37]line Товар: 4700000310043 [16:22:37]line Вода Жалалабат 27 1л [16:22:37]line 1.000 * 60.00 [16:22:37]line = 60.00 [16:22:37]line НДС 12% НСП 1% [16:22:37]line > о реализуемом товаре [16:22:37]line ИТОГО: 164.00 [16:22:37]line НСП 1% : 1.44 [16:22:37]line НДС 12% : 17.41 [16:22:37]line Наличными: 164.00 [16:22:37]line Безнал.: 0.00 [16:22:37]line Место: АЗС № 76 "Партнер Нефть" [16:22:37]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:22:37]line СНО: Общий режим [16:22:37]line Чек 57 11.07.2024 16:22 [16:22:37]line Смена: 22 ФФД: 1.0 [16:22:37]line ЗНМ: 0300000124 [16:22:37]line РНМ: 0000000000177495 [16:22:37]line Версия ККМ: 001 [16:22:37]line ФМ: 0000000002098592 [16:22:37]line ФД: 1741 [16:22:37]line ФПД: 238304879775205 [16:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T162235&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1741&fm=238304879775205&tin=02508201610067®Number=0000000000177495&sum=16400 [16:22:37]line 0 [16:22:37]written 0, free lines is 4095 [16:22:37]OFD Sender: Processing packet 1741 [packets to send 1, broken 0] [16:22:37]ProducePacketName [16:22:37]name=ofd_packets/00001741 [16:22:37]OFD Sender: To server: pG, [16:22:37]CommunicateWithHost lk.salyk.kg:30040 [16:22:37]ConnectInit lk.salyk.kg [16:22:37]Connected sock=10 [16:22:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 F7 01 00 00 5A 55 EF 01 36 21 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CB 06 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CD 06 00 00 35 04 06 00 D8 BC AD B5 0D E5 4B 4C CC 93 39 E6 54 8E [16:22:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 85 3C 47 00 A9 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CD 06 00 00 F4 03 04 00 05 B2 8F 66 B6 04 01 00 00 0A 7F 16 A4 01 27 10 BF [16:22:37]CommunicateWithHost err = 0 [16:22:37]CheckOFDResponse [16:22:37]1017 (14) - 77093643461234 [16:22:37]1041 (16) - 0000000002098592 [16:22:37]1040 (4) - 1741 [16:22:37]1012 (4) - 11.07.2024 10:20 [16:22:37]1206 (1) - 0 [16:22:37]OFD Sender: Remove packet 1741 [16:22:37]ProducePacketName [16:22:37]name=ofd_packets/00001741 [16:22:37]NVStorageDeleteData [16:22:37]Write to MH i2c: 01 00 00 0A 02 0C [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 56 0C 75 [16:22:37]RasterBufferAndPrint [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]written 0, free lines is 3164 [16:22:37]MH_Cut [16:22:37]Write to MH i2c: D1 01 00 11 02 01 E5 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 01 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 01 00 11 02 00 E4 [16:22:37]Write to MH i2c: 01 00 00 12 02 14 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]OFD Sender: No OFD packet to send [16:22:38]*** Cut start [16:22:38]*** Partial cut [16:22:38]*** CUTSNS_PIN = 1 [16:22:38]*** CUTSNS_PIN = 0 [16:22:38]*** Brake cut motor [16:22:39]Read from MH i2c: 01 [16:22:39]MH_I2C_Read... [16:22:39]*** Stop cut motor [16:22:39]*** Cut end [16:22:39]Read from MH i2c: 01 07 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: 01 07 00 12 02 00 00 00 00 00 FF 0F 29 [16:22:39]process_action close_receipt done [16:22:39]requested_data is exist [16:22:39]produce_requested_data [16:22:39]requested_item fm.sn is exist - process it [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 11 00 00 [16:22:39]Write to MH i2c: E2 08 00 13 02 80 11 00 00 00 00 00 00 8F [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 17 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 17 00 13 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E5 [16:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:22:39]wFMCommunicate OK [16:22:39]requested_item fd.num is exist - process it [16:22:39]SAM_PROTO_GetFieldsCounters [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 13 00 00 [16:22:39]Write to MH i2c: E2 08 00 14 02 80 13 00 00 00 00 00 00 92 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 62 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 62 00 14 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CD 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CD 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:39]wFMCommunicate OK [16:22:39]SAM_PROTO_GetFieldsCounters done [16:22:39]requested_item shift.num is exist - process it [16:22:39]requested_item shift.opened is exist - process it [16:22:39]req_shift_opened [16:22:39]FM_GetShiftState [16:22:39]SAM_PROTO_GetShiftState [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 13 01 00 [16:22:39]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 0E 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F2 [16:22:39]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:22:39]wFMCommunicate OK [16:22:39]SAM_PROTO_GetShiftState done [16:22:39]FM_GetShiftState done [16:22:39]req_shift_opened done [16:22:39]requested_item shift.open_date is exist - process it [16:22:39]req_shift_open_date [16:22:39]req_shift_open_date done [16:22:39]produce_requested_data done [16:22:39]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1741,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:22:39]process_action_free close_receipt [16:22:39]json_value_free [16:22:39]json_value_free done [16:22:39]process_json_proto returns [16:22:39]Send response to host [16:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1741,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:22:39]free response buf [16:22:39]execute_script done [16:22:39]execute_script returns [16:22:39]free content buf [16:22:39]Sock 9.Close socket [16:22:39]Sock 9.Thread stoped [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:22]accept exits with 8 [16:48:22]New connection [16:48:22]New thread 3066850660 created [16:48:22]Thread 3066707300 joined [16:48:22]Waiting for new connection... [16:48:22] Sock 8.Parse request [16:48:22]Sock 8.Check first char [16:48:22]Sock 8.First char is OK [16:48:22]request: POST /json_proto HTTP/1.0 [16:48:22]Method: POST [16:48:22]URL: /json_proto [16:48:22]Method is POST - this is cgi request [16:48:22]url: /json_proto [16:48:22]query_string will be loaded in cgi processing [16:48:22]execute_cgi json_proto POST (null) [16:48:22]execute_cgi path=json_proto method=POST [16:48:22]POST find Content-Length [16:48:22]Host: 172.17.35.133:8080 [16:48:22]Content-Length: 844 [16:48:22]Content-Type: application/json [16:48:22] [16:48:22]POST finish read [16:48:22]Found Content-Length = 844 [16:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 27.150, "sum" : 1800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1800.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:22]execute_script... [16:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 27.150, "sum" : 1800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1800.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:22]POST & json_proto [16:48:22]process_json_proto [16:48:22]json parsed OK: [16:48:22]protocol is kg_v1.0 [16:48:22]action value=close_receipt [16:48:22]process_action close_receipt [16:48:22]cmd_close_receipt [16:48:22]MH_GetDate [16:48:22]Write to MH i2c: F0 00 00 16 02 07 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: F0 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: F0 09 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: F0 09 00 16 02 00 D6 0C 90 66 1B 28 2A 66 BB [16:48:22]GetLastDocTimeStamp 1720714955 [16:48:22]current date 1720716502 [16:48:22]FM_GetShiftState [16:48:22]SAM_PROTO_GetShiftState [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 13 01 00 [16:48:22]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 0E 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F4 [16:48:22]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:48:22]wFMCommunicate OK [16:48:22]SAM_PROTO_GetShiftState done [16:48:22]FM_GetShiftState done [16:48:22]opened in 1720656698 [16:48:22]opened+sec_in_day 1720743098 [16:48:22]quantity*price = 180004 [16:48:22]sum+1 = 180006 [16:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.05 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.05 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 58 11.07.2024 16:48 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1742 ФПД: 197434049899799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T164822&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1742&fm=197434049899799&tin=02508201610067®Number=0000000000177495&sum=180005 [16:48:23]StoreToDocumentArchive [16:48:23]shift 22 fd 1742 [16:48:23]save to /storage/0022/doc_00001742 [16:48:23]save last doc name /storage/0022/doc_00001742 to /storage/kkm_last_doc_name [16:48:23]save OK [16:48:23]Clear old archive folders... [16:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:23]tlvbuf is 01E5E1E0 [16:48:23]SAM_PROTO_ClearQueue [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 09 00 00 [16:48:23]Write to MH i2c: E2 08 00 24 02 80 09 00 00 00 00 00 00 98 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [16:48:23]RAPDU: 90 00 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_ClearQueue done [16:48:23]KKMCreateOFDPacket [16:48:23]OFDProtocolAddRootSTLVToBuf [16:48:23]FM_MakeSignedData [16:48:23]FM_MakeSignedData [16:48:23]SAM_PROTO_SignData [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 0D 01 02 [16:48:23]Write to MH i2c: E2 08 00 25 02 80 0D 01 02 00 00 00 00 A0 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [16:48:23]RAPDU: 90 00 [16:48:23]wFMCommunicate OK [16:48:23]wFMCommunicate request_size=255 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 6A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 25 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D6 0C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CE 06 00 00 35 04 06 00 B3 [16:48:23]Write to MH i2c: E2 02 01 26 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 6A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 25 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D6 0C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CE 06 00 00 35 04 06 00 B3 00 00 C2 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [16:48:23]RAPDU: 90 00 [16:48:23]wFMCommunicate OK [16:48:23]wFMCommunicate request_size=10 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 0D 02 02 05 90 B2 69 2D 17 [16:48:23]Write to MH i2c: E2 0D 00 27 02 80 0D 02 02 05 00 90 B2 69 2D 17 00 00 9C [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [16:48:23]RAPDU: 90 00 [16:48:23]wFMCommunicate OK [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 0D 03 02 [16:48:23]Write to MH i2c: E2 08 00 28 02 80 0D 03 02 00 00 00 00 A5 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0B 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0B 00 28 02 00 BC 2C 02 73 27 43 98 6B 90 00 70 [16:48:23]RAPDU: BC 2C 02 73 27 43 98 6B 90 00 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_SignData done [16:48:23]FM_MakeSignedData done [16:48:23]CreateOFDProtocolMessage [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 11 00 00 [16:48:23]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 17 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FB [16:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:48:23]wFMCommunicate OK [16:48:23]CreateOFDProtocolMessage done [16:48:23]OFDSenderStorePacket 1742 [16:48:23]StoreOFDPacket docnum=1742 [16:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 53 A2 07 01 8F 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 6A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 25 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D6 0C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CE 06 00 00 35 04 06 00 B3 90 B2 69 2D 17 BC 2C 02 73 27 43 98 6B [16:48:23]CheckFolder [16:48:23]dirname=/storage/ofd_packets [16:48:23]CheckFolder done [16:48:23]ProducePacketName [16:48:23]name=ofd_packets/00001742 [16:48:23]NVStorageSaveData ofd_packets/00001742 [16:48:23]File name is /storage/ofd_packets/00001742 [16:48:23]Write 301 bytes [16:48:23]NVStorageSaveData done [16:48:23]OFDSenderStorePacket done [16:48:23]KKMCreateOFDPacket done [16:48:23]NVStorageSaveData kkm_last_timestamp [16:48:23]File name is /storage/kkm_last_timestamp [16:48:23]Write 4 bytes [16:48:23]NVStorageSaveData done [16:48:23]ExternCall_PrintAddStr [16:48:23]wPrintStart [16:48:23]Write to MH i2c: 01 00 00 2A 02 2C [16:48:23]OFD Sender: Processing packet 1742 [packets to send 1, broken 0] [16:48:23]ProducePacketName [16:48:23]name=ofd_packets/00001742 [16:48:23]OFD Sender: To server: pG, [16:48:23]CommunicateWithHost lk.salyk.kg:30040 [16:48:23]ConnectInit lk.salyk.kg [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [16:48:23]RasterBufferAndPrint [16:48:23]line Счет N : (1)1618532 [16:48:23]line ИНН: 02508201610067 [16:48:23]line Контрольно-Кассовый Чек [16:48:23]line ПРОДАЖА [16:48:23]line ТРК (МРК, ГНК) : 53 [16:48:23]line Товар: 2710124130 [16:48:23]line Аи-92-К-5 [16:48:23]line 27.150 * 66.30 [16:48:23]line = 1800.05 [16:48:23]line НДС 12% НСП 1% [16:48:23]line > о реализуемом товаре [16:48:23]line ИТОГО: 1800.05 [16:48:23]line НСП 1% : 15.93 [16:48:23]line НДС 12% : 191.16 [16:48:23]line Наличными: 0.00 [16:48:23]line Безнал.: 1800.05 [16:48:23]line Место: АЗС № 76 "Партнер Нефть" [16:48:23]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:48:23]line СНО: Общий режим [16:48:23]line Чек 58 11.07.2024 16:48 [16:48:23]line Смена: 22 ФФД: 1.0 [16:48:23]line ЗНМ: 0300000124 [16:48:23]line РНМ: 0000000000177495 [16:48:23]line Версия ККМ: 001 [16:48:23]line Платежная система: АКБ Кыргызстан [16:48:24]line ФМ: 0000000002098592 [16:48:24]line ФД: 1742 [16:48:24]line ФПД: 197434049899799 [16:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T164822&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1742&fm=197434049899799&tin=02508201610067®Number=0000000000177495&sum=180005 [16:48:24]Connected sock=10 [16:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 53 A2 07 01 8F 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 6A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 25 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D6 0C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CE 06 00 00 35 04 06 00 B3 90 B2 69 2D 17 BC 2C 02 73 27 43 98 6B [16:48:24]written 0, free lines is 4095 [16:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 23 95 47 00 2D 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CE 06 00 00 F4 03 04 00 10 B8 8F 66 B6 04 01 00 00 81 94 61 AC 35 BE 6C D0 [16:48:24]CommunicateWithHost err = 0 [16:48:24]CheckOFDResponse [16:48:24]1017 (14) - 77093643461234 [16:48:24]1041 (16) - 0000000002098592 [16:48:24]1040 (4) - 1742 [16:48:24]1012 (4) - 11.07.2024 10:46 [16:48:24]1206 (1) - 0 [16:48:24]OFD Sender: Remove packet 1742 [16:48:24]ProducePacketName [16:48:24]name=ofd_packets/00001742 [16:48:24]NVStorageDeleteData [16:48:24]Write to MH i2c: 01 00 00 54 02 56 [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: 01 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: 01 07 00 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 F4 0C 5D [16:48:24]RasterBufferAndPrint [16:48:24]line [16:48:24]line [16:48:24]line [16:48:24]line [16:48:24]line [16:48:24]written 0, free lines is 3323 [16:48:24]MH_Cut [16:48:24]Write to MH i2c: D1 01 00 5B 02 01 2F [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: D1 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: D1 01 00 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: D1 01 00 5B 02 00 2E [16:48:24]Write to MH i2c: 01 00 00 5C 02 5E [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]OFD Sender: No OFD packet to send [16:48:25]*** Cut start [16:48:25]*** Partial cut [16:48:25]*** CUTSNS_PIN = 1 [16:48:25]*** CUTSNS_PIN = 0 [16:48:25]*** Brake cut motor [16:48:25]Read from MH i2c: 01 [16:48:25]MH_I2C_Read... [16:48:25]*** Stop cut motor [16:48:25]*** Cut end [16:48:25]Read from MH i2c: 01 07 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 FF 0F 73 [16:48:25]process_action close_receipt done [16:48:25]requested_data is exist [16:48:25]produce_requested_data [16:48:25]requested_item fm.sn is exist - process it [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 11 00 00 [16:48:25]Write to MH i2c: E2 08 00 5D 02 80 11 00 00 00 00 00 00 D9 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 17 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 17 00 5D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 2F [16:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:48:25]wFMCommunicate OK [16:48:25]requested_item fd.num is exist - process it [16:48:25]SAM_PROTO_GetFieldsCounters [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 13 00 00 [16:48:25]Write to MH i2c: E2 08 00 5E 02 80 13 00 00 00 00 00 00 DC [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 62 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 62 00 5E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CE 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CE 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:26]wFMCommunicate OK [16:48:26]SAM_PROTO_GetFieldsCounters done [16:48:26]requested_item shift.num is exist - process it [16:48:26]requested_item shift.opened is exist - process it [16:48:26]req_shift_opened [16:48:26]FM_GetShiftState [16:48:26]SAM_PROTO_GetShiftState [16:48:26]wFMCommunicate request_size=4 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 13 01 00 [16:48:26]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 3C [16:48:26]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [16:48:26]wFMCommunicate OK [16:48:26]SAM_PROTO_GetShiftState done [16:48:26]FM_GetShiftState done [16:48:26]req_shift_opened done [16:48:26]requested_item shift.open_date is exist - process it [16:48:26]req_shift_open_date [16:48:26]req_shift_open_date done [16:48:26]produce_requested_data done [16:48:26]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1742,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [16:48:26]process_action_free close_receipt [16:48:26]json_value_free [16:48:26]json_value_free done [16:48:26]process_json_proto returns [16:48:26]Send response to host [16:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1742,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [16:48:26]free response buf [16:48:26]execute_script done [16:48:26]execute_script returns [16:48:26]free content buf [16:48:26]Sock 8.Close socket [16:48:26]Sock 8.Thread stoped [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:29]accept exits with 9 [17:01:29]New connection [17:01:29]New thread 3066707300 created [17:01:29]Thread 3066850660 joined [17:01:29]Waiting for new connection... [17:01:29] Sock 9.Parse request [17:01:29]Sock 9.Check first char [17:01:29]Sock 9.First char is OK [17:01:29]request: POST /json_proto HTTP/1.0 [17:01:29]Method: POST [17:01:29]URL: /json_proto [17:01:29]Method is POST - this is cgi request [17:01:29]url: /json_proto [17:01:29]query_string will be loaded in cgi processing [17:01:29]execute_cgi json_proto POST (null) [17:01:29]execute_cgi path=json_proto method=POST [17:01:29]POST find Content-Length [17:01:29]Host: 172.17.35.133:8080 [17:01:29]Content-Length: 678 [17:01:29]Content-Type: application/json [17:01:29] [17:01:29]POST finish read [17:01:29]Found Content-Length = 678 [17:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:29]execute_script... [17:01:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:29]POST & json_proto [17:01:29]process_json_proto [17:01:29]json parsed OK: [17:01:29]protocol is kg_v1.0 [17:01:29]action value=close_receipt [17:01:29]process_action close_receipt [17:01:29]cmd_close_receipt [17:01:29]MH_GetDate [17:01:29]Write to MH i2c: F0 00 00 60 02 51 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: F0 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: F0 09 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: F0 09 00 60 02 00 EA 0F 90 66 1B 28 2A 66 1C [17:01:29]GetLastDocTimeStamp 1720716502 [17:01:29]current date 1720717290 [17:01:29]FM_GetShiftState [17:01:29]SAM_PROTO_GetShiftState [17:01:29]wFMCommunicate request_size=4 [17:01:29]MH_SAM_APDU [17:01:29]CAPDU: 80 13 01 00 [17:01:29]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:29]Read from MH i2c: E2 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 0E 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 3E [17:01:29]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [17:01:29]wFMCommunicate OK [17:01:29]SAM_PROTO_GetShiftState done [17:01:29]FM_GetShiftState done [17:01:29]opened in 1720656698 [17:01:29]opened+sec_in_day 1720743098 [17:01:29]quantity*price = 50056 [17:01:29]sum+1 = 50058 [17:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 59 11.07.2024 17:01 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1743 ФПД: 50804481258811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T170130&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1743&fm=50804481258811&tin=02508201610067®Number=0000000000177495&sum=50000 [17:01:30]StoreToDocumentArchive [17:01:30]shift 22 fd 1743 [17:01:30]save to /storage/0022/doc_00001743 [17:01:30]save last doc name /storage/0022/doc_00001743 to /storage/kkm_last_doc_name [17:01:30]save OK [17:01:30]Clear old archive folders... [17:01:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:30]tlvbuf is 01DC34C0 [17:01:30]SAM_PROTO_ClearQueue [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 09 00 00 [17:01:30]Write to MH i2c: E2 08 00 6E 02 80 09 00 00 00 00 00 00 E2 [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 03 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [17:01:30]RAPDU: 90 00 [17:01:30]wFMCommunicate OK [17:01:30]SAM_PROTO_ClearQueue done [17:01:30]KKMCreateOFDPacket [17:01:30]OFDProtocolAddRootSTLVToBuf [17:01:30]FM_MakeSignedData [17:01:30]FM_MakeSignedData [17:01:30]SAM_PROTO_SignData [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 0D 01 02 [17:01:30]Write to MH i2c: E2 08 00 6F 02 80 0D 01 02 00 00 00 00 EA [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 03 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [17:01:30]RAPDU: 90 00 [17:01:30]wFMCommunicate OK [17:01:30]wFMCommunicate request_size=255 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EA 0F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CF 06 00 00 35 04 06 00 2E [17:01:30]Write to MH i2c: E2 02 01 70 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EA 0F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CF 06 00 00 35 04 06 00 2E 00 00 E2 [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [17:01:31]RAPDU: 90 00 [17:01:31]wFMCommunicate OK [17:01:31]wFMCommunicate request_size=10 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 0D 02 02 05 34 D7 0E F5 3B [17:01:31]Write to MH i2c: E2 0D 00 71 02 80 0D 02 02 05 00 34 D7 0E F5 3B 00 00 40 [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [17:01:31]RAPDU: 90 00 [17:01:31]wFMCommunicate OK [17:01:31]wFMCommunicate request_size=4 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 0D 03 02 [17:01:31]Write to MH i2c: E2 08 00 72 02 80 0D 03 02 00 00 00 00 EF [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 0B 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 0B 00 72 02 00 ED D2 89 4D AC 89 21 0F 90 00 EA [17:01:31]RAPDU: ED D2 89 4D AC 89 21 0F 90 00 [17:01:31]wFMCommunicate OK [17:01:31]SAM_PROTO_SignData done [17:01:31]FM_MakeSignedData done [17:01:31]CreateOFDProtocolMessage [17:01:31]wFMCommunicate request_size=4 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 11 00 00 [17:01:31]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 17 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 45 [17:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [17:01:31]wFMCommunicate OK [17:01:31]CreateOFDProtocolMessage done [17:01:31]OFDSenderStorePacket 1743 [17:01:31]StoreOFDPacket docnum=1743 [17:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 52 6F 07 01 D4 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EA 0F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CF 06 00 00 35 04 06 00 2E 34 D7 0E F5 3B ED D2 89 4D AC 89 21 0F [17:01:31]CheckFolder [17:01:31]dirname=/storage/ofd_packets [17:01:31]CheckFolder done [17:01:31]ProducePacketName [17:01:31]name=ofd_packets/00001743 [17:01:31]NVStorageSaveData ofd_packets/00001743 [17:01:31]File name is /storage/ofd_packets/00001743 [17:01:31]Write 301 bytes [17:01:31]NVStorageSaveData done [17:01:31]OFDSenderStorePacket done [17:01:31]KKMCreateOFDPacket done [17:01:31]NVStorageSaveData kkm_last_timestamp [17:01:31]File name is /storage/kkm_last_timestamp [17:01:31]Write 4 bytes [17:01:31]NVStorageSaveData done [17:01:31]ExternCall_PrintAddStr [17:01:31]wPrintStart [17:01:31]Write to MH i2c: 01 00 00 74 02 76 [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: 01 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: 01 07 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [17:01:31]RasterBufferAndPrint [17:01:31]line Счет N : (1)1618538 [17:01:31]line ИНН: 02508201610067 [17:01:31]line Контрольно-Кассовый Чек [17:01:31]line ПРОДАЖА [17:01:31]line ТРК (МРК, ГНК) : 24 [17:01:31]line Товар: 2710124130 [17:01:31]line Аи-92-К-5 [17:01:31]line 7.550 * 66.30 [17:01:31]line = 500.57 [17:01:31]line НДС 12% НСП 1% [17:01:31]line > о реализуемом товаре [17:01:31]line ОКРУГЛЕНИЕ: -0.57 [17:01:31]line ИТОГО: 500.00 [17:01:31]line Внесено: 500.00 [17:01:31]line СДАЧА: 0.00 [17:01:31]line НСП 1% : 4.43 [17:01:31]line НДС 12% : 53.16 [17:01:31]line Наличными: 500.00 [17:01:31]line Безнал.: 0.00 [17:01:31]line Место: АЗС № 76 "Партнер Нефть" [17:01:31]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [17:01:31]line СНО: Общий режим [17:01:31]line Чек 59 11.07.2024 17:01 [17:01:31]line Смена: 22 ФФД: 1.0 [17:01:31]line ЗНМ: 0300000124 [17:01:31]line РНМ: 0000000000177495 [17:01:31]line Версия ККМ: 001 [17:01:31]line ФМ: 0000000002098592 [17:01:31]line ФД: 1743 [17:01:31]line ФПД: 50804481258811 [17:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T170130&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1743&fm=50804481258811&tin=02508201610067®Number=0000000000177495&sum=50000 [17:01:31]OFD Sender: Processing packet 1743 [packets to send 1, broken 0] [17:01:31]ProducePacketName [17:01:31]name=ofd_packets/00001743 [17:01:31]OFD Sender: To server: pG, [17:01:31]CommunicateWithHost lk.salyk.kg:30040 [17:01:31]ConnectInit lk.salyk.kg [17:01:31]written 0, free lines is 4095 [17:01:31]Connected sock=10 [17:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 52 6F 07 01 D4 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EA 0F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CF 06 00 00 35 04 06 00 2E 34 D7 0E F5 3B ED D2 89 4D AC 89 21 0F [17:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 8C 95 47 00 98 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 CF 06 00 00 F4 03 04 00 24 BB 8F 66 B6 04 01 00 00 0C 3A 3A 56 2D 80 1F 59 [17:01:31]CommunicateWithHost err = 0 [17:01:31]CheckOFDResponse [17:01:31]1017 (14) - 77093643461234 [17:01:31]1041 (16) - 0000000002098592 [17:01:31]1040 (4) - 1743 [17:01:31]1012 (4) - 11.07.2024 10:59 [17:01:31]1206 (1) - 0 [17:01:31]OFD Sender: Remove packet 1743 [17:01:31]ProducePacketName [17:01:31]name=ofd_packets/00001743 [17:01:31]NVStorageDeleteData [17:01:32]Write to MH i2c: 01 00 00 9F 02 A1 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 DF 0C 93 [17:01:32]RasterBufferAndPrint [17:01:32]line [17:01:32]line [17:01:32]line [17:01:32]line [17:01:32]line [17:01:32]written 0, free lines is 3302 [17:01:32]MH_Cut [17:01:32]Write to MH i2c: D1 01 00 A6 02 01 7A [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: D1 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: D1 01 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: D1 01 00 A6 02 00 79 [17:01:32]Write to MH i2c: 01 00 00 A7 02 A9 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]OFD Sender: No OFD packet to send [17:01:32]*** Cut start [17:01:32]*** Partial cut [17:01:32]*** CUTSNS_PIN = 1 [17:01:32]*** CUTSNS_PIN = 0 [17:01:33]*** Brake cut motor [17:01:33]Read from MH i2c: 01 [17:01:33]MH_I2C_Read... [17:01:33]*** Stop cut motor [17:01:33]*** Cut end [17:01:33]Read from MH i2c: 01 07 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [17:01:33]process_action close_receipt done [17:01:33]requested_data is exist [17:01:33]produce_requested_data [17:01:33]requested_item fm.sn is exist - process it [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 11 00 00 [17:01:33]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 17 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7A [17:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [17:01:33]wFMCommunicate OK [17:01:33]requested_item fd.num is exist - process it [17:01:33]SAM_PROTO_GetFieldsCounters [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 13 00 00 [17:01:33]Write to MH i2c: E2 08 00 A9 02 80 13 00 00 00 00 00 00 27 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 62 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 62 00 A9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CF 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 CF 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_GetFieldsCounters done [17:01:33]requested_item shift.num is exist - process it [17:01:33]requested_item shift.opened is exist - process it [17:01:33]req_shift_opened [17:01:33]FM_GetShiftState [17:01:33]SAM_PROTO_GetShiftState [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 13 01 00 [17:01:33]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 0E 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 87 [17:01:33]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [17:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_GetShiftState done [17:01:33]FM_GetShiftState done [17:01:33]req_shift_opened done [17:01:33]requested_item shift.open_date is exist - process it [17:01:33]req_shift_open_date [17:01:33]req_shift_open_date done [17:01:33]produce_requested_data done [17:01:33]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1743,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [17:01:33]process_action_free close_receipt [17:01:33]json_value_free [17:01:33]json_value_free done [17:01:33]process_json_proto returns [17:01:33]Send response to host [17:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1743,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [17:01:33]free response buf [17:01:33]execute_script done [17:01:33]execute_script returns [17:01:33]free content buf [17:01:33]Sock 9.Close socket [17:01:33]Sock 9.Thread stoped [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:29]accept exits with 8 [17:27:29]New connection [17:27:29]New thread 3066850660 created [17:27:29]Thread 3066707300 joined [17:27:29]Waiting for new connection... [17:27:29] Sock 8.Parse request [17:27:29]Sock 8.Check first char [17:27:29]Sock 8.First char is OK [17:27:29]request: POST /json_proto HTTP/1.0 [17:27:29]Method: POST [17:27:29]URL: /json_proto [17:27:29]Method is POST - this is cgi request [17:27:29]url: /json_proto [17:27:29]query_string will be loaded in cgi processing [17:27:29]execute_cgi json_proto POST (null) [17:27:29]execute_cgi path=json_proto method=POST [17:27:29]POST find Content-Length [17:27:29]Host: 172.17.35.133:8080 [17:27:29]Content-Length: 637 [17:27:29]Content-Type: application/json [17:27:29] [17:27:29]POST finish read [17:27:29]Found Content-Length = 637 [17:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256216", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:29]execute_script... [17:27:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256216", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:29]POST & json_proto [17:27:29]process_json_proto [17:27:29]json parsed OK: [17:27:29]protocol is kg_v1.0 [17:27:29]action value=close_receipt [17:27:29]process_action close_receipt [17:27:29]cmd_close_receipt [17:27:29]MH_GetDate [17:27:29]Write to MH i2c: F0 00 00 AB 02 9C [17:27:29]Write i2c OK [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: F0 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: F0 09 00 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: F0 09 00 AB 02 00 01 16 90 66 1B 28 2A 66 85 [17:27:29]GetLastDocTimeStamp 1720717290 [17:27:29]current date 1720718849 [17:27:29]FM_GetShiftState [17:27:29]SAM_PROTO_GetShiftState [17:27:29]wFMCommunicate request_size=4 [17:27:29]MH_SAM_APDU [17:27:29]CAPDU: 80 13 01 00 [17:27:29]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [17:27:29]Write i2c OK [17:27:29]MH_I2C_Read... [17:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:29]Read from MH i2c: E2 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 0E 00 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 89 [17:27:29]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [17:27:29]wFMCommunicate OK [17:27:29]SAM_PROTO_GetShiftState done [17:27:29]FM_GetShiftState done [17:27:29]opened in 1720656698 [17:27:29]opened+sec_in_day 1720743098 [17:27:29]quantity*price = 7000 [17:27:29]sum+1 = 7001 [17:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 60 11.07.2024 17:27 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1744 ФПД: 95437491300583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T172729&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1744&fm=95437491300583&tin=02508201610067®Number=0000000000177495&sum=7000 0 [17:27:30]StoreToDocumentArchive [17:27:30]shift 22 fd 1744 [17:27:30]save to /storage/0022/doc_00001744 [17:27:30]save last doc name /storage/0022/doc_00001744 to /storage/kkm_last_doc_name [17:27:30]save OK [17:27:30]Clear old archive folders... [17:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:27:30]tlvbuf is 01DC04E0 [17:27:30]SAM_PROTO_ClearQueue [17:27:30]wFMCommunicate request_size=4 [17:27:30]MH_SAM_APDU [17:27:30]CAPDU: 80 09 00 00 [17:27:30]Write to MH i2c: E2 08 00 B9 02 80 09 00 00 00 00 00 00 2D [17:27:30]Write i2c OK [17:27:30]MH_I2C_Read... [17:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:30]Read from MH i2c: E2 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 03 00 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [17:27:30]RAPDU: 90 00 [17:27:30]wFMCommunicate OK [17:27:30]SAM_PROTO_ClearQueue done [17:27:30]KKMCreateOFDPacket [17:27:30]OFDProtocolAddRootSTLVToBuf [17:27:30]FM_MakeSignedData [17:27:30]FM_MakeSignedData [17:27:30]SAM_PROTO_SignData [17:27:30]wFMCommunicate request_size=4 [17:27:30]MH_SAM_APDU [17:27:30]CAPDU: 80 0D 01 02 [17:27:30]Write to MH i2c: E2 08 00 BA 02 80 0D 01 02 00 00 00 00 35 [17:27:30]Write i2c OK [17:27:30]MH_I2C_Read... [17:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:30]Read from MH i2c: E2 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 03 00 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [17:27:30]RAPDU: 90 00 [17:27:30]wFMCommunicate OK [17:27:30]wFMCommunicate request_size=255 [17:27:30]MH_SAM_APDU [17:27:30]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 01 16 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 [17:27:30]Write to MH i2c: E2 02 01 BB 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 01 16 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 9E [17:27:30]Write i2c OK [17:27:30]MH_I2C_Read... [17:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:30]Read from MH i2c: E2 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 03 00 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [17:27:30]RAPDU: 90 00 [17:27:30]wFMCommunicate OK [17:27:30]wFMCommunicate request_size=31 [17:27:30]MH_SAM_APDU [17:27:30]CAPDU: 80 0D 02 02 1A 30 32 30 39 38 35 39 32 10 04 04 00 D0 06 00 00 35 04 06 00 56 CC C5 C4 68 E7 [17:27:30]Write to MH i2c: E2 22 00 BC 02 80 0D 02 02 1A 00 30 32 30 39 38 35 39 32 10 04 04 00 D0 06 00 00 35 04 06 00 56 CC C5 C4 68 E7 00 00 36 [17:27:30]Write i2c OK [17:27:30]MH_I2C_Read... [17:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:31]Read from MH i2c: E2 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 03 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [17:27:31]RAPDU: 90 00 [17:27:31]wFMCommunicate OK [17:27:31]wFMCommunicate request_size=4 [17:27:31]MH_SAM_APDU [17:27:31]CAPDU: 80 0D 03 02 [17:27:31]Write to MH i2c: E2 08 00 BD 02 80 0D 03 02 00 00 00 00 3A [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:31]Read from MH i2c: E2 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 0B 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 0B 00 BD 02 00 4C 28 4A 31 13 52 21 CD 90 00 7D [17:27:31]RAPDU: 4C 28 4A 31 13 52 21 CD 90 00 [17:27:31]wFMCommunicate OK [17:27:31]SAM_PROTO_SignData done [17:27:31]FM_MakeSignedData done [17:27:31]CreateOFDProtocolMessage [17:27:31]wFMCommunicate request_size=4 [17:27:31]MH_SAM_APDU [17:27:31]CAPDU: 80 11 00 00 [17:27:31]Write to MH i2c: E2 08 00 BE 02 80 11 00 00 00 00 00 00 3A [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:31]Read from MH i2c: E2 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 17 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 17 00 BE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 90 [17:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [17:27:31]wFMCommunicate OK [17:27:31]CreateOFDProtocolMessage done [17:27:31]OFDSenderStorePacket 1744 [17:27:31]StoreOFDPacket docnum=1744 [17:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 24 01 00 00 AE F6 1C 01 C1 A1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 01 16 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D0 06 00 00 35 04 06 00 56 CC C5 C4 68 E7 4C 28 4A 31 13 52 21 CD [17:27:31]CheckFolder [17:27:31]dirname=/storage/ofd_packets [17:27:31]CheckFolder done [17:27:31]ProducePacketName [17:27:31]name=ofd_packets/00001744 [17:27:31]NVStorageSaveData ofd_packets/00001744 [17:27:31]File name is /storage/ofd_packets/00001744 [17:27:31]Write 322 bytes [17:27:31]NVStorageSaveData done [17:27:31]OFDSenderStorePacket done [17:27:31]KKMCreateOFDPacket done [17:27:31]NVStorageSaveData kkm_last_timestamp [17:27:31]File name is /storage/kkm_last_timestamp [17:27:31]Write 4 bytes [17:27:31]NVStorageSaveData done [17:27:31]ExternCall_PrintAddStr [17:27:31]wPrintStart [17:27:31]Write to MH i2c: 01 00 00 BF 02 C1 [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: 01 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: 01 07 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [17:27:31]RasterBufferAndPrint [17:27:31]line Счет N : (3)256216 [17:27:31]line ИНН: 02508201610067 [17:27:31]line Контрольно-Кассовый Чек [17:27:31]line ПРОДАЖА [17:27:31]line Товар: 4630007400358 [17:27:31]line Семечки ДЖИНН 70г [17:27:31]line 1.000 * 70.00 [17:27:31]line = 70.00 [17:27:31]line НДС 12% НСП 1% [17:27:31]line > о реализуемом товаре [17:27:31]line ИТОГО: 70.00 [17:27:31]line НСП 1% : 0.62 [17:27:31]line НДС 12% : 7.43 [17:27:31]line Наличными: 70.00 [17:27:31]line Безнал.: 0.00 [17:27:31]line Место: АЗС № 76 "Партнер Нефть" [17:27:31]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [17:27:31]line СНО: Общий режим [17:27:31]line Чек 60 11.07.2024 17:27 [17:27:31]line Смена: 22 ФФД: 1.0 [17:27:31]line ЗНМ: 0300000124 [17:27:31]line РНМ: 0000000000177495 [17:27:31]line Версия ККМ: 001 [17:27:31]line ФМ: 0000000002098592 [17:27:31]line ФД: 1744 [17:27:31]line ФПД: 95437491300583 [17:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T172729&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1744&fm=95437491300583&tin=02508201610067®Number=0000000000177495&sum=7000 [17:27:31]line 0 [17:27:31]OFD Sender: Processing packet 1744 [packets to send 1, broken 0] [17:27:31]ProducePacketName [17:27:31]name=ofd_packets/00001744 [17:27:31]OFD Sender: To server: pG, [17:27:31]CommunicateWithHost lk.salyk.kg:30040 [17:27:31]ConnectInit lk.salyk.kg [17:27:31]written 0, free lines is 4095 [17:27:31]Connected sock=10 [17:27:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 24 01 00 00 AE F6 1C 01 C1 A1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 01 16 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D0 06 00 00 35 04 06 00 56 CC C5 C4 68 E7 4C 28 4A 31 13 52 21 CD [17:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 44 26 47 00 45 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D0 06 00 00 F4 03 04 00 3C C1 8F 66 B6 04 01 00 00 B9 42 75 1E 4F 2C 30 CB [17:27:31]CommunicateWithHost err = 0 [17:27:31]CheckOFDResponse [17:27:31]1017 (14) - 77093643461234 [17:27:31]1041 (16) - 0000000002098592 [17:27:31]1040 (4) - 1744 [17:27:31]1012 (4) - 11.07.2024 11:25 [17:27:31]1206 (1) - 0 [17:27:31]OFD Sender: Remove packet 1744 [17:27:31]ProducePacketName [17:27:31]name=ofd_packets/00001744 [17:27:31]NVStorageDeleteData [17:27:31]Write to MH i2c: 01 00 00 E7 02 E9 [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: 01 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: 01 07 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 0B 0D 08 [17:27:31]RasterBufferAndPrint [17:27:31]line [17:27:31]line [17:27:31]line [17:27:31]line [17:27:31]line [17:27:31]written 0, free lines is 3345 [17:27:31]MH_Cut [17:27:31]Write to MH i2c: D1 01 00 EE 02 01 C2 [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: D1 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: D1 01 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: D1 01 00 EE 02 00 C1 [17:27:31]Write to MH i2c: 01 00 00 EF 02 F1 [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:32]OFD Sender: No OFD packet to send [17:27:32]*** Cut start [17:27:32]*** Partial cut [17:27:32]*** CUTSNS_PIN = 1 [17:27:32]*** CUTSNS_PIN = 0 [17:27:32]*** Brake cut motor [17:27:33]Read from MH i2c: 01 [17:27:33]MH_I2C_Read... [17:27:33]*** Stop cut motor [17:27:33]*** Cut end [17:27:33]Read from MH i2c: 01 07 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 FF 0F 06 [17:27:33]process_action close_receipt done [17:27:33]requested_data is exist [17:27:33]produce_requested_data [17:27:33]requested_item fm.sn is exist - process it [17:27:33]wFMCommunicate request_size=4 [17:27:33]MH_SAM_APDU [17:27:33]CAPDU: 80 11 00 00 [17:27:33]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:33]Read from MH i2c: E2 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 17 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C2 [17:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [17:27:33]wFMCommunicate OK [17:27:33]requested_item fd.num is exist - process it [17:27:33]SAM_PROTO_GetFieldsCounters [17:27:33]wFMCommunicate request_size=4 [17:27:33]MH_SAM_APDU [17:27:33]CAPDU: 80 13 00 00 [17:27:33]Write to MH i2c: E2 08 00 F1 02 80 13 00 00 00 00 00 00 6F [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:33]Read from MH i2c: E2 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 62 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 62 00 F1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [17:27:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:33]wFMCommunicate OK [17:27:33]SAM_PROTO_GetFieldsCounters done [17:27:33]requested_item shift.num is exist - process it [17:27:33]requested_item shift.opened is exist - process it [17:27:33]req_shift_opened [17:27:33]FM_GetShiftState [17:27:33]SAM_PROTO_GetShiftState [17:27:33]wFMCommunicate request_size=4 [17:27:33]MH_SAM_APDU [17:27:33]CAPDU: 80 13 01 00 [17:27:33]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 [17:27:33]MH_I2C_Read... [17:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:33]Read from MH i2c: E2 0E 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 CF [17:27:33]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [17:27:33]wFMCommunicate OK [17:27:33]SAM_PROTO_GetShiftState done [17:27:33]FM_GetShiftState done [17:27:33]req_shift_opened done [17:27:33]requested_item shift.open_date is exist - process it [17:27:33]req_shift_open_date [17:27:33]req_shift_open_date done [17:27:33]produce_requested_data done [17:27:33]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1744,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [17:27:33]process_action_free close_receipt [17:27:33]json_value_free [17:27:33]json_value_free done [17:27:33]process_json_proto returns [17:27:33]Send response to host [17:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1744,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [17:27:33]free response buf [17:27:33]execute_script done [17:27:33]execute_script returns [17:27:33]free content buf [17:27:33]Sock 8.Close socket [17:27:33]Sock 8.Thread stoped [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:43]accept exits with 9 [18:07:43]New connection [18:07:43]New thread 3066707300 created [18:07:43]Thread 3066850660 joined [18:07:43]Waiting for new connection... [18:07:43] Sock 9.Parse request [18:07:43]Sock 9.Check first char [18:07:43]Sock 9.First char is OK [18:07:43]request: POST /json_proto HTTP/1.0 [18:07:43]Method: POST [18:07:43]URL: /json_proto [18:07:43]Method is POST - this is cgi request [18:07:43]url: /json_proto [18:07:43]query_string will be loaded in cgi processing [18:07:43]execute_cgi json_proto POST (null) [18:07:43]execute_cgi path=json_proto method=POST [18:07:43]POST find Content-Length [18:07:43]Host: 172.17.35.133:8080 [18:07:43]Content-Length: 768 [18:07:43]Content-Type: application/json [18:07:43] [18:07:43]POST finish read [18:07:43]Found Content-Length = 768 [18:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:43]execute_script... [18:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:43]POST & json_proto [18:07:43]process_json_proto [18:07:43]json parsed OK: [18:07:43]protocol is kg_v1.0 [18:07:43]action value=close_receipt [18:07:43]process_action close_receipt [18:07:43]cmd_close_receipt [18:07:43]MH_GetDate [18:07:43]Write to MH i2c: F0 00 00 F3 02 E4 [18:07:43]Write i2c OK [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: F0 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: F0 09 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: F0 09 00 F3 02 00 70 1F 90 66 1B 28 2A 66 45 [18:07:43]GetLastDocTimeStamp 1720718849 [18:07:43]current date 1720721264 [18:07:43]FM_GetShiftState [18:07:43]SAM_PROTO_GetShiftState [18:07:43]wFMCommunicate request_size=4 [18:07:43]MH_SAM_APDU [18:07:43]CAPDU: 80 13 01 00 [18:07:43]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [18:07:43]Write i2c OK [18:07:43]MH_I2C_Read... [18:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:43]Read from MH i2c: E2 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 0E 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D1 [18:07:43]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:07:43]wFMCommunicate OK [18:07:43]SAM_PROTO_GetShiftState done [18:07:43]FM_GetShiftState done [18:07:43]opened in 1720656698 [18:07:43]opened+sec_in_day 1720743098 [18:07:43]quantity*price = 50056 [18:07:43]sum+1 = 50058 [18:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.57 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.57 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 61 11.07.2024 18:07 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000002098592 ФД: 1745 ФПД: 100702413726424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T180744&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1745&fm=100702413726424&tin=02508201610067®Number=0000000000177495&sum=50057 [18:07:44]StoreToDocumentArchive [18:07:44]shift 22 fd 1745 [18:07:44]save to /storage/0022/doc_00001745 [18:07:44]save last doc name /storage/0022/doc_00001745 to /storage/kkm_last_doc_name [18:07:44]save OK [18:07:44]Clear old archive folders... [18:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:44]tlvbuf is 01DC1C70 [18:07:44]SAM_PROTO_ClearQueue [18:07:44]wFMCommunicate request_size=4 [18:07:44]MH_SAM_APDU [18:07:44]CAPDU: 80 09 00 00 [18:07:44]Write to MH i2c: E2 08 00 01 03 80 09 00 00 00 00 00 00 76 [18:07:44]Write i2c OK [18:07:44]MH_I2C_Read... [18:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:44]Read from MH i2c: E2 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: E2 03 00 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [18:07:44]RAPDU: 90 00 [18:07:44]wFMCommunicate OK [18:07:44]SAM_PROTO_ClearQueue done [18:07:44]KKMCreateOFDPacket [18:07:44]OFDProtocolAddRootSTLVToBuf [18:07:44]FM_MakeSignedData [18:07:44]FM_MakeSignedData [18:07:44]SAM_PROTO_SignData [18:07:44]wFMCommunicate request_size=4 [18:07:44]MH_SAM_APDU [18:07:44]CAPDU: 80 0D 01 02 [18:07:44]Write to MH i2c: E2 08 00 02 03 80 0D 01 02 00 00 00 00 7E [18:07:44]Write i2c OK [18:07:44]MH_I2C_Read... [18:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:44]Read from MH i2c: E2 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: E2 03 00 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [18:07:44]RAPDU: 90 00 [18:07:44]wFMCommunicate OK [18:07:44]wFMCommunicate request_size=255 [18:07:44]MH_SAM_APDU [18:07:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 1F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D1 06 00 00 35 04 06 00 5B [18:07:44]Write to MH i2c: E2 02 01 03 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 1F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D1 06 00 00 35 04 06 00 5B 00 00 AF [18:07:44]Write i2c OK [18:07:44]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 03 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [18:07:45]RAPDU: 90 00 [18:07:45]wFMCommunicate OK [18:07:45]wFMCommunicate request_size=10 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 0D 02 02 05 96 9B 99 22 D8 [18:07:45]Write to MH i2c: E2 0D 00 04 03 80 0D 02 02 05 00 96 9B 99 22 D8 00 00 4F [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 03 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [18:07:45]RAPDU: 90 00 [18:07:45]wFMCommunicate OK [18:07:45]wFMCommunicate request_size=4 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 0D 03 02 [18:07:45]Write to MH i2c: E2 08 00 05 03 80 0D 03 02 00 00 00 00 83 [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 0B 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 0B 00 05 03 00 A1 BC 94 B7 11 54 2C D9 90 00 96 [18:07:45]RAPDU: A1 BC 94 B7 11 54 2C D9 90 00 [18:07:45]wFMCommunicate OK [18:07:45]SAM_PROTO_SignData done [18:07:45]FM_MakeSignedData done [18:07:45]CreateOFDProtocolMessage [18:07:45]wFMCommunicate request_size=4 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 11 00 00 [18:07:45]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 17 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D9 [18:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:07:45]wFMCommunicate OK [18:07:45]CreateOFDProtocolMessage done [18:07:45]OFDSenderStorePacket 1745 [18:07:45]StoreOFDPacket docnum=1745 [18:07:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 F2 87 07 01 C7 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 1F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D1 06 00 00 35 04 06 00 5B 96 9B 99 22 D8 A1 BC 94 B7 11 54 2C D9 [18:07:45]CheckFolder [18:07:45]dirname=/storage/ofd_packets [18:07:45]CheckFolder done [18:07:45]ProducePacketName [18:07:45]name=ofd_packets/00001745 [18:07:45]NVStorageSaveData ofd_packets/00001745 [18:07:45]File name is /storage/ofd_packets/00001745 [18:07:45]Write 301 bytes [18:07:45]NVStorageSaveData done [18:07:45]OFDSenderStorePacket done [18:07:45]KKMCreateOFDPacket done [18:07:45]NVStorageSaveData kkm_last_timestamp [18:07:45]File name is /storage/kkm_last_timestamp [18:07:45]Write 4 bytes [18:07:45]NVStorageSaveData done [18:07:45]ExternCall_PrintAddStr [18:07:45]wPrintStart [18:07:45]Write to MH i2c: 01 00 00 07 03 0A [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: 01 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: 01 07 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [18:07:45]RasterBufferAndPrint [18:07:45]line Счет N : (1)1618551 [18:07:45]line ИНН: 02508201610067 [18:07:45]line Контрольно-Кассовый Чек [18:07:45]line ПРОДАЖА [18:07:45]line ТРК (МРК, ГНК) : 63 [18:07:45]line Товар: 2710124130 [18:07:45]line Аи-92-К-5 [18:07:45]line 7.550 * 66.30 [18:07:45]line = 500.57 [18:07:45]line НДС 12% НСП 1% [18:07:45]line > о реализуемом товаре [18:07:45]line ИТОГО: 500.57 [18:07:45]line НСП 1% : 4.43 [18:07:45]line НДС 12% : 53.16 [18:07:45]line Наличными: 0.00 [18:07:45]line Безнал.: 500.57 [18:07:45]line Место: АЗС № 76 "Партнер Нефть" [18:07:45]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:07:45]line СНО: Общий режим [18:07:45]line Чек 61 11.07.2024 18:07 [18:07:45]line Смена: 22 ФФД: 1.0 [18:07:45]line ЗНМ: 0300000124 [18:07:45]line РНМ: 0000000000177495 [18:07:45]line Версия ККМ: 001 [18:07:45]line Платежная система: cash2u [18:07:45]line ФМ: 0000000002098592 [18:07:45]line ФД: 1745 [18:07:45]line ФПД: 100702413726424 [18:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T180744&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1745&fm=100702413726424&tin=02508201610067®Number=0000000000177495&sum=50057 [18:07:45]OFD Sender: Processing packet 1745 [packets to send 1, broken 0] [18:07:45]ProducePacketName [18:07:45]name=ofd_packets/00001745 [18:07:45]OFD Sender: To server: pG, [18:07:45]CommunicateWithHost lk.salyk.kg:30040 [18:07:45]ConnectInit lk.salyk.kg [18:07:45]written 0, free lines is 4095 [18:07:45]Connected sock=10 [18:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 F2 87 07 01 C7 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 1F 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D1 06 00 00 35 04 06 00 5B 96 9B 99 22 D8 A1 BC 94 B7 11 54 2C D9 [18:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 1D 31 47 00 02 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D1 06 00 00 F4 03 04 00 AA CA 8F 66 B6 04 01 00 00 A5 71 39 AC 72 DA 9D 26 [18:07:45]CommunicateWithHost err = 0 [18:07:45]CheckOFDResponse [18:07:45]1017 (14) - 77093643461234 [18:07:45]1041 (16) - 0000000002098592 [18:07:45]1040 (4) - 1745 [18:07:45]1012 (4) - 11.07.2024 12:06 [18:07:45]1206 (1) - 0 [18:07:45]OFD Sender: Remove packet 1745 [18:07:45]ProducePacketName [18:07:45]name=ofd_packets/00001745 [18:07:45]NVStorageDeleteData [18:07:46]Write to MH i2c: 01 00 00 30 03 33 [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: 01 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: 01 07 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FD 0C 43 [18:07:46]RasterBufferAndPrint [18:07:46]line [18:07:46]line [18:07:46]line [18:07:46]line [18:07:46]line [18:07:46]written 0, free lines is 3330 [18:07:46]MH_Cut [18:07:46]Write to MH i2c: D1 01 00 37 03 01 0C [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: D1 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: D1 01 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: D1 01 00 37 03 00 0B [18:07:46]Write to MH i2c: 01 00 00 38 03 3B [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]OFD Sender: No OFD packet to send [18:07:46]*** Cut start [18:07:46]*** Partial cut [18:07:46]*** CUTSNS_PIN = 1 [18:07:46]*** CUTSNS_PIN = 0 [18:07:47]*** Brake cut motor [18:07:47]Read from MH i2c: 01 [18:07:47]MH_I2C_Read... [18:07:47]*** Stop cut motor [18:07:47]*** Cut end [18:07:47]Read from MH i2c: 01 07 00 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [18:07:47]process_action close_receipt done [18:07:47]requested_data is exist [18:07:47]produce_requested_data [18:07:47]requested_item fm.sn is exist - process it [18:07:47]wFMCommunicate request_size=4 [18:07:47]MH_SAM_APDU [18:07:47]CAPDU: 80 11 00 00 [18:07:47]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [18:07:47]Write i2c OK [18:07:47]MH_I2C_Read... [18:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:47]Read from MH i2c: E2 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: E2 17 00 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0C [18:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:07:47]wFMCommunicate OK [18:07:47]requested_item fd.num is exist - process it [18:07:47]SAM_PROTO_GetFieldsCounters [18:07:47]wFMCommunicate request_size=4 [18:07:47]MH_SAM_APDU [18:07:47]CAPDU: 80 13 00 00 [18:07:47]Write to MH i2c: E2 08 00 3A 03 80 13 00 00 00 00 00 00 B9 [18:07:47]Write i2c OK [18:07:47]MH_I2C_Read... [18:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:47]Read from MH i2c: E2 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: E2 62 00 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: E2 62 00 3A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:07:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:47]wFMCommunicate OK [18:07:47]SAM_PROTO_GetFieldsCounters done [18:07:47]requested_item shift.num is exist - process it [18:07:47]requested_item shift.opened is exist - process it [18:07:47]req_shift_opened [18:07:47]FM_GetShiftState [18:07:47]SAM_PROTO_GetShiftState [18:07:47]wFMCommunicate request_size=4 [18:07:47]MH_SAM_APDU [18:07:47]CAPDU: 80 13 01 00 [18:07:47]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [18:07:47]Write i2c OK [18:07:47]MH_I2C_Read... [18:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:47]Read from MH i2c: E2 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: E2 0E 00 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 19 [18:07:47]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:07:47]wFMCommunicate OK [18:07:47]SAM_PROTO_GetShiftState done [18:07:47]FM_GetShiftState done [18:07:47]req_shift_opened done [18:07:47]requested_item shift.open_date is exist - process it [18:07:47]req_shift_open_date [18:07:47]req_shift_open_date done [18:07:47]produce_requested_data done [18:07:47]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1745,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:07:47]process_action_free close_receipt [18:07:47]json_value_free [18:07:47]json_value_free done [18:07:47]process_json_proto returns [18:07:47]Send response to host [18:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1745,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:07:47]free response buf [18:07:47]execute_script done [18:07:47]execute_script returns [18:07:47]free content buf [18:07:47]Sock 9.Close socket [18:07:47]Sock 9.Thread stoped [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:16:32]ConnectInit Can't connect to host [18:16:33]OFD Sender: Processing packet 1746 [packets to send 1, broken 0] [18:16:33]ProducePacketName [18:16:33]name=ofd_packets/00001746 [18:16:33]OFD Sender: To server: pG, [18:16:33]CommunicateWithHost lk.salyk.kg:30040 [18:16:33]ConnectInit lk.salyk.kg [18:16:35]Connected sock=8 [18:16:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 B0 01 00 00 0C DE A8 01 7E 44 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 32 33 30 35 30 38 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 42 72 6F 77 6E 20 45 66 66 65 63 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 2F 00 00 00 00 13 04 06 00 44 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 62 21 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D2 06 00 00 35 04 06 00 38 8B 3A 6A 2A 42 A3 92 01 4F 06 82 56 EA [18:16:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 D7 FB 47 00 C0 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D2 06 00 00 F4 03 04 00 BC CC 8F 66 B6 04 01 00 00 AE 9B 8C 2B 67 6B 06 B0 [18:16:36]CommunicateWithHost err = 0 [18:16:36]CheckOFDResponse [18:16:36]1017 (14) - 77093643461234 [18:16:36]1041 (16) - 0000000002098592 [18:16:36]1040 (4) - 1746 [18:16:36]1012 (4) - 11.07.2024 12:14 [18:16:36]1206 (1) - 0 [18:16:36]OFD Sender: Remove packet 1746 [18:16:36]ProducePacketName [18:16:36]name=ofd_packets/00001746 [18:16:36]NVStorageDeleteData [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:34:04]ConnectInit Can't connect to host [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]accept exits with 7 [18:48:35]New connection [18:48:35]New thread 3067555172 created [18:48:35]Thread 3067411812 joined [18:48:35]Waiting for new connection... [18:48:35] Sock 7.Parse request [18:48:35]Sock 7.Check first char [18:48:35]Sock 7.First char is OK [18:48:35]request: POST /json_proto HTTP/1.0 [18:48:35]Method: POST [18:48:35]URL: /json_proto [18:48:35]Method is POST - this is cgi request [18:48:35]url: /json_proto [18:48:35]query_string will be loaded in cgi processing [18:48:35]execute_cgi json_proto POST (null) [18:48:35]execute_cgi path=json_proto method=POST [18:48:35]POST find Content-Length [18:48:35]Host: 172.17.35.133:8080 [18:48:35]Content-Length: 625 [18:48:35]Content-Type: application/json [18:48:35] [18:48:35]POST finish read [18:48:35]Found Content-Length = 625 [18:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256218", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:35]execute_script... [18:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256218", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:35]POST & json_proto [18:48:35]process_json_proto [18:48:35]json parsed OK: [18:48:35]protocol is kg_v1.0 [18:48:35]action value=close_receipt [18:48:35]process_action close_receipt [18:48:35]cmd_close_receipt [18:48:35]MH_GetDate [18:48:35]Write to MH i2c: F0 00 00 1D 00 0C [18:48:35]Write i2c OK [18:48:35]MH_I2C_Read... [18:48:35]Read from MH i2c: F0 [18:48:35]MH_I2C_Read... [18:48:35]Read from MH i2c: F0 09 00 [18:48:35]MH_I2C_Read... [18:48:35]Read from MH i2c: F0 09 00 1D 00 00 03 29 90 66 1B 28 2A 66 0A [18:48:35]GetLastDocTimeStamp 1720721762 [18:48:35]current date 1720723715 [18:48:35]FM_GetShiftState [18:48:35]SAM_PROTO_GetShiftState [18:48:35]wFMCommunicate request_size=4 [18:48:35]MH_SAM_APDU [18:48:35]CAPDU: 80 13 01 00 [18:48:35]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:48:35]Write i2c OK [18:48:35]MH_I2C_Read... [18:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:35]Read from MH i2c: E2 [18:48:35]MH_I2C_Read... [18:48:35]Read from MH i2c: E2 0E 00 [18:48:35]MH_I2C_Read... [18:48:35]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F9 [18:48:35]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:48:35]wFMCommunicate OK [18:48:35]SAM_PROTO_GetShiftState done [18:48:35]FM_GetShiftState done [18:48:35]opened in 1720656698 [18:48:35]opened+sec_in_day 1720743098 [18:48:35]quantity*price = 15000 [18:48:35]sum+1 = 15001 [18:48:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 63 11.07.2024 18:48 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1747 ФПД: 5008808952409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T184835&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1747&fm=5008808952409&tin=02508201610067®Number=0000000000177495&sum=15000 0 [18:48:36]StoreToDocumentArchive [18:48:36]shift 22 fd 1747 [18:48:36]save to /storage/0022/doc_00001747 [18:48:36]save last doc name /storage/0022/doc_00001747 to /storage/kkm_last_doc_name [18:48:36]save OK [18:48:36]Clear old archive folders... [18:48:36]ProcessDocumentItem done err = 0, tmpTLVsize=277 [18:48:36]tlvbuf is 000FC770 [18:48:36]SAM_PROTO_ClearQueue [18:48:36]wFMCommunicate request_size=4 [18:48:36]MH_SAM_APDU [18:48:36]CAPDU: 80 09 00 00 [18:48:36]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:36]Read from MH i2c: E2 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:48:36]RAPDU: 90 00 [18:48:36]wFMCommunicate OK [18:48:36]SAM_PROTO_ClearQueue done [18:48:36]KKMCreateOFDPacket [18:48:36]OFDProtocolAddRootSTLVToBuf [18:48:36]FM_MakeSignedData [18:48:36]FM_MakeSignedData [18:48:36]SAM_PROTO_SignData [18:48:36]wFMCommunicate request_size=4 [18:48:36]MH_SAM_APDU [18:48:36]CAPDU: 80 0D 01 02 [18:48:36]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:36]Read from MH i2c: E2 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:48:36]RAPDU: 90 00 [18:48:36]wFMCommunicate OK [18:48:36]wFMCommunicate request_size=255 [18:48:36]MH_SAM_APDU [18:48:36]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 03 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 [18:48:36]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 03 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 00 00 0C [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:36]Read from MH i2c: E2 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:48:36]RAPDU: 90 00 [18:48:36]wFMCommunicate OK [18:48:36]wFMCommunicate request_size=36 [18:48:36]MH_SAM_APDU [18:48:36]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D3 06 00 00 35 04 06 00 04 8E 34 47 42 59 [18:48:36]Write to MH i2c: E2 27 00 2E 00 80 0D 02 02 1F 00 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D3 06 00 00 35 04 06 00 04 8E 34 47 42 59 00 00 51 [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:36]Read from MH i2c: E2 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:48:36]RAPDU: 90 00 [18:48:36]wFMCommunicate OK [18:48:36]wFMCommunicate request_size=4 [18:48:36]MH_SAM_APDU [18:48:36]CAPDU: 80 0D 03 02 [18:48:36]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:36]Read from MH i2c: E2 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 0B 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 0B 00 2F 00 00 5C 80 81 C9 8F 14 5C 05 90 00 D5 [18:48:36]RAPDU: 5C 80 81 C9 8F 14 5C 05 90 00 [18:48:36]wFMCommunicate OK [18:48:36]SAM_PROTO_SignData done [18:48:36]FM_MakeSignedData done [18:48:36]CreateOFDProtocolMessage [18:48:36]wFMCommunicate request_size=4 [18:48:36]MH_SAM_APDU [18:48:36]CAPDU: 80 11 00 00 [18:48:36]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:36]Read from MH i2c: E2 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 17 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 00 [18:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:48:36]wFMCommunicate OK [18:48:36]CreateOFDProtocolMessage done [18:48:36]OFDSenderStorePacket 1747 [18:48:36]StoreOFDPacket docnum=1747 [18:48:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 29 01 00 00 16 1A 21 01 C0 87 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 03 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D3 06 00 00 35 04 06 00 04 8E 34 47 42 59 5C 80 81 C9 8F 14 5C 05 [18:48:36]CheckFolder [18:48:36]dirname=/storage/ofd_packets [18:48:36]CheckFolder done [18:48:36]ProducePacketName [18:48:36]name=ofd_packets/00001747 [18:48:36]NVStorageSaveData ofd_packets/00001747 [18:48:36]File name is /storage/ofd_packets/00001747 [18:48:36]Write 327 bytes [18:48:36]NVStorageSaveData done [18:48:36]OFDSenderStorePacket done [18:48:36]KKMCreateOFDPacket done [18:48:36]NVStorageSaveData kkm_last_timestamp [18:48:36]File name is /storage/kkm_last_timestamp [18:48:36]Write 4 bytes [18:48:36]NVStorageSaveData done [18:48:36]ExternCall_PrintAddStr [18:48:36]wPrintStart [18:48:36]Write to MH i2c: 01 00 00 31 00 31 [18:48:36]Write i2c OK [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: 01 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: 01 07 00 [18:48:36]MH_I2C_Read... [18:48:36]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:48:36]RasterBufferAndPrint [18:48:36]line Счет N : (3)256218 [18:48:36]line ИНН: 02508201610067 [18:48:36]line Контрольно-Кассовый Чек [18:48:36]line ПРОДАЖА [18:48:36]line Товар: 46230607 [18:48:36]line Сигареты Richmond Bronze Edition [18:48:36]line 1.000 * 150.00 [18:48:36]line = 150.00 [18:48:36]line НДС 12% НСП 1% [18:48:36]line > о реализуемом товаре [18:48:36]line ИТОГО: 150.00 [18:48:36]line НСП 1% : 1.33 [18:48:36]line НДС 12% : 15.93 [18:48:36]line Наличными: 150.00 [18:48:36]line Безнал.: 0.00 [18:48:36]line Место: АЗС № 76 "Партнер Нефть" [18:48:36]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:48:36]line СНО: Общий режим [18:48:36]line Чек 63 11.07.2024 18:48 [18:48:36]line Смена: 22 ФФД: 1.0 [18:48:36]line ЗНМ: 0300000124 [18:48:36]line РНМ: 0000000000177495 [18:48:36]line Версия ККМ: 001 [18:48:36]line ФМ: 0000000002098592 [18:48:36]line ФД: 1747 [18:48:36]line ФПД: 5008808952409 [18:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T184835&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1747&fm=5008808952409&tin=02508201610067®Number=0000000000177495&sum=15000 [18:48:37]OFD Sender: Processing packet 1747 [packets to send 1, broken 0] [18:48:37]ProducePacketName [18:48:37]name=ofd_packets/00001747 [18:48:37]OFD Sender: To server: pG, [18:48:37]CommunicateWithHost lk.salyk.kg:30040 [18:48:37]ConnectInit lk.salyk.kg [18:48:37]line 0 [18:48:37]written 0, free lines is 4095 [18:48:37]Connected sock=10 [18:48:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 29 01 00 00 16 1A 21 01 C0 87 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 03 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D3 06 00 00 35 04 06 00 04 8E 34 47 42 59 5C 80 81 C9 8F 14 5C 05 [18:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 9A F2 47 00 21 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D3 06 00 00 F4 03 04 00 3E D4 8F 66 B6 04 01 00 00 82 FF 30 46 E4 DB E5 7A [18:48:37]CommunicateWithHost err = 0 [18:48:37]CheckOFDResponse [18:48:37]1017 (14) - 77093643461234 [18:48:37]1041 (16) - 0000000002098592 [18:48:37]1040 (4) - 1747 [18:48:37]1012 (4) - 11.07.2024 12:46 [18:48:37]1206 (1) - 0 [18:48:37]OFD Sender: Remove packet 1747 [18:48:37]ProducePacketName [18:48:37]name=ofd_packets/00001747 [18:48:37]NVStorageDeleteData [18:48:37]Write to MH i2c: 01 00 00 5A 00 5A [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: 01 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: 01 07 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 EA 0C 57 [18:48:37]RasterBufferAndPrint [18:48:37]line [18:48:37]line [18:48:37]line [18:48:37]line [18:48:37]line [18:48:37]written 0, free lines is 3312 [18:48:37]MH_Cut [18:48:37]Write to MH i2c: D1 01 00 61 00 01 33 [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: D1 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: D1 01 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: D1 01 00 61 00 00 32 [18:48:37]Write to MH i2c: 01 00 00 62 00 62 [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]OFD Sender: No OFD packet to send [18:48:38]*** Cut start [18:48:38]*** Partial cut [18:48:38]*** CUTSNS_PIN = 1 [18:48:38]*** CUTSNS_PIN = 0 [18:48:38]*** Brake cut motor [18:48:38]Read from MH i2c: 01 [18:48:38]MH_I2C_Read... [18:48:38]*** Stop cut motor [18:48:38]*** Cut end [18:48:38]Read from MH i2c: 01 07 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [18:48:38]process_action close_receipt done [18:48:38]requested_data is exist [18:48:38]produce_requested_data [18:48:38]requested_item fm.sn is exist - process it [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 11 00 00 [18:48:38]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 17 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 33 [18:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:48:38]wFMCommunicate OK [18:48:38]requested_item fd.num is exist - process it [18:48:38]SAM_PROTO_GetFieldsCounters [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 13 00 00 [18:48:38]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 62 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D3 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [18:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D3 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:39]wFMCommunicate OK [18:48:39]SAM_PROTO_GetFieldsCounters done [18:48:39]requested_item shift.num is exist - process it [18:48:39]requested_item shift.opened is exist - process it [18:48:39]req_shift_opened [18:48:39]FM_GetShiftState [18:48:39]SAM_PROTO_GetShiftState [18:48:39]wFMCommunicate request_size=4 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 13 01 00 [18:48:39]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 0E 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 40 [18:48:39]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:48:39]wFMCommunicate OK [18:48:39]SAM_PROTO_GetShiftState done [18:48:39]FM_GetShiftState done [18:48:39]req_shift_opened done [18:48:39]requested_item shift.open_date is exist - process it [18:48:39]req_shift_open_date [18:48:39]req_shift_open_date done [18:48:39]produce_requested_data done [18:48:39]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1747,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:48:39]process_action_free close_receipt [18:48:39]json_value_free [18:48:39]json_value_free done [18:48:39]process_json_proto returns [18:48:39]Send response to host [18:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1747,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:48:39]free response buf [18:48:39]execute_script done [18:48:39]execute_script returns [18:48:39]free content buf [18:48:39]Sock 7.Close socket [18:48:39]Sock 7.Thread stoped [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:25]accept exits with 9 [18:51:25]New connection [18:51:25]New thread 3067411812 created [18:51:25]Thread 3067555172 joined [18:51:25]Waiting for new connection... [18:51:25] Sock 9.Parse request [18:51:25]Sock 9.Check first char [18:51:25]Sock 9.First char is OK [18:51:25]request: POST /json_proto HTTP/1.0 [18:51:25]Method: POST [18:51:25]URL: /json_proto [18:51:25]Method is POST - this is cgi request [18:51:25]url: /json_proto [18:51:25]query_string will be loaded in cgi processing [18:51:25]execute_cgi json_proto POST (null) [18:51:25]execute_cgi path=json_proto method=POST [18:51:25]POST find Content-Length [18:51:25]Host: 172.17.35.133:8080 [18:51:25]Content-Length: 632 [18:51:25]Content-Type: application/json [18:51:25] [18:51:25]POST finish read [18:51:25]Found Content-Length = 632 [18:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256219", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:25]execute_script... [18:51:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256219", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:25]POST & json_proto [18:51:25]process_json_proto [18:51:25]json parsed OK: [18:51:25]protocol is kg_v1.0 [18:51:25]action value=close_receipt [18:51:25]process_action close_receipt [18:51:25]cmd_close_receipt [18:51:25]MH_GetDate [18:51:25]Write to MH i2c: F0 00 00 66 00 55 [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: F0 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: F0 09 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: F0 09 00 66 00 00 AD 29 90 66 1B 28 2A 66 FD [18:51:25]GetLastDocTimeStamp 1720723715 [18:51:25]current date 1720723885 [18:51:25]FM_GetShiftState [18:51:25]SAM_PROTO_GetShiftState [18:51:25]wFMCommunicate request_size=4 [18:51:25]MH_SAM_APDU [18:51:25]CAPDU: 80 13 01 00 [18:51:25]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:25]Read from MH i2c: E2 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 0E 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 42 [18:51:25]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:51:25]wFMCommunicate OK [18:51:25]SAM_PROTO_GetShiftState done [18:51:25]FM_GetShiftState done [18:51:25]opened in 1720656698 [18:51:25]opened+sec_in_day 1720743098 [18:51:25]quantity*price = 6000 [18:51:25]sum+1 = 6001 [18:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 64 11.07.2024 18:51 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1748 ФПД: 59355189058693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185126&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1748&fm=59355189058693&tin=02508201610067®Number=0000000000177495&sum=6000 0 [18:51:26]StoreToDocumentArchive [18:51:26]shift 22 fd 1748 [18:51:26]save to /storage/0022/doc_00001748 [18:51:26]save last doc name /storage/0022/doc_00001748 to /storage/kkm_last_doc_name [18:51:26]save OK [18:51:26]Clear old archive folders... [18:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:51:26]tlvbuf is 00124720 [18:51:26]SAM_PROTO_ClearQueue [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 09 00 00 [18:51:26]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]SAM_PROTO_ClearQueue done [18:51:26]KKMCreateOFDPacket [18:51:26]OFDProtocolAddRootSTLVToBuf [18:51:26]FM_MakeSignedData [18:51:26]FM_MakeSignedData [18:51:26]SAM_PROTO_SignData [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 01 02 [18:51:26]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]wFMCommunicate request_size=255 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AE 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:51:26]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AE 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 48 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]wFMCommunicate request_size=30 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 02 02 19 32 30 39 38 35 39 32 10 04 04 00 D4 06 00 00 35 04 06 00 35 FB B4 F5 9C 85 [18:51:26]Write to MH i2c: E2 21 00 77 00 80 0D 02 02 19 00 32 30 39 38 35 39 32 10 04 04 00 D4 06 00 00 35 04 06 00 35 FB B4 F5 9C 85 00 00 C1 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:51:26]RAPDU: 90 00 [18:51:26]wFMCommunicate OK [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 0D 03 02 [18:51:26]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 0B 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 0B 00 78 00 00 59 F5 79 0C 41 3A D6 3D 90 00 55 [18:51:26]RAPDU: 59 F5 79 0C 41 3A D6 3D 90 00 [18:51:26]wFMCommunicate OK [18:51:26]SAM_PROTO_SignData done [18:51:26]FM_MakeSignedData done [18:51:26]CreateOFDProtocolMessage [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 11 00 00 [18:51:26]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 17 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 49 [18:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:51:26]wFMCommunicate OK [18:51:26]CreateOFDProtocolMessage done [18:51:26]OFDSenderStorePacket 1748 [18:51:26]StoreOFDPacket docnum=1748 [18:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 23 01 00 00 A2 73 1B 01 37 6F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AE 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D4 06 00 00 35 04 06 00 35 FB B4 F5 9C 85 59 F5 79 0C 41 3A D6 3D [18:51:26]CheckFolder [18:51:26]dirname=/storage/ofd_packets [18:51:26]CheckFolder done [18:51:26]ProducePacketName [18:51:26]name=ofd_packets/00001748 [18:51:26]NVStorageSaveData ofd_packets/00001748 [18:51:26]File name is /storage/ofd_packets/00001748 [18:51:26]Write 321 bytes [18:51:26]NVStorageSaveData done [18:51:26]OFDSenderStorePacket done [18:51:26]KKMCreateOFDPacket done [18:51:26]NVStorageSaveData kkm_last_timestamp [18:51:26]File name is /storage/kkm_last_timestamp [18:51:26]Write 4 bytes [18:51:26]NVStorageSaveData done [18:51:26]ExternCall_PrintAddStr [18:51:26]wPrintStart [18:51:26]Write to MH i2c: 01 00 00 7A 00 7A [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: 01 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: 01 07 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [18:51:26]RasterBufferAndPrint [18:51:26]line Счет N : (3)256219 [18:51:26]line ИНН: 02508201610067 [18:51:26]line Контрольно-Кассовый Чек [18:51:26]line ПРОДАЖА [18:51:26]line Товар: 4700000160204 [18:51:26]line Вода Легенда 1,5л [18:51:26]line 1.000 * 60.00 [18:51:26]line = 60.00 [18:51:26]line НДС 12% НСП 1% [18:51:26]line > о реализуемом товаре [18:51:26]line ИТОГО: 60.00 [18:51:26]line НСП 1% : 0.53 [18:51:26]line НДС 12% : 6.37 [18:51:26]line Наличными: 60.00 [18:51:26]line Безнал.: 0.00 [18:51:26]line Место: АЗС № 76 "Партнер Нефть" [18:51:26]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:51:26]line СНО: Общий режим [18:51:26]line Чек 64 11.07.2024 18:51 [18:51:26]line Смена: 22 ФФД: 1.0 [18:51:26]line ЗНМ: 0300000124 [18:51:26]line РНМ: 0000000000177495 [18:51:26]line Версия ККМ: 001 [18:51:26]line ФМ: 0000000002098592 [18:51:26]line ФД: 1748 [18:51:26]line ФПД: 59355189058693 [18:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185126&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1748&fm=59355189058693&tin=02508201610067®Number=0000000000177495&sum=6000 [18:51:27]line 0 [18:51:27]OFD Sender: Processing packet 1748 [packets to send 1, broken 0] [18:51:27]ProducePacketName [18:51:27]name=ofd_packets/00001748 [18:51:27]OFD Sender: To server: pG, [18:51:27]CommunicateWithHost lk.salyk.kg:30040 [18:51:27]ConnectInit lk.salyk.kg [18:51:27]written 0, free lines is 4095 [18:51:27]Connected sock=10 [18:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 23 01 00 00 A2 73 1B 01 37 6F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AE 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D4 06 00 00 35 04 06 00 35 FB B4 F5 9C 85 59 F5 79 0C 41 3A D6 3D [18:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 A9 A8 47 00 9C D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D4 06 00 00 F4 03 04 00 E8 D4 8F 66 B6 04 01 00 00 9A EA 8B C0 13 60 80 D9 [18:51:27]CommunicateWithHost err = 0 [18:51:27]CheckOFDResponse [18:51:27]1017 (14) - 77093643461234 [18:51:27]1041 (16) - 0000000002098592 [18:51:27]1040 (4) - 1748 [18:51:27]1012 (4) - 11.07.2024 12:49 [18:51:27]1206 (1) - 0 [18:51:27]OFD Sender: Remove packet 1748 [18:51:27]ProducePacketName [18:51:27]name=ofd_packets/00001748 [18:51:27]NVStorageDeleteData [18:51:27]Write to MH i2c: 01 00 00 A2 00 A2 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 09 0D BF [18:51:27]RasterBufferAndPrint [18:51:27]line [18:51:27]line [18:51:27]line [18:51:27]line [18:51:27]line [18:51:27]written 0, free lines is 3343 [18:51:27]MH_Cut [18:51:27]Write to MH i2c: D1 01 00 A9 00 01 7B [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: D1 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: D1 01 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: D1 01 00 A9 00 00 7A [18:51:27]Write to MH i2c: 01 00 00 AA 00 AA [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:28]OFD Sender: No OFD packet to send [18:51:28]*** Cut start [18:51:28]*** Partial cut [18:51:28]*** CUTSNS_PIN = 1 [18:51:28]*** CUTSNS_PIN = 0 [18:51:28]*** Brake cut motor [18:51:28]Read from MH i2c: 01 [18:51:28]MH_I2C_Read... [18:51:29]*** Stop cut motor [18:51:29]*** Cut end [18:51:29]Read from MH i2c: 01 07 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [18:51:29]process_action close_receipt done [18:51:29]requested_data is exist [18:51:29]produce_requested_data [18:51:29]requested_item fm.sn is exist - process it [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 11 00 00 [18:51:29]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 17 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7B [18:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:51:29]wFMCommunicate OK [18:51:29]requested_item fd.num is exist - process it [18:51:29]SAM_PROTO_GetFieldsCounters [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 13 00 00 [18:51:29]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 62 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 62 00 AC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:29]wFMCommunicate OK [18:51:29]SAM_PROTO_GetFieldsCounters done [18:51:29]requested_item shift.num is exist - process it [18:51:29]requested_item shift.opened is exist - process it [18:51:29]req_shift_opened [18:51:29]FM_GetShiftState [18:51:29]SAM_PROTO_GetShiftState [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 13 01 00 [18:51:29]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 0E 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 88 [18:51:29]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:51:29]wFMCommunicate OK [18:51:29]SAM_PROTO_GetShiftState done [18:51:29]FM_GetShiftState done [18:51:29]req_shift_opened done [18:51:29]requested_item shift.open_date is exist - process it [18:51:29]req_shift_open_date [18:51:29]req_shift_open_date done [18:51:29]produce_requested_data done [18:51:29]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1748,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:51:29]process_action_free close_receipt [18:51:29]json_value_free [18:51:29]json_value_free done [18:51:29]process_json_proto returns [18:51:29]Send response to host [18:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1748,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:51:29]free response buf [18:51:29]execute_script done [18:51:29]execute_script returns [18:51:29]free content buf [18:51:29]Sock 9.Close socket [18:51:29]Sock 9.Thread stoped [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]accept exits with 8 [18:51:48]New connection [18:51:48]New thread 3067555172 created [18:51:48]Thread 3067411812 joined [18:51:48]Waiting for new connection... [18:51:48] Sock 8.Parse request [18:51:48]Sock 8.Check first char [18:51:48]Sock 8.First char is OK [18:51:48]request: POST /json_proto HTTP/1.0 [18:51:48]Method: POST [18:51:48]URL: /json_proto [18:51:48]Method is POST - this is cgi request [18:51:48]url: /json_proto [18:51:48]query_string will be loaded in cgi processing [18:51:48]execute_cgi json_proto POST (null) [18:51:48]execute_cgi path=json_proto method=POST [18:51:48]POST find Content-Length [18:51:48]Host: 172.17.35.133:8080 [18:51:48]Content-Length: 622 [18:51:48]Content-Type: application/json [18:51:48] [18:51:48]POST finish read [18:51:48]Found Content-Length = 622 [18:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256220", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:48]execute_script... [18:51:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256220", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:48]POST & json_proto [18:51:48]process_json_proto [18:51:48]json parsed OK: [18:51:48]protocol is kg_v1.0 [18:51:48]action value=close_receipt [18:51:48]process_action close_receipt [18:51:48]cmd_close_receipt [18:51:48]MH_GetDate [18:51:48]Write to MH i2c: F0 00 00 AE 00 9D [18:51:48]OFD Sender: No OFD packet to send [18:51:48]Write i2c OK [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: F0 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: F0 09 00 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: F0 09 00 AE 00 00 C4 29 90 66 1B 28 2A 66 5C [18:51:48]GetLastDocTimeStamp 1720723886 [18:51:48]current date 1720723908 [18:51:48]FM_GetShiftState [18:51:48]SAM_PROTO_GetShiftState [18:51:48]wFMCommunicate request_size=4 [18:51:48]MH_SAM_APDU [18:51:48]CAPDU: 80 13 01 00 [18:51:48]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [18:51:48]Write i2c OK [18:51:48]MH_I2C_Read... [18:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:48]Read from MH i2c: E2 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 0E 00 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 8A [18:51:48]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:51:48]wFMCommunicate OK [18:51:48]SAM_PROTO_GetShiftState done [18:51:48]FM_GetShiftState done [18:51:48]opened in 1720656698 [18:51:48]opened+sec_in_day 1720743098 [18:51:48]quantity*price = 13800 [18:51:48]sum+1 = 13801 [18:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 65 11.07.2024 18:51 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1749 ФПД: 117075004465525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185148&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1749&fm=117075004465525&tin=02508201610067®Number=0000000000177495&sum=13800 0 [18:51:48]StoreToDocumentArchive [18:51:48]shift 22 fd 1749 [18:51:48]save to /storage/0022/doc_00001749 [18:51:48]save last doc name /storage/0022/doc_00001749 to /storage/kkm_last_doc_name [18:51:48]save OK [18:51:48]Clear old archive folders... [18:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:51:48]tlvbuf is 0011D080 [18:51:48]SAM_PROTO_ClearQueue [18:51:48]wFMCommunicate request_size=4 [18:51:48]MH_SAM_APDU [18:51:48]CAPDU: 80 09 00 00 [18:51:48]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [18:51:48]Write i2c OK [18:51:48]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [18:51:49]RAPDU: 90 00 [18:51:49]wFMCommunicate OK [18:51:49]SAM_PROTO_ClearQueue done [18:51:49]KKMCreateOFDPacket [18:51:49]OFDProtocolAddRootSTLVToBuf [18:51:49]FM_MakeSignedData [18:51:49]FM_MakeSignedData [18:51:49]SAM_PROTO_SignData [18:51:49]wFMCommunicate request_size=4 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 0D 01 02 [18:51:49]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [18:51:49]RAPDU: 90 00 [18:51:49]wFMCommunicate OK [18:51:49]wFMCommunicate request_size=255 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C4 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 [18:51:49]Write to MH i2c: E2 02 01 BE 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C4 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 00 00 B5 [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [18:51:49]RAPDU: 90 00 [18:51:49]wFMCommunicate OK [18:51:49]wFMCommunicate request_size=33 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D5 06 00 00 35 04 06 00 6A 7A A6 0D A1 75 [18:51:49]Write to MH i2c: E2 24 00 BF 00 80 0D 02 02 1C 00 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D5 06 00 00 35 04 06 00 6A 7A A6 0D A1 75 00 00 53 [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:51:49]RAPDU: 90 00 [18:51:49]wFMCommunicate OK [18:51:49]wFMCommunicate request_size=4 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 0D 03 02 [18:51:49]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 0B 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 0B 00 C0 00 00 1B 8D 36 BD 31 A9 E5 A3 90 00 39 [18:51:49]RAPDU: 1B 8D 36 BD 31 A9 E5 A3 90 00 [18:51:49]wFMCommunicate OK [18:51:49]SAM_PROTO_SignData done [18:51:49]FM_MakeSignedData done [18:51:49]CreateOFDProtocolMessage [18:51:49]wFMCommunicate request_size=4 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 11 00 00 [18:51:49]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 17 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 91 [18:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:51:49]wFMCommunicate OK [18:51:49]CreateOFDProtocolMessage done [18:51:49]OFDSenderStorePacket 1749 [18:51:49]StoreOFDPacket docnum=1749 [18:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 26 01 00 00 67 61 1E 01 71 F5 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C4 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D5 06 00 00 35 04 06 00 6A 7A A6 0D A1 75 1B 8D 36 BD 31 A9 E5 A3 [18:51:49]CheckFolder [18:51:49]dirname=/storage/ofd_packets [18:51:49]CheckFolder done [18:51:49]ProducePacketName [18:51:49]name=ofd_packets/00001749 [18:51:49]NVStorageSaveData ofd_packets/00001749 [18:51:49]File name is /storage/ofd_packets/00001749 [18:51:49]Write 324 bytes [18:51:49]NVStorageSaveData done [18:51:49]OFDSenderStorePacket done [18:51:49]KKMCreateOFDPacket done [18:51:49]NVStorageSaveData kkm_last_timestamp [18:51:49]File name is /storage/kkm_last_timestamp [18:51:49]Write 4 bytes [18:51:49]NVStorageSaveData done [18:51:49]ExternCall_PrintAddStr [18:51:49]wPrintStart [18:51:49]Write to MH i2c: 01 00 00 C2 00 C2 [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: 01 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: 01 07 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [18:51:49]RasterBufferAndPrint [18:51:49]line Счет N : (3)256220 [18:51:49]line ИНН: 02508201610067 [18:51:49]line Контрольно-Кассовый Чек [18:51:49]line ПРОДАЖА [18:51:49]line Товар: 4640030091645 [18:51:49]line Сигареты ESSE Exchange M [18:51:49]line 1.000 * 138.00 [18:51:49]line = 138.00 [18:51:49]line НДС 12% НСП 1% [18:51:49]line > о реализуемом товаре [18:51:49]line ИТОГО: 138.00 [18:51:49]line НСП 1% : 1.22 [18:51:49]line НДС 12% : 14.65 [18:51:49]line Наличными: 138.00 [18:51:49]line Безнал.: 0.00 [18:51:49]line Место: АЗС № 76 "Партнер Нефть" [18:51:49]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:51:49]line СНО: Общий режим [18:51:49]line Чек 65 11.07.2024 18:51 [18:51:49]line Смена: 22 ФФД: 1.0 [18:51:49]line ЗНМ: 0300000124 [18:51:49]line РНМ: 0000000000177495 [18:51:49]line Версия ККМ: 001 [18:51:49]line ФМ: 0000000002098592 [18:51:49]line ФД: 1749 [18:51:49]line ФПД: 117075004465525 [18:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185148&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1749&fm=117075004465525&tin=02508201610067®Number=0000000000177495&sum=13800 [18:51:49]line 0 [18:51:49]written 0, free lines is 4095 [18:51:49]OFD Sender: Processing packet 1749 [packets to send 1, broken 0] [18:51:49]ProducePacketName [18:51:49]name=ofd_packets/00001749 [18:51:49]OFD Sender: To server: pG, [18:51:49]CommunicateWithHost lk.salyk.kg:30040 [18:51:49]ConnectInit lk.salyk.kg [18:51:49]Connected sock=10 [18:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 26 01 00 00 67 61 1E 01 71 F5 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C4 29 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D5 06 00 00 35 04 06 00 6A 7A A6 0D A1 75 1B 8D 36 BD 31 A9 E5 A3 [18:51:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 44 1A 47 00 32 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D5 06 00 00 F4 03 04 00 FE D4 8F 66 B6 04 01 00 00 BA 73 4F 3C BF 8D A5 3D [18:51:50]CommunicateWithHost err = 0 [18:51:50]CheckOFDResponse [18:51:50]1017 (14) - 77093643461234 [18:51:50]1041 (16) - 0000000002098592 [18:51:50]1040 (4) - 1749 [18:51:50]1012 (4) - 11.07.2024 12:50 [18:51:50]1206 (1) - 0 [18:51:50]OFD Sender: Remove packet 1749 [18:51:50]ProducePacketName [18:51:50]name=ofd_packets/00001749 [18:51:50]NVStorageDeleteData [18:51:50]Write to MH i2c: 01 00 00 EA 00 EA [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 07 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 15 0D 13 [18:51:50]RasterBufferAndPrint [18:51:50]line [18:51:50]line [18:51:50]line [18:51:50]line [18:51:50]line [18:51:50]written 0, free lines is 3356 [18:51:50]MH_Cut [18:51:50]Write to MH i2c: D1 01 00 F1 00 01 C3 [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: D1 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: D1 01 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: D1 01 00 F1 00 00 C2 [18:51:50]Write to MH i2c: 01 00 00 F2 00 F2 [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]OFD Sender: No OFD packet to send [18:51:50]*** Cut start [18:51:50]*** Partial cut [18:51:50]*** CUTSNS_PIN = 1 [18:51:50]*** CUTSNS_PIN = 0 [18:51:51]*** Brake cut motor [18:51:51]Read from MH i2c: 01 [18:51:51]MH_I2C_Read... [18:51:51]*** Stop cut motor [18:51:51]*** Cut end [18:51:51]Read from MH i2c: 01 07 00 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 FF 0F 07 [18:51:51]process_action close_receipt done [18:51:51]requested_data is exist [18:51:51]produce_requested_data [18:51:51]requested_item fm.sn is exist - process it [18:51:51]wFMCommunicate request_size=4 [18:51:51]MH_SAM_APDU [18:51:51]CAPDU: 80 11 00 00 [18:51:51]Write to MH i2c: E2 08 00 F3 00 80 11 00 00 00 00 00 00 6D [18:51:51]Write i2c OK [18:51:51]MH_I2C_Read... [18:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:51]Read from MH i2c: E2 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: E2 17 00 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: E2 17 00 F3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C3 [18:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:51:51]wFMCommunicate OK [18:51:51]requested_item fd.num is exist - process it [18:51:51]SAM_PROTO_GetFieldsCounters [18:51:51]wFMCommunicate request_size=4 [18:51:51]MH_SAM_APDU [18:51:51]CAPDU: 80 13 00 00 [18:51:51]Write to MH i2c: E2 08 00 F4 00 80 13 00 00 00 00 00 00 70 [18:51:51]Write i2c OK [18:51:51]MH_I2C_Read... [18:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:51]Read from MH i2c: E2 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: E2 62 00 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: E2 62 00 F4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:51]wFMCommunicate OK [18:51:51]SAM_PROTO_GetFieldsCounters done [18:51:51]requested_item shift.num is exist - process it [18:51:51]requested_item shift.opened is exist - process it [18:51:51]req_shift_opened [18:51:51]FM_GetShiftState [18:51:51]SAM_PROTO_GetShiftState [18:51:51]wFMCommunicate request_size=4 [18:51:51]MH_SAM_APDU [18:51:51]CAPDU: 80 13 01 00 [18:51:51]Write to MH i2c: E2 08 00 F5 00 80 13 01 00 00 00 00 00 72 [18:51:51]Write i2c OK [18:51:51]MH_I2C_Read... [18:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:51]Read from MH i2c: E2 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: E2 0E 00 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: E2 0E 00 F5 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D0 [18:51:51]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:51:51]wFMCommunicate OK [18:51:51]SAM_PROTO_GetShiftState done [18:51:51]FM_GetShiftState done [18:51:51]req_shift_opened done [18:51:51]requested_item shift.open_date is exist - process it [18:51:51]req_shift_open_date [18:51:51]req_shift_open_date done [18:51:51]produce_requested_data done [18:51:51]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1749,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:51:51]process_action_free close_receipt [18:51:51]json_value_free [18:51:51]json_value_free done [18:51:51]process_json_proto returns [18:51:51]Send response to host [18:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1749,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:51:51]free response buf [18:51:51]execute_script done [18:51:51]execute_script returns [18:51:51]free content buf [18:51:51]Sock 8.Close socket [18:51:51]Sock 8.Thread stoped [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:56:57]accept exits with 9 [18:56:57]New connection [18:56:57]New thread 3067411812 created [18:56:57]Thread 3067555172 joined [18:56:57]Waiting for new connection... [18:56:57] Sock 9.Parse request [18:56:57]Sock 9.Check first char [18:56:57]Sock 9.First char is OK [18:56:57]request: POST /json_proto HTTP/1.0 [18:56:57]Method: POST [18:56:57]URL: /json_proto [18:56:57]Method is POST - this is cgi request [18:56:57]url: /json_proto [18:56:57]query_string will be loaded in cgi processing [18:56:57]execute_cgi json_proto POST (null) [18:56:57]execute_cgi path=json_proto method=POST [18:56:57]POST find Content-Length [18:56:57]Host: 172.17.35.133:8080 [18:56:57]Content-Length: 742 [18:56:57]Content-Type: application/json [18:56:57] [18:56:57]POST finish read [18:56:57]Found Content-Length = 742 [18:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256221", "tax_sys" : 0, "items" : [ { "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:57]execute_script... [18:56:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256221", "tax_sys" : 0, "items" : [ { "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:57]POST & json_proto [18:56:57]process_json_proto [18:56:57]json parsed OK: [18:56:57]protocol is kg_v1.0 [18:56:57]action value=close_receipt [18:56:57]process_action close_receipt [18:56:57]cmd_close_receipt [18:56:57]MH_GetDate [18:56:57]Write to MH i2c: F0 00 00 F6 00 E5 [18:56:57]Write i2c OK [18:56:57]MH_I2C_Read... [18:56:57]Read from MH i2c: F0 [18:56:57]MH_I2C_Read... [18:56:57]Read from MH i2c: F0 09 00 [18:56:57]MH_I2C_Read... [18:56:57]Read from MH i2c: F0 09 00 F6 00 00 F9 2A 90 66 1B 28 2A 66 DA [18:56:57]GetLastDocTimeStamp 1720723908 [18:56:57]current date 1720724217 [18:56:57]FM_GetShiftState [18:56:57]SAM_PROTO_GetShiftState [18:56:57]wFMCommunicate request_size=4 [18:56:57]MH_SAM_APDU [18:56:57]CAPDU: 80 13 01 00 [18:56:57]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [18:56:57]Write i2c OK [18:56:57]MH_I2C_Read... [18:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:57]Read from MH i2c: E2 [18:56:57]MH_I2C_Read... [18:56:57]Read from MH i2c: E2 0E 00 [18:56:57]MH_I2C_Read... [18:56:57]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D2 [18:56:57]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:56:57]wFMCommunicate OK [18:56:57]SAM_PROTO_GetShiftState done [18:56:57]FM_GetShiftState done [18:56:57]opened in 1720656698 [18:56:57]opened+sec_in_day 1720743098 [18:56:57]quantity*price = 5900 [18:56:57]sum+1 = 5901 [18:56:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 66 11.07.2024 18:56 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1750 ФПД: 260139123084667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185658&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1750&fm=260139123084667&tin=02508201610067®Number=0000000000177495&sum=5900 0 [18:56:58]StoreToDocumentArchive [18:56:58]shift 22 fd 1750 [18:56:58]save to /storage/0022/doc_00001750 [18:56:58]save last doc name /storage/0022/doc_00001750 to /storage/kkm_last_doc_name [18:56:58]save OK [18:56:58]Clear old archive folders... [18:56:58]ProcessDocumentItem done err = 0, tmpTLVsize=309 [18:56:58]tlvbuf is 0012EEB0 [18:56:58]SAM_PROTO_ClearQueue [18:56:58]wFMCommunicate request_size=4 [18:56:58]MH_SAM_APDU [18:56:58]CAPDU: 80 09 00 00 [18:56:58]Write to MH i2c: E2 08 00 04 01 80 09 00 00 00 00 00 00 77 [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:58]Read from MH i2c: E2 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [18:56:58]RAPDU: 90 00 [18:56:58]wFMCommunicate OK [18:56:58]SAM_PROTO_ClearQueue done [18:56:58]KKMCreateOFDPacket [18:56:58]OFDProtocolAddRootSTLVToBuf [18:56:58]FM_MakeSignedData [18:56:58]FM_MakeSignedData [18:56:58]SAM_PROTO_SignData [18:56:58]wFMCommunicate request_size=4 [18:56:58]MH_SAM_APDU [18:56:58]CAPDU: 80 0D 01 02 [18:56:58]Write to MH i2c: E2 08 00 05 01 80 0D 01 02 00 00 00 00 7F [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:58]Read from MH i2c: E2 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [18:56:58]RAPDU: 90 00 [18:56:58]wFMCommunicate OK [18:56:58]wFMCommunicate request_size=255 [18:56:58]MH_SAM_APDU [18:56:58]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FA 2A 90 66 0E 04 04 00 16 00 00 00 [18:56:58]Write to MH i2c: E2 02 01 06 01 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FA 2A 90 66 0E 04 04 00 16 00 00 00 00 00 C7 [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:58]Read from MH i2c: E2 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [18:56:58]RAPDU: 90 00 [18:56:58]wFMCommunicate OK [18:56:58]wFMCommunicate request_size=68 [18:56:58]MH_SAM_APDU [18:56:58]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D6 06 00 00 35 04 06 00 EC 98 5C 06 0D 7B [18:56:58]Write to MH i2c: E2 47 00 07 01 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D6 06 00 00 35 04 06 00 EC 98 5C 06 0D 7B 00 00 EA [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:58]Read from MH i2c: E2 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [18:56:58]RAPDU: 90 00 [18:56:58]wFMCommunicate OK [18:56:58]wFMCommunicate request_size=4 [18:56:58]MH_SAM_APDU [18:56:58]CAPDU: 80 0D 03 02 [18:56:58]Write to MH i2c: E2 08 00 08 01 80 0D 03 02 00 00 00 00 84 [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:58]Read from MH i2c: E2 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 0B 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 0B 00 08 01 00 0D B4 C0 B1 08 82 22 9F 90 00 02 [18:56:58]RAPDU: 0D B4 C0 B1 08 82 22 9F 90 00 [18:56:58]wFMCommunicate OK [18:56:58]SAM_PROTO_SignData done [18:56:58]FM_MakeSignedData done [18:56:58]CreateOFDProtocolMessage [18:56:58]wFMCommunicate request_size=4 [18:56:58]MH_SAM_APDU [18:56:58]CAPDU: 80 11 00 00 [18:56:58]Write to MH i2c: E2 08 00 09 01 80 11 00 00 00 00 00 00 84 [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:58]Read from MH i2c: E2 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 17 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: E2 17 00 09 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DA [18:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:56:58]wFMCommunicate OK [18:56:58]CreateOFDProtocolMessage done [18:56:58]OFDSenderStorePacket 1750 [18:56:58]StoreOFDPacket docnum=1750 [18:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 49 01 00 00 68 3B 41 01 51 E7 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FA 2A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D6 06 00 00 35 04 06 00 EC 98 5C 06 0D 7B 0D B4 C0 B1 08 82 22 9F [18:56:58]CheckFolder [18:56:58]dirname=/storage/ofd_packets [18:56:58]CheckFolder done [18:56:58]ProducePacketName [18:56:58]name=ofd_packets/00001750 [18:56:58]NVStorageSaveData ofd_packets/00001750 [18:56:58]File name is /storage/ofd_packets/00001750 [18:56:58]Write 359 bytes [18:56:58]NVStorageSaveData done [18:56:58]OFDSenderStorePacket done [18:56:58]KKMCreateOFDPacket done [18:56:58]NVStorageSaveData kkm_last_timestamp [18:56:58]File name is /storage/kkm_last_timestamp [18:56:58]Write 4 bytes [18:56:58]NVStorageSaveData done [18:56:58]ExternCall_PrintAddStr [18:56:58]wPrintStart [18:56:58]Write to MH i2c: 01 00 00 0A 01 0B [18:56:58]Write i2c OK [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: 01 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: 01 07 00 [18:56:58]MH_I2C_Read... [18:56:58]Read from MH i2c: 01 07 00 0A 01 00 00 00 00 00 FF 0F 20 [18:56:58]RasterBufferAndPrint [18:56:58]line Счет N : (3)256221 [18:56:58]line ИНН: 02508201610067 [18:56:58]line Контрольно-Кассовый Чек [18:56:58]line ПРОДАЖА [18:56:58]line Товар: 4607123066058 [18:56:58]line Печенье Юбилейное Торжество орех 120г [18:56:58]line 1.000 * 59.00 [18:56:58]line = 59.00 [18:56:58]line НДС 12% НСП 1% [18:56:58]line > о реализуемом товаре [18:56:58]line ИТОГО: 59.00 [18:56:58]line НСП 1% : 0.52 [18:56:58]line НДС 12% : 6.26 [18:56:58]line Наличными: 59.00 [18:56:58]line Безнал.: 0.00 [18:56:58]line Место: АЗС № 76 "Партнер Нефть" [18:56:58]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:56:58]line СНО: Общий режим [18:56:58]line Чек 66 11.07.2024 18:56 [18:56:58]line Смена: 22 ФФД: 1.0 [18:56:58]line ЗНМ: 0300000124 [18:56:58]line РНМ: 0000000000177495 [18:56:58]line Версия ККМ: 001 [18:56:58]line ФМ: 0000000002098592 [18:56:58]line ФД: 1750 [18:56:58]line ФПД: 260139123084667 [18:56:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185658&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1750&fm=260139123084667&tin=02508201610067®Number=0000000000177495&sum=5900 [18:56:59]line 0 [18:56:59]OFD Sender: Processing packet 1750 [packets to send 1, broken 0] [18:56:59]ProducePacketName [18:56:59]name=ofd_packets/00001750 [18:56:59]OFD Sender: To server: pG, [18:56:59]CommunicateWithHost lk.salyk.kg:30040 [18:56:59]ConnectInit lk.salyk.kg [18:56:59]written 0, free lines is 4095 [18:56:59]Connected sock=10 [18:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 49 01 00 00 68 3B 41 01 51 E7 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FA 2A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D6 06 00 00 35 04 06 00 EC 98 5C 06 0D 7B 0D B4 C0 B1 08 82 22 9F [18:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 DB 23 47 00 91 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D6 06 00 00 F4 03 04 00 34 D6 8F 66 B6 04 01 00 00 79 A2 E9 3A D1 C0 B2 25 [18:56:59]CommunicateWithHost err = 0 [18:56:59]CheckOFDResponse [18:56:59]1017 (14) - 77093643461234 [18:56:59]1041 (16) - 0000000002098592 [18:56:59]1040 (4) - 1750 [18:56:59]1012 (4) - 11.07.2024 12:55 [18:56:59]1206 (1) - 0 [18:56:59]OFD Sender: Remove packet 1750 [18:56:59]ProducePacketName [18:56:59]name=ofd_packets/00001750 [18:56:59]NVStorageDeleteData [18:56:59]Write to MH i2c: 01 00 00 33 01 34 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: 01 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: 01 07 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 FB 0C 42 [18:56:59]RasterBufferAndPrint [18:56:59]line [18:56:59]line [18:56:59]line [18:56:59]line [18:56:59]line [18:56:59]written 0, free lines is 3329 [18:56:59]MH_Cut [18:56:59]Write to MH i2c: D1 01 00 3A 01 01 0D [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: D1 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: D1 01 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: D1 01 00 3A 01 00 0C [18:56:59]Write to MH i2c: 01 00 00 3B 01 3C [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:57:00]OFD Sender: No OFD packet to send [18:57:00]*** Cut start [18:57:00]*** Partial cut [18:57:00]*** CUTSNS_PIN = 1 [18:57:00]*** CUTSNS_PIN = 0 [18:57:00]*** Brake cut motor [18:57:01]Read from MH i2c: 01 [18:57:01]MH_I2C_Read... [18:57:01]*** Stop cut motor [18:57:01]*** Cut end [18:57:01]Read from MH i2c: 01 07 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [18:57:01]process_action close_receipt done [18:57:01]requested_data is exist [18:57:01]produce_requested_data [18:57:01]requested_item fm.sn is exist - process it [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 11 00 00 [18:57:01]Write to MH i2c: E2 08 00 3C 01 80 11 00 00 00 00 00 00 B7 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 3C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0D [18:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:57:01]wFMCommunicate OK [18:57:01]requested_item fd.num is exist - process it [18:57:01]SAM_PROTO_GetFieldsCounters [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 00 00 [18:57:01]Write to MH i2c: E2 08 00 3D 01 80 13 00 00 00 00 00 00 BA [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 62 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 62 00 3D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D6 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:57:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D6 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetFieldsCounters done [18:57:01]requested_item shift.num is exist - process it [18:57:01]requested_item shift.opened is exist - process it [18:57:01]req_shift_opened [18:57:01]FM_GetShiftState [18:57:01]SAM_PROTO_GetShiftState [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 01 00 [18:57:01]Write to MH i2c: E2 08 00 3E 01 80 13 01 00 00 00 00 00 BC [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 3E 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 1A [18:57:01]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetShiftState done [18:57:01]FM_GetShiftState done [18:57:01]req_shift_opened done [18:57:01]requested_item shift.open_date is exist - process it [18:57:01]req_shift_open_date [18:57:01]req_shift_open_date done [18:57:01]produce_requested_data done [18:57:01]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1750,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:57:01]process_action_free close_receipt [18:57:01]json_value_free [18:57:01]json_value_free done [18:57:01]process_json_proto returns [18:57:01]Send response to host [18:57:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1750,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:57:01]free response buf [18:57:01]execute_script done [18:57:01]execute_script returns [18:57:01]free content buf [18:57:01]Sock 9.Close socket [18:57:01]Sock 9.Thread stoped [18:57:05]OFD Sender: No OFD packet to send [18:57:05]accept exits with 8 [18:57:05]New connection [18:57:05]New thread 3067555172 created [18:57:05]Thread 3067411812 joined [18:57:05]Waiting for new connection... [18:57:05] Sock 8.Parse request [18:57:05]Sock 8.Check first char [18:57:05]Sock 8.First char is OK [18:57:05]request: POST /json_proto HTTP/1.0 [18:57:05]Method: POST [18:57:05]URL: /json_proto [18:57:05]Method is POST - this is cgi request [18:57:05]url: /json_proto [18:57:05]query_string will be loaded in cgi processing [18:57:05]execute_cgi json_proto POST (null) [18:57:05]execute_cgi path=json_proto method=POST [18:57:05]POST find Content-Length [18:57:05]Host: 172.17.35.133:8080 [18:57:05]Content-Length: 821 [18:57:05]Content-Type: application/json [18:57:05] [18:57:05]POST finish read [18:57:05]Found Content-Length = 821 [18:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256222", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:05]execute_script... [18:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256222", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:05]POST & json_proto [18:57:05]process_json_proto [18:57:05]json parsed OK: [18:57:05]protocol is kg_v1.0 [18:57:05]action value=close_receipt [18:57:05]process_action close_receipt [18:57:05]cmd_close_receipt [18:57:05]MH_GetDate [18:57:05]Write to MH i2c: F0 00 00 3F 01 2F [18:57:05]Write i2c OK [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: F0 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: F0 09 00 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: F0 09 00 3F 01 00 01 2B 90 66 1B 28 2A 66 2D [18:57:05]GetLastDocTimeStamp 1720724218 [18:57:05]current date 1720724225 [18:57:05]FM_GetShiftState [18:57:05]SAM_PROTO_GetShiftState [18:57:05]wFMCommunicate request_size=4 [18:57:05]MH_SAM_APDU [18:57:05]CAPDU: 80 13 01 00 [18:57:05]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [18:57:05]Write i2c OK [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: E2 [18:57:05]MH_I2C_Read... [18:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:05]Read from MH i2c: E2 0E 00 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 1C [18:57:05]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:57:05]wFMCommunicate OK [18:57:05]SAM_PROTO_GetShiftState done [18:57:05]FM_GetShiftState done [18:57:05]opened in 1720656698 [18:57:05]opened+sec_in_day 1720743098 [18:57:05]quantity*price = 13500 [18:57:05]sum+1 = 13501 [18:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 67 11.07.2024 18:57 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1751 ФПД: 107669969742421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185705&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1751&fm=107669969742421&tin=02508201610067®Number=0000000000177495&sum=13500 0 [18:57:06]StoreToDocumentArchive [18:57:06]shift 22 fd 1751 [18:57:06]save to /storage/0022/doc_00001751 [18:57:06]save last doc name /storage/0022/doc_00001751 to /storage/kkm_last_doc_name [18:57:06]save OK [18:57:06]Clear old archive folders... [18:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:57:06]tlvbuf is 001235E0 [18:57:06]SAM_PROTO_ClearQueue [18:57:06]wFMCommunicate request_size=4 [18:57:06]MH_SAM_APDU [18:57:06]CAPDU: 80 09 00 00 [18:57:06]Write to MH i2c: E2 08 00 4D 01 80 09 00 00 00 00 00 00 C0 [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:06]Read from MH i2c: E2 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [18:57:06]RAPDU: 90 00 [18:57:06]wFMCommunicate OK [18:57:06]SAM_PROTO_ClearQueue done [18:57:06]KKMCreateOFDPacket [18:57:06]OFDProtocolAddRootSTLVToBuf [18:57:06]FM_MakeSignedData [18:57:06]FM_MakeSignedData [18:57:06]SAM_PROTO_SignData [18:57:06]wFMCommunicate request_size=4 [18:57:06]MH_SAM_APDU [18:57:06]CAPDU: 80 0D 01 02 [18:57:06]Write to MH i2c: E2 08 00 4E 01 80 0D 01 02 00 00 00 00 C8 [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:06]Read from MH i2c: E2 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [18:57:06]RAPDU: 90 00 [18:57:06]wFMCommunicate OK [18:57:06]wFMCommunicate request_size=255 [18:57:06]MH_SAM_APDU [18:57:06]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 01 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 [18:57:06]Write to MH i2c: E2 02 01 4F 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 01 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 06 [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:06]Read from MH i2c: E2 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [18:57:06]RAPDU: 90 00 [18:57:06]wFMCommunicate OK [18:57:06]wFMCommunicate request_size=31 [18:57:06]MH_SAM_APDU [18:57:06]CAPDU: 80 0D 02 02 1A 30 32 30 39 38 35 39 32 10 04 04 00 D7 06 00 00 35 04 06 00 61 EC DE 4C AA 55 [18:57:06]Write to MH i2c: E2 22 00 50 01 80 0D 02 02 1A 00 30 32 30 39 38 35 39 32 10 04 04 00 D7 06 00 00 35 04 06 00 61 EC DE 4C AA 55 00 00 4C [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:06]Read from MH i2c: E2 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [18:57:06]RAPDU: 90 00 [18:57:06]wFMCommunicate OK [18:57:06]wFMCommunicate request_size=4 [18:57:06]MH_SAM_APDU [18:57:06]CAPDU: 80 0D 03 02 [18:57:06]Write to MH i2c: E2 08 00 51 01 80 0D 03 02 00 00 00 00 CD [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:06]Read from MH i2c: E2 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 0B 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 0B 00 51 01 00 28 23 90 F7 DD B5 FC EE 90 00 1C [18:57:06]RAPDU: 28 23 90 F7 DD B5 FC EE 90 00 [18:57:06]wFMCommunicate OK [18:57:06]SAM_PROTO_SignData done [18:57:06]FM_MakeSignedData done [18:57:06]CreateOFDProtocolMessage [18:57:06]wFMCommunicate request_size=4 [18:57:06]MH_SAM_APDU [18:57:06]CAPDU: 80 11 00 00 [18:57:06]Write to MH i2c: E2 08 00 52 01 80 11 00 00 00 00 00 00 CD [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:06]Read from MH i2c: E2 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 17 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: E2 17 00 52 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 23 [18:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:57:06]wFMCommunicate OK [18:57:06]CreateOFDProtocolMessage done [18:57:06]OFDSenderStorePacket 1751 [18:57:06]StoreOFDPacket docnum=1751 [18:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 24 01 00 00 37 82 1C 01 46 A8 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 01 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D7 06 00 00 35 04 06 00 61 EC DE 4C AA 55 28 23 90 F7 DD B5 FC EE [18:57:06]CheckFolder [18:57:06]dirname=/storage/ofd_packets [18:57:06]CheckFolder done [18:57:06]ProducePacketName [18:57:06]name=ofd_packets/00001751 [18:57:06]NVStorageSaveData ofd_packets/00001751 [18:57:06]File name is /storage/ofd_packets/00001751 [18:57:06]Write 322 bytes [18:57:06]NVStorageSaveData done [18:57:06]OFDSenderStorePacket done [18:57:06]KKMCreateOFDPacket done [18:57:06]NVStorageSaveData kkm_last_timestamp [18:57:06]File name is /storage/kkm_last_timestamp [18:57:06]Write 4 bytes [18:57:06]NVStorageSaveData done [18:57:06]ExternCall_PrintAddStr [18:57:06]wPrintStart [18:57:06]Write to MH i2c: 01 00 00 53 01 54 [18:57:06]Write i2c OK [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: 01 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: 01 07 00 [18:57:06]MH_I2C_Read... [18:57:06]Read from MH i2c: 01 07 00 53 01 00 00 00 00 00 FF 0F 69 [18:57:06]RasterBufferAndPrint [18:57:06]line Счет N : (3)256222 [18:57:06]line ИНН: 02508201610067 [18:57:06]line Контрольно-Кассовый Чек [18:57:06]line ПРОДАЖА [18:57:06]line Товар: 48745000 [18:57:06]line Сигареты Winston Purple Mix [18:57:06]line 1.000 * 135.00 [18:57:06]line = 135.00 [18:57:06]line НДС 12% НСП 1% [18:57:06]line > о реализуемом товаре [18:57:06]line ИТОГО: 135.00 [18:57:06]line НСП 1% : 1.19 [18:57:06]line НДС 12% : 14.34 [18:57:06]line Наличными: 0.00 [18:57:06]line Безнал.: 135.00 [18:57:06]line Место: АЗС № 76 "Партнер Нефть" [18:57:06]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:57:06]line СНО: Общий режим [18:57:06]line Чек 67 11.07.2024 18:57 [18:57:06]line Смена: 22 ФФД: 1.0 [18:57:06]line ЗНМ: 0300000124 [18:57:06]line РНМ: 0000000000177495 [18:57:06]line Версия ККМ: 001 [18:57:06]line Платежная система: АКБ Кыргызстан [18:57:06]line ФМ: 0000000002098592 [18:57:06]line ФД: 1751 [18:57:06]line ФПД: 107669969742421 [18:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185705&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1751&fm=107669969742421&tin=02508201610067®Number=0000000000177495&sum=13500 [18:57:07]line 0 [18:57:07]OFD Sender: Processing packet 1751 [packets to send 1, broken 0] [18:57:07]ProducePacketName [18:57:07]name=ofd_packets/00001751 [18:57:07]OFD Sender: To server: pG, [18:57:07]CommunicateWithHost lk.salyk.kg:30040 [18:57:07]ConnectInit lk.salyk.kg [18:57:07]written 0, free lines is 4095 [18:57:07]Connected sock=10 [18:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 24 01 00 00 37 82 1C 01 46 A8 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 01 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D7 06 00 00 35 04 06 00 61 EC DE 4C AA 55 28 23 90 F7 DD B5 FC EE [18:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 A3 97 47 00 A3 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D7 06 00 00 F4 03 04 00 3C D6 8F 66 B6 04 01 00 00 C2 81 BE 28 BC 8F F3 2C [18:57:07]CommunicateWithHost err = 0 [18:57:07]CheckOFDResponse [18:57:07]1017 (14) - 77093643461234 [18:57:07]1041 (16) - 0000000002098592 [18:57:07]1040 (4) - 1751 [18:57:07]1012 (4) - 11.07.2024 12:55 [18:57:07]1206 (1) - 0 [18:57:07]OFD Sender: Remove packet 1751 [18:57:07]ProducePacketName [18:57:07]name=ofd_packets/00001751 [18:57:07]NVStorageDeleteData [18:57:07]Write to MH i2c: 01 00 00 7D 01 7E [18:57:07]Write i2c OK [18:57:07]MH_I2C_Read... [18:57:07]Read from MH i2c: 01 [18:57:07]MH_I2C_Read... [18:57:07]Read from MH i2c: 01 07 00 [18:57:07]MH_I2C_Read... [18:57:07]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0C 90 [18:57:07]RasterBufferAndPrint [18:57:07]line [18:57:07]line [18:57:07]line [18:57:07]line [18:57:07]line [18:57:07]written 0, free lines is 3336 [18:57:07]MH_Cut [18:57:07]Write to MH i2c: D1 01 00 84 01 01 57 [18:57:07]Write i2c OK [18:57:07]MH_I2C_Read... [18:57:07]Read from MH i2c: D1 [18:57:07]MH_I2C_Read... [18:57:07]Read from MH i2c: D1 01 00 [18:57:07]MH_I2C_Read... [18:57:07]Read from MH i2c: D1 01 00 84 01 00 56 [18:57:07]Write to MH i2c: 01 00 00 85 01 86 [18:57:07]Write i2c OK [18:57:07]MH_I2C_Read... [18:57:08]OFD Sender: No OFD packet to send [18:57:08]*** Cut start [18:57:08]*** Partial cut [18:57:08]*** CUTSNS_PIN = 1 [18:57:08]*** CUTSNS_PIN = 0 [18:57:08]*** Brake cut motor [18:57:09]Read from MH i2c: 01 [18:57:09]MH_I2C_Read... [18:57:09]*** Stop cut motor [18:57:09]*** Cut end [18:57:09]Read from MH i2c: 01 07 00 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 FF 0F 9B [18:57:09]process_action close_receipt done [18:57:09]requested_data is exist [18:57:09]produce_requested_data [18:57:09]requested_item fm.sn is exist - process it [18:57:09]wFMCommunicate request_size=4 [18:57:09]MH_SAM_APDU [18:57:09]CAPDU: 80 11 00 00 [18:57:09]Write to MH i2c: E2 08 00 86 01 80 11 00 00 00 00 00 00 01 [18:57:09]Write i2c OK [18:57:09]MH_I2C_Read... [18:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:09]Read from MH i2c: E2 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 17 00 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 17 00 86 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 57 [18:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:57:09]wFMCommunicate OK [18:57:09]requested_item fd.num is exist - process it [18:57:09]SAM_PROTO_GetFieldsCounters [18:57:09]wFMCommunicate request_size=4 [18:57:09]MH_SAM_APDU [18:57:09]CAPDU: 80 13 00 00 [18:57:09]Write to MH i2c: E2 08 00 87 01 80 13 00 00 00 00 00 00 04 [18:57:09]Write i2c OK [18:57:09]MH_I2C_Read... [18:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:09]Read from MH i2c: E2 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 62 00 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 62 00 87 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [18:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D7 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:09]wFMCommunicate OK [18:57:09]SAM_PROTO_GetFieldsCounters done [18:57:09]requested_item shift.num is exist - process it [18:57:09]requested_item shift.opened is exist - process it [18:57:09]req_shift_opened [18:57:09]FM_GetShiftState [18:57:09]SAM_PROTO_GetShiftState [18:57:09]wFMCommunicate request_size=4 [18:57:09]MH_SAM_APDU [18:57:09]CAPDU: 80 13 01 00 [18:57:09]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [18:57:09]Write i2c OK [18:57:09]MH_I2C_Read... [18:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:09]Read from MH i2c: E2 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 0E 00 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 64 [18:57:09]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:57:09]wFMCommunicate OK [18:57:09]SAM_PROTO_GetShiftState done [18:57:09]FM_GetShiftState done [18:57:09]req_shift_opened done [18:57:09]requested_item shift.open_date is exist - process it [18:57:09]req_shift_open_date [18:57:09]req_shift_open_date done [18:57:09]produce_requested_data done [18:57:09]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1751,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:57:09]process_action_free close_receipt [18:57:09]json_value_free [18:57:09]json_value_free done [18:57:09]process_json_proto returns [18:57:09]Send response to host [18:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1751,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:57:09]free response buf [18:57:09]execute_script done [18:57:09]execute_script returns [18:57:09]free content buf [18:57:09]Sock 8.Close socket [18:57:09]Sock 8.Thread stoped [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:25]recv_with_timeout no data received [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:38]accept exits with 9 [18:59:38]New connection [18:59:38]New thread 3067411812 created [18:59:38]Thread 3067555172 joined [18:59:38]Waiting for new connection... [18:59:38] Sock 9.Parse request [18:59:38]Sock 9.Check first char [18:59:38]Sock 9.First char is OK [18:59:38]request: POST /json_proto HTTP/1.0 [18:59:38]Method: POST [18:59:38]URL: /json_proto [18:59:38]Method is POST - this is cgi request [18:59:38]url: /json_proto [18:59:38]query_string will be loaded in cgi processing [18:59:38]execute_cgi json_proto POST (null) [18:59:38]execute_cgi path=json_proto method=POST [18:59:38]POST find Content-Length [18:59:38]Host: 172.17.35.133:8080 [18:59:38]Content-Length: 641 [18:59:38]Content-Type: application/json [18:59:38] [18:59:38]POST finish read [18:59:38]Found Content-Length = 641 [18:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256223", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:38]execute_script... [18:59:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256223", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:38]POST & json_proto [18:59:38]process_json_proto [18:59:38]json parsed OK: [18:59:38]protocol is kg_v1.0 [18:59:38]action value=close_receipt [18:59:38]process_action close_receipt [18:59:38]cmd_close_receipt [18:59:38]MH_GetDate [18:59:38]Write to MH i2c: F0 00 00 89 01 79 [18:59:38]Write i2c OK [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: F0 [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: F0 09 00 [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: F0 09 00 89 01 00 9B 2B 90 66 1B 28 2A 66 11 [18:59:38]GetLastDocTimeStamp 1720724225 [18:59:38]current date 1720724379 [18:59:38]FM_GetShiftState [18:59:38]SAM_PROTO_GetShiftState [18:59:38]wFMCommunicate request_size=4 [18:59:38]MH_SAM_APDU [18:59:38]CAPDU: 80 13 01 00 [18:59:38]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [18:59:38]Write i2c OK [18:59:38]MH_I2C_Read... [18:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:38]Read from MH i2c: E2 [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: E2 0E 00 [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 66 [18:59:38]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:59:38]wFMCommunicate OK [18:59:38]SAM_PROTO_GetShiftState done [18:59:38]FM_GetShiftState done [18:59:38]opened in 1720656698 [18:59:38]opened+sec_in_day 1720743098 [18:59:38]quantity*price = 33000 [18:59:38]sum+1 = 33001 [18:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 68 11.07.2024 18:59 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1752 ФПД: 233771779144725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185939&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1752&fm=233771779144725&tin=02508201610067®Number=0000000000177495&sum=33000 0 [18:59:39]StoreToDocumentArchive [18:59:39]shift 22 fd 1752 [18:59:39]save to /storage/0022/doc_00001752 [18:59:39]save last doc name /storage/0022/doc_00001752 to /storage/kkm_last_doc_name [18:59:39]save OK [18:59:39]Clear old archive folders... [18:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:59:39]tlvbuf is 000E6600 [18:59:39]SAM_PROTO_ClearQueue [18:59:39]wFMCommunicate request_size=4 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 09 00 00 [18:59:39]Write to MH i2c: E2 08 00 97 01 80 09 00 00 00 00 00 00 0A [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [18:59:39]RAPDU: 90 00 [18:59:39]wFMCommunicate OK [18:59:39]SAM_PROTO_ClearQueue done [18:59:39]KKMCreateOFDPacket [18:59:39]OFDProtocolAddRootSTLVToBuf [18:59:39]FM_MakeSignedData [18:59:39]FM_MakeSignedData [18:59:39]SAM_PROTO_SignData [18:59:39]wFMCommunicate request_size=4 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 0D 01 02 [18:59:39]Write to MH i2c: E2 08 00 98 01 80 0D 01 02 00 00 00 00 12 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [18:59:39]RAPDU: 90 00 [18:59:39]wFMCommunicate OK [18:59:39]wFMCommunicate request_size=255 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 [18:59:39]Write to MH i2c: E2 02 01 99 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 E7 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [18:59:39]RAPDU: 90 00 [18:59:39]wFMCommunicate OK [18:59:39]wFMCommunicate request_size=32 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 38 35 39 32 10 04 04 00 D8 06 00 00 35 04 06 00 D4 9D 3B DA BC 15 [18:59:39]Write to MH i2c: E2 23 00 9A 01 80 0D 02 02 1B 00 30 30 32 30 39 38 35 39 32 10 04 04 00 D8 06 00 00 35 04 06 00 D4 9D 3B DA BC 15 00 00 AA [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [18:59:39]RAPDU: 90 00 [18:59:39]wFMCommunicate OK [18:59:39]wFMCommunicate request_size=4 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 0D 03 02 [18:59:39]Write to MH i2c: E2 08 00 9B 01 80 0D 03 02 00 00 00 00 17 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0B 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0B 00 9B 01 00 1F E5 08 E1 69 48 06 CC 90 00 88 [18:59:39]RAPDU: 1F E5 08 E1 69 48 06 CC 90 00 [18:59:39]wFMCommunicate OK [18:59:39]SAM_PROTO_SignData done [18:59:39]FM_MakeSignedData done [18:59:39]CreateOFDProtocolMessage [18:59:39]wFMCommunicate request_size=4 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 11 00 00 [18:59:39]Write to MH i2c: E2 08 00 9C 01 80 11 00 00 00 00 00 00 17 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 17 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 17 00 9C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 6D [18:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:59:39]wFMCommunicate OK [18:59:39]CreateOFDProtocolMessage done [18:59:39]OFDSenderStorePacket 1752 [18:59:39]StoreOFDPacket docnum=1752 [18:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 25 01 00 00 07 89 1D 01 95 8A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D8 06 00 00 35 04 06 00 D4 9D 3B DA BC 15 1F E5 08 E1 69 48 06 CC [18:59:39]CheckFolder [18:59:39]dirname=/storage/ofd_packets [18:59:39]CheckFolder done [18:59:39]ProducePacketName [18:59:39]name=ofd_packets/00001752 [18:59:39]NVStorageSaveData ofd_packets/00001752 [18:59:39]File name is /storage/ofd_packets/00001752 [18:59:39]Write 323 bytes [18:59:39]NVStorageSaveData done [18:59:39]OFDSenderStorePacket done [18:59:39]KKMCreateOFDPacket done [18:59:39]NVStorageSaveData kkm_last_timestamp [18:59:39]File name is /storage/kkm_last_timestamp [18:59:39]Write 4 bytes [18:59:39]NVStorageSaveData done [18:59:39]ExternCall_PrintAddStr [18:59:39]wPrintStart [18:59:39]Write to MH i2c: 01 00 00 9D 01 9E [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: 01 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: 01 07 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [18:59:39]RasterBufferAndPrint [18:59:39]line Счет N : (3)256223 [18:59:39]line ИНН: 02508201610067 [18:59:39]line Контрольно-Кассовый Чек [18:59:39]line ПРОДАЖА [18:59:39]line Товар: 4700001060169 [18:59:39]line Коньяк Бишкек 0,2л [18:59:39]line 1.000 * 330.00 [18:59:39]line = 330.00 [18:59:39]line НДС 12% НСП 1% [18:59:39]line > о реализуемом товаре [18:59:39]line ИТОГО: 330.00 [18:59:39]line НСП 1% : 2.92 [18:59:39]line НДС 12% : 35.04 [18:59:39]line Наличными: 330.00 [18:59:39]line Безнал.: 0.00 [18:59:39]line Место: АЗС № 76 "Партнер Нефть" [18:59:39]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:59:39]line СНО: Общий режим [18:59:39]line Чек 68 11.07.2024 18:59 [18:59:39]line Смена: 22 ФФД: 1.0 [18:59:39]line ЗНМ: 0300000124 [18:59:39]line РНМ: 0000000000177495 [18:59:40]line Версия ККМ: 001 [18:59:40]line ФМ: 0000000002098592 [18:59:40]line ФД: 1752 [18:59:40]line ФПД: 233771779144725 [18:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T185939&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1752&fm=233771779144725&tin=02508201610067®Number=0000000000177495&sum=33000 [18:59:40]line 0 [18:59:40]OFD Sender: Processing packet 1752 [packets to send 1, broken 0] [18:59:40]ProducePacketName [18:59:40]name=ofd_packets/00001752 [18:59:40]OFD Sender: To server: pG, [18:59:40]CommunicateWithHost lk.salyk.kg:30040 [18:59:40]ConnectInit lk.salyk.kg [18:59:40]written 0, free lines is 4095 [18:59:40]Connected sock=10 [18:59:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 25 01 00 00 07 89 1D 01 95 8A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 2B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D8 06 00 00 35 04 06 00 D4 9D 3B DA BC 15 1F E5 08 E1 69 48 06 CC [18:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 1D 01 47 00 28 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D8 06 00 00 F4 03 04 00 D5 D6 8F 66 B6 04 01 00 00 6F C6 09 CE D5 E5 85 07 [18:59:40]CommunicateWithHost err = 0 [18:59:40]CheckOFDResponse [18:59:40]1017 (14) - 77093643461234 [18:59:40]1041 (16) - 0000000002098592 [18:59:40]1040 (4) - 1752 [18:59:40]1012 (4) - 11.07.2024 12:57 [18:59:40]1206 (1) - 0 [18:59:40]OFD Sender: Remove packet 1752 [18:59:40]ProducePacketName [18:59:40]name=ofd_packets/00001752 [18:59:40]NVStorageDeleteData [18:59:40]Write to MH i2c: 01 00 00 C5 01 C6 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 1C 0D F6 [18:59:40]RasterBufferAndPrint [18:59:40]line [18:59:40]line [18:59:40]line [18:59:40]line [18:59:40]line [18:59:40]written 0, free lines is 3362 [18:59:40]MH_Cut [18:59:40]Write to MH i2c: D1 01 00 CC 01 01 9F [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: D1 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: D1 01 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: D1 01 00 CC 01 00 9E [18:59:40]Write to MH i2c: 01 00 00 CD 01 CE [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:41]OFD Sender: No OFD packet to send [18:59:41]*** Cut start [18:59:41]*** Partial cut [18:59:41]*** CUTSNS_PIN = 1 [18:59:41]*** CUTSNS_PIN = 0 [18:59:41]*** Brake cut motor [18:59:42]Read from MH i2c: 01 [18:59:42]MH_I2C_Read... [18:59:42]*** Stop cut motor [18:59:42]*** Cut end [18:59:42]Read from MH i2c: 01 07 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [18:59:42]process_action close_receipt done [18:59:42]requested_data is exist [18:59:42]produce_requested_data [18:59:42]requested_item fm.sn is exist - process it [18:59:42]wFMCommunicate request_size=4 [18:59:42]MH_SAM_APDU [18:59:42]CAPDU: 80 11 00 00 [18:59:42]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:42]Read from MH i2c: E2 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 17 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9F [18:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:59:42]wFMCommunicate OK [18:59:42]requested_item fd.num is exist - process it [18:59:42]SAM_PROTO_GetFieldsCounters [18:59:42]wFMCommunicate request_size=4 [18:59:42]MH_SAM_APDU [18:59:42]CAPDU: 80 13 00 00 [18:59:42]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:42]Read from MH i2c: E2 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 62 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D8 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [18:59:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D8 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:42]wFMCommunicate OK [18:59:42]SAM_PROTO_GetFieldsCounters done [18:59:42]requested_item shift.num is exist - process it [18:59:42]requested_item shift.opened is exist - process it [18:59:42]req_shift_opened [18:59:42]FM_GetShiftState [18:59:42]SAM_PROTO_GetShiftState [18:59:42]wFMCommunicate request_size=4 [18:59:42]MH_SAM_APDU [18:59:42]CAPDU: 80 13 01 00 [18:59:42]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:42]Read from MH i2c: E2 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 0E 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 AC [18:59:42]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [18:59:42]wFMCommunicate OK [18:59:42]SAM_PROTO_GetShiftState done [18:59:42]FM_GetShiftState done [18:59:42]req_shift_opened done [18:59:42]requested_item shift.open_date is exist - process it [18:59:42]req_shift_open_date [18:59:42]req_shift_open_date done [18:59:42]produce_requested_data done [18:59:42]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1752,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [18:59:42]process_action_free close_receipt [18:59:42]json_value_free [18:59:42]json_value_free done [18:59:42]process_json_proto returns [18:59:42]Send response to host [18:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1752,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [18:59:42]free response buf [18:59:42]execute_script done [18:59:42]execute_script returns [18:59:42]free content buf [18:59:42]Sock 9.Close socket [18:59:42]Sock 9.Thread stoped [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:38]recv_with_timeout no data received [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:08]recv_with_timeout no data received [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:00]recv_with_timeout no data received [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:20]recv_with_timeout no data received [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:28]recv_with_timeout no data received [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:34]ConnectInit Can't connect to host [19:20:37]OFD Sender: No OFD packet to send [19:21:27]ConnectInit Can't connect to host [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:49]recv_with_timeout no data received [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:23:58]recv_with_timeout no data received [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:07]recv_with_timeout no data received [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:41]ConnectInit Can't connect to host [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:13]recv_with_timeout no data received [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:04]recv_with_timeout no data received [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:49:15]ConnectInit Can't connect to host [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:36]recv_with_timeout no data received [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]accept exits with 8 [20:04:24]New connection [20:04:24]New thread 3067555172 created [20:04:24]Thread 3067411812 joined [20:04:24]Waiting for new connection... [20:04:24] Sock 8.Parse request [20:04:24]Sock 8.Check first char [20:04:24]Sock 8.First char is OK [20:04:24]request: POST /json_proto HTTP/1.0 [20:04:24]Method: POST [20:04:24]URL: /json_proto [20:04:24]Method is POST - this is cgi request [20:04:24]url: /json_proto [20:04:24]query_string will be loaded in cgi processing [20:04:24]execute_cgi json_proto POST (null) [20:04:24]execute_cgi path=json_proto method=POST [20:04:24]POST find Content-Length [20:04:24]Host: 172.17.35.133:8080 [20:04:24]Content-Length: 678 [20:04:24]Content-Type: application/json [20:04:24] [20:04:24]POST finish read [20:04:24]Found Content-Length = 678 [20:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.780, "sum" : 250.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:24]execute_script... [20:04:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.780, "sum" : 250.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:24]POST & json_proto [20:04:24]process_json_proto [20:04:24]json parsed OK: [20:04:24]protocol is kg_v1.0 [20:04:24]action value=close_receipt [20:04:24]process_action close_receipt [20:04:24]cmd_close_receipt [20:04:24]MH_GetDate [20:04:24]Write to MH i2c: F0 00 00 D1 01 C1 [20:04:24]Write i2c OK [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: F0 [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: F0 09 00 [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: F0 09 00 D1 01 00 C8 3A 90 66 1B 28 2A 66 95 [20:04:24]GetLastDocTimeStamp 1720724379 [20:04:24]current date 1720728264 [20:04:24]FM_GetShiftState [20:04:24]SAM_PROTO_GetShiftState [20:04:24]wFMCommunicate request_size=4 [20:04:24]MH_SAM_APDU [20:04:24]CAPDU: 80 13 01 00 [20:04:24]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [20:04:24]Write i2c OK [20:04:24]MH_I2C_Read... [20:04:24]OFD Sender: No OFD packet to send [20:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:24]Read from MH i2c: E2 [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: E2 0E 00 [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 AE [20:04:24]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:04:24]wFMCommunicate OK [20:04:24]SAM_PROTO_GetShiftState done [20:04:24]FM_GetShiftState done [20:04:24]opened in 1720656698 [20:04:24]opened+sec_in_day 1720743098 [20:04:24]quantity*price = 25061 [20:04:24]sum+1 = 25062 [20:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.61 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 69 11.07.2024 20:04 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1753 ФПД: 232176184519947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T200425&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1753&fm=232176184519947&tin=02508201610067®Number=0000000000177495&sum=25000 [20:04:25]StoreToDocumentArchive [20:04:25]shift 22 fd 1753 [20:04:25]save to /storage/0022/doc_00001753 [20:04:25]save last doc name /storage/0022/doc_00001753 to /storage/kkm_last_doc_name [20:04:25]save OK [20:04:25]Clear old archive folders... [20:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:25]tlvbuf is 000F5D80 [20:04:25]SAM_PROTO_ClearQueue [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 09 00 00 [20:04:25]Write to MH i2c: E2 08 00 DF 01 80 09 00 00 00 00 00 00 52 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]SAM_PROTO_ClearQueue done [20:04:25]KKMCreateOFDPacket [20:04:25]OFDProtocolAddRootSTLVToBuf [20:04:25]FM_MakeSignedData [20:04:25]FM_MakeSignedData [20:04:25]SAM_PROTO_SignData [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 01 02 [20:04:25]Write to MH i2c: E2 08 00 E0 01 80 0D 01 02 00 00 00 00 5A [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]wFMCommunicate request_size=255 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 3A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D9 06 00 00 35 04 06 00 D3 [20:04:25]Write to MH i2c: E2 02 01 E1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 3A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D9 06 00 00 35 04 06 00 D3 00 00 EB [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]wFMCommunicate request_size=10 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 02 02 05 29 BB 00 ED 0B [20:04:25]Write to MH i2c: E2 0D 00 E2 01 80 0D 02 02 05 00 29 BB 00 ED 0B 00 00 43 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 03 02 [20:04:25]Write to MH i2c: E2 08 00 E3 01 80 0D 03 02 00 00 00 00 5F [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 0B 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 0B 00 E3 01 00 80 1C E6 31 9E 66 99 C1 90 00 71 [20:04:25]RAPDU: 80 1C E6 31 9E 66 99 C1 90 00 [20:04:25]wFMCommunicate OK [20:04:25]SAM_PROTO_SignData done [20:04:25]FM_MakeSignedData done [20:04:25]CreateOFDProtocolMessage [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 11 00 00 [20:04:25]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 17 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B5 [20:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:04:25]wFMCommunicate OK [20:04:25]CreateOFDProtocolMessage done [20:04:25]OFDSenderStorePacket 1753 [20:04:25]StoreOFDPacket docnum=1753 [20:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 3A 91 07 01 37 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 3A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D9 06 00 00 35 04 06 00 D3 29 BB 00 ED 0B 80 1C E6 31 9E 66 99 C1 [20:04:25]CheckFolder [20:04:25]dirname=/storage/ofd_packets [20:04:25]CheckFolder done [20:04:25]ProducePacketName [20:04:25]name=ofd_packets/00001753 [20:04:25]NVStorageSaveData ofd_packets/00001753 [20:04:25]File name is /storage/ofd_packets/00001753 [20:04:25]Write 301 bytes [20:04:25]NVStorageSaveData done [20:04:25]OFDSenderStorePacket done [20:04:25]KKMCreateOFDPacket done [20:04:25]NVStorageSaveData kkm_last_timestamp [20:04:25]File name is /storage/kkm_last_timestamp [20:04:25]Write 4 bytes [20:04:25]NVStorageSaveData done [20:04:25]ExternCall_PrintAddStr [20:04:25]wPrintStart [20:04:25]Write to MH i2c: 01 00 00 E5 01 E6 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: 01 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: 01 07 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [20:04:25]RasterBufferAndPrint [20:04:25]line Счет N : (1)1618574 [20:04:25]line ИНН: 02508201610067 [20:04:25]line Контрольно-Кассовый Чек [20:04:25]line ПРОДАЖА [20:04:25]line ТРК (МРК, ГНК) : 43 [20:04:25]line Товар: 2710124130 [20:04:25]line Аи-92-К-5 [20:04:25]line 3.780 * 66.30 [20:04:25]line = 250.61 [20:04:25]line НДС 12% НСП 1% [20:04:25]line > о реализуемом товаре [20:04:25]line ОКРУГЛЕНИЕ: -0.61 [20:04:25]line ИТОГО: 250.00 [20:04:25]line Внесено: 250.00 [20:04:25]line СДАЧА: 0.00 [20:04:25]line НСП 1% : 2.22 [20:04:25]line НДС 12% : 26.61 [20:04:25]line Наличными: 250.00 [20:04:25]line Безнал.: 0.00 [20:04:25]line Место: АЗС № 76 "Партнер Нефть" [20:04:25]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:04:25]line СНО: Общий режим [20:04:25]line Чек 69 11.07.2024 20:04 [20:04:25]line Смена: 22 ФФД: 1.0 [20:04:25]line ЗНМ: 0300000124 [20:04:25]line РНМ: 0000000000177495 [20:04:25]line Версия ККМ: 001 [20:04:25]line ФМ: 0000000002098592 [20:04:26]line ФД: 1753 [20:04:26]line ФПД: 232176184519947 [20:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T200425&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1753&fm=232176184519947&tin=02508201610067®Number=0000000000177495&sum=25000 [20:04:26]OFD Sender: Processing packet 1753 [packets to send 1, broken 0] [20:04:26]ProducePacketName [20:04:26]name=ofd_packets/00001753 [20:04:26]OFD Sender: To server: pG, [20:04:26]CommunicateWithHost lk.salyk.kg:30040 [20:04:26]ConnectInit lk.salyk.kg [20:04:26]written 0, free lines is 4095 [20:04:26]Connected sock=10 [20:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0F 01 00 00 3A 91 07 01 37 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 3A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D9 06 00 00 35 04 06 00 D3 29 BB 00 ED 0B 80 1C E6 31 9E 66 99 C1 [20:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 0B 65 47 00 46 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 D9 06 00 00 F4 03 04 00 03 E6 8F 66 B6 04 01 00 00 02 40 B5 E0 8F 04 3C 9C [20:04:26]CommunicateWithHost err = 0 [20:04:26]CheckOFDResponse [20:04:26]1017 (14) - 77093643461234 [20:04:26]1041 (16) - 0000000002098592 [20:04:26]1040 (4) - 1753 [20:04:26]1012 (4) - 11.07.2024 14:02 [20:04:26]1206 (1) - 0 [20:04:26]OFD Sender: Remove packet 1753 [20:04:26]ProducePacketName [20:04:26]name=ofd_packets/00001753 [20:04:26]NVStorageDeleteData [20:04:26]Write to MH i2c: 01 00 00 10 02 12 [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 D7 0C FC [20:04:26]RasterBufferAndPrint [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]written 0, free lines is 3292 [20:04:26]MH_Cut [20:04:26]Write to MH i2c: D1 01 00 17 02 01 EB [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 01 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 01 00 17 02 00 EA [20:04:26]Write to MH i2c: 01 00 00 18 02 1A [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]OFD Sender: No OFD packet to send [20:04:27]*** Cut start [20:04:27]*** Partial cut [20:04:27]*** CUTSNS_PIN = 1 [20:04:27]*** CUTSNS_PIN = 0 [20:04:27]*** Brake cut motor [20:04:27]Read from MH i2c: 01 [20:04:27]MH_I2C_Read... [20:04:27]*** Stop cut motor [20:04:27]*** Cut end [20:04:27]Read from MH i2c: 01 07 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 FF 0F 2F [20:04:27]process_action close_receipt done [20:04:27]requested_data is exist [20:04:27]produce_requested_data [20:04:27]requested_item fm.sn is exist - process it [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 11 00 00 [20:04:27]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 [20:04:27]MH_I2C_Read... [20:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:27]Read from MH i2c: E2 17 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EB [20:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:04:27]wFMCommunicate OK [20:04:27]requested_item fd.num is exist - process it [20:04:27]SAM_PROTO_GetFieldsCounters [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 13 00 00 [20:04:27]Write to MH i2c: E2 08 00 1A 02 80 13 00 00 00 00 00 00 98 [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:28]Read from MH i2c: E2 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 62 00 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 62 00 1A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D9 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [20:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 D9 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:28]wFMCommunicate OK [20:04:28]SAM_PROTO_GetFieldsCounters done [20:04:28]requested_item shift.num is exist - process it [20:04:28]requested_item shift.opened is exist - process it [20:04:28]req_shift_opened [20:04:28]FM_GetShiftState [20:04:28]SAM_PROTO_GetShiftState [20:04:28]wFMCommunicate request_size=4 [20:04:28]MH_SAM_APDU [20:04:28]CAPDU: 80 13 01 00 [20:04:28]Write to MH i2c: E2 08 00 1B 02 80 13 01 00 00 00 00 00 9A [20:04:28]Write i2c OK [20:04:28]MH_I2C_Read... [20:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:28]Read from MH i2c: E2 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 0E 00 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 0E 00 1B 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F8 [20:04:28]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:04:28]wFMCommunicate OK [20:04:28]SAM_PROTO_GetShiftState done [20:04:28]FM_GetShiftState done [20:04:28]req_shift_opened done [20:04:28]requested_item shift.open_date is exist - process it [20:04:28]req_shift_open_date [20:04:28]req_shift_open_date done [20:04:28]produce_requested_data done [20:04:28]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1753,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [20:04:28]process_action_free close_receipt [20:04:28]json_value_free [20:04:28]json_value_free done [20:04:28]process_json_proto returns [20:04:28]Send response to host [20:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1753,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [20:04:28]free response buf [20:04:28]execute_script done [20:04:28]execute_script returns [20:04:28]free content buf [20:04:28]Sock 8.Close socket [20:04:28]Sock 8.Thread stoped [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:09:57]accept exits with 9 [20:09:57]New connection [20:09:57]New thread 3067411812 created [20:09:57]Thread 3067555172 joined [20:09:57]Waiting for new connection... [20:09:57] Sock 9.Parse request [20:09:57]Sock 9.Check first char [20:09:57]Sock 9.First char is OK [20:09:57]request: POST /json_proto HTTP/1.0 [20:09:57]Method: POST [20:09:57]URL: /json_proto [20:09:57]Method is POST - this is cgi request [20:09:57]url: /json_proto [20:09:57]query_string will be loaded in cgi processing [20:09:57]execute_cgi json_proto POST (null) [20:09:57]execute_cgi path=json_proto method=POST [20:09:57]POST find Content-Length [20:09:57]Host: 172.17.35.133:8080 [20:09:57]Content-Length: 1281 [20:09:57]Content-Type: application/json [20:09:57] [20:09:57]POST finish read [20:09:57]Found Content-Length = 1281 [20:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256224", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744595", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u041A\u0440\u0430\u0431 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 202.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:57]execute_script... [20:09:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256224", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744595", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u041A\u0440\u0430\u0431 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 202.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:57]POST & json_proto [20:09:57]process_json_proto [20:09:57]json parsed OK: [20:09:57]protocol is kg_v1.0 [20:09:57]action value=close_receipt [20:09:57]process_action close_receipt [20:09:57]cmd_close_receipt [20:09:57]MH_GetDate [20:09:57]Write to MH i2c: F0 00 00 1C 02 0D [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: F0 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: F0 09 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: F0 09 00 1C 02 00 16 3C 90 66 1B 28 2A 66 31 [20:09:57]GetLastDocTimeStamp 1720728265 [20:09:57]current date 1720728598 [20:09:57]FM_GetShiftState [20:09:57]SAM_PROTO_GetShiftState [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 13 01 00 [20:09:57]Write to MH i2c: E2 08 00 1D 02 80 13 01 00 00 00 00 00 9C [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 0E 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 0E 00 1D 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 FA [20:09:57]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:09:57]wFMCommunicate OK [20:09:57]SAM_PROTO_GetShiftState done [20:09:57]FM_GetShiftState done [20:09:57]opened in 1720656698 [20:09:57]opened+sec_in_day 1720743098 [20:09:57]quantity*price = 8200 [20:09:57]sum+1 = 8201 [20:09:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209744502 Сухарики Флинт Сыр 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209744595 Сухарики Флинт Краб 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 202.00 НСП 1% : 1.79 НДС 12% : 21.45 Наличными: 202.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 70 11.07.2024 20:09 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1754 ФПД: 192087454398541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T200958&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1754&fm=192087454398541&tin=02508201610067®Number=0000000000177495&sum=20200 0 [20:09:58]StoreToDocumentArchive [20:09:58]shift 22 fd 1754 [20:09:58]save to /storage/0022/doc_00001754 [20:09:58]save last doc name /storage/0022/doc_00001754 to /storage/kkm_last_doc_name [20:09:58]save OK [20:09:58]Clear old archive folders... [20:09:58]ProcessDocumentItem done err = 0, tmpTLVsize=535 [20:09:58]tlvbuf is 000E7320 [20:09:58]SAM_PROTO_ClearQueue [20:09:58]wFMCommunicate request_size=4 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 09 00 00 [20:09:58]Write to MH i2c: E2 08 00 2A 02 80 09 00 00 00 00 00 00 9E [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [20:09:58]RAPDU: 90 00 [20:09:58]wFMCommunicate OK [20:09:58]SAM_PROTO_ClearQueue done [20:09:58]KKMCreateOFDPacket [20:09:58]OFDProtocolAddRootSTLVToBuf [20:09:58]FM_MakeSignedData [20:09:58]FM_MakeSignedData [20:09:58]SAM_PROTO_SignData [20:09:58]wFMCommunicate request_size=4 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 0D 01 02 [20:09:58]Write to MH i2c: E2 08 00 2B 02 80 0D 01 02 00 00 00 00 A6 [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [20:09:58]RAPDU: 90 00 [20:09:58]wFMCommunicate OK [20:09:58]wFMCommunicate request_size=255 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 0D 02 02 FA 03 00 17 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 [20:09:58]Write to MH i2c: E2 02 01 2C 02 80 0D 02 02 FA 00 03 00 17 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 E1 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 03 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [20:09:59]RAPDU: 90 00 [20:09:59]wFMCommunicate OK [20:09:59]wFMCommunicate request_size=255 [20:09:59]MH_SAM_APDU [20:09:59]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 08 00 00 00 00 07 04 06 00 E8 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 [20:09:59]Write to MH i2c: E2 02 01 2D 02 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 08 00 00 00 00 07 04 06 00 E8 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 00 00 C6 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 03 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [20:09:59]RAPDU: 90 00 [20:09:59]wFMCommunicate OK [20:09:59]wFMCommunicate request_size=44 [20:09:59]MH_SAM_APDU [20:09:59]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DA 06 00 00 35 04 06 00 AE B3 D8 7C 38 4D [20:09:59]Write to MH i2c: E2 2F 00 2E 02 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DA 06 00 00 35 04 06 00 AE B3 D8 7C 38 4D 00 00 E6 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 03 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [20:09:59]RAPDU: 90 00 [20:09:59]wFMCommunicate OK [20:09:59]wFMCommunicate request_size=4 [20:09:59]MH_SAM_APDU [20:09:59]CAPDU: 80 0D 03 02 [20:09:59]Write to MH i2c: E2 08 00 2F 02 80 0D 03 02 00 00 00 00 AC [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 0B 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 0B 00 2F 02 00 27 BD 27 BA FE 00 69 AB 90 00 84 [20:09:59]RAPDU: 27 BD 27 BA FE 00 69 AB 90 00 [20:09:59]wFMCommunicate OK [20:09:59]SAM_PROTO_SignData done [20:09:59]FM_MakeSignedData done [20:09:59]CreateOFDProtocolMessage [20:09:59]wFMCommunicate request_size=4 [20:09:59]MH_SAM_APDU [20:09:59]CAPDU: 80 11 00 00 [20:09:59]Write to MH i2c: E2 08 00 30 02 80 11 00 00 00 00 00 00 AC [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 17 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 17 00 30 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 02 [20:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:09:59]wFMCommunicate OK [20:09:59]CreateOFDProtocolMessage done [20:09:59]OFDSenderStorePacket 1754 [20:09:59]StoreOFDPacket docnum=1754 [20:09:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2B 02 00 00 71 FD 23 02 E5 67 5A 03 01 00 03 00 17 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 08 00 00 00 00 07 04 06 00 E8 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DA 06 00 00 35 04 06 00 AE B3 D8 7C 38 4D 27 BD 27 BA FE 00 69 AB [20:09:59]CheckFolder [20:09:59]dirname=/storage/ofd_packets [20:09:59]CheckFolder done [20:09:59]ProducePacketName [20:09:59]name=ofd_packets/00001754 [20:09:59]NVStorageSaveData ofd_packets/00001754 [20:09:59]File name is /storage/ofd_packets/00001754 [20:09:59]Write 585 bytes [20:09:59]NVStorageSaveData done [20:09:59]OFDSenderStorePacket done [20:09:59]KKMCreateOFDPacket done [20:09:59]NVStorageSaveData kkm_last_timestamp [20:09:59]File name is /storage/kkm_last_timestamp [20:09:59]Write 4 bytes [20:09:59]NVStorageSaveData done [20:09:59]ExternCall_PrintAddStr [20:09:59]wPrintStart [20:09:59]Write to MH i2c: 01 00 00 31 02 33 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: 01 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: 01 07 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [20:09:59]RasterBufferAndPrint [20:09:59]line Счет N : (3)256224 [20:09:59]line ИНН: 02508201610067 [20:09:59]line Контрольно-Кассовый Чек [20:09:59]line ПРОДАЖА [20:09:59]line Товар: 4700000482757 [20:09:59]line Напиток Nitro Fr газ манг,клуб ж/б 0,45л [20:09:59]line 1.000 * 82.00 [20:09:59]line = 82.00 [20:09:59]line НДС 12% НСП 1% [20:09:59]line > о реализуемом товаре [20:09:59]line Товар: 4870209744502 [20:09:59]line Сухарики Флинт Сыр 100 гр [20:09:59]line 1.000 * 60.00 [20:09:59]line = 60.00 [20:09:59]line НДС 12% НСП 1% [20:09:59]line > о реализуемом товаре [20:09:59]line Товар: 4870209744595 [20:09:59]line Сухарики Флинт Краб 100 гр [20:09:59]line 1.000 * 60.00 [20:09:59]line = 60.00 [20:09:59]line НДС 12% НСП 1% [20:09:59]line > о реализуемом товаре [20:09:59]line ИТОГО: 202.00 [20:09:59]line НСП 1% : 1.79 [20:09:59]line НДС 12% : 21.45 [20:09:59]line Наличными: 202.00 [20:09:59]line Безнал.: 0.00 [20:09:59]line Место: АЗС № 76 "Партнер Нефть" [20:09:59]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:09:59]line СНО: Общий режим [20:09:59]line Чек 70 11.07.2024 20:09 [20:09:59]line Смена: 22 ФФД: 1.0 [20:09:59]line ЗНМ: 0300000124 [20:09:59]line РНМ: 0000000000177495 [20:09:59]line Версия ККМ: 001 [20:09:59]line ФМ: 0000000002098592 [20:09:59]line ФД: 1754 [20:09:59]line ФПД: 192087454398541 [20:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T200958&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1754&fm=192087454398541&tin=02508201610067®Number=0000000000177495&sum=20200 [20:10:00]line 0 [20:10:00]OFD Sender: Processing packet 1754 [packets to send 1, broken 0] [20:10:00]ProducePacketName [20:10:00]name=ofd_packets/00001754 [20:10:00]OFD Sender: To server: pG, [20:10:00]CommunicateWithHost lk.salyk.kg:30040 [20:10:00]ConnectInit lk.salyk.kg [20:10:00]written 0, free lines is 4095 [20:10:00]Connected sock=10 [20:10:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2B 02 00 00 71 FD 23 02 E5 67 5A 03 01 00 03 00 17 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 08 00 00 00 00 07 04 06 00 E8 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DA 06 00 00 35 04 06 00 AE B3 D8 7C 38 4D 27 BD 27 BA FE 00 69 AB [20:10:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 C3 85 47 00 BE F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DA 06 00 00 F4 03 04 00 51 E7 8F 66 B6 04 01 00 00 44 B1 E4 AF 6B 3A 51 39 [20:10:00]CommunicateWithHost err = 0 [20:10:00]CheckOFDResponse [20:10:00]1017 (14) - 77093643461234 [20:10:00]1041 (16) - 0000000002098592 [20:10:00]1040 (4) - 1754 [20:10:00]1012 (4) - 11.07.2024 14:08 [20:10:00]1206 (1) - 0 [20:10:00]OFD Sender: Remove packet 1754 [20:10:00]ProducePacketName [20:10:00]name=ofd_packets/00001754 [20:10:00]NVStorageDeleteData [20:10:00]Write to MH i2c: 01 00 00 66 02 68 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 4B 0C C6 [20:10:00]RasterBufferAndPrint [20:10:00]line [20:10:00]line [20:10:00]line [20:10:00]line [20:10:00]line [20:10:00]written 0, free lines is 3156 [20:10:00]MH_Cut [20:10:00]Write to MH i2c: D1 01 00 6D 02 01 41 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: D1 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: D1 01 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: D1 01 00 6D 02 00 40 [20:10:00]Write to MH i2c: 01 00 00 6E 02 70 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]OFD Sender: No OFD packet to send [20:10:01]*** Cut start [20:10:01]*** Partial cut [20:10:01]*** CUTSNS_PIN = 1 [20:10:01]*** CUTSNS_PIN = 0 [20:10:01]*** Brake cut motor [20:10:02]Read from MH i2c: 01 [20:10:02]MH_I2C_Read... [20:10:02]*** Stop cut motor [20:10:02]*** Cut end [20:10:02]Read from MH i2c: 01 07 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [20:10:02]process_action close_receipt done [20:10:02]requested_data is exist [20:10:02]produce_requested_data [20:10:02]requested_item fm.sn is exist - process it [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 11 00 00 [20:10:02]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 17 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 41 [20:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:10:02]wFMCommunicate OK [20:10:02]requested_item fd.num is exist - process it [20:10:02]SAM_PROTO_GetFieldsCounters [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 13 00 00 [20:10:02]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 62 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [20:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DA 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:02]wFMCommunicate OK [20:10:02]SAM_PROTO_GetFieldsCounters done [20:10:02]requested_item shift.num is exist - process it [20:10:02]requested_item shift.opened is exist - process it [20:10:02]req_shift_opened [20:10:02]FM_GetShiftState [20:10:02]SAM_PROTO_GetShiftState [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 13 01 00 [20:10:02]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 0E 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 4E [20:10:02]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:10:02]wFMCommunicate OK [20:10:02]SAM_PROTO_GetShiftState done [20:10:02]FM_GetShiftState done [20:10:02]req_shift_opened done [20:10:02]requested_item shift.open_date is exist - process it [20:10:02]req_shift_open_date [20:10:02]req_shift_open_date done [20:10:02]produce_requested_data done [20:10:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1754,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [20:10:02]process_action_free close_receipt [20:10:02]json_value_free [20:10:02]json_value_free done [20:10:02]process_json_proto returns [20:10:02]Send response to host [20:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1754,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [20:10:02]free response buf [20:10:02]execute_script done [20:10:02]execute_script returns [20:10:02]free content buf [20:10:02]Sock 9.Close socket [20:10:02]Sock 9.Thread stoped [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:51]accept exits with 8 [20:11:51]New connection [20:11:51]New thread 3067555172 created [20:11:51]Thread 3067411812 joined [20:11:51]Waiting for new connection... [20:11:51] Sock 8.Parse request [20:11:51]Sock 8.Check first char [20:11:51]Sock 8.First char is OK [20:11:51]request: POST /json_proto HTTP/1.0 [20:11:51]Method: POST [20:11:51]URL: /json_proto [20:11:51]Method is POST - this is cgi request [20:11:51]url: /json_proto [20:11:51]query_string will be loaded in cgi processing [20:11:51]execute_cgi json_proto POST (null) [20:11:51]execute_cgi path=json_proto method=POST [20:11:51]POST find Content-Length [20:11:51]Host: 172.17.35.133:8080 [20:11:51]Content-Length: 951 [20:11:51]Content-Type: application/json [20:11:51] [20:11:51]POST finish read [20:11:51]Found Content-Length = 951 [20:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256225", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 262.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:51]execute_script... [20:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256225", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 262.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:51]POST & json_proto [20:11:51]process_json_proto [20:11:51]json parsed OK: [20:11:51]protocol is kg_v1.0 [20:11:51]action value=close_receipt [20:11:51]process_action close_receipt [20:11:51]cmd_close_receipt [20:11:51]MH_GetDate [20:11:51]Write to MH i2c: F0 00 00 72 02 63 [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: F0 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: F0 09 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: F0 09 00 72 02 00 88 3C 90 66 1B 28 2A 66 F9 [20:11:51]GetLastDocTimeStamp 1720728598 [20:11:51]current date 1720728712 [20:11:51]FM_GetShiftState [20:11:51]SAM_PROTO_GetShiftState [20:11:51]wFMCommunicate request_size=4 [20:11:51]MH_SAM_APDU [20:11:51]CAPDU: 80 13 01 00 [20:11:51]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:51]Read from MH i2c: E2 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 0E 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 50 [20:11:51]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:11:51]wFMCommunicate OK [20:11:51]SAM_PROTO_GetShiftState done [20:11:51]FM_GetShiftState done [20:11:51]opened in 1720656698 [20:11:51]opened+sec_in_day 1720743098 [20:11:51]quantity*price = 10700 [20:11:51]sum+1 = 10701 [20:11:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 262.00 НСП 1% : 2.32 НДС 12% : 27.82 Наличными: 262.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 71 11.07.2024 20:11 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1755 ФПД: 256768636561306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T201152&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1755&fm=256768636561306&tin=02508201610067®Number=0000000000177495&sum=26200 0 [20:11:52]StoreToDocumentArchive [20:11:52]shift 22 fd 1755 [20:11:52]save to /storage/0022/doc_00001755 [20:11:52]save last doc name /storage/0022/doc_00001755 to /storage/kkm_last_doc_name [20:11:52]save OK [20:11:52]Clear old archive folders... [20:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=397 [20:11:52]tlvbuf is 000F0910 [20:11:52]SAM_PROTO_ClearQueue [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 09 00 00 [20:11:52]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]SAM_PROTO_ClearQueue done [20:11:52]KKMCreateOFDPacket [20:11:52]OFDProtocolAddRootSTLVToBuf [20:11:52]FM_MakeSignedData [20:11:52]FM_MakeSignedData [20:11:52]SAM_PROTO_SignData [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 01 02 [20:11:52]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]wFMCommunicate request_size=255 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 [20:11:52]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 00 00 12 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]wFMCommunicate request_size=156 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0A 00 00 00 00 07 04 06 00 58 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DB 06 00 00 35 04 06 00 E9 87 9B 5F 27 9A [20:11:52]Write to MH i2c: E2 9F 00 83 02 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0A 00 00 00 00 07 04 06 00 58 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DB 06 00 00 35 04 06 00 E9 87 9B 5F 27 9A 00 00 12 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 03 02 [20:11:52]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:53]Read from MH i2c: E2 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 0B 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 0B 00 84 02 00 80 F2 FB 3F 1E 5A 89 6E 90 00 1D [20:11:53]RAPDU: 80 F2 FB 3F 1E 5A 89 6E 90 00 [20:11:53]wFMCommunicate OK [20:11:53]SAM_PROTO_SignData done [20:11:53]FM_MakeSignedData done [20:11:53]CreateOFDProtocolMessage [20:11:53]wFMCommunicate request_size=4 [20:11:53]MH_SAM_APDU [20:11:53]CAPDU: 80 11 00 00 [20:11:53]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:53]Read from MH i2c: E2 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 17 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 57 [20:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:11:53]wFMCommunicate OK [20:11:53]CreateOFDProtocolMessage done [20:11:53]OFDSenderStorePacket 1755 [20:11:53]StoreOFDPacket docnum=1755 [20:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A1 01 00 00 D7 27 99 01 B2 2B 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0A 00 00 00 00 07 04 06 00 58 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DB 06 00 00 35 04 06 00 E9 87 9B 5F 27 9A 80 F2 FB 3F 1E 5A 89 6E [20:11:53]CheckFolder [20:11:53]dirname=/storage/ofd_packets [20:11:53]CheckFolder done [20:11:53]ProducePacketName [20:11:53]name=ofd_packets/00001755 [20:11:53]NVStorageSaveData ofd_packets/00001755 [20:11:53]File name is /storage/ofd_packets/00001755 [20:11:53]Write 447 bytes [20:11:53]NVStorageSaveData done [20:11:53]OFDSenderStorePacket done [20:11:53]KKMCreateOFDPacket done [20:11:53]NVStorageSaveData kkm_last_timestamp [20:11:53]File name is /storage/kkm_last_timestamp [20:11:53]Write 4 bytes [20:11:53]NVStorageSaveData done [20:11:53]ExternCall_PrintAddStr [20:11:53]wPrintStart [20:11:53]Write to MH i2c: 01 00 00 86 02 88 [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]OFD Sender: Processing packet 1755 [packets to send 1, broken 0] [20:11:53]Read from MH i2c: ProducePacketName [20:11:53]01 name=ofd_packets/00001755 [20:11:53] [20:11:53]MH_I2C_Read... [20:11:53]OFD Sender: To server: pG, [20:11:53]CommunicateWithHost lk.salyk.kg:30040 [20:11:53]Read from MH i2c: ConnectInit lk.salyk.kg [20:11:53]01 07 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [20:11:53]RasterBufferAndPrint [20:11:53]line Счет N : (3)256225 [20:11:53]line ИНН: 02508201610067 [20:11:53]line Контрольно-Кассовый Чек [20:11:53]line ПРОДАЖА [20:11:53]line Товар: 5449000189332 [20:11:53]line Холодный чай Fuse персик 1л [20:11:53]line 1.000 * 107.00 [20:11:53]line = 107.00 [20:11:53]line НДС 12% НСП 1% [20:11:53]line > о реализуемом товаре [20:11:53]line Товар: 5449000000439 [20:11:53]line Напиток Кока-Кола 1,5л [20:11:53]line 1.000 * 155.00 [20:11:53]line = 155.00 [20:11:53]line НДС 12% НСП 1% [20:11:53]line > о реализуемом товаре [20:11:53]line ИТОГО: 262.00 [20:11:53]line НСП 1% : 2.32 [20:11:53]line НДС 12% : 27.82 [20:11:53]line Наличными: 262.00 [20:11:53]line Безнал.: 0.00 [20:11:53]line Место: АЗС № 76 "Партнер Нефть" [20:11:53]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:11:53]line СНО: Общий режим [20:11:53]line Чек 71 11.07.2024 20:11 [20:11:53]line Смена: 22 ФФД: 1.0 [20:11:53]line ЗНМ: 0300000124 [20:11:53]line РНМ: 0000000000177495 [20:11:53]line Версия ККМ: 001 [20:11:53]line ФМ: 0000000002098592 [20:11:53]line ФД: 1755 [20:11:53]line ФПД: 256768636561306 [20:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T201152&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1755&fm=256768636561306&tin=02508201610067®Number=0000000000177495&sum=26200 [20:11:53]line 0 [20:11:53]written 0, free lines is 4095 [20:11:53]Connected sock=11 [20:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A1 01 00 00 D7 27 99 01 B2 2B 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0A 00 00 00 00 07 04 06 00 58 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 3C 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DB 06 00 00 35 04 06 00 E9 87 9B 5F 27 9A 80 F2 FB 3F 1E 5A 89 6E [20:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 80 2E 47 00 80 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DB 06 00 00 F4 03 04 00 C2 E7 8F 66 B6 04 01 00 00 7D 89 AE A8 C5 54 4F 17 [20:11:53]CommunicateWithHost err = 0 [20:11:53]CheckOFDResponse [20:11:53]1017 (14) - 77093643461234 [20:11:53]1041 (16) - 0000000002098592 [20:11:53]1040 (4) - 1755 [20:11:53]1012 (4) - 11.07.2024 14:10 [20:11:53]1206 (1) - 0 [20:11:53]OFD Sender: Remove packet 1755 [20:11:53]ProducePacketName [20:11:53]name=ofd_packets/00001755 [20:11:53]NVStorageDeleteData [20:11:53]Write to MH i2c: 01 00 00 B4 02 B6 [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 C1 0C 8A [20:11:53]RasterBufferAndPrint [20:11:53]line [20:11:53]line [20:11:53]line [20:11:53]line [20:11:53]line [20:11:53]written 0, free lines is 3271 [20:11:53]MH_Cut [20:11:53]Write to MH i2c: D1 01 00 BB 02 01 8F [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: D1 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: D1 01 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: D1 01 00 BB 02 00 8E [20:11:53]Write to MH i2c: 01 00 00 BC 02 BE [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:54]OFD Sender: No OFD packet to send [20:11:54]*** Cut start [20:11:54]*** Partial cut [20:11:54]*** CUTSNS_PIN = 1 [20:11:54]*** CUTSNS_PIN = 0 [20:11:54]*** Brake cut motor [20:11:55]Read from MH i2c: 01 [20:11:55]MH_I2C_Read... [20:11:55]*** Stop cut motor [20:11:55]*** Cut end [20:11:55]Read from MH i2c: 01 07 00 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [20:11:55]process_action close_receipt done [20:11:55]requested_data is exist [20:11:55]produce_requested_data [20:11:55]requested_item fm.sn is exist - process it [20:11:55]wFMCommunicate request_size=4 [20:11:55]MH_SAM_APDU [20:11:55]CAPDU: 80 11 00 00 [20:11:55]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [20:11:55]Write i2c OK [20:11:55]MH_I2C_Read... [20:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:55]Read from MH i2c: E2 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: E2 17 00 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 8F [20:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:11:55]wFMCommunicate OK [20:11:55]requested_item fd.num is exist - process it [20:11:55]SAM_PROTO_GetFieldsCounters [20:11:55]wFMCommunicate request_size=4 [20:11:55]MH_SAM_APDU [20:11:55]CAPDU: 80 13 00 00 [20:11:55]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [20:11:55]Write i2c OK [20:11:55]MH_I2C_Read... [20:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:55]Read from MH i2c: E2 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: E2 62 00 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DB 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [20:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DB 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:55]wFMCommunicate OK [20:11:55]SAM_PROTO_GetFieldsCounters done [20:11:55]requested_item shift.num is exist - process it [20:11:55]requested_item shift.opened is exist - process it [20:11:55]req_shift_opened [20:11:55]FM_GetShiftState [20:11:55]SAM_PROTO_GetShiftState [20:11:55]wFMCommunicate request_size=4 [20:11:55]MH_SAM_APDU [20:11:55]CAPDU: 80 13 01 00 [20:11:55]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [20:11:55]Write i2c OK [20:11:55]MH_I2C_Read... [20:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:55]Read from MH i2c: E2 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: E2 0E 00 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 9C [20:11:55]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:11:55]wFMCommunicate OK [20:11:55]SAM_PROTO_GetShiftState done [20:11:55]FM_GetShiftState done [20:11:55]req_shift_opened done [20:11:55]requested_item shift.open_date is exist - process it [20:11:55]req_shift_open_date [20:11:55]req_shift_open_date done [20:11:55]produce_requested_data done [20:11:55]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1755,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [20:11:55]process_action_free close_receipt [20:11:55]json_value_free [20:11:55]json_value_free done [20:11:55]process_json_proto returns [20:11:55]Send response to host [20:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1755,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [20:11:55]free response buf [20:11:55]execute_script done [20:11:55]execute_script returns [20:11:55]free content buf [20:11:55]Sock 8.Close socket [20:11:55]Sock 8.Thread stoped [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:31:58]accept exits with 9 [20:31:58]New connection [20:31:58]New thread 3067411812 created [20:31:58]Thread 3067555172 joined [20:31:58]Waiting for new connection... [20:31:58] Sock 9.Parse request [20:31:58]Sock 9.Check first char [20:31:58]Sock 9.First char is OK [20:31:58]request: POST /json_proto HTTP/1.0 [20:31:58]Method: POST [20:31:58]URL: /json_proto [20:31:58]Method is POST - this is cgi request [20:31:58]url: /json_proto [20:31:58]query_string will be loaded in cgi processing [20:31:58]execute_cgi json_proto POST (null) [20:31:58]execute_cgi path=json_proto method=POST [20:31:58]POST find Content-Length [20:31:58]Host: 172.17.35.133:8080 [20:31:58]Content-Length: 1413 [20:31:58]Content-Type: application/json [20:31:58] [20:31:58]POST finish read [20:31:58]Found Content-Length = 1413 [20:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256226", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 6.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 516.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:58]execute_script... [20:31:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256226", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 6.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 516.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:58]POST & json_proto [20:31:58]process_json_proto [20:31:58]json parsed OK: [20:31:58]protocol is kg_v1.0 [20:31:58]action value=close_receipt [20:31:58]process_action close_receipt [20:31:58]cmd_close_receipt [20:31:58]MH_GetDate [20:31:58]Write to MH i2c: F0 00 00 C0 02 B1 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: F0 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: F0 09 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: F0 09 00 C0 02 00 3F 41 90 66 1B 28 2A 66 03 [20:31:58]GetLastDocTimeStamp 1720728712 [20:31:58]current date 1720729919 [20:31:58]FM_GetShiftState [20:31:58]SAM_PROTO_GetShiftState [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 13 01 00 [20:31:58]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:59]Read from MH i2c: E2 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 0E 00 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 9E [20:31:59]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:31:59]wFMCommunicate OK [20:31:59]SAM_PROTO_GetShiftState done [20:31:59]FM_GetShiftState done [20:31:59]opened in 1720656698 [20:31:59]opened+sec_in_day 1720743098 [20:31:59]quantity*price = 17000 [20:31:59]sum+1 = 17001 [20:31:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 6.000 * 40.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 516.00 НСП 1% : 4.56 НДС 12% : 54.80 Наличными: 516.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 72 11.07.2024 20:32 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1756 ФПД: 251280250633555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T203200&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1756&fm=251280250633555&tin=02508201610067®Number=0000000000177495&sum=51600 0 [20:32:00]StoreToDocumentArchive [20:32:00]shift 22 fd 1756 [20:32:00]save to /storage/0022/doc_00001756 [20:32:00]save last doc name /storage/0022/doc_00001756 to /storage/kkm_last_doc_name [20:32:00]save OK [20:32:00]Clear old archive folders... [20:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=605 [20:32:00]tlvbuf is 000F1500 [20:32:00]SAM_PROTO_ClearQueue [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 09 00 00 [20:32:00]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]SAM_PROTO_ClearQueue done [20:32:00]KKMCreateOFDPacket [20:32:00]OFDProtocolAddRootSTLVToBuf [20:32:00]FM_MakeSignedData [20:32:00]FM_MakeSignedData [20:32:00]SAM_PROTO_SignData [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 01 02 [20:32:00]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=255 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 02 02 FA 03 00 5D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 [20:32:00]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 5D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 00 00 5F [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=255 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 02 02 FA 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 15 00 00 00 00 07 04 06 00 [20:32:00]Write to MH i2c: E2 02 01 D1 02 80 0D 02 02 FA 00 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 15 00 00 00 00 07 04 06 00 00 00 02 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=114 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 02 02 6D 90 C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 40 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DC 06 00 00 35 04 06 00 E4 89 BE 13 FD 53 [20:32:00]Write to MH i2c: E2 75 00 D2 02 80 0D 02 02 6D 00 90 C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 40 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DC 06 00 00 35 04 06 00 E4 89 BE 13 FD 53 00 00 FA [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 03 02 [20:32:00]Write to MH i2c: E2 08 00 D3 02 80 0D 03 02 00 00 00 00 50 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:01]Read from MH i2c: E2 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 0B 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 0B 00 D3 02 00 2B 7C BC 7B DE F0 30 CE 90 00 FB [20:32:01]RAPDU: 2B 7C BC 7B DE F0 30 CE 90 00 [20:32:01]wFMCommunicate OK [20:32:01]SAM_PROTO_SignData done [20:32:01]FM_MakeSignedData done [20:32:01]CreateOFDProtocolMessage [20:32:01]wFMCommunicate request_size=4 [20:32:01]MH_SAM_APDU [20:32:01]CAPDU: 80 11 00 00 [20:32:01]Write to MH i2c: E2 08 00 D4 02 80 11 00 00 00 00 00 00 50 [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:01]Read from MH i2c: E2 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 17 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 17 00 D4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A6 [20:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:32:01]wFMCommunicate OK [20:32:01]CreateOFDProtocolMessage done [20:32:01]OFDSenderStorePacket 1756 [20:32:01]StoreOFDPacket docnum=1756 [20:32:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 71 02 00 00 D3 B4 69 02 A0 58 5A 03 01 00 03 00 5D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 15 00 00 00 00 07 04 06 00 90 C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 40 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DC 06 00 00 35 04 06 00 E4 89 BE 13 FD 53 2B 7C BC 7B DE F0 30 CE [20:32:01]CheckFolder [20:32:01]dirname=/storage/ofd_packets [20:32:01]CheckFolder done [20:32:01]ProducePacketName [20:32:01]name=ofd_packets/00001756 [20:32:01]NVStorageSaveData ofd_packets/00001756 [20:32:01]File name is /storage/ofd_packets/00001756 [20:32:01]Write 655 bytes [20:32:01]NVStorageSaveData done [20:32:01]OFDSenderStorePacket done [20:32:01]KKMCreateOFDPacket done [20:32:01]NVStorageSaveData kkm_last_timestamp [20:32:01]File name is /storage/kkm_last_timestamp [20:32:01]Write 4 bytes [20:32:01]NVStorageSaveData done [20:32:01]ExternCall_PrintAddStr [20:32:01]wPrintStart [20:32:01]Write to MH i2c: 01 00 00 D5 02 D7 [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 07 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 07 00 D5 02 00 00 00 00 00 FF 0F EC [20:32:01]RasterBufferAndPrint [20:32:01]line Счет N : (3)256226 [20:32:01]line ИНН: 02508201610067 [20:32:01]line Контрольно-Кассовый Чек [20:32:01]line ПРОДАЖА [20:32:01]line Товар: 4600682557456 [20:32:01]line Напиток FLash up energy эн ж/б 0,5/0,45л [20:32:01]line 2.000 * 85.00 [20:32:01]line = 170.00 [20:32:01]line НДС 12% НСП 1% [20:32:01]line > о реализуемом товаре [20:32:01]line Товар: 4700000160211 [20:32:01]line Вода Легенда 0,5л [20:32:01]line 6.000 * 40.00 [20:32:01]line = 240.00 [20:32:01]line НДС 12% НСП 1% [20:32:01]line > о реализуемом товаре [20:32:01]line Товар: 4607065001445 [20:32:01]line Шок батончик Snickers 50,5г [20:32:01]line 1.000 * 56.00 [20:32:01]line = 56.00 [20:32:01]line НДС 12% НСП 1% [20:32:01]line > о реализуемом товаре [20:32:01]line Товар: 4700000160358 [20:32:01]line Вода Легенда 1л [20:32:01]line 1.000 * 50.00 [20:32:01]line = 50.00 [20:32:01]line НДС 12% НСП 1% [20:32:01]line > о реализуемом товаре [20:32:01]line ИТОГО: 516.00 [20:32:01]line НСП 1% : 4.56 [20:32:01]line НДС 12% : 54.80 [20:32:01]line Наличными: 516.00 [20:32:01]line Безнал.: 0.00 [20:32:01]line Место: АЗС № 76 "Партнер Нефть" [20:32:01]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:32:01]line СНО: Общий режим [20:32:01]line Чек 72 11.07.2024 20:32 [20:32:01]line Смена: 22 ФФД: 1.0 [20:32:01]line ЗНМ: 0300000124 [20:32:01]line РНМ: 0000000000177495 [20:32:01]line Версия ККМ: 001 [20:32:01]line ФМ: 0000000002098592 [20:32:01]line ФД: 1756 [20:32:01]line ФПД: 251280250633555 [20:32:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T203200&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1756&fm=251280250633555&tin=02508201610067®Number=0000000000177495&sum=51600 [20:32:01]line 0 [20:32:01]OFD Sender: Processing packet 1756 [packets to send 1, broken 0] [20:32:01]ProducePacketName [20:32:01]name=ofd_packets/00001756 [20:32:01]OFD Sender: To server: pG, [20:32:01]CommunicateWithHost lk.salyk.kg:30040 [20:32:01]ConnectInit lk.salyk.kg [20:32:01]written 0, free lines is 4095 [20:32:01]Connected sock=10 [20:32:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 71 02 00 00 D3 B4 69 02 A0 58 5A 03 01 00 03 00 5D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 15 00 00 00 00 07 04 06 00 90 C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 40 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DC 06 00 00 35 04 06 00 E4 89 BE 13 FD 53 2B 7C BC 7B DE F0 30 CE [20:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 1C B2 47 00 D0 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DC 06 00 00 F4 03 04 00 7A EC 8F 66 B6 04 01 00 00 72 AD 4C 8E 9A 5A 39 E6 [20:32:01]CommunicateWithHost err = 0 [20:32:01]CheckOFDResponse [20:32:01]1017 (14) - 77093643461234 [20:32:01]1041 (16) - 0000000002098592 [20:32:01]1040 (4) - 1756 [20:32:01]1012 (4) - 11.07.2024 14:30 [20:32:01]1206 (1) - 0 [20:32:01]OFD Sender: Remove packet 1756 [20:32:01]ProducePacketName [20:32:01]name=ofd_packets/00001756 [20:32:01]NVStorageDeleteData [20:32:02]Write to MH i2c: 01 00 00 10 03 13 [20:32:02]Write i2c OK [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: 01 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: 01 07 00 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 0E 0C 34 [20:32:02]RasterBufferAndPrint [20:32:02]line [20:32:02]line [20:32:02]line [20:32:02]line [20:32:02]line [20:32:02]written 0, free lines is 3093 [20:32:02]MH_Cut [20:32:02]Write to MH i2c: D1 01 00 17 03 01 EC [20:32:02]Write i2c OK [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: D1 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: D1 01 00 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: D1 01 00 17 03 00 EB [20:32:02]Write to MH i2c: 01 00 00 18 03 1B [20:32:02]Write i2c OK [20:32:02]MH_I2C_Read... [20:32:02]OFD Sender: No OFD packet to send [20:32:02]*** Cut start [20:32:02]*** Partial cut [20:32:02]*** CUTSNS_PIN = 1 [20:32:02]*** CUTSNS_PIN = 0 [20:32:03]*** Brake cut motor [20:32:03]Read from MH i2c: 01 [20:32:03]MH_I2C_Read... [20:32:03]*** Stop cut motor [20:32:03]*** Cut end [20:32:03]Read from MH i2c: 01 07 00 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [20:32:03]process_action close_receipt done [20:32:03]requested_data is exist [20:32:03]produce_requested_data [20:32:03]requested_item fm.sn is exist - process it [20:32:03]wFMCommunicate request_size=4 [20:32:03]MH_SAM_APDU [20:32:03]CAPDU: 80 11 00 00 [20:32:03]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [20:32:03]Write i2c OK [20:32:03]MH_I2C_Read... [20:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:03]Read from MH i2c: E2 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: E2 17 00 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EC [20:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:32:03]wFMCommunicate OK [20:32:03]requested_item fd.num is exist - process it [20:32:03]SAM_PROTO_GetFieldsCounters [20:32:03]wFMCommunicate request_size=4 [20:32:03]MH_SAM_APDU [20:32:03]CAPDU: 80 13 00 00 [20:32:03]Write to MH i2c: E2 08 00 1A 03 80 13 00 00 00 00 00 00 99 [20:32:03]Write i2c OK [20:32:03]MH_I2C_Read... [20:32:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:03]Read from MH i2c: E2 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: E2 62 00 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: E2 62 00 1A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DC 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [20:32:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DC 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:03]wFMCommunicate OK [20:32:03]SAM_PROTO_GetFieldsCounters done [20:32:03]requested_item shift.num is exist - process it [20:32:03]requested_item shift.opened is exist - process it [20:32:03]req_shift_opened [20:32:03]FM_GetShiftState [20:32:03]SAM_PROTO_GetShiftState [20:32:03]wFMCommunicate request_size=4 [20:32:03]MH_SAM_APDU [20:32:03]CAPDU: 80 13 01 00 [20:32:03]Write to MH i2c: E2 08 00 1B 03 80 13 01 00 00 00 00 00 9B [20:32:03]Write i2c OK [20:32:03]MH_I2C_Read... [20:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:03]Read from MH i2c: E2 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: E2 0E 00 [20:32:03]MH_I2C_Read... [20:32:03]Read from MH i2c: E2 0E 00 1B 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 F9 [20:32:03]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:32:03]wFMCommunicate OK [20:32:03]SAM_PROTO_GetShiftState done [20:32:03]FM_GetShiftState done [20:32:03]req_shift_opened done [20:32:03]requested_item shift.open_date is exist - process it [20:32:03]req_shift_open_date [20:32:03]req_shift_open_date done [20:32:03]produce_requested_data done [20:32:03]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1756,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [20:32:03]process_action_free close_receipt [20:32:03]json_value_free [20:32:03]json_value_free done [20:32:03]process_json_proto returns [20:32:03]Send response to host [20:32:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1756,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [20:32:03]free response buf [20:32:03]execute_script done [20:32:03]execute_script returns [20:32:03]free content buf [20:32:03]Sock 9.Close socket [20:32:03]Sock 9.Thread stoped [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:20]accept exits with 8 [20:32:20]New connection [20:32:20]New thread 3067555172 created [20:32:20]Thread 3067411812 joined [20:32:20]Waiting for new connection... [20:32:20] Sock 8.Parse request [20:32:20]Sock 8.Check first char [20:32:20]Sock 8.First char is OK [20:32:20]request: POST /json_proto HTTP/1.0 [20:32:20]Method: POST [20:32:20]URL: /json_proto [20:32:20]Method is POST - this is cgi request [20:32:20]url: /json_proto [20:32:20]query_string will be loaded in cgi processing [20:32:20]execute_cgi json_proto POST (null) [20:32:20]execute_cgi path=json_proto method=POST [20:32:20]POST find Content-Length [20:32:20]Host: 172.17.35.133:8080 [20:32:20]Content-Length: 656 [20:32:20]Content-Type: application/json [20:32:20] [20:32:20]POST finish read [20:32:20]Found Content-Length = 656 [20:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256227", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:20]execute_script... [20:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256227", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:20]POST & json_proto [20:32:20]process_json_proto [20:32:20]json parsed OK: [20:32:20]protocol is kg_v1.0 [20:32:20]action value=close_receipt [20:32:20]process_action close_receipt [20:32:20]cmd_close_receipt [20:32:20]MH_GetDate [20:32:20]Write to MH i2c: F0 00 00 1C 03 0E [20:32:20]Write i2c OK [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: F0 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: F0 09 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: F0 09 00 1C 03 00 55 41 90 66 1B 28 2A 66 76 [20:32:20]GetLastDocTimeStamp 1720729920 [20:32:20]current date 1720729941 [20:32:20]FM_GetShiftState [20:32:20]SAM_PROTO_GetShiftState [20:32:20]wFMCommunicate request_size=4 [20:32:20]MH_SAM_APDU [20:32:20]CAPDU: 80 13 01 00 [20:32:20]Write to MH i2c: E2 08 00 1D 03 80 13 01 00 00 00 00 00 9D [20:32:20]Write i2c OK [20:32:20]MH_I2C_Read... [20:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:20]Read from MH i2c: E2 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 0E 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 0E 00 1D 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 FB [20:32:20]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:32:20]wFMCommunicate OK [20:32:20]SAM_PROTO_GetShiftState done [20:32:20]FM_GetShiftState done [20:32:20]opened in 1720656698 [20:32:20]opened+sec_in_day 1720743098 [20:32:20]quantity*price = 400 [20:32:20]sum+1 = 401 [20:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 73 11.07.2024 20:32 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1757 ФПД: 129836222548647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T203221&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1757&fm=129836222548647&tin=02508201610067®Number=0000000000177495&sum=400 0 [20:32:21]StoreToDocumentArchive [20:32:21]shift 22 fd 1757 [20:32:21]save to /storage/0022/doc_00001757 [20:32:21]save last doc name /storage/0022/doc_00001757 to /storage/kkm_last_doc_name [20:32:21]save OK [20:32:21]Clear old archive folders... [20:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:32:21]tlvbuf is 000F02D0 [20:32:21]SAM_PROTO_ClearQueue [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 09 00 00 [20:32:21]Write to MH i2c: E2 08 00 2A 03 80 09 00 00 00 00 00 00 9F [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [20:32:21]RAPDU: 90 00 [20:32:21]wFMCommunicate OK [20:32:21]SAM_PROTO_ClearQueue done [20:32:21]KKMCreateOFDPacket [20:32:21]OFDProtocolAddRootSTLVToBuf [20:32:21]FM_MakeSignedData [20:32:21]FM_MakeSignedData [20:32:21]SAM_PROTO_SignData [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 0D 01 02 [20:32:21]Write to MH i2c: E2 08 00 2B 03 80 0D 01 02 00 00 00 00 A7 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [20:32:21]RAPDU: 90 00 [20:32:21]wFMCommunicate OK [20:32:21]wFMCommunicate request_size=255 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 55 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 [20:32:21]Write to MH i2c: E2 02 01 2C 03 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 55 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 00 00 D7 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [20:32:21]RAPDU: 90 00 [20:32:21]wFMCommunicate OK [20:32:21]wFMCommunicate request_size=37 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DD 06 00 00 35 04 06 00 76 15 D9 EC 8A A7 [20:32:21]Write to MH i2c: E2 28 00 2D 03 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DD 06 00 00 35 04 06 00 76 15 D9 EC 8A A7 00 00 68 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [20:32:21]RAPDU: 90 00 [20:32:21]wFMCommunicate OK [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 0D 03 02 [20:32:21]Write to MH i2c: E2 08 00 2E 03 80 0D 03 02 00 00 00 00 AC [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 0B 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 0B 00 2E 03 00 1E E1 B6 31 E3 88 2D 5E 90 00 89 [20:32:21]RAPDU: 1E E1 B6 31 E3 88 2D 5E 90 00 [20:32:21]wFMCommunicate OK [20:32:21]SAM_PROTO_SignData done [20:32:21]FM_MakeSignedData done [20:32:21]CreateOFDProtocolMessage [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 11 00 00 [20:32:21]Write to MH i2c: E2 08 00 2F 03 80 11 00 00 00 00 00 00 AC [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 17 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 17 00 2F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 02 [20:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:32:21]wFMCommunicate OK [20:32:21]CreateOFDProtocolMessage done [20:32:21]OFDSenderStorePacket 1757 [20:32:21]StoreOFDPacket docnum=1757 [20:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 AE 70 22 01 C0 31 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 55 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DD 06 00 00 35 04 06 00 76 15 D9 EC 8A A7 1E E1 B6 31 E3 88 2D 5E [20:32:21]CheckFolder [20:32:21]dirname=/storage/ofd_packets [20:32:21]CheckFolder done [20:32:21]ProducePacketName [20:32:21]name=ofd_packets/00001757 [20:32:21]NVStorageSaveData ofd_packets/00001757 [20:32:21]File name is /storage/ofd_packets/00001757 [20:32:21]Write 328 bytes [20:32:21]NVStorageSaveData done [20:32:21]OFDSenderStorePacket done [20:32:21]KKMCreateOFDPacket done [20:32:21]NVStorageSaveData kkm_last_timestamp [20:32:21]File name is /storage/kkm_last_timestamp [20:32:21]Write 4 bytes [20:32:21]NVStorageSaveData done [20:32:21]ExternCall_PrintAddStr [20:32:21]wPrintStart [20:32:21]Write to MH i2c: 01 00 00 30 03 33 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 07 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [20:32:21]RasterBufferAndPrint [20:32:21]line Счет N : (3)256227 [20:32:21]line ИНН: 02508201610067 [20:32:21]line Контрольно-Кассовый Чек [20:32:21]line ПРОДАЖА [20:32:21]line Товар: 2000031750019 [20:32:21]line Пакет Партнер Нефть [20:32:21]line 1.000 * 4.00 [20:32:21]line = 4.00 [20:32:21]line НДС 12% НСП 1% [20:32:21]line > о реализуемом товаре [20:32:21]line ИТОГО: 4.00 [20:32:21]line НСП 1% : 0.03 [20:32:21]line НДС 12% : 0.42 [20:32:21]line Наличными: 4.00 [20:32:21]line Безнал.: 0.00 [20:32:21]line Место: АЗС № 76 "Партнер Нефть" [20:32:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:32:21]line СНО: Общий режим [20:32:21]line Чек 73 11.07.2024 20:32 [20:32:22]line Смена: 22 ФФД: 1.0 [20:32:22]line ЗНМ: 0300000124 [20:32:22]line РНМ: 0000000000177495 [20:32:22]line Версия ККМ: 001 [20:32:22]line ФМ: 0000000002098592 [20:32:22]line ФД: 1757 [20:32:22]line ФПД: 129836222548647 [20:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T203221&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1757&fm=129836222548647&tin=02508201610067®Number=0000000000177495&sum=400 [20:32:22]line 0 [20:32:22]OFD Sender: Processing packet 1757 [packets to send 1, broken 0] [20:32:22]ProducePacketName [20:32:22]name=ofd_packets/00001757 [20:32:22]OFD Sender: To server: pG, [20:32:22]CommunicateWithHost lk.salyk.kg:30040 [20:32:22]ConnectInit lk.salyk.kg [20:32:22]written 0, free lines is 4095 [20:32:22]Connected sock=10 [20:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 AE 70 22 01 C0 31 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 55 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DD 06 00 00 35 04 06 00 76 15 D9 EC 8A A7 1E E1 B6 31 E3 88 2D 5E [20:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 4E 80 47 00 5A 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DD 06 00 00 F4 03 04 00 8F EC 8F 66 B6 04 01 00 00 CC 4E 35 1F 06 DA 4F 56 [20:32:22]CommunicateWithHost err = 0 [20:32:22]CheckOFDResponse [20:32:22]1017 (14) - 77093643461234 [20:32:22]1041 (16) - 0000000002098592 [20:32:22]1040 (4) - 1757 [20:32:22]1012 (4) - 11.07.2024 14:30 [20:32:22]1206 (1) - 0 [20:32:22]OFD Sender: Remove packet 1757 [20:32:22]ProducePacketName [20:32:22]name=ofd_packets/00001757 [20:32:22]NVStorageDeleteData [20:32:22]Write to MH i2c: 01 00 00 58 03 5B [20:32:22]Write i2c OK [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: 01 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: 01 07 00 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 03 0D 72 [20:32:22]RasterBufferAndPrint [20:32:22]line [20:32:22]line [20:32:22]line [20:32:22]line [20:32:22]line [20:32:22]written 0, free lines is 3337 [20:32:22]MH_Cut [20:32:22]Write to MH i2c: D1 01 00 5F 03 01 34 [20:32:22]Write i2c OK [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: D1 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: D1 01 00 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: D1 01 00 5F 03 00 33 [20:32:22]Write to MH i2c: 01 00 00 60 03 63 [20:32:22]Write i2c OK [20:32:22]MH_I2C_Read... [20:32:22]OFD Sender: No OFD packet to send [20:32:23]*** Cut start [20:32:23]*** Partial cut [20:32:23]*** CUTSNS_PIN = 1 [20:32:23]*** CUTSNS_PIN = 0 [20:32:23]*** Brake cut motor [20:32:23]Read from MH i2c: 01 [20:32:23]MH_I2C_Read... [20:32:23]*** Stop cut motor [20:32:23]*** Cut end [20:32:23]Read from MH i2c: 01 07 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [20:32:23]process_action close_receipt done [20:32:23]requested_data is exist [20:32:23]produce_requested_data [20:32:23]requested_item fm.sn is exist - process it [20:32:23]wFMCommunicate request_size=4 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 11 00 00 [20:32:23]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 17 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 34 [20:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:32:23]wFMCommunicate OK [20:32:23]requested_item fd.num is exist - process it [20:32:23]SAM_PROTO_GetFieldsCounters [20:32:23]wFMCommunicate request_size=4 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 13 00 00 [20:32:23]Write to MH i2c: E2 08 00 62 03 80 13 00 00 00 00 00 00 E1 [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 62 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 62 00 62 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DD 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [20:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DD 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:24]wFMCommunicate OK [20:32:24]SAM_PROTO_GetFieldsCounters done [20:32:24]requested_item shift.num is exist - process it [20:32:24]requested_item shift.opened is exist - process it [20:32:24]req_shift_opened [20:32:24]FM_GetShiftState [20:32:24]SAM_PROTO_GetShiftState [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 13 01 00 [20:32:24]Write to MH i2c: E2 08 00 63 03 80 13 01 00 00 00 00 00 E3 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 0E 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 0E 00 63 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 41 [20:32:24]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:32:24]wFMCommunicate OK [20:32:24]SAM_PROTO_GetShiftState done [20:32:24]FM_GetShiftState done [20:32:24]req_shift_opened done [20:32:24]requested_item shift.open_date is exist - process it [20:32:24]req_shift_open_date [20:32:24]req_shift_open_date done [20:32:24]produce_requested_data done [20:32:24]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1757,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [20:32:24]process_action_free close_receipt [20:32:24]json_value_free [20:32:24]json_value_free done [20:32:24]process_json_proto returns [20:32:24]Send response to host [20:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1757,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [20:32:24]free response buf [20:32:24]execute_script done [20:32:24]execute_script returns [20:32:24]free content buf [20:32:24]Sock 8.Close socket [20:32:24]Sock 8.Thread stoped [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:28]accept exits with 9 [20:33:28]New connection [20:33:28]New thread 3067411812 created [20:33:28]Thread 3067555172 joined [20:33:28]Waiting for new connection... [20:33:28] Sock 9.Parse request [20:33:28]Sock 9.Check first char [20:33:28]Sock 9.First char is OK [20:33:28]request: POST /json_proto HTTP/1.0 [20:33:28]Method: POST [20:33:28]URL: /json_proto [20:33:28]Method is POST - this is cgi request [20:33:28]url: /json_proto [20:33:28]query_string will be loaded in cgi processing [20:33:28]execute_cgi json_proto POST (null) [20:33:28]execute_cgi path=json_proto method=POST [20:33:28]POST find Content-Length [20:33:28]Host: 172.17.35.133:8080 [20:33:28]Content-Length: 930 [20:33:28]Content-Type: application/json [20:33:28] [20:33:28]POST finish read [20:33:28]Found Content-Length = 930 [20:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256228", "tax_sys" : 0, "items" : [ { "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:28]execute_script... [20:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256228", "tax_sys" : 0, "items" : [ { "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:28]POST & json_proto [20:33:28]process_json_proto [20:33:28]json parsed OK: [20:33:28]protocol is kg_v1.0 [20:33:28]action value=close_receipt [20:33:28]process_action close_receipt [20:33:28]cmd_close_receipt [20:33:28]MH_GetDate [20:33:28]Write to MH i2c: F0 00 00 64 03 56 [20:33:28]Write i2c OK [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: F0 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: F0 09 00 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: F0 09 00 64 03 00 99 41 90 66 1B 28 2A 66 02 [20:33:28]GetLastDocTimeStamp 1720729941 [20:33:28]current date 1720730009 [20:33:28]FM_GetShiftState [20:33:28]SAM_PROTO_GetShiftState [20:33:28]wFMCommunicate request_size=4 [20:33:28]MH_SAM_APDU [20:33:28]CAPDU: 80 13 01 00 [20:33:28]Write to MH i2c: E2 08 00 65 03 80 13 01 00 00 00 00 00 E5 [20:33:28]Write i2c OK [20:33:28]MH_I2C_Read... [20:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:28]Read from MH i2c: E2 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 0E 00 [20:33:28]MH_I2C_Read... [20:33:28]Read from MH i2c: E2 0E 00 65 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 43 [20:33:28]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:33:28]wFMCommunicate OK [20:33:28]SAM_PROTO_GetShiftState done [20:33:28]FM_GetShiftState done [20:33:28]opened in 1720656698 [20:33:28]opened+sec_in_day 1720743098 [20:33:28]quantity*price = 6000 [20:33:28]sum+1 = 6001 [20:33:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 116.00 НСП 1% : 1.03 НДС 12% : 12.32 Наличными: 116.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 74 11.07.2024 20:33 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1758 ФПД: 165800659581817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T203329&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1758&fm=165800659581817&tin=02508201610067®Number=0000000000177495&sum=11600 0 [20:33:29]StoreToDocumentArchive [20:33:29]shift 22 fd 1758 [20:33:29]save to /storage/0022/doc_00001758 [20:33:29]save last doc name /storage/0022/doc_00001758 to /storage/kkm_last_doc_name [20:33:29]save OK [20:33:29]Clear old archive folders... [20:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=396 [20:33:29]tlvbuf is 000EFBF0 [20:33:29]SAM_PROTO_ClearQueue [20:33:29]wFMCommunicate request_size=4 [20:33:29]MH_SAM_APDU [20:33:29]CAPDU: 80 09 00 00 [20:33:29]Write to MH i2c: E2 08 00 72 03 80 09 00 00 00 00 00 00 E7 [20:33:29]Write i2c OK [20:33:29]MH_I2C_Read... [20:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:29]Read from MH i2c: E2 [20:33:29]MH_I2C_Read... [20:33:29]Read from MH i2c: E2 03 00 [20:33:29]MH_I2C_Read... [20:33:29]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [20:33:29]RAPDU: 90 00 [20:33:29]wFMCommunicate OK [20:33:29]SAM_PROTO_ClearQueue done [20:33:29]KKMCreateOFDPacket [20:33:29]OFDProtocolAddRootSTLVToBuf [20:33:29]FM_MakeSignedData [20:33:29]FM_MakeSignedData [20:33:29]SAM_PROTO_SignData [20:33:29]wFMCommunicate request_size=4 [20:33:29]MH_SAM_APDU [20:33:29]CAPDU: 80 0D 01 02 [20:33:29]Write to MH i2c: E2 08 00 73 03 80 0D 01 02 00 00 00 00 EF [20:33:29]Write i2c OK [20:33:29]MH_I2C_Read... [20:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:29]Read from MH i2c: E2 [20:33:29]MH_I2C_Read... [20:33:29]Read from MH i2c: E2 03 00 [20:33:29]MH_I2C_Read... [20:33:29]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [20:33:29]RAPDU: 90 00 [20:33:29]wFMCommunicate OK [20:33:29]wFMCommunicate request_size=255 [20:33:29]MH_SAM_APDU [20:33:29]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF [20:33:29]Write to MH i2c: E2 02 01 74 03 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 00 00 71 [20:33:29]Write i2c OK [20:33:29]MH_I2C_Read... [20:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:29]Read from MH i2c: E2 [20:33:29]MH_I2C_Read... [20:33:29]Read from MH i2c: E2 03 00 [20:33:29]MH_I2C_Read... [20:33:29]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [20:33:29]RAPDU: 90 00 [20:33:29]wFMCommunicate OK [20:33:29]wFMCommunicate request_size=155 [20:33:29]MH_SAM_APDU [20:33:29]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DE 06 00 00 35 04 06 00 96 CB 79 6A FB 79 [20:33:29]Write to MH i2c: E2 9E 00 75 03 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DE 06 00 00 35 04 06 00 96 CB 79 6A FB 79 00 00 E7 [20:33:29]Write i2c OK [20:33:29]MH_I2C_Read... [20:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:30]Read from MH i2c: E2 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: E2 03 00 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [20:33:30]RAPDU: 90 00 [20:33:30]wFMCommunicate OK [20:33:30]wFMCommunicate request_size=4 [20:33:30]MH_SAM_APDU [20:33:30]CAPDU: 80 0D 03 02 [20:33:30]Write to MH i2c: E2 08 00 76 03 80 0D 03 02 00 00 00 00 F4 [20:33:30]Write i2c OK [20:33:30]MH_I2C_Read... [20:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:30]Read from MH i2c: E2 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: E2 0B 00 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: E2 0B 00 76 03 00 9F 93 10 45 8A 31 6F C1 90 00 67 [20:33:30]RAPDU: 9F 93 10 45 8A 31 6F C1 90 00 [20:33:30]wFMCommunicate OK [20:33:30]SAM_PROTO_SignData done [20:33:30]FM_MakeSignedData done [20:33:30]CreateOFDProtocolMessage [20:33:30]wFMCommunicate request_size=4 [20:33:30]MH_SAM_APDU [20:33:30]CAPDU: 80 11 00 00 [20:33:30]Write to MH i2c: E2 08 00 77 03 80 11 00 00 00 00 00 00 F4 [20:33:30]Write i2c OK [20:33:30]MH_I2C_Read... [20:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:30]Read from MH i2c: E2 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: E2 17 00 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: E2 17 00 77 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4A [20:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:33:30]wFMCommunicate OK [20:33:30]CreateOFDProtocolMessage done [20:33:30]OFDSenderStorePacket 1758 [20:33:30]StoreOFDPacket docnum=1758 [20:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A0 01 00 00 FC F1 98 01 D1 25 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DE 06 00 00 35 04 06 00 96 CB 79 6A FB 79 9F 93 10 45 8A 31 6F C1 [20:33:30]CheckFolder [20:33:30]dirname=/storage/ofd_packets [20:33:30]CheckFolder done [20:33:30]ProducePacketName [20:33:30]name=ofd_packets/00001758 [20:33:30]NVStorageSaveData ofd_packets/00001758 [20:33:30]File name is /storage/ofd_packets/00001758 [20:33:30]Write 446 bytes [20:33:30]NVStorageSaveData done [20:33:30]OFDSenderStorePacket done [20:33:30]KKMCreateOFDPacket done [20:33:30]NVStorageSaveData kkm_last_timestamp [20:33:30]File name is /storage/kkm_last_timestamp [20:33:30]Write 4 bytes [20:33:30]NVStorageSaveData done [20:33:30]ExternCall_PrintAddStr [20:33:30]wPrintStart [20:33:30]Write to MH i2c: 01 00 00 78 03 7B [20:33:30]Write i2c OK [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: 01 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: 01 07 00 [20:33:30]MH_I2C_Read... [20:33:30]OFD Sender: Processing packet 1758 [packets to send 1, broken 0] [20:33:30]ProducePacketName [20:33:30]name=ofd_packets/00001758 [20:33:30]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [20:33:30]RasterBufferAndPrint [20:33:30]line Счет N : (3)256228 [20:33:30]line ИНН: 02508201610067 [20:33:30]line Контрольно-Кассовый Чек [20:33:30]line ПРОДАЖА [20:33:30]line Товар: 4870209744502 [20:33:30]line Сухарики Флинт Сыр 100 гр [20:33:30]line 1.000 * 60.00 [20:33:30]line = 60.00 [20:33:30]line НДС 12% НСП 1% [20:33:30]line > о реализуемом товаре [20:33:30]line Товар: 4607065001445 [20:33:30]line Шок батончик Snickers 50,5г [20:33:30]line 1.000 * 56.00 [20:33:30]line = 56.00 [20:33:30]line НДС 12% НСП 1% [20:33:30]line > о реализуемом товаре [20:33:30]line ИТОГО: 116.00 [20:33:30]line НСП 1% : 1.03 [20:33:30]line НДС 12% : 12.32 [20:33:30]line Наличными: 116.00 [20:33:30]line Безнал.: 0.00 [20:33:30]line Место: АЗС № 76 "Партнер Нефть" [20:33:30]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:33:30]line СНО: Общий режим [20:33:30]line Чек 74 11.07.2024 20:33 [20:33:30]line Смена: 22 ФФД: 1.0 [20:33:30]line ЗНМ: 0300000124 [20:33:30]line РНМ: 0000000000177495 [20:33:30]line Версия ККМ: 001 [20:33:30]line ФМ: 0000000002098592 [20:33:30]line ФД: 1758 [20:33:30]line ФПД: 165800659581817 [20:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T203329&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1758&fm=165800659581817&tin=02508201610067®Number=0000000000177495&sum=11600 [20:33:30]line 0 [20:33:30]OFD Sender: To server: pG, [20:33:30]CommunicateWithHost lk.salyk.kg:30040 [20:33:30]ConnectInit lk.salyk.kg [20:33:30]written 0, free lines is 4095 [20:33:30]Connected sock=10 [20:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 A0 01 00 00 FC F1 98 01 D1 25 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 41 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DE 06 00 00 35 04 06 00 96 CB 79 6A FB 79 9F 93 10 45 8A 31 6F C1 [20:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 60 3E 47 00 30 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DE 06 00 00 F4 03 04 00 D3 EC 8F 66 B6 04 01 00 00 64 FC 41 DB A4 B9 03 D6 [20:33:30]CommunicateWithHost err = 0 [20:33:30]CheckOFDResponse [20:33:30]1017 (14) - 77093643461234 [20:33:30]1041 (16) - 0000000002098592 [20:33:30]1040 (4) - 1758 [20:33:30]1012 (4) - 11.07.2024 14:31 [20:33:30]1206 (1) - 0 [20:33:30]OFD Sender: Remove packet 1758 [20:33:30]ProducePacketName [20:33:30]name=ofd_packets/00001758 [20:33:30]NVStorageDeleteData [20:33:30]Write to MH i2c: 01 00 00 A6 03 A9 [20:33:30]Write i2c OK [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: 01 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: 01 07 00 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: 01 07 00 A6 03 00 00 00 00 00 C3 0C 7F [20:33:30]RasterBufferAndPrint [20:33:30]line [20:33:30]line [20:33:30]line [20:33:30]line [20:33:30]line [20:33:30]written 0, free lines is 3273 [20:33:30]MH_Cut [20:33:30]Write to MH i2c: D1 01 00 AD 03 01 82 [20:33:30]Write i2c OK [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: D1 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: D1 01 00 [20:33:30]MH_I2C_Read... [20:33:30]Read from MH i2c: D1 01 00 AD 03 00 81 [20:33:30]Write to MH i2c: 01 00 00 AE 03 B1 [20:33:30]Write i2c OK [20:33:30]MH_I2C_Read... [20:33:31]OFD Sender: No OFD packet to send [20:33:31]*** Cut start [20:33:31]*** Partial cut [20:33:31]*** CUTSNS_PIN = 1 [20:33:31]*** CUTSNS_PIN = 0 [20:33:31]*** Brake cut motor [20:33:32]Read from MH i2c: 01 [20:33:32]MH_I2C_Read... [20:33:32]*** Stop cut motor [20:33:32]*** Cut end [20:33:32]Read from MH i2c: 01 07 00 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: 01 07 00 AE 03 00 00 00 00 00 FF 0F C6 [20:33:32]process_action close_receipt done [20:33:32]requested_data is exist [20:33:32]produce_requested_data [20:33:32]requested_item fm.sn is exist - process it [20:33:32]wFMCommunicate request_size=4 [20:33:32]MH_SAM_APDU [20:33:32]CAPDU: 80 11 00 00 [20:33:32]Write to MH i2c: E2 08 00 AF 03 80 11 00 00 00 00 00 00 2C [20:33:32]Write i2c OK [20:33:32]MH_I2C_Read... [20:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:32]Read from MH i2c: E2 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 17 00 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 17 00 AF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 82 [20:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:33:32]wFMCommunicate OK [20:33:32]requested_item fd.num is exist - process it [20:33:32]SAM_PROTO_GetFieldsCounters [20:33:32]wFMCommunicate request_size=4 [20:33:32]MH_SAM_APDU [20:33:32]CAPDU: 80 13 00 00 [20:33:32]Write to MH i2c: E2 08 00 B0 03 80 13 00 00 00 00 00 00 2F [20:33:32]Write i2c OK [20:33:32]MH_I2C_Read... [20:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:32]Read from MH i2c: E2 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 62 00 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 62 00 B0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DE 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [20:33:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DE 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:32]wFMCommunicate OK [20:33:32]SAM_PROTO_GetFieldsCounters done [20:33:32]requested_item shift.num is exist - process it [20:33:32]requested_item shift.opened is exist - process it [20:33:32]req_shift_opened [20:33:32]FM_GetShiftState [20:33:32]SAM_PROTO_GetShiftState [20:33:32]wFMCommunicate request_size=4 [20:33:32]MH_SAM_APDU [20:33:32]CAPDU: 80 13 01 00 [20:33:32]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [20:33:32]Write i2c OK [20:33:32]MH_I2C_Read... [20:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:32]Read from MH i2c: E2 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 0E 00 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 8F [20:33:32]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [20:33:32]wFMCommunicate OK [20:33:32]SAM_PROTO_GetShiftState done [20:33:32]FM_GetShiftState done [20:33:32]req_shift_opened done [20:33:32]requested_item shift.open_date is exist - process it [20:33:32]req_shift_open_date [20:33:32]req_shift_open_date done [20:33:32]produce_requested_data done [20:33:32]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1758,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [20:33:32]process_action_free close_receipt [20:33:32]json_value_free [20:33:32]json_value_free done [20:33:32]process_json_proto returns [20:33:32]Send response to host [20:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1758,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [20:33:32]free response buf [20:33:32]execute_script done [20:33:32]execute_script returns [20:33:32]free content buf [20:33:32]Sock 9.Close socket [20:33:32]Sock 9.Thread stoped [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:04]accept exits with 8 [21:03:04]New connection [21:03:04]New thread 3067555172 created [21:03:04]Thread 3067411812 joined [21:03:04]Waiting for new connection... [21:03:04] Sock 8.Parse request [21:03:04]Sock 8.Check first char [21:03:04]Sock 8.First char is OK [21:03:04]request: POST /json_proto HTTP/1.0 [21:03:04]Method: POST [21:03:04]URL: /json_proto [21:03:04]Method is POST - this is cgi request [21:03:04]url: /json_proto [21:03:04]query_string will be loaded in cgi processing [21:03:04]execute_cgi json_proto POST (null) [21:03:04]execute_cgi path=json_proto method=POST [21:03:04]POST find Content-Length [21:03:04]Host: 172.17.35.133:8080 [21:03:04]Content-Length: 630 [21:03:04]Content-Type: application/json [21:03:04] [21:03:04]POST finish read [21:03:04]Found Content-Length = 630 [21:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256229", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:04]execute_script... [21:03:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256229", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:04]POST & json_proto [21:03:04]process_json_proto [21:03:04]json parsed OK: [21:03:04]protocol is kg_v1.0 [21:03:04]action value=close_receipt [21:03:04]process_action close_receipt [21:03:04]cmd_close_receipt [21:03:04]MH_GetDate [21:03:04]Write to MH i2c: F0 00 00 B2 03 A4 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: F0 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: F0 09 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: F0 09 00 B2 03 00 89 48 90 66 1B 28 2A 66 47 [21:03:04]GetLastDocTimeStamp 1720730009 [21:03:04]current date 1720731785 [21:03:04]FM_GetShiftState [21:03:04]SAM_PROTO_GetShiftState [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 13 01 00 [21:03:04]Write to MH i2c: E2 08 00 B3 03 80 13 01 00 00 00 00 00 33 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 0E 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 0E 00 B3 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 91 [21:03:04]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:03:04]wFMCommunicate OK [21:03:04]SAM_PROTO_GetShiftState done [21:03:04]FM_GetShiftState done [21:03:04]opened in 1720656698 [21:03:04]opened+sec_in_day 1720743098 [21:03:04]quantity*price = 5000 [21:03:04]sum+1 = 5001 [21:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 75 11.07.2024 21:03 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1759 ФПД: 129122660990917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T210305&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1759&fm=129122660990917&tin=02508201610067®Number=0000000000177495&sum=5000 0 [21:03:05]StoreToDocumentArchive [21:03:05]shift 22 fd 1759 [21:03:05]save to /storage/0022/doc_00001759 [21:03:05]save last doc name /storage/0022/doc_00001759 to /storage/kkm_last_doc_name [21:03:05]save OK [21:03:05]Clear old archive folders... [21:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=269 [21:03:05]tlvbuf is 0011E8D0 [21:03:05]SAM_PROTO_ClearQueue [21:03:05]wFMCommunicate request_size=4 [21:03:05]MH_SAM_APDU [21:03:05]CAPDU: 80 09 00 00 [21:03:05]Write to MH i2c: E2 08 00 C0 03 80 09 00 00 00 00 00 00 35 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:05]Read from MH i2c: E2 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [21:03:05]RAPDU: 90 00 [21:03:05]wFMCommunicate OK [21:03:05]SAM_PROTO_ClearQueue done [21:03:05]KKMCreateOFDPacket [21:03:05]OFDProtocolAddRootSTLVToBuf [21:03:05]FM_MakeSignedData [21:03:05]FM_MakeSignedData [21:03:05]SAM_PROTO_SignData [21:03:05]wFMCommunicate request_size=4 [21:03:05]MH_SAM_APDU [21:03:05]CAPDU: 80 0D 01 02 [21:03:05]Write to MH i2c: E2 08 00 C1 03 80 0D 01 02 00 00 00 00 3D [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:05]Read from MH i2c: E2 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [21:03:05]RAPDU: 90 00 [21:03:05]wFMCommunicate OK [21:03:05]wFMCommunicate request_size=255 [21:03:05]MH_SAM_APDU [21:03:05]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 89 48 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [21:03:05]Write to MH i2c: E2 02 01 C2 03 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 89 48 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 7E [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:05]Read from MH i2c: E2 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 C2 03 00 90 00 39 [21:03:05]RAPDU: 90 00 [21:03:05]wFMCommunicate OK [21:03:05]wFMCommunicate request_size=28 [21:03:05]MH_SAM_APDU [21:03:05]CAPDU: 80 0D 02 02 17 39 38 35 39 32 10 04 04 00 DF 06 00 00 35 04 06 00 75 6F B6 57 3F C5 [21:03:05]Write to MH i2c: E2 1F 00 C3 03 80 0D 02 02 17 00 39 38 35 39 32 10 04 04 00 DF 06 00 00 35 04 06 00 75 6F B6 57 3F C5 00 00 B0 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:05]Read from MH i2c: E2 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [21:03:05]RAPDU: 90 00 [21:03:05]wFMCommunicate OK [21:03:05]wFMCommunicate request_size=4 [21:03:05]MH_SAM_APDU [21:03:05]CAPDU: 80 0D 03 02 [21:03:05]Write to MH i2c: E2 08 00 C4 03 80 0D 03 02 00 00 00 00 42 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:05]Read from MH i2c: E2 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 0B 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 0B 00 C4 03 00 E9 D8 7B 11 4D D3 8B 8C 90 00 C7 [21:03:05]RAPDU: E9 D8 7B 11 4D D3 8B 8C 90 00 [21:03:05]wFMCommunicate OK [21:03:05]SAM_PROTO_SignData done [21:03:05]FM_MakeSignedData done [21:03:05]CreateOFDProtocolMessage [21:03:05]wFMCommunicate request_size=4 [21:03:05]MH_SAM_APDU [21:03:05]CAPDU: 80 11 00 00 [21:03:05]Write to MH i2c: E2 08 00 C5 03 80 11 00 00 00 00 00 00 42 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:05]Read from MH i2c: E2 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 17 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: E2 17 00 C5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 98 [21:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:03:05]wFMCommunicate OK [21:03:05]CreateOFDProtocolMessage done [21:03:05]OFDSenderStorePacket 1759 [21:03:05]StoreOFDPacket docnum=1759 [21:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 21 01 00 00 5A 04 19 01 2E A3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 89 48 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DF 06 00 00 35 04 06 00 75 6F B6 57 3F C5 E9 D8 7B 11 4D D3 8B 8C [21:03:05]CheckFolder [21:03:05]dirname=/storage/ofd_packets [21:03:05]CheckFolder done [21:03:05]ProducePacketName [21:03:05]name=ofd_packets/00001759 [21:03:05]NVStorageSaveData ofd_packets/00001759 [21:03:05]File name is /storage/ofd_packets/00001759 [21:03:05]Write 319 bytes [21:03:05]NVStorageSaveData done [21:03:05]OFDSenderStorePacket done [21:03:05]KKMCreateOFDPacket done [21:03:05]NVStorageSaveData kkm_last_timestamp [21:03:05]File name is /storage/kkm_last_timestamp [21:03:05]Write 4 bytes [21:03:05]NVStorageSaveData done [21:03:05]ExternCall_PrintAddStr [21:03:05]wPrintStart [21:03:05]Write to MH i2c: 01 00 00 C6 03 C9 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 07 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 FF 0F DE [21:03:05]RasterBufferAndPrint [21:03:05]line Счет N : (3)256229 [21:03:05]line ИНН: 02508201610067 [21:03:05]line Контрольно-Кассовый Чек [21:03:05]line ПРОДАЖА [21:03:05]line Товар: 4700000160358 [21:03:05]line Вода Легенда 1л [21:03:05]line 1.000 * 50.00 [21:03:05]line = 50.00 [21:03:05]line НДС 12% НСП 1% [21:03:05]line > о реализуемом товаре [21:03:05]line ИТОГО: 50.00 [21:03:05]line НСП 1% : 0.44 [21:03:05]line НДС 12% : 5.31 [21:03:05]line Наличными: 50.00 [21:03:05]line Безнал.: 0.00 [21:03:05]line Место: АЗС № 76 "Партнер Нефть" [21:03:05]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:03:05]line СНО: Общий режим [21:03:05]line Чек 75 11.07.2024 21:03 [21:03:05]line Смена: 22 ФФД: 1.0 [21:03:05]line ЗНМ: 0300000124 [21:03:05]line РНМ: 0000000000177495 [21:03:05]line Версия ККМ: 001 [21:03:05]line ФМ: 0000000002098592 [21:03:05]line ФД: 1759 [21:03:05]line ФПД: 129122660990917 [21:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T210305&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1759&fm=129122660990917&tin=02508201610067®Number=0000000000177495&sum=5000 [21:03:06]line 0 [21:03:06]OFD Sender: Processing packet 1759 [packets to send 1, broken 0] [21:03:06]ProducePacketName [21:03:06]name=ofd_packets/00001759 [21:03:06]OFD Sender: To server: pG, [21:03:06]CommunicateWithHost lk.salyk.kg:30040 [21:03:06]ConnectInit lk.salyk.kg [21:03:06]written 0, free lines is 4095 [21:03:06]Connected sock=10 [21:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 21 01 00 00 5A 04 19 01 2E A3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 89 48 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DF 06 00 00 35 04 06 00 75 6F B6 57 3F C5 E9 D8 7B 11 4D D3 8B 8C [21:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 A6 7F 47 00 C0 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 DF 06 00 00 F4 03 04 00 C3 F3 8F 66 B6 04 01 00 00 09 6B 23 E9 C8 D8 5D 82 [21:03:06]CommunicateWithHost err = 0 [21:03:06]CheckOFDResponse [21:03:06]1017 (14) - 77093643461234 [21:03:06]1041 (16) - 0000000002098592 [21:03:06]1040 (4) - 1759 [21:03:06]1012 (4) - 11.07.2024 15:01 [21:03:06]1206 (1) - 0 [21:03:06]OFD Sender: Remove packet 1759 [21:03:06]ProducePacketName [21:03:06]name=ofd_packets/00001759 [21:03:06]NVStorageDeleteData [21:03:06]Write to MH i2c: 01 00 00 EE 03 F1 [21:03:06]Write i2c OK [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: 01 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: 01 07 00 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 FC 0C 00 [21:03:06]RasterBufferAndPrint [21:03:06]line [21:03:06]line [21:03:06]line [21:03:06]line [21:03:06]line [21:03:06]written 0, free lines is 3330 [21:03:06]MH_Cut [21:03:06]Write to MH i2c: D1 01 00 F5 03 01 CA [21:03:06]Write i2c OK [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: D1 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: D1 01 00 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: D1 01 00 F5 03 00 C9 [21:03:06]Write to MH i2c: 01 00 00 F6 03 F9 [21:03:06]Write i2c OK [21:03:06]MH_I2C_Read... [21:03:06]OFD Sender: No OFD packet to send [21:03:07]*** Cut start [21:03:07]*** Partial cut [21:03:07]*** CUTSNS_PIN = 1 [21:03:07]*** CUTSNS_PIN = 0 [21:03:07]*** Brake cut motor [21:03:07]Read from MH i2c: 01 [21:03:07]MH_I2C_Read... [21:03:07]*** Stop cut motor [21:03:07]*** Cut end [21:03:07]Read from MH i2c: 01 07 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [21:03:07]process_action close_receipt done [21:03:07]requested_data is exist [21:03:07]produce_requested_data [21:03:07]requested_item fm.sn is exist - process it [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 11 00 00 [21:03:07]Write to MH i2c: E2 08 00 F7 03 80 11 00 00 00 00 00 00 74 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 17 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 17 00 F7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CA [21:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:03:07]wFMCommunicate OK [21:03:07]requested_item fd.num is exist - process it [21:03:07]SAM_PROTO_GetFieldsCounters [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 13 00 00 [21:03:07]Write to MH i2c: E2 08 00 F8 03 80 13 00 00 00 00 00 00 77 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:08]Read from MH i2c: E2 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: E2 62 00 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: E2 62 00 F8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DF 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [21:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 DF 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:08]wFMCommunicate OK [21:03:08]SAM_PROTO_GetFieldsCounters done [21:03:08]requested_item shift.num is exist - process it [21:03:08]requested_item shift.opened is exist - process it [21:03:08]req_shift_opened [21:03:08]FM_GetShiftState [21:03:08]SAM_PROTO_GetShiftState [21:03:08]wFMCommunicate request_size=4 [21:03:08]MH_SAM_APDU [21:03:08]CAPDU: 80 13 01 00 [21:03:08]Write to MH i2c: E2 08 00 F9 03 80 13 01 00 00 00 00 00 79 [21:03:08]Write i2c OK [21:03:08]MH_I2C_Read... [21:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:08]Read from MH i2c: E2 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: E2 0E 00 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: E2 0E 00 F9 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D7 [21:03:08]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:03:08]wFMCommunicate OK [21:03:08]SAM_PROTO_GetShiftState done [21:03:08]FM_GetShiftState done [21:03:08]req_shift_opened done [21:03:08]requested_item shift.open_date is exist - process it [21:03:08]req_shift_open_date [21:03:08]req_shift_open_date done [21:03:08]produce_requested_data done [21:03:08]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1759,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [21:03:08]process_action_free close_receipt [21:03:08]json_value_free [21:03:08]json_value_free done [21:03:08]process_json_proto returns [21:03:08]Send response to host [21:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1759,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [21:03:08]free response buf [21:03:08]execute_script done [21:03:08]execute_script returns [21:03:08]free content buf [21:03:08]Sock 8.Close socket [21:03:08]Sock 8.Thread stoped [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:01]accept exits with 9 [21:06:01]New connection [21:06:01]New thread 3067411812 created [21:06:01]Thread 3067555172 joined [21:06:01]Waiting for new connection... [21:06:01] Sock 9.Parse request [21:06:01]Sock 9.Check first char [21:06:01]Sock 9.First char is OK [21:06:01]request: POST /json_proto HTTP/1.0 [21:06:01]Method: POST [21:06:01]URL: /json_proto [21:06:01]Method is POST - this is cgi request [21:06:01]url: /json_proto [21:06:01]query_string will be loaded in cgi processing [21:06:01]execute_cgi json_proto POST (null) [21:06:01]execute_cgi path=json_proto method=POST [21:06:01]POST find Content-Length [21:06:01]Host: 172.17.35.133:8080 [21:06:01]Content-Length: 608 [21:06:01]Content-Type: application/json [21:06:01] [21:06:01]POST finish read [21:06:01]Found Content-Length = 608 [21:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256230", "tax_sys" : 0, "items" : [ { "code": "48741149", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Red", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:01]execute_script... [21:06:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256230", "tax_sys" : 0, "items" : [ { "code": "48741149", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Red", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:01]POST & json_proto [21:06:01]process_json_proto [21:06:01]json parsed OK: [21:06:01]protocol is kg_v1.0 [21:06:01]action value=close_receipt [21:06:01]process_action close_receipt [21:06:01]cmd_close_receipt [21:06:01]MH_GetDate [21:06:01]Write to MH i2c: F0 00 00 FA 03 EC [21:06:01]Write i2c OK [21:06:01]MH_I2C_Read... [21:06:01]Read from MH i2c: F0 [21:06:01]MH_I2C_Read... [21:06:01]Read from MH i2c: F0 09 00 [21:06:01]MH_I2C_Read... [21:06:01]Read from MH i2c: F0 09 00 FA 03 00 3A 49 90 66 1B 28 2A 66 41 [21:06:01]GetLastDocTimeStamp 1720731785 [21:06:01]current date 1720731962 [21:06:01]FM_GetShiftState [21:06:01]SAM_PROTO_GetShiftState [21:06:01]wFMCommunicate request_size=4 [21:06:01]MH_SAM_APDU [21:06:01]CAPDU: 80 13 01 00 [21:06:01]Write to MH i2c: E2 08 00 FB 03 80 13 01 00 00 00 00 00 7B [21:06:01]Write i2c OK [21:06:01]MH_I2C_Read... [21:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:01]Read from MH i2c: E2 [21:06:01]MH_I2C_Read... [21:06:01]Read from MH i2c: E2 0E 00 [21:06:01]MH_I2C_Read... [21:06:01]Read from MH i2c: E2 0E 00 FB 03 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 D9 [21:06:01]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:06:01]wFMCommunicate OK [21:06:01]SAM_PROTO_GetShiftState done [21:06:01]FM_GetShiftState done [21:06:01]opened in 1720656698 [21:06:01]opened+sec_in_day 1720743098 [21:06:01]quantity*price = 11300 [21:06:01]sum+1 = 11301 [21:06:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 76 11.07.2024 21:06 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1760 ФПД: 118735150575358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T210602&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1760&fm=118735150575358&tin=02508201610067®Number=0000000000177495&sum=11300 0 [21:06:02]StoreToDocumentArchive [21:06:02]shift 22 fd 1760 [21:06:02]save to /storage/0022/doc_00001760 [21:06:02]save last doc name /storage/0022/doc_00001760 to /storage/kkm_last_doc_name [21:06:02]save OK [21:06:02]Clear old archive folders... [21:06:02]ProcessDocumentItem done err = 0, tmpTLVsize=260 [21:06:02]tlvbuf is 0011CE60 [21:06:02]SAM_PROTO_ClearQueue [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 09 00 00 [21:06:02]Write to MH i2c: E2 08 00 08 04 80 09 00 00 00 00 00 00 7E [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]SAM_PROTO_ClearQueue done [21:06:02]KKMCreateOFDPacket [21:06:02]OFDProtocolAddRootSTLVToBuf [21:06:02]FM_MakeSignedData [21:06:02]FM_MakeSignedData [21:06:02]SAM_PROTO_SignData [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 01 02 [21:06:02]Write to MH i2c: E2 08 00 09 04 80 0D 01 02 00 00 00 00 86 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]wFMCommunicate request_size=255 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 38 37 34 31 31 34 39 06 04 17 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3A 49 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 [21:06:02]Write to MH i2c: E2 02 01 0A 04 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 38 37 34 31 31 34 39 06 04 17 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3A 49 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 00 00 3A [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]wFMCommunicate request_size=19 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 02 02 0E E0 06 00 00 35 04 06 00 6B FD 2E 78 EE FE [21:06:02]Write to MH i2c: E2 16 00 0B 04 80 0D 02 02 0E 00 E0 06 00 00 35 04 06 00 6B FD 2E 78 EE FE 00 00 C4 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 0B 04 00 90 00 83 [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 03 02 [21:06:02]Write to MH i2c: E2 08 00 0C 04 80 0D 03 02 00 00 00 00 8B [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 0B 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 0B 00 0C 04 00 8B D5 12 63 11 20 C8 F4 90 00 4E [21:06:02]RAPDU: 8B D5 12 63 11 20 C8 F4 90 00 [21:06:02]wFMCommunicate OK [21:06:02]SAM_PROTO_SignData done [21:06:02]FM_MakeSignedData done [21:06:02]CreateOFDProtocolMessage [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 11 00 00 [21:06:02]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 17 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E1 [21:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:06:02]wFMCommunicate OK [21:06:02]CreateOFDProtocolMessage done [21:06:02]OFDSenderStorePacket 1760 [21:06:02]StoreOFDPacket docnum=1760 [21:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 18 01 00 00 63 61 10 01 48 FA 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 38 37 34 31 31 34 39 06 04 17 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3A 49 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E0 06 00 00 35 04 06 00 6B FD 2E 78 EE FE 8B D5 12 63 11 20 C8 F4 [21:06:02]CheckFolder [21:06:02]dirname=/storage/ofd_packets [21:06:02]CheckFolder done [21:06:02]ProducePacketName [21:06:02]name=ofd_packets/00001760 [21:06:02]NVStorageSaveData ofd_packets/00001760 [21:06:02]File name is /storage/ofd_packets/00001760 [21:06:02]Write 310 bytes [21:06:02]NVStorageSaveData done [21:06:02]OFDSenderStorePacket done [21:06:02]KKMCreateOFDPacket done [21:06:02]NVStorageSaveData kkm_last_timestamp [21:06:02]File name is /storage/kkm_last_timestamp [21:06:02]Write 4 bytes [21:06:02]NVStorageSaveData done [21:06:02]ExternCall_PrintAddStr [21:06:02]wPrintStart [21:06:02]Write to MH i2c: 01 00 00 0E 04 12 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: 01 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: 01 07 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [21:06:02]RasterBufferAndPrint [21:06:02]line Счет N : (3)256230 [21:06:02]line ИНН: 02508201610067 [21:06:02]line Контрольно-Кассовый Чек [21:06:02]line ПРОДАЖА [21:06:02]line Товар: 48741149 [21:06:02]line Сигареты LD Red [21:06:02]line 1.000 * 113.00 [21:06:02]line = 113.00 [21:06:02]line НДС 12% НСП 1% [21:06:02]line > о реализуемом товаре [21:06:02]line ИТОГО: 113.00 [21:06:02]line НСП 1% : 1.00 [21:06:02]line НДС 12% : 12.00 [21:06:02]line Наличными: 113.00 [21:06:02]line Безнал.: 0.00 [21:06:02]line Место: АЗС № 76 "Партнер Нефть" [21:06:02]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:06:02]line СНО: Общий режим [21:06:02]line Чек 76 11.07.2024 21:06 [21:06:02]line Смена: 22 ФФД: 1.0 [21:06:02]line ЗНМ: 0300000124 [21:06:02]line РНМ: 0000000000177495 [21:06:02]line Версия ККМ: 001 [21:06:02]line ФМ: 0000000002098592 [21:06:02]line ФД: 1760 [21:06:02]line ФПД: 118735150575358 [21:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T210602&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1760&fm=118735150575358&tin=02508201610067®Number=0000000000177495&sum=11300 [21:06:03]line 0 [21:06:03]OFD Sender: Processing packet 1760 [packets to send 1, broken 0] [21:06:03]ProducePacketName [21:06:03]name=ofd_packets/00001760 [21:06:03]OFD Sender: To server: pG, [21:06:03]CommunicateWithHost lk.salyk.kg:30040 [21:06:03]ConnectInit lk.salyk.kg [21:06:03]written 0, free lines is 4095 [21:06:03]Connected sock=8 [21:06:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 18 01 00 00 63 61 10 01 48 FA 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 38 37 34 31 31 34 39 06 04 17 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3A 49 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E0 06 00 00 35 04 06 00 6B FD 2E 78 EE FE 8B D5 12 63 11 20 C8 F4 [21:06:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 BD 3B 47 00 52 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E0 06 00 00 F4 03 04 00 74 F4 8F 66 B6 04 01 00 00 E5 8B 61 4B 08 1F FB 22 [21:06:03]CommunicateWithHost err = 0 [21:06:03]CheckOFDResponse [21:06:03]1017 (14) - 77093643461234 [21:06:03]1041 (16) - 0000000002098592 [21:06:03]1040 (4) - 1760 [21:06:03]1012 (4) - 11.07.2024 15:04 [21:06:03]1206 (1) - 0 [21:06:03]OFD Sender: Remove packet 1760 [21:06:03]ProducePacketName [21:06:03]name=ofd_packets/00001760 [21:06:03]NVStorageDeleteData [21:06:03]Write to MH i2c: 01 00 00 36 04 3A [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 07 00 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 F5 0C 42 [21:06:03]RasterBufferAndPrint [21:06:03]line [21:06:03]line [21:06:03]line [21:06:03]line [21:06:03]line [21:06:03]written 0, free lines is 3323 [21:06:03]MH_Cut [21:06:03]Write to MH i2c: D1 01 00 3D 04 01 13 [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: D1 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: D1 01 00 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: D1 01 00 3D 04 00 12 [21:06:03]Write to MH i2c: 01 00 00 3E 04 42 [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]OFD Sender: No OFD packet to send [21:06:04]*** Cut start [21:06:04]*** Partial cut [21:06:04]*** CUTSNS_PIN = 1 [21:06:04]*** CUTSNS_PIN = 0 [21:06:04]*** Brake cut motor [21:06:04]Read from MH i2c: 01 [21:06:04]MH_I2C_Read... [21:06:04]*** Stop cut motor [21:06:04]*** Cut end [21:06:04]Read from MH i2c: 01 07 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: 01 07 00 3E 04 00 00 00 00 00 FF 0F 57 [21:06:04]process_action close_receipt done [21:06:04]requested_data is exist [21:06:04]produce_requested_data [21:06:04]requested_item fm.sn is exist - process it [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 11 00 00 [21:06:04]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 17 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 17 00 3F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 13 [21:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:06:04]wFMCommunicate OK [21:06:04]requested_item fd.num is exist - process it [21:06:04]SAM_PROTO_GetFieldsCounters [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 13 00 00 [21:06:04]Write to MH i2c: E2 08 00 40 04 80 13 00 00 00 00 00 00 C0 [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 62 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 62 00 40 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [21:06:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E0 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:04]wFMCommunicate OK [21:06:04]SAM_PROTO_GetFieldsCounters done [21:06:04]requested_item shift.num is exist - process it [21:06:04]requested_item shift.opened is exist - process it [21:06:04]req_shift_opened [21:06:04]FM_GetShiftState [21:06:04]SAM_PROTO_GetShiftState [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 13 01 00 [21:06:04]Write to MH i2c: E2 08 00 41 04 80 13 01 00 00 00 00 00 C2 [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:05]Read from MH i2c: E2 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 0E 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 0E 00 41 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 20 [21:06:05]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:06:05]wFMCommunicate OK [21:06:05]SAM_PROTO_GetShiftState done [21:06:05]FM_GetShiftState done [21:06:05]req_shift_opened done [21:06:05]requested_item shift.open_date is exist - process it [21:06:05]req_shift_open_date [21:06:05]req_shift_open_date done [21:06:05]produce_requested_data done [21:06:05]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1760,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [21:06:05]process_action_free close_receipt [21:06:05]json_value_free [21:06:05]json_value_free done [21:06:05]process_json_proto returns [21:06:05]Send response to host [21:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1760,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [21:06:05]free response buf [21:06:05]execute_script done [21:06:05]execute_script returns [21:06:05]free content buf [21:06:05]Sock 9.Close socket [21:06:05]Sock 9.Thread stoped [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:32]accept exits with 10 [21:13:32]New connection [21:13:32]New thread 3067555172 created [21:13:32]Thread 3067411812 joined [21:13:32]Waiting for new connection... [21:13:32] Sock 10.Parse request [21:13:32]Sock 10.Check first char [21:13:32]Sock 10.First char is OK [21:13:32]request: POST /json_proto HTTP/1.0 [21:13:32]Method: POST [21:13:32]URL: /json_proto [21:13:32]Method is POST - this is cgi request [21:13:32]url: /json_proto [21:13:32]query_string will be loaded in cgi processing [21:13:32]execute_cgi json_proto POST (null) [21:13:32]execute_cgi path=json_proto method=POST [21:13:32]POST find Content-Length [21:13:32]Host: 172.17.35.133:8080 [21:13:32]Content-Length: 658 [21:13:32]Content-Type: application/json [21:13:32] [21:13:32]POST finish read [21:13:32]Found Content-Length = 658 [21:13:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256231", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:32]execute_script... [21:13:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256231", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:32]POST & json_proto [21:13:32]process_json_proto [21:13:32]json parsed OK: [21:13:32]protocol is kg_v1.0 [21:13:32]action value=close_receipt [21:13:32]process_action close_receipt [21:13:32]cmd_close_receipt [21:13:32]MH_GetDate [21:13:32]Write to MH i2c: F0 00 00 42 04 35 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: F0 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: F0 09 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: F0 09 00 42 04 00 FD 4A 90 66 1B 28 2A 66 4E [21:13:32]GetLastDocTimeStamp 1720731962 [21:13:32]current date 1720732413 [21:13:32]FM_GetShiftState [21:13:32]SAM_PROTO_GetShiftState [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 13 01 00 [21:13:32]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 0E 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 22 [21:13:32]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:13:32]wFMCommunicate OK [21:13:32]SAM_PROTO_GetShiftState done [21:13:32]FM_GetShiftState done [21:13:32]opened in 1720656698 [21:13:32]opened+sec_in_day 1720743098 [21:13:32]quantity*price = 12500 [21:13:32]sum+1 = 12501 [21:13:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 77 11.07.2024 21:13 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1761 ФПД: 224264656166484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T211333&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1761&fm=224264656166484&tin=02508201610067®Number=0000000000177495&sum=12500 0 [21:13:33]StoreToDocumentArchive [21:13:33]shift 22 fd 1761 [21:13:33]save to /storage/0022/doc_00001761 [21:13:33]save last doc name /storage/0022/doc_00001761 to /storage/kkm_last_doc_name [21:13:33]save OK [21:13:33]Clear old archive folders... [21:13:33]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:13:33]tlvbuf is 000F5AA0 [21:13:33]SAM_PROTO_ClearQueue [21:13:33]wFMCommunicate request_size=4 [21:13:33]MH_SAM_APDU [21:13:33]CAPDU: 80 09 00 00 [21:13:33]Write to MH i2c: E2 08 00 50 04 80 09 00 00 00 00 00 00 C6 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:33]Read from MH i2c: E2 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [21:13:33]RAPDU: 90 00 [21:13:33]wFMCommunicate OK [21:13:33]SAM_PROTO_ClearQueue done [21:13:33]KKMCreateOFDPacket [21:13:33]OFDProtocolAddRootSTLVToBuf [21:13:33]FM_MakeSignedData [21:13:33]FM_MakeSignedData [21:13:33]SAM_PROTO_SignData [21:13:33]wFMCommunicate request_size=4 [21:13:33]MH_SAM_APDU [21:13:33]CAPDU: 80 0D 01 02 [21:13:33]Write to MH i2c: E2 08 00 51 04 80 0D 01 02 00 00 00 00 CE [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:33]Read from MH i2c: E2 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [21:13:33]RAPDU: 90 00 [21:13:33]wFMCommunicate OK [21:13:33]wFMCommunicate request_size=255 [21:13:33]MH_SAM_APDU [21:13:33]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FD 4A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 [21:13:33]Write to MH i2c: E2 02 01 52 04 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FD 4A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 00 00 22 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:33]Read from MH i2c: E2 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [21:13:33]RAPDU: 90 00 [21:13:33]wFMCommunicate OK [21:13:33]wFMCommunicate request_size=37 [21:13:33]MH_SAM_APDU [21:13:33]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E1 06 00 00 35 04 06 00 CB F7 AF 2A 9E 54 [21:13:33]Write to MH i2c: E2 28 00 53 04 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E1 06 00 00 35 04 06 00 CB F7 AF 2A 9E 54 00 00 9F [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:33]Read from MH i2c: E2 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [21:13:33]RAPDU: 90 00 [21:13:33]wFMCommunicate OK [21:13:33]wFMCommunicate request_size=4 [21:13:33]MH_SAM_APDU [21:13:33]CAPDU: 80 0D 03 02 [21:13:33]Write to MH i2c: E2 08 00 54 04 80 0D 03 02 00 00 00 00 D3 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:33]Read from MH i2c: E2 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 0B 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 0B 00 54 04 00 98 79 2E 30 42 CE 49 99 90 00 35 [21:13:33]RAPDU: 98 79 2E 30 42 CE 49 99 90 00 [21:13:33]wFMCommunicate OK [21:13:33]SAM_PROTO_SignData done [21:13:33]FM_MakeSignedData done [21:13:33]CreateOFDProtocolMessage [21:13:33]wFMCommunicate request_size=4 [21:13:33]MH_SAM_APDU [21:13:33]CAPDU: 80 11 00 00 [21:13:33]Write to MH i2c: E2 08 00 55 04 80 11 00 00 00 00 00 00 D3 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:33]Read from MH i2c: E2 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 17 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: E2 17 00 55 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 29 [21:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:13:33]wFMCommunicate OK [21:13:33]CreateOFDProtocolMessage done [21:13:33]OFDSenderStorePacket 1761 [21:13:33]StoreOFDPacket docnum=1761 [21:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 C0 36 22 01 B2 1D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FD 4A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E1 06 00 00 35 04 06 00 CB F7 AF 2A 9E 54 98 79 2E 30 42 CE 49 99 [21:13:33]CheckFolder [21:13:33]dirname=/storage/ofd_packets [21:13:33]CheckFolder done [21:13:33]ProducePacketName [21:13:33]name=ofd_packets/00001761 [21:13:33]NVStorageSaveData ofd_packets/00001761 [21:13:33]File name is /storage/ofd_packets/00001761 [21:13:33]Write 328 bytes [21:13:33]NVStorageSaveData done [21:13:33]OFDSenderStorePacket done [21:13:33]KKMCreateOFDPacket done [21:13:33]NVStorageSaveData kkm_last_timestamp [21:13:33]File name is /storage/kkm_last_timestamp [21:13:33]Write 4 bytes [21:13:33]NVStorageSaveData done [21:13:33]ExternCall_PrintAddStr [21:13:33]wPrintStart [21:13:33]Write to MH i2c: 01 00 00 56 04 5A [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 07 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [21:13:33]RasterBufferAndPrint [21:13:33]line Счет N : (3)256231 [21:13:33]line ИНН: 02508201610067 [21:13:33]line Контрольно-Кассовый Чек [21:13:33]line ПРОДАЖА [21:13:33]line Товар: 5449000054227 [21:13:33]line Напиток Кока-Кола 1л [21:13:33]line 1.000 * 125.00 [21:13:33]line = 125.00 [21:13:33]line НДС 12% НСП 1% [21:13:33]line > о реализуемом товаре [21:13:33]line ИТОГО: 125.00 [21:13:33]line НСП 1% : 1.11 [21:13:33]line НДС 12% : 13.27 [21:13:33]line Наличными: 125.00 [21:13:33]line Безнал.: 0.00 [21:13:33]line Место: АЗС № 76 "Партнер Нефть" [21:13:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:13:33]line СНО: Общий режим [21:13:33]line Чек 77 11.07.2024 21:13 [21:13:33]line Смена: 22 ФФД: 1.0 [21:13:33]line ЗНМ: 0300000124 [21:13:33]line РНМ: 0000000000177495 [21:13:33]line Версия ККМ: 001 [21:13:33]line ФМ: 0000000002098592 [21:13:33]line ФД: 1761 [21:13:33]line ФПД: 224264656166484 [21:13:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T211333&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1761&fm=224264656166484&tin=02508201610067®Number=0000000000177495&sum=12500 [21:13:34]line 0 [21:13:34]OFD Sender: Processing packet 1761 [packets to send 1, broken 0] [21:13:34]ProducePacketName [21:13:34]name=ofd_packets/00001761 [21:13:34]OFD Sender: To server: pG, [21:13:34]CommunicateWithHost lk.salyk.kg:30040 [21:13:34]ConnectInit lk.salyk.kg [21:13:34]written 0, free lines is 4095 [21:13:34]Connected sock=11 [21:13:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 2A 01 00 00 C0 36 22 01 B2 1D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FD 4A 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E1 06 00 00 35 04 06 00 CB F7 AF 2A 9E 54 98 79 2E 30 42 CE 49 99 [21:13:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 2C 42 47 00 71 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E1 06 00 00 F4 03 04 00 37 F6 8F 66 B6 04 01 00 00 5C 02 B6 F8 03 A8 78 D2 [21:13:34]CommunicateWithHost err = 0 [21:13:34]CheckOFDResponse [21:13:34]1017 (14) - 77093643461234 [21:13:34]1041 (16) - 0000000002098592 [21:13:34]1040 (4) - 1761 [21:13:34]1012 (4) - 11.07.2024 15:11 [21:13:34]1206 (1) - 0 [21:13:34]OFD Sender: Remove packet 1761 [21:13:34]ProducePacketName [21:13:34]name=ofd_packets/00001761 [21:13:34]NVStorageDeleteData [21:13:34]Write to MH i2c: 01 00 00 7E 04 82 [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: 01 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: 01 07 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 1B 0D B1 [21:13:34]RasterBufferAndPrint [21:13:34]line [21:13:34]line [21:13:34]line [21:13:34]line [21:13:34]line [21:13:34]written 0, free lines is 3361 [21:13:34]MH_Cut [21:13:34]Write to MH i2c: D1 01 00 85 04 01 5B [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: D1 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: D1 01 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: D1 01 00 85 04 00 5A [21:13:34]Write to MH i2c: 01 00 00 86 04 8A [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:35]OFD Sender: No OFD packet to send [21:13:35]*** Cut start [21:13:35]*** Partial cut [21:13:35]*** CUTSNS_PIN = 1 [21:13:35]*** CUTSNS_PIN = 0 [21:13:35]*** Brake cut motor [21:13:35]Read from MH i2c: 01 [21:13:35]MH_I2C_Read... [21:13:35]*** Stop cut motor [21:13:35]*** Cut end [21:13:35]Read from MH i2c: 01 07 00 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0F 9F [21:13:35]process_action close_receipt done [21:13:35]requested_data is exist [21:13:35]produce_requested_data [21:13:35]requested_item fm.sn is exist - process it [21:13:35]wFMCommunicate request_size=4 [21:13:35]MH_SAM_APDU [21:13:35]CAPDU: 80 11 00 00 [21:13:35]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [21:13:35]Write i2c OK [21:13:35]MH_I2C_Read... [21:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:35]Read from MH i2c: E2 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: E2 17 00 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5B [21:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:13:35]wFMCommunicate OK [21:13:35]requested_item fd.num is exist - process it [21:13:35]SAM_PROTO_GetFieldsCounters [21:13:35]wFMCommunicate request_size=4 [21:13:35]MH_SAM_APDU [21:13:35]CAPDU: 80 13 00 00 [21:13:35]Write to MH i2c: E2 08 00 88 04 80 13 00 00 00 00 00 00 08 [21:13:35]Write i2c OK [21:13:35]MH_I2C_Read... [21:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:36]Read from MH i2c: E2 [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: E2 62 00 [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: E2 62 00 88 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [21:13:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E1 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:36]wFMCommunicate OK [21:13:36]SAM_PROTO_GetFieldsCounters done [21:13:36]requested_item shift.num is exist - process it [21:13:36]requested_item shift.opened is exist - process it [21:13:36]req_shift_opened [21:13:36]FM_GetShiftState [21:13:36]SAM_PROTO_GetShiftState [21:13:36]wFMCommunicate request_size=4 [21:13:36]MH_SAM_APDU [21:13:36]CAPDU: 80 13 01 00 [21:13:36]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [21:13:36]Write i2c OK [21:13:36]MH_I2C_Read... [21:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:36]Read from MH i2c: E2 [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: E2 0E 00 [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 68 [21:13:36]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:13:36]wFMCommunicate OK [21:13:36]SAM_PROTO_GetShiftState done [21:13:36]FM_GetShiftState done [21:13:36]req_shift_opened done [21:13:36]requested_item shift.open_date is exist - process it [21:13:36]req_shift_open_date [21:13:36]req_shift_open_date done [21:13:36]produce_requested_data done [21:13:36]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1761,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [21:13:36]process_action_free close_receipt [21:13:36]json_value_free [21:13:36]json_value_free done [21:13:36]process_json_proto returns [21:13:36]Send response to host [21:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1761,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [21:13:36]free response buf [21:13:36]execute_script done [21:13:36]execute_script returns [21:13:36]free content buf [21:13:36]Sock 10.Close socket [21:13:36]Sock 10.Thread stoped [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:01]accept exits with 8 [21:14:01]New connection [21:14:01]New thread 3067411812 created [21:14:01]Thread 3067555172 joined [21:14:01]Waiting for new connection... [21:14:01] Sock 8.Parse request [21:14:01]Sock 8.Check first char [21:14:01]Sock 8.First char is OK [21:14:01]request: POST /json_proto HTTP/1.0 [21:14:01]Method: POST [21:14:01]URL: /json_proto [21:14:01]Method is POST - this is cgi request [21:14:01]url: /json_proto [21:14:01]query_string will be loaded in cgi processing [21:14:01]execute_cgi json_proto POST (null) [21:14:01]execute_cgi path=json_proto method=POST [21:14:01]POST find Content-Length [21:14:01]Host: 172.17.35.133:8080 [21:14:01]Content-Length: 626 [21:14:01]Content-Type: application/json [21:14:01] [21:14:01]POST finish read [21:14:01]Found Content-Length = 626 [21:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256232", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:01]execute_script... [21:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256232", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:01]POST & json_proto [21:14:01]process_json_proto [21:14:01]json parsed OK: [21:14:01]protocol is kg_v1.0 [21:14:01]action value=close_receipt [21:14:01]process_action close_receipt [21:14:01]cmd_close_receipt [21:14:01]MH_GetDate [21:14:01]Write to MH i2c: F0 00 00 8A 04 7D [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: F0 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: F0 09 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: F0 09 00 8A 04 00 1A 4B 90 66 1B 28 2A 66 B4 [21:14:01]GetLastDocTimeStamp 1720732413 [21:14:01]current date 1720732442 [21:14:01]FM_GetShiftState [21:14:01]SAM_PROTO_GetShiftState [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 13 01 00 [21:14:01]Write to MH i2c: E2 08 00 8B 04 80 13 01 00 00 00 00 00 0C [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:01]Read from MH i2c: E2 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 0E 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 0E 00 8B 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 6A [21:14:01]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:14:01]wFMCommunicate OK [21:14:01]SAM_PROTO_GetShiftState done [21:14:01]FM_GetShiftState done [21:14:01]opened in 1720656698 [21:14:01]opened+sec_in_day 1720743098 [21:14:01]quantity*price = 11500 [21:14:01]sum+1 = 11501 [21:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 78 11.07.2024 21:14 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1762 ФПД: 11071850119172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T211402&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1762&fm=11071850119172&tin=02508201610067®Number=0000000000177495&sum=11500 0 [21:14:02]StoreToDocumentArchive [21:14:02]shift 22 fd 1762 [21:14:02]save to /storage/0022/doc_00001762 [21:14:02]save last doc name /storage/0022/doc_00001762 to /storage/kkm_last_doc_name [21:14:02]save OK [21:14:02]Clear old archive folders... [21:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:14:02]tlvbuf is 000F3710 [21:14:02]SAM_PROTO_ClearQueue [21:14:02]wFMCommunicate request_size=4 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 09 00 00 [21:14:02]Write to MH i2c: E2 08 00 98 04 80 09 00 00 00 00 00 00 0E [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [21:14:02]RAPDU: 90 00 [21:14:02]wFMCommunicate OK [21:14:02]SAM_PROTO_ClearQueue done [21:14:02]KKMCreateOFDPacket [21:14:02]OFDProtocolAddRootSTLVToBuf [21:14:02]FM_MakeSignedData [21:14:02]FM_MakeSignedData [21:14:02]SAM_PROTO_SignData [21:14:02]wFMCommunicate request_size=4 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 0D 01 02 [21:14:02]Write to MH i2c: E2 08 00 99 04 80 0D 01 02 00 00 00 00 16 [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [21:14:02]RAPDU: 90 00 [21:14:02]wFMCommunicate OK [21:14:02]wFMCommunicate request_size=255 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1A 4B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 [21:14:02]Write to MH i2c: E2 02 01 9A 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1A 4B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 00 00 79 [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [21:14:02]RAPDU: 90 00 [21:14:02]wFMCommunicate OK [21:14:02]wFMCommunicate request_size=33 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E2 06 00 00 35 04 06 00 0A 11 DD B1 80 04 [21:14:02]Write to MH i2c: E2 24 00 9B 04 80 0D 02 02 1C 00 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E2 06 00 00 35 04 06 00 0A 11 DD B1 80 04 00 00 C0 [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [21:14:02]RAPDU: 90 00 [21:14:02]wFMCommunicate OK [21:14:02]wFMCommunicate request_size=4 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 0D 03 02 [21:14:02]Write to MH i2c: E2 08 00 9C 04 80 0D 03 02 00 00 00 00 1B [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0B 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0B 00 9C 04 00 A7 4F 03 F5 6A CB 56 97 90 00 2C [21:14:02]RAPDU: A7 4F 03 F5 6A CB 56 97 90 00 [21:14:02]wFMCommunicate OK [21:14:02]SAM_PROTO_SignData done [21:14:02]FM_MakeSignedData done [21:14:02]CreateOFDProtocolMessage [21:14:02]wFMCommunicate request_size=4 [21:14:02]MH_SAM_APDU [21:14:02]CAPDU: 80 11 00 00 [21:14:02]Write to MH i2c: E2 08 00 9D 04 80 11 00 00 00 00 00 00 1B [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 17 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 17 00 9D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 71 [21:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:14:02]wFMCommunicate OK [21:14:02]CreateOFDProtocolMessage done [21:14:02]OFDSenderStorePacket 1762 [21:14:02]StoreOFDPacket docnum=1762 [21:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 26 01 00 00 9B 8C 1E 01 60 A3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1A 4B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E2 06 00 00 35 04 06 00 0A 11 DD B1 80 04 A7 4F 03 F5 6A CB 56 97 [21:14:02]CheckFolder [21:14:02]dirname=/storage/ofd_packets [21:14:02]CheckFolder done [21:14:02]ProducePacketName [21:14:02]name=ofd_packets/00001762 [21:14:02]NVStorageSaveData ofd_packets/00001762 [21:14:02]File name is /storage/ofd_packets/00001762 [21:14:02]Write 324 bytes [21:14:02]NVStorageSaveData done [21:14:02]OFDSenderStorePacket done [21:14:02]KKMCreateOFDPacket done [21:14:02]NVStorageSaveData kkm_last_timestamp [21:14:02]File name is /storage/kkm_last_timestamp [21:14:02]Write 4 bytes [21:14:02]NVStorageSaveData done [21:14:02]ExternCall_PrintAddStr [21:14:02]wPrintStart [21:14:02]Write to MH i2c: 01 00 00 9E 04 A2 [21:14:02]Write i2c OK [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: 01 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: 01 07 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FF 0F B7 [21:14:02]RasterBufferAndPrint [21:14:02]line Счет N : (3)256232 [21:14:02]line ИНН: 02508201610067 [21:14:02]line Контрольно-Кассовый Чек [21:14:02]line ПРОДАЖА [21:14:02]line Товар: 2000036240010 [21:14:02]line Кофе Латте (GABB TRADE) [21:14:02]line 1.000 * 115.00 [21:14:02]line = 115.00 [21:14:02]line НДС 12% НСП 1% [21:14:02]line > о реализуемом товаре [21:14:02]line ИТОГО: 115.00 [21:14:02]line НСП 1% : 1.02 [21:14:02]line НДС 12% : 12.21 [21:14:02]line Наличными: 115.00 [21:14:02]line Безнал.: 0.00 [21:14:02]line Место: АЗС № 76 "Партнер Нефть" [21:14:02]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:14:02]line СНО: Общий режим [21:14:02]line Чек 78 11.07.2024 21:14 [21:14:02]line Смена: 22 ФФД: 1.0 [21:14:02]line ЗНМ: 0300000124 [21:14:02]line РНМ: 0000000000177495 [21:14:02]line Версия ККМ: 001 [21:14:02]line ФМ: 0000000002098592 [21:14:02]line ФД: 1762 [21:14:02]line ФПД: 11071850119172 [21:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T211402&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1762&fm=11071850119172&tin=02508201610067®Number=0000000000177495&sum=11500 [21:14:03]line 0 [21:14:03]OFD Sender: Processing packet 1762 [packets to send 1, broken 0] [21:14:03]ProducePacketName [21:14:03]name=ofd_packets/00001762 [21:14:03]OFD Sender: To server: pG, [21:14:03]CommunicateWithHost lk.salyk.kg:30040 [21:14:03]ConnectInit lk.salyk.kg [21:14:03]written 0, free lines is 4095 [21:14:03]Connected sock=10 [21:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 26 01 00 00 9B 8C 1E 01 60 A3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1A 4B 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E2 06 00 00 35 04 06 00 0A 11 DD B1 80 04 A7 4F 03 F5 6A CB 56 97 [21:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 75 2D 47 00 BD BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E2 06 00 00 F4 03 04 00 54 F6 8F 66 B6 04 01 00 00 65 28 64 DD 62 22 90 FC [21:14:03]CommunicateWithHost err = 0 [21:14:03]CheckOFDResponse [21:14:03]1017 (14) - 77093643461234 [21:14:03]1041 (16) - 0000000002098592 [21:14:03]1040 (4) - 1762 [21:14:03]1012 (4) - 11.07.2024 15:12 [21:14:03]1206 (1) - 0 [21:14:03]OFD Sender: Remove packet 1762 [21:14:03]ProducePacketName [21:14:03]name=ofd_packets/00001762 [21:14:03]NVStorageDeleteData [21:14:03]Write to MH i2c: 01 00 00 C6 04 CA [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: 01 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: 01 07 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 12 0D F0 [21:14:03]RasterBufferAndPrint [21:14:03]line [21:14:03]line [21:14:03]line [21:14:03]line [21:14:03]line [21:14:03]written 0, free lines is 3353 [21:14:03]MH_Cut [21:14:03]Write to MH i2c: D1 01 00 CD 04 01 A3 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: D1 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: D1 01 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: D1 01 00 CD 04 00 A2 [21:14:03]Write to MH i2c: 01 00 00 CE 04 D2 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]OFD Sender: No OFD packet to send [21:14:04]*** Cut start [21:14:04]*** Partial cut [21:14:04]*** CUTSNS_PIN = 1 [21:14:04]*** CUTSNS_PIN = 0 [21:14:04]*** Brake cut motor [21:14:04]Read from MH i2c: 01 [21:14:04]MH_I2C_Read... [21:14:04]*** Stop cut motor [21:14:04]*** Cut end [21:14:04]Read from MH i2c: 01 07 00 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [21:14:04]process_action close_receipt done [21:14:04]requested_data is exist [21:14:04]produce_requested_data [21:14:04]requested_item fm.sn is exist - process it [21:14:04]wFMCommunicate request_size=4 [21:14:04]MH_SAM_APDU [21:14:04]CAPDU: 80 11 00 00 [21:14:04]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [21:14:04]Write i2c OK [21:14:04]MH_I2C_Read... [21:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:04]Read from MH i2c: E2 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: E2 17 00 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A3 [21:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:14:04]wFMCommunicate OK [21:14:04]requested_item fd.num is exist - process it [21:14:04]SAM_PROTO_GetFieldsCounters [21:14:04]wFMCommunicate request_size=4 [21:14:04]MH_SAM_APDU [21:14:04]CAPDU: 80 13 00 00 [21:14:04]Write to MH i2c: E2 08 00 D0 04 80 13 00 00 00 00 00 00 50 [21:14:04]Write i2c OK [21:14:04]MH_I2C_Read... [21:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:05]Read from MH i2c: E2 [21:14:05]MH_I2C_Read... [21:14:05]Read from MH i2c: E2 62 00 [21:14:05]MH_I2C_Read... [21:14:05]Read from MH i2c: E2 62 00 D0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E2 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E2 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:05]wFMCommunicate OK [21:14:05]SAM_PROTO_GetFieldsCounters done [21:14:05]requested_item shift.num is exist - process it [21:14:05]requested_item shift.opened is exist - process it [21:14:05]req_shift_opened [21:14:05]FM_GetShiftState [21:14:05]SAM_PROTO_GetShiftState [21:14:05]wFMCommunicate request_size=4 [21:14:05]MH_SAM_APDU [21:14:05]CAPDU: 80 13 01 00 [21:14:05]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [21:14:05]Write i2c OK [21:14:05]MH_I2C_Read... [21:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:05]Read from MH i2c: E2 [21:14:05]MH_I2C_Read... [21:14:05]Read from MH i2c: E2 0E 00 [21:14:05]MH_I2C_Read... [21:14:05]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 B0 [21:14:05]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:14:05]wFMCommunicate OK [21:14:05]SAM_PROTO_GetShiftState done [21:14:05]FM_GetShiftState done [21:14:05]req_shift_opened done [21:14:05]requested_item shift.open_date is exist - process it [21:14:05]req_shift_open_date [21:14:05]req_shift_open_date done [21:14:05]produce_requested_data done [21:14:05]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1762,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [21:14:05]process_action_free close_receipt [21:14:05]json_value_free [21:14:05]json_value_free done [21:14:05]process_json_proto returns [21:14:05]Send response to host [21:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1762,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [21:14:05]free response buf [21:14:05]execute_script done [21:14:05]execute_script returns [21:14:05]free content buf [21:14:05]Sock 8.Close socket [21:14:05]Sock 8.Thread stoped [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:00]accept exits with 9 [21:50:00]New connection [21:50:00]New thread 3067555172 created [21:50:00]Thread 3067411812 joined [21:50:00]Waiting for new connection... [21:50:00] Sock 9.Parse request [21:50:00]Sock 9.Check first char [21:50:00]Sock 9.First char is OK [21:50:00]request: POST /json_proto HTTP/1.0 [21:50:00]Method: POST [21:50:00]URL: /json_proto [21:50:00]Method is POST - this is cgi request [21:50:00]url: /json_proto [21:50:00]query_string will be loaded in cgi processing [21:50:00]execute_cgi json_proto POST (null) [21:50:00]execute_cgi path=json_proto method=POST [21:50:00]POST find Content-Length [21:50:00]Host: 172.17.35.133:8080 [21:50:00]Content-Length: 897 [21:50:00]Content-Type: application/json [21:50:00] [21:50:00]POST finish read [21:50:00]Found Content-Length = 897 [21:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256233", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:00]execute_script... [21:50:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256233", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:00]POST & json_proto [21:50:00]process_json_proto [21:50:00]json parsed OK: [21:50:00]protocol is kg_v1.0 [21:50:00]action value=close_receipt [21:50:00]process_action close_receipt [21:50:00]cmd_close_receipt [21:50:00]MH_GetDate [21:50:00]Write to MH i2c: F0 00 00 D2 04 C5 [21:50:00]Write i2c OK [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: F0 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: F0 09 00 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: F0 09 00 D2 04 00 8A 53 90 66 1B 28 2A 66 74 [21:50:00]GetLastDocTimeStamp 1720732442 [21:50:00]current date 1720734602 [21:50:00]FM_GetShiftState [21:50:00]SAM_PROTO_GetShiftState [21:50:00]wFMCommunicate request_size=4 [21:50:00]MH_SAM_APDU [21:50:00]CAPDU: 80 13 01 00 [21:50:00]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [21:50:00]Write i2c OK [21:50:00]MH_I2C_Read... [21:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:01]Read from MH i2c: E2 [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: E2 0E 00 [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 B2 [21:50:01]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:50:01]wFMCommunicate OK [21:50:01]SAM_PROTO_GetShiftState done [21:50:01]FM_GetShiftState done [21:50:01]opened in 1720656698 [21:50:01]opened+sec_in_day 1720743098 [21:50:01]quantity*price = 9500 [21:50:01]sum+1 = 9501 [21:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 79 11.07.2024 21:50 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1763 ФПД: 215466593267152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T215002&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1763&fm=215466593267152&tin=02508201610067®Number=0000000000177495&sum=9500 0 [21:50:02]StoreToDocumentArchive [21:50:02]shift 22 fd 1763 [21:50:02]save to /storage/0022/doc_00001763 [21:50:02]save last doc name /storage/0022/doc_00001763 to /storage/kkm_last_doc_name [21:50:02]save OK [21:50:02]Clear old archive folders... [21:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:50:02]tlvbuf is 00105680 [21:50:02]SAM_PROTO_ClearQueue [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 09 00 00 [21:50:02]Write to MH i2c: E2 08 00 E0 04 80 09 00 00 00 00 00 00 56 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [21:50:02]RAPDU: 90 00 [21:50:02]wFMCommunicate OK [21:50:02]SAM_PROTO_ClearQueue done [21:50:02]KKMCreateOFDPacket [21:50:02]OFDProtocolAddRootSTLVToBuf [21:50:02]FM_MakeSignedData [21:50:02]FM_MakeSignedData [21:50:02]SAM_PROTO_SignData [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 0D 01 02 [21:50:02]Write to MH i2c: E2 08 00 E1 04 80 0D 01 02 00 00 00 00 5E [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [21:50:02]RAPDU: 90 00 [21:50:02]wFMCommunicate OK [21:50:02]wFMCommunicate request_size=255 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:50:02]Write to MH i2c: E2 02 01 E2 04 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 C7 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [21:50:02]RAPDU: 90 00 [21:50:02]wFMCommunicate OK [21:50:02]wFMCommunicate request_size=58 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E3 06 00 00 35 04 06 00 C3 F7 39 C0 AD D0 [21:50:02]Write to MH i2c: E2 3D 00 E3 04 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E3 06 00 00 35 04 06 00 C3 F7 39 C0 AD D0 00 00 74 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [21:50:02]RAPDU: 90 00 [21:50:02]wFMCommunicate OK [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 0D 03 02 [21:50:02]Write to MH i2c: E2 08 00 E4 04 80 0D 03 02 00 00 00 00 63 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 0B 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 0B 00 E4 04 00 C4 D0 21 21 54 5A 90 57 90 00 CF [21:50:02]RAPDU: C4 D0 21 21 54 5A 90 57 90 00 [21:50:02]wFMCommunicate OK [21:50:02]SAM_PROTO_SignData done [21:50:02]FM_MakeSignedData done [21:50:02]CreateOFDProtocolMessage [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 11 00 00 [21:50:02]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 17 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B9 [21:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:50:02]wFMCommunicate OK [21:50:02]CreateOFDProtocolMessage done [21:50:02]OFDSenderStorePacket 1763 [21:50:02]StoreOFDPacket docnum=1763 [21:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3F 01 00 00 A5 5B 37 01 1B 95 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E3 06 00 00 35 04 06 00 C3 F7 39 C0 AD D0 C4 D0 21 21 54 5A 90 57 [21:50:02]CheckFolder [21:50:02]dirname=/storage/ofd_packets [21:50:02]CheckFolder done [21:50:02]ProducePacketName [21:50:02]name=ofd_packets/00001763 [21:50:02]NVStorageSaveData ofd_packets/00001763 [21:50:02]File name is /storage/ofd_packets/00001763 [21:50:02]Write 349 bytes [21:50:02]NVStorageSaveData done [21:50:02]OFDSenderStorePacket done [21:50:02]KKMCreateOFDPacket done [21:50:02]NVStorageSaveData kkm_last_timestamp [21:50:02]File name is /storage/kkm_last_timestamp [21:50:02]Write 4 bytes [21:50:02]NVStorageSaveData done [21:50:02]OFD Sender: Processing packet 1763 [packets to send 1, broken 0] [21:50:02]ProducePacketName [21:50:02]name=ofd_packets/00001763 [21:50:02]OFD Sender: To server: pG, [21:50:02]CommunicateWithHost lk.salyk.kg:30040 [21:50:02]ConnectInit lk.salyk.kg [21:50:02]ExternCall_PrintAddStr [21:50:02]wPrintStart [21:50:02]Write to MH i2c: 01 00 00 E6 04 EA [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: 01 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: 01 07 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: 01 07 00 E6 04 00 00 00 00 00 FF 0F FF [21:50:02]RasterBufferAndPrint [21:50:02]line Счет N : (3)256233 [21:50:02]line ИНН: 02508201610067 [21:50:02]line Контрольно-Кассовый Чек [21:50:02]line ПРОДАЖА [21:50:02]line Товар: 4700000480364 [21:50:02]line Напиток энерг Nitro экзотик 0.45 ж/б [21:50:02]line 1.000 * 95.00 [21:50:02]line = 95.00 [21:50:02]line НДС 12% НСП 1% [21:50:02]line > о реализуемом товаре [21:50:02]line ИТОГО: 95.00 [21:50:02]line НСП 1% : 0.84 [21:50:02]line НДС 12% : 10.09 [21:50:02]line Наличными: 0.00 [21:50:02]line Безнал.: 95.00 [21:50:02]line Место: АЗС № 76 "Партнер Нефть" [21:50:02]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:50:02]line СНО: Общий режим [21:50:02]line Чек 79 11.07.2024 21:50 [21:50:02]line Смена: 22 ФФД: 1.0 [21:50:02]line ЗНМ: 0300000124 [21:50:02]line РНМ: 0000000000177495 [21:50:03]line Версия ККМ: 001 [21:50:03]line Платежная система: АКБ Кыргызстан [21:50:03]line ФМ: 0000000002098592 [21:50:03]line ФД: 1763 [21:50:03]line ФПД: 215466593267152 [21:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T215002&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1763&fm=215466593267152&tin=02508201610067®Number=0000000000177495&sum=9500 [21:50:03]line 0 [21:50:03]Connected sock=11 [21:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 3F 01 00 00 A5 5B 37 01 1B 95 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E3 06 00 00 35 04 06 00 C3 F7 39 C0 AD D0 C4 D0 21 21 54 5A 90 57 [21:50:03]written 0, free lines is 4095 [21:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 29 DE 47 00 82 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E3 06 00 00 F4 03 04 00 C4 FE 8F 66 B6 04 01 00 00 91 92 D5 D5 52 B4 FB 2D [21:50:03]CommunicateWithHost err = 0 [21:50:03]CheckOFDResponse [21:50:03]1017 (14) - 77093643461234 [21:50:03]1041 (16) - 0000000002098592 [21:50:03]1040 (4) - 1763 [21:50:03]1012 (4) - 11.07.2024 15:48 [21:50:03]1206 (1) - 0 [21:50:03]OFD Sender: Remove packet 1763 [21:50:03]ProducePacketName [21:50:03]name=ofd_packets/00001763 [21:50:03]NVStorageDeleteData [21:50:03]Write to MH i2c: 01 00 00 11 05 16 [21:50:03]Write i2c OK [21:50:03]MH_I2C_Read... [21:50:03]Read from MH i2c: 01 [21:50:03]MH_I2C_Read... [21:50:03]Read from MH i2c: 01 07 00 [21:50:03]MH_I2C_Read... [21:50:03]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 D3 0C FC [21:50:03]RasterBufferAndPrint [21:50:03]line [21:50:03]line [21:50:03]line [21:50:03]line [21:50:03]line [21:50:03]written 0, free lines is 3289 [21:50:03]MH_Cut [21:50:03]Write to MH i2c: D1 01 00 18 05 01 EF [21:50:03]Write i2c OK [21:50:03]MH_I2C_Read... [21:50:03]Read from MH i2c: D1 [21:50:03]MH_I2C_Read... [21:50:03]Read from MH i2c: D1 01 00 [21:50:03]MH_I2C_Read... [21:50:03]Read from MH i2c: D1 01 00 18 05 00 EE [21:50:03]Write to MH i2c: 01 00 00 19 05 1E [21:50:03]Write i2c OK [21:50:03]MH_I2C_Read... [21:50:03]OFD Sender: No OFD packet to send [21:50:04]*** Cut start [21:50:04]*** Partial cut [21:50:04]*** CUTSNS_PIN = 1 [21:50:04]*** CUTSNS_PIN = 0 [21:50:04]*** Brake cut motor [21:50:04]Read from MH i2c: 01 [21:50:04]MH_I2C_Read... [21:50:04]*** Stop cut motor [21:50:04]*** Cut end [21:50:04]Read from MH i2c: 01 07 00 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [21:50:04]process_action close_receipt done [21:50:04]requested_data is exist [21:50:04]produce_requested_data [21:50:04]requested_item fm.sn is exist - process it [21:50:04]wFMCommunicate request_size=4 [21:50:04]MH_SAM_APDU [21:50:04]CAPDU: 80 11 00 00 [21:50:04]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [21:50:04]Write i2c OK [21:50:04]MH_I2C_Read... [21:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:04]Read from MH i2c: E2 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: E2 17 00 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EF [21:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:50:04]wFMCommunicate OK [21:50:04]requested_item fd.num is exist - process it [21:50:04]SAM_PROTO_GetFieldsCounters [21:50:04]wFMCommunicate request_size=4 [21:50:04]MH_SAM_APDU [21:50:04]CAPDU: 80 13 00 00 [21:50:04]Write to MH i2c: E2 08 00 1B 05 80 13 00 00 00 00 00 00 9C [21:50:04]Write i2c OK [21:50:04]MH_I2C_Read... [21:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:05]Read from MH i2c: E2 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 62 00 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 62 00 1B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E3 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [21:50:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E3 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:05]wFMCommunicate OK [21:50:05]SAM_PROTO_GetFieldsCounters done [21:50:05]requested_item shift.num is exist - process it [21:50:05]requested_item shift.opened is exist - process it [21:50:05]req_shift_opened [21:50:05]FM_GetShiftState [21:50:05]SAM_PROTO_GetShiftState [21:50:05]wFMCommunicate request_size=4 [21:50:05]MH_SAM_APDU [21:50:05]CAPDU: 80 13 01 00 [21:50:05]Write to MH i2c: E2 08 00 1C 05 80 13 01 00 00 00 00 00 9E [21:50:05]Write i2c OK [21:50:05]MH_I2C_Read... [21:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:05]Read from MH i2c: E2 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 0E 00 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 0E 00 1C 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 FC [21:50:05]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [21:50:05]wFMCommunicate OK [21:50:05]SAM_PROTO_GetShiftState done [21:50:05]FM_GetShiftState done [21:50:05]req_shift_opened done [21:50:05]requested_item shift.open_date is exist - process it [21:50:05]req_shift_open_date [21:50:05]req_shift_open_date done [21:50:05]produce_requested_data done [21:50:05]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1763,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [21:50:05]process_action_free close_receipt [21:50:05]json_value_free [21:50:05]json_value_free done [21:50:05]process_json_proto returns [21:50:05]Send response to host [21:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1763,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [21:50:05]free response buf [21:50:05]execute_script done [21:50:05]execute_script returns [21:50:05]free content buf [21:50:05]Sock 9.Close socket [21:50:05]Sock 9.Thread stoped [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:18]recv_with_timeout no data received [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:19]ConnectInit Can't connect to host [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:09]recv_with_timeout no data received [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:26]recv_with_timeout no data received [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:38]recv_with_timeout no data received [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:17]recv_with_timeout no data received [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]recv_with_timeout no data received [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:07]recv_with_timeout no data received [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]recv_with_timeout no data received [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:49]ConnectInit Can't connect to host [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:31]accept exits with 8 [23:20:31]New connection [23:20:31]New thread 3067411812 created [23:20:31]Thread 3067555172 joined [23:20:31]Waiting for new connection... [23:20:31] Sock 8.Parse request [23:20:31]Sock 8.Check first char [23:20:31]Sock 8.First char is OK [23:20:31]request: POST /json_proto HTTP/1.0 [23:20:31]Method: POST [23:20:31]URL: /json_proto [23:20:31]Method is POST - this is cgi request [23:20:31]url: /json_proto [23:20:31]query_string will be loaded in cgi processing [23:20:31]execute_cgi json_proto POST (null) [23:20:31]execute_cgi path=json_proto method=POST [23:20:31]POST find Content-Length [23:20:31]Host: 172.17.35.133:8080 [23:20:31]Content-Length: 861 [23:20:31]Content-Type: application/json [23:20:31] [23:20:31]POST finish read [23:20:31]Found Content-Length = 861 [23:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256234", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:31]execute_script... [23:20:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256234", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:31]POST & json_proto [23:20:31]process_json_proto [23:20:31]json parsed OK: [23:20:31]protocol is kg_v1.0 [23:20:31]action value=close_receipt [23:20:31]process_action close_receipt [23:20:31]cmd_close_receipt [23:20:31]MH_GetDate [23:20:31]Write to MH i2c: F0 00 00 1D 05 11 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: F0 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: F0 09 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: F0 09 00 1D 05 00 C0 68 90 66 1B 28 2A 66 0B [23:20:31]GetLastDocTimeStamp 1720734602 [23:20:31]current date 1720740032 [23:20:31]FM_GetShiftState [23:20:31]SAM_PROTO_GetShiftState [23:20:31]wFMCommunicate request_size=4 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 13 01 00 [23:20:31]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 0E 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 FE [23:20:31]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:20:31]wFMCommunicate OK [23:20:31]SAM_PROTO_GetShiftState done [23:20:31]FM_GetShiftState done [23:20:31]opened in 1720656698 [23:20:31]opened+sec_in_day 1720743098 [23:20:31]quantity*price = 8500 [23:20:31]sum+1 = 8501 [23:20:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173808 Жев Orbit Sweet Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.81 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 80 11.07.2024 23:20 Смена: 22 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1764 ФПД: 93726102329583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T232032&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1764&fm=93726102329583&tin=02508201610067®Number=0000000000177495&sum=13000 0 [23:20:32]StoreToDocumentArchive [23:20:32]shift 22 fd 1764 [23:20:32]save to /storage/0022/doc_00001764 [23:20:32]save last doc name /storage/0022/doc_00001764 to /storage/kkm_last_doc_name [23:20:32]save OK [23:20:32]Clear old archive folders... [23:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=371 [23:20:32]tlvbuf is 00106F90 [23:20:32]SAM_PROTO_ClearQueue [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 09 00 00 [23:20:32]Write to MH i2c: E2 08 00 2B 05 80 09 00 00 00 00 00 00 A2 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [23:20:32]RAPDU: 90 00 [23:20:32]wFMCommunicate OK [23:20:32]SAM_PROTO_ClearQueue done [23:20:32]KKMCreateOFDPacket [23:20:32]OFDProtocolAddRootSTLVToBuf [23:20:32]FM_MakeSignedData [23:20:32]FM_MakeSignedData [23:20:32]SAM_PROTO_SignData [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 0D 01 02 [23:20:32]Write to MH i2c: E2 08 00 2C 05 80 0D 01 02 00 00 00 00 AA [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [23:20:32]RAPDU: 90 00 [23:20:32]wFMCommunicate OK [23:20:32]wFMCommunicate request_size=255 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 [23:20:32]Write to MH i2c: E2 02 01 2D 05 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 27 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [23:20:32]RAPDU: 90 00 [23:20:32]wFMCommunicate OK [23:20:32]wFMCommunicate request_size=130 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 68 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E4 06 00 00 35 04 06 00 55 3E 4F 09 18 EF [23:20:32]Write to MH i2c: E2 85 00 2E 05 80 0D 02 02 7D 00 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 68 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E4 06 00 00 35 04 06 00 55 3E 4F 09 18 EF 00 00 AD [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [23:20:32]RAPDU: 90 00 [23:20:32]wFMCommunicate OK [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 0D 03 02 [23:20:32]Write to MH i2c: E2 08 00 2F 05 80 0D 03 02 00 00 00 00 AF [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 0B 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 0B 00 2F 05 00 44 FC CD 7B 4E 2E 5E D8 90 00 EA [23:20:32]RAPDU: 44 FC CD 7B 4E 2E 5E D8 90 00 [23:20:32]wFMCommunicate OK [23:20:32]SAM_PROTO_SignData done [23:20:32]FM_MakeSignedData done [23:20:32]CreateOFDProtocolMessage [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 11 00 00 [23:20:32]Write to MH i2c: E2 08 00 30 05 80 11 00 00 00 00 00 00 AF [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]OFD Sender: No OFD packet to send [23:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 17 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 17 00 30 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 05 [23:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:20:32]wFMCommunicate OK [23:20:32]CreateOFDProtocolMessage done [23:20:32]OFDSenderStorePacket 1764 [23:20:32]StoreOFDPacket docnum=1764 [23:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 87 01 00 00 26 74 7F 01 B2 90 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 68 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E4 06 00 00 35 04 06 00 55 3E 4F 09 18 EF 44 FC CD 7B 4E 2E 5E D8 [23:20:32]CheckFolder [23:20:32]dirname=/storage/ofd_packets [23:20:32]CheckFolder done [23:20:32]ProducePacketName [23:20:32]name=ofd_packets/00001764 [23:20:32]NVStorageSaveData ofd_packets/00001764 [23:20:32]File name is /storage/ofd_packets/00001764 [23:20:32]Write 421 bytes [23:20:32]NVStorageSaveData done [23:20:32]OFDSenderStorePacket done [23:20:32]KKMCreateOFDPacket done [23:20:32]NVStorageSaveData kkm_last_timestamp [23:20:32]File name is /storage/kkm_last_timestamp [23:20:32]Write 4 bytes [23:20:32]NVStorageSaveData done [23:20:32]ExternCall_PrintAddStr [23:20:32]wPrintStart [23:20:32]Write to MH i2c: 01 00 00 31 05 36 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: 01 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: 01 07 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 FF 0F 4B [23:20:32]RasterBufferAndPrint [23:20:32]line Счет N : (3)256234 [23:20:32]line ИНН: 02508201610067 [23:20:32]line Контрольно-Кассовый Чек [23:20:32]line ПРОДАЖА [23:20:32]line Товар: 5449000000996 [23:20:33]line Напиток Кока-Кола 0,33л [23:20:33]line 1.000 * 85.00 [23:20:33]line = 85.00 [23:20:33]line НДС 12% НСП 1% [23:20:33]line > о реализуемом товаре [23:20:33]line Товар: 50173808 [23:20:33]line Жев Orbit Sweet Mint [23:20:33]line 1.000 * 45.00 [23:20:33]line = 45.00 [23:20:33]line НДС 12% НСП 1% [23:20:33]line > о реализуемом товаре [23:20:33]line ИТОГО: 130.00 [23:20:33]line НСП 1% : 1.15 [23:20:33]line НДС 12% : 13.81 [23:20:33]line Наличными: 130.00 [23:20:33]line Безнал.: 0.00 [23:20:33]line Место: АЗС № 76 "Партнер Нефть" [23:20:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [23:20:33]line СНО: Общий режим [23:20:33]line Чек 80 11.07.2024 23:20 [23:20:33]line Смена: 22 ФФД: 1.0 [23:20:33]line ЗНМ: 0300000124 [23:20:33]line РНМ: 0000000000177495 [23:20:33]line Версия ККМ: 001 [23:20:33]line ФМ: 0000000002098592 [23:20:33]line ФД: 1764 [23:20:33]line ФПД: 93726102329583 [23:20:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240711T232032&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1764&fm=93726102329583&tin=02508201610067®Number=0000000000177495&sum=13000 [23:20:33]OFD Sender: Processing packet 1764 [packets to send 1, broken 0] [23:20:33]line 0 [23:20:33]ProducePacketName [23:20:33]name=ofd_packets/00001764 [23:20:33]OFD Sender: To server: pG, [23:20:33]CommunicateWithHost lk.salyk.kg:30040 [23:20:33]ConnectInit lk.salyk.kg [23:20:33]written 0, free lines is 4095 [23:20:33]Write to MH i2c: 01 00 00 5F 05 64 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: 01 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: 01 07 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 BB 0C 32 [23:20:33]RasterBufferAndPrint [23:20:33]line [23:20:33]line [23:20:33]line [23:20:33]line [23:20:33]line [23:20:33]written 0, free lines is 3265 [23:20:33]MH_Cut [23:20:33]Write to MH i2c: D1 01 00 66 05 01 3D [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: D1 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: D1 01 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: D1 01 00 66 05 00 3C [23:20:33]Write to MH i2c: 01 00 00 67 05 6C [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:34]*** Cut start [23:20:34]*** Partial cut [23:20:34]*** CUTSNS_PIN = 1 [23:20:34]*** CUTSNS_PIN = 0 [23:20:34]*** Brake cut motor [23:20:35]Read from MH i2c: 01 [23:20:35]MH_I2C_Read... [23:20:35]*** Stop cut motor [23:20:35]*** Cut end [23:20:35]Read from MH i2c: 01 07 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 FF 0F 81 [23:20:35]process_action close_receipt done [23:20:35]requested_data is exist [23:20:35]produce_requested_data [23:20:35]requested_item fm.sn is exist - process it [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 11 00 00 [23:20:35]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3D [23:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:20:35]wFMCommunicate OK [23:20:35]requested_item fd.num is exist - process it [23:20:35]SAM_PROTO_GetFieldsCounters [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 00 00 [23:20:35]Write to MH i2c: E2 08 00 69 05 80 13 00 00 00 00 00 00 EA [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 62 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 62 00 69 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [23:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:35]wFMCommunicate OK [23:20:35]SAM_PROTO_GetFieldsCounters done [23:20:35]requested_item shift.num is exist - process it [23:20:35]requested_item shift.opened is exist - process it [23:20:35]req_shift_opened [23:20:35]FM_GetShiftState [23:20:35]SAM_PROTO_GetShiftState [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 01 00 [23:20:35]Write to MH i2c: E2 08 00 6A 05 80 13 01 00 00 00 00 00 EC [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 0E 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 0E 00 6A 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 4A [23:20:35]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:20:35]wFMCommunicate OK [23:20:35]SAM_PROTO_GetShiftState done [23:20:35]FM_GetShiftState done [23:20:35]req_shift_opened done [23:20:35]requested_item shift.open_date is exist - process it [23:20:35]req_shift_open_date [23:20:35]req_shift_open_date done [23:20:35]produce_requested_data done [23:20:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [23:20:35]process_action_free close_receipt [23:20:35]json_value_free [23:20:35]json_value_free done [23:20:35]process_json_proto returns [23:20:35]Send response to host [23:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [23:20:35]free response buf [23:20:35]execute_script done [23:20:35]execute_script returns [23:20:35]free content buf [23:20:35]Sock 8.Close socket [23:20:35]Sock 8.Thread stoped [23:20:38]ConnectInit Can't take IP for lk.salyk.kg [23:20:38]CommunicateWithHost connect error [23:20:38]CommunicateWithHost err = -1 [23:20:38]OFD Sender: Server communicate error [23:20:43]OFD Sender: Processing packet 1764 [packets to send 1, broken 0] [23:20:43]ProducePacketName [23:20:43]name=ofd_packets/00001764 [23:20:43]OFD Sender: To server: pG, [23:20:43]CommunicateWithHost lk.salyk.kg:30040 [23:20:43]ConnectInit lk.salyk.kg [23:20:48]ConnectInit Can't take IP for lk.salyk.kg [23:20:48]CommunicateWithHost connect error [23:20:48]CommunicateWithHost err = -1 [23:20:48]OFD Sender: Server communicate error [23:20:53]OFD Sender: Processing packet 1764 [packets to send 1, broken 0] [23:20:53]ProducePacketName [23:20:53]name=ofd_packets/00001764 [23:20:53]OFD Sender: To server: pG, [23:20:53]CommunicateWithHost lk.salyk.kg:30040 [23:20:53]ConnectInit lk.salyk.kg [23:20:58]ConnectInit Can't take IP for lk.salyk.kg [23:20:58]CommunicateWithHost connect error [23:20:58]CommunicateWithHost err = -1 [23:20:58]OFD Sender: Server communicate error [23:21:03]OFD Sender: Processing packet 1764 [packets to send 1, broken 0] [23:21:03]ProducePacketName [23:21:03]name=ofd_packets/00001764 [23:21:03]OFD Sender: To server: pG, [23:21:03]CommunicateWithHost lk.salyk.kg:30040 [23:21:03]ConnectInit lk.salyk.kg [23:21:08]ConnectInit Can't take IP for lk.salyk.kg [23:21:08]CommunicateWithHost connect error [23:21:08]CommunicateWithHost err = -1 [23:21:08]OFD Sender: Server communicate error [23:21:13]OFD Sender: Processing packet 1764 [packets to send 1, broken 0] [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00001764 [23:21:13]OFD Sender: To server: pG, [23:21:13]CommunicateWithHost lk.salyk.kg:30040 [23:21:13]ConnectInit lk.salyk.kg [23:21:15]Connected sock=8 [23:21:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 87 01 00 00 26 74 7F 01 B2 90 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 68 90 66 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E4 06 00 00 35 04 06 00 55 3E 4F 09 18 EF 44 FC CD 7B 4E 2E 5E D8 [23:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 38 1B 47 00 99 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E4 06 00 00 F4 03 04 00 24 14 90 66 B6 04 01 00 00 D8 54 09 1A 77 BD 84 84 [23:21:15]CommunicateWithHost err = 0 [23:21:15]CheckOFDResponse [23:21:15]1017 (14) - 77093643461234 [23:21:15]1041 (16) - 0000000002098592 [23:21:15]1040 (4) - 1764 [23:21:15]1012 (4) - 11.07.2024 17:19 [23:21:15]1206 (1) - 0 [23:21:15]OFD Sender: Remove packet 1764 [23:21:15]ProducePacketName [23:21:15]name=ofd_packets/00001764 [23:21:15]NVStorageDeleteData [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:39]recv_with_timeout no data received [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:54]recv_with_timeout no data received [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:45]ConnectInit Can't connect to host [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:24]recv_with_timeout no data received [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:15]ConnectInit Can't connect to host [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:41]accept exits with 10 [23:49:41]New connection [23:49:41]New thread 3067555172 created [23:49:41]Thread 3067411812 joined [23:49:41]Waiting for new connection... [23:49:41] Sock 10.Parse request [23:49:41]Sock 10.Check first char [23:49:41]Sock 10.First char is OK [23:49:41]request: POST /json_proto HTTP/1.0 [23:49:41]Method: POST [23:49:41]URL: /json_proto [23:49:41]Method is POST - this is cgi request [23:49:41]url: /json_proto [23:49:41]query_string will be loaded in cgi processing [23:49:41]execute_cgi json_proto POST (null) [23:49:41]execute_cgi path=json_proto method=POST [23:49:41]POST find Content-Length [23:49:41]Host: 172.17.35.133:8080 [23:49:41]Content-Length: 215 [23:49:41]Content-Type: application/json [23:49:41] [23:49:41]POST finish read [23:49:41]Found Content-Length = 215 [23:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:41]execute_script... [23:49:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:41]POST & json_proto [23:49:41]process_json_proto [23:49:41]json parsed OK: [23:49:41]protocol is kg_v1.0 [23:49:41]action value=get_value [23:49:41]process_action get_value [23:49:41]cmd_get_value [23:49:41]process_action get_value done [23:49:41]requested_data is exist [23:49:41]produce_requested_data [23:49:41]requested_item kkm.sn is exist - process it [23:49:41]requested_item kkm.ver is exist - process it [23:49:41]requested_item fm.sn is exist - process it [23:49:41]wFMCommunicate request_size=4 [23:49:41]MH_SAM_APDU [23:49:41]CAPDU: 80 11 00 00 [23:49:41]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:41]Read from MH i2c: E2 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 17 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 40 [23:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:49:41]wFMCommunicate OK [23:49:41]requested_item fd.num is exist - process it [23:49:41]SAM_PROTO_GetFieldsCounters [23:49:41]wFMCommunicate request_size=4 [23:49:41]MH_SAM_APDU [23:49:41]CAPDU: 80 13 00 00 [23:49:41]Write to MH i2c: E2 08 00 6C 05 80 13 00 00 00 00 00 00 ED [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:41]Read from MH i2c: E2 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 62 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 62 00 6C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [23:49:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:41]wFMCommunicate OK [23:49:41]SAM_PROTO_GetFieldsCounters done [23:49:41]requested_item shift.num is exist - process it [23:49:41]requested_item shift.opened is exist - process it [23:49:41]req_shift_opened [23:49:41]FM_GetShiftState [23:49:41]SAM_PROTO_GetShiftState [23:49:41]wFMCommunicate request_size=4 [23:49:41]MH_SAM_APDU [23:49:41]CAPDU: 80 13 01 00 [23:49:41]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:41]Read from MH i2c: E2 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 0E 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 4D [23:49:41]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:49:41]wFMCommunicate OK [23:49:41]SAM_PROTO_GetShiftState done [23:49:41]FM_GetShiftState done [23:49:41]req_shift_opened done [23:49:41]requested_item shift.open_date is exist - process it [23:49:41]req_shift_open_date [23:49:41]req_shift_open_date done [23:49:41]produce_requested_data done [23:49:41]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [23:49:41]process_action_free get_value [23:49:41]json_value_free [23:49:41]json_value_free done [23:49:41]process_json_proto returns [23:49:41]Send response to host [23:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [23:49:41]free response buf [23:49:41]execute_script done [23:49:41]execute_script returns [23:49:41]free content buf [23:49:41]Sock 10.Close socket [23:49:41]Sock 10.Thread stoped [23:49:41]accept exits with 8 [23:49:41]New connection [23:49:41]New thread 3067411812 created [23:49:41]Thread 3067555172 joined [23:49:41]Waiting for new connection... [23:49:41] Sock 8.Parse request [23:49:41]Sock 8.Check first char [23:49:41]Sock 8.First char is OK [23:49:41]request: POST /json_proto HTTP/1.0 [23:49:41]Method: POST [23:49:41]URL: /json_proto [23:49:41]Method is POST - this is cgi request [23:49:41]url: /json_proto [23:49:41]query_string will be loaded in cgi processing [23:49:41]execute_cgi json_proto POST (null) [23:49:41]execute_cgi path=json_proto method=POST [23:49:41]POST find Content-Length [23:49:41]Host: 172.17.35.133:8080 [23:49:41]Content-Length: 331 [23:49:41]Content-Type: application/json [23:49:41] [23:49:41]POST finish read [23:49:41]Found Content-Length = 331 [23:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:41]execute_script... [23:49:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:41]POST & json_proto [23:49:41]process_json_proto [23:49:41]json parsed OK: [23:49:41]protocol is kg_v1.0 [23:49:41]action value=get_value [23:49:41]process_action get_value [23:49:41]cmd_get_value [23:49:41]process_action get_value done [23:49:41]requested_data is exist [23:49:41]produce_requested_data [23:49:41]requested_item fm.sale.total is exist - process it [23:49:41]SAM_PROTO_GetFMData [23:49:41]wFMCommunicate request_size=4 [23:49:41]MH_SAM_APDU [23:49:41]CAPDU: 80 13 03 00 [23:49:41]Write to MH i2c: E2 08 00 6E 05 80 13 03 00 00 00 00 00 F2 [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:42]Read from MH i2c: E2 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 6E 05 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 BB [23:49:42]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:49:42]wFMCommunicate OK [23:49:42]wFMCommunicate request_size=4 [23:49:42]MH_SAM_APDU [23:49:42]CAPDU: 80 17 00 00 [23:49:42]Write to MH i2c: E2 08 00 6F 05 80 17 00 00 00 00 00 00 F4 [23:49:42]Write i2c OK [23:49:42]MH_I2C_Read... [23:49:42]OFD Sender: No OFD packet to send [23:49:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:42]Read from MH i2c: E2 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 6F 05 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 F1 [23:49:42]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:49:42]wFMCommunicate OK [23:49:42]wFMCommunicate request_size=4 [23:49:42]MH_SAM_APDU [23:49:42]CAPDU: 80 17 00 00 [23:49:42]Write to MH i2c: E2 08 00 70 05 80 17 00 00 00 00 00 00 F5 [23:49:42]Write i2c OK [23:49:42]MH_I2C_Read... [23:49:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:42]Read from MH i2c: E2 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 70 05 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 21 [23:49:42]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:49:42]wFMCommunicate OK [23:49:42]wFMCommunicate request_size=4 [23:49:42]MH_SAM_APDU [23:49:42]CAPDU: 80 17 00 00 [23:49:42]Write to MH i2c: E2 08 00 71 05 80 17 00 00 00 00 00 00 F6 [23:49:42]Write i2c OK [23:49:42]MH_I2C_Read... [23:49:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:42]Read from MH i2c: E2 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 FD 00 71 05 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 6E [23:49:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:49:42]wFMCommunicate OK [23:49:42]wFMCommunicate request_size=4 [23:49:42]MH_SAM_APDU [23:49:42]CAPDU: 80 17 00 00 [23:49:42]Write to MH i2c: E2 08 00 72 05 80 17 00 00 00 00 00 00 F7 [23:49:42]Write i2c OK [23:49:42]MH_I2C_Read... [23:49:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:49:43]Read from MH i2c: E2 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 D7 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 D7 00 72 05 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [23:49:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:43]wFMCommunicate OK [23:49:43]SAM_PROTO_GetFMData done [23:49:43]requested_item fm.sale_refund.total is exist - process it [23:49:43]requested_item fm.buy.total is exist - process it [23:49:43]requested_item shift.sale.total is exist - process it [23:49:43]SAM_PROTO_GetShiftData [23:49:43]wFMCommunicate request_size=4 [23:49:43]MH_SAM_APDU [23:49:43]CAPDU: 80 13 02 00 [23:49:43]Write to MH i2c: E2 08 00 73 05 80 13 02 00 00 00 00 00 F6 [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:43]Read from MH i2c: E2 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 FD 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 FD 00 73 05 00 AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 CB [23:49:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:43]wFMCommunicate OK [23:49:43]wFMCommunicate request_size=4 [23:49:43]MH_SAM_APDU [23:49:43]CAPDU: 80 17 00 00 [23:49:43]Write to MH i2c: E2 08 00 74 05 80 17 00 00 00 00 00 00 F9 [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:43]Read from MH i2c: E2 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 FD 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 FD 00 74 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 1B [23:49:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:43]wFMCommunicate OK [23:49:43]wFMCommunicate request_size=4 [23:49:43]MH_SAM_APDU [23:49:43]CAPDU: 80 17 00 00 [23:49:43]Write to MH i2c: E2 08 00 75 05 80 17 00 00 00 00 00 00 FA [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 FD 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 FD 00 75 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B1 [23:49:44]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:44]wFMCommunicate OK [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 17 00 00 [23:49:44]Write to MH i2c: E2 08 00 76 05 80 17 00 00 00 00 00 00 FB [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 FD 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 FD 00 76 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 6D [23:49:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:44]wFMCommunicate OK [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 17 00 00 [23:49:44]Write to MH i2c: E2 08 00 77 05 80 17 00 00 00 00 00 00 FC [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 CB 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 CB 00 77 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E5 [23:49:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:44]wFMCommunicate OK [23:49:44]SAM_PROTO_GetShiftData done [23:49:44]requested_item shift.sale.total_cash is exist - process it [23:49:44]requested_item shift.sale_refund.total is exist - process it [23:49:44]requested_item shift.sale_refund.total_cash is exist - process it [23:49:44]requested_item shift.buy.total is exist - process it [23:49:44]requested_item shift.buy.total_cash is exist - process it [23:49:44]produce_requested_data done [23:49:44]produce_requested_data return {"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:44]process_action_free get_value [23:49:44]json_value_free [23:49:44]json_value_free done [23:49:44]process_json_proto returns [23:49:44]Send response to host [23:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:44]free response buf [23:49:44]execute_script done [23:49:44]execute_script returns [23:49:44]free content buf [23:49:44]Sock 8.Close socket [23:49:44]Sock 8.Thread stoped [23:49:44]accept exits with 9 [23:49:44]New connection [23:49:44]New thread 3067555172 created [23:49:44]Thread 3067411812 joined [23:49:44]Waiting for new connection... [23:49:44] Sock 9.Parse request [23:49:44]Sock 9.Check first char [23:49:44]Sock 9.First char is OK [23:49:44]request: POST /json_proto HTTP/1.0 [23:49:44]Method: POST [23:49:44]URL: /json_proto [23:49:44]Method is POST - this is cgi request [23:49:44]url: /json_proto [23:49:44]query_string will be loaded in cgi processing [23:49:44]execute_cgi json_proto POST (null) [23:49:44]execute_cgi path=json_proto method=POST [23:49:44]POST find Content-Length [23:49:44]Host: 172.17.35.133:8080 [23:49:44]Content-Length: 331 [23:49:44]Content-Type: application/json [23:49:44] [23:49:44]POST finish read [23:49:44]Found Content-Length = 331 [23:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:44]execute_script... [23:49:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:44]POST & json_proto [23:49:44]process_json_proto [23:49:44]json parsed OK: [23:49:44]protocol is kg_v1.0 [23:49:44]action value=get_value [23:49:44]process_action get_value [23:49:44]cmd_get_value [23:49:44]process_action get_value done [23:49:44]requested_data is exist [23:49:44]produce_requested_data [23:49:44]requested_item fm.sale.total is exist - process it [23:49:44]SAM_PROTO_GetFMData [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 13 03 00 [23:49:44]Write to MH i2c: E2 08 00 78 05 80 13 03 00 00 00 00 00 FC [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 FD 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 FD 00 78 05 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 C5 [23:49:45]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:49:45]wFMCommunicate OK [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 17 00 00 [23:49:45]Write to MH i2c: E2 08 00 79 05 80 17 00 00 00 00 00 00 FE [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 FD 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 FD 00 79 05 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 FB [23:49:45]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:49:45]wFMCommunicate OK [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 17 00 00 [23:49:45]Write to MH i2c: E2 08 00 7A 05 80 17 00 00 00 00 00 00 FF [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 FD 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 FD 00 7A 05 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 2B [23:49:46]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 17 00 00 [23:49:46]Write to MH i2c: E2 08 00 7B 05 80 17 00 00 00 00 00 00 00 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 FD 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 FD 00 7B 05 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 78 [23:49:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 17 00 00 [23:49:46]Write to MH i2c: E2 08 00 7C 05 80 17 00 00 00 00 00 00 01 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 D7 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 D7 00 7C 05 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [23:49:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:46]wFMCommunicate OK [23:49:46]SAM_PROTO_GetFMData done [23:49:46]requested_item fm.sale_refund.total is exist - process it [23:49:46]requested_item fm.buy.total is exist - process it [23:49:46]requested_item shift.sale.total is exist - process it [23:49:46]SAM_PROTO_GetShiftData [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 13 02 00 [23:49:46]Write to MH i2c: E2 08 00 7D 05 80 13 02 00 00 00 00 00 00 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 FD 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 FD 00 7D 05 00 AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D5 [23:49:47]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:47]wFMCommunicate OK [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 17 00 00 [23:49:47]Write to MH i2c: E2 08 00 7E 05 80 17 00 00 00 00 00 00 03 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]OFD Sender: No OFD packet to send [23:49:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 FD 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 FD 00 7E 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 25 [23:49:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:47]wFMCommunicate OK [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 17 00 00 [23:49:47]Write to MH i2c: E2 08 00 7F 05 80 17 00 00 00 00 00 00 04 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 FD 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 FD 00 7F 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 BB [23:49:48]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:48]wFMCommunicate OK [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 17 00 00 [23:49:48]Write to MH i2c: E2 08 00 80 05 80 17 00 00 00 00 00 00 05 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 FD 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 FD 00 80 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 77 [23:49:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:48]wFMCommunicate OK [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 17 00 00 [23:49:48]Write to MH i2c: E2 08 00 81 05 80 17 00 00 00 00 00 00 06 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 CB 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 CB 00 81 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EF [23:49:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:48]wFMCommunicate OK [23:49:48]SAM_PROTO_GetShiftData done [23:49:48]requested_item shift.sale.total_cash is exist - process it [23:49:48]requested_item shift.sale_refund.total is exist - process it [23:49:48]requested_item shift.sale_refund.total_cash is exist - process it [23:49:48]requested_item shift.buy.total is exist - process it [23:49:48]requested_item shift.buy.total_cash is exist - process it [23:49:48]produce_requested_data done [23:49:48]produce_requested_data return {"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:48]process_action_free get_value [23:49:48]json_value_free [23:49:48]json_value_free done [23:49:48]process_json_proto returns [23:49:48]Send response to host [23:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:48]free response buf [23:49:48]execute_script done [23:49:48]execute_script returns [23:49:48]free content buf [23:49:48]Sock 9.Close socket [23:49:48]Sock 9.Thread stoped [23:49:48]accept exits with 8 [23:49:48]New connection [23:49:48]New thread 3067411812 created [23:49:48]Thread 3067555172 joined [23:49:48]Waiting for new connection... [23:49:48] Sock 8.Parse request [23:49:48]Sock 8.Check first char [23:49:48]Sock 8.First char is OK [23:49:48]request: POST /json_proto HTTP/1.0 [23:49:48]Method: POST [23:49:48]URL: /json_proto [23:49:48]Method is POST - this is cgi request [23:49:48]url: /json_proto [23:49:48]query_string will be loaded in cgi processing [23:49:48]execute_cgi json_proto POST (null) [23:49:48]execute_cgi path=json_proto method=POST [23:49:48]POST find Content-Length [23:49:48]Host: 172.17.35.133:8080 [23:49:48]Content-Length: 275 [23:49:48]Content-Type: application/json [23:49:48] [23:49:48]POST finish read [23:49:48]Found Content-Length = 275 [23:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432\u0430 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:48]execute_script... [23:49:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432\u0430 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:48]POST & json_proto [23:49:48]process_json_proto [23:49:48]json parsed OK: [23:49:48]protocol is kg_v1.0 [23:49:48]action value=x_report [23:49:48]process_action x_report [23:49:48]cmd_x_report [23:49:48]MH_GetDate [23:49:48]Write to MH i2c: F0 00 00 82 05 76 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: F0 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: F0 09 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: F0 09 00 82 05 00 9E 6F 90 66 1B 28 2A 66 55 [23:49:48]GetLastDocTimeStamp 1720740032 [23:49:48]current date 1720741790 [23:49:48]FM_GetShiftState [23:49:48]SAM_PROTO_GetShiftState [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 13 01 00 [23:49:48]Write to MH i2c: E2 08 00 83 05 80 13 01 00 00 00 00 00 05 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:48]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 83 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 63 [23:49:49]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetShiftState done [23:49:49]FM_GetShiftState done [23:49:49]KKMCreateXReportDocument [23:49:49]Load OK [23:49:49]Malloc new data [23:49:49]MH_GetDate [23:49:49]Write to MH i2c: F0 00 00 84 05 78 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 09 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 09 00 84 05 00 9E 6F 90 66 1B 28 2A 66 57 [23:49:49]Malloc new data [23:49:49]Malloc new data [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 11 00 00 [23:49:49]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 17 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5A [23:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetFieldsCounters [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 00 00 [23:49:49]Write to MH i2c: E2 08 00 86 05 80 13 00 00 00 00 00 00 07 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 62 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 62 00 86 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [23:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetFieldsCounters done [23:49:49]Malloc new data [23:49:49]Malloc new data [23:49:49]Malloc new data [23:49:49]KKMCreateXReportDocument OK [23:49:49]KKMSetXReportData OK [23:49:49]KKMPrepareXReportFMData [23:49:49]SAM_PROTO_GetShiftData [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 02 00 [23:49:49]Write to MH i2c: E2 08 00 87 05 80 13 02 00 00 00 00 00 0A [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 FD 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 FD 00 87 05 00 AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 DF [23:49:49]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:49]wFMCommunicate OK [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 17 00 00 [23:49:49]Write to MH i2c: E2 08 00 88 05 80 17 00 00 00 00 00 00 0D [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 FD 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 FD 00 88 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 2F [23:49:50]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:50]wFMCommunicate OK [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 17 00 00 [23:49:50]Write to MH i2c: E2 08 00 89 05 80 17 00 00 00 00 00 00 0E [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 FD 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 FD 00 89 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C5 [23:49:50]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:50]wFMCommunicate OK [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 17 00 00 [23:49:50]Write to MH i2c: E2 08 00 8A 05 80 17 00 00 00 00 00 00 0F [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 8A 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 81 [23:49:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 17 00 00 [23:49:51]Write to MH i2c: E2 08 00 8B 05 80 17 00 00 00 00 00 00 10 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 CB 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 CB 00 8B 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F9 [23:49:51]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_GetShiftData done [23:49:51]1194 (1194) - счетчики итогов смены [23:49:51] 1134 (4) - 80 - количество чеков со всеми признаками расчетов [23:49:51] 1129 (155) - счетчики операций «приход» [23:49:51] 1135 (4) - 80 - количество чеков по признаку расчетов [23:49:51] 1201 (3) - 17401.70 - общая итоговая сумма в чеках [23:49:51] 1136 (3) - 12544.00 - итоговая сумма в чеках наличными [23:49:51] 1138 (3) - 4857.70 - итоговая сумма в чеках безналичными [23:49:51] 1024 (122) - суммы налогов [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 0% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1006 (12) - суммы НДС [23:49:51] 1010 (1) - 12% - код ставки НДС [23:49:51] 1011 (3) - 1848.02 - сумма НДС по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (11) - суммы НСП [23:49:51] 1014 (1) - 1% - код ставки НСП [23:49:51] 1015 (2) - 153.93 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 2% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 3% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 5% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1130 (141) - счетчики операций «возврат прихода» [23:49:51] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:51] 1024 (117) - суммы налогов [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 0% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 12% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 2% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 3% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 5% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1131 (141) - счетчики операций «расход» [23:49:51] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:51] 1024 (117) - суммы налогов [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 0% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 12% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 2% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 3% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 5% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1132 (141) - счетчики операций «возврат расхода» [23:49:51] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:51] 1024 (117) - суммы налогов [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 0% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1006 (9) - суммы НДС [23:49:51] 1010 (1) - 12% - код ставки НДС [23:49:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 2% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 3% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 5% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 0,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1007 (9) - суммы НСП [23:49:51] 1014 (1) - 1,50% - код ставки НСП [23:49:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:51] 1133 (588) - - счетчики коррекции - не используются [23:49:51]SetTLVBufToDocument [23:49:51]Processing tag 1194 (04AA) [23:49:51]Load OK [23:49:51]SetTLVBufToDocument [23:49:51]Processing tag 1134 (046E) [23:49:51]Malloc new data [23:49:51]Processing tag 1129 (0469) [23:49:51]Load OK [23:49:51]SetTLVBufToDocument [23:49:51]Processing tag 1135 (046F) [23:49:51]Malloc new data [23:49:52]Processing tag 1201 (04B1) [23:49:52]Malloc new data [23:49:52]Processing tag 1136 (0470) [23:49:52]Malloc new data [23:49:52]Processing tag 1138 (0472) [23:49:52]Malloc new data [23:49:52]Processing tag 1024 (0400) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1130 (046A) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1135 (046F) [23:49:52]Malloc new data [23:49:52]Processing tag 1201 (04B1) [23:49:52]Malloc new data [23:49:52]Processing tag 1136 (0470) [23:49:52]Malloc new data [23:49:52]Processing tag 1138 (0472) [23:49:52]Malloc new data [23:49:52]Processing tag 1024 (0400) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1131 (046B) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1135 (046F) [23:49:52]Malloc new data [23:49:52]Processing tag 1201 (04B1) [23:49:52]Malloc new data [23:49:52]Processing tag 1136 (0470) [23:49:52]Malloc new data [23:49:52]Processing tag 1138 (0472) [23:49:52]Malloc new data [23:49:52]Processing tag 1024 (0400) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1132 (046C) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]OFD Sender: No OFD packet to send [23:49:52]Processing tag 1135 (046F) [23:49:52]Malloc new data [23:49:52]Processing tag 1201 (04B1) [23:49:52]Malloc new data [23:49:52]Processing tag 1136 (0470) [23:49:52]Malloc new data [23:49:52]Processing tag 1138 (0472) [23:49:52]Malloc new data [23:49:52]Processing tag 1024 (0400) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1006 (03EE) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1010 (03F2) [23:49:52]Malloc new data [23:49:52]Processing tag 1011 (03F3) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1007 (03EF) [23:49:52]Load OK [23:49:52]SetTLVBufToDocument [23:49:52]Processing tag 1014 (03F6) [23:49:52]Malloc new data [23:49:52]Processing tag 1015 (03F7) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Processing tag 1133 (046D) [23:49:52]Malloc new data [23:49:52]SetTLVBufToDocument err=0 [23:49:52]SetTLVBufToDocument err=0 [23:49:52]Malloc new data [23:49:52]SAM_PROTO_GetFMData [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 13 03 00 [23:49:52]Write to MH i2c: E2 08 00 8C 05 80 13 03 00 00 00 00 00 10 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 8C 05 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 D9 [23:49:53]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:49:53]wFMCommunicate OK [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 17 00 00 [23:49:53]Write to MH i2c: E2 08 00 8D 05 80 17 00 00 00 00 00 00 12 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 8D 05 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 0F [23:49:53]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:49:53]wFMCommunicate OK [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 17 00 00 [23:49:53]Write to MH i2c: E2 08 00 8E 05 80 17 00 00 00 00 00 00 13 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 8E 05 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 3F [23:49:54]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:49:54]wFMCommunicate OK [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 17 00 00 [23:49:54]Write to MH i2c: E2 08 00 8F 05 80 17 00 00 00 00 00 00 14 [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 8F 05 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 8C [23:49:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:49:54]wFMCommunicate OK [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 17 00 00 [23:49:54]Write to MH i2c: E2 08 00 90 05 80 17 00 00 00 00 00 00 15 [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:49:55]Read from MH i2c: E2 [23:49:55]MH_I2C_Read... [23:49:55]Read from MH i2c: E2 D7 00 [23:49:55]MH_I2C_Read... [23:49:55]Read from MH i2c: E2 D7 00 90 05 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F8 [23:49:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:55]wFMCommunicate OK [23:49:55]SAM_PROTO_GetFMData done [23:49:55]FM_GetFMData:85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:55]oper:6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:56]total:1D 48 37 04 [23:49:56]Malloc new data [23:49:56]oper:6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:56]total:80 25 [23:49:56]Malloc new data [23:49:56]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:56]total: [23:49:56]Malloc new data [23:49:56]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:56]total: [23:49:56]Malloc new data [23:49:56]KKMPrepareXReportFMData err=0 [23:49:56]Х отчет ИНН: 02508201610067 Кассир: Женишбекова С. 11.07.2024 23:49 Смена: 10 РНМ: 0000000000177495 ЗНМ: 0300000124 СНО: Общий режим Всего чеков: 80 ИТОГИ ПРИХОД Чеков: 80 Общий итог: 17401.70 Итого наличными: 12544.00 Итого безнал.: 4857.70 НДС 0% : 0.00 НДС 12% : 1848.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 153.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 12544.00 НС Приход: 707318.05 НС Возвр.Прихода: 96.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002098592 [23:49:56]StoreToDocumentArchive [23:49:56]MH_GetDate [23:49:56]Write to MH i2c: F0 00 00 91 05 85 [23:49:56]Write i2c OK [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: F0 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: F0 09 00 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: F0 09 00 91 05 00 A5 6F 90 66 1B 28 2A 66 6B [23:49:56]shift 10 fd 1720741797 [23:49:56]Create dir for shift 0010 [23:49:56]save to /storage/0010/doc_1720741797 [23:49:56]save last doc name /storage/0010/doc_1720741797 to /storage/kkm_last_doc_name [23:49:56]save OK [23:49:56]Clear old archive folders... [23:49:56]NVStorageSaveData kkm_last_timestamp [23:49:56]File name is /storage/kkm_last_timestamp [23:49:56]Write 4 bytes [23:49:56]NVStorageSaveData done [23:49:56]ExternCall_PrintAddStr [23:49:56]wPrintStart [23:49:56]Write to MH i2c: 01 00 00 92 05 97 [23:49:56]Write i2c OK [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: 01 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: 01 07 00 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 FF 0F AC [23:49:56]RasterBufferAndPrint [23:49:56]line Х отчет [23:49:56]line ИНН: 02508201610067 [23:49:56]line Кассир: Женишбекова С. [23:49:56]line 11.07.2024 23:49 [23:49:56]line Смена: 10 [23:49:56]line РНМ: 0000000000177495 [23:49:56]line ЗНМ: 0300000124 [23:49:56]line СНО: Общий режим [23:49:56]line Всего чеков: 80 [23:49:56]line ИТОГИ ПРИХОД [23:49:56]line Чеков: 80 [23:49:56]line Общий итог: 17401.70 [23:49:56]line Итого наличными: 12544.00 [23:49:56]line Итого безнал.: 4857.70 [23:49:56]line НДС 0% : 0.00 [23:49:56]line НДС 12% : 1848.02 [23:49:56]line НСП 0% : 0.00 [23:49:56]line НСП 1,50% : 0.00 [23:49:56]line НСП 0,50% : 0.00 [23:49:56]line НСП 5% : 0.00 [23:49:56]line НСП 3% : 0.00 [23:49:56]line НСП 2% : 0.00 [23:49:56]line НСП 1% : 153.93 [23:49:56]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:49:56]line Чеков: 0 [23:49:56]line Общий итог: 0.00 [23:49:56]line Итого наличными: 0.00 [23:49:56]line Итого безнал.: 0.00 [23:49:56]line НДС 0% : 0.00 [23:49:56]line НДС 12% : 0.00 [23:49:56]line НСП 0% : 0.00 [23:49:56]line НСП 1,50% : 0.00 [23:49:56]line НСП 0,50% : 0.00 [23:49:56]line НСП 5% : 0.00 [23:49:56]line НСП 3% : 0.00 [23:49:56]line НСП 2% : 0.00 [23:49:56]line НСП 1% : 0.00 [23:49:56]line ИТОГИ РАСХОД [23:49:56]line Чеков: 0 [23:49:56]line Общий итог: 0.00 [23:49:56]line Итого наличными: 0.00 [23:49:56]line Итого безнал.: 0.00 [23:49:56]line НДС 0% : 0.00 [23:49:56]line НДС 12% : 0.00 [23:49:56]line НСП 0% : 0.00 [23:49:56]line НСП 1,50% : 0.00 [23:49:56]line НСП 0,50% : 0.00 [23:49:56]line НСП 5% : 0.00 [23:49:56]line НСП 3% : 0.00 [23:49:56]line НСП 2% : 0.00 [23:49:56]line НСП 1% : 0.00 [23:49:56]line ИТОГИ ВОЗВРАТ РАСХОДА [23:49:56]line Чеков: 0 [23:49:56]line Общий итог: 0.00 [23:49:56]line Итого наличными: 0.00 [23:49:56]line Итого безнал.: 0.00 [23:49:56]line НДС 0% : 0.00 [23:49:56]line НДС 12% : 0.00 [23:49:56]line НСП 0% : 0.00 [23:49:56]line НСП 1,50% : 0.00 [23:49:56]line НСП 0,50% : 0.00 [23:49:56]line НСП 5% : 0.00 [23:49:56]line НСП 3% : 0.00 [23:49:56]line НСП 2% : 0.00 [23:49:56]line НСП 1% : 0.00 [23:49:56]line Сумма внесений: 0.00 [23:49:56]line Сумма выплат: 0.00 [23:49:56]line Нал. в кассе: 12544.00 [23:49:56]line НС Приход: 707318.05 [23:49:56]line НС Возвр.Прихода: 96.00 [23:49:56]line НС Расход: 0.00 [23:49:56]line НС Возвр.Расхода: 0.00 [23:49:56]line ФМ: 0000000002098592 [23:49:56]written 0, free lines is 4095 [23:49:57]Write to MH i2c: 01 00 00 DD 05 E2 [23:49:57]Write i2c OK [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: 01 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: 01 07 00 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 CB 0A BE [23:49:57]RasterBufferAndPrint [23:49:57]line [23:49:57]line [23:49:57]line [23:49:57]line [23:49:57]line [23:49:57]written 0, free lines is 2799 [23:49:57]MH_Cut [23:49:57]Write to MH i2c: D1 01 00 E4 05 01 BB [23:49:57]Write i2c OK [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: D1 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: D1 01 00 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: D1 01 00 E4 05 00 BA [23:49:57]Write to MH i2c: 01 00 00 E5 05 EA [23:49:57]Write i2c OK [23:49:57]MH_I2C_Read... [23:49:57]OFD Sender: No OFD packet to send [23:49:58]*** Cut start [23:49:58]*** Partial cut [23:49:58]*** CUTSNS_PIN = 1 [23:49:58]*** CUTSNS_PIN = 0 [23:49:58]*** Brake cut motor [23:49:58]Read from MH i2c: 01 [23:49:58]MH_I2C_Read... [23:49:58]*** Stop cut motor [23:49:58]*** Cut end [23:49:58]Read from MH i2c: 01 07 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [23:49:58]process_action x_report done [23:49:58]requested_data is exist [23:49:58]produce_requested_data [23:49:58]requested_item fd.num is exist - process it [23:49:58]SAM_PROTO_GetFieldsCounters [23:49:58]wFMCommunicate request_size=4 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 13 00 00 [23:49:58]Write to MH i2c: E2 08 00 E6 05 80 13 00 00 00 00 00 00 67 [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 62 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 62 00 E6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [23:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:59]wFMCommunicate OK [23:49:59]SAM_PROTO_GetFieldsCounters done [23:49:59]requested_item shift.num is exist - process it [23:49:59]requested_item shift.opened is exist - process it [23:49:59]req_shift_opened [23:49:59]FM_GetShiftState [23:49:59]SAM_PROTO_GetShiftState [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 13 01 00 [23:49:59]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 0E 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 C7 [23:49:59]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:49:59]wFMCommunicate OK [23:49:59]SAM_PROTO_GetShiftState done [23:49:59]FM_GetShiftState done [23:49:59]req_shift_opened done [23:49:59]requested_item shift.open_date is exist - process it [23:49:59]req_shift_open_date [23:49:59]req_shift_open_date done [23:49:59]produce_requested_data done [23:49:59]produce_requested_data return {"fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [23:49:59]process_action_free x_report [23:49:59]json_value_free [23:49:59]json_value_free done [23:49:59]process_json_proto returns [23:49:59]Send response to host [23:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [23:49:59]free response buf [23:49:59]execute_script done [23:49:59]execute_script returns [23:49:59]free content buf [23:49:59]Sock 8.Close socket [23:49:59]Sock 8.Thread stoped [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:31]accept exits with 9 [23:50:31]New connection [23:50:31]New thread 3067555172 created [23:50:31]Thread 3067411812 joined [23:50:31]Waiting for new connection... [23:50:31] Sock 9.Parse request [23:50:31]Sock 9.Check first char [23:50:31]Sock 9.First char is OK [23:50:31]request: POST /json_proto HTTP/1.0 [23:50:31]Method: POST [23:50:31]URL: /json_proto [23:50:31]Method is POST - this is cgi request [23:50:31]url: /json_proto [23:50:31]query_string will be loaded in cgi processing [23:50:31]execute_cgi json_proto POST (null) [23:50:31]execute_cgi path=json_proto method=POST [23:50:31]POST find Content-Length [23:50:31]Host: 172.17.35.133:8080 [23:50:31]Content-Length: 215 [23:50:31]Content-Type: application/json [23:50:31] [23:50:31]POST finish read [23:50:31]Found Content-Length = 215 [23:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:31]execute_script... [23:50:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:31]POST & json_proto [23:50:31]process_json_proto [23:50:31]json parsed OK: [23:50:31]protocol is kg_v1.0 [23:50:31]action value=get_value [23:50:31]process_action get_value [23:50:31]cmd_get_value [23:50:31]process_action get_value done [23:50:31]requested_data is exist [23:50:31]produce_requested_data [23:50:31]requested_item kkm.sn is exist - process it [23:50:31]requested_item kkm.ver is exist - process it [23:50:31]requested_item fm.sn is exist - process it [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 11 00 00 [23:50:31]Write to MH i2c: E2 08 00 E8 05 80 11 00 00 00 00 00 00 67 [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 17 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 17 00 E8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BD [23:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:50:31]wFMCommunicate OK [23:50:31]requested_item fd.num is exist - process it [23:50:31]SAM_PROTO_GetFieldsCounters [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 13 00 00 [23:50:31]Write to MH i2c: E2 08 00 E9 05 80 13 00 00 00 00 00 00 6A [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 62 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 62 00 E9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [23:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E4 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:31]wFMCommunicate OK [23:50:31]SAM_PROTO_GetFieldsCounters done [23:50:31]requested_item shift.num is exist - process it [23:50:31]requested_item shift.opened is exist - process it [23:50:31]req_shift_opened [23:50:31]FM_GetShiftState [23:50:31]SAM_PROTO_GetShiftState [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 13 01 00 [23:50:31]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 0E 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 CA [23:50:31]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:50:31]wFMCommunicate OK [23:50:31]SAM_PROTO_GetShiftState done [23:50:31]FM_GetShiftState done [23:50:31]req_shift_opened done [23:50:31]requested_item shift.open_date is exist - process it [23:50:31]req_shift_open_date [23:50:31]req_shift_open_date done [23:50:31]produce_requested_data done [23:50:31]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698} [23:50:31]process_action_free get_value [23:50:31]json_value_free [23:50:31]json_value_free done [23:50:31]process_json_proto returns [23:50:31]Send response to host [23:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1764,"shift.num":22,"shift.opened":1,"shift.open_date":1720656698}}} [23:50:31]free response buf [23:50:31]execute_script done [23:50:31]execute_script returns [23:50:31]free content buf [23:50:31]Sock 9.Close socket [23:50:31]Sock 9.Thread stoped [23:50:31]accept exits with 8 [23:50:31]New connection [23:50:31]New thread 3067411812 created [23:50:31]Thread 3067555172 joined [23:50:31]Waiting for new connection... [23:50:31] Sock 8.Parse request [23:50:31]Sock 8.Check first char [23:50:31]Sock 8.First char is OK [23:50:31]request: POST /json_proto HTTP/1.0 [23:50:31]Method: POST [23:50:31]URL: /json_proto [23:50:31]Method is POST - this is cgi request [23:50:31]url: /json_proto [23:50:31]query_string will be loaded in cgi processing [23:50:31]execute_cgi json_proto POST (null) [23:50:31]execute_cgi path=json_proto method=POST [23:50:31]POST find Content-Length [23:50:31]Host: 172.17.35.133:8080 [23:50:31]Content-Length: 331 [23:50:31]Content-Type: application/json [23:50:31] [23:50:31]POST finish read [23:50:31]Found Content-Length = 331 [23:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:31]execute_script... [23:50:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:31]POST & json_proto [23:50:31]process_json_proto [23:50:31]json parsed OK: [23:50:31]protocol is kg_v1.0 [23:50:31]action value=get_value [23:50:32]process_action get_value [23:50:32]cmd_get_value [23:50:32]process_action get_value done [23:50:32]requested_data is exist [23:50:32]produce_requested_data [23:50:32]requested_item fm.sale.total is exist - process it [23:50:32]SAM_PROTO_GetFMData [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 13 03 00 [23:50:32]Write to MH i2c: E2 08 00 EB 05 80 13 03 00 00 00 00 00 6F [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 EB 05 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 38 [23:50:32]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 EC 05 80 17 00 00 00 00 00 00 71 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]OFD Sender: No OFD packet to send [23:50:32]Read from MH i2c: E2 FD 00 EC 05 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 6E [23:50:32]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 ED 05 80 17 00 00 00 00 00 00 72 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 ED 05 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 9E [23:50:33]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:50:33]wFMCommunicate OK [23:50:33]wFMCommunicate request_size=4 [23:50:33]MH_SAM_APDU [23:50:33]CAPDU: 80 17 00 00 [23:50:33]Write to MH i2c: E2 08 00 EE 05 80 17 00 00 00 00 00 00 73 [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 EE 05 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 EB [23:50:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:50:33]wFMCommunicate OK [23:50:33]wFMCommunicate request_size=4 [23:50:33]MH_SAM_APDU [23:50:33]CAPDU: 80 17 00 00 [23:50:33]Write to MH i2c: E2 08 00 EF 05 80 17 00 00 00 00 00 00 74 [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 D7 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 D7 00 EF 05 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [23:50:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:33]wFMCommunicate OK [23:50:33]SAM_PROTO_GetFMData done [23:50:33]requested_item fm.sale_refund.total is exist - process it [23:50:33]requested_item fm.buy.total is exist - process it [23:50:33]requested_item shift.sale.total is exist - process it [23:50:33]SAM_PROTO_GetShiftData [23:50:33]wFMCommunicate request_size=4 [23:50:33]MH_SAM_APDU [23:50:33]CAPDU: 80 13 02 00 [23:50:33]Write to MH i2c: E2 08 00 F0 05 80 13 02 00 00 00 00 00 73 [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 F0 05 00 AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 48 [23:50:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 17 00 00 [23:50:34]Write to MH i2c: E2 08 00 F1 05 80 17 00 00 00 00 00 00 76 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 F1 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 98 [23:50:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 17 00 00 [23:50:34]Write to MH i2c: E2 08 00 F2 05 80 17 00 00 00 00 00 00 77 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 F2 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 2E [23:50:34]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 17 00 00 [23:50:34]Write to MH i2c: E2 08 00 F3 05 80 17 00 00 00 00 00 00 78 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:35]Read from MH i2c: E2 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 FD 00 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 FD 00 F3 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 EA [23:50:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:50:35]wFMCommunicate OK [23:50:35]wFMCommunicate request_size=4 [23:50:35]MH_SAM_APDU [23:50:35]CAPDU: 80 17 00 00 [23:50:35]Write to MH i2c: E2 08 00 F4 05 80 17 00 00 00 00 00 00 79 [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:50:35]Read from MH i2c: E2 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 CB 00 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 CB 00 F4 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 62 [23:50:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:35]wFMCommunicate OK [23:50:35]SAM_PROTO_GetShiftData done [23:50:35]requested_item shift.sale.total_cash is exist - process it [23:50:35]requested_item shift.sale_refund.total is exist - process it [23:50:35]requested_item shift.sale_refund.total_cash is exist - process it [23:50:35]requested_item shift.buy.total is exist - process it [23:50:35]requested_item shift.buy.total_cash is exist - process it [23:50:35]produce_requested_data done [23:50:35]produce_requested_data return {"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:35]process_action_free get_value [23:50:35]json_value_free [23:50:35]json_value_free done [23:50:35]process_json_proto returns [23:50:35]Send response to host [23:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:35]free response buf [23:50:35]execute_script done [23:50:35]execute_script returns [23:50:35]free content buf [23:50:35]Sock 8.Close socket [23:50:35]Sock 8.Thread stoped [23:50:35]accept exits with 9 [23:50:35]New connection [23:50:35]New thread 3067555172 created [23:50:35]Thread 3067411812 joined [23:50:35]Waiting for new connection... [23:50:35] Sock 9.Parse request [23:50:35]Sock 9.Check first char [23:50:35]Sock 9.First char is OK [23:50:35]request: POST /json_proto HTTP/1.0 [23:50:35]Method: POST [23:50:35]URL: /json_proto [23:50:35]Method is POST - this is cgi request [23:50:35]url: /json_proto [23:50:35]query_string will be loaded in cgi processing [23:50:35]execute_cgi json_proto POST (null) [23:50:35]execute_cgi path=json_proto method=POST [23:50:35]POST find Content-Length [23:50:35]Host: 172.17.35.133:8080 [23:50:35]Content-Length: 331 [23:50:35]Content-Type: application/json [23:50:35] [23:50:35]POST finish read [23:50:35]Found Content-Length = 331 [23:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:35]execute_script... [23:50:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:35]POST & json_proto [23:50:35]process_json_proto [23:50:35]json parsed OK: [23:50:35]protocol is kg_v1.0 [23:50:35]action value=get_value [23:50:35]process_action get_value [23:50:35]cmd_get_value [23:50:35]process_action get_value done [23:50:35]requested_data is exist [23:50:35]produce_requested_data [23:50:35]requested_item fm.sale.total is exist - process it [23:50:35]SAM_PROTO_GetFMData [23:50:35]wFMCommunicate request_size=4 [23:50:35]MH_SAM_APDU [23:50:35]CAPDU: 80 13 03 00 [23:50:35]Write to MH i2c: E2 08 00 F5 05 80 13 03 00 00 00 00 00 79 [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 F5 05 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 42 [23:50:36]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 17 00 00 [23:50:36]Write to MH i2c: E2 08 00 F6 05 80 17 00 00 00 00 00 00 7B [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 F6 05 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 78 [23:50:36]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 17 00 00 [23:50:36]Write to MH i2c: E2 08 00 F7 05 80 17 00 00 00 00 00 00 7C [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 F7 05 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 A8 [23:50:36]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:50:37]wFMCommunicate OK [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 17 00 00 [23:50:37]Write to MH i2c: E2 08 00 F8 05 80 17 00 00 00 00 00 00 7D [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 FD 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 FD 00 F8 05 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 F5 [23:50:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:50:37]wFMCommunicate OK [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 17 00 00 [23:50:37]Write to MH i2c: E2 08 00 F9 05 80 17 00 00 00 00 00 00 7E [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 D7 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 D7 00 F9 05 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [23:50:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:37]wFMCommunicate OK [23:50:37]SAM_PROTO_GetFMData done [23:50:37]requested_item fm.sale_refund.total is exist - process it [23:50:37]requested_item fm.buy.total is exist - process it [23:50:37]requested_item shift.sale.total is exist - process it [23:50:37]SAM_PROTO_GetShiftData [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 13 02 00 [23:50:37]Write to MH i2c: E2 08 00 FA 05 80 13 02 00 00 00 00 00 7D [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]OFD Sender: No OFD packet to send [23:50:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 FD 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 FD 00 FA 05 00 AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 52 [23:50:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:50:38]wFMCommunicate OK [23:50:38]wFMCommunicate request_size=4 [23:50:38]MH_SAM_APDU [23:50:38]CAPDU: 80 17 00 00 [23:50:38]Write to MH i2c: E2 08 00 FB 05 80 17 00 00 00 00 00 00 80 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 FD 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 FD 00 FB 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 A2 [23:50:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:50:38]wFMCommunicate OK [23:50:38]wFMCommunicate request_size=4 [23:50:38]MH_SAM_APDU [23:50:38]CAPDU: 80 17 00 00 [23:50:38]Write to MH i2c: E2 08 00 FC 05 80 17 00 00 00 00 00 00 81 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:39]Read from MH i2c: E2 [23:50:39]MH_I2C_Read... [23:50:39]Read from MH i2c: E2 FD 00 [23:50:39]MH_I2C_Read... [23:50:39]Read from MH i2c: E2 FD 00 FC 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 38 [23:50:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:50:39]wFMCommunicate OK [23:50:39]wFMCommunicate request_size=4 [23:50:39]MH_SAM_APDU [23:50:39]CAPDU: 80 17 00 00 [23:50:39]Write to MH i2c: E2 08 00 FD 05 80 17 00 00 00 00 00 00 82 [23:50:39]Write i2c OK [23:50:39]MH_I2C_Read... [23:50:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:39]Read from MH i2c: E2 [23:50:39]MH_I2C_Read... [23:50:39]Read from MH i2c: E2 FD 00 [23:50:39]MH_I2C_Read... [23:50:39]Read from MH i2c: E2 FD 00 FD 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F4 [23:50:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:50:39]wFMCommunicate OK [23:50:39]wFMCommunicate request_size=4 [23:50:39]MH_SAM_APDU [23:50:39]CAPDU: 80 17 00 00 [23:50:39]Write to MH i2c: E2 08 00 FE 05 80 17 00 00 00 00 00 00 83 [23:50:39]Write i2c OK [23:50:39]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 CB 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 CB 00 FE 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6C [23:50:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:40]wFMCommunicate OK [23:50:40]SAM_PROTO_GetShiftData done [23:50:40]requested_item shift.sale.total_cash is exist - process it [23:50:40]requested_item shift.sale_refund.total is exist - process it [23:50:40]requested_item shift.sale_refund.total_cash is exist - process it [23:50:40]requested_item shift.buy.total is exist - process it [23:50:40]requested_item shift.buy.total_cash is exist - process it [23:50:40]produce_requested_data done [23:50:40]produce_requested_data return {"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:40]process_action_free get_value [23:50:40]json_value_free [23:50:40]json_value_free done [23:50:40]process_json_proto returns [23:50:40]Send response to host [23:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:40]free response buf [23:50:40]execute_script done [23:50:40]execute_script returns [23:50:40]free content buf [23:50:40]Sock 9.Close socket [23:50:40]Sock 9.Thread stoped [23:50:40]accept exits with 10 [23:50:40]New connection [23:50:40]New thread 3067411812 created [23:50:40]Thread 3067555172 joined [23:50:40]Waiting for new connection... [23:50:40] Sock 10.Parse request [23:50:40]Sock 10.Check first char [23:50:40]Sock 10.First char is OK [23:50:40]request: POST /json_proto HTTP/1.0 [23:50:40]Method: POST [23:50:40]URL: /json_proto [23:50:40]Method is POST - this is cgi request [23:50:40]url: /json_proto [23:50:40]query_string will be loaded in cgi processing [23:50:40]execute_cgi json_proto POST (null) [23:50:40]execute_cgi path=json_proto method=POST [23:50:40]POST find Content-Length [23:50:40]Host: 172.17.35.133:8080 [23:50:40]Content-Length: 278 [23:50:40]Content-Type: application/json [23:50:40] [23:50:40]POST finish read [23:50:40]Found Content-Length = 278 [23:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432\u0430 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:40]execute_script... [23:50:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432\u0430 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:40]POST & json_proto [23:50:40]process_json_proto [23:50:40]json parsed OK: [23:50:40]protocol is kg_v1.0 [23:50:40]action value=close_shift [23:50:40]process_action close_shift [23:50:40]cmd_close_shift [23:50:40]MH_GetDate [23:50:40]Write to MH i2c: F0 00 00 FF 05 F3 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 09 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 09 00 FF 05 00 D1 6F 90 66 1B 28 2A 66 05 [23:50:40]GetLastDocTimeStamp 1720741790 [23:50:40]current date 1720741841 [23:50:40]FM_GetShiftState [23:50:40]SAM_PROTO_GetShiftState [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 13 01 00 [23:50:40]Write to MH i2c: E2 08 00 00 06 80 13 01 00 00 00 00 00 83 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 0E 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 0E 00 00 06 00 09 00 01 3A 23 8F 66 00 00 00 00 90 00 E1 [23:50:40]RAPDU: 09 00 01 3A 23 8F 66 00 00 00 00 90 00 [23:50:40]wFMCommunicate OK [23:50:40]SAM_PROTO_GetShiftState done [23:50:40]FM_GetShiftState done [23:50:40]KKMCreateCloseShiftDocument [23:50:40]Load OK [23:50:40]Malloc new data [23:50:40]MH_GetDate [23:50:40]Write to MH i2c: F0 00 00 01 06 F6 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 09 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 09 00 01 06 00 D2 6F 90 66 1B 28 2A 66 09 [23:50:40]Malloc new data [23:50:40]Malloc new data [23:50:40]Malloc new data [23:50:40]Malloc new data [23:50:40]KKMCreateCloseShiftDocument OK [23:50:40]KKMSetCloseShiftData OK [23:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=77 [23:50:40]tlvbuf is 0014B730 [23:50:40]KKMLoadAndSignCloseShiftData [23:50:40]SAM_PROTO_ProcessDocument [23:50:40]wFMCommunicate request_size=9 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 15 01 00 04 05 00 4D 00 [23:50:40]Write to MH i2c: E2 0C 00 02 06 80 15 01 00 04 00 05 00 4D 00 00 00 E1 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [23:50:40]RAPDU: 90 00 [23:50:40]wFMCommunicate OK [23:50:40]wFMCommunicate request_size=23 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:50:40]Write to MH i2c: E2 1A 00 03 06 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 7E [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [23:50:40]RAPDU: 90 00 [23:50:40]wFMCommunicate OK [23:50:40]wFMCommunicate request_size=36 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 [23:50:40]Write to MH i2c: E2 27 00 04 06 80 15 02 00 1F 00 FD 03 1B 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 00 00 3B [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [23:50:40]RAPDU: 90 00 [23:50:40]wFMCommunicate OK [23:50:40]wFMCommunicate request_size=13 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 15 02 00 08 F4 03 04 00 D2 6F 90 66 [23:50:40]Write to MH i2c: E2 10 00 05 06 80 15 02 00 08 00 F4 03 04 00 D2 6F 90 66 00 00 CD [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [23:50:40]RAPDU: 90 00 [23:50:40]wFMCommunicate OK [23:50:40]wFMCommunicate request_size=25 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 [23:50:40]Write to MH i2c: E2 1C 00 06 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 00 00 F6 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [23:50:40]RAPDU: 90 00 [23:50:40]wFMCommunicate OK [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 15 03 00 [23:50:40]Write to MH i2c: E2 08 00 07 06 80 15 03 00 00 00 00 00 8E [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:50:41]Read from MH i2c: E2 [23:50:41]MH_I2C_Read... [23:50:41]Read from MH i2c: E2 FD 00 [23:50:41]MH_I2C_Read... [23:50:41]Read from MH i2c: E2 FD 00 07 06 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E5 06 00 00 0E 04 04 00 16 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 A8 [23:50:41]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E5 06 00 00 0E 04 04 00 16 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:50:41]wFMCommunicate OK [23:50:41]SAM_PROTO_ProcessDocument answer len = 1265 [23:50:41]SAM_PROTO_ProcessDocument remain to read = 1017 [23:50:41]wFMCommunicate request_size=4 [23:50:41]MH_SAM_APDU [23:50:41]CAPDU: 80 17 00 00 [23:50:41]Write to MH i2c: E2 08 00 08 06 80 17 00 00 00 00 00 00 8E [23:50:41]Write i2c OK [23:50:41]MH_I2C_Read... [23:50:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:41]Read from MH i2c: E2 [23:50:41]MH_I2C_Read... [23:50:41]Read from MH i2c: E2 FD 00 [23:50:41]MH_I2C_Read... [23:50:41]Read from MH i2c: E2 FD 00 08 06 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 D7 [23:50:41]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:50:42]wFMCommunicate OK [23:50:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:42]SAM_PROTO_ProcessDocument remain to read = 767 [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 17 00 00 [23:50:42]Write to MH i2c: E2 08 00 09 06 80 17 00 00 00 00 00 00 8F [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 FD 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 FD 00 09 06 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 F1 [23:50:42]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:50:42]wFMCommunicate OK [23:50:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:42]SAM_PROTO_ProcessDocument remain to read = 517 [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 17 00 00 [23:50:42]Write to MH i2c: E2 08 00 0A 06 80 17 00 00 00 00 00 00 90 [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 FD 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 FD 00 0A 06 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 1A [23:50:43]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 OFD Sender: No OFD packet to send [23:50:43]00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [23:50:43]wFMCommunicate OK [23:50:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:43]SAM_PROTO_ProcessDocument remain to read = 267 [23:50:43]wFMCommunicate request_size=4 [23:50:43]MH_SAM_APDU [23:50:43]CAPDU: 80 17 00 00 [23:50:43]Write to MH i2c: E2 08 00 0B 06 80 17 00 00 00 00 00 00 91 [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:43]Read from MH i2c: E2 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 FD 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 FD 00 0B 06 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 59 [23:50:43]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:50:43]wFMCommunicate OK [23:50:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:43]SAM_PROTO_ProcessDocument remain to read = 17 [23:50:43]wFMCommunicate request_size=4 [23:50:43]MH_SAM_APDU [23:50:43]CAPDU: 80 17 00 00 [23:50:43]Write to MH i2c: E2 08 00 0C 06 80 17 00 00 00 00 00 00 92 [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:50:43]Read from MH i2c: E2 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 14 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 14 00 0C 06 00 01 00 06 F7 03 00 00 35 04 06 00 90 55 84 DE E8 B5 90 00 BB [23:50:43]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 90 55 84 DE E8 B5 90 00 [23:50:43]wFMCommunicate OK [23:50:43]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:50:43]SAM_PROTO_ProcessDocument done [23:50:43]1209 (1) - 1.0 - номер версии ФФД [23:50:43]1041 (16) - 0000000002098592 - номер ФМ [23:50:43]1040 (4) - 1765 - номер ФД [23:50:43]1038 (4) - 22 - номер смены [23:50:43]1118 (4) - 80 - количество кассовых чеков за смену [23:50:43]1111 (4) - 82 - общее количество ФД за смену [23:50:43]1194 (1194) - счетчики итогов смены [23:50:43] 1134 (4) - 80 - количество чеков со всеми признаками расчетов [23:50:43] 1129 (155) - счетчики операций «приход» [23:50:43] 1135 (4) - 80 - количество чеков по признаку расчетов [23:50:43] 1201 (3) - 17401.70 - общая итоговая сумма в чеках [23:50:43] 1136 (3) - 12544.00 - итоговая сумма в чеках наличными [23:50:43] 1138 (3) - 4857.70 - итоговая сумма в чеках безналичными [23:50:43] 1024 (122) - суммы налогов [23:50:43] 1006 (9) - суммы НДС [23:50:43] 1010 (1) - 0% - код ставки НДС [23:50:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:43] 1006 (12) - суммы НДС [23:50:43] 1010 (1) - 12% - код ставки НДС [23:50:43] 1011 (3) - 1848.02 - сумма НДС по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 0% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (11) - суммы НСП [23:50:43] 1014 (1) - 1% - код ставки НСП [23:50:43] 1015 (2) - 153.93 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 2% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 3% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 5% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 0,50% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 1,50% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1130 (141) - счетчики операций «возврат прихода» [23:50:43] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:43] 1024 (117) - суммы налогов [23:50:43] 1006 (9) - суммы НДС [23:50:43] 1010 (1) - 0% - код ставки НДС [23:50:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:43] 1006 (9) - суммы НДС [23:50:43] 1010 (1) - 12% - код ставки НДС [23:50:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 0% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 1% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 2% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 3% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 5% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 0,50% - код ставки НСП [23:50:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:43] 1007 (9) - суммы НСП [23:50:43] 1014 (1) - 1,50% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1131 (141) - счетчики операций «расход» [23:50:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:44] 1024 (117) - суммы налогов [23:50:44] 1006 (9) - суммы НДС [23:50:44] 1010 (1) - 0% - код ставки НДС [23:50:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:44] 1006 (9) - суммы НДС [23:50:44] 1010 (1) - 12% - код ставки НДС [23:50:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 0% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 1% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 2% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 3% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 5% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 0,50% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 1,50% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1132 (141) - счетчики операций «возврат расхода» [23:50:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:44] 1024 (117) - суммы налогов [23:50:44] 1006 (9) - суммы НДС [23:50:44] 1010 (1) - 0% - код ставки НДС [23:50:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:44] 1006 (9) - суммы НДС [23:50:44] 1010 (1) - 12% - код ставки НДС [23:50:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 0% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 1% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 2% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 3% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 5% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 0,50% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1007 (9) - суммы НСП [23:50:44] 1014 (1) - 1,50% - код ставки НСП [23:50:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:44] 1133 (588) - - счетчики коррекции - не используются [23:50:44]1077 (6) - 158696975820981 - ФПД [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1209 (04B9) [23:50:44]Malloc new data [23:50:44]Processing tag 1041 (0411) [23:50:44]Processing tag 1040 (0410) [23:50:44]Malloc new data [23:50:44]Processing tag 1038 (040E) [23:50:44]Malloc new data [23:50:44]Processing tag 1118 (045E) [23:50:44]Malloc new data [23:50:44]Processing tag 1111 (0457) [23:50:44]Malloc new data [23:50:44]Processing tag 1194 (04AA) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1134 (046E) [23:50:44]Malloc new data [23:50:44]Processing tag 1129 (0469) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1135 (046F) [23:50:44]Malloc new data [23:50:44]Processing tag 1201 (04B1) [23:50:44]Malloc new data [23:50:44]Processing tag 1136 (0470) [23:50:44]Malloc new data [23:50:44]Processing tag 1138 (0472) [23:50:44]Malloc new data [23:50:44]Processing tag 1024 (0400) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]SetTLVBufToDocument err=0 [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1130 (046A) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1135 (046F) [23:50:44]Malloc new data [23:50:44]Processing tag 1201 (04B1) [23:50:44]Malloc new data [23:50:44]Processing tag 1136 (0470) [23:50:44]Malloc new data [23:50:44]Processing tag 1138 (0472) [23:50:44]Malloc new data [23:50:44]Processing tag 1024 (0400) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]SetTLVBufToDocument err=0 [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1131 (046B) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1135 (046F) [23:50:44]Malloc new data [23:50:44]Processing tag 1201 (04B1) [23:50:44]Malloc new data [23:50:44]Processing tag 1136 (0470) [23:50:44]Malloc new data [23:50:44]Processing tag 1138 (0472) [23:50:44]Malloc new data [23:50:44]Processing tag 1024 (0400) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]SetTLVBufToDocument err=0 [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1132 (046C) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1135 (046F) [23:50:44]Malloc new data [23:50:44]Processing tag 1201 (04B1) [23:50:44]Malloc new data [23:50:44]Processing tag 1136 (0470) [23:50:44]Malloc new data [23:50:44]Processing tag 1138 (0472) [23:50:44]Malloc new data [23:50:44]Processing tag 1024 (0400) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1006 (03EE) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1010 (03F2) [23:50:44]Malloc new data [23:50:44]Processing tag 1011 (03F3) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:44]Malloc new data [23:50:44]Processing tag 1015 (03F7) [23:50:44]Malloc new data [23:50:44]SetTLVBufToDocument err=0 [23:50:44]Processing tag 1007 (03EF) [23:50:44]Load OK [23:50:44]SetTLVBufToDocument [23:50:44]Processing tag 1014 (03F6) [23:50:45]Malloc new data [23:50:45]Processing tag 1015 (03F7) [23:50:45]Malloc new data [23:50:45]SetTLVBufToDocument err=0 [23:50:45]Processing tag 1007 (03EF) [23:50:45]Load OK [23:50:45]SetTLVBufToDocument [23:50:45]Processing tag 1014 (03F6) [23:50:45]Malloc new data [23:50:45]Processing tag 1015 (03F7) [23:50:45]Malloc new data [23:50:45]SetTLVBufToDocument err=0 [23:50:45]Processing tag 1007 (03EF) [23:50:45]Load OK [23:50:45]SetTLVBufToDocument [23:50:45]Processing tag 1014 (03F6) [23:50:45]Malloc new data [23:50:45]Processing tag 1015 (03F7) [23:50:45]Malloc new data [23:50:45]SetTLVBufToDocument err=0 [23:50:45]Processing tag 1007 (03EF) [23:50:45]Load OK [23:50:45]SetTLVBufToDocument [23:50:45]Processing tag 1014 (03F6) [23:50:45]Malloc new data [23:50:45]Processing tag 1015 (03F7) [23:50:45]Malloc new data [23:50:45]SetTLVBufToDocument err=0 [23:50:45]SetTLVBufToDocument err=0 [23:50:45]SetTLVBufToDocument err=0 [23:50:45]Processing tag 1133 (046D) [23:50:45]Malloc new data [23:50:45]SetTLVBufToDocument err=0 [23:50:45]Processing tag 1077 (0435) [23:50:45]Malloc new data [23:50:45]SetTLVBufToDocument err=0 [23:50:45]Malloc new data [23:50:45]SAM_PROTO_GetFMData [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 13 03 00 [23:50:45]Write to MH i2c: E2 08 00 0D 06 80 13 03 00 00 00 00 00 92 [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 0D 06 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 5B [23:50:45]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:50:45]wFMCommunicate OK [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 17 00 00 [23:50:45]Write to MH i2c: E2 08 00 0E 06 80 17 00 00 00 00 00 00 94 [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 0E 06 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 91 [23:50:46]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:50:46]wFMCommunicate OK [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 17 00 00 [23:50:46]Write to MH i2c: E2 08 00 0F 06 80 17 00 00 00 00 00 00 95 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 0F 06 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C1 [23:50:47]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 17 00 00 [23:50:47]Write to MH i2c: E2 08 00 10 06 80 17 00 00 00 00 00 00 96 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 10 06 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 0E [23:50:47]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 17 00 00 [23:50:47]Write to MH i2c: E2 08 00 11 06 80 17 00 00 00 00 00 00 97 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 D7 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 D7 00 11 06 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7A [23:50:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:48]wFMCommunicate OK [23:50:48]SAM_PROTO_GetFMData done [23:50:48]Malloc new data [23:50:48]Malloc new data [23:50:48]Malloc new data [23:50:48]Malloc new data [23:50:48]KKMLoadAndSignCloseShiftData err=0 [23:50:48]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Женишбекова С. 11.07.2024 23:50 Смена: 22 РНМ: 0000000000177495 ЗНМ: 0300000124 СНО: Общий режим Чеков за смену: 80 ФД за смену: 82 Всего чеков: 80 ИТОГИ ПРИХОД Чеков: 80 Общий итог: 17401.70 Итого наличными: 12544.00 Итого безнал.: 4857.70 НДС 0% : 0.00 НДС 12% : 1848.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 153.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 12544.00 НС Приход: 707318.05 НС Возвр.Прихода: 96.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 1765 ФМ: 0000000002098592 ФПД: 158696975820981 [23:50:48]StoreToDocumentArchive [23:50:48]shift 22 fd 1765 [23:50:48]save to /storage/0022/doc_00001765 [23:50:48]save last doc name /storage/0022/doc_00001765 to /storage/kkm_last_doc_name [23:50:48]OFD Sender: No OFD packet to send [23:50:48]save OK [23:50:48]Clear old archive folders... [23:50:48]Remove dir /storage/0010 [23:50:48]opendir ok [23:50:48]file . [23:50:48]file .. [23:50:48]file doc_1720741797 [23:50:48]remove file /storage/0010/doc_1720741797 [23:50:48]remove dir /storage/0010 [23:50:48]NVStorageSaveData kkm_registers [23:50:48]File name is /storage/kkm_registers [23:50:48]Write 24 bytes [23:50:48]NVStorageSaveData done [23:50:48]NVStorageSaveData kkm_registers [23:50:48]File name is /storage/kkm_registers [23:50:48]Write 24 bytes [23:50:48]NVStorageSaveData done [23:50:48]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [23:50:48]tlvbuf is 0011C6C0 [23:50:48]SAM_PROTO_ClearQueue [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 09 00 00 [23:50:48]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [23:50:48]RAPDU: 90 00 [23:50:48]wFMCommunicate OK [23:50:48]SAM_PROTO_ClearQueue done [23:50:48]KKMCreateOFDPacket [23:50:48]OFDProtocolAddRootSTLVToBuf [23:50:48]FM_MakeSignedData [23:50:48]FM_MakeSignedData [23:50:48]SAM_PROTO_SignData [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 0D 01 02 [23:50:48]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [23:50:48]RAPDU: 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=255 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 0D 02 02 FA 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F4 03 04 00 D2 6F 90 66 0E 04 04 00 16 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 AA 04 D5 04 6E 04 04 00 50 00 00 00 69 04 A2 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [23:50:48]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F4 03 04 00 D2 6F 90 66 0E 04 04 00 16 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 AA 04 D5 04 6E 04 04 00 50 00 00 00 69 04 A2 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 07 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [23:50:49]RAPDU: 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=255 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 [23:50:49]Write to MH i2c: E2 02 01 15 06 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 00 00 5F [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [23:50:49]RAPDU: 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=255 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 [23:50:49]Write to MH i2c: E2 02 01 16 06 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 00 00 5C [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 03 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [23:50:50]RAPDU: 90 00 [23:50:50]wFMCommunicate OK [23:50:50]wFMCommunicate request_size=255 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 0D 02 02 FA 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 [23:50:50]Write to MH i2c: E2 02 01 17 06 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 66 [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 03 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [23:50:50]RAPDU: 90 00 [23:50:50]wFMCommunicate OK [23:50:50]wFMCommunicate request_size=255 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 [23:50:51]Write to MH i2c: E2 02 01 18 06 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 27 [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 03 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [23:50:51]RAPDU: 90 00 [23:50:51]wFMCommunicate OK [23:50:51]wFMCommunicate request_size=144 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 E5 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 90 55 84 DE E8 B5 [23:50:51]Write to MH i2c: E2 93 00 19 06 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 E5 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 90 55 84 DE E8 B5 00 00 A8 [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 03 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [23:50:52]RAPDU: 90 00 [23:50:52]wFMCommunicate OK [23:50:52]wFMCommunicate request_size=4 [23:50:52]MH_SAM_APDU [23:50:52]CAPDU: 80 0D 03 02 [23:50:52]Write to MH i2c: E2 08 00 1A 06 80 0D 03 02 00 00 00 00 9B [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 0B 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 0B 00 1A 06 00 26 12 B2 FD CB C0 86 7A 90 00 0E [23:50:52]RAPDU: 26 12 B2 FD CB C0 86 7A 90 00 [23:50:52]wFMCommunicate OK [23:50:52]SAM_PROTO_SignData done [23:50:52]FM_MakeSignedData done [23:50:52]CreateOFDProtocolMessage [23:50:52]wFMCommunicate request_size=4 [23:50:52]MH_SAM_APDU [23:50:52]CAPDU: 80 11 00 00 [23:50:52]Write to MH i2c: E2 08 00 1B 06 80 11 00 00 00 00 00 00 9B [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:52]Read from MH i2c: E2 17 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 17 00 1B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F1 [23:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:50:52]wFMCommunicate OK [23:50:52]CreateOFDProtocolMessage done [23:50:52]OFDSenderStorePacket 1765 [23:50:52]StoreOFDPacket docnum=1765 [23:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 7D 05 00 00 A8 FB 75 05 1C B0 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F4 03 04 00 D2 6F 90 66 0E 04 04 00 16 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 AA 04 D5 04 6E 04 04 00 50 00 00 00 69 04 A2 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 E5 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 90 55 84 DE E8 B5 26 12 B2 FD CB C0 86 7A [23:50:52]CheckFolder [23:50:52]dirname=/storage/ofd_packets [23:50:52]CheckFolder done [23:50:52]ProducePacketName [23:50:52]name=ofd_packets/00001765 [23:50:52]NVStorageSaveData ofd_packets/00001765 [23:50:52]File name is /storage/ofd_packets/00001765 [23:50:52]Write 1435 bytes [23:50:52]NVStorageSaveData done [23:50:52]OFDSenderStorePacket done [23:50:52]KKMCreateOFDPacket done [23:50:52]NVStorageSaveData kkm_last_timestamp [23:50:52]File name is /storage/kkm_last_timestamp [23:50:52]Write 4 bytes [23:50:52]NVStorageSaveData done [23:50:52]ExternCall_PrintAddStr [23:50:52]wPrintStart [23:50:52]Write to MH i2c: 01 00 00 1C 06 22 [23:50:52]OFD Sender: Processing packet 1765 [packets to send 1, broken 0] [23:50:52]ProducePacketName [23:50:52]name=ofd_packets/00001765 [23:50:52]OFD Sender: To server: pG, [23:50:52]CommunicateWithHost lk.salyk.kg:30040 [23:50:52]ConnectInit lk.salyk.kg [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: 01 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: 01 07 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 FF 0F 37 [23:50:52]RasterBufferAndPrint [23:50:52]line Отчет о закрытии смены [23:50:52]line ФФД: 1.0 [23:50:52]line ИНН: 02508201610067 [23:50:52]line Кассир: Женишбекова С. [23:50:52]line 11.07.2024 23:50 [23:50:52]line Смена: 22 [23:50:52]line РНМ: 0000000000177495 [23:50:52]line ЗНМ: 0300000124 [23:50:52]line СНО: Общий режим [23:50:52]line Чеков за смену: 80 [23:50:52]line ФД за смену: 82 [23:50:52]line Всего чеков: 80 [23:50:52]line ИТОГИ ПРИХОД [23:50:52]line Чеков: 80 [23:50:52]line Общий итог: 17401.70 [23:50:52]line Итого наличными: 12544.00 [23:50:52]line Итого безнал.: 4857.70 [23:50:52]line НДС 0% : 0.00 [23:50:52]line НДС 12% : 1848.02 [23:50:52]line НСП 0% : 0.00 [23:50:52]line НСП 1,50% : 0.00 [23:50:52]line НСП 0,50% : 0.00 [23:50:52]line НСП 5% : 0.00 [23:50:52]line НСП 3% : 0.00 [23:50:52]line НСП 2% : 0.00 [23:50:52]line НСП 1% : 153.93 [23:50:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:50:52]line Чеков: 0 [23:50:52]line Общий итог: 0.00 [23:50:52]line Итого наличными: 0.00 [23:50:52]line Итого безнал.: 0.00 [23:50:52]line НДС 0% : 0.00 [23:50:52]line НДС 12% : 0.00 [23:50:52]line НСП 0% : 0.00 [23:50:52]line НСП 1,50% : 0.00 [23:50:52]line НСП 0,50% : 0.00 [23:50:52]line НСП 5% : 0.00 [23:50:52]line НСП 3% : 0.00 [23:50:52]line НСП 2% : 0.00 [23:50:52]line НСП 1% : 0.00 [23:50:52]line ИТОГИ РАСХОД [23:50:52]line Чеков: 0 [23:50:52]line Общий итог: 0.00 [23:50:52]line Итого наличными: 0.00 [23:50:52]line Итого безнал.: 0.00 [23:50:52]line НДС 0% : 0.00 [23:50:52]line НДС 12% : 0.00 [23:50:52]line НСП 0% : 0.00 [23:50:52]line НСП 1,50% : 0.00 [23:50:52]line НСП 0,50% : 0.00 [23:50:52]line НСП 5% : 0.00 [23:50:52]line НСП 3% : 0.00 [23:50:52]line НСП 2% : 0.00 [23:50:52]line НСП 1% : 0.00 [23:50:52]line ИТОГИ ВОЗВРАТ РАСХОДА [23:50:52]line Чеков: 0 [23:50:52]line Общий итог: 0.00 [23:50:52]line Итого наличными: 0.00 [23:50:52]line Итого безнал.: 0.00 [23:50:52]line НДС 0% : 0.00 [23:50:52]line НДС 12% : 0.00 [23:50:52]line НСП 0% : 0.00 [23:50:52]line НСП 1,50% : 0.00 [23:50:52]line НСП 0,50% : 0.00 [23:50:52]line НСП 5% : 0.00 [23:50:52]line НСП 3% : 0.00 [23:50:52]line НСП 2% : 0.00 [23:50:52]line НСП 1% : 0.00 [23:50:52]line Сумма внесений: 0.00 [23:50:52]line Сумма выплат: 0.00 [23:50:52]line Нал. в кассе: 12544.00 [23:50:52]line НС Приход: 707318.05 [23:50:52]line НС Возвр.Прихода: 96.00 [23:50:52]line НС Расход: 0.00 [23:50:52]line НС Возвр.Расхода: 0.00 [23:50:52]line ФД: 1765 [23:50:52]line ФМ: 0000000002098592 [23:50:52]line ФПД: 158696975820981 [23:50:52]written 0, free lines is 4095 [23:50:52]Connected sock=9 [23:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 7D 05 00 00 A8 FB 75 05 1C B0 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F4 03 04 00 D2 6F 90 66 0E 04 04 00 16 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 AA 04 D5 04 6E 04 04 00 50 00 00 00 69 04 A2 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 Write to MH i2c: 01 09 00 00 00 F6 6C 03 06 01 72 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 [23:50:53]03 00 Write i2c OK [23:50:53]00 MH_I2C_Read... [23:50:53]EF Read from MH i2c: 03 01 09 [23:50:53]00 MH_I2C_Read... [23:50:53]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 07 01 00 00 [23:50:53]04 MH_I2C_Read... [23:50:53]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF Read from MH i2c: 03 01 09 07 00 00 F6 6C 03 06 01 00 00 00 06 00 F7 00 03 00 00 CE 00 0A D1 51 04 [23:50:53]8D RasterBufferAndPrint [23:50:53]00 line [23:50:53]6F line [23:50:53]04 line [23:50:53]04 line [23:50:53]00 line [23:50:53]00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 written 0, free lines is 2892 [23:50:53]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 MH_Cut [23:50:53]09 Write to MH i2c: 00 D1 F2 01 03 00 01 73 00 06 01 01 F3 4B 03 [23:50:53]00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 Write i2c OK [23:50:53]09 MH_I2C_Read... [23:50:53]00 F6 03 01 00 01 F7 03 00 00 Read from MH i2c: EF D1 03 [23:50:53]09 MH_I2C_Read... [23:50:53]00 Read from MH i2c: F6 D1 03 01 01 00 00 [23:50:53]02 MH_I2C_Read... [23:50:53]F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 D1 01 01 00 00 03 73 F7 06 03 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 4A 03 [23:50:53]09 Write to MH i2c: 00 01 F6 00 03 00 01 74 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 06 F7 7A 03 [23:50:53]00 00 10 04 04 00 E5 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 90 55 84 DE E8 B5 26 12 B2 FD CB C0 86 7A [23:50:53]Write i2c OK [23:50:53]MH_I2C_Read... [23:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 7A CA 47 00 8D A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E5 06 00 00 F4 03 04 00 17 1B 90 66 B6 04 01 00 00 22 F8 58 43 E9 42 E7 CF [23:50:54]CommunicateWithHost err = 0 [23:50:54]CheckOFDResponse [23:50:54]1017 (14) - 77093643461234 [23:50:54]1041 (16) - 0000000002098592 [23:50:54]1040 (4) - 1765 [23:50:54]1012 (4) - 11.07.2024 17:49 [23:50:54]1206 (1) - 0 [23:50:54]OFD Sender: Remove packet 1765 [23:50:54]ProducePacketName [23:50:54]name=ofd_packets/00001765 [23:50:54]NVStorageDeleteData [23:50:54]*** Cut start [23:50:54]*** Partial cut [23:50:54]*** CUTSNS_PIN = 1 [23:50:54]OFD Sender: No OFD packet to send [23:50:54]*** CUTSNS_PIN = 0 [23:50:54]*** Brake cut motor [23:50:55]Read from MH i2c: 01 [23:50:55]MH_I2C_Read... [23:50:55]*** Stop cut motor [23:50:55]*** Cut end [23:50:55]Read from MH i2c: 01 07 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [23:50:55]process_action close_shift done [23:50:55]requested_data is exist [23:50:55]produce_requested_data [23:50:55]requested_item fd.num is exist - process it [23:50:55]SAM_PROTO_GetFieldsCounters [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 13 00 00 [23:50:55]Write to MH i2c: E2 08 00 75 06 80 13 00 00 00 00 00 00 F7 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 62 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 62 00 75 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:55]wFMCommunicate OK [23:50:55]SAM_PROTO_GetFieldsCounters done [23:50:55]requested_item shift.num is exist - process it [23:50:55]requested_item shift.opened is exist - process it [23:50:55]req_shift_opened [23:50:55]FM_GetShiftState [23:50:55]SAM_PROTO_GetShiftState [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 13 01 00 [23:50:55]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0E 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0E 00 76 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [23:50:55]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:50:55]wFMCommunicate OK [23:50:55]SAM_PROTO_GetShiftState done [23:50:55]FM_GetShiftState done [23:50:55]req_shift_opened done [23:50:55]requested_item shift.open_date is exist - process it [23:50:55]req_shift_open_date [23:50:55]FM_GetShiftState [23:50:55]SAM_PROTO_GetShiftState [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 13 01 00 [23:50:55]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0E 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0E 00 77 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 05 [23:50:55]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:50:55]wFMCommunicate OK [23:50:55]SAM_PROTO_GetShiftState done [23:50:55]FM_GetShiftState done [23:50:55]req_shift_open_date done [23:50:55]produce_requested_data done [23:50:55]produce_requested_data return {"fd.num":1765,"shift.num":22,"shift.opened":0,"shift.open_date":0} [23:50:55]process_action_free close_shift [23:50:55]json_value_free [23:50:55]json_value_free done [23:50:55]process_json_proto returns [23:50:55]Send response to host [23:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":1765,"shift.num":22,"shift.opened":0,"shift.open_date":0}}} [23:50:55]free response buf [23:50:55]execute_script done [23:50:55]execute_script returns [23:50:55]free content buf [23:50:55]Sock 10.Close socket [23:50:55]Sock 10.Thread stoped [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:33]accept exits with 8 [00:09:33]New connection [00:09:33]New thread 3067555172 created [00:09:33]Thread 3067411812 joined [00:09:33]Waiting for new connection... [00:09:33] Sock 8.Parse request [00:09:33]Sock 8.Check first char [00:09:33]Sock 8.First char is OK [00:09:33]request: POST /json_proto HTTP/1.0 [00:09:33]Method: POST [00:09:33]URL: /json_proto [00:09:33]Method is POST - this is cgi request [00:09:33]url: /json_proto [00:09:33]query_string will be loaded in cgi processing [00:09:33]execute_cgi json_proto POST (null) [00:09:33]execute_cgi path=json_proto method=POST [00:09:33]POST find Content-Length [00:09:33]Host: 172.17.35.133:8080 [00:09:33]Content-Length: 215 [00:09:33]Content-Type: application/json [00:09:33] [00:09:33]POST finish read [00:09:33]Found Content-Length = 215 [00:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:33]execute_script... [00:09:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:33]POST & json_proto [00:09:33]process_json_proto [00:09:33]json parsed OK: [00:09:33]protocol is kg_v1.0 [00:09:33]action value=get_value [00:09:33]process_action get_value [00:09:33]cmd_get_value [00:09:33]process_action get_value done [00:09:33]requested_data is exist [00:09:33]produce_requested_data [00:09:33]requested_item kkm.sn is exist - process it [00:09:33]requested_item kkm.ver is exist - process it [00:09:33]requested_item fm.sn is exist - process it [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 11 00 00 [00:09:33]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 17 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4E [00:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:09:33]wFMCommunicate OK [00:09:33]requested_item fd.num is exist - process it [00:09:33]SAM_PROTO_GetFieldsCounters [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 13 00 00 [00:09:33]Write to MH i2c: E2 08 00 79 06 80 13 00 00 00 00 00 00 FB [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 62 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 62 00 79 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [00:09:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E5 06 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_GetFieldsCounters done [00:09:33]requested_item shift.num is exist - process it [00:09:33]requested_item shift.opened is exist - process it [00:09:33]req_shift_opened [00:09:33]FM_GetShiftState [00:09:33]SAM_PROTO_GetShiftState [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 13 01 00 [00:09:33]Write to MH i2c: E2 08 00 7A 06 80 13 01 00 00 00 00 00 FD [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 0E 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 0E 00 7A 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 08 [00:09:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_GetShiftState done [00:09:33]FM_GetShiftState done [00:09:33]req_shift_opened done [00:09:33]requested_item shift.open_date is exist - process it [00:09:33]req_shift_open_date [00:09:33]FM_GetShiftState [00:09:33]SAM_PROTO_GetShiftState [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 13 01 00 [00:09:33]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 0E 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 0E 00 7B 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 09 [00:09:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_GetShiftState done [00:09:33]FM_GetShiftState done [00:09:33]req_shift_open_date done [00:09:33]produce_requested_data done [00:09:33]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1765,"shift.num":22,"shift.opened":0,"shift.open_date":0} [00:09:33]process_action_free get_value [00:09:33]json_value_free [00:09:33]json_value_free done [00:09:33]process_json_proto returns [00:09:33]Send response to host [00:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1765,"shift.num":22,"shift.opened":0,"shift.open_date":0}}} [00:09:33]free response buf [00:09:33]execute_script done [00:09:33]execute_script returns [00:09:33]free content buf [00:09:33]Sock 8.Close socket [00:09:33]Sock 8.Thread stoped [00:09:33]accept exits with 9 [00:09:33]New connection [00:09:33]New thread 3067411812 created [00:09:33]Thread 3067555172 joined [00:09:33]Waiting for new connection... [00:09:33] Sock 9.Parse request [00:09:33]Sock 9.Check first char [00:09:33]Sock 9.First char is OK [00:09:33]request: POST /json_proto HTTP/1.0 [00:09:33]Method: POST [00:09:33]URL: /json_proto [00:09:33]Method is POST - this is cgi request [00:09:33]url: /json_proto [00:09:33]query_string will be loaded in cgi processing [00:09:33]execute_cgi json_proto POST (null) [00:09:33]execute_cgi path=json_proto method=POST [00:09:33]POST find Content-Length [00:09:33]Host: 172.17.35.133:8080 [00:09:33]Content-Length: 331 [00:09:33]Content-Type: application/json [00:09:33] [00:09:33]POST finish read [00:09:33]Found Content-Length = 331 [00:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:33]execute_script... [00:09:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:34]POST & json_proto [00:09:34]process_json_proto [00:09:34]json parsed OK: [00:09:34]protocol is kg_v1.0 [00:09:34]action value=get_value [00:09:34]process_action get_value [00:09:34]cmd_get_value [00:09:34]process_action get_value done [00:09:34]requested_data is exist [00:09:34]produce_requested_data [00:09:34]requested_item fm.sale.total is exist - process it [00:09:34]SAM_PROTO_GetFMData [00:09:34]wFMCommunicate request_size=4 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 13 03 00 [00:09:34]Write to MH i2c: E2 08 00 7C 06 80 13 03 00 00 00 00 00 01 [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 7C 06 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CA [00:09:34]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:09:34]wFMCommunicate OK [00:09:34]wFMCommunicate request_size=4 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 17 00 00 [00:09:34]Write to MH i2c: E2 08 00 7D 06 80 17 00 00 00 00 00 00 03 [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 7D 06 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 00 [00:09:34]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:09:34]wFMCommunicate OK [00:09:34]wFMCommunicate request_size=4 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 17 00 00 [00:09:34]Write to MH i2c: E2 08 00 7E 06 80 17 00 00 00 00 00 00 04 [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:35]Read from MH i2c: E2 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 FD 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 FD 00 7E 06 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 30 [00:09:35]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:09:35]wFMCommunicate OK [00:09:35]wFMCommunicate request_size=4 [00:09:35]MH_SAM_APDU [00:09:35]CAPDU: 80 17 00 00 [00:09:35]Write to MH i2c: E2 08 00 7F 06 80 17 00 00 00 00 00 00 05 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:35]Read from MH i2c: E2 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 FD 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 FD 00 7F 06 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 7D [00:09:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:09:35]wFMCommunicate OK [00:09:35]wFMCommunicate request_size=4 [00:09:35]MH_SAM_APDU [00:09:35]CAPDU: 80 17 00 00 [00:09:35]Write to MH i2c: E2 08 00 80 06 80 17 00 00 00 00 00 00 06 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]OFD Sender: No OFD packet to send [00:09:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:09:35]Read from MH i2c: E2 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 D7 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 D7 00 80 06 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [00:09:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:35]wFMCommunicate OK [00:09:35]SAM_PROTO_GetFMData done [00:09:35]requested_item fm.sale_refund.total is exist - process it [00:09:35]requested_item fm.buy.total is exist - process it [00:09:35]requested_item shift.sale.total is exist - process it [00:09:35]SAM_PROTO_GetShiftData [00:09:35]wFMCommunicate request_size=4 [00:09:35]MH_SAM_APDU [00:09:35]CAPDU: 80 13 02 00 [00:09:35]Write to MH i2c: E2 08 00 81 06 80 13 02 00 00 00 00 00 05 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 81 06 00 AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 DA [00:09:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 50 00 00 00 69 04 9B 00 6F 04 04 00 50 00 00 00 B1 04 03 00 8A 8D 1A 70 04 03 00 00 24 13 72 04 03 00 8A 69 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 D1 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:09:36]wFMCommunicate OK [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 17 00 00 [00:09:36]Write to MH i2c: E2 08 00 82 06 80 17 00 00 00 00 00 00 08 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 82 06 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 2A [00:09:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:09:36]wFMCommunicate OK [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 17 00 00 [00:09:36]Write to MH i2c: E2 08 00 83 06 80 17 00 00 00 00 00 00 09 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 83 06 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C0 [00:09:36]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:09:36]wFMCommunicate OK [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 17 00 00 [00:09:36]Write to MH i2c: E2 08 00 84 06 80 17 00 00 00 00 00 00 0A [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 84 06 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 7C [00:09:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:09:36]wFMCommunicate OK [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 17 00 00 [00:09:36]Write to MH i2c: E2 08 00 85 06 80 17 00 00 00 00 00 00 0B [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 CB 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 CB 00 85 06 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F4 [00:09:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:37]wFMCommunicate OK [00:09:37]SAM_PROTO_GetShiftData done [00:09:37]requested_item shift.sale.total_cash is exist - process it [00:09:37]requested_item shift.sale_refund.total is exist - process it [00:09:37]requested_item shift.sale_refund.total_cash is exist - process it [00:09:37]requested_item shift.buy.total is exist - process it [00:09:37]requested_item shift.buy.total_cash is exist - process it [00:09:37]produce_requested_data done [00:09:37]produce_requested_data return {"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:37]process_action_free get_value [00:09:37]json_value_free [00:09:37]json_value_free done [00:09:37]process_json_proto returns [00:09:37]Send response to host [00:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17401.70,"shift.sale.total_cash":12544.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:37]free response buf [00:09:37]execute_script done [00:09:37]execute_script returns [00:09:37]free content buf [00:09:37]Sock 9.Close socket [00:09:37]Sock 9.Thread stoped [00:09:37]accept exits with 8 [00:09:37]New connection [00:09:37]New thread 3067555172 created [00:09:37]Thread 3067411812 joined [00:09:37]Waiting for new connection... [00:09:37] Sock 8.Parse request [00:09:37]Sock 8.Check first char [00:09:37]Sock 8.First char is OK [00:09:37]request: POST /json_proto HTTP/1.0 [00:09:37]Method: POST [00:09:37]URL: /json_proto [00:09:37]Method is POST - this is cgi request [00:09:37]url: /json_proto [00:09:37]query_string will be loaded in cgi processing [00:09:37]execute_cgi json_proto POST (null) [00:09:37]execute_cgi path=json_proto method=POST [00:09:37]POST find Content-Length [00:09:37]Host: 172.17.35.133:8080 [00:09:37]Content-Length: 243 [00:09:37]Content-Type: application/json [00:09:37] [00:09:37]POST finish read [00:09:37]Found Content-Length = 243 [00:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0427\u043E\u0440\u043E \u0443. \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:37]execute_script... [00:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0427\u043E\u0440\u043E \u0443. \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:37]POST & json_proto [00:09:37]process_json_proto [00:09:37]json parsed OK: [00:09:37]protocol is kg_v1.0 [00:09:37]action value=open_shift [00:09:37]process_action open_shift [00:09:37]cmd_open_shift [00:09:37]MH_GetDate [00:09:37]Write to MH i2c: F0 00 00 86 06 7B [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: F0 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: F0 09 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: F0 09 00 86 06 00 43 74 90 66 1B 28 2A 66 04 [00:09:37]GetLastDocTimeStamp 1720741842 [00:09:37]current date 1720742979 [00:09:37]FM_GetShiftState [00:09:37]SAM_PROTO_GetShiftState [00:09:37]wFMCommunicate request_size=4 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 13 01 00 [00:09:37]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 0E 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 0E 00 87 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 15 [00:09:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:37]wFMCommunicate OK [00:09:37]SAM_PROTO_GetShiftState done [00:09:37]FM_GetShiftState done [00:09:37]KKMCreateOpenShiftDocument [00:09:37]Load OK [00:09:37]Malloc new data [00:09:37]MH_GetDate [00:09:37]Write to MH i2c: F0 00 00 88 06 7D [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: F0 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: F0 09 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: F0 09 00 88 06 00 43 74 90 66 1B 28 2A 66 06 [00:09:37]Malloc new data [00:09:37]KKMCreateOpenShiftDocument OK [00:09:37]KKMSetOpenShiftData OK [00:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=208 [00:09:37]tlvbuf is 00149410 [00:09:37]KKMLoadAndSignOpenShiftData [00:09:37]SAM_PROTO_ProcessDocument [00:09:37]wFMCommunicate request_size=9 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 01 00 04 02 00 D0 00 [00:09:37]Write to MH i2c: E2 0C 00 89 06 80 15 01 00 04 00 02 00 D0 00 00 00 E8 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=23 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:09:37]Write to MH i2c: E2 1A 00 8A 06 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 05 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=26 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A7 D0 BE D1 80 D0 BE 20 D1 83 2E 20 D0 9A 2E 20 [00:09:37]Write to MH i2c: E2 1D 00 8B 06 80 15 02 00 15 00 FD 03 11 00 D0 A7 D0 BE D1 80 D0 BE 20 D1 83 2E 20 D0 9A 2E 20 00 00 AA [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=101 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 02 00 60 F1 03 5C 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D1 82 2D D0 91 D0 B0 D0 B7 D0 B0 D1 80 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A1 D1 83 D1 83 D1 81 D0 B0 D0 BC D1 8B D1 80 2C 20 34 32 2E 34 38 35 30 35 36 2C 37 32 2E 35 35 32 32 32 34 [00:09:37]Write to MH i2c: E2 68 00 8C 06 80 15 02 00 60 00 F1 03 5C 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D1 82 2D D0 91 D0 B0 D0 B7 D0 B0 D1 80 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A1 D1 83 D1 83 D1 81 D0 B0 D0 BC D1 8B D1 80 2C 20 34 32 2E 34 38 35 30 35 36 2C 37 32 2E 35 35 32 32 32 34 00 00 4F [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=50 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:09:37]Write to MH i2c: E2 35 00 8D 06 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 8F [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=13 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 02 00 08 F4 03 04 00 43 74 90 66 [00:09:37]Write to MH i2c: E2 10 00 8E 06 80 15 02 00 08 00 F4 03 04 00 43 74 90 66 00 00 CC [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=25 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 [00:09:37]Write to MH i2c: E2 1C 00 8F 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 00 00 7F [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:38]Read from MH i2c: E2 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 03 00 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [00:09:38]RAPDU: 90 00 [00:09:38]wFMCommunicate OK [00:09:38]wFMCommunicate request_size=4 [00:09:38]MH_SAM_APDU [00:09:38]CAPDU: 80 15 03 00 [00:09:38]Write to MH i2c: E2 08 00 90 06 80 15 03 00 00 00 00 00 17 [00:09:38]Write i2c OK [00:09:38]MH_I2C_Read... [00:09:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:09:38]Read from MH i2c: E2 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 38 00 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 38 00 90 06 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E6 06 00 00 0E 04 04 00 17 00 00 00 35 04 06 00 7C EA 63 3C 20 14 90 00 22 [00:09:38]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E6 06 00 00 0E 04 04 00 17 00 00 00 35 04 06 00 7C EA 63 3C 20 14 90 00 [00:09:38]wFMCommunicate OK [00:09:38]SAM_PROTO_ProcessDocument answer len = 51 [00:09:38]SAM_PROTO_ProcessDocument done [00:09:38]SetTLVBufToDocument [00:09:38]Processing tag 1209 (04B9) [00:09:38]Malloc new data [00:09:38]Processing tag 1041 (0411) [00:09:38]Processing tag 1040 (0410) [00:09:38]Malloc new data [00:09:38]Processing tag 1038 (040E) [00:09:38]Malloc new data [00:09:38]Processing tag 1077 (0435) [00:09:38]Malloc new data [00:09:38]SetTLVBufToDocument err=0 [00:09:38]KKMLoadAndSignOpenShiftData store KKM data [00:09:38]KKMLoadAndSignOpenShiftData err=0 [00:09:38]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Чоро у. К. Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 Место: АЗС № 76 "Партнер Нефть" 12.07.2024 00:09 Смена: 23 РНМ: 0000000000177495 ЗНМ: 0300000124 ФД: 1766 ФМ: 0000000002098592 ФПД: 137346129076244 [00:09:38]StoreToDocumentArchive [00:09:38]shift 23 fd 1766 [00:09:38]Create dir for shift 0023 [00:09:38]save to /storage/0023/doc_00001766 [00:09:38]save last doc name /storage/0023/doc_00001766 to /storage/kkm_last_doc_name [00:09:38]save OK [00:09:38]Clear old archive folders... [00:09:38]Remove dir /storage/0022 [00:09:38]opendir ok [00:09:38]file . [00:09:38]file .. [00:09:38]file doc_00001684 [00:09:38]remove file /storage/0022/doc_00001684 [00:09:38]file doc_00001685 [00:09:38]remove file /storage/0022/doc_00001685 [00:09:38]file doc_00001686 [00:09:38]remove file /storage/0022/doc_00001686 [00:09:38]file doc_00001687 [00:09:38]remove file /storage/0022/doc_00001687 [00:09:38]file doc_00001688 [00:09:38]remove file /storage/0022/doc_00001688 [00:09:38]file doc_00001689 [00:09:38]remove file /storage/0022/doc_00001689 [00:09:38]file doc_00001690 [00:09:38]remove file /storage/0022/doc_00001690 [00:09:38]file doc_00001691 [00:09:38]remove file /storage/0022/doc_00001691 [00:09:38]file doc_00001692 [00:09:38]remove file /storage/0022/doc_00001692 [00:09:38]file doc_00001693 [00:09:38]remove file /storage/0022/doc_00001693 [00:09:38]file doc_00001694 [00:09:38]remove file /storage/0022/doc_00001694 [00:09:38]file doc_00001695 [00:09:38]remove file /storage/0022/doc_00001695 [00:09:38]file doc_00001696 [00:09:38]remove file /storage/0022/doc_00001696 [00:09:38]file doc_00001697 [00:09:38]remove file /storage/0022/doc_00001697 [00:09:38]file doc_00001698 [00:09:38]remove file /storage/0022/doc_00001698 [00:09:38]file doc_00001699 [00:09:38]remove file /storage/0022/doc_00001699 [00:09:38]file doc_00001700 [00:09:38]remove file /storage/0022/doc_00001700 [00:09:38]file doc_00001701 [00:09:38]remove file /storage/0022/doc_00001701 [00:09:38]file doc_00001702 [00:09:38]remove file /storage/0022/doc_00001702 [00:09:38]file doc_00001703 [00:09:38]remove file /storage/0022/doc_00001703 [00:09:38]file doc_00001704 [00:09:38]remove file /storage/0022/doc_00001704 [00:09:38]file doc_00001705 [00:09:38]remove file /storage/0022/doc_00001705 [00:09:38]file doc_00001706 [00:09:38]remove file /storage/0022/doc_00001706 [00:09:38]file doc_00001707 [00:09:38]remove file /storage/0022/doc_00001707 [00:09:38]file doc_00001708 [00:09:38]remove file /storage/0022/doc_00001708 [00:09:38]file doc_00001709 [00:09:38]remove file /storage/0022/doc_00001709 [00:09:38]file doc_00001710 [00:09:38]remove file /storage/0022/doc_00001710 [00:09:38]file doc_00001711 [00:09:38]remove file /storage/0022/doc_00001711 [00:09:38]file doc_00001712 [00:09:38]remove file /storage/0022/doc_00001712 [00:09:38]file doc_00001713 [00:09:38]remove file /storage/0022/doc_00001713 [00:09:38]file doc_00001714 [00:09:38]remove file /storage/0022/doc_00001714 [00:09:38]file doc_00001715 [00:09:38]remove file /storage/0022/doc_00001715 [00:09:38]file doc_00001716 [00:09:38]remove file /storage/0022/doc_00001716 [00:09:38]file doc_00001717 [00:09:38]remove file /storage/0022/doc_00001717 [00:09:38]file doc_00001718 [00:09:38]remove file /storage/0022/doc_00001718 [00:09:38]file doc_00001719 [00:09:38]remove file /storage/0022/doc_00001719 [00:09:38]file doc_00001720 [00:09:38]remove file /storage/0022/doc_00001720 [00:09:38]file doc_00001721 [00:09:38]remove file /storage/0022/doc_00001721 [00:09:38]file doc_00001722 [00:09:38]remove file /storage/0022/doc_00001722 [00:09:38]file doc_00001723 [00:09:38]remove file /storage/0022/doc_00001723 [00:09:38]file doc_00001724 [00:09:38]remove file /storage/0022/doc_00001724 [00:09:38]file doc_00001725 [00:09:38]remove file /storage/0022/doc_00001725 [00:09:38]file doc_00001726 [00:09:38]remove file /storage/0022/doc_00001726 [00:09:38]file doc_00001727 [00:09:38]remove file /storage/0022/doc_00001727 [00:09:38]file doc_00001728 [00:09:38]remove file /storage/0022/doc_00001728 [00:09:38]file doc_00001729 [00:09:38]remove file /storage/0022/doc_00001729 [00:09:38]file doc_00001730 [00:09:38]remove file /storage/0022/doc_00001730 [00:09:38]file doc_00001731 [00:09:38]remove file /storage/0022/doc_00001731 [00:09:38]file doc_00001732 [00:09:38]remove file /storage/0022/doc_00001732 [00:09:38]file doc_00001733 [00:09:38]remove file /storage/0022/doc_00001733 [00:09:38]file doc_00001734 [00:09:38]remove file /storage/0022/doc_00001734 [00:09:38]file doc_00001736 [00:09:38]remove file /storage/0022/doc_00001736 [00:09:38]file doc_00001737 [00:09:38]remove file /storage/0022/doc_00001737 [00:09:38]file doc_00001738 [00:09:38]remove file /storage/0022/doc_00001738 [00:09:38]file doc_00001739 [00:09:38]remove file /storage/0022/doc_00001739 [00:09:38]file doc_00001740 [00:09:38]remove file /storage/0022/doc_00001740 [00:09:38]file doc_00001741 [00:09:38]remove file /storage/0022/doc_00001741 [00:09:38]file doc_00001742 [00:09:38]remove file /storage/0022/doc_00001742 [00:09:38]file doc_00001743 [00:09:38]remove file /storage/0022/doc_00001743 [00:09:38]file doc_00001744 [00:09:38]remove file /storage/0022/doc_00001744 [00:09:38]file doc_00001745 [00:09:38]remove file /storage/0022/doc_00001745 [00:09:38]file doc_00001746 [00:09:38]remove file /storage/0022/doc_00001746 [00:09:38]file doc_00001747 [00:09:38]remove file /storage/0022/doc_00001747 [00:09:38]file doc_00001748 [00:09:38]remove file /storage/0022/doc_00001748 [00:09:38]file doc_00001749 [00:09:38]remove file /storage/0022/doc_00001749 [00:09:38]file doc_00001750 [00:09:38]remove file /storage/0022/doc_00001750 [00:09:38]file doc_00001751 [00:09:38]remove file /storage/0022/doc_00001751 [00:09:38]file doc_00001752 [00:09:38]remove file /storage/0022/doc_00001752 [00:09:38]file doc_00001753 [00:09:38]remove file /storage/0022/doc_00001753 [00:09:38]file doc_00001754 [00:09:38]remove file /storage/0022/doc_00001754 [00:09:38]file doc_00001755 [00:09:38]remove file /storage/0022/doc_00001755 [00:09:38]file doc_00001756 [00:09:38]remove file /storage/0022/doc_00001756 [00:09:38]file doc_00001757 [00:09:38]remove file /storage/0022/doc_00001757 [00:09:38]file doc_00001758 [00:09:38]remove file /storage/0022/doc_00001758 [00:09:38]file doc_00001759 [00:09:38]remove file /storage/0022/doc_00001759 [00:09:38]file doc_00001760 [00:09:38]remove file /storage/0022/doc_00001760 [00:09:38]file doc_00001761 [00:09:38]remove file /storage/0022/doc_00001761 [00:09:38]file doc_00001762 [00:09:38]remove file /storage/0022/doc_00001762 [00:09:38]file doc_00001763 [00:09:38]remove file /storage/0022/doc_00001763 [00:09:38]file doc_00001764 [00:09:38]remove file /storage/0022/doc_00001764 [00:09:38]file doc_00001765 [00:09:38]remove file /storage/0022/doc_00001765 [00:09:38]remove dir /storage/0022 [00:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=259 [00:09:38]tlvbuf is 0014B840 [00:09:38]SAM_PROTO_ClearQueue [00:09:38]wFMCommunicate request_size=4 [00:09:38]MH_SAM_APDU [00:09:38]CAPDU: 80 09 00 00 [00:09:38]Write to MH i2c: E2 08 00 91 06 80 09 00 00 00 00 00 00 09 [00:09:38]Write i2c OK [00:09:38]MH_I2C_Read... [00:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:38]Read from MH i2c: E2 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 03 00 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [00:09:38]RAPDU: 90 00 [00:09:38]wFMCommunicate OK [00:09:38]SAM_PROTO_ClearQueue done [00:09:38]KKMCreateOFDPacket [00:09:38]OFDProtocolAddRootSTLVToBuf [00:09:38]FM_MakeSignedData [00:09:38]FM_MakeSignedData [00:09:38]SAM_PROTO_SignData [00:09:38]wFMCommunicate request_size=4 [00:09:38]MH_SAM_APDU [00:09:38]CAPDU: 80 0D 01 02 [00:09:38]Write to MH i2c: E2 08 00 92 06 80 0D 01 02 00 00 00 00 11 [00:09:38]Write i2c OK [00:09:38]MH_I2C_Read... [00:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:38]Read from MH i2c: E2 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 03 00 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [00:09:38]RAPDU: 90 00 [00:09:38]wFMCommunicate OK [00:09:38]wFMCommunicate request_size=255 [00:09:38]MH_SAM_APDU [00:09:38]CAPDU: 80 0D 02 02 FA 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A7 D0 BE D1 80 D0 BE 20 D1 83 2E 20 D0 9A 2E 20 F1 03 5C 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D1 82 2D D0 91 D0 B0 D0 B7 D0 B0 D1 80 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A1 D1 83 D1 83 D1 81 D0 B0 D0 BC D1 8B D1 80 2C 20 34 32 2E 34 38 35 30 35 36 2C 37 32 2E 35 35 32 32 32 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 43 74 90 66 0E 04 04 00 17 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E6 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 [00:09:38]Write to MH i2c: E2 02 01 93 06 80 0D 02 02 FA 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A7 D0 BE D1 80 D0 BE 20 D1 83 2E 20 D0 9A 2E 20 F1 03 5C 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D1 82 2D D0 91 D0 B0 D0 B7 D0 B0 D1 80 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A1 D1 83 D1 83 D1 81 D0 B0 D0 BC D1 8B D1 80 2C 20 34 32 2E 34 38 35 30 35 36 2C 37 32 2E 35 35 32 32 32 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 43 74 90 66 0E 04 04 00 17 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E6 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 00 00 6F [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 03 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [00:09:39]RAPDU: 90 00 [00:09:39]wFMCommunicate OK [00:09:39]wFMCommunicate request_size=18 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 0D 02 02 0D 35 39 32 35 04 06 00 7C EA 63 3C 20 14 [00:09:39]Write to MH i2c: E2 15 00 94 06 80 0D 02 02 0D 00 35 39 32 35 04 06 00 7C EA 63 3C 20 14 00 00 46 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 03 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [00:09:39]RAPDU: 90 00 [00:09:39]wFMCommunicate OK [00:09:39]wFMCommunicate request_size=4 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 0D 03 02 [00:09:39]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 0B 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 0B 00 95 06 00 D6 E0 68 24 BA EA 05 F3 90 00 F5 [00:09:39]RAPDU: D6 E0 68 24 BA EA 05 F3 90 00 [00:09:39]wFMCommunicate OK [00:09:39]SAM_PROTO_SignData done [00:09:39]FM_MakeSignedData done [00:09:39]CreateOFDProtocolMessage [00:09:39]wFMCommunicate request_size=4 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 11 00 00 [00:09:39]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 17 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 6C [00:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:09:39]wFMCommunicate OK [00:09:39]CreateOFDProtocolMessage done [00:09:39]OFDSenderStorePacket 1766 [00:09:39]StoreOFDPacket docnum=1766 [00:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 17 01 00 00 18 0B 0F 01 58 F9 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A7 D0 BE D1 80 D0 BE 20 D1 83 2E 20 D0 9A 2E 20 F1 03 5C 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D1 82 2D D0 91 D0 B0 D0 B7 D0 B0 D1 80 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A1 D1 83 D1 83 D1 81 D0 B0 D0 BC D1 8B D1 80 2C 20 34 32 2E 34 38 35 30 35 36 2C 37 32 2E 35 35 32 32 32 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 43 74 90 66 0E 04 04 00 17 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E6 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 7C EA 63 3C 20 14 D6 E0 68 24 BA EA 05 F3 [00:09:39]CheckFolder [00:09:39]dirname=/storage/ofd_packets [00:09:39]CheckFolder done [00:09:39]ProducePacketName [00:09:39]name=ofd_packets/00001766 [00:09:39]NVStorageSaveData ofd_packets/00001766 [00:09:39]File name is /storage/ofd_packets/00001766 [00:09:39]Write 309 bytes [00:09:39]NVStorageSaveData done [00:09:39]OFDSenderStorePacket done [00:09:39]KKMCreateOFDPacket done [00:09:39]NVStorageSaveData kkm_last_timestamp [00:09:39]File name is /storage/kkm_last_timestamp [00:09:39]Write 4 bytes [00:09:39]NVStorageSaveData done [00:09:39]ExternCall_PrintAddStr [00:09:39]wPrintStart [00:09:39]Write to MH i2c: 01 00 00 97 06 9D [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 07 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [00:09:39]RasterBufferAndPrint [00:09:39]line Отчет об открытии смены [00:09:39]line ФФД: 1.0 [00:09:39]line ИНН: 02508201610067 [00:09:39]line Кассир: Чоро у. К. [00:09:39]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [00:09:39]line Место: АЗС № 76 "Партнер Нефть" [00:09:39]line 12.07.2024 00:09 [00:09:39]line Смена: 23 [00:09:39]line РНМ: 0000000000177495 [00:09:39]line ЗНМ: 0300000124 [00:09:39]line ФД: 1766 [00:09:39]line ФМ: 0000000002098592 [00:09:39]line ФПД: 137346129076244 [00:09:39]written 0, free lines is 4095 [00:09:39]OFD Sender: Processing packet 1766 [packets to send 1, broken 0] [00:09:39]ProducePacketName [00:09:39]name=ofd_packets/00001766 [00:09:39]OFD Sender: To server: pG, [00:09:39]CommunicateWithHost lk.salyk.kg:30040 [00:09:39]ConnectInit lk.salyk.kg [00:09:39]Connected sock=10 [00:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 17 01 00 00 18 0B 0F 01 58 F9 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A7 D0 BE D1 80 D0 BE 20 D1 83 2E 20 D0 9A 2E 20 F1 03 5C 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D1 82 2D D0 91 D0 B0 D0 B7 D0 B0 D1 80 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A1 D1 83 D1 83 D1 81 D0 B0 D0 BC D1 8B D1 80 2C 20 34 32 2E 34 38 35 30 35 36 2C 37 32 2E 35 35 32 32 32 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 43 74 90 66 0E 04 04 00 17 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E6 06 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 7C EA 63 3C 20 14 D6 E0 68 24 BA EA 05 F3 [00:09:39]Write to MH i2c: 01 00 00 A9 06 AF [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 07 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 07 00 A9 06 00 00 00 00 00 A4 0E 68 [00:09:39]RasterBufferAndPrint [00:09:39]line [00:09:39]line [00:09:39]line [00:09:39]line [00:09:39]line [00:09:39]written 0, free lines is 3764 [00:09:39]MH_Cut [00:09:39]Write to MH i2c: D1 01 00 B0 06 01 88 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: D1 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: D1 01 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: D1 01 00 B0 06 00 87 [00:09:39]Write to MH i2c: 01 00 00 B1 06 B7 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4F 00 00 00 3D 11 47 00 86 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 E6 06 00 00 F4 03 04 00 7D 1F 90 66 B6 04 01 00 00 CB 8C 38 68 75 4E 40 36 [00:09:40]CommunicateWithHost err = 0 [00:09:40]CheckOFDResponse [00:09:40]1017 (14) - 77093643461234 [00:09:40]1041 (16) - 0000000002098592 [00:09:40]1040 (4) - 1766 [00:09:40]1012 (4) - 11.07.2024 18:07 [00:09:40]1206 (1) - 0 [00:09:40]OFD Sender: Remove packet 1766 [00:09:40]ProducePacketName [00:09:40]name=ofd_packets/00001766 [00:09:40]NVStorageDeleteData [00:09:40]*** Cut start [00:09:40]*** Partial cut [00:09:40]*** CUTSNS_PIN = 1 [00:09:40]*** CUTSNS_PIN = 0 [00:09:40]*** Brake cut motor [00:09:40]OFD Sender: No OFD packet to send [00:09:40]Read from MH i2c: 01 [00:09:40]MH_I2C_Read... [00:09:40]*** Stop cut motor [00:09:40]*** Cut end [00:09:40]Read from MH i2c: 01 07 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 FF 0F CC [00:09:40]process_action open_shift done [00:09:40]requested_data is exist [00:09:40]produce_requested_data [00:09:40]requested_item fd.num is exist - process it [00:09:40]SAM_PROTO_GetFieldsCounters [00:09:40]wFMCommunicate request_size=4 [00:09:40]MH_SAM_APDU [00:09:40]CAPDU: 80 13 00 00 [00:09:40]Write to MH i2c: E2 08 00 B2 06 80 13 00 00 00 00 00 00 34 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 62 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 62 00 B2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E6 06 00 00 0E 04 04 00 17 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [00:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 37 37 34 39 35 10 04 04 00 E6 06 00 00 0E 04 04 00 17 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:41]wFMCommunicate OK [00:09:41]SAM_PROTO_GetFieldsCounters done [00:09:41]requested_item shift.num is exist - process it [00:09:41]requested_item shift.opened is exist - process it [00:09:41]req_shift_opened [00:09:41]FM_GetShiftState [00:09:41]SAM_PROTO_GetShiftState [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 13 01 00 [00:09:41]Write to MH i2c: E2 08 00 B3 06 80 13 01 00 00 00 00 00 36 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 0E 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 0E 00 B3 06 00 09 00 01 43 74 90 66 00 00 00 00 90 00 EF [00:09:41]RAPDU: 09 00 01 43 74 90 66 00 00 00 00 90 00 [00:09:41]wFMCommunicate OK [00:09:41]SAM_PROTO_GetShiftState done [00:09:41]FM_GetShiftState done [00:09:41]req_shift_opened done [00:09:41]requested_item shift.open_date is exist - process it [00:09:41]req_shift_open_date [00:09:41]req_shift_open_date done [00:09:41]produce_requested_data done [00:09:41]produce_requested_data return {"fd.num":1766,"shift.num":23,"shift.opened":1,"shift.open_date":1720742979} [00:09:41]process_action_free open_shift [00:09:41]json_value_free [00:09:41]json_value_free done [00:09:41]process_json_proto returns [00:09:41]Send response to host [00:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":1766,"shift.num":23,"shift.opened":1,"shift.open_date":1720742979}}} [00:09:41]free response buf [00:09:41]execute_script done [00:09:41]execute_script returns [00:09:41]free content buf [00:09:41]Sock 8.Close socket [00:09:41]Sock 8.Thread stoped [00:09:41]accept exits with 9 [00:09:41]New connection [00:09:41]New thread 3067411812 created [00:09:41]Thread 3067555172 joined [00:09:41]Waiting for new connection... [00:09:41] Sock 9.Parse request [00:09:41]Sock 9.Check first char [00:09:41]Sock 9.First char is OK [00:09:41]request: POST /json_proto HTTP/1.0 [00:09:41]Method: POST [00:09:41]URL: /json_proto [00:09:41]Method is POST - this is cgi request [00:09:41]url: /json_proto [00:09:41]query_string will be loaded in cgi processing [00:09:41]execute_cgi json_proto POST (null) [00:09:41]execute_cgi path=json_proto method=POST [00:09:41]POST find Content-Length [00:09:41]Host: 172.17.35.133:8080 [00:09:41]Content-Length: 331 [00:09:41]Content-Type: application/json [00:09:41] [00:09:41]POST finish read [00:09:41]Found Content-Length = 331 [00:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:41]execute_script... [00:09:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:41]POST & json_proto [00:09:41]process_json_proto [00:09:41]json parsed OK: [00:09:41]protocol is kg_v1.0 [00:09:41]action value=get_value [00:09:41]process_action get_value [00:09:41]cmd_get_value [00:09:41]process_action get_value done [00:09:41]requested_data is exist [00:09:41]produce_requested_data [00:09:41]requested_item fm.sale.total is exist - process it [00:09:41]SAM_PROTO_GetFMData [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 13 03 00 [00:09:41]Write to MH i2c: E2 08 00 B4 06 80 13 03 00 00 00 00 00 39 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 FD 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 FD 00 B4 06 00 BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 02 [00:09:41]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 B8 06 00 00 69 04 9F 00 6F 04 04 00 B6 06 00 00 B1 04 04 00 1D 48 37 04 70 04 04 00 D8 DB 7F 03 72 04 03 00 45 6C B7 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 9D 72 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 8C 09 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 75 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 25 70 04 01 00 64 72 04 02 00 1C 25 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FC 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:09:41]wFMCommunicate OK [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 17 00 00 [00:09:41]Write to MH i2c: E2 08 00 B5 06 80 17 00 00 00 00 00 00 3B [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 FD 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 FD 00 B5 06 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 38 [00:09:42]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:09:42]wFMCommunicate OK [00:09:42]wFMCommunicate request_size=4 [00:09:42]MH_SAM_APDU [00:09:42]CAPDU: 80 17 00 00 [00:09:42]Write to MH i2c: E2 08 00 B6 06 80 17 00 00 00 00 00 00 3C [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:42]Read from MH i2c: E2 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: E2 FD 00 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: E2 FD 00 B6 06 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 68 [00:09:42]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:09:42]wFMCommunicate OK [00:09:42]wFMCommunicate request_size=4 [00:09:42]MH_SAM_APDU [00:09:42]CAPDU: 80 17 00 00 [00:09:42]Write to MH i2c: E2 08 00 B7 06 80 17 00 00 00 00 00 00 3D [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:42]Read from MH i2c: E2 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: E2 FD 00 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: E2 FD 00 B7 06 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 B5 [00:09:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:09:42]wFMCommunicate OK [00:09:42]wFMCommunicate request_size=4 [00:09:42]MH_SAM_APDU [00:09:42]CAPDU: 80 17 00 00 [00:09:42]Write to MH i2c: E2 08 00 B8 06 80 17 00 00 00 00 00 00 3E [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 D7 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 D7 00 B8 06 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 21 [00:09:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:43]wFMCommunicate OK [00:09:43]SAM_PROTO_GetFMData done [00:09:43]requested_item fm.sale_refund.total is exist - process it [00:09:43]requested_item fm.buy.total is exist - process it [00:09:43]requested_item shift.sale.total is exist - process it [00:09:43]SAM_PROTO_GetShiftData [00:09:43]wFMCommunicate request_size=4 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 13 02 00 [00:09:43]Write to MH i2c: E2 08 00 B9 06 80 13 02 00 00 00 00 00 3D [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 FD 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 FD 00 B9 06 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 B0 [00:09:43]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:09:43]wFMCommunicate OK [00:09:43]wFMCommunicate request_size=4 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 17 00 00 [00:09:43]Write to MH i2c: E2 08 00 BA 06 80 17 00 00 00 00 00 00 40 [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 FD 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 FD 00 BA 06 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 48 [00:09:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:09:44]wFMCommunicate OK [00:09:44]wFMCommunicate request_size=4 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 17 00 00 [00:09:44]Write to MH i2c: E2 08 00 BB 06 80 17 00 00 00 00 00 00 41 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 FD 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 FD 00 BB 06 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 13 [00:09:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:09:44]wFMCommunicate OK [00:09:44]wFMCommunicate request_size=4 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 17 00 00 [00:09:44]Write to MH i2c: E2 08 00 BC 06 80 17 00 00 00 00 00 00 42 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 FD 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 FD 00 BC 06 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 B4 [00:09:45]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 17 00 00 [00:09:45]Write to MH i2c: E2 08 00 BD 06 80 17 00 00 00 00 00 00 43 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 BD 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 BD 00 BD 06 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:09:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:45]wFMCommunicate OK [00:09:45]SAM_PROTO_GetShiftData done [00:09:45]requested_item shift.sale.total_cash is exist - process it [00:09:45]requested_item shift.sale_refund.total is exist - process it [00:09:45]requested_item shift.sale_refund.total_cash is exist - process it [00:09:45]requested_item shift.buy.total is exist - process it [00:09:45]requested_item shift.buy.total_cash is exist - process it [00:09:45]produce_requested_data done [00:09:45]produce_requested_data return {"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:45]process_action_free get_value [00:09:45]json_value_free [00:09:45]json_value_free done [00:09:45]process_json_proto returns [00:09:45]Send response to host [00:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":707318.05,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:45]free response buf [00:09:45]execute_script done [00:09:45]execute_script returns [00:09:45]free content buf [00:09:45]Sock 9.Close socket [00:09:45]Sock 9.Thread stoped [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:59:26]ConnectInit Can't connect to host [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]recv_with_timeout no data received [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:04:54]ConnectInit Can't connect to host [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:52]recv_with_timeout no data received [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:14:29]ConnectInit Can't connect to host [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:00]recv_with_timeout no data received [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]recv_with_timeout no data received [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send