[07:53:34]ConnectInit Can't connect to host [07:53:38]OFD Sender: Processing packet 1841 [packets to send 12, broken 0] [07:53:38]ProducePacketName [07:53:38]name=ofd_packets/00001841 [07:53:38]OFD Sender: To server: pG, [07:53:38]CommunicateWithHost lk.salyk.kg:30040 [07:53:38]ConnectInit lk.salyk.kg [07:55:53]ConnectInit Can't connect to host [07:55:53]CommunicateWithHost connect error [07:55:53]CommunicateWithHost err = -1 [07:55:53]OFD Sender: Server communicate error [07:55:58]OFD Sender: Processing packet 1841 [packets to send 12, broken 0] [07:55:58]ProducePacketName [07:55:58]name=ofd_packets/00001841 [07:55:58]OFD Sender: To server: pG, [07:55:58]CommunicateWithHost lk.salyk.kg:30040 [07:55:58]ConnectInit lk.salyk.kg [07:55:58]Connected sock=8 [07:55: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 39 01 00 00 AC 64 31 01 F3 20 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 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 0A 00 00 00 F4 03 04 00 CB EC 91 66 0E 04 04 00 18 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 31 07 00 00 35 04 06 00 24 39 B0 8C D5 11 EF 23 E1 FE 25 21 93 02 [07:56:03]recv_with_timeout no data received [07:56:03]CommunicateWithHost answer receiving error [07:56:03]CommunicateWithHost err = -3 [07:56:03]OFD Sender: Server communicate error [07:56:08]OFD Sender: Processing packet 1841 [packets to send 12, broken 0] [07:56:08]ProducePacketName [07:56:08]name=ofd_packets/00001841 [07:56:08]OFD Sender: To server: pG, [07:56:08]CommunicateWithHost lk.salyk.kg:30040 [07:56:08]ConnectInit lk.salyk.kg [07:56:08]Connected sock=8 [07:56:08]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 39 01 00 00 AC 64 31 01 F3 20 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 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 0A 00 00 00 F4 03 04 00 CB EC 91 66 0E 04 04 00 18 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 31 07 00 00 35 04 06 00 24 39 B0 8C D5 11 EF 23 E1 FE 25 21 93 02 [07:56: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 22 A7 47 00 E0 3A 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 31 07 00 00 F4 03 04 00 4F DE 91 66 B6 04 01 00 00 7E 1A 5E 43 A8 90 9C A9 [07:56:08]CommunicateWithHost err = 0 [07:56:08]CheckOFDResponse [07:56:08]1017 (14) - 77093643461234 [07:56:08]1041 (16) - 0000000002098592 [07:56:08]1040 (4) - 1841 [07:56:08]1012 (4) - 13.07.2024 01:54 [07:56:08]1206 (1) - 0 [07:56:08]OFD Sender: Remove packet 1841 [07:56:08]ProducePacketName [07:56:08]name=ofd_packets/00001841 [07:56:08]NVStorageDeleteData [07:56:09]OFD Sender: Processing packet 1842 [packets to send 11, broken 0] [07:56:09]ProducePacketName [07:56:09]name=ofd_packets/00001842 [07:56:09]OFD Sender: To server: pG, [07:56:09]CommunicateWithHost lk.salyk.kg:30040 [07:56:09]ConnectInit lk.salyk.kg [07:56:09]Connected sock=8 [07:56: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 24 01 00 00 BE 62 1C 01 25 31 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 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 0B 00 00 00 F4 03 04 00 0D 00 92 66 0E 04 04 00 18 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 32 07 00 00 35 04 06 00 47 DD AE 56 63 02 00 3B F9 75 2A C1 4A 6E [07:56: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 FE B7 47 00 FA 0F 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 32 07 00 00 F4 03 04 00 50 DE 91 66 B6 04 01 00 00 4E 18 AA 9A DB B8 44 8E [07:56:09]CommunicateWithHost err = 0 [07:56:09]CheckOFDResponse [07:56:09]1017 (14) - 77093643461234 [07:56:09]1041 (16) - 0000000002098592 [07:56:09]1040 (4) - 1842 [07:56:09]1012 (4) - 13.07.2024 01:54 [07:56:09]1206 (1) - 0 [07:56:09]OFD Sender: Remove packet 1842 [07:56:09]ProducePacketName [07:56:09]name=ofd_packets/00001842 [07:56:09]NVStorageDeleteData [07:56:10]OFD Sender: Processing packet 1843 [packets to send 10, broken 0] [07:56:10]ProducePacketName [07:56:10]name=ofd_packets/00001843 [07:56:10]OFD Sender: To server: pG, [07:56:10]CommunicateWithHost lk.salyk.kg:30040 [07:56:10]ConnectInit lk.salyk.kg [07:56:10]Connected sock=8 [07:56: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 21 01 00 00 F5 AD 19 01 D1 10 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 0C 00 00 00 F4 03 04 00 9F 1B 92 66 0E 04 04 00 18 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 33 07 00 00 35 04 06 00 47 77 B7 D9 29 4D F9 BC 72 F2 84 54 3D F3 [07:56: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 2C 2D 47 00 46 3D 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 33 07 00 00 F4 03 04 00 51 DE 91 66 B6 04 01 00 00 71 40 A0 FD 7A 4F E5 6B [07:56:10]CommunicateWithHost err = 0 [07:56:10]CheckOFDResponse [07:56:10]1017 (14) - 77093643461234 [07:56:10]1041 (16) - 0000000002098592 [07:56:10]1040 (4) - 1843 [07:56:10]1012 (4) - 13.07.2024 01:54 [07:56:10]1206 (1) - 0 [07:56:10]OFD Sender: Remove packet 1843 [07:56:10]ProducePacketName [07:56:10]name=ofd_packets/00001843 [07:56:10]NVStorageDeleteData [07:56:11]OFD Sender: Processing packet 1844 [packets to send 9, broken 0] [07:56:11]ProducePacketName [07:56:11]name=ofd_packets/00001844 [07:56:11]OFD Sender: To server: pG, [07:56:11]CommunicateWithHost lk.salyk.kg:30040 [07:56:11]ConnectInit lk.salyk.kg [07:58:21]ConnectInit Can't connect to host [07:58:21]CommunicateWithHost connect error [07:58:21]CommunicateWithHost err = -1 [07:58:21]OFD Sender: Server communicate error [07:58:26]OFD Sender: Processing packet 1844 [packets to send 9, broken 0] [07:58:26]ProducePacketName [07:58:26]name=ofd_packets/00001844 [07:58:26]OFD Sender: To server: pG, [07:58:26]CommunicateWithHost lk.salyk.kg:30040 [07:58:26]ConnectInit lk.salyk.kg [07:58:26]Connected sock=8 [07:58: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 A8 81 07 01 95 6B 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D3 1B 92 66 0E 04 04 00 18 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 34 07 00 00 35 04 06 00 01 3C 68 4A 00 E7 E8 28 18 A9 2B ED BE ED [07:58: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 D8 FD 47 00 3E E7 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 34 07 00 00 F4 03 04 00 D9 DE 91 66 B6 04 01 00 00 48 FD 45 D7 15 21 C0 E3 [07:58:27]CommunicateWithHost err = 0 [07:58:27]CheckOFDResponse [07:58:27]1017 (14) - 77093643461234 [07:58:27]1041 (16) - 0000000002098592 [07:58:27]1040 (4) - 1844 [07:58:27]1012 (4) - 13.07.2024 01:56 [07:58:27]1206 (1) - 0 [07:58:27]OFD Sender: Remove packet 1844 [07:58:27]ProducePacketName [07:58:27]name=ofd_packets/00001844 [07:58:27]NVStorageDeleteData [07:58:27]OFD Sender: Processing packet 1845 [packets to send 8, broken 0] [07:58:27]ProducePacketName [07:58:27]name=ofd_packets/00001845 [07:58:27]OFD Sender: To server: pG, [07:58:27]CommunicateWithHost lk.salyk.kg:30040 [07:58:27]ConnectInit lk.salyk.kg [07:58:27]Connected sock=8 [07:58: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 2C 01 00 00 4C 3B 24 01 A8 03 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 43 1D 92 66 0E 04 04 00 18 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 35 07 00 00 35 04 06 00 19 B7 E9 04 52 75 ED 98 3A 33 16 24 E8 0A [07:58: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 56 75 47 00 50 EA 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 35 07 00 00 F4 03 04 00 DA DE 91 66 B6 04 01 00 00 B7 85 39 65 0C 22 EE B2 [07:58:27]CommunicateWithHost err = 0 [07:58:27]CheckOFDResponse [07:58:27]1017 (14) - 77093643461234 [07:58:27]1041 (16) - 0000000002098592 [07:58:27]1040 (4) - 1845 [07:58:27]1012 (4) - 13.07.2024 01:56 [07:58:27]1206 (1) - 0 [07:58:27]OFD Sender: Remove packet 1845 [07:58:27]ProducePacketName [07:58:27]name=ofd_packets/00001845 [07:58:27]NVStorageDeleteData [07:58:28]OFD Sender: Processing packet 1846 [packets to send 7, broken 0] [07:58:28]ProducePacketName [07:58:28]name=ofd_packets/00001846 [07:58:28]OFD Sender: To server: pG, [07:58:28]CommunicateWithHost lk.salyk.kg:30040 [07:58:28]ConnectInit lk.salyk.kg [07:58:28]Connected sock=8 [07:58:28]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 19 EF 08 01 7A 3D 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 80 1D 92 66 0E 04 04 00 18 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 36 07 00 00 35 04 06 00 38 36 57 67 02 3D BA E8 5A CB F2 16 A1 3F [07:58:28]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 C5 B0 47 00 86 23 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 36 07 00 00 F4 03 04 00 DB DE 91 66 B6 04 01 00 00 48 AA CB 7A F1 99 7F 45 [07:58:28]CommunicateWithHost err = 0 [07:58:28]CheckOFDResponse [07:58:28]1017 (14) - 77093643461234 [07:58:28]1041 (16) - 0000000002098592 [07:58:28]1040 (4) - 1846 [07:58:28]1012 (4) - 13.07.2024 01:56 [07:58:28]1206 (1) - 0 [07:58:28]OFD Sender: Remove packet 1846 [07:58:28]ProducePacketName [07:58:28]name=ofd_packets/00001846 [07:58:28]NVStorageDeleteData [07:58:29]OFD Sender: Processing packet 1847 [packets to send 6, broken 0] [07:58:29]ProducePacketName [07:58:29]name=ofd_packets/00001847 [07:58:29]OFD Sender: To server: pG, [07:58:29]CommunicateWithHost lk.salyk.kg:30040 [07:58:29]ConnectInit lk.salyk.kg [07:58:29]Connected sock=8 [07:58:29]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 3A 7B 1B 01 41 07 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 10 00 00 00 F4 03 04 00 E2 1E 92 66 0E 04 04 00 18 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 37 07 00 00 35 04 06 00 03 18 BF 30 43 E8 85 06 B5 F4 C8 61 D4 7B [07:58: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 54 60 47 00 AF 92 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 37 07 00 00 F4 03 04 00 DC DE 91 66 B6 04 01 00 00 B0 2B 2F E8 1D 36 1D 33 [07:58:30]CommunicateWithHost err = 0 [07:58:30]CheckOFDResponse [07:58:30]1017 (14) - 77093643461234 [07:58:30]1041 (16) - 0000000002098592 [07:58:30]1040 (4) - 1847 [07:58:30]1012 (4) - 13.07.2024 01:56 [07:58:30]1206 (1) - 0 [07:58:30]OFD Sender: Remove packet 1847 [07:58:30]ProducePacketName [07:58:30]name=ofd_packets/00001847 [07:58:30]NVStorageDeleteData [07:58:30]OFD Sender: Processing packet 1848 [packets to send 5, broken 0] [07:58:30]ProducePacketName [07:58:30]name=ofd_packets/00001848 [07:58:30]OFD Sender: To server: pG, [07:58:30]CommunicateWithHost lk.salyk.kg:30040 [07:58:30]ConnectInit lk.salyk.kg [07:58:30]Connected sock=9 [07:58: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 0F 01 00 00 1D 37 07 01 C7 09 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 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B7 20 92 66 0E 04 04 00 18 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 38 07 00 00 35 04 06 00 CC 1F D7 A1 9F 01 B6 0F 31 7B B8 52 8E 7D [07:58: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 3A 25 47 00 AD 79 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 38 07 00 00 F4 03 04 00 DD DE 91 66 B6 04 01 00 00 01 A7 55 F6 5F 18 E2 CF [07:58:31]CommunicateWithHost err = 0 [07:58:31]CheckOFDResponse [07:58:31]1017 (14) - 77093643461234 [07:58:31]1041 (16) - 0000000002098592 [07:58:31]1040 (4) - 1848 [07:58:31]1012 (4) - 13.07.2024 01:56 [07:58:31]1206 (1) - 0 [07:58:31]OFD Sender: Remove packet 1848 [07:58:31]ProducePacketName [07:58:31]name=ofd_packets/00001848 [07:58:31]NVStorageDeleteData [07:58:31]OFD Sender: Processing packet 1849 [packets to send 4, broken 0] [07:58:31]ProducePacketName [07:58:31]name=ofd_packets/00001849 [07:58:31]OFD Sender: To server: pG, [07:58:31]CommunicateWithHost lk.salyk.kg:30040 [07:58:31]ConnectInit lk.salyk.kg [07:58:32]Connected sock=8 [07:58: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 10 01 00 00 16 98 08 01 04 F2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 12 00 00 00 F4 03 04 00 D2 22 92 66 0E 04 04 00 18 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 39 07 00 00 35 04 06 00 98 77 DE 47 25 1E 66 F8 28 78 41 D3 40 44 [07:58: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 EB 75 47 00 D5 DD 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 39 07 00 00 F4 03 04 00 DE DE 91 66 B6 04 01 00 00 92 CF 55 5E 3B 3A E7 61 [07:58:32]CommunicateWithHost err = 0 [07:58:32]CheckOFDResponse [07:58:32]1017 (14) - 77093643461234 [07:58:32]1041 (16) - 0000000002098592 [07:58:32]1040 (4) - 1849 [07:58:32]1012 (4) - 13.07.2024 01:56 [07:58:32]1206 (1) - 0 [07:58:32]OFD Sender: Remove packet 1849 [07:58:32]ProducePacketName [07:58:32]name=ofd_packets/00001849 [07:58:32]NVStorageDeleteData [07:58:32]OFD Sender: Processing packet 1850 [packets to send 3, broken 0] [07:58:32]ProducePacketName [07:58:32]name=ofd_packets/00001850 [07:58:32]OFD Sender: To server: pG, [07:58:32]CommunicateWithHost lk.salyk.kg:30040 [07:58:32]ConnectInit lk.salyk.kg [07:58:32]Connected sock=8 [07:58: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 0F 01 00 00 99 49 07 01 AD 6C 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 92 C2 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8B F6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 86 00 00 00 00 07 04 06 00 50 F6 04 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 5B 23 92 66 0E 04 04 00 18 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 3A 07 00 00 35 04 06 00 7B BC 06 00 1F FD E3 8F F2 72 7B 90 26 AE [07:58:33]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 63 0E 47 00 F8 3B 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 3A 07 00 00 F4 03 04 00 DF DE 91 66 B6 04 01 00 00 56 66 D4 40 06 EE 1C 3A [07:58:33]CommunicateWithHost err = 0 [07:58:33]CheckOFDResponse [07:58:33]1017 (14) - 77093643461234 [07:58:33]1041 (16) - 0000000002098592 [07:58:33]1040 (4) - 1850 [07:58:33]1012 (4) - 13.07.2024 01:56 [07:58:33]1206 (1) - 0 [07:58:33]OFD Sender: Remove packet 1850 [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00001850 [07:58:33]NVStorageDeleteData [07:58:33]OFD Sender: Processing packet 1851 [packets to send 2, broken 0] [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00001851 [07:58:33]OFD Sender: To server: pG, [07:58:33]CommunicateWithHost lk.salyk.kg:30040 [07:58:33]ConnectInit lk.salyk.kg [07:58:34]Connected sock=8 [07:58: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 0F 01 00 00 D7 3E 07 01 62 2A 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 A0 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 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 9D 27 92 66 0E 04 04 00 18 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 3B 07 00 00 35 04 06 00 33 18 21 69 E3 D0 8D 1E C3 90 A6 06 5E 10 [07:58: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 37 6A 47 00 03 25 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 3B 07 00 00 F4 03 04 00 E0 DE 91 66 B6 04 01 00 00 E9 8D 3E 64 EB 06 AC EF [07:58:34]CommunicateWithHost err = 0 [07:58:34]CheckOFDResponse [07:58:34]1017 (14) - 77093643461234 [07:58:34]1041 (16) - 0000000002098592 [07:58:34]1040 (4) - 1851 [07:58:34]1012 (4) - 13.07.2024 01:56 [07:58:34]1206 (1) - 0 [07:58:34]OFD Sender: Remove packet 1851 [07:58:34]ProducePacketName [07:58:34]name=ofd_packets/00001851 [07:58:34]NVStorageDeleteData [07:58:34]OFD Sender: Processing packet 1852 [packets to send 1, broken 0] [07:58:34]ProducePacketName [07:58:34]name=ofd_packets/00001852 [07:58:34]OFD Sender: To server: pG, [07:58:34]CommunicateWithHost lk.salyk.kg:30040 [07:58:34]ConnectInit lk.salyk.kg [07:58:34]Connected sock=8 [07:58: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 0F 01 00 00 89 CF 07 01 72 51 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 15 00 00 00 F4 03 04 00 FD 27 92 66 0E 04 04 00 18 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 3C 07 00 00 35 04 06 00 22 07 FF 97 19 05 9C A2 D0 E6 C2 76 C0 6B [07:58: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 14 0D 47 00 2B 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 3C 07 00 00 F4 03 04 00 E1 DE 91 66 B6 04 01 00 00 B1 3C 73 72 E8 4E 79 65 [07:58:35]CommunicateWithHost err = 0 [07:58:35]CheckOFDResponse [07:58:35]1017 (14) - 77093643461234 [07:58:35]1041 (16) - 0000000002098592 [07:58:35]1040 (4) - 1852 [07:58:35]1012 (4) - 13.07.2024 01:56 [07:58:35]1206 (1) - 0 [07:58:35]OFD Sender: Remove packet 1852 [07:58:35]ProducePacketName [07:58:35]name=ofd_packets/00001852 [07:58:35]NVStorageDeleteData [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:41]accept exits with 11 [08:02:41]New connection [08:02:41]New thread 3067161956 created [08:02:41]Thread 3067018596 joined [08:02:41]Waiting for new connection... [08:02:41] Sock 11.Parse request [08:02:41]Sock 11.Check first char [08:02:41]Sock 11.First char is OK [08:02:41]request: POST /json_proto HTTP/1.0 [08:02:41]Method: POST [08:02:41]URL: /json_proto [08:02:41]Method is POST - this is cgi request [08:02:41]url: /json_proto [08:02:41]query_string will be loaded in cgi processing [08:02:41]execute_cgi json_proto POST (null) [08:02:41]execute_cgi path=json_proto method=POST [08:02:41]POST find Content-Length [08:02:41]Host: 172.17.35.133:8080 [08:02:41]Content-Length: 575 [08:02:41]Content-Type: application/json [08:02:41] [08:02:41]POST finish read [08:02:41]Found Content-Length = 575 [08:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256311", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [08:02:41]execute_script... [08:02: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)256311", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [08:02:41]POST & json_proto [08:02:41]process_json_proto [08:02:41]json parsed OK: [08:02:41]protocol is kg_v1.0 [08:02:41]action value=close_receipt [08:02:41]process_action close_receipt [08:02:41]cmd_close_receipt [08:02:41]MH_GetDate [08:02:41]Write to MH i2c: F0 00 00 A7 09 9F [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: F0 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: F0 09 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: F0 09 00 A7 09 00 A3 34 92 66 1B 28 2A 66 4A [08:02:41]GetLastDocTimeStamp 1720854525 [08:02:41]current date 1720857763 [08:02:41]FM_GetShiftState [08:02:41]SAM_PROTO_GetShiftState [08:02:41]wFMCommunicate request_size=4 [08:02:41]MH_SAM_APDU [08:02:41]CAPDU: 80 13 01 00 [08:02:41]Write to MH i2c: E2 08 00 A8 09 80 13 01 00 00 00 00 00 2E [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 0E 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 0E 00 A8 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B9 [08:02:41]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:02:41]wFMCommunicate OK [08:02:41]SAM_PROTO_GetShiftState done [08:02:41]FM_GetShiftState done [08:02:41]opened in 1720829379 [08:02:41]opened+sec_in_day 1720915779 [08:02:41]quantity*price = 13000 [08:02:41]sum+1 = 13001 [08:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 22 13.07.2024 08:02 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1853 ФПД: 191706964155717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080243&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1853&fm=191706964155717&tin=02508201610067®Number=0000000000177495&sum=13000 0 [08:02:42]StoreToDocumentArchive [08:02:42]shift 24 fd 1853 [08:02:42]save to /storage/0024/doc_00001853 [08:02:42]save last doc name /storage/0024/doc_00001853 to /storage/kkm_last_doc_name [08:02:42]save OK [08:02:42]Clear old archive folders... [08:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=259 [08:02:42]tlvbuf is 00F7FD00 [08:02:42]SAM_PROTO_ClearQueue [08:02:42]wFMCommunicate request_size=4 [08:02:42]MH_SAM_APDU [08:02:42]CAPDU: 80 09 00 00 [08:02:42]Write to MH i2c: E2 08 00 B5 09 80 09 00 00 00 00 00 00 30 [08:02:42]Write i2c OK [08:02:42]MH_I2C_Read... [08:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:42]Read from MH i2c: E2 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: E2 03 00 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [08:02:42]RAPDU: 90 00 [08:02:42]wFMCommunicate OK [08:02:42]SAM_PROTO_ClearQueue done [08:02:42]KKMCreateOFDPacket [08:02:42]OFDProtocolAddRootSTLVToBuf [08:02:42]FM_MakeSignedData [08:02:42]FM_MakeSignedData [08:02:42]SAM_PROTO_SignData [08:02:42]wFMCommunicate request_size=4 [08:02:42]MH_SAM_APDU [08:02:42]CAPDU: 80 0D 01 02 [08:02:42]Write to MH i2c: E2 08 00 B6 09 80 0D 01 02 00 00 00 00 38 [08:02:42]Write i2c OK [08:02:42]MH_I2C_Read... [08:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:42]Read from MH i2c: E2 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: E2 03 00 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [08:02:42]RAPDU: 90 00 [08:02:42]wFMCommunicate OK [08:02:42]wFMCommunicate request_size=255 [08:02:42]MH_SAM_APDU [08:02:42]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 16 00 00 00 F4 03 04 00 A3 34 92 66 0E 04 04 00 18 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 3D [08:02:42]Write to MH i2c: E2 02 01 B7 09 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 16 00 00 00 F4 03 04 00 A3 34 92 66 0E 04 04 00 18 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 3D 00 00 6E [08:02:42]Write i2c OK [08:02:42]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 03 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [08:02:43]RAPDU: 90 00 [08:02:43]wFMCommunicate OK [08:02:43]wFMCommunicate request_size=18 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 0D 02 02 0D 07 00 00 35 04 06 00 AE 5B 41 7F DD 45 [08:02:43]Write to MH i2c: E2 15 00 B8 09 80 0D 02 02 0D 00 07 00 00 35 04 06 00 AE 5B 41 7F DD 45 00 00 86 [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 03 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [08:02:43]RAPDU: 90 00 [08:02:43]wFMCommunicate OK [08:02:43]wFMCommunicate request_size=4 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 0D 03 02 [08:02:43]Write to MH i2c: E2 08 00 B9 09 80 0D 03 02 00 00 00 00 3D [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 0B 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 0B 00 B9 09 00 9D 47 20 6B 42 CD 5F BC 90 00 D7 [08:02:43]RAPDU: 9D 47 20 6B 42 CD 5F BC 90 00 [08:02:43]wFMCommunicate OK [08:02:43]SAM_PROTO_SignData done [08:02:43]FM_MakeSignedData done [08:02:43]CreateOFDProtocolMessage [08:02:43]wFMCommunicate request_size=4 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 11 00 00 [08:02:43]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 17 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 93 [08:02:43]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:43]wFMCommunicate OK [08:02:43]CreateOFDProtocolMessage done [08:02:43]OFDSenderStorePacket 1853 [08:02:43]StoreOFDPacket docnum=1853 [08:02: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 17 01 00 00 AD 18 0F 01 A5 3C 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 16 00 00 00 F4 03 04 00 A3 34 92 66 0E 04 04 00 18 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 3D 07 00 00 35 04 06 00 AE 5B 41 7F DD 45 9D 47 20 6B 42 CD 5F BC [08:02:43]CheckFolder [08:02:43]dirname=/storage/ofd_packets [08:02:43]CheckFolder done [08:02:43]ProducePacketName [08:02:43]name=ofd_packets/00001853 [08:02:43]NVStorageSaveData ofd_packets/00001853 [08:02:43]File name is /storage/ofd_packets/00001853 [08:02:43]Write 309 bytes [08:02:43]NVStorageSaveData done [08:02:43]OFDSenderStorePacket done [08:02:43]KKMCreateOFDPacket done [08:02:43]NVStorageSaveData kkm_last_timestamp [08:02:43]File name is /storage/kkm_last_timestamp [08:02:43]Write 4 bytes [08:02:43]NVStorageSaveData done [08:02:43]ExternCall_PrintAddStr [08:02:43]wPrintStart [08:02:43]Write to MH i2c: 01 00 00 BB 09 C4 [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 07 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 FF 0F D9 [08:02:43]RasterBufferAndPrint [08:02:43]line Счет N : (3)256311 [08:02:43]line ИНН: 02508201610067 [08:02:43]line Контрольно-Кассовый Чек [08:02:43]line ПРОДАЖА [08:02:43]line Товар: 46233820 [08:02:43]line LD Compact 100s Silver [08:02:43]line 1.000 * 130.00 [08:02:43]line = 130.00 [08:02:43]line НДС 12% НСП 1% [08:02:43]line > о реализуемом товаре [08:02:43]line ИТОГО: 130.00 [08:02:43]line НСП 1% : 1.15 [08:02:43]line НДС 12% : 13.80 [08:02:43]line Наличными: 130.00 [08:02:43]line Безнал.: 0.00 [08:02:43]line Место: АЗС № 76 "Партнер Нефть" [08:02:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:02:43]line СНО: Общий режим [08:02:43]line Чек 22 13.07.2024 08:02 [08:02:43]line Смена: 24 ФФД: 1.0 [08:02:43]line ЗНМ: 0300000124 [08:02:43]line РНМ: 0000000000177495 [08:02:43]line Версия ККМ: 001 [08:02:43]line ФМ: 0000000002098592 [08:02:43]line ФД: 1853 [08:02:43]line ФПД: 191706964155717 [08:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080243&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1853&fm=191706964155717&tin=02508201610067®Number=0000000000177495&sum=13000 [08:02:43]line 0 [08:02:43]OFD Sender: Processing packet 1853 [packets to send 1, broken 0] [08:02:43]ProducePacketName [08:02:43]name=ofd_packets/00001853 [08:02:43]OFD Sender: To server: pG, [08:02:43]CommunicateWithHost lk.salyk.kg:30040 [08:02:43]ConnectInit lk.salyk.kg [08:02:43]written 0, free lines is 4095 [08:02:43]Connected sock=9 [08:02: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 17 01 00 00 AD 18 0F 01 A5 3C 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 16 00 00 00 F4 03 04 00 A3 34 92 66 0E 04 04 00 18 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 3D 07 00 00 35 04 06 00 AE 5B 41 7F DD 45 9D 47 20 6B 42 CD 5F BC [08:02: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 F8 C5 47 00 CA 0E 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 3D 07 00 00 F4 03 04 00 DA DF 91 66 B6 04 01 00 00 E1 EE C4 1C 85 9A 56 0F [08:02:43]CommunicateWithHost err = 0 [08:02:43]CheckOFDResponse [08:02:43]1017 (14) - 77093643461234 [08:02:43]1041 (16) - 0000000002098592 [08:02:43]1040 (4) - 1853 [08:02:43]1012 (4) - 13.07.2024 02:00 [08:02:43]1206 (1) - 0 [08:02:43]OFD Sender: Remove packet 1853 [08:02:43]ProducePacketName [08:02:43]name=ofd_packets/00001853 [08:02:43]NVStorageDeleteData [08:02:43]Write to MH i2c: 01 00 00 E3 09 EC [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 07 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 FE 0C FD [08:02:43]RasterBufferAndPrint [08:02:43]line [08:02:43]line [08:02:43]line [08:02:43]line [08:02:43]line [08:02:43]written 0, free lines is 3333 [08:02:44]MH_Cut [08:02:44]Write to MH i2c: D1 01 00 EA 09 01 C5 [08:02:44]Write i2c OK [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: D1 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: D1 01 00 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: D1 01 00 EA 09 00 C4 [08:02:44]Write to MH i2c: 01 00 00 EB 09 F4 [08:02:44]Write i2c OK [08:02:44]MH_I2C_Read... [08:02:44]OFD Sender: No OFD packet to send [08:02:44]*** Cut start [08:02:44]*** Partial cut [08:02:44]*** CUTSNS_PIN = 1 [08:02:44]*** CUTSNS_PIN = 0 [08:02:44]*** Brake cut motor [08:02:45]Read from MH i2c: 01 [08:02:45]MH_I2C_Read... [08:02:45]*** Stop cut motor [08:02:45]*** Cut end [08:02:45]Read from MH i2c: 01 07 00 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [08:02:45]process_action close_receipt done [08:02:45]requested_data is exist [08:02:45]produce_requested_data [08:02:45]requested_item fm.sn is exist - process it [08:02:45]wFMCommunicate request_size=4 [08:02:45]MH_SAM_APDU [08:02:45]CAPDU: 80 11 00 00 [08:02:45]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [08:02:45]Write i2c OK [08:02:45]MH_I2C_Read... [08:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:45]Read from MH i2c: E2 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: E2 17 00 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C5 [08:02:45]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:45]wFMCommunicate OK [08:02:45]requested_item fd.num is exist - process it [08:02:45]SAM_PROTO_GetFieldsCounters [08:02:45]wFMCommunicate request_size=4 [08:02:45]MH_SAM_APDU [08:02:45]CAPDU: 80 13 00 00 [08:02:45]Write to MH i2c: E2 08 00 ED 09 80 13 00 00 00 00 00 00 72 [08:02:45]Write i2c OK [08:02:45]MH_I2C_Read... [08:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:45]Read from MH i2c: E2 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: E2 62 00 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: E2 62 00 ED 09 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 3D 07 00 00 0E 04 04 00 18 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 3C [08:02: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 3D 07 00 00 0E 04 04 00 18 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 [08:02:45]wFMCommunicate OK [08:02:45]SAM_PROTO_GetFieldsCounters done [08:02:45]requested_item shift.num is exist - process it [08:02:45]requested_item shift.opened is exist - process it [08:02:45]req_shift_opened [08:02:45]FM_GetShiftState [08:02:45]SAM_PROTO_GetShiftState [08:02:45]wFMCommunicate request_size=4 [08:02:45]MH_SAM_APDU [08:02:45]CAPDU: 80 13 01 00 [08:02:45]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [08:02:45]Write i2c OK [08:02:45]MH_I2C_Read... [08:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:45]Read from MH i2c: E2 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: E2 0E 00 [08:02:45]MH_I2C_Read... [08:02:45]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 FF [08:02:45]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:02:45]wFMCommunicate OK [08:02:45]SAM_PROTO_GetShiftState done [08:02:45]FM_GetShiftState done [08:02:45]req_shift_opened done [08:02:45]requested_item shift.open_date is exist - process it [08:02:45]req_shift_open_date [08:02:45]req_shift_open_date done [08:02:45]produce_requested_data done [08:02:45]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1853,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:02:45]process_action_free close_receipt [08:02:45]json_value_free [08:02:45]json_value_free done [08:02:45]process_json_proto returns [08:02:45]Send response to host [08:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1853,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:02:45]free response buf [08:02:45]execute_script done [08:02:45]execute_script returns [08:02:45]free content buf [08:02:45]Sock 11.Close socket [08:02:45]Sock 11.Thread stoped [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:10]accept exits with 8 [08:04:10]New connection [08:04:10]New thread 3067018596 created [08:04:10]Thread 3067161956 joined [08:04:10]Waiting for new connection... [08:04:10] Sock 8.Parse request [08:04:10]Sock 8.Check first char [08:04:10]Sock 8.First char is OK [08:04:10]request: POST /json_proto HTTP/1.0 [08:04:10]Method: POST [08:04:10]URL: /json_proto [08:04:10]Method is POST - this is cgi request [08:04:10]url: /json_proto [08:04:10]query_string will be loaded in cgi processing [08:04:10]execute_cgi json_proto POST (null) [08:04:10]execute_cgi path=json_proto method=POST [08:04:10]POST find Content-Length [08:04:10]Host: 172.17.35.133:8080 [08:04:10]Content-Length: 946 [08:04:10]Content-Type: application/json [08:04:10] [08:04:10]POST finish read [08:04:10]Found Content-Length = 946 [08:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 60.000, "sum" : 4296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 4296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:10]execute_script... [08:04: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 : (1)1618950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 60.000, "sum" : 4296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 4296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:10]POST & json_proto [08:04:10]process_json_proto [08:04:10]json parsed OK: [08:04:10]protocol is kg_v1.0 [08:04:10]action value=close_receipt [08:04:10]process_action close_receipt [08:04:10]cmd_close_receipt [08:04:10]MH_GetDate [08:04:10]Write to MH i2c: F0 00 00 EF 09 E7 [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: F0 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: F0 09 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: F0 09 00 EF 09 00 FC 34 92 66 1B 28 2A 66 EB [08:04:10]GetLastDocTimeStamp 1720857763 [08:04:10]current date 1720857852 [08:04:10]FM_GetShiftState [08:04:10]SAM_PROTO_GetShiftState [08:04:10]wFMCommunicate request_size=4 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 13 01 00 [08:04:10]Write to MH i2c: E2 08 00 F0 09 80 13 01 00 00 00 00 00 76 [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 0E 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 0E 00 F0 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 01 [08:04:10]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:04:10]wFMCommunicate OK [08:04:10]SAM_PROTO_GetShiftState done [08:04:10]FM_GetShiftState done [08:04:10]opened in 1720829379 [08:04:10]opened+sec_in_day 1720915779 [08:04:10]quantity*price = 429600 [08:04:10]sum+1 = 429601 [08:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4296.00 НСП 1% : 38.02 НДС 12% : 456.21 Наличными: 4296.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 23 13.07.2024 08:04 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Дисконтная программа ДТ номер 76 сэкономлено 60.00 сом ФМ: 0000000002098592 ФД: 1854 ФПД: 110002240726402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080412&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1854&fm=110002240726402&tin=02508201610067®Number=0000000000177495&sum=429600 [08:04:11]StoreToDocumentArchive [08:04:11]shift 24 fd 1854 [08:04:11]save to /storage/0024/doc_00001854 [08:04:11]save last doc name /storage/0024/doc_00001854 to /storage/kkm_last_doc_name [08:04:11]save OK [08:04:11]Clear old archive folders... [08:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:04:11]tlvbuf is 00F78680 [08:04:11]SAM_PROTO_ClearQueue [08:04:11]wFMCommunicate request_size=4 [08:04:11]MH_SAM_APDU [08:04:11]CAPDU: 80 09 00 00 [08:04:11]Write to MH i2c: E2 08 00 FD 09 80 09 00 00 00 00 00 00 78 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:11]Read from MH i2c: E2 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [08:04:11]RAPDU: 90 00 [08:04:11]wFMCommunicate OK [08:04:11]SAM_PROTO_ClearQueue done [08:04:11]KKMCreateOFDPacket [08:04:11]OFDProtocolAddRootSTLVToBuf [08:04:11]FM_MakeSignedData [08:04:11]FM_MakeSignedData [08:04:11]SAM_PROTO_SignData [08:04:11]wFMCommunicate request_size=4 [08:04:11]MH_SAM_APDU [08:04:11]CAPDU: 80 0D 01 02 [08:04:11]Write to MH i2c: E2 08 00 FE 09 80 0D 01 02 00 00 00 00 80 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:11]Read from MH i2c: E2 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [08:04:11]RAPDU: 90 00 [08:04:11]wFMCommunicate OK [08:04:11]wFMCommunicate request_size=255 [08:04:11]MH_SAM_APDU [08:04:11]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 60 EA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 20 8E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 8E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 B2 00 00 00 00 07 04 06 00 20 8E 06 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 FC 34 92 66 0E 04 04 00 18 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 3E 07 00 00 35 04 06 00 [08:04:11]Write to MH i2c: E2 02 01 FF 09 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 60 EA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 20 8E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 8E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 B2 00 00 00 00 07 04 06 00 20 8E 06 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 FC 34 92 66 0E 04 04 00 18 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 3E 07 00 00 35 04 06 00 00 00 B3 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:11]Read from MH i2c: E2 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [08:04:11]RAPDU: 90 00 [08:04:11]wFMCommunicate OK [08:04:11]wFMCommunicate request_size=11 [08:04:11]MH_SAM_APDU [08:04:11]CAPDU: 80 0D 02 02 06 64 0B E4 7B A5 82 [08:04:11]Write to MH i2c: E2 0E 00 00 0A 80 0D 02 02 06 00 64 0B E4 7B A5 82 00 00 85 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:11]Read from MH i2c: E2 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [08:04:11]RAPDU: 90 00 [08:04:11]wFMCommunicate OK [08:04:11]wFMCommunicate request_size=4 [08:04:11]MH_SAM_APDU [08:04:11]CAPDU: 80 0D 03 02 [08:04:11]Write to MH i2c: E2 08 00 01 0A 80 0D 03 02 00 00 00 00 86 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:11]Read from MH i2c: E2 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 0B 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 0B 00 01 0A 00 3D 9A 07 8A 2A D3 41 2A 90 00 57 [08:04:11]RAPDU: 3D 9A 07 8A 2A D3 41 2A 90 00 [08:04:11]wFMCommunicate OK [08:04:11]SAM_PROTO_SignData done [08:04:11]FM_MakeSignedData done [08:04:11]CreateOFDProtocolMessage [08:04:11]wFMCommunicate request_size=4 [08:04:11]MH_SAM_APDU [08:04:11]CAPDU: 80 11 00 00 [08:04:11]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:11]Read from MH i2c: E2 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 17 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DC [08:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:04:11]wFMCommunicate OK [08:04:11]CreateOFDProtocolMessage done [08:04:11]OFDSenderStorePacket 1854 [08:04:11]StoreOFDPacket docnum=1854 [08:04:11]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 AB B6 08 01 34 CB 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 60 EA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 20 8E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 8E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 B2 00 00 00 00 07 04 06 00 20 8E 06 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 FC 34 92 66 0E 04 04 00 18 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 3E 07 00 00 35 04 06 00 64 0B E4 7B A5 82 3D 9A 07 8A 2A D3 41 2A [08:04:11]CheckFolder [08:04:11]dirname=/storage/ofd_packets [08:04:11]CheckFolder done [08:04:11]ProducePacketName [08:04:11]name=ofd_packets/00001854 [08:04:11]NVStorageSaveData ofd_packets/00001854 [08:04:11]File name is /storage/ofd_packets/00001854 [08:04:11]Write 302 bytes [08:04:11]NVStorageSaveData done [08:04:11]OFDSenderStorePacket done [08:04:11]KKMCreateOFDPacket done [08:04:11]NVStorageSaveData kkm_last_timestamp [08:04:11]File name is /storage/kkm_last_timestamp [08:04:11]Write 4 bytes [08:04:11]NVStorageSaveData done [08:04:11]ExternCall_PrintAddStr [08:04:11]wPrintStart [08:04:11]Write to MH i2c: 01 00 00 03 0A 0D [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: 01 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: 01 07 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [08:04:11]RasterBufferAndPrint [08:04:11]line Счет N : (1)1618950 [08:04:11]line ИНН: 02508201610067 [08:04:11]line Контрольно-Кассовый Чек [08:04:11]line ПРОДАЖА [08:04:11]line ТРК (МРК, ГНК) : 61 [08:04:11]line Товар: 2710194210 [08:04:11]line ДТ(л)-К-4 [08:04:11]line 60.000 * 71.60 [08:04:11]line = 4296.00 [08:04:11]line НДС 12% НСП 1% [08:04:11]line > о реализуемом товаре [08:04:11]line ИТОГО: 4296.00 [08:04:11]line НСП 1% : 38.02 [08:04:11]line НДС 12% : 456.21 [08:04:11]line Наличными: 4296.00 [08:04:11]line Безнал.: 0.00 [08:04:11]line Место: АЗС № 76 "Партнер Нефть" [08:04:11]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:04:11]line СНО: Общий режим [08:04:11]line Чек 23 13.07.2024 08:04 [08:04:11]line Смена: 24 ФФД: 1.0 [08:04:11]line ЗНМ: 0300000124 [08:04:11]line РНМ: 0000000000177495 [08:04:11]line Версия ККМ: 001 [08:04:11]line [08:04:11]line Дисконтная программа [08:04:11]line ДТ [08:04:11]line номер 76 [08:04:11]line сэкономлено 60.00 сом [08:04:11]line ФМ: 0000000002098592 [08:04:11]line ФД: 1854 [08:04:11]line ФПД: 110002240726402 [08:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080412&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1854&fm=110002240726402&tin=02508201610067®Number=0000000000177495&sum=429600 [08:04:12]OFD Sender: Processing packet 1854 [packets to send 1, broken 0] [08:04:12]ProducePacketName [08:04:12]name=ofd_packets/00001854 [08:04:12]OFD Sender: To server: pG, [08:04:12]CommunicateWithHost lk.salyk.kg:30040 [08:04:12]ConnectInit lk.salyk.kg [08:04:12]written 0, free lines is 4095 [08:04:12]Connected sock=10 [08:04: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 10 01 00 00 AB B6 08 01 34 CB 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 60 EA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 20 8E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 8E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 B2 00 00 00 00 07 04 06 00 20 8E 06 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 FC 34 92 66 0E 04 04 00 18 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 3E 07 00 00 35 04 06 00 64 0B E4 7B A5 82 3D 9A 07 8A 2A D3 41 2A [08:04: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 5F 16 47 00 64 F2 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 3E 07 00 00 F4 03 04 00 33 E0 91 66 B6 04 01 00 00 C7 B3 EC 52 09 8A 15 CB [08:04:12]CommunicateWithHost err = 0 [08:04:12]CheckOFDResponse [08:04:12]1017 (14) - 77093643461234 [08:04:12]1041 (16) - 0000000002098592 [08:04:12]1040 (4) - 1854 [08:04:12]1012 (4) - 13.07.2024 02:02 [08:04:12]1206 (1) - 0 [08:04:12]OFD Sender: Remove packet 1854 [08:04:12]ProducePacketName [08:04:12]name=ofd_packets/00001854 [08:04:12]NVStorageDeleteData [08:04:12]Write to MH i2c: 01 00 00 30 0A 3A [08:04:12]Write i2c OK [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: 01 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: 01 07 00 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 AE 0C FB [08:04:12]RasterBufferAndPrint [08:04:12]line [08:04:12]line [08:04:12]line [08:04:12]line [08:04:12]line [08:04:12]written 0, free lines is 3253 [08:04:12]MH_Cut [08:04:12]Write to MH i2c: D1 01 00 37 0A 01 13 [08:04:12]Write i2c OK [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: D1 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: D1 01 00 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: D1 01 00 37 0A 00 12 [08:04:12]Write to MH i2c: 01 00 00 38 0A 42 [08:04:12]Write i2c OK [08:04:12]MH_I2C_Read... [08:04:13]OFD Sender: No OFD packet to send [08:04:13]*** Cut start [08:04:13]*** Partial cut [08:04:13]*** CUTSNS_PIN = 1 [08:04:13]*** CUTSNS_PIN = 0 [08:04:13]*** Brake cut motor [08:04:14]Read from MH i2c: 01 [08:04:14]MH_I2C_Read... [08:04:14]*** Stop cut motor [08:04:14]*** Cut end [08:04:14]Read from MH i2c: 01 07 00 [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [08:04:14]process_action close_receipt done [08:04:14]requested_data is exist [08:04:14]produce_requested_data [08:04:14]requested_item fm.sn is exist - process it [08:04:14]wFMCommunicate request_size=4 [08:04:14]MH_SAM_APDU [08:04:14]CAPDU: 80 11 00 00 [08:04:14]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [08:04:14]Write i2c OK [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: E2 [08:04:14]MH_I2C_Read... [08:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:14]Read from MH i2c: E2 17 00 [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 13 [08:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:04:14]wFMCommunicate OK [08:04:14]requested_item fd.num is exist - process it [08:04:14]SAM_PROTO_GetFieldsCounters [08:04:14]wFMCommunicate request_size=4 [08:04:14]MH_SAM_APDU [08:04:14]CAPDU: 80 13 00 00 [08:04:14]Write to MH i2c: E2 08 00 3A 0A 80 13 00 00 00 00 00 00 C0 [08:04:14]Write i2c OK [08:04:14]MH_I2C_Read... [08:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:14]Read from MH i2c: E2 [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: E2 62 00 [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: E2 62 00 3A 0A 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 3E 07 00 00 0E 04 04 00 18 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 8E [08:04:14]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 3E 07 00 00 0E 04 04 00 18 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 [08:04:14]wFMCommunicate OK [08:04:14]SAM_PROTO_GetFieldsCounters done [08:04:14]requested_item shift.num is exist - process it [08:04:14]requested_item shift.opened is exist - process it [08:04:14]req_shift_opened [08:04:14]FM_GetShiftState [08:04:14]SAM_PROTO_GetShiftState [08:04:14]wFMCommunicate request_size=4 [08:04:14]MH_SAM_APDU [08:04:14]CAPDU: 80 13 01 00 [08:04:14]Write to MH i2c: E2 08 00 3B 0A 80 13 01 00 00 00 00 00 C2 [08:04:14]Write i2c OK [08:04:14]MH_I2C_Read... [08:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:14]Read from MH i2c: E2 [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: E2 0E 00 [08:04:14]MH_I2C_Read... [08:04:14]Read from MH i2c: E2 0E 00 3B 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4D [08:04:14]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:04:14]wFMCommunicate OK [08:04:14]SAM_PROTO_GetShiftState done [08:04:14]FM_GetShiftState done [08:04:14]req_shift_opened done [08:04:14]requested_item shift.open_date is exist - process it [08:04:14]req_shift_open_date [08:04:14]req_shift_open_date done [08:04:14]produce_requested_data done [08:04:14]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1854,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:04:14]process_action_free close_receipt [08:04:14]json_value_free [08:04:14]json_value_free done [08:04:14]process_json_proto returns [08:04:14]Send response to host [08:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1854,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:04:14]free response buf [08:04:14]execute_script done [08:04:14]execute_script returns [08:04:14]free content buf [08:04:14]Sock 8.Close socket [08:04:14]Sock 8.Thread stoped [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:42]accept exits with 9 [08:04:42]New connection [08:04:42]New thread 3067161956 created [08:04:42]Thread 3067018596 joined [08:04:42]Waiting for new connection... [08:04:42] Sock 9.Parse request [08:04:42]Sock 9.Check first char [08:04:42]Sock 9.First char is OK [08:04:42]request: POST /json_proto HTTP/1.0 [08:04:42]Method: POST [08:04:42]URL: /json_proto [08:04:42]Method is POST - this is cgi request [08:04:42]url: /json_proto [08:04:42]query_string will be loaded in cgi processing [08:04:42]execute_cgi json_proto POST (null) [08:04:42]execute_cgi path=json_proto method=POST [08:04:42]POST find Content-Length [08:04:42]Host: 172.17.35.133:8080 [08:04:42]Content-Length: 623 [08:04:42]Content-Type: application/json [08:04:42] [08:04:42]POST finish read [08:04:42]Found Content-Length = 623 [08:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256312", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:42]execute_script... [08:04:42]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)256312", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:42]POST & json_proto [08:04:42]process_json_proto [08:04:42]json parsed OK: [08:04:42]protocol is kg_v1.0 [08:04:42]action value=close_receipt [08:04:42]process_action close_receipt [08:04:42]cmd_close_receipt [08:04:42]MH_GetDate [08:04:42]Write to MH i2c: F0 00 00 3C 0A 35 [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: F0 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: F0 09 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: F0 09 00 3C 0A 00 1C 35 92 66 1B 28 2A 66 5A [08:04:42]GetLastDocTimeStamp 1720857852 [08:04:42]current date 1720857884 [08:04:42]FM_GetShiftState [08:04:42]SAM_PROTO_GetShiftState [08:04:42]wFMCommunicate request_size=4 [08:04:42]MH_SAM_APDU [08:04:42]CAPDU: 80 13 01 00 [08:04:42]Write to MH i2c: E2 08 00 3D 0A 80 13 01 00 00 00 00 00 C4 [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:42]Read from MH i2c: E2 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 0E 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 0E 00 3D 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4F [08:04:42]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:04:42]wFMCommunicate OK [08:04:42]SAM_PROTO_GetShiftState done [08:04:42]FM_GetShiftState done [08:04:42]opened in 1720829379 [08:04:42]opened+sec_in_day 1720915779 [08:04:42]quantity*price = 14000 [08:04:42]sum+1 = 14001 [08:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 24 13.07.2024 08:04 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1855 ФПД: 129291153683174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080444&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1855&fm=129291153683174&tin=02508201610067®Number=0000000000177495&sum=14000 0 [08:04:43]StoreToDocumentArchive [08:04:43]shift 24 fd 1855 [08:04:43]save to /storage/0024/doc_00001855 [08:04:43]save last doc name /storage/0024/doc_00001855 to /storage/kkm_last_doc_name [08:04:43]save OK [08:04:43]Clear old archive folders... [08:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:04:43]tlvbuf is 00F4D870 [08:04:43]SAM_PROTO_ClearQueue [08:04:43]wFMCommunicate request_size=4 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 09 00 00 [08:04:43]Write to MH i2c: E2 08 00 4A 0A 80 09 00 00 00 00 00 00 C6 [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [08:04:43]RAPDU: 90 00 [08:04:43]wFMCommunicate OK [08:04:43]SAM_PROTO_ClearQueue done [08:04:43]KKMCreateOFDPacket [08:04:43]OFDProtocolAddRootSTLVToBuf [08:04:43]FM_MakeSignedData [08:04:43]FM_MakeSignedData [08:04:43]SAM_PROTO_SignData [08:04:43]wFMCommunicate request_size=4 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 0D 01 02 [08:04:43]Write to MH i2c: E2 08 00 4B 0A 80 0D 01 02 00 00 00 00 CE [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [08:04:43]RAPDU: 90 00 [08:04:43]wFMCommunicate OK [08:04:43]wFMCommunicate request_size=255 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 0D 02 02 FA 03 00 13 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 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 18 00 00 00 F4 03 04 00 1C 35 92 66 0E 04 04 00 18 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 [08:04:43]Write to MH i2c: E2 02 01 4C 0A 80 0D 02 02 FA 00 03 00 13 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 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 18 00 00 00 F4 03 04 00 1C 35 92 66 0E 04 04 00 18 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 00 00 DF [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:44]Read from MH i2c: E2 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 03 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [08:04:44]RAPDU: 90 00 [08:04:44]wFMCommunicate OK [08:04:44]wFMCommunicate request_size=34 [08:04:44]MH_SAM_APDU [08:04:44]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 3F 07 00 00 35 04 06 00 75 96 F1 49 B2 E6 [08:04:44]Write to MH i2c: E2 25 00 4D 0A 80 0D 02 02 1D 00 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 3F 07 00 00 35 04 06 00 75 96 F1 49 B2 E6 00 00 B8 [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:44]Read from MH i2c: E2 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 03 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [08:04:44]RAPDU: 90 00 [08:04:44]wFMCommunicate OK [08:04:44]wFMCommunicate request_size=4 [08:04:44]MH_SAM_APDU [08:04:44]CAPDU: 80 0D 03 02 [08:04:44]Write to MH i2c: E2 08 00 4E 0A 80 0D 03 02 00 00 00 00 D3 [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:44]Read from MH i2c: E2 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 0B 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 0B 00 4E 0A 00 6A 49 24 9E 36 BE 8D 98 90 00 62 [08:04:44]RAPDU: 6A 49 24 9E 36 BE 8D 98 90 00 [08:04:44]wFMCommunicate OK [08:04:44]SAM_PROTO_SignData done [08:04:44]FM_MakeSignedData done [08:04:44]CreateOFDProtocolMessage [08:04:44]wFMCommunicate request_size=4 [08:04:44]MH_SAM_APDU [08:04:44]CAPDU: 80 11 00 00 [08:04:44]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:44]Read from MH i2c: E2 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 17 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 29 [08:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:04:44]wFMCommunicate OK [08:04:44]CreateOFDProtocolMessage done [08:04:44]OFDSenderStorePacket 1855 [08:04:44]StoreOFDPacket docnum=1855 [08:04: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 27 01 00 00 D7 83 1F 01 D0 2C 5A 03 01 00 03 00 13 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 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 18 00 00 00 F4 03 04 00 1C 35 92 66 0E 04 04 00 18 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 3F 07 00 00 35 04 06 00 75 96 F1 49 B2 E6 6A 49 24 9E 36 BE 8D 98 [08:04:44]CheckFolder [08:04:44]dirname=/storage/ofd_packets [08:04:44]CheckFolder done [08:04:44]ProducePacketName [08:04:44]name=ofd_packets/00001855 [08:04:44]NVStorageSaveData ofd_packets/00001855 [08:04:44]File name is /storage/ofd_packets/00001855 [08:04:44]Write 325 bytes [08:04:44]NVStorageSaveData done [08:04:44]OFDSenderStorePacket done [08:04:44]KKMCreateOFDPacket done [08:04:44]NVStorageSaveData kkm_last_timestamp [08:04:44]File name is /storage/kkm_last_timestamp [08:04:44]Write 4 bytes [08:04:44]NVStorageSaveData done [08:04:44]ExternCall_PrintAddStr [08:04:44]wPrintStart [08:04:44]Write to MH i2c: 01 00 00 50 0A 5A [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 07 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [08:04:44]RasterBufferAndPrint [08:04:44]line Счет N : (3)256312 [08:04:44]line ИНН: 02508201610067 [08:04:44]line Контрольно-Кассовый Чек [08:04:44]line ПРОДАЖА [08:04:44]line Товар: 48743587 [08:04:44]line Сигареты Winston XStyle Silver [08:04:44]line 1.000 * 140.00 [08:04:44]line = 140.00 [08:04:44]line НДС 12% НСП 1% [08:04:44]line > о реализуемом товаре [08:04:44]line ИТОГО: 140.00 [08:04:44]line НСП 1% : 1.24 [08:04:44]line НДС 12% : 14.87 [08:04:44]line Наличными: 140.00 [08:04:44]line Безнал.: 0.00 [08:04:44]line Место: АЗС № 76 "Партнер Нефть" [08:04:44]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:04:44]line СНО: Общий режим [08:04:44]line Чек 24 13.07.2024 08:04 [08:04:44]line Смена: 24 ФФД: 1.0 [08:04:44]line ЗНМ: 0300000124 [08:04:44]line РНМ: 0000000000177495 [08:04:44]line Версия ККМ: 001 [08:04:44]line ФМ: 0000000002098592 [08:04:44]line ФД: 1855 [08:04:44]line ФПД: 129291153683174 [08:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080444&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1855&fm=129291153683174&tin=02508201610067®Number=0000000000177495&sum=14000 [08:04:44]line 0 [08:04:44]OFD Sender: Processing packet 1855 [packets to send 1, broken 0] [08:04:44]ProducePacketName [08:04:44]name=ofd_packets/00001855 [08:04:44]OFD Sender: To server: pG, [08:04:44]CommunicateWithHost lk.salyk.kg:30040 [08:04:44]ConnectInit lk.salyk.kg [08:04:44]written 0, free lines is 4095 [08:04:44]Connected sock=10 [08:04: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 27 01 00 00 D7 83 1F 01 D0 2C 5A 03 01 00 03 00 13 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 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 18 00 00 00 F4 03 04 00 1C 35 92 66 0E 04 04 00 18 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 3F 07 00 00 35 04 06 00 75 96 F1 49 B2 E6 6A 49 24 9E 36 BE 8D 98 [08:04:44]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 E7 40 47 00 34 0F 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 3F 07 00 00 F4 03 04 00 53 E0 91 66 B6 04 01 00 00 AB 9C 57 F0 C8 17 A3 0F [08:04:44]CommunicateWithHost err = 0 [08:04:44]CheckOFDResponse [08:04:44]1017 (14) - 77093643461234 [08:04:44]1041 (16) - 0000000002098592 [08:04:44]1040 (4) - 1855 [08:04:44]1012 (4) - 13.07.2024 02:02 [08:04:44]1206 (1) - 0 [08:04:44]OFD Sender: Remove packet 1855 [08:04:44]ProducePacketName [08:04:44]name=ofd_packets/00001855 [08:04:44]NVStorageDeleteData [08:04:45]Write to MH i2c: 01 00 00 79 0A 83 [08:04:45]Write i2c OK [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: 01 [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: 01 07 00 [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 F1 0C 87 [08:04:45]RasterBufferAndPrint [08:04:45]line [08:04:45]line [08:04:45]line [08:04:45]line [08:04:45]line [08:04:45]written 0, free lines is 3319 [08:04:45]MH_Cut [08:04:45]Write to MH i2c: D1 01 00 80 0A 01 5C [08:04:45]Write i2c OK [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: D1 [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: D1 01 00 [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: D1 01 00 80 0A 00 5B [08:04:45]Write to MH i2c: 01 00 00 81 0A 8B [08:04:45]Write i2c OK [08:04:45]MH_I2C_Read... [08:04:45]OFD Sender: No OFD packet to send [08:04:45]*** Cut start [08:04:45]*** Partial cut [08:04:45]*** CUTSNS_PIN = 1 [08:04:45]*** CUTSNS_PIN = 0 [08:04:46]*** Brake cut motor [08:04:46]Read from MH i2c: 01 [08:04:46]MH_I2C_Read... [08:04:46]*** Stop cut motor [08:04:46]*** Cut end [08:04:46]Read from MH i2c: 01 07 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 FF 0F A0 [08:04:46]process_action close_receipt done [08:04:46]requested_data is exist [08:04:46]produce_requested_data [08:04:46]requested_item fm.sn is exist - process it [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 11 00 00 [08:04:46]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 17 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5C [08:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:04:46]wFMCommunicate OK [08:04:46]requested_item fd.num is exist - process it [08:04:46]SAM_PROTO_GetFieldsCounters [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 13 00 00 [08:04:46]Write to MH i2c: E2 08 00 83 0A 80 13 00 00 00 00 00 00 09 [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 62 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 62 00 83 0A 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 3F 07 00 00 0E 04 04 00 18 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 DB [08:04: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 3F 07 00 00 0E 04 04 00 18 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 [08:04:46]wFMCommunicate OK [08:04:46]SAM_PROTO_GetFieldsCounters done [08:04:46]requested_item shift.num is exist - process it [08:04:46]requested_item shift.opened is exist - process it [08:04:46]req_shift_opened [08:04:46]FM_GetShiftState [08:04:46]SAM_PROTO_GetShiftState [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 13 01 00 [08:04:46]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 0E 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 0E 00 84 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 96 [08:04:46]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:04:46]wFMCommunicate OK [08:04:46]SAM_PROTO_GetShiftState done [08:04:46]FM_GetShiftState done [08:04:46]req_shift_opened done [08:04:46]requested_item shift.open_date is exist - process it [08:04:46]req_shift_open_date [08:04:46]req_shift_open_date done [08:04:46]produce_requested_data done [08:04:46]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1855,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:04:46]process_action_free close_receipt [08:04:46]json_value_free [08:04:46]json_value_free done [08:04:46]process_json_proto returns [08:04:46]Send response to host [08:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1855,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:04:46]free response buf [08:04:46]execute_script done [08:04:46]execute_script returns [08:04:46]free content buf [08:04:46]Sock 9.Close socket [08:04:46]Sock 9.Thread stoped [08:04:48]accept exits with 8 [08:04:48]New connection [08:04:48]New thread 3067018596 created [08:04:48]Thread 3067161956 joined [08:04:48]Waiting for new connection... [08:04:48] Sock 8.Parse request [08:04:48]Sock 8.Check first char [08:04:48]Sock 8.First char is OK [08:04:48]request: POST /json_proto HTTP/1.0 [08:04:48]Method: POST [08:04:48]URL: /json_proto [08:04:48]Method is POST - this is cgi request [08:04:48]url: /json_proto [08:04:48]query_string will be loaded in cgi processing [08:04:48]execute_cgi json_proto POST (null) [08:04:48]execute_cgi path=json_proto method=POST [08:04:48]POST find Content-Length [08:04:48]Host: 172.17.35.133:8080 [08:04:48]Content-Length: 849 [08:04:48]Content-Type: application/json [08:04:48] [08:04:48]POST finish read [08:04:48]Found Content-Length = 849 [08:04:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:48]execute_script... [08:04: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 : (1)1618951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:48]POST & json_proto [08:04:48]process_json_proto [08:04:48]json parsed OK: [08:04:48]protocol is kg_v1.0 [08:04:48]action value=close_receipt [08:04:48]process_action close_receipt [08:04:48]cmd_close_receipt [08:04:48]MH_GetDate [08:04:48]Write to MH i2c: F0 00 00 85 0A 7E [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: F0 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: F0 09 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: F0 09 00 85 0A 00 23 35 92 66 1B 28 2A 66 AA [08:04:48]GetLastDocTimeStamp 1720857884 [08:04:48]current date 1720857891 [08:04:48]FM_GetShiftState [08:04:48]SAM_PROTO_GetShiftState [08:04:48]wFMCommunicate request_size=4 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 13 01 00 [08:04:48]Write to MH i2c: E2 08 00 86 0A 80 13 01 00 00 00 00 00 0D [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 0E 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 0E 00 86 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 98 [08:04:48]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:04:48]wFMCommunicate OK [08:04:48]SAM_PROTO_GetShiftState done [08:04:48]FM_GetShiftState done [08:04:48]opened in 1720829379 [08:04:48]opened+sec_in_day 1720915779 [08:04:48]quantity*price = 150064 [08:04:48]sum+1 = 150065 [08:04:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 25 13.07.2024 08:04 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1856 ФПД: 265212665960947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080451&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1856&fm=265212665960947&tin=02508201610067®Number=0000000000177495&sum=150064 [08:04:49]StoreToDocumentArchive [08:04:49]shift 24 fd 1856 [08:04:49]save to /storage/0024/doc_00001856 [08:04:49]save last doc name /storage/0024/doc_00001856 to /storage/kkm_last_doc_name [08:04:49]save OK [08:04:49]Clear old archive folders... [08:04:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:04:49]tlvbuf is 00F4D760 [08:04:49]SAM_PROTO_ClearQueue [08:04:49]wFMCommunicate request_size=4 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 09 00 00 [08:04:49]Write to MH i2c: E2 08 00 93 0A 80 09 00 00 00 00 00 00 0F [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [08:04:49]RAPDU: 90 00 [08:04:49]wFMCommunicate OK [08:04:49]SAM_PROTO_ClearQueue done [08:04:49]KKMCreateOFDPacket [08:04:49]OFDProtocolAddRootSTLVToBuf [08:04:49]FM_MakeSignedData [08:04:49]FM_MakeSignedData [08:04:49]SAM_PROTO_SignData [08:04:49]wFMCommunicate request_size=4 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 0D 01 02 [08:04:49]Write to MH i2c: E2 08 00 94 0A 80 0D 01 02 00 00 00 00 17 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [08:04:49]RAPDU: 90 00 [08:04:49]wFMCommunicate OK [08:04:49]wFMCommunicate request_size=255 [08:04:49]MH_SAM_APDU [08:04:49]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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 23 35 92 66 0E 04 04 00 18 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 40 07 00 00 35 04 06 00 [08:04:49]Write to MH i2c: E2 02 01 95 0A 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 23 35 92 66 0E 04 04 00 18 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 40 07 00 00 35 04 06 00 00 00 DB [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 03 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [08:04:50]RAPDU: 90 00 [08:04:50]wFMCommunicate OK [08:04:50]wFMCommunicate request_size=11 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 0D 02 02 06 F1 35 A2 BE 99 F3 [08:04:50]Write to MH i2c: E2 0E 00 96 0A 80 0D 02 02 06 00 F1 35 A2 BE 99 F3 00 00 38 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 03 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [08:04:50]RAPDU: 90 00 [08:04:50]wFMCommunicate OK [08:04:50]wFMCommunicate request_size=4 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 0D 03 02 [08:04:50]Write to MH i2c: E2 08 00 97 0A 80 0D 03 02 00 00 00 00 1C [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 0B 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 0B 00 97 0A 00 C0 42 69 E4 15 C0 FF 73 90 00 B3 [08:04:50]RAPDU: C0 42 69 E4 15 C0 FF 73 90 00 [08:04:50]wFMCommunicate OK [08:04:50]SAM_PROTO_SignData done [08:04:50]FM_MakeSignedData done [08:04:50]CreateOFDProtocolMessage [08:04:50]wFMCommunicate request_size=4 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 11 00 00 [08:04:50]Write to MH i2c: E2 08 00 98 0A 80 11 00 00 00 00 00 00 1C [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 17 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 17 00 98 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 72 [08:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:04:50]wFMCommunicate OK [08:04:50]CreateOFDProtocolMessage done [08:04:50]OFDSenderStorePacket 1856 [08:04:50]StoreOFDPacket docnum=1856 [08:04: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 10 01 00 00 66 56 08 01 F3 B0 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 23 35 92 66 0E 04 04 00 18 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 40 07 00 00 35 04 06 00 F1 35 A2 BE 99 F3 C0 42 69 E4 15 C0 FF 73 [08:04:50]CheckFolder [08:04:50]dirname=/storage/ofd_packets [08:04:50]CheckFolder done [08:04:50]ProducePacketName [08:04:50]name=ofd_packets/00001856 [08:04:50]NVStorageSaveData ofd_packets/00001856 [08:04:50]File name is /storage/ofd_packets/00001856 [08:04:50]OFD Sender: No OFD packet to send [08:04:50]Write 302 bytes [08:04:50]NVStorageSaveData done [08:04:50]OFDSenderStorePacket done [08:04:50]KKMCreateOFDPacket done [08:04:50]NVStorageSaveData kkm_last_timestamp [08:04:50]File name is /storage/kkm_last_timestamp [08:04:50]Write 4 bytes [08:04:50]NVStorageSaveData done [08:04:50]ExternCall_PrintAddStr [08:04:50]wPrintStart [08:04:50]Write to MH i2c: 01 00 00 99 0A A3 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [08:04:50]RasterBufferAndPrint [08:04:50]line Счет N : (1)1618951 [08:04:50]line ИНН: 02508201610067 [08:04:50]line Контрольно-Кассовый Чек [08:04:50]line ПРОДАЖА [08:04:50]line ТРК (МРК, ГНК) : 22 [08:04:50]line Товар: 2710194210 [08:04:50]line ДТ(л)-К-4 [08:04:50]line 20.670 * 72.60 [08:04:50]line = 1500.64 [08:04:50]line НДС 12% НСП 1% [08:04:50]line > о реализуемом товаре [08:04:50]line ИТОГО: 1500.64 [08:04:50]line НСП 1% : 13.28 [08:04:50]line НДС 12% : 159.36 [08:04:50]line Наличными: 0.00 [08:04:50]line Безнал.: 1500.64 [08:04:50]line Место: АЗС № 76 "Партнер Нефть" [08:04:50]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:04:50]line СНО: Общий режим [08:04:50]line Чек 25 13.07.2024 08:04 [08:04:50]line Смена: 24 ФФД: 1.0 [08:04:50]line ЗНМ: 0300000124 [08:04:50]line РНМ: 0000000000177495 [08:04:50]line Версия ККМ: 001 [08:04:50]line Платежная система: АКБ Кыргызстан [08:04:50]line ФМ: 0000000002098592 [08:04:50]line ФД: 1856 [08:04:50]line ФПД: 265212665960947 [08:04:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080451&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1856&fm=265212665960947&tin=02508201610067®Number=0000000000177495&sum=150064 [08:04:50]written 0, free lines is 4095 [08:04:50]OFD Sender: Processing packet 1856 [packets to send 1, broken 0] [08:04:50]ProducePacketName [08:04:50]name=ofd_packets/00001856 [08:04:50]OFD Sender: To server: pG, [08:04:50]CommunicateWithHost lk.salyk.kg:30040 [08:04:50]ConnectInit lk.salyk.kg [08:04:50]Connected sock=10 [08:04:50]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 66 56 08 01 F3 B0 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 23 35 92 66 0E 04 04 00 18 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 40 07 00 00 35 04 06 00 F1 35 A2 BE 99 F3 C0 42 69 E4 15 C0 FF 73 [08:04: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 98 35 47 00 88 95 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 40 07 00 00 F4 03 04 00 59 E0 91 66 B6 04 01 00 00 6A 2F 0F 3B 3F 69 91 87 [08:04:50]CommunicateWithHost err = 0 [08:04:50]CheckOFDResponse [08:04:50]1017 (14) - 77093643461234 [08:04:50]1041 (16) - 0000000002098592 [08:04:50]1040 (4) - 1856 [08:04:50]1012 (4) - 13.07.2024 02:03 [08:04:50]1206 (1) - 0 [08:04:50]OFD Sender: Remove packet 1856 [08:04:50]ProducePacketName [08:04:50]name=ofd_packets/00001856 [08:04:50]NVStorageDeleteData [08:04:50]Write to MH i2c: 01 00 00 C3 0A CD [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 0A 0D EB [08:04:50]RasterBufferAndPrint [08:04:50]line [08:04:50]line [08:04:50]line [08:04:50]line [08:04:50]line [08:04:50]written 0, free lines is 3353 [08:04:50]MH_Cut [08:04:50]Write to MH i2c: D1 01 00 CA 0A 01 A6 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: D1 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: D1 01 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: D1 01 00 CA 0A 00 A5 [08:04:50]Write to MH i2c: 01 00 00 CB 0A D5 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:51]OFD Sender: No OFD packet to send [08:04:51]*** Cut start [08:04:51]*** Partial cut [08:04:51]*** CUTSNS_PIN = 1 [08:04:51]*** CUTSNS_PIN = 0 [08:04:51]*** Brake cut motor [08:04:52]Read from MH i2c: 01 [08:04:52]MH_I2C_Read... [08:04:52]*** Stop cut motor [08:04:52]*** Cut end [08:04:52]Read from MH i2c: 01 07 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 FF 0F EA [08:04:52]process_action close_receipt done [08:04:52]requested_data is exist [08:04:52]produce_requested_data [08:04:52]requested_item fm.sn is exist - process it [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 11 00 00 [08:04:52]Write to MH i2c: E2 08 00 CC 0A 80 11 00 00 00 00 00 00 50 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 17 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 17 00 CC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A6 [08:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:04:52]wFMCommunicate OK [08:04:52]requested_item fd.num is exist - process it [08:04:52]SAM_PROTO_GetFieldsCounters [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 13 00 00 [08:04:52]Write to MH i2c: E2 08 00 CD 0A 80 13 00 00 00 00 00 00 53 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 62 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 62 00 CD 0A 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 40 07 00 00 0E 04 04 00 18 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 29 [08:04: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 40 07 00 00 0E 04 04 00 18 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 [08:04:52]wFMCommunicate OK [08:04:52]SAM_PROTO_GetFieldsCounters done [08:04:52]requested_item shift.num is exist - process it [08:04:52]requested_item shift.opened is exist - process it [08:04:52]req_shift_opened [08:04:52]FM_GetShiftState [08:04:52]SAM_PROTO_GetShiftState [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 13 01 00 [08:04:52]Write to MH i2c: E2 08 00 CE 0A 80 13 01 00 00 00 00 00 55 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 0E 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 0E 00 CE 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E0 [08:04:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:04:52]wFMCommunicate OK [08:04:52]SAM_PROTO_GetShiftState done [08:04:52]FM_GetShiftState done [08:04:52]req_shift_opened done [08:04:52]requested_item shift.open_date is exist - process it [08:04:52]req_shift_open_date [08:04:52]req_shift_open_date done [08:04:52]produce_requested_data done [08:04:52]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1856,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:04:52]process_action_free close_receipt [08:04:52]json_value_free [08:04:52]json_value_free done [08:04:52]process_json_proto returns [08:04:52]Send response to host [08:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1856,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:04:52]free response buf [08:04:52]execute_script done [08:04:52]execute_script returns [08:04:52]free content buf [08:04:52]Sock 8.Close socket [08:04:52]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:55]accept exits with 9 [08:39:55]New connection [08:39:55]New thread 3067161956 created [08:39:55]Thread 3067018596 joined [08:39:55]Waiting for new connection... [08:39:55] Sock 9.Parse request [08:39:55]Sock 9.Check first char [08:39:55]Sock 9.First char is OK [08:39:55]request: POST /json_proto HTTP/1.0 [08:39:55]Method: POST [08:39:55]URL: /json_proto [08:39:55]Method is POST - this is cgi request [08:39:55]url: /json_proto [08:39:55]query_string will be loaded in cgi processing [08:39:55]execute_cgi json_proto POST (null) [08:39:55]execute_cgi path=json_proto method=POST [08:39:55]POST find Content-Length [08:39:55]Host: 172.17.35.133:8080 [08:39:55]Content-Length: 673 [08:39:55]Content-Type: application/json [08:39:55] [08:39:55]POST finish read [08:39:55]Found Content-Length = 673 [08:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256313", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.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" ] } } [08:39:55]execute_script... [08:39: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)256313", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.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" ] } } [08:39:55]POST & json_proto [08:39:55]process_json_proto [08:39:55]json parsed OK: [08:39:55]protocol is kg_v1.0 [08:39:55]action value=close_receipt [08:39:55]process_action close_receipt [08:39:55]cmd_close_receipt [08:39:55]MH_GetDate [08:39:55]Write to MH i2c: F0 00 00 CF 0A C8 [08:39:55]Write i2c OK [08:39:55]MH_I2C_Read... [08:39:55]Read from MH i2c: F0 [08:39:55]MH_I2C_Read... [08:39:55]Read from MH i2c: F0 09 00 [08:39:55]MH_I2C_Read... [08:39:55]Read from MH i2c: F0 09 00 CF 0A 00 5D 3D 92 66 1B 28 2A 66 36 [08:39:55]GetLastDocTimeStamp 1720857891 [08:39:55]current date 1720859997 [08:39:55]FM_GetShiftState [08:39:55]SAM_PROTO_GetShiftState [08:39:55]wFMCommunicate request_size=4 [08:39:55]MH_SAM_APDU [08:39:55]CAPDU: 80 13 01 00 [08:39:55]Write to MH i2c: E2 08 00 D0 0A 80 13 01 00 00 00 00 00 57 [08:39:55]Write i2c OK [08:39:55]MH_I2C_Read... [08:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:55]Read from MH i2c: E2 [08:39:55]MH_I2C_Read... [08:39:55]Read from MH i2c: E2 0E 00 [08:39:55]MH_I2C_Read... [08:39:55]Read from MH i2c: E2 0E 00 D0 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E2 [08:39:55]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:39:55]wFMCommunicate OK [08:39:55]SAM_PROTO_GetShiftState done [08:39:55]FM_GetShiftState done [08:39:55]opened in 1720829379 [08:39:55]opened+sec_in_day 1720915779 [08:39:55]quantity*price = 22500 [08:39:55]sum+1 = 22501 [08:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 26 13.07.2024 08:39 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1857 ФПД: 277407345572634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083957&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1857&fm=277407345572634&tin=02508201610067®Number=0000000000177495&sum=22500 0 [08:39:56]StoreToDocumentArchive [08:39:56]shift 24 fd 1857 [08:39:56]save to /storage/0024/doc_00001857 [08:39:56]save last doc name /storage/0024/doc_00001857 to /storage/kkm_last_doc_name [08:39:56]save OK [08:39:56]Clear old archive folders... [08:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=297 [08:39:56]tlvbuf is 00F47DF0 [08:39:56]SAM_PROTO_ClearQueue [08:39:56]wFMCommunicate request_size=4 [08:39:56]MH_SAM_APDU [08:39:56]CAPDU: 80 09 00 00 [08:39:56]Write to MH i2c: E2 08 00 DD 0A 80 09 00 00 00 00 00 00 59 [08:39:56]Write i2c OK [08:39:56]MH_I2C_Read... [08:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:56]Read from MH i2c: E2 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 03 00 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [08:39:56]RAPDU: 90 00 [08:39:56]wFMCommunicate OK [08:39:56]SAM_PROTO_ClearQueue done [08:39:56]KKMCreateOFDPacket [08:39:56]OFDProtocolAddRootSTLVToBuf [08:39:56]FM_MakeSignedData [08:39:56]FM_MakeSignedData [08:39:56]SAM_PROTO_SignData [08:39:56]wFMCommunicate request_size=4 [08:39:56]MH_SAM_APDU [08:39:56]CAPDU: 80 0D 01 02 [08:39:56]Write to MH i2c: E2 08 00 DE 0A 80 0D 01 02 00 00 00 00 61 [08:39:56]Write i2c OK [08:39:56]MH_I2C_Read... [08:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:56]Read from MH i2c: E2 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 03 00 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [08:39:56]RAPDU: 90 00 [08:39:56]wFMCommunicate OK [08:39:56]wFMCommunicate request_size=255 [08:39:56]MH_SAM_APDU [08:39:56]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 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 55 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 1A 00 00 00 F4 03 04 00 5D 3D 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [08:39:56]Write to MH i2c: E2 02 01 DF 0A 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 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 55 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 1A 00 00 00 F4 03 04 00 5D 3D 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 65 [08:39:56]Write i2c OK [08:39:56]MH_I2C_Read... [08:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:56]Read from MH i2c: E2 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 03 00 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [08:39:56]RAPDU: 90 00 [08:39:56]wFMCommunicate OK [08:39:56]wFMCommunicate request_size=56 [08:39:56]MH_SAM_APDU [08:39:56]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 41 07 00 00 35 04 06 00 FC 4C EE 4A 7B 1A [08:39:56]Write to MH i2c: E2 3B 00 E0 0A 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 41 07 00 00 35 04 06 00 FC 4C EE 4A 7B 1A 00 00 57 [08:39:56]Write i2c OK [08:39:56]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [08:39:57]RAPDU: 90 00 [08:39:57]wFMCommunicate OK [08:39:57]wFMCommunicate request_size=4 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 0D 03 02 [08:39:57]Write to MH i2c: E2 08 00 E1 0A 80 0D 03 02 00 00 00 00 66 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 0B 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 0B 00 E1 0A 00 14 4D 62 70 46 93 24 DC 90 00 73 [08:39:57]RAPDU: 14 4D 62 70 46 93 24 DC 90 00 [08:39:57]wFMCommunicate OK [08:39:57]SAM_PROTO_SignData done [08:39:57]FM_MakeSignedData done [08:39:57]CreateOFDProtocolMessage [08:39:57]wFMCommunicate request_size=4 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 11 00 00 [08:39:57]Write to MH i2c: E2 08 00 E2 0A 80 11 00 00 00 00 00 00 66 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 17 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 17 00 E2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BC [08:39: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:39:57]wFMCommunicate OK [08:39:57]CreateOFDProtocolMessage done [08:39:57]OFDSenderStorePacket 1857 [08:39:57]StoreOFDPacket docnum=1857 [08:39: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 3D 01 00 00 BD 30 35 01 09 36 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 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 55 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 1A 00 00 00 F4 03 04 00 5D 3D 92 66 0E 04 04 00 18 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 41 07 00 00 35 04 06 00 FC 4C EE 4A 7B 1A 14 4D 62 70 46 93 24 DC [08:39:57]CheckFolder [08:39:57]dirname=/storage/ofd_packets [08:39:57]CheckFolder done [08:39:57]ProducePacketName [08:39:57]name=ofd_packets/00001857 [08:39:57]NVStorageSaveData ofd_packets/00001857 [08:39:57]File name is /storage/ofd_packets/00001857 [08:39:57]Write 347 bytes [08:39:57]NVStorageSaveData done [08:39:57]OFDSenderStorePacket done [08:39:57]KKMCreateOFDPacket done [08:39:57]NVStorageSaveData kkm_last_timestamp [08:39:57]File name is /storage/kkm_last_timestamp [08:39:57]Write 4 bytes [08:39:57]NVStorageSaveData done [08:39:57]ExternCall_PrintAddStr [08:39:57]wPrintStart [08:39:57]Write to MH i2c: 01 00 00 E3 0A ED [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 07 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 07 00 E3 0A 00 00 00 00 00 FF 0F 02 [08:39:57]RasterBufferAndPrint [08:39:57]line Счет N : (3)256313 [08:39:57]line ИНН: 02508201610067 [08:39:57]line Контрольно-Кассовый Чек [08:39:57]line ПРОДАЖА [08:39:57]line Товар: 4670003190051 [08:39:57]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [08:39:57]line 1.000 * 225.00 [08:39:57]line = 225.00 [08:39:57]line НДС 12% НСП 1% [08:39:57]line > о реализуемом товаре [08:39:57]line ИТОГО: 225.00 [08:39:57]line НСП 1% : 1.99 [08:39:57]line НДС 12% : 23.89 [08:39:57]line Наличными: 225.00 [08:39:57]line Безнал.: 0.00 [08:39:57]line Место: АЗС № 76 "Партнер Нефть" [08:39:57]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:39:57]line СНО: Общий режим [08:39:57]line Чек 26 13.07.2024 08:39 [08:39:57]line Смена: 24 ФФД: 1.0 [08:39:57]line ЗНМ: 0300000124 [08:39:57]line РНМ: 0000000000177495 [08:39:57]line Версия ККМ: 001 [08:39:57]line ФМ: 0000000002098592 [08:39:57]line ФД: 1857 [08:39:57]line ФПД: 277407345572634 [08:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083957&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1857&fm=277407345572634&tin=02508201610067®Number=0000000000177495&sum=22500 [08:39:57]line 0 [08:39:57]OFD Sender: Processing packet 1857 [packets to send 1, broken 0] [08:39:57]ProducePacketName [08:39:57]name=ofd_packets/00001857 [08:39:57]OFD Sender: To server: pG, [08:39:57]CommunicateWithHost lk.salyk.kg:30040 [08:39:57]ConnectInit lk.salyk.kg [08:39:57]written 0, free lines is 4095 [08:39:57]Connected sock=10 [08:39: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 3D 01 00 00 BD 30 35 01 09 36 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 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 55 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 1A 00 00 00 F4 03 04 00 5D 3D 92 66 0E 04 04 00 18 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 41 07 00 00 35 04 06 00 FC 4C EE 4A 7B 1A 14 4D 62 70 46 93 24 DC [08:39:57]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 3A 46 47 00 E4 DE 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 41 07 00 00 F4 03 04 00 94 E8 91 66 B6 04 01 00 00 CE 00 23 89 2D 99 C8 56 [08:39:57]CommunicateWithHost err = 0 [08:39:57]CheckOFDResponse [08:39:57]1017 (14) - 77093643461234 [08:39:57]1041 (16) - 0000000002098592 [08:39:57]1040 (4) - 1857 [08:39:57]1012 (4) - 13.07.2024 02:38 [08:39:57]1206 (1) - 0 [08:39:57]OFD Sender: Remove packet 1857 [08:39:57]ProducePacketName [08:39:57]name=ofd_packets/00001857 [08:39:57]NVStorageDeleteData [08:39:57]Write to MH i2c: 01 00 00 0C 0B 17 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 07 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 07 00 0C 0B 00 00 00 00 00 08 0D 33 [08:39:57]RasterBufferAndPrint [08:39:57]line [08:39:57]line [08:39:57]line [08:39:57]line [08:39:57]line [08:39:57]written 0, free lines is 3342 [08:39:57]MH_Cut [08:39:57]Write to MH i2c: D1 01 00 13 0B 01 F0 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: D1 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: D1 01 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: D1 01 00 13 0B 00 EF [08:39:57]Write to MH i2c: 01 00 00 14 0B 1F [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:58]OFD Sender: No OFD packet to send [08:39:58]*** Cut start [08:39:58]*** Partial cut [08:39:58]*** CUTSNS_PIN = 1 [08:39:58]*** CUTSNS_PIN = 0 [08:39:58]*** Brake cut motor [08:39:59]Read from MH i2c: 01 [08:39:59]MH_I2C_Read... [08:39:59]*** Stop cut motor [08:39:59]*** Cut end [08:39:59]Read from MH i2c: 01 07 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 FF 0F 34 [08:39:59]process_action close_receipt done [08:39:59]requested_data is exist [08:39:59]produce_requested_data [08:39:59]requested_item fm.sn is exist - process it [08:39:59]wFMCommunicate request_size=4 [08:39:59]MH_SAM_APDU [08:39:59]CAPDU: 80 11 00 00 [08:39:59]Write to MH i2c: E2 08 00 15 0B 80 11 00 00 00 00 00 00 9A [08:39:59]Write i2c OK [08:39:59]MH_I2C_Read... [08:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:59]Read from MH i2c: E2 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 17 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 17 00 15 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F0 [08:39: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:39:59]wFMCommunicate OK [08:39:59]requested_item fd.num is exist - process it [08:39:59]SAM_PROTO_GetFieldsCounters [08:39:59]wFMCommunicate request_size=4 [08:39:59]MH_SAM_APDU [08:39:59]CAPDU: 80 13 00 00 [08:39:59]Write to MH i2c: E2 08 00 16 0B 80 13 00 00 00 00 00 00 9D [08:39:59]Write i2c OK [08:39:59]MH_I2C_Read... [08:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:59]Read from MH i2c: E2 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 62 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 62 00 16 0B 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 41 07 00 00 0E 04 04 00 18 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 77 [08:39: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 41 07 00 00 0E 04 04 00 18 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 [08:39:59]wFMCommunicate OK [08:39:59]SAM_PROTO_GetFieldsCounters done [08:39:59]requested_item shift.num is exist - process it [08:39:59]requested_item shift.opened is exist - process it [08:39:59]req_shift_opened [08:39:59]FM_GetShiftState [08:39:59]SAM_PROTO_GetShiftState [08:39:59]wFMCommunicate request_size=4 [08:39:59]MH_SAM_APDU [08:39:59]CAPDU: 80 13 01 00 [08:39:59]Write to MH i2c: E2 08 00 17 0B 80 13 01 00 00 00 00 00 9F [08:39:59]Write i2c OK [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 [08:39:59]MH_I2C_Read... [08:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:59]Read from MH i2c: E2 0E 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: E2 0E 00 17 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 2A [08:39:59]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:39:59]wFMCommunicate OK [08:39:59]SAM_PROTO_GetShiftState done [08:39:59]FM_GetShiftState done [08:39:59]req_shift_opened done [08:39:59]requested_item shift.open_date is exist - process it [08:39:59]req_shift_open_date [08:39:59]req_shift_open_date done [08:39:59]produce_requested_data done [08:39:59]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1857,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:39:59]process_action_free close_receipt [08:39:59]json_value_free [08:39:59]json_value_free done [08:39:59]process_json_proto returns [08:39:59]Send response to host [08:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1857,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:39:59]free response buf [08:39:59]execute_script done [08:39:59]execute_script returns [08:39:59]free content buf [08:39:59]Sock 9.Close socket [08:39:59]Sock 9.Thread stoped [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:22]int [08:42:22]Write to MH i2c: 01 00 00 18 0B 23 [08:42:22]*** FLAG_PRN_PAP1 set [08:42:22]Write i2c OK [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: 01 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: 01 07 00 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: 01 07 00 18 0B 00 01 00 00 00 FF 0F 39 [08:42:22]state=0 [08:42:22]No paper [08:42:22]int [08:42:22]Write to MH i2c: 01 00 00 19 0B 24 [08:42:22]*** FLAG_PRN_PAP2 set [08:42:22]Write i2c OK [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: 01 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: 01 07 00 [08:42:22]MH_I2C_Read... [08:42:22]Read from MH i2c: 01 07 00 19 0B 00 03 00 00 00 FF 0F 3C [08:42:22]state=0 [08:42:22]No paper [08:42:22]Cover opened [08:42:23]OFD Sender: No OFD packet to send [08:42:23]int [08:42:23]Write to MH i2c: 01 00 00 1A 0B 25 [08:42:23]*** FLAG_PRN_PAP2 reset [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: 01 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: 01 07 00 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: 01 07 00 1A 0B 00 01 00 00 00 FF 0F 3B [08:42:23]state=3 [08:42:23]No paper [08:42:23]Cover closed [08:42:23]int [08:42:23]Write to MH i2c: 01 00 00 1B 0B 26 [08:42:23]*** FLAG_PRN_PAP2 set [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: 01 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: 01 07 00 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: 01 07 00 1B 0B 00 03 00 00 00 FF 0F 3E [08:42:23]state=0 [08:42:23]No paper [08:42:23]Cover opened [08:42:23]int [08:42:23]Write to MH i2c: 01 00 00 1C 0B 27 [08:42:23]*** FLAG_PRN_PAP2 reset [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 07 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 07 00 1C 0B 00 01 00 00 00 FF 0F 3D [08:42:24]state=3 [08:42:24]No paper [08:42:24]Cover closed [08:42:24]int [08:42:24]Write to MH i2c: 01 00 00 1D 0B 28 [08:42:24]*** FLAG_PRN_PAP2 set [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 07 00 [08:42:24]MH_I2C_Read... [08:42:24]Read from MH i2c: 01 07 00 1D 0B 00 03 00 00 00 FF 0F 40 [08:42:24]state=0 [08:42:24]No paper [08:42:24]Cover opened [08:42:28]OFD Sender: No OFD packet to send [08:42:29]Write to MH i2c: 01 00 00 1E 0B 29 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 1E 0B 00 03 00 00 00 FF 0F 41 [08:42:29]state=3 [08:42:29]No paper [08:42:29]Cover opened [08:42:33]OFD Sender: No OFD packet to send [08:42:34]Write to MH i2c: 01 00 00 1F 0B 2A [08:42:34]Write i2c OK [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: 01 [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: 01 07 00 [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: 01 07 00 1F 0B 00 03 00 00 00 FF 0F 42 [08:42:34]state=3 [08:42:34]No paper [08:42:34]Cover opened [08:42:38]OFD Sender: No OFD packet to send [08:42:39]Write to MH i2c: 01 00 00 20 0B 2B [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: 01 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: 01 07 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: 01 07 00 20 0B 00 03 00 00 00 FF 0F 43 [08:42:39]state=3 [08:42:39]No paper [08:42:39]Cover opened [08:42:43]OFD Sender: No OFD packet to send [08:42:44]Write to MH i2c: 01 00 00 21 0B 2C [08:42:44]Write i2c OK [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 07 00 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 07 00 21 0B 00 03 00 00 00 FF 0F 44 [08:42:44]state=3 [08:42:44]No paper [08:42:44]Cover opened [08:42:48]OFD Sender: No OFD packet to send [08:42:49]Write to MH i2c: 01 00 00 22 0B 2D [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: 01 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: 01 07 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: 01 07 00 22 0B 00 03 00 00 00 FF 0F 45 [08:42:49]state=3 [08:42:49]No paper [08:42:49]Cover opened [08:42:53]OFD Sender: No OFD packet to send [08:42:54]Write to MH i2c: 01 00 00 23 0B 2E [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 07 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 07 00 23 0B 00 03 00 00 00 FF 0F 46 [08:42:54]state=3 [08:42:54]No paper [08:42:54]Cover opened [08:42:58]OFD Sender: No OFD packet to send [08:42:59]Write to MH i2c: 01 00 00 24 0B 2F [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 24 0B 00 03 00 00 00 FF 0F 47 [08:42:59]state=3 [08:42:59]No paper [08:42:59]Cover opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [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: 6821389+1714038811=1720860200 [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 5A 00 64 00 FF FF 9C [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 28 3E 92 66 1B 28 2A 66 30 [08:43:20]Current date/time: 13.07.2024 08:43 [08:43:20]FM_Init [08:43:20]wFMConnect [08:43:20]MH_SAM_On [08:43:20]Write to MH i2c: E0 00 00 08 00 E7 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_init finished! [08:43:20]*** atr: [08:43:20]*** 0F 3B D5 18 FF 81 91 FE [08:43:20]*** 1F C3 80 73 C8 21 10 0A [08:43:20]*** 00 00 00 00 00 00 00 00 [08:43:20]*** 00 00 00 00 00 00 00 00 [08:43:20]*** 00 00 00 00 00 00 00 00 [08:43:20]*** 00 00 00 00 00 00 00 00 [08:43:20]*** 00 00 00 00 00 00 00 00 [08:43:20]*** 00 00 00 00 00 00 00 00 [08:43:20]Read from MH i2c: E0 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E0 10 00 [08:43:20]MH_I2C_Read... [08:43:20]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 [08:43:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:43:20]wFMCommunicate request_size=10 [08:43:20]MH_SAM_APDU [08:43:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:43:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:43:20]RAPDU: 90 00 [08:43:20]wFMCommunicate OK [08:43:20]wFMCommunicate request_size=4 [08:43:20]MH_SAM_APDU [08:43:20]CAPDU: 80 11 00 00 [08:43:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 17 00 [08:43:20]MH_I2C_Read... [08:43:20]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 [08:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:43:20]wFMCommunicate OK [08:43:20]Detected FM SN is 0000000002098592 [08:43:20]Stored FM SN is 0000000002098592 [08:43:20]wFMCommunicate request_size=9 [08:43:20]MH_SAM_APDU [08:43:20]CAPDU: 80 16 00 00 04 4C 6E 00 00 [08:43:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 4C 6E 00 00 00 00 4C [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:43:20]RAPDU: 90 00 [08:43:20]wFMCommunicate OK [08:43:20]FM PIN OK [08:43:20]wFMCommunicate request_size=8 [08:43:20]MH_SAM_APDU [08:43:20]CAPDU: 80 14 04 00 03 02 00 01 [08:43:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:43:20]RAPDU: 90 00 [08:43:20]wFMCommunicate OK [08:43:20]wFMCommunicate request_size=13 [08:43:20]MH_SAM_APDU [08:43:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:43:20]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 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:43:20]RAPDU: 90 00 [08:43:20]wFMCommunicate OK [08:43:20]wFMCommunicate request_size=4 [08:43:20]MH_SAM_APDU [08:43:20]CAPDU: 80 11 00 00 [08:43:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 17 00 [08:43:20]MH_I2C_Read... [08:43:20]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 [08:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:43:20]wFMCommunicate OK [08:43:20]DocumentArchiveInit [08:43:20]Start Httpd... [08:43:20]Httpd thread 3067264356 created [08:43:20]Write to MH i2c: 01 00 00 0F 00 0F [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: 01 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: 01 07 00 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:43:20]MH Int Process started [08:43:20]OFD Sender: No OFD packet to send [08:43:20]Allocated Socket 6 [08:43:20]Bind OK [08:43:20]Listen OK [08:43:20]httpd running on port 8080 [08:43:20]Waiting for new connection... [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:44:58]accept exits with 8 [08:44:58]New connection [08:44:58]New thread 3066977636 created [08:44:58]Waiting for new connection... [08:44:58] Sock 8.Parse request [08:44:58]Sock 8.Check first char [08:44:58]Sock 8.First char is OK [08:44:58]request: POST /json_proto HTTP/1.0 [08:44:58]Method: POST [08:44:58]URL: /json_proto [08:44:58]Method is POST - this is cgi request [08:44:58]url: /json_proto [08:44:58]query_string will be loaded in cgi processing [08:44:58]execute_cgi json_proto POST (null) [08:44:58]execute_cgi path=json_proto method=POST [08:44:58]POST find Content-Length [08:44:58]Host: 172.17.35.133:8080 [08:44:58]Content-Length: 215 [08:44:58]Content-Type: application/json [08:44:58] [08:44:58]POST finish read [08:44:58]Found Content-Length = 215 [08:44: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" ] } } [08:44:58]execute_script... [08:44: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" ] } } [08:44:58]POST & json_proto [08:44:58]process_json_proto [08:44:58]json parsed OK: [08:44:58]protocol is kg_v1.0 [08:44:58]action value=get_value [08:44:58]process_action get_value [08:44:58]cmd_get_value [08:44:58]process_action get_value done [08:44:58]requested_data is exist [08:44:58]produce_requested_data [08:44:58]requested_item kkm.sn is exist - process it [08:44:58]requested_item kkm.ver is exist - process it [08:44:58]requested_item fm.sn is exist - process it [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 11 00 00 [08:44:58]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 17 00 [08:44:58]MH_I2C_Read... [08:44: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 [08:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:44:58]wFMCommunicate OK [08:44:58]requested_item fd.num is exist - process it [08:44:58]SAM_PROTO_GetFieldsCounters [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 13 00 00 [08:44:58]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 62 00 [08:44:58]MH_I2C_Read... [08:44: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 41 07 00 00 0E 04 04 00 18 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 67 [08:44: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 41 07 00 00 0E 04 04 00 18 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 [08:44:58]wFMCommunicate OK [08:44:58]SAM_PROTO_GetFieldsCounters done [08:44:58]requested_item shift.num is exist - process it [08:44:58]requested_item shift.opened is exist - process it [08:44:58]req_shift_opened [08:44:58]FM_GetShiftState [08:44:58]SAM_PROTO_GetShiftState [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 13 01 00 [08:44:58]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 0E 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1A [08:44:58]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:44:58]wFMCommunicate OK [08:44:58]SAM_PROTO_GetShiftState done [08:44:58]FM_GetShiftState done [08:44:58]req_shift_opened done [08:44:58]requested_item shift.open_date is exist - process it [08:44:58]req_shift_open_date [08:44:58]req_shift_open_date done [08:44:58]produce_requested_data done [08:44:58]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1857,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:44:58]process_action_free get_value [08:44:58]json_value_free [08:44:58]json_value_free done [08:44:58]process_json_proto returns [08:44:58]Send response to host [08:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1857,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:44:58]free response buf [08:44:58]execute_script done [08:44:58]execute_script returns [08:44:58]free content buf [08:44:58]Sock 8.Close socket [08:44:58]Sock 8.Thread stoped [08:44:58]accept exits with 9 [08:44:58]New connection [08:44:58]New thread 3066834276 created [08:44:58]Thread 3066977636 joined [08:44:58]Waiting for new connection... [08:44:58] Sock 9.Parse request [08:44:58]Sock 9.Check first char [08:44:58]Sock 9.First char is OK [08:44:58]request: POST /json_proto HTTP/1.0 [08:44:58]Method: POST [08:44:58]URL: /json_proto [08:44:58]Method is POST - this is cgi request [08:44:58]url: /json_proto [08:44:58]query_string will be loaded in cgi processing [08:44:58]execute_cgi json_proto POST (null) [08:44:58]execute_cgi path=json_proto method=POST [08:44:58]POST find Content-Length [08:44:58]Host: 172.17.35.133:8080 [08:44:58]Content-Length: 331 [08:44:58]Content-Type: application/json [08:44:58] [08:44:58]POST finish read [08:44:58]Found Content-Length = 331 [08:44: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" ] } } [08:44:58]execute_script... [08:44: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" ] } } [08:44:58]POST & json_proto [08:44:58]process_json_proto [08:44:58]json parsed OK: [08:44:58]protocol is kg_v1.0 [08:44:58]action value=get_value [08:44:58]process_action get_value [08:44:58]cmd_get_value [08:44:58]process_action get_value done [08:44:58]requested_data is exist [08:44:58]produce_requested_data [08:44:58]requested_item fm.sale.total is exist - process it [08:44:58]SAM_PROTO_GetFMData [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 13 03 00 [08:44:58]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:44:59]Read from MH i2c: E2 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: E2 FD 00 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: E2 FD 00 13 00 00 BA 04 85 04 B6 04 6E 04 04 00 11 07 00 00 69 04 9F 00 6F 04 04 00 0F 07 00 00 B1 04 04 00 42 04 6B 04 70 04 04 00 34 05 AA 03 72 04 03 00 0E FF C0 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 41 1C 78 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 3F 01 0A 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 ED [08:44:59]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 11 07 00 00 69 04 9F 00 6F 04 04 00 0F 07 00 00 B1 04 04 00 42 04 6B 04 70 04 04 00 34 05 AA 03 72 04 03 00 0E FF C0 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 41 1C 78 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 3F 01 0A 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 [08:44:59]wFMCommunicate OK [08:44:59]wFMCommunicate request_size=4 [08:44:59]MH_SAM_APDU [08:44:59]CAPDU: 80 17 00 00 [08:44:59]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:44:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:44:59]Read from MH i2c: E2 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: E2 FD 00 [08:44:59]MH_I2C_Read... [08:44: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 [08:44: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 [08:44:59]wFMCommunicate OK [08:44:59]wFMCommunicate request_size=4 [08:44:59]MH_SAM_APDU [08:44:59]CAPDU: 80 17 00 00 [08:44:59]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:44:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:44:59]Read from MH i2c: E2 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: E2 FD 00 [08:44:59]MH_I2C_Read... [08:44: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 [08:44: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 [08:44:59]wFMCommunicate OK [08:44:59]wFMCommunicate request_size=4 [08:44:59]MH_SAM_APDU [08:44:59]CAPDU: 80 17 00 00 [08:44:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:45:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:00]Read from MH i2c: E2 [08:45:00]MH_I2C_Read... [08:45:00]Read from MH i2c: E2 FD 00 [08:45:00]MH_I2C_Read... [08:45: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 [08:45: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 [08:45:00]wFMCommunicate OK [08:45:00]wFMCommunicate request_size=4 [08:45:00]MH_SAM_APDU [08:45:00]CAPDU: 80 17 00 00 [08:45:00]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:45:00]Write i2c OK [08:45:00]MH_I2C_Read... [08:45:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [08:45:00]Read from MH i2c: E2 [08:45:00]MH_I2C_Read... [08:45:00]Read from MH i2c: E2 D7 00 [08:45:00]MH_I2C_Read... [08:45: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 [08:45: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 [08:45:00]wFMCommunicate OK [08:45:00]SAM_PROTO_GetFMData done [08:45:00]requested_item fm.sale_refund.total is exist - process it [08:45:00]requested_item fm.buy.total is exist - process it [08:45:00]requested_item shift.sale.total is exist - process it [08:45:00]SAM_PROTO_GetShiftData [08:45:00]wFMCommunicate request_size=4 [08:45:00]MH_SAM_APDU [08:45:00]CAPDU: 80 13 02 00 [08:45:00]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:45:00]Write i2c OK [08:45:00]MH_I2C_Read... [08:45:00]OFD Sender: No OFD packet to send [08:45:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:45:00]Read from MH i2c: E2 [08:45:00]MH_I2C_Read... [08:45:00]Read from MH i2c: E2 FD 00 [08:45:00]MH_I2C_Read... [08:45:00]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 1A 00 00 00 69 04 9B 00 6F 04 04 00 1A 00 00 00 B1 04 03 00 A9 23 1B 70 04 03 00 74 0D 15 72 04 03 00 35 16 06 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 D9 E1 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 7B 3D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [08:45:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1A 00 00 00 69 04 9B 00 6F 04 04 00 1A 00 00 00 B1 04 03 00 A9 23 1B 70 04 03 00 74 0D 15 72 04 03 00 35 16 06 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 D9 E1 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 7B 3D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:45:00]wFMCommunicate OK [08:45:00]wFMCommunicate request_size=4 [08:45:00]MH_SAM_APDU [08:45:00]CAPDU: 80 17 00 00 [08:45:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:45:00]Write i2c OK [08:45:00]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 FD 00 [08:45:01]MH_I2C_Read... [08:45: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 [08:45: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 [08:45:01]wFMCommunicate OK [08:45:01]wFMCommunicate request_size=4 [08:45:01]MH_SAM_APDU [08:45:01]CAPDU: 80 17 00 00 [08:45:01]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:45:01]Write i2c OK [08:45:01]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 FD 00 [08:45:01]MH_I2C_Read... [08:45: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 [08:45: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 [08:45:01]wFMCommunicate OK [08:45:01]wFMCommunicate request_size=4 [08:45:01]MH_SAM_APDU [08:45:01]CAPDU: 80 17 00 00 [08:45:01]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:45:01]Write i2c OK [08:45:01]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 FD 00 [08:45:01]MH_I2C_Read... [08:45: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 [08:45: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 [08:45:01]wFMCommunicate OK [08:45:01]wFMCommunicate request_size=4 [08:45:01]MH_SAM_APDU [08:45:01]CAPDU: 80 17 00 00 [08:45:01]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:45:01]Write i2c OK [08:45:01]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 CB 00 [08:45:01]MH_I2C_Read... [08:45:01]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 [08:45:01]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 [08:45:01]wFMCommunicate OK [08:45:01]SAM_PROTO_GetShiftData done [08:45:01]requested_item shift.sale.total_cash is exist - process it [08:45:01]requested_item shift.sale_refund.total is exist - process it [08:45:01]requested_item shift.sale_refund.total_cash is exist - process it [08:45:01]requested_item shift.buy.total is exist - process it [08:45:01]requested_item shift.buy.total_cash is exist - process it [08:45:01]produce_requested_data done [08:45:01]produce_requested_data return {"fm.sale.total":741223.06,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17786.01,"shift.sale.total_cash":13797.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:45:01]process_action_free get_value [08:45:01]json_value_free [08:45:01]json_value_free done [08:45:01]process_json_proto returns [08:45:01]Send response to host [08:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":741223.06,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":17786.01,"shift.sale.total_cash":13797.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:45:01]free response buf [08:45:01]execute_script done [08:45:01]execute_script returns [08:45:01]free content buf [08:45:01]Sock 9.Close socket [08:45:01]Sock 9.Thread stoped [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:11]accept exits with 8 [08:46:11]New connection [08:46:11]New thread 3066977636 created [08:46:11]Thread 3066834276 joined [08:46:11]Waiting for new connection... [08:46:11] Sock 8.Parse request [08:46:11]Sock 8.Check first char [08:46:11]Sock 8.First char is OK [08:46:11]request: POST /json_proto HTTP/1.0 [08:46:11]Method: POST [08:46:11]URL: /json_proto [08:46:11]Method is POST - this is cgi request [08:46:11]url: /json_proto [08:46:11]query_string will be loaded in cgi processing [08:46:11]execute_cgi json_proto POST (null) [08:46:11]execute_cgi path=json_proto method=POST [08:46:11]POST find Content-Length [08:46:11]Host: 172.17.35.133:8080 [08:46:11]Content-Length: 938 [08:46:11]Content-Type: application/json [08:46:11] [08:46:11]POST finish read [08:46:11]Found Content-Length = 938 [08:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256314", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.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" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:11]execute_script... [08:46:11]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)256314", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.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" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:11]POST & json_proto [08:46:11]process_json_proto [08:46:11]json parsed OK: [08:46:11]protocol is kg_v1.0 [08:46:11]action value=close_receipt [08:46:11]process_action close_receipt [08:46:11]cmd_close_receipt [08:46:11]MH_GetDate [08:46:11]Write to MH i2c: F0 00 00 1D 00 0C [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: F0 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: F0 09 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: F0 09 00 1D 00 00 D4 3E 92 66 1B 28 2A 66 F2 [08:46:11]GetLastDocTimeStamp 1720859997 [08:46:11]current date 1720860372 [08:46:11]FM_GetShiftState [08:46:11]SAM_PROTO_GetShiftState [08:46:11]wFMCommunicate request_size=4 [08:46:11]MH_SAM_APDU [08:46:11]CAPDU: 80 13 01 00 [08:46:11]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:11]Read from MH i2c: E2 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 0E 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 26 [08:46:11]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:46:11]wFMCommunicate OK [08:46:11]SAM_PROTO_GetShiftState done [08:46:11]FM_GetShiftState done [08:46:11]opened in 1720829379 [08:46:11]opened+sec_in_day 1720915779 [08:46:11]quantity*price = 8100 [08:46:11]sum+1 = 8101 [08:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 0.00 Безнал.: 81.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 27 13.07.2024 08:46 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1858 ФПД: 90174861887056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084612&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1858&fm=90174861887056&tin=02508201610067®Number=0000000000177495&sum=8100 0 [08:46:12]StoreToDocumentArchive [08:46:12]shift 24 fd 1858 [08:46:12]save to /storage/0024/doc_00001858 [08:46:12]save last doc name /storage/0024/doc_00001858 to /storage/kkm_last_doc_name [08:46:12]save OK [08:46:12]Clear old archive folders... [08:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=308 [08:46:12]tlvbuf is 00FC8D80 [08:46:12]SAM_PROTO_ClearQueue [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 09 00 00 [08:46:12]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_ClearQueue done [08:46:12]KKMCreateOFDPacket [08:46:12]OFDProtocolAddRootSTLVToBuf [08:46:12]FM_MakeSignedData [08:46:12]FM_MakeSignedData [08:46:12]SAM_PROTO_SignData [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 0D 01 02 [08:46:12]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]wFMCommunicate request_size=255 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA 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 00 00 00 00 00 00 39 04 06 00 A4 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 3E 92 66 0E 04 04 00 18 00 00 00 B9 [08:46:12]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA 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 00 00 00 00 00 00 39 04 06 00 A4 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 3E 92 66 0E 04 04 00 18 00 00 00 B9 00 00 92 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]wFMCommunicate request_size=67 [08:46:12]MH_SAM_APDU [08:46:12]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 42 07 00 00 35 04 06 00 52 03 78 9C 46 50 [08:46:12]Write to MH i2c: E2 46 00 2E 00 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 42 07 00 00 35 04 06 00 52 03 78 9C 46 50 00 00 53 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 0D 03 02 [08:46:12]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0B 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0B 00 2F 00 00 EE 2A CA C5 3D 7B FB A4 90 00 A9 [08:46:12]RAPDU: EE 2A CA C5 3D 7B FB A4 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_SignData done [08:46:12]FM_MakeSignedData done [08:46:12]CreateOFDProtocolMessage [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 11 00 00 [08:46:12]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:13]Read from MH i2c: E2 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: E2 17 00 [08:46:13]MH_I2C_Read... [08:46:13]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:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:46:13]wFMCommunicate OK [08:46:13]CreateOFDProtocolMessage done [08:46:13]OFDSenderStorePacket 1858 [08:46:13]StoreOFDPacket docnum=1858 [08:46: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 48 01 00 00 E0 1B 40 01 FA BE 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA 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 00 00 00 00 00 00 39 04 06 00 A4 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 3E 92 66 0E 04 04 00 18 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 42 07 00 00 35 04 06 00 52 03 78 9C 46 50 EE 2A CA C5 3D 7B FB A4 [08:46:13]CheckFolder [08:46:13]dirname=/storage/ofd_packets [08:46:13]CheckFolder done [08:46:13]ProducePacketName [08:46:13]name=ofd_packets/00001858 [08:46:13]NVStorageSaveData ofd_packets/00001858 [08:46:13]File name is /storage/ofd_packets/00001858 [08:46:13]Write 358 bytes [08:46:13]NVStorageSaveData done [08:46:13]OFDSenderStorePacket done [08:46:13]KKMCreateOFDPacket done [08:46:13]NVStorageSaveData kkm_last_timestamp [08:46:13]File name is /storage/kkm_last_timestamp [08:46:13]Write 4 bytes [08:46:13]NVStorageSaveData done [08:46:13]ExternCall_PrintAddStr [08:46:13]wPrintStart [08:46:13]Write to MH i2c: 01 00 00 31 00 31 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 07 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:46:13]RasterBufferAndPrint [08:46:13]line Счет N : (3)256314 [08:46:13]line ИНН: 02508201610067 [08:46:13]line Контрольно-Кассовый Чек [08:46:13]line ПРОДАЖА [08:46:13]line Товар: 4607015232592 [08:46:13]line Вафли Яшкино с вареной сгущенкой 200г [08:46:13]line 1.000 * 81.00 [08:46:13]line = 81.00 [08:46:13]line НДС 12% НСП 1% [08:46:13]line > о реализуемом товаре [08:46:13]line ИТОГО: 81.00 [08:46:13]line НСП 1% : 0.72 [08:46:13]line НДС 12% : 8.60 [08:46:13]line Наличными: 0.00 [08:46:13]line Безнал.: 81.00 [08:46:13]line Место: АЗС № 76 "Партнер Нефть" [08:46:13]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [08:46:13]line СНО: Общий режим [08:46:13]line Чек 27 13.07.2024 08:46 [08:46:13]line Смена: 24 ФФД: 1.0 [08:46:13]line ЗНМ: 0300000124 [08:46:13]line РНМ: 0000000000177495 [08:46:13]line Версия ККМ: 001 [08:46:13]line Платежная система: АКБ Кыргызстан [08:46:13]line ФМ: 0000000002098592 [08:46:13]line ФД: 1858 [08:46:13]line ФПД: 90174861887056 [08:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084612&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1858&fm=90174861887056&tin=02508201610067®Number=0000000000177495&sum=8100 [08:46:13]OFD Sender: Processing packet 1858 [packets to send 1, broken 0] [08:46:13]ProducePacketName [08:46:13]name=ofd_packets/00001858 [08:46:13]OFD Sender: To server: pG, [08:46:13]CommunicateWithHost lk.salyk.kg:30040 [08:46:13]ConnectInit lk.salyk.kg [08:46:13]line 0 [08:46:13]written 0, free lines is 4095 [08:46:13]Connected sock=9 [08:46: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 48 01 00 00 E0 1B 40 01 FA BE 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA 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 00 00 00 00 00 00 39 04 06 00 A4 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 3E 92 66 0E 04 04 00 18 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 42 07 00 00 35 04 06 00 52 03 78 9C 46 50 EE 2A CA C5 3D 7B FB A4 [08:46: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 81 85 47 00 08 B8 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 42 07 00 00 F4 03 04 00 0A EA 91 66 B6 04 01 00 00 A3 A9 E4 C6 0E F3 63 F3 [08:46:13]CommunicateWithHost err = 0 [08:46:13]CheckOFDResponse [08:46:13]1017 (14) - 77093643461234 [08:46:13]1041 (16) - 0000000002098592 [08:46:13]1040 (4) - 1858 [08:46:13]1012 (4) - 13.07.2024 02:44 [08:46:13]1206 (1) - 0 [08:46:13]OFD Sender: Remove packet 1858 [08:46:13]ProducePacketName [08:46:13]name=ofd_packets/00001858 [08:46:13]NVStorageDeleteData [08:46:13]Write to MH i2c: 01 00 00 5C 00 5C [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 07 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E0 0C 4F [08:46:13]RasterBufferAndPrint [08:46:13]line [08:46:13]line [08:46:13]line [08:46:13]line [08:46:13]line [08:46:13]written 0, free lines is 3302 [08:46:13]MH_Cut [08:46:13]Write to MH i2c: D1 01 00 63 00 01 35 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: D1 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: D1 01 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: D1 01 00 63 00 00 34 [08:46:13]Write to MH i2c: 01 00 00 64 00 64 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:14]OFD Sender: No OFD packet to send [08:46:14]*** Cut start [08:46:14]*** Partial cut [08:46:14]*** CUTSNS_PIN = 1 [08:46:14]*** CUTSNS_PIN = 0 [08:46:14]*** Brake cut motor [08:46:15]Read from MH i2c: 01 [08:46:15]MH_I2C_Read... [08:46:15]*** Stop cut motor [08:46:15]*** Cut end [08:46:15]Read from MH i2c: 01 07 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [08:46:15]process_action close_receipt done [08:46:15]requested_data is exist [08:46:15]produce_requested_data [08:46:15]requested_item fm.sn is exist - process it [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 11 00 00 [08:46:15]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 17 00 [08:46:15]MH_I2C_Read... [08:46:15]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 [08:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [08:46:15]wFMCommunicate OK [08:46:15]requested_item fd.num is exist - process it [08:46:15]SAM_PROTO_GetFieldsCounters [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 13 00 00 [08:46:15]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 62 00 [08:46:15]MH_I2C_Read... [08:46:15]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 42 07 00 00 0E 04 04 00 18 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 C0 [08:46:15]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 42 07 00 00 0E 04 04 00 18 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 [08:46:15]wFMCommunicate OK [08:46:15]SAM_PROTO_GetFieldsCounters done [08:46:15]requested_item shift.num is exist - process it [08:46:15]requested_item shift.opened is exist - process it [08:46:15]req_shift_opened [08:46:15]FM_GetShiftState [08:46:15]SAM_PROTO_GetShiftState [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 13 01 00 [08:46:15]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:15]Read from MH i2c: E2 0E 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6F [08:46:15]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [08:46:15]wFMCommunicate OK [08:46:15]SAM_PROTO_GetShiftState done [08:46:15]FM_GetShiftState done [08:46:15]req_shift_opened done [08:46:15]requested_item shift.open_date is exist - process it [08:46:15]req_shift_open_date [08:46:15]req_shift_open_date done [08:46:15]produce_requested_data done [08:46:15]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1858,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [08:46:15]process_action_free close_receipt [08:46:15]json_value_free [08:46:15]json_value_free done [08:46:15]process_json_proto returns [08:46:15]Send response to host [08:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1858,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [08:46:15]free response buf [08:46:15]execute_script done [08:46:15]execute_script returns [08:46:15]free content buf [08:46:15]Sock 8.Close socket [08:46:15]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:16]recv_with_timeout no data received [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:36]recv_with_timeout no data received [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:18]recv_with_timeout no data received [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:54:18]ConnectInit Can't connect to host [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]recv_with_timeout no data received [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:10]recv_with_timeout no data received [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [09:05:22]ConnectInit Can't connect to host [09:05:25]OFD Sender: Processing packet 1859 [packets to send 2, broken 0] [09:05:25]ProducePacketName [09:05:25]name=ofd_packets/00001859 [09:05:25]OFD Sender: To server: pG, [09:05:25]CommunicateWithHost lk.salyk.kg:30040 [09:05:25]ConnectInit lk.salyk.kg [09:07:38]ConnectInit Can't connect to host [09:07:38]CommunicateWithHost connect error [09:07:38]CommunicateWithHost err = -1 [09:07:38]OFD Sender: Server communicate error [09:07:43]OFD Sender: Processing packet 1859 [packets to send 2, broken 0] [09:07:43]ProducePacketName [09:07:43]name=ofd_packets/00001859 [09:07:43]OFD Sender: To server: pG, [09:07:43]CommunicateWithHost lk.salyk.kg:30040 [09:07:43]ConnectInit lk.salyk.kg [09:07:48]ConnectInit Can't take IP for lk.salyk.kg [09:07:48]CommunicateWithHost connect error [09:07:48]CommunicateWithHost err = -1 [09:07:48]OFD Sender: Server communicate error [09:07:53]OFD Sender: Processing packet 1859 [packets to send 2, broken 0] [09:07:53]ProducePacketName [09:07:53]name=ofd_packets/00001859 [09:07:53]OFD Sender: To server: pG, [09:07:53]CommunicateWithHost lk.salyk.kg:30040 [09:07:53]ConnectInit lk.salyk.kg [09:07:58]ConnectInit Can't take IP for lk.salyk.kg [09:07:58]CommunicateWithHost connect error [09:07:58]CommunicateWithHost err = -1 [09:07:58]OFD Sender: Server communicate error [09:08:03]OFD Sender: Processing packet 1859 [packets to send 2, broken 0] [09:08:03]ProducePacketName [09:08:03]name=ofd_packets/00001859 [09:08:03]OFD Sender: To server: pG, [09:08:03]CommunicateWithHost lk.salyk.kg:30040 [09:08:03]ConnectInit lk.salyk.kg [09:08:06]accept exits with 11 [09:08:06]New connection [09:08:06]New thread 3066834276 created [09:08:06]Thread 3066977636 joined [09:08:06]Waiting for new connection... [09:08:06] Sock 11.Parse request [09:08:06]Sock 11.Check first char [09:08:06]Sock 11.First char is OK [09:08:06]request: POST /json_proto HTTP/1.0 [09:08:06]Method: POST [09:08:06]URL: /json_proto [09:08:06]Method is POST - this is cgi request [09:08:06]url: /json_proto [09:08:06]query_string will be loaded in cgi processing [09:08:06]execute_cgi json_proto POST (null) [09:08:06]execute_cgi path=json_proto method=POST [09:08:06]POST find Content-Length [09:08:06]Host: 172.17.35.133:8080 [09:08:06]Content-Length: 678 [09:08:06]Content-Type: application/json [09:08:06] [09:08:06]POST finish read [09:08:06]Found Content-Length = 678 [09:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618968", "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" : 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" ] } } [09:08:06]execute_script... [09:08: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 : (1)1618968", "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" : 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" ] } } [09:08:06]POST & json_proto [09:08:06]process_json_proto [09:08:06]json parsed OK: [09:08:06]protocol is kg_v1.0 [09:08:06]action value=close_receipt [09:08:06]process_action close_receipt [09:08:06]cmd_close_receipt [09:08:06]MH_GetDate [09:08:06]Write to MH i2c: F0 00 00 01 01 F1 [09:08:06]Write i2c OK [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: F0 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: F0 09 00 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: F0 09 00 01 01 00 F7 43 92 66 1B 28 2A 66 FF [09:08:06]GetLastDocTimeStamp 1720861482 [09:08:06]current date 1720861687 [09:08:06]FM_GetShiftState [09:08:06]SAM_PROTO_GetShiftState [09:08:06]wFMCommunicate request_size=4 [09:08:06]MH_SAM_APDU [09:08:06]CAPDU: 80 13 01 00 [09:08:06]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [09:08:06]Write i2c OK [09:08:06]MH_I2C_Read... [09:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:06]Read from MH i2c: E2 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 0E 00 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0B [09:08:06]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:08:06]wFMCommunicate OK [09:08:06]SAM_PROTO_GetShiftState done [09:08:06]FM_GetShiftState done [09:08:06]opened in 1720829379 [09:08:06]opened+sec_in_day 1720915779 [09:08:06]quantity*price = 50056 [09:08:06]sum+1 = 50058 [09:08:06]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 СНО: Общий режим Чек 30 13.07.2024 09:08 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1861 ФПД: 110376563146888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090807&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1861&fm=110376563146888&tin=02508201610067®Number=0000000000177495&sum=50000 [09:08:07]StoreToDocumentArchive [09:08:07]shift 24 fd 1861 [09:08:07]save to /storage/0024/doc_00001861 [09:08:07]save last doc name /storage/0024/doc_00001861 to /storage/kkm_last_doc_name [09:08:07]save OK [09:08:07]Clear old archive folders... [09:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:07]tlvbuf is 00FB3D90 [09:08:07]SAM_PROTO_ClearQueue [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 09 00 00 [09:08:07]Write to MH i2c: E2 08 00 0F 01 80 09 00 00 00 00 00 00 82 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]SAM_PROTO_ClearQueue done [09:08:07]KKMCreateOFDPacket [09:08:07]OFDProtocolAddRootSTLVToBuf [09:08:07]FM_MakeSignedData [09:08:07]FM_MakeSignedData [09:08:07]SAM_PROTO_SignData [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 01 02 [09:08:07]Write to MH i2c: E2 08 00 10 01 80 0D 01 02 00 00 00 00 8A [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]wFMCommunicate request_size=255 [09:08:07]MH_SAM_APDU [09:08:07]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 1E 00 00 00 F4 03 04 00 F7 43 92 66 0E 04 04 00 18 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 45 07 00 00 35 04 06 00 64 [09:08:07]Write to MH i2c: E2 02 01 11 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 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 1E 00 00 00 F4 03 04 00 F7 43 92 66 0E 04 04 00 18 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 45 07 00 00 35 04 06 00 64 00 00 57 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [09:08:08]RAPDU: 90 00 [09:08:08]wFMCommunicate OK [09:08:08]wFMCommunicate request_size=10 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 0D 02 02 05 63 0B D6 80 88 [09:08:08]Write to MH i2c: E2 0D 00 12 01 80 0D 02 02 05 00 63 0B D6 80 88 00 00 E3 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [09:08:08]RAPDU: 90 00 [09:08:08]wFMCommunicate OK [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 0D 03 02 [09:08:08]Write to MH i2c: E2 08 00 13 01 80 0D 03 02 00 00 00 00 8F [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 0B 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 0B 00 13 01 00 D1 54 4F 59 BC F0 95 D2 90 00 70 [09:08:08]RAPDU: D1 54 4F 59 BC F0 95 D2 90 00 [09:08:08]wFMCommunicate OK [09:08:08]SAM_PROTO_SignData done [09:08:08]FM_MakeSignedData done [09:08:08]CreateOFDProtocolMessage [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 11 00 00 [09:08:08]Write to MH i2c: E2 08 00 14 01 80 11 00 00 00 00 00 00 8F [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 17 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 17 00 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E5 [09:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:08:08]wFMCommunicate OK [09:08:08]CreateOFDProtocolMessage done [09:08:08]OFDSenderStorePacket 1861 [09:08:08]StoreOFDPacket docnum=1861 [09:08:08]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 56 91 07 01 67 BA 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 1E 00 00 00 F4 03 04 00 F7 43 92 66 0E 04 04 00 18 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 45 07 00 00 35 04 06 00 64 63 0B D6 80 88 D1 54 4F 59 BC F0 95 D2 [09:08:08]CheckFolder [09:08:08]dirname=/storage/ofd_packets [09:08:08]CheckFolder done [09:08:08]ProducePacketName [09:08:08]name=ofd_packets/00001861 [09:08:08]NVStorageSaveData ofd_packets/00001861 [09:08:08]File name is /storage/ofd_packets/00001861 [09:08:08]Write 301 bytes [09:08:08]NVStorageSaveData done [09:08:08]OFDSenderStorePacket done [09:08:08]KKMCreateOFDPacket done [09:08:08]NVStorageSaveData kkm_last_timestamp [09:08:08]File name is /storage/kkm_last_timestamp [09:08:08]Write 4 bytes [09:08:08]NVStorageSaveData done [09:08:08]ExternCall_PrintAddStr [09:08:08]wPrintStart [09:08:08]Write to MH i2c: 01 00 00 15 01 16 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 15 01 00 00 00 00 00 FF 0F 2B [09:08:08]RasterBufferAndPrint [09:08:08]line Счет N : (1)1618968 [09:08:08]line ИНН: 02508201610067 [09:08:08]line Контрольно-Кассовый Чек [09:08:08]line ПРОДАЖА [09:08:08]line ТРК (МРК, ГНК) : 43 [09:08:08]line Товар: 2710124130 [09:08:08]line Аи-92-К-5 [09:08:08]line 7.550 * 66.30 [09:08:08]line = 500.57 [09:08:08]line НДС 12% НСП 1% [09:08:08]line > о реализуемом товаре [09:08:08]line ОКРУГЛЕНИЕ: -0.57 [09:08:08]line ИТОГО: 500.00 [09:08:08]line Внесено: 500.00 [09:08:08]line СДАЧА: 0.00 [09:08:08]line НСП 1% : 4.43 [09:08:08]line НДС 12% : 53.16 [09:08:08]line Наличными: 500.00 [09:08:08]line Безнал.: 0.00 [09:08:08]line Место: АЗС № 76 "Партнер Нефть" [09:08:08]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:08:08]line СНО: Общий режим [09:08:08]line Чек 30 13.07.2024 09:08 [09:08:08]line Смена: 24 ФФД: 1.0 [09:08:08]line ЗНМ: 0300000124 [09:08:08]line РНМ: 0000000000177495 [09:08:08]line Версия ККМ: 001 [09:08:08]line ФМ: 0000000002098592 [09:08:08]line ФД: 1861 [09:08:08]line ФПД: 110376563146888 [09:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090807&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1861&fm=110376563146888&tin=02508201610067®Number=0000000000177495&sum=50000 [09:08:08]written 0, free lines is 4095 [09:08:08]ConnectInit Can't take IP for lk.salyk.kg [09:08:08]CommunicateWithHost connect error [09:08:08]CommunicateWithHost err = -1 [09:08:08]OFD Sender: Server communicate error [09:08:08]OFD Sender: Processing packet 1859 [packets to send 3, broken 0] [09:08:08]ProducePacketName [09:08:08]name=ofd_packets/00001859 [09:08:08]OFD Sender: To server: pG, [09:08:08]CommunicateWithHost lk.salyk.kg:30040 [09:08:08]ConnectInit lk.salyk.kg [09:08:08]Write to MH i2c: 01 00 00 40 01 41 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 E3 0C 37 [09:08:08]RasterBufferAndPrint [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]written 0, free lines is 3305 [09:08:08]MH_Cut [09:08:08]Write to MH i2c: D1 01 00 47 01 01 1A [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 01 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 01 00 47 01 00 19 [09:08:08]Write to MH i2c: 01 00 00 48 01 49 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:09]*** Cut start [09:08:09]*** Partial cut [09:08:09]*** CUTSNS_PIN = 1 [09:08:09]*** CUTSNS_PIN = 0 [09:08:09]*** Brake cut motor [09:08:10]Read from MH i2c: 01 [09:08:10]MH_I2C_Read... [09:08:10]*** Stop cut motor [09:08:10]*** Cut end [09:08:10]Read from MH i2c: 01 07 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [09:08:10]process_action close_receipt done [09:08:10]requested_data is exist [09:08:10]produce_requested_data [09:08:10]requested_item fm.sn is exist - process it [09:08:10]wFMCommunicate request_size=4 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 11 00 00 [09:08:10]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 17 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1A [09:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:08:10]wFMCommunicate OK [09:08:10]requested_item fd.num is exist - process it [09:08:10]SAM_PROTO_GetFieldsCounters [09:08:10]wFMCommunicate request_size=4 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 13 00 00 [09:08:10]Write to MH i2c: E2 08 00 4A 01 80 13 00 00 00 00 00 00 C7 [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 62 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 62 00 4A 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 45 07 00 00 0E 04 04 00 18 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 B1 [09:08:10]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 45 07 00 00 0E 04 04 00 18 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 [09:08:10]wFMCommunicate OK [09:08:10]SAM_PROTO_GetFieldsCounters done [09:08:10]requested_item shift.num is exist - process it [09:08:10]requested_item shift.opened is exist - process it [09:08:10]req_shift_opened [09:08:10]FM_GetShiftState [09:08:10]SAM_PROTO_GetShiftState [09:08:10]wFMCommunicate request_size=4 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 13 01 00 [09:08:10]Write to MH i2c: E2 08 00 4B 01 80 13 01 00 00 00 00 00 C9 [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 0E 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 0E 00 4B 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 54 [09:08:10]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:08:10]wFMCommunicate OK [09:08:10]SAM_PROTO_GetShiftState done [09:08:10]FM_GetShiftState done [09:08:10]req_shift_opened done [09:08:10]requested_item shift.open_date is exist - process it [09:08:10]req_shift_open_date [09:08:10]req_shift_open_date done [09:08:10]produce_requested_data done [09:08:10]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1861,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:08:10]process_action_free close_receipt [09:08:10]json_value_free [09:08:10]json_value_free done [09:08:10]process_json_proto returns [09:08:10]Send response to host [09:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1861,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:08:10]free response buf [09:08:10]execute_script done [09:08:10]execute_script returns [09:08:10]free content buf [09:08:10]Sock 11.Close socket [09:08:10]Sock 11.Thread stoped [09:08:13]ConnectInit Can't take IP for lk.salyk.kg [09:08:13]CommunicateWithHost connect error [09:08:13]CommunicateWithHost err = -1 [09:08:13]OFD Sender: Server communicate error [09:08:18]OFD Sender: Processing packet 1859 [packets to send 3, broken 0] [09:08:18]ProducePacketName [09:08:18]name=ofd_packets/00001859 [09:08:18]OFD Sender: To server: pG, [09:08:18]CommunicateWithHost lk.salyk.kg:30040 [09:08:18]ConnectInit lk.salyk.kg [09:08:23]ConnectInit Can't take IP for lk.salyk.kg [09:08:23]CommunicateWithHost connect error [09:08:23]CommunicateWithHost err = -1 [09:08:23]OFD Sender: Server communicate error [09:08:28]OFD Sender: Processing packet 1859 [packets to send 3, broken 0] [09:08:28]ProducePacketName [09:08:28]name=ofd_packets/00001859 [09:08:28]OFD Sender: To server: pG, [09:08:28]CommunicateWithHost lk.salyk.kg:30040 [09:08:28]ConnectInit lk.salyk.kg [09:08:33]ConnectInit Can't take IP for lk.salyk.kg [09:08:33]CommunicateWithHost connect error [09:08:33]CommunicateWithHost err = -1 [09:08:33]OFD Sender: Server communicate error [09:08:38]OFD Sender: Processing packet 1859 [packets to send 3, broken 0] [09:08:38]ProducePacketName [09:08:38]name=ofd_packets/00001859 [09:08:38]OFD Sender: To server: pG, [09:08:38]CommunicateWithHost lk.salyk.kg:30040 [09:08:38]ConnectInit lk.salyk.kg [09:08:39]Connected sock=8 [09:08: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 10 01 00 00 12 99 08 01 9A 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2D 42 92 66 0E 04 04 00 18 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 43 07 00 00 35 04 06 00 67 12 9E 0A FD 6C 01 FE 36 A0 22 15 30 26 [09:08: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 E8 9B 47 00 50 3B 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 43 07 00 00 F4 03 04 00 4C EF 91 66 B6 04 01 00 00 25 07 05 7A FB 37 C4 B3 [09:08:39]CommunicateWithHost err = 0 [09:08:39]CheckOFDResponse [09:08:39]1017 (14) - 77093643461234 [09:08:39]1041 (16) - 0000000002098592 [09:08:39]1040 (4) - 1859 [09:08:39]1012 (4) - 13.07.2024 03:06 [09:08:39]1206 (1) - 0 [09:08:39]OFD Sender: Remove packet 1859 [09:08:39]ProducePacketName [09:08:39]name=ofd_packets/00001859 [09:08:39]NVStorageDeleteData [09:08:39]OFD Sender: Processing packet 1860 [packets to send 2, broken 0] [09:08:39]ProducePacketName [09:08:39]name=ofd_packets/00001860 [09:08:39]OFD Sender: To server: pG, [09:08:39]CommunicateWithHost lk.salyk.kg:30040 [09:08:39]ConnectInit lk.salyk.kg [09:08:40]Connected sock=8 [09:08: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 8D 01 00 00 14 5D 85 01 AA 40 5A 03 01 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 01 00 00 00 00 07 04 06 00 B8 0B 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 2A 43 92 66 0E 04 04 00 18 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 44 07 00 00 35 04 06 00 0A 68 23 B9 36 CC 6A EA 75 40 2F C4 07 A9 [09:08: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 69 5E 47 00 95 FF 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 44 07 00 00 F4 03 04 00 4D EF 91 66 B6 04 01 00 00 D6 91 52 FE 41 38 A7 59 [09:08:40]CommunicateWithHost err = 0 [09:08:40]CheckOFDResponse [09:08:40]1017 (14) - 77093643461234 [09:08:40]1041 (16) - 0000000002098592 [09:08:40]1040 (4) - 1860 [09:08:40]1012 (4) - 13.07.2024 03:06 [09:08:40]1206 (1) - 0 [09:08:40]OFD Sender: Remove packet 1860 [09:08:40]ProducePacketName [09:08:40]name=ofd_packets/00001860 [09:08:40]NVStorageDeleteData [09:08:40]OFD Sender: Processing packet 1861 [packets to send 1, broken 0] [09:08:40]ProducePacketName [09:08:40]name=ofd_packets/00001861 [09:08:40]OFD Sender: To server: pG, [09:08:40]CommunicateWithHost lk.salyk.kg:30040 [09:08:40]ConnectInit lk.salyk.kg [09:08:40]Connected sock=8 [09:08: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 0F 01 00 00 56 91 07 01 67 BA 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 1E 00 00 00 F4 03 04 00 F7 43 92 66 0E 04 04 00 18 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 45 07 00 00 35 04 06 00 64 63 0B D6 80 88 D1 54 4F 59 BC F0 95 D2 [09:08: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 72 EC 47 00 56 BD 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 45 07 00 00 F4 03 04 00 4E EF 91 66 B6 04 01 00 00 2B 68 BD FC 7F 93 D9 00 [09:08:41]CommunicateWithHost err = 0 [09:08:41]CheckOFDResponse [09:08:41]1017 (14) - 77093643461234 [09:08:41]1041 (16) - 0000000002098592 [09:08:41]1040 (4) - 1861 [09:08:41]1012 (4) - 13.07.2024 03:06 [09:08:41]1206 (1) - 0 [09:08:41]OFD Sender: Remove packet 1861 [09:08:41]ProducePacketName [09:08:41]name=ofd_packets/00001861 [09:08:41]NVStorageDeleteData [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:00]recv_with_timeout no data received [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:28]recv_with_timeout no data received [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:45]accept exits with 12 [09:09:45]New connection [09:09:45]New thread 3066977636 created [09:09:45]Thread 3066834276 joined [09:09:45]Waiting for new connection... [09:09:45] Sock 12.Parse request [09:09:45]Sock 12.Check first char [09:09:45]Sock 12.First char is OK [09:09:45]request: POST /json_proto HTTP/1.0 [09:09:45]Method: POST [09:09:45]URL: /json_proto [09:09:45]Method is POST - this is cgi request [09:09:45]url: /json_proto [09:09:45]query_string will be loaded in cgi processing [09:09:45]execute_cgi json_proto POST (null) [09:09:45]execute_cgi path=json_proto method=POST [09:09:45]POST find Content-Length [09:09:45]Host: 172.17.35.133:8080 [09:09:45]Content-Length: 683 [09:09:45]Content-Type: application/json [09:09:45] [09:09:45]POST finish read [09:09:45]Found Content-Length = 683 [09:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:45]execute_script... [09:09: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 : (1)1618969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:45]POST & json_proto [09:09:46]process_json_proto [09:09:46]json parsed OK: [09:09:46]protocol is kg_v1.0 [09:09:46]action value=close_receipt [09:09:46]process_action close_receipt [09:09:46]cmd_close_receipt [09:09:46]MH_GetDate [09:09:46]Write to MH i2c: F0 00 00 4C 01 3C [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 09 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 09 00 4C 01 00 5A 44 92 66 1B 28 2A 66 AE [09:09:46]GetLastDocTimeStamp 1720861687 [09:09:46]current date 1720861786 [09:09:46]FM_GetShiftState [09:09:46]SAM_PROTO_GetShiftState [09:09:46]wFMCommunicate request_size=4 [09:09:46]MH_SAM_APDU [09:09:46]CAPDU: 80 13 01 00 [09:09:46]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:46]Read from MH i2c: E2 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: E2 0E 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 56 [09:09:46]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:09:46]wFMCommunicate OK [09:09:46]SAM_PROTO_GetShiftState done [09:09:46]FM_GetShiftState done [09:09:46]opened in 1720829379 [09:09:46]opened+sec_in_day 1720915779 [09:09:46]quantity*price = 150064 [09:09:46]sum+1 = 150066 [09:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 31 13.07.2024 09:09 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1862 ФПД: 72464501963668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090946&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1862&fm=72464501963668&tin=02508201610067®Number=0000000000177495&sum=150000 [09:09:47]StoreToDocumentArchive [09:09:47]shift 24 fd 1862 [09:09:47]save to /storage/0024/doc_00001862 [09:09:47]save last doc name /storage/0024/doc_00001862 to /storage/kkm_last_doc_name [09:09:47]save OK [09:09:47]Clear old archive folders... [09:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:47]tlvbuf is 00FEDBB0 [09:09:47]SAM_PROTO_ClearQueue [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 09 00 00 [09:09:47]Write to MH i2c: E2 08 00 5A 01 80 09 00 00 00 00 00 00 CD [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_ClearQueue done [09:09:47]KKMCreateOFDPacket [09:09:47]OFDProtocolAddRootSTLVToBuf [09:09:47]FM_MakeSignedData [09:09:47]FM_MakeSignedData [09:09:47]SAM_PROTO_SignData [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 01 02 [09:09:47]Write to MH i2c: E2 08 00 5B 01 80 0D 01 02 00 00 00 00 D5 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=255 [09:09:47]MH_SAM_APDU [09:09:47]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 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 5A 44 92 66 0E 04 04 00 18 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 46 07 00 00 35 04 06 00 41 [09:09:47]Write to MH i2c: E2 02 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 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 5A 44 92 66 0E 04 04 00 18 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 46 07 00 00 35 04 06 00 41 00 00 34 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=10 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 02 02 05 E7 F4 E5 FB 94 [09:09:47]Write to MH i2c: E2 0D 00 5D 01 80 0D 02 02 05 00 E7 F4 E5 FB 94 00 00 31 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 03 02 [09:09:47]Write to MH i2c: E2 08 00 5E 01 80 0D 03 02 00 00 00 00 DA [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0B 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0B 00 5E 01 00 6E C8 78 C8 95 FF AC 02 90 00 93 [09:09:47]RAPDU: 6E C8 78 C8 95 FF AC 02 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_SignData done [09:09:47]FM_MakeSignedData done [09:09:47]CreateOFDProtocolMessage [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 11 00 00 [09:09:47]Write to MH i2c: E2 08 00 5F 01 80 11 00 00 00 00 00 00 DA [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 17 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 17 00 5F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 30 [09:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:09:47]wFMCommunicate OK [09:09:47]CreateOFDProtocolMessage done [09:09:47]OFDSenderStorePacket 1862 [09:09:47]StoreOFDPacket docnum=1862 [09:09:47]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 E9 B8 07 01 F6 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 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 5A 44 92 66 0E 04 04 00 18 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 46 07 00 00 35 04 06 00 41 E7 F4 E5 FB 94 6E C8 78 C8 95 FF AC 02 [09:09:47]CheckFolder [09:09:47]dirname=/storage/ofd_packets [09:09:47]CheckFolder done [09:09:47]ProducePacketName [09:09:47]name=ofd_packets/00001862 [09:09:47]NVStorageSaveData ofd_packets/00001862 [09:09:47]File name is /storage/ofd_packets/00001862 [09:09:47]Write 301 bytes [09:09:47]NVStorageSaveData done [09:09:47]OFDSenderStorePacket done [09:09:47]KKMCreateOFDPacket done [09:09:47]NVStorageSaveData kkm_last_timestamp [09:09:47]File name is /storage/kkm_last_timestamp [09:09:47]Write 4 bytes [09:09:47]NVStorageSaveData done [09:09:47]ExternCall_PrintAddStr [09:09:47]wPrintStart [09:09:47]Write to MH i2c: 01 00 00 60 01 61 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 FF 0F 76 [09:09:47]RasterBufferAndPrint [09:09:47]line Счет N : (1)1618969 [09:09:47]line ИНН: 02508201610067 [09:09:47]line Контрольно-Кассовый Чек [09:09:47]line ПРОДАЖА [09:09:47]line ТРК (МРК, ГНК) : 32 [09:09:47]line Товар: 2710124500 [09:09:47]line Аи-95-К-5 [09:09:47]line 20.170 * 74.40 [09:09:47]line = 1500.65 [09:09:47]line НДС 12% НСП 1% [09:09:47]line > о реализуемом товаре [09:09:47]line ОКРУГЛЕНИЕ: -0.65 [09:09:47]line ИТОГО: 1500.00 [09:09:47]line Внесено: 1500.00 [09:09:47]line СДАЧА: 0.00 [09:09:47]line НСП 1% : 13.28 [09:09:47]line НДС 12% : 159.36 [09:09:47]line Наличными: 1500.00 [09:09:47]line Безнал.: 0.00 [09:09:47]line Место: АЗС № 76 "Партнер Нефть" [09:09:47]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:09:47]line СНО: Общий режим [09:09:47]line Чек 31 13.07.2024 09:09 [09:09:47]line Смена: 24 ФФД: 1.0 [09:09:47]line ЗНМ: 0300000124 [09:09:47]line РНМ: 0000000000177495 [09:09:47]line Версия ККМ: 001 [09:09:47]line ФМ: 0000000002098592 [09:09:47]line ФД: 1862 [09:09:47]line ФПД: 72464501963668 [09:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090946&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1862&fm=72464501963668&tin=02508201610067®Number=0000000000177495&sum=150000 [09:09:48]OFD Sender: Processing packet 1862 [packets to send 1, broken 0] [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00001862 [09:09:48]OFD Sender: To server: pG, [09:09:48]CommunicateWithHost lk.salyk.kg:30040 [09:09:48]ConnectInit lk.salyk.kg [09:09:48]written 0, free lines is 4095 [09:09:48]Write to MH i2c: 01 00 00 8B 01 8C [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 E2 0C 81 [09:09:48]RasterBufferAndPrint [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]written 0, free lines is 3304 [09:09:48]MH_Cut [09:09:48]Write to MH i2c: D1 01 00 92 01 01 65 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 01 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 01 00 92 01 00 64 [09:09:48]Write to MH i2c: 01 00 00 93 01 94 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:49]*** Cut start [09:09:49]*** Partial cut [09:09:49]*** CUTSNS_PIN = 1 [09:09:49]*** CUTSNS_PIN = 0 [09:09:49]*** Brake cut motor [09:09:49]Read from MH i2c: 01 [09:09:49]MH_I2C_Read... [09:09:49]*** Stop cut motor [09:09:49]*** Cut end [09:09:49]Read from MH i2c: 01 07 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [09:09:49]process_action close_receipt done [09:09:49]requested_data is exist [09:09:49]produce_requested_data [09:09:49]requested_item fm.sn is exist - process it [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 11 00 00 [09:09:49]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 65 [09:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:09:49]wFMCommunicate OK [09:09:49]requested_item fd.num is exist - process it [09:09:49]SAM_PROTO_GetFieldsCounters [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 13 00 00 [09:09:49]Write to MH i2c: E2 08 00 95 01 80 13 00 00 00 00 00 00 12 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 62 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 62 00 95 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 46 07 00 00 0E 04 04 00 18 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 00 [09:09:50]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 46 07 00 00 0E 04 04 00 18 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 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetFieldsCounters done [09:09:50]requested_item shift.num is exist - process it [09:09:50]requested_item shift.opened is exist - process it [09:09:50]req_shift_opened [09:09:50]FM_GetShiftState [09:09:50]SAM_PROTO_GetShiftState [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 13 01 00 [09:09:50]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 9F [09:09:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetShiftState done [09:09:50]FM_GetShiftState done [09:09:50]req_shift_opened done [09:09:50]requested_item shift.open_date is exist - process it [09:09:50]req_shift_open_date [09:09:50]req_shift_open_date done [09:09:50]produce_requested_data done [09:09:50]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1862,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:09:50]process_action_free close_receipt [09:09:50]json_value_free [09:09:50]json_value_free done [09:09:50]process_json_proto returns [09:09:50]Send response to host [09:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1862,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:09:50]free response buf [09:09:50]execute_script done [09:09:50]execute_script returns [09:09:50]free content buf [09:09:50]Sock 12.Close socket [09:09:50]Sock 12.Thread stoped [09:09:50]Connected sock=10 [09:09:50]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 E9 B8 07 01 F6 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 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 5A 44 92 66 0E 04 04 00 18 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 46 07 00 00 35 04 06 00 41 E7 F4 E5 FB 94 6E C8 78 C8 95 FF AC 02 [09:09: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 00 70 47 00 C4 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 46 07 00 00 F4 03 04 00 94 EF 91 66 B6 04 01 00 00 7D 87 49 D9 C9 FB 59 17 [09:09:51]CommunicateWithHost err = 0 [09:09:51]CheckOFDResponse [09:09:51]1017 (14) - 77093643461234 [09:09:51]1041 (16) - 0000000002098592 [09:09:51]1040 (4) - 1862 [09:09:51]1012 (4) - 13.07.2024 03:08 [09:09:51]1206 (1) - 0 [09:09:51]OFD Sender: Remove packet 1862 [09:09:51]ProducePacketName [09:09:51]name=ofd_packets/00001862 [09:09:51]NVStorageDeleteData [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:33]recv_with_timeout no data received [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]accept exits with 9 [09:11:21]New connection [09:11:21]New thread 3066834276 created [09:11:21]Thread 3066977636 joined [09:11:21]Waiting for new connection... [09:11:21] Sock 9.Parse request [09:11:21]Sock 9.Check first char [09:11:21]Sock 9.First char is OK [09:11:21]request: POST /json_proto HTTP/1.0 [09:11:21]Method: POST [09:11:21]URL: /json_proto [09:11:21]Method is POST - this is cgi request [09:11:21]url: /json_proto [09:11:21]query_string will be loaded in cgi processing [09:11:21]execute_cgi json_proto POST (null) [09:11:21]execute_cgi path=json_proto method=POST [09:11:21]POST find Content-Length [09:11:21]Host: 172.17.35.133:8080 [09:11:21]Content-Length: 679 [09:11:21]Content-Type: application/json [09:11:21] [09:11:21]POST finish read [09:11:21]Found Content-Length = 679 [09:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618970", "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" : 12.070, "sum" : 800.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:21]execute_script... [09:11:21]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)1618970", "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" : 12.070, "sum" : 800.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:21]POST & json_proto [09:11:21]process_json_proto [09:11:21]json parsed OK: [09:11:21]protocol is kg_v1.0 [09:11:21]action value=close_receipt [09:11:21]process_action close_receipt [09:11:21]cmd_close_receipt [09:11:21]MH_GetDate [09:11:21]Write to MH i2c: F0 00 00 97 01 87 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: F0 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: F0 09 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: F0 09 00 97 01 00 BA 44 92 66 1B 28 2A 66 59 [09:11:21]GetLastDocTimeStamp 1720861786 [09:11:21]current date 1720861882 [09:11:21]FM_GetShiftState [09:11:21]SAM_PROTO_GetShiftState [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 13 01 00 [09:11:21]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 0E 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A1 [09:11:21]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:11:21]wFMCommunicate OK [09:11:21]SAM_PROTO_GetShiftState done [09:11:21]FM_GetShiftState done [09:11:21]opened in 1720829379 [09:11:21]opened+sec_in_day 1720915779 [09:11:21]quantity*price = 80024 [09:11:21]sum+1 = 80025 [09:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 32 13.07.2024 09:11 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1863 ФПД: 139550414565920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091122&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1863&fm=139550414565920&tin=02508201610067®Number=0000000000177495&sum=80000 [09:11:22]StoreToDocumentArchive [09:11:22]shift 24 fd 1863 [09:11:22]save to /storage/0024/doc_00001863 [09:11:22]save last doc name /storage/0024/doc_00001863 to /storage/kkm_last_doc_name [09:11:22]save OK [09:11:22]Clear old archive folders... [09:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:22]tlvbuf is 00FB2600 [09:11:22]SAM_PROTO_ClearQueue [09:11:22]wFMCommunicate request_size=4 [09:11:22]MH_SAM_APDU [09:11:22]CAPDU: 80 09 00 00 [09:11:22]Write to MH i2c: E2 08 00 A5 01 80 09 00 00 00 00 00 00 18 [09:11:22]Write i2c OK [09:11:22]MH_I2C_Read... [09:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:22]Read from MH i2c: E2 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 03 00 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [09:11:22]RAPDU: 90 00 [09:11:22]wFMCommunicate OK [09:11:22]SAM_PROTO_ClearQueue done [09:11:22]KKMCreateOFDPacket [09:11:22]OFDProtocolAddRootSTLVToBuf [09:11:22]FM_MakeSignedData [09:11:22]FM_MakeSignedData [09:11:22]SAM_PROTO_SignData [09:11:22]wFMCommunicate request_size=4 [09:11:22]MH_SAM_APDU [09:11:22]CAPDU: 80 0D 01 02 [09:11:22]Write to MH i2c: E2 08 00 A6 01 80 0D 01 02 00 00 00 00 20 [09:11:22]Write i2c OK [09:11:22]MH_I2C_Read... [09:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:22]Read from MH i2c: E2 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 03 00 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [09:11:22]RAPDU: 90 00 [09:11:22]wFMCommunicate OK [09:11:22]wFMCommunicate request_size=255 [09:11:22]MH_SAM_APDU [09:11:22]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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 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 BA 44 92 66 0E 04 04 00 18 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 47 07 00 00 35 04 06 00 7E [09:11:22]Write to MH i2c: E2 02 01 A7 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 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 BA 44 92 66 0E 04 04 00 18 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 47 07 00 00 35 04 06 00 7E 00 00 DF [09:11:22]Write i2c OK [09:11:22]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [09:11:23]RAPDU: 90 00 [09:11:23]wFMCommunicate OK [09:11:23]wFMCommunicate request_size=10 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 0D 02 02 05 EB 9C E3 72 20 [09:11:23]Write to MH i2c: E2 0D 00 A8 01 80 0D 02 02 05 00 EB 9C E3 72 20 00 00 29 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [09:11:23]RAPDU: 90 00 [09:11:23]wFMCommunicate OK [09:11:23]wFMCommunicate request_size=4 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 0D 03 02 [09:11:23]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 0B 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 0B 00 A9 01 00 04 F3 4F 59 60 91 5B BB 90 00 CC [09:11:23]RAPDU: 04 F3 4F 59 60 91 5B BB 90 00 [09:11:23]wFMCommunicate OK [09:11:23]SAM_PROTO_SignData done [09:11:23]FM_MakeSignedData done [09:11:23]CreateOFDProtocolMessage [09:11:23]wFMCommunicate request_size=4 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 11 00 00 [09:11:23]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 17 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7B [09:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:11:23]wFMCommunicate OK [09:11:23]CreateOFDProtocolMessage done [09:11:23]OFDSenderStorePacket 1863 [09:11:23]StoreOFDPacket docnum=1863 [09:11: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 7C 6F 07 01 9F 3D 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 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 BA 44 92 66 0E 04 04 00 18 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 47 07 00 00 35 04 06 00 7E EB 9C E3 72 20 04 F3 4F 59 60 91 5B BB [09:11:23]CheckFolder [09:11:23]dirname=/storage/ofd_packets [09:11:23]CheckFolder done [09:11:23]ProducePacketName [09:11:23]name=ofd_packets/00001863 [09:11:23]NVStorageSaveData ofd_packets/00001863 [09:11:23]File name is /storage/ofd_packets/00001863 [09:11:23]Write 301 bytes [09:11:23]NVStorageSaveData done [09:11:23]OFDSenderStorePacket done [09:11:23]KKMCreateOFDPacket done [09:11:23]NVStorageSaveData kkm_last_timestamp [09:11:23]File name is /storage/kkm_last_timestamp [09:11:23]Write 4 bytes [09:11:23]NVStorageSaveData done [09:11:23]ExternCall_PrintAddStr [09:11:23]wPrintStart [09:11:23]Write to MH i2c: 01 00 00 AB 01 AC [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 07 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [09:11:23]RasterBufferAndPrint [09:11:23]line Счет N : (1)1618970 [09:11:23]line ИНН: 02508201610067 [09:11:23]line Контрольно-Кассовый Чек [09:11:23]line ПРОДАЖА [09:11:23]line ТРК (МРК, ГНК) : 53 [09:11:23]line Товар: 2710124130 [09:11:23]line Аи-92-К-5 [09:11:23]line 12.070 * 66.30 [09:11:23]line = 800.24 [09:11:23]line НДС 12% НСП 1% [09:11:23]line > о реализуемом товаре [09:11:23]line ОКРУГЛЕНИЕ: -0.24 [09:11:23]line ИТОГО: 800.00 [09:11:23]line Внесено: 800.00 [09:11:23]line СДАЧА: 0.00 [09:11:23]line НСП 1% : 7.08 [09:11:23]line НДС 12% : 84.98 [09:11:23]line Наличными: 800.00 [09:11:23]line Безнал.: 0.00 [09:11:23]line Место: АЗС № 76 "Партнер Нефть" [09:11:23]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:11:23]line СНО: Общий режим [09:11:23]line Чек 32 13.07.2024 09:11 [09:11:23]line Смена: 24 ФФД: 1.0 [09:11:23]line ЗНМ: 0300000124 [09:11:23]line РНМ: 0000000000177495 [09:11:23]line Версия ККМ: 001 [09:11:23]line ФМ: 0000000002098592 [09:11:23]line ФД: 1863 [09:11:23]line ФПД: 139550414565920 [09:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091122&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1863&fm=139550414565920&tin=02508201610067®Number=0000000000177495&sum=80000 [09:11:23]OFD Sender: Processing packet 1863 [packets to send 1, broken 0] [09:11:23]ProducePacketName [09:11:23]name=ofd_packets/00001863 [09:11:23]OFD Sender: To server: pG, [09:11:23]CommunicateWithHost lk.salyk.kg:30040 [09:11:23]ConnectInit lk.salyk.kg [09:11:23]written 0, free lines is 4095 [09:11:24]Write to MH i2c: 01 00 00 D6 01 D7 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 07 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 E2 0C CC [09:11:24]RasterBufferAndPrint [09:11:24]line [09:11:24]line [09:11:24]line [09:11:24]line [09:11:24]line [09:11:24]written 0, free lines is 3304 [09:11:24]MH_Cut [09:11:24]Write to MH i2c: D1 01 00 DD 01 01 B0 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: D1 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: D1 01 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: D1 01 00 DD 01 00 AF [09:11:24]Write to MH i2c: 01 00 00 DE 01 DF [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** Cut start [09:11:24]*** Partial cut [09:11:24]*** CUTSNS_PIN = 1 [09:11:24]*** CUTSNS_PIN = 0 [09:11:25]*** Brake cut motor [09:11:25]Read from MH i2c: 01 [09:11:25]MH_I2C_Read... [09:11:25]*** Stop cut motor [09:11:25]*** Cut end [09:11:25]Read from MH i2c: 01 07 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [09:11:25]process_action close_receipt done [09:11:25]requested_data is exist [09:11:25]produce_requested_data [09:11:25]requested_item fm.sn is exist - process it [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 11 00 00 [09:11:25]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 17 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B0 [09:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:11:25]wFMCommunicate OK [09:11:25]requested_item fd.num is exist - process it [09:11:25]SAM_PROTO_GetFieldsCounters [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 13 00 00 [09:11:25]Write to MH i2c: E2 08 00 E0 01 80 13 00 00 00 00 00 00 5D [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 62 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 62 00 E0 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 47 07 00 00 0E 04 04 00 18 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 4F [09:11:25]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 47 07 00 00 0E 04 04 00 18 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 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_GetFieldsCounters done [09:11:25]requested_item shift.num is exist - process it [09:11:25]requested_item shift.opened is exist - process it [09:11:25]req_shift_opened [09:11:25]FM_GetShiftState [09:11:25]SAM_PROTO_GetShiftState [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 13 01 00 [09:11:25]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EA [09:11:25]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_GetShiftState done [09:11:25]FM_GetShiftState done [09:11:25]req_shift_opened done [09:11:25]requested_item shift.open_date is exist - process it [09:11:25]req_shift_open_date [09:11:25]req_shift_open_date done [09:11:25]produce_requested_data done [09:11:25]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1863,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:11:25]process_action_free close_receipt [09:11:25]json_value_free [09:11:25]json_value_free done [09:11:25]process_json_proto returns [09:11:25]Send response to host [09:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1863,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:11:25]free response buf [09:11:25]execute_script done [09:11:25]execute_script returns [09:11:25]free content buf [09:11:25]Sock 9.Close socket [09:11:25]Sock 9.Thread stoped [09:11:28]ConnectInit Can't take IP for lk.salyk.kg [09:11:28]CommunicateWithHost connect error [09:11:28]CommunicateWithHost err = -1 [09:11:28]OFD Sender: Server communicate error [09:11:33]OFD Sender: Processing packet 1863 [packets to send 1, broken 0] [09:11:33]ProducePacketName [09:11:33]name=ofd_packets/00001863 [09:11:33]OFD Sender: To server: pG, [09:11:33]CommunicateWithHost lk.salyk.kg:30040 [09:11:33]ConnectInit lk.salyk.kg [09:11:38]ConnectInit Can't take IP for lk.salyk.kg [09:11:38]CommunicateWithHost connect error [09:11:38]CommunicateWithHost err = -1 [09:11:38]OFD Sender: Server communicate error [09:11:42]recv_with_timeout no data received [09:11:43]OFD Sender: Processing packet 1863 [packets to send 1, broken 0] [09:11:43]ProducePacketName [09:11:43]name=ofd_packets/00001863 [09:11:43]OFD Sender: To server: pG, [09:11:43]CommunicateWithHost lk.salyk.kg:30040 [09:11:43]ConnectInit lk.salyk.kg [09:11:46]Connected sock=8 [09:11: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 7C 6F 07 01 9F 3D 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 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 BA 44 92 66 0E 04 04 00 18 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 47 07 00 00 35 04 06 00 7E EB 9C E3 72 20 04 F3 4F 59 60 91 5B BB [09:11:46]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 83 DB 47 00 A2 FD 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 47 07 00 00 F4 03 04 00 07 F0 91 66 B6 04 01 00 00 05 F5 8A CD 5E B1 23 4B [09:11:46]CommunicateWithHost err = 0 [09:11:46]CheckOFDResponse [09:11:46]1017 (14) - 77093643461234 [09:11:46]1041 (16) - 0000000002098592 [09:11:46]1040 (4) - 1863 [09:11:46]1012 (4) - 13.07.2024 03:09 [09:11:46]1206 (1) - 0 [09:11:46]OFD Sender: Remove packet 1863 [09:11:46]ProducePacketName [09:11:46]name=ofd_packets/00001863 [09:11:46]NVStorageDeleteData [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:11:59]recv_with_timeout no data received [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:10]ConnectInit Can't connect to host [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:45]recv_with_timeout no data received [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:14]accept exits with 10 [09:20:14]New connection [09:20:14]New thread 3066977636 created [09:20:14]Thread 3066834276 joined [09:20:14]Waiting for new connection... [09:20:14] Sock 10.Parse request [09:20:14]Sock 10.Check first char [09:20:14]Sock 10.First char is OK [09:20:14]request: POST /json_proto HTTP/1.0 [09:20:14]Method: POST [09:20:14]URL: /json_proto [09:20:14]Method is POST - this is cgi request [09:20:14]url: /json_proto [09:20:14]query_string will be loaded in cgi processing [09:20:14]execute_cgi json_proto POST (null) [09:20:14]execute_cgi path=json_proto method=POST [09:20:14]POST find Content-Length [09:20:14]Host: 172.17.35.133:8080 [09:20:14]Content-Length: 215 [09:20:14]Content-Type: application/json [09:20:14] [09:20:14]POST finish read [09:20:14]Found Content-Length = 215 [09:20:14]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" ] } } [09:20:14]execute_script... [09:20:14]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" ] } } [09:20:14]POST & json_proto [09:20:14]process_json_proto [09:20:14]json parsed OK: [09:20:14]protocol is kg_v1.0 [09:20:14]action value=get_value [09:20:14]process_action get_value [09:20:14]cmd_get_value [09:20:14]process_action get_value done [09:20:14]requested_data is exist [09:20:14]produce_requested_data [09:20:14]requested_item kkm.sn is exist - process it [09:20:14]requested_item kkm.ver is exist - process it [09:20:14]requested_item fm.sn is exist - process it [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 11 00 00 [09:20:14]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 17 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B3 [09:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:20:14]wFMCommunicate OK [09:20:14]requested_item fd.num is exist - process it [09:20:14]SAM_PROTO_GetFieldsCounters [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 13 00 00 [09:20:14]Write to MH i2c: E2 08 00 E3 01 80 13 00 00 00 00 00 00 60 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 62 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 62 00 E3 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 47 07 00 00 0E 04 04 00 18 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 52 [09:20:14]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 47 07 00 00 0E 04 04 00 18 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 [09:20:14]wFMCommunicate OK [09:20:14]SAM_PROTO_GetFieldsCounters done [09:20:14]requested_item shift.num is exist - process it [09:20:14]requested_item shift.opened is exist - process it [09:20:14]req_shift_opened [09:20:14]FM_GetShiftState [09:20:14]SAM_PROTO_GetShiftState [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 13 01 00 [09:20:14]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:15]Read from MH i2c: E2 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 0E 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 ED [09:20:15]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:20:15]wFMCommunicate OK [09:20:15]SAM_PROTO_GetShiftState done [09:20:15]FM_GetShiftState done [09:20:15]req_shift_opened done [09:20:15]requested_item shift.open_date is exist - process it [09:20:15]req_shift_open_date [09:20:15]req_shift_open_date done [09:20:15]produce_requested_data done [09:20:15]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1863,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:20:15]process_action_free get_value [09:20:15]json_value_free [09:20:15]json_value_free done [09:20:15]process_json_proto returns [09:20:15]Send response to host [09:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1863,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:20:15]free response buf [09:20:15]execute_script done [09:20:15]execute_script returns [09:20:15]free content buf [09:20:15]Sock 10.Close socket [09:20:15]Sock 10.Thread stoped [09:20:15]accept exits with 8 [09:20:15]New connection [09:20:15]New thread 3066834276 created [09:20:15]Thread 3066977636 joined [09:20:15]Waiting for new connection... [09:20:15] Sock 8.Parse request [09:20:15]Sock 8.Check first char [09:20:15]Sock 8.First char is OK [09:20:15]request: POST /json_proto HTTP/1.0 [09:20:15]Method: POST [09:20:15]URL: /json_proto [09:20:15]Method is POST - this is cgi request [09:20:15]url: /json_proto [09:20:15]query_string will be loaded in cgi processing [09:20:15]execute_cgi json_proto POST (null) [09:20:15]execute_cgi path=json_proto method=POST [09:20:15]POST find Content-Length [09:20:15]Host: 172.17.35.133:8080 [09:20:15]Content-Length: 331 [09:20:15]Content-Type: application/json [09:20:15] [09:20:15]POST finish read [09:20:15]Found Content-Length = 331 [09:20:15]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" ] } } [09:20:15]execute_script... [09:20:15]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" ] } } [09:20:15]POST & json_proto [09:20:15]process_json_proto [09:20:15]json parsed OK: [09:20:15]protocol is kg_v1.0 [09:20:15]action value=get_value [09:20:15]process_action get_value [09:20:15]cmd_get_value [09:20:15]process_action get_value done [09:20:15]requested_data is exist [09:20:15]produce_requested_data [09:20:15]requested_item fm.sale.total is exist - process it [09:20:15]SAM_PROTO_GetFMData [09:20:15]wFMCommunicate request_size=4 [09:20:15]MH_SAM_APDU [09:20:15]CAPDU: 80 13 03 00 [09:20:15]Write to MH i2c: E2 08 00 E5 01 80 13 03 00 00 00 00 00 65 [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:20:15]Read from MH i2c: E2 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 FD 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 FD 00 E5 01 00 BA 04 85 04 B6 04 6E 04 04 00 17 07 00 00 69 04 9F 00 6F 04 04 00 15 07 00 00 B1 04 04 00 26 A8 6F 04 70 04 04 00 AC 56 AE 03 72 04 03 00 7A 51 C1 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 75 9A 78 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 C4 0B 0A 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 25 [09:20:15]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 17 07 00 00 69 04 9F 00 6F 04 04 00 15 07 00 00 B1 04 04 00 26 A8 6F 04 70 04 04 00 AC 56 AE 03 72 04 03 00 7A 51 C1 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 75 9A 78 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 C4 0B 0A 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:20:15]wFMCommunicate OK [09:20:15]wFMCommunicate request_size=4 [09:20:15]MH_SAM_APDU [09:20:15]CAPDU: 80 17 00 00 [09:20:15]Write to MH i2c: E2 08 00 E6 01 80 17 00 00 00 00 00 00 67 [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 FD 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 FD 00 E6 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 64 [09:20:16]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 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 17 00 00 [09:20:16]Write to MH i2c: E2 08 00 E7 01 80 17 00 00 00 00 00 00 68 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 FD 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 FD 00 E7 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 94 [09:20:16]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 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 17 00 00 [09:20:16]Write to MH i2c: E2 08 00 E8 01 80 17 00 00 00 00 00 00 69 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 FD 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 FD 00 E8 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 E1 [09:20:16]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 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 17 00 00 [09:20:16]Write to MH i2c: E2 08 00 E9 01 80 17 00 00 00 00 00 00 6A [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 D7 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 D7 00 E9 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 4D [09:20:16]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 [09:20:16]wFMCommunicate OK [09:20:16]SAM_PROTO_GetFMData done [09:20:16]requested_item fm.sale_refund.total is exist - process it [09:20:16]requested_item fm.buy.total is exist - process it [09:20:16]requested_item shift.sale.total is exist - process it [09:20:16]SAM_PROTO_GetShiftData [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 13 02 00 [09:20:16]Write to MH i2c: E2 08 00 EA 01 80 13 02 00 00 00 00 00 69 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 [09:20:17]MH_I2C_Read... [09:20:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:20:17]Read from MH i2c: E2 FD 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 FD 00 EA 01 00 AE 04 AA 04 AA 04 6E 04 04 00 20 00 00 00 69 04 9B 00 6F 04 04 00 20 00 00 00 B1 04 03 00 8D C7 1F 70 04 03 00 EC 5E 19 72 04 03 00 A1 68 06 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 0D 60 03 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 00 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [09:20:17]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 20 00 00 00 69 04 9B 00 6F 04 04 00 20 00 00 00 B1 04 03 00 8D C7 1F 70 04 03 00 EC 5E 19 72 04 03 00 A1 68 06 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 0D 60 03 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 00 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:20:17]wFMCommunicate OK [09:20:17]wFMCommunicate request_size=4 [09:20:17]MH_SAM_APDU [09:20:17]CAPDU: 80 17 00 00 [09:20:17]Write to MH i2c: E2 08 00 EB 01 80 17 00 00 00 00 00 00 6C [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:17]Read from MH i2c: E2 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 FD 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 FD 00 EB 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 8E [09:20:17]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 [09:20:17]wFMCommunicate OK [09:20:17]wFMCommunicate request_size=4 [09:20:17]MH_SAM_APDU [09:20:17]CAPDU: 80 17 00 00 [09:20:17]Write to MH i2c: E2 08 00 EC 01 80 17 00 00 00 00 00 00 6D [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:17]Read from MH i2c: E2 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 FD 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 FD 00 EC 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 24 [09:20:17]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 [09:20:17]wFMCommunicate OK [09:20:17]wFMCommunicate request_size=4 [09:20:17]MH_SAM_APDU [09:20:17]CAPDU: 80 17 00 00 [09:20:17]Write to MH i2c: E2 08 00 ED 01 80 17 00 00 00 00 00 00 6E [09:20:17]OFD Sender: No OFD packet to send [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:18]Read from MH i2c: E2 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 FD 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 FD 00 ED 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 E0 [09:20:18]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 [09:20:18]wFMCommunicate OK [09:20:18]wFMCommunicate request_size=4 [09:20:18]MH_SAM_APDU [09:20:18]CAPDU: 80 17 00 00 [09:20:18]Write to MH i2c: E2 08 00 EE 01 80 17 00 00 00 00 00 00 6F [09:20:18]Write i2c OK [09:20:18]MH_I2C_Read... [09:20:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:20:18]Read from MH i2c: E2 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 CB 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 CB 00 EE 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 58 [09:20:18]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 [09:20:18]wFMCommunicate OK [09:20:18]SAM_PROTO_GetShiftData done [09:20:18]requested_item shift.sale.total_cash is exist - process it [09:20:18]requested_item shift.sale_refund.total is exist - process it [09:20:18]requested_item shift.sale_refund.total_cash is exist - process it [09:20:18]requested_item shift.buy.total is exist - process it [09:20:18]requested_item shift.buy.total_cash is exist - process it [09:20:18]produce_requested_data done [09:20:18]produce_requested_data return {"fm.sale.total":744264.06,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":20827.01,"shift.sale.total_cash":16627.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} [09:20:18]process_action_free get_value [09:20:18]json_value_free [09:20:18]json_value_free done [09:20:18]process_json_proto returns [09:20:18]Send response to host [09:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":744264.06,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":20827.01,"shift.sale.total_cash":16627.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}}} [09:20:18]free response buf [09:20:18]execute_script done [09:20:18]execute_script returns [09:20:18]free content buf [09:20:18]Sock 8.Close socket [09:20:18]Sock 8.Thread stoped [09:20:20]recv_with_timeout no data received [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:30]accept exits with 9 [09:20:30]New connection [09:20:30]New thread 3066977636 created [09:20:30]Thread 3066834276 joined [09:20:30]Waiting for new connection... [09:20:30] Sock 9.Parse request [09:20:30]Sock 9.Check first char [09:20:30]Sock 9.First char is OK [09:20:30]request: POST /json_proto HTTP/1.0 [09:20:30]Method: POST [09:20:30]URL: /json_proto [09:20:30]Method is POST - this is cgi request [09:20:30]url: /json_proto [09:20:30]query_string will be loaded in cgi processing [09:20:30]execute_cgi json_proto POST (null) [09:20:30]execute_cgi path=json_proto method=POST [09:20:30]POST find Content-Length [09:20:30]Host: 172.17.35.133:8080 [09:20:30]Content-Length: 849 [09:20:30]Content-Type: application/json [09:20:30] [09:20:30]POST finish read [09:20:30]Found Content-Length = 849 [09:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:30]execute_script... [09:20:30]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)1618972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:30]POST & json_proto [09:20:30]process_json_proto [09:20:30]json parsed OK: [09:20:30]protocol is kg_v1.0 [09:20:30]action value=close_receipt [09:20:30]process_action close_receipt [09:20:30]cmd_close_receipt [09:20:30]MH_GetDate [09:20:30]Write to MH i2c: F0 00 00 EF 01 DF [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: F0 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: F0 09 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: F0 09 00 EF 01 00 DF 46 92 66 1B 28 2A 66 D8 [09:20:30]GetLastDocTimeStamp 1720861882 [09:20:30]current date 1720862431 [09:20:30]FM_GetShiftState [09:20:30]SAM_PROTO_GetShiftState [09:20:30]wFMCommunicate request_size=4 [09:20:30]MH_SAM_APDU [09:20:30]CAPDU: 80 13 01 00 [09:20:30]Write to MH i2c: E2 08 00 F0 01 80 13 01 00 00 00 00 00 6E [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:30]Read from MH i2c: E2 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: E2 0E 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: E2 0E 00 F0 01 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 F9 [09:20:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:20:30]wFMCommunicate OK [09:20:30]SAM_PROTO_GetShiftState done [09:20:30]FM_GetShiftState done [09:20:30]opened in 1720829379 [09:20:30]opened+sec_in_day 1720915779 [09:20:30]quantity*price = 100042 [09:20:30]sum+1 = 100044 [09:20:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 33 13.07.2024 09:20 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1864 ФПД: 147426584260099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092031&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1864&fm=147426584260099&tin=02508201610067®Number=0000000000177495&sum=100043 [09:20:31]StoreToDocumentArchive [09:20:31]shift 24 fd 1864 [09:20:31]save to /storage/0024/doc_00001864 [09:20:31]save last doc name /storage/0024/doc_00001864 to /storage/kkm_last_doc_name [09:20:31]save OK [09:20:31]Clear old archive folders... [09:20:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:20:31]tlvbuf is 00FB6CF0 [09:20:31]SAM_PROTO_ClearQueue [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 09 00 00 [09:20:31]Write to MH i2c: E2 08 00 FD 01 80 09 00 00 00 00 00 00 70 [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 03 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [09:20:31]RAPDU: 90 00 [09:20:31]wFMCommunicate OK [09:20:31]SAM_PROTO_ClearQueue done [09:20:31]KKMCreateOFDPacket [09:20:31]OFDProtocolAddRootSTLVToBuf [09:20:31]FM_MakeSignedData [09:20:31]FM_MakeSignedData [09:20:31]SAM_PROTO_SignData [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 0D 01 02 [09:20:31]Write to MH i2c: E2 08 00 FE 01 80 0D 01 02 00 00 00 00 78 [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 03 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [09:20:31]RAPDU: 90 00 [09:20:31]wFMCommunicate OK [09:20:31]wFMCommunicate request_size=255 [09:20:31]MH_SAM_APDU [09:20:31]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DF 46 92 66 0E 04 04 00 18 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 48 07 00 00 35 04 06 00 [09:20:31]Write to MH i2c: E2 02 01 FF 01 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DF 46 92 66 0E 04 04 00 18 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 48 07 00 00 35 04 06 00 00 00 04 [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:32]Read from MH i2c: E2 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 03 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [09:20:32]RAPDU: 90 00 [09:20:32]wFMCommunicate OK [09:20:32]wFMCommunicate request_size=11 [09:20:32]MH_SAM_APDU [09:20:32]CAPDU: 80 0D 02 02 06 86 15 6D 2F 6E 03 [09:20:32]Write to MH i2c: E2 0E 00 00 02 80 0D 02 02 06 00 86 15 6D 2F 6E 03 00 00 30 [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:32]Read from MH i2c: E2 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 03 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [09:20:32]RAPDU: 90 00 [09:20:32]wFMCommunicate OK [09:20:32]wFMCommunicate request_size=4 [09:20:32]MH_SAM_APDU [09:20:32]CAPDU: 80 0D 03 02 [09:20:32]Write to MH i2c: E2 08 00 01 02 80 0D 03 02 00 00 00 00 7E [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:32]Read from MH i2c: E2 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 0B 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 0B 00 01 02 00 A4 E7 22 44 D7 00 DA F9 90 00 1A [09:20:32]RAPDU: A4 E7 22 44 D7 00 DA F9 90 00 [09:20:32]wFMCommunicate OK [09:20:32]SAM_PROTO_SignData done [09:20:32]FM_MakeSignedData done [09:20:32]CreateOFDProtocolMessage [09:20:32]wFMCommunicate request_size=4 [09:20:32]MH_SAM_APDU [09:20:32]CAPDU: 80 11 00 00 [09:20:32]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:32]Read from MH i2c: E2 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 17 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D4 [09: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 [09:20:32]wFMCommunicate OK [09:20:32]CreateOFDProtocolMessage done [09:20:32]OFDSenderStorePacket 1864 [09:20:32]StoreOFDPacket docnum=1864 [09: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 10 01 00 00 F3 4E 08 01 53 BA 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DF 46 92 66 0E 04 04 00 18 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 48 07 00 00 35 04 06 00 86 15 6D 2F 6E 03 A4 E7 22 44 D7 00 DA F9 [09:20:32]CheckFolder [09:20:32]dirname=/storage/ofd_packets [09:20:32]CheckFolder done [09:20:32]ProducePacketName [09:20:32]name=ofd_packets/00001864 [09:20:32]NVStorageSaveData ofd_packets/00001864 [09:20:32]File name is /storage/ofd_packets/00001864 [09:20:32]Write 302 bytes [09:20:32]NVStorageSaveData done [09:20:32]OFDSenderStorePacket done [09:20:32]KKMCreateOFDPacket done [09:20:32]NVStorageSaveData kkm_last_timestamp [09:20:32]File name is /storage/kkm_last_timestamp [09:20:32]Write 4 bytes [09:20:32]NVStorageSaveData done [09:20:32]ExternCall_PrintAddStr [09:20:32]wPrintStart [09:20:32]Write to MH i2c: 01 00 00 03 02 05 [09:20:32]OFD Sender: Processing packet 1864 [packets to send 1, broken 0] [09:20:32]ProducePacketName [09:20:32]name=ofd_packets/00001864 [09:20:32]OFD Sender: To server: pG, [09:20:32]CommunicateWithHost lk.salyk.kg:30040 [09:20:32]ConnectInit lk.salyk.kg [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 07 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 FF 0F 1A [09:20:32]RasterBufferAndPrint [09:20:32]line Счет N : (1)1618972 [09:20:32]line ИНН: 02508201610067 [09:20:32]line Контрольно-Кассовый Чек [09:20:32]line ПРОДАЖА [09:20:32]line ТРК (МРК, ГНК) : 31 [09:20:32]line Товар: 2710194210 [09:20:32]line ДТ(л)-К-4 [09:20:32]line 13.780 * 72.60 [09:20:32]line = 1000.43 [09:20:32]line НДС 12% НСП 1% [09:20:32]line > о реализуемом товаре [09:20:32]line ИТОГО: 1000.43 [09:20:32]line НСП 1% : 8.85 [09:20:32]line НДС 12% : 106.24 [09:20:32]line Наличными: 0.00 [09:20:32]line Безнал.: 1000.43 [09:20:32]line Место: АЗС № 76 "Партнер Нефть" [09:20:32]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:20:32]line СНО: Общий режим [09:20:32]line Чек 33 13.07.2024 09:20 [09:20:32]line Смена: 24 ФФД: 1.0 [09:20:32]line ЗНМ: 0300000124 [09:20:32]line РНМ: 0000000000177495 [09:20:32]line Версия ККМ: 001 [09:20:32]line Платежная система: АКБ Кыргызстан [09:20:32]line ФМ: 0000000002098592 [09:20:32]line ФД: 1864 [09:20:32]line ФПД: 147426584260099 [09:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092031&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1864&fm=147426584260099&tin=02508201610067®Number=0000000000177495&sum=100043 [09:20:32]written 0, free lines is 4095 [09:20:32]Write to MH i2c: 01 00 00 2D 02 2F [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 07 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 01 0D 44 [09:20:32]RasterBufferAndPrint [09:20:32]line [09:20:32]line [09:20:32]line [09:20:32]line [09:20:32]line [09:20:32]written 0, free lines is 3338 [09:20:32]MH_Cut [09:20:32]Write to MH i2c: D1 01 00 34 02 01 08 [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: D1 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: D1 01 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: D1 01 00 34 02 00 07 [09:20:32]Write to MH i2c: 01 00 00 35 02 37 [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:33]*** Cut start [09:20:33]*** Partial cut [09:20:33]*** CUTSNS_PIN = 1 [09:20:33]*** CUTSNS_PIN = 0 [09:20:33]*** Brake cut motor [09:20:34]Read from MH i2c: 01 [09:20:34]MH_I2C_Read... [09:20:34]*** Stop cut motor [09:20:34]*** Cut end [09:20:34]Read from MH i2c: 01 07 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 FF 0F 4C [09:20:34]process_action close_receipt done [09:20:34]requested_data is exist [09:20:34]produce_requested_data [09:20:34]requested_item fm.sn is exist - process it [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 11 00 00 [09:20:34]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 17 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 08 [09:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:20:34]wFMCommunicate OK [09:20:34]requested_item fd.num is exist - process it [09:20:34]SAM_PROTO_GetFieldsCounters [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 13 00 00 [09:20:34]Write to MH i2c: E2 08 00 37 02 80 13 00 00 00 00 00 00 B5 [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 62 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 62 00 37 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 48 07 00 00 0E 04 04 00 18 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 AB [09:20: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 48 07 00 00 0E 04 04 00 18 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 [09:20:34]wFMCommunicate OK [09:20:34]SAM_PROTO_GetFieldsCounters done [09:20:34]requested_item shift.num is exist - process it [09:20:34]requested_item shift.opened is exist - process it [09:20:34]req_shift_opened [09:20:34]FM_GetShiftState [09:20:34]SAM_PROTO_GetShiftState [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 13 01 00 [09:20:34]Write to MH i2c: E2 08 00 38 02 80 13 01 00 00 00 00 00 B7 [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 0E 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 0E 00 38 02 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 42 [09:20:34]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:20:34]wFMCommunicate OK [09:20:34]SAM_PROTO_GetShiftState done [09:20:34]FM_GetShiftState done [09:20:34]req_shift_opened done [09:20:34]requested_item shift.open_date is exist - process it [09:20:34]req_shift_open_date [09:20:34]req_shift_open_date done [09:20:34]produce_requested_data done [09:20:34]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1864,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:20:34]process_action_free close_receipt [09:20:34]json_value_free [09:20:34]json_value_free done [09:20:34]process_json_proto returns [09:20:34]Send response to host [09:20:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1864,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:20:34]free response buf [09:20:34]execute_script done [09:20:34]execute_script returns [09:20:34]free content buf [09:20:34]Sock 9.Close socket [09:20:34]Sock 9.Thread stoped [09:20:37]ConnectInit Can't take IP for lk.salyk.kg [09:20:37]CommunicateWithHost connect error [09:20:37]CommunicateWithHost err = -1 [09:20:37]OFD Sender: Server communicate error [09:20:42]OFD Sender: Processing packet 1864 [packets to send 1, broken 0] [09:20:42]ProducePacketName [09:20:42]name=ofd_packets/00001864 [09:20:42]OFD Sender: To server: pG, [09:20:42]CommunicateWithHost lk.salyk.kg:30040 [09:20:42]ConnectInit lk.salyk.kg [09:20:47]ConnectInit Can't take IP for lk.salyk.kg [09:20:47]CommunicateWithHost connect error [09:20:47]CommunicateWithHost err = -1 [09:20:47]OFD Sender: Server communicate error [09:20:52]OFD Sender: Processing packet 1864 [packets to send 1, broken 0] [09:20:52]ProducePacketName [09:20:52]name=ofd_packets/00001864 [09:20:52]OFD Sender: To server: pG, [09:20:52]CommunicateWithHost lk.salyk.kg:30040 [09:20:52]ConnectInit lk.salyk.kg [09:20:57]ConnectInit Can't take IP for lk.salyk.kg [09:20:57]CommunicateWithHost connect error [09:20:57]CommunicateWithHost err = -1 [09:20:57]OFD Sender: Server communicate error [09:21:02]OFD Sender: Processing packet 1864 [packets to send 1, broken 0] [09:21:02]ProducePacketName [09:21:02]name=ofd_packets/00001864 [09:21:02]OFD Sender: To server: pG, [09:21:02]CommunicateWithHost lk.salyk.kg:30040 [09:21:02]ConnectInit lk.salyk.kg [09:21:07]ConnectInit Can't take IP for lk.salyk.kg [09:21:07]CommunicateWithHost connect error [09:21:07]CommunicateWithHost err = -1 [09:21:07]OFD Sender: Server communicate error [09:21:12]OFD Sender: Processing packet 1864 [packets to send 1, broken 0] [09:21:12]ProducePacketName [09:21:12]name=ofd_packets/00001864 [09:21:12]OFD Sender: To server: pG, [09:21:12]CommunicateWithHost lk.salyk.kg:30040 [09:21:12]ConnectInit lk.salyk.kg [09:21:12]Connected sock=9 [09:21: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 10 01 00 00 F3 4E 08 01 53 BA 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DF 46 92 66 0E 04 04 00 18 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 48 07 00 00 35 04 06 00 86 15 6D 2F 6E 03 A4 E7 22 44 D7 00 DA F9 [09:21: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 9E ED 47 00 65 BE 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 48 07 00 00 F4 03 04 00 3E F2 91 66 B6 04 01 00 00 F3 1F A7 17 20 68 DA AA [09:21:13]CommunicateWithHost err = 0 [09:21:13]CheckOFDResponse [09:21:13]1017 (14) - 77093643461234 [09:21:13]1041 (16) - 0000000002098592 [09:21:13]1040 (4) - 1864 [09:21:13]1012 (4) - 13.07.2024 03:19 [09:21:13]1206 (1) - 0 [09:21:13]OFD Sender: Remove packet 1864 [09:21:13]ProducePacketName [09:21:13]name=ofd_packets/00001864 [09:21:13]NVStorageDeleteData [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:57]accept exits with 10 [09:23:57]New connection [09:23:57]New thread 3066834276 created [09:23:57]Thread 3066977636 joined [09:23:57]Waiting for new connection... [09:23:57] Sock 10.Parse request [09:23:57]Sock 10.Check first char [09:23:57]Sock 10.First char is OK [09:23:57]request: POST /json_proto HTTP/1.0 [09:23:57]Method: POST [09:23:57]URL: /json_proto [09:23:57]Method is POST - this is cgi request [09:23:57]url: /json_proto [09:23:57]query_string will be loaded in cgi processing [09:23:57]execute_cgi json_proto POST (null) [09:23:57]execute_cgi path=json_proto method=POST [09:23:57]POST find Content-Length [09:23:57]Host: 172.17.35.133:8080 [09:23:57]Content-Length: 688 [09:23:57]Content-Type: application/json [09:23:57] [09:23:57]POST finish read [09:23:57]Found Content-Length = 688 [09:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:57]execute_script... [09:23: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 : (1)1618974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:57]POST & json_proto [09:23:57]process_json_proto [09:23:57]json parsed OK: [09:23:57]protocol is kg_v1.0 [09:23:57]action value=close_receipt [09:23:57]process_action close_receipt [09:23:57]cmd_close_receipt [09:23:57]MH_GetDate [09:23:57]Write to MH i2c: F0 00 00 39 02 2A [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: F0 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: F0 09 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: F0 09 00 39 02 00 AE 47 92 66 1B 28 2A 66 F3 [09:23:57]GetLastDocTimeStamp 1720862431 [09:23:57]current date 1720862638 [09:23:57]FM_GetShiftState [09:23:57]SAM_PROTO_GetShiftState [09:23:57]wFMCommunicate request_size=4 [09:23:57]MH_SAM_APDU [09:23:57]CAPDU: 80 13 01 00 [09:23:57]Write to MH i2c: E2 08 00 3A 02 80 13 01 00 00 00 00 00 B9 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:57]Read from MH i2c: E2 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 0E 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 0E 00 3A 02 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 44 [09:23:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:23:57]wFMCommunicate OK [09:23:57]SAM_PROTO_GetShiftState done [09:23:57]FM_GetShiftState done [09:23:57]opened in 1720829379 [09:23:57]opened+sec_in_day 1720915779 [09:23:57]quantity*price = 100042 [09:23:57]sum+1 = 100044 [09:23:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 34 13.07.2024 09:23 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1865 ФПД: 153574546901794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092358&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1865&fm=153574546901794&tin=02508201610067®Number=0000000000177495&sum=100000 [09:23:58]StoreToDocumentArchive [09:23:58]shift 24 fd 1865 [09:23:58]save to /storage/0024/doc_00001865 [09:23:58]save last doc name /storage/0024/doc_00001865 to /storage/kkm_last_doc_name [09:23:58]save OK [09:23:58]Clear old archive folders... [09:23:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:58]tlvbuf is 00FEE7C0 [09:23:58]SAM_PROTO_ClearQueue [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 09 00 00 [09:23:58]Write to MH i2c: E2 08 00 47 02 80 09 00 00 00 00 00 00 BB [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [09:23:58]RAPDU: 90 00 [09:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_ClearQueue done [09:23:58]KKMCreateOFDPacket [09:23:58]OFDProtocolAddRootSTLVToBuf [09:23:58]FM_MakeSignedData [09:23:58]FM_MakeSignedData [09:23:58]SAM_PROTO_SignData [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 0D 01 02 [09:23:58]Write to MH i2c: E2 08 00 48 02 80 0D 01 02 00 00 00 00 C3 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [09:23:58]RAPDU: 90 00 [09:23:58]wFMCommunicate OK [09:23:58]wFMCommunicate request_size=255 [09:23:58]MH_SAM_APDU [09:23:58]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 AE 47 92 66 0E 04 04 00 18 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 49 07 00 00 35 04 06 00 [09:23:58]Write to MH i2c: E2 02 01 49 02 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 AE 47 92 66 0E 04 04 00 18 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 49 07 00 00 35 04 06 00 00 00 CB [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]OFD Sender: No OFD packet to send [09:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [09:23:58]RAPDU: 90 00 [09:23:58]wFMCommunicate OK [09:23:58]wFMCommunicate request_size=11 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 0D 02 02 06 8B AC DC 50 8B 22 [09:23:58]Write to MH i2c: E2 0E 00 4A 02 80 0D 02 02 06 00 8B AC DC 50 8B 22 00 00 E2 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [09:23:58]RAPDU: 90 00 [09:23:58]wFMCommunicate OK [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 0D 03 02 [09:23:58]Write to MH i2c: E2 08 00 4B 02 80 0D 03 02 00 00 00 00 C8 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0B 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0B 00 4B 02 00 76 25 FD 7E 99 23 A8 4B 90 00 8E [09:23:58]RAPDU: 76 25 FD 7E 99 23 A8 4B 90 00 [09:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_SignData done [09:23:58]FM_MakeSignedData done [09:23:58]CreateOFDProtocolMessage [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 11 00 00 [09:23:58]Write to MH i2c: E2 08 00 4C 02 80 11 00 00 00 00 00 00 C8 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 17 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 17 00 4C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1E [09:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:23:58]wFMCommunicate OK [09:23:58]CreateOFDProtocolMessage done [09:23:58]OFDSenderStorePacket 1865 [09:23:58]StoreOFDPacket docnum=1865 [09:23: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 10 01 00 00 F1 4A 08 01 43 10 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 AE 47 92 66 0E 04 04 00 18 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 49 07 00 00 35 04 06 00 8B AC DC 50 8B 22 76 25 FD 7E 99 23 A8 4B [09:23:58]CheckFolder [09:23:58]dirname=/storage/ofd_packets [09:23:58]CheckFolder done [09:23:58]ProducePacketName [09:23:58]name=ofd_packets/00001865 [09:23:58]NVStorageSaveData ofd_packets/00001865 [09:23:58]File name is /storage/ofd_packets/00001865 [09:23:58]Write 302 bytes [09:23:58]NVStorageSaveData done [09:23:58]OFDSenderStorePacket done [09:23:58]KKMCreateOFDPacket done [09:23:58]NVStorageSaveData kkm_last_timestamp [09:23:58]File name is /storage/kkm_last_timestamp [09:23:58]Write 4 bytes [09:23:58]NVStorageSaveData done [09:23:58]ExternCall_PrintAddStr [09:23:58]wPrintStart [09:23:58]Write to MH i2c: 01 00 00 4D 02 4F [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: 01 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: 01 07 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 FF 0F 64 [09:23:58]RasterBufferAndPrint [09:23:58]line Счет N : (1)1618974 [09:23:58]line ИНН: 02508201610067 [09:23:58]line Контрольно-Кассовый Чек [09:23:58]line ПРОДАЖА [09:23:58]line ТРК (МРК, ГНК) : 12 [09:23:58]line Товар: 2710194210 [09:23:58]line ДТ(л)-К-4 [09:23:58]line 13.780 * 72.60 [09:23:58]line = 1000.43 [09:23:58]line НДС 12% НСП 1% [09:23:58]line > о реализуемом товаре [09:23:58]line ОКРУГЛЕНИЕ: -0.43 [09:23:58]line ИТОГО: 1000.00 [09:23:58]line Внесено: 1000.00 [09:23:58]line СДАЧА: 0.00 [09:23:58]line НСП 1% : 8.85 [09:23:58]line НДС 12% : 106.24 [09:23:58]line Наличными: 1000.00 [09:23:58]line Безнал.: 0.00 [09:23:58]line Место: АЗС № 76 "Партнер Нефть" [09:23:58]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:23:58]line СНО: Общий режим [09:23:58]line Чек 34 13.07.2024 09:23 [09:23:58]line Смена: 24 ФФД: 1.0 [09:23:58]line ЗНМ: 0300000124 [09:23:58]line РНМ: 0000000000177495 [09:23:58]line Версия ККМ: 001 [09:23:58]line ФМ: 0000000002098592 [09:23:58]line ФД: 1865 [09:23:58]line ФПД: 153574546901794 [09:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092358&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1865&fm=153574546901794&tin=02508201610067®Number=0000000000177495&sum=100000 [09:23:59]OFD Sender: Processing packet 1865 [packets to send 1, broken 0] [09:23:59]ProducePacketName [09:23:59]name=ofd_packets/00001865 [09:23:59]OFD Sender: To server: pG, [09:23:59]CommunicateWithHost lk.salyk.kg:30040 [09:23:59]ConnectInit lk.salyk.kg [09:23:59]written 0, free lines is 4095 [09:23:59]Connected sock=9 [09:23: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 10 01 00 00 F1 4A 08 01 43 10 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 AE 47 92 66 0E 04 04 00 18 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 49 07 00 00 35 04 06 00 8B AC DC 50 8B 22 76 25 FD 7E 99 23 A8 4B [09:23: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 BD E9 47 00 04 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 49 07 00 00 F4 03 04 00 E4 F2 91 66 B6 04 01 00 00 A4 B2 7B DD 52 F0 D2 B3 [09:23:59]CommunicateWithHost err = 0 [09:23:59]CheckOFDResponse [09:23:59]1017 (14) - 77093643461234 [09:23:59]1041 (16) - 0000000002098592 [09:23:59]1040 (4) - 1865 [09:23:59]1012 (4) - 13.07.2024 03:22 [09:23:59]1206 (1) - 0 [09:23:59]OFD Sender: Remove packet 1865 [09:23:59]ProducePacketName [09:23:59]name=ofd_packets/00001865 [09:23:59]NVStorageDeleteData [09:23:59]Write to MH i2c: 01 00 00 78 02 7A [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: 01 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: 01 07 00 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 E8 0C 75 [09:23:59]RasterBufferAndPrint [09:23:59]line [09:23:59]line [09:23:59]line [09:23:59]line [09:23:59]line [09:23:59]written 0, free lines is 3310 [09:23:59]MH_Cut [09:23:59]Write to MH i2c: D1 01 00 7F 02 01 53 [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: D1 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: D1 01 00 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: D1 01 00 7F 02 00 52 [09:23:59]Write to MH i2c: 01 00 00 80 02 82 [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:24:00]OFD Sender: No OFD packet to send [09:24:00]*** Cut start [09:24:00]*** Partial cut [09:24:00]*** CUTSNS_PIN = 1 [09:24:00]*** CUTSNS_PIN = 0 [09:24:00]*** Brake cut motor [09:24:01]Read from MH i2c: 01 [09:24:01]MH_I2C_Read... [09:24:01]*** Stop cut motor [09:24:01]*** Cut end [09:24:01]Read from MH i2c: 01 07 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [09:24:01]process_action close_receipt done [09:24:01]requested_data is exist [09:24:01]produce_requested_data [09:24:01]requested_item fm.sn is exist - process it [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 11 00 00 [09:24:01]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 17 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 53 [09:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:24:01]wFMCommunicate OK [09:24:01]requested_item fd.num is exist - process it [09:24:01]SAM_PROTO_GetFieldsCounters [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 13 00 00 [09:24:01]Write to MH i2c: E2 08 00 82 02 80 13 00 00 00 00 00 00 00 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 62 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 62 00 82 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 49 07 00 00 0E 04 04 00 18 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 FA [09:24: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 49 07 00 00 0E 04 04 00 18 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 [09:24:01]wFMCommunicate OK [09:24:01]SAM_PROTO_GetFieldsCounters done [09:24:01]requested_item shift.num is exist - process it [09:24:01]requested_item shift.opened is exist - process it [09:24:01]req_shift_opened [09:24:01]FM_GetShiftState [09:24:01]SAM_PROTO_GetShiftState [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 13 01 00 [09:24:01]Write to MH i2c: E2 08 00 83 02 80 13 01 00 00 00 00 00 02 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0E 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0E 00 83 02 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8D [09:24:01]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:24:01]wFMCommunicate OK [09:24:01]SAM_PROTO_GetShiftState done [09:24:01]FM_GetShiftState done [09:24:01]req_shift_opened done [09:24:01]requested_item shift.open_date is exist - process it [09:24:01]req_shift_open_date [09:24:01]req_shift_open_date done [09:24:01]produce_requested_data done [09:24:01]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1865,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:24:01]process_action_free close_receipt [09:24:01]json_value_free [09:24:01]json_value_free done [09:24:01]process_json_proto returns [09:24:01]Send response to host [09:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1865,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:24:01]free response buf [09:24:01]execute_script done [09:24:01]execute_script returns [09:24:01]free content buf [09:24:01]Sock 10.Close socket [09:24:01]Sock 10.Thread stoped [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:31]accept exits with 8 [09:29:31]New connection [09:29:31]New thread 3066977636 created [09:29:31]Thread 3066834276 joined [09:29:31]Waiting for new connection... [09:29:31] Sock 8.Parse request [09:29:31]Sock 8.Check first char [09:29:31]Sock 8.First char is OK [09:29:31]request: POST /json_proto HTTP/1.0 [09:29:31]Method: POST [09:29:31]URL: /json_proto [09:29:31]Method is POST - this is cgi request [09:29:31]url: /json_proto [09:29:31]query_string will be loaded in cgi processing [09:29:31]execute_cgi json_proto POST (null) [09:29:31]execute_cgi path=json_proto method=POST [09:29:31]POST find Content-Length [09:29:31]Host: 172.17.35.133:8080 [09:29:31]Content-Length: 912 [09:29:31]Content-Type: application/json [09:29:31] [09:29:31]POST finish read [09:29:31]Found Content-Length = 912 [09:29:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256317", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077633317", "name": "\u041F\u0435\u0447 LOVITA CLASSIC COOKIES \u043A\u0430\u043A\u0430\u043E \u0438 \u043A\u0443\u0441\u043E\u0447", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:31]execute_script... [09:29: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)256317", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077633317", "name": "\u041F\u0435\u0447 LOVITA CLASSIC COOKIES \u043A\u0430\u043A\u0430\u043E \u0438 \u043A\u0443\u0441\u043E\u0447", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:31]POST & json_proto [09:29:31]process_json_proto [09:29:31]json parsed OK: [09:29:31]protocol is kg_v1.0 [09:29:31]action value=close_receipt [09:29:31]process_action close_receipt [09:29:31]cmd_close_receipt [09:29:31]MH_GetDate [09:29:31]Write to MH i2c: F0 00 00 84 02 75 [09:29:31]Write i2c OK [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: F0 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: F0 09 00 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: F0 09 00 84 02 00 FC 48 92 66 1B 28 2A 66 8D [09:29:31]GetLastDocTimeStamp 1720862638 [09:29:31]current date 1720862972 [09:29:31]FM_GetShiftState [09:29:31]SAM_PROTO_GetShiftState [09:29:31]wFMCommunicate request_size=4 [09:29:31]MH_SAM_APDU [09:29:31]CAPDU: 80 13 01 00 [09:29:31]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [09:29:31]Write i2c OK [09:29:31]MH_I2C_Read... [09:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:31]Read from MH i2c: E2 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 0E 00 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8F [09:29:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:29:31]wFMCommunicate OK [09:29:31]SAM_PROTO_GetShiftState done [09:29:31]FM_GetShiftState done [09:29:31]opened in 1720829379 [09:29:31]opened+sec_in_day 1720915779 [09:29:31]quantity*price = 26000 [09:29:31]sum+1 = 26001 [09:29:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077633317 Печ LOVITA CLASSIC COOKIES какао и кусоч 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.41 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 35 13.07.2024 09:29 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1866 ФПД: 1594444170785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092932&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1866&fm=1594444170785&tin=02508201610067®Number=0000000000177495&sum=39000 0 [09:29:32]StoreToDocumentArchive [09:29:32]shift 24 fd 1866 [09:29:32]save to /storage/0024/doc_00001866 [09:29:32]save last doc name /storage/0024/doc_00001866 to /storage/kkm_last_doc_name [09:29:32]save OK [09:29:32]Clear old archive folders... [09:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=402 [09:29:32]tlvbuf is 00FE1E80 [09:29:32]SAM_PROTO_ClearQueue [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 09 00 00 [09:29:32]Write to MH i2c: E2 08 00 92 02 80 09 00 00 00 00 00 00 06 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]SAM_PROTO_ClearQueue done [09:29:32]KKMCreateOFDPacket [09:29:32]OFDProtocolAddRootSTLVToBuf [09:29:32]FM_MakeSignedData [09:29:32]FM_MakeSignedData [09:29:32]SAM_PROTO_SignData [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 01 02 [09:29:32]Write to MH i2c: E2 08 00 93 02 80 0D 01 02 00 00 00 00 0E [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]wFMCommunicate request_size=255 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 31 37 06 04 36 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B8 20 D0 BA D1 83 D1 81 D0 BE D1 87 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 [09:29:32]Write to MH i2c: E2 02 01 94 02 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 31 37 06 04 36 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B8 20 D0 BA D1 83 D1 81 D0 BE D1 87 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 00 72 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]wFMCommunicate request_size=161 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 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 FC 48 92 66 0E 04 04 00 18 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 4A 07 00 00 35 04 06 00 01 73 3C 47 46 21 [09:29:32]Write to MH i2c: E2 A4 00 95 02 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 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 FC 48 92 66 0E 04 04 00 18 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 4A 07 00 00 35 04 06 00 01 73 3C 47 46 21 00 00 3E [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:33]Read from MH i2c: E2 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: E2 03 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [09:29:33]RAPDU: 90 00 [09:29:33]wFMCommunicate OK [09:29:33]wFMCommunicate request_size=4 [09:29:33]MH_SAM_APDU [09:29:33]CAPDU: 80 0D 03 02 [09:29:33]Write to MH i2c: E2 08 00 96 02 80 0D 03 02 00 00 00 00 13 [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:33]Read from MH i2c: E2 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: E2 0B 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: E2 0B 00 96 02 00 AE 3F 46 B6 30 51 28 7C 90 00 22 [09:29:33]RAPDU: AE 3F 46 B6 30 51 28 7C 90 00 [09:29:33]wFMCommunicate OK [09:29:33]SAM_PROTO_SignData done [09:29:33]FM_MakeSignedData done [09:29:33]CreateOFDProtocolMessage [09:29:33]wFMCommunicate request_size=4 [09:29:33]MH_SAM_APDU [09:29:33]CAPDU: 80 11 00 00 [09:29:33]Write to MH i2c: E2 08 00 97 02 80 11 00 00 00 00 00 00 13 [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:33]Read from MH i2c: E2 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: E2 17 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: E2 17 00 97 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 69 [09:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:29:33]wFMCommunicate OK [09:29:33]CreateOFDProtocolMessage done [09:29:33]OFDSenderStorePacket 1866 [09:29:33]StoreOFDPacket docnum=1866 [09:29: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 A6 01 00 00 20 9F 9E 01 EC 44 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 31 37 06 04 36 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B8 20 D0 BA D1 83 D1 81 D0 BE D1 87 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 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 FC 48 92 66 0E 04 04 00 18 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 4A 07 00 00 35 04 06 00 01 73 3C 47 46 21 AE 3F 46 B6 30 51 28 7C [09:29:33]CheckFolder [09:29:33]dirname=/storage/ofd_packets [09:29:33]CheckFolder done [09:29:33]ProducePacketName [09:29:33]name=ofd_packets/00001866 [09:29:33]NVStorageSaveData ofd_packets/00001866 [09:29:33]File name is /storage/ofd_packets/00001866 [09:29:33]Write 452 bytes [09:29:33]NVStorageSaveData done [09:29:33]OFDSenderStorePacket done [09:29:33]KKMCreateOFDPacket done [09:29:33]NVStorageSaveData kkm_last_timestamp [09:29:33]File name is /storage/kkm_last_timestamp [09:29:33]Write 4 bytes [09:29:33]NVStorageSaveData done [09:29:33]ExternCall_PrintAddStr [09:29:33]wPrintStart [09:29:33]Write to MH i2c: 01 00 00 98 02 9A [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: 01 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: 01 07 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 FF 0F AF [09:29:33]RasterBufferAndPrint [09:29:33]line Счет N : (3)256317 [09:29:33]line ИНН: 02508201610067 [09:29:33]line Контрольно-Кассовый Чек [09:29:33]line ПРОДАЖА [09:29:33]line Товар: 2000036230011 [09:29:33]line Кофе Латте XL(GABB TRADE) [09:29:33]line 2.000 * 130.00 [09:29:33]line = 260.00 [09:29:33]line НДС 12% НСП 1% [09:29:33]line > о реализуемом товаре [09:29:33]line Товар: 4823077633317 [09:29:33]line Печ LOVITA CLASSIC COOKIES какао и кусоч [09:29:33]line 1.000 * 130.00 [09:29:33]line = 130.00 [09:29:33]line НДС 12% НСП 1% [09:29:33]line > о реализуемом товаре [09:29:33]line ИТОГО: 390.00 [09:29:33]line НСП 1% : 3.45 [09:29:33]line НДС 12% : 41.41 [09:29:33]line Наличными: 390.00 [09:29:33]line Безнал.: 0.00 [09:29:33]line Место: АЗС № 76 "Партнер Нефть" [09:29:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:29:33]line СНО: Общий режим [09:29:33]line Чек 35 13.07.2024 09:29 [09:29:33]line Смена: 24 ФФД: 1.0 [09:29:33]line ЗНМ: 0300000124 [09:29:33]line РНМ: 0000000000177495 [09:29:33]line Версия ККМ: 001 [09:29:33]line ФМ: 0000000002098592 [09:29:33]line ФД: 1866 [09:29:33]line ФПД: 1594444170785 [09:29:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092932&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1866&fm=1594444170785&tin=02508201610067®Number=0000000000177495&sum=39000 [09:29:33]line 0 [09:29:33]OFD Sender: Processing packet 1866 [packets to send 1, broken 0] [09:29:33]ProducePacketName [09:29:33]name=ofd_packets/00001866 [09:29:33]OFD Sender: To server: pG, [09:29:33]CommunicateWithHost lk.salyk.kg:30040 [09:29:33]ConnectInit lk.salyk.kg [09:29:33]written 0, free lines is 4095 [09:29:33]Connected sock=10 [09:29:33]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 A6 01 00 00 20 9F 9E 01 EC 44 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 31 37 06 04 36 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B8 20 D0 BA D1 83 D1 81 D0 BE D1 87 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 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 FC 48 92 66 0E 04 04 00 18 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 4A 07 00 00 35 04 06 00 01 73 3C 47 46 21 AE 3F 46 B6 30 51 28 7C [09:29:33]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 4D F4 47 00 28 35 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 4A 07 00 00 F4 03 04 00 32 F4 91 66 B6 04 01 00 00 45 A6 75 05 54 1D 5B 77 [09:29:33]CommunicateWithHost err = 0 [09:29:33]CheckOFDResponse [09:29:33]1017 (14) - 77093643461234 [09:29:33]1041 (16) - 0000000002098592 [09:29:33]1040 (4) - 1866 [09:29:33]1012 (4) - 13.07.2024 03:27 [09:29:33]1206 (1) - 0 [09:29:33]OFD Sender: Remove packet 1866 [09:29:33]ProducePacketName [09:29:33]name=ofd_packets/00001866 [09:29:33]NVStorageDeleteData [09:29:34]Write to MH i2c: 01 00 00 C7 02 C9 [09:29:34]Write i2c OK [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: 01 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: 01 07 00 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 B0 0C 8C [09:29:34]RasterBufferAndPrint [09:29:34]line [09:29:34]line [09:29:34]line [09:29:34]line [09:29:34]line [09:29:34]written 0, free lines is 3256 [09:29:34]MH_Cut [09:29:34]Write to MH i2c: D1 01 00 CE 02 01 A2 [09:29:34]Write i2c OK [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: D1 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: D1 01 00 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: D1 01 00 CE 02 00 A1 [09:29:34]Write to MH i2c: 01 00 00 CF 02 D1 [09:29:34]Write i2c OK [09:29:34]MH_I2C_Read... [09:29:34]OFD Sender: No OFD packet to send [09:29:34]*** Cut start [09:29:34]*** Partial cut [09:29:34]*** CUTSNS_PIN = 1 [09:29:34]*** CUTSNS_PIN = 0 [09:29:35]*** Brake cut motor [09:29:35]Read from MH i2c: 01 [09:29:35]MH_I2C_Read... [09:29:35]*** Stop cut motor [09:29:35]*** Cut end [09:29:35]Read from MH i2c: 01 07 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [09:29:35]process_action close_receipt done [09:29:35]requested_data is exist [09:29:35]produce_requested_data [09:29:35]requested_item fm.sn is exist - process it [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 11 00 00 [09:29:35]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 17 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A2 [09:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:29:35]wFMCommunicate OK [09:29:35]requested_item fd.num is exist - process it [09:29:35]SAM_PROTO_GetFieldsCounters [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 13 00 00 [09:29:35]Write to MH i2c: E2 08 00 D1 02 80 13 00 00 00 00 00 00 4F [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 62 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 62 00 D1 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 4A 07 00 00 0E 04 04 00 18 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 4D [09:29: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 4A 07 00 00 0E 04 04 00 18 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 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_GetFieldsCounters done [09:29:35]requested_item shift.num is exist - process it [09:29:35]requested_item shift.opened is exist - process it [09:29:35]req_shift_opened [09:29:35]FM_GetShiftState [09:29:35]SAM_PROTO_GetShiftState [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 13 01 00 [09:29:35]Write to MH i2c: E2 08 00 D2 02 80 13 01 00 00 00 00 00 51 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0E 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0E 00 D2 02 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 DC [09:29:35]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_GetShiftState done [09:29:35]FM_GetShiftState done [09:29:35]req_shift_opened done [09:29:35]requested_item shift.open_date is exist - process it [09:29:35]req_shift_open_date [09:29:35]req_shift_open_date done [09:29:35]produce_requested_data done [09:29:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1866,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:29:35]process_action_free close_receipt [09:29:35]json_value_free [09:29:35]json_value_free done [09:29:35]process_json_proto returns [09:29:35]Send response to host [09:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1866,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:29:35]free response buf [09:29:35]execute_script done [09:29:35]execute_script returns [09:29:35]free content buf [09:29:35]Sock 8.Close socket [09:29:35]Sock 8.Thread stoped [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:52]accept exits with 9 [09:33:52]New connection [09:33:52]New thread 3066834276 created [09:33:52]Thread 3066977636 joined [09:33:52]Waiting for new connection... [09:33:52] Sock 9.Parse request [09:33:52]Sock 9.Check first char [09:33:52]Sock 9.First char is OK [09:33:52]request: POST /json_proto HTTP/1.0 [09:33:52]Method: POST [09:33:52]URL: /json_proto [09:33:52]Method is POST - this is cgi request [09:33:52]url: /json_proto [09:33:52]query_string will be loaded in cgi processing [09:33:52]execute_cgi json_proto POST (null) [09:33:52]execute_cgi path=json_proto method=POST [09:33:52]POST find Content-Length [09:33:52]Host: 172.17.35.133:8080 [09:33:52]Content-Length: 648 [09:33:52]Content-Type: application/json [09:33:52] [09:33:52]POST finish read [09:33:52]Found Content-Length = 648 [09:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618975", "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" : 30.000, "sum" : 2178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2178.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:52]execute_script... [09:33: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 : (1)1618975", "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" : 30.000, "sum" : 2178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2178.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:52]POST & json_proto [09:33:52]process_json_proto [09:33:52]json parsed OK: [09:33:52]protocol is kg_v1.0 [09:33:52]action value=close_receipt [09:33:52]process_action close_receipt [09:33:52]cmd_close_receipt [09:33:52]MH_GetDate [09:33:52]Write to MH i2c: F0 00 00 D3 02 C4 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 D3 02 00 01 4A 92 66 1B 28 2A 66 E3 [09:33:52]GetLastDocTimeStamp 1720862972 [09:33:52]current date 1720863233 [09:33:52]FM_GetShiftState [09:33:52]SAM_PROTO_GetShiftState [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 01 00 [09:33:52]Write to MH i2c: E2 08 00 D4 02 80 13 01 00 00 00 00 00 53 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 D4 02 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 DE [09:33:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetShiftState done [09:33:52]FM_GetShiftState done [09:33:52]opened in 1720829379 [09:33:52]opened+sec_in_day 1720915779 [09:33:52]quantity*price = 217800 [09:33:52]sum+1 = 217801 [09:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2178.00 НСП 1% : 19.27 НДС 12% : 231.29 Наличными: 2178.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 36 13.07.2024 09:33 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1867 ФПД: 171167128638505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093353&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1867&fm=171167128638505&tin=02508201610067®Number=0000000000177495&sum=217800 [09:33:53]StoreToDocumentArchive [09:33:53]shift 24 fd 1867 [09:33:53]save to /storage/0024/doc_00001867 [09:33:53]save last doc name /storage/0024/doc_00001867 to /storage/kkm_last_doc_name [09:33:53]save OK [09:33:53]Clear old archive folders... [09:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:33:53]tlvbuf is 00FEBF70 [09:33:53]SAM_PROTO_ClearQueue [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 09 00 00 [09:33:53]Write to MH i2c: E2 08 00 E1 02 80 09 00 00 00 00 00 00 55 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_ClearQueue done [09:33:53]KKMCreateOFDPacket [09:33:53]OFDProtocolAddRootSTLVToBuf [09:33:53]FM_MakeSignedData [09:33:53]FM_MakeSignedData [09:33:53]SAM_PROTO_SignData [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 01 02 [09:33:53]Write to MH i2c: E2 08 00 E2 02 80 0D 01 02 00 00 00 00 5D [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=255 [09:33:53]MH_SAM_APDU [09:33:53]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 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 C8 52 03 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 01 4A 92 66 0E 04 04 00 18 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 4B 07 00 00 35 04 06 00 [09:33:53]Write to MH i2c: E2 02 01 E3 02 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 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 C8 52 03 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 01 4A 92 66 0E 04 04 00 18 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 4B 07 00 00 35 04 06 00 00 00 32 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=11 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 02 02 06 9B AC F3 E6 54 29 [09:33:53]Write to MH i2c: E2 0E 00 E4 02 80 0D 02 02 06 00 9B AC F3 E6 54 29 00 00 09 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 03 02 [09:33:53]Write to MH i2c: E2 08 00 E5 02 80 0D 03 02 00 00 00 00 62 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0B 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0B 00 E5 02 00 C5 B0 9E 1F F3 71 CC 67 90 00 2C [09:33:53]RAPDU: C5 B0 9E 1F F3 71 CC 67 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_SignData done [09:33:53]FM_MakeSignedData done [09:33:53]CreateOFDProtocolMessage [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 11 00 00 [09:33:53]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 17 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B8 [09:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:33:53]wFMCommunicate OK [09:33:53]CreateOFDProtocolMessage done [09:33:53]OFDSenderStorePacket 1867 [09:33:53]StoreOFDPacket docnum=1867 [09:33: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 10 01 00 00 6E A1 08 01 7D 74 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 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 C8 52 03 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 01 4A 92 66 0E 04 04 00 18 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 4B 07 00 00 35 04 06 00 9B AC F3 E6 54 29 C5 B0 9E 1F F3 71 CC 67 [09:33:53]CheckFolder [09:33:53]dirname=/storage/ofd_packets [09:33:53]CheckFolder done [09:33:53]ProducePacketName [09:33:53]name=ofd_packets/00001867 [09:33:53]NVStorageSaveData ofd_packets/00001867 [09:33:53]File name is /storage/ofd_packets/00001867 [09:33:53]Write 302 bytes [09:33:53]NVStorageSaveData done [09:33:53]OFDSenderStorePacket done [09:33:53]KKMCreateOFDPacket done [09:33:53]NVStorageSaveData kkm_last_timestamp [09:33:53]File name is /storage/kkm_last_timestamp [09:33:53]Write 4 bytes [09:33:53]NVStorageSaveData done [09:33:53]ExternCall_PrintAddStr [09:33:53]wPrintStart [09:33:53]Write to MH i2c: 01 00 00 E7 02 E9 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: 01 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: 01 07 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 FF 0F FE [09:33:53]RasterBufferAndPrint [09:33:53]line Счет N : (1)1618975 [09:33:53]line ИНН: 02508201610067 [09:33:53]line Контрольно-Кассовый Чек [09:33:53]line ПРОДАЖА [09:33:53]line ТРК (МРК, ГНК) : 41 [09:33:53]line Товар: 2710194210 [09:33:53]line ДТ(л)-К-4 [09:33:53]line 30.000 * 72.60 [09:33:53]line = 2178.00 [09:33:53]line НДС 12% НСП 1% [09:33:53]line > о реализуемом товаре [09:33:53]line ИТОГО: 2178.00 [09:33:53]line НСП 1% : 19.27 [09:33:53]line НДС 12% : 231.29 [09:33:53]line Наличными: 2178.00 [09:33:53]line Безнал.: 0.00 [09:33:53]line Место: АЗС № 76 "Партнер Нефть" [09:33:53]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:33:53]line СНО: Общий режим [09:33:53]line Чек 36 13.07.2024 09:33 [09:33:53]line Смена: 24 ФФД: 1.0 [09:33:53]line ЗНМ: 0300000124 [09:33:53]line РНМ: 0000000000177495 [09:33:53]line Версия ККМ: 001 [09:33:53]line ФМ: 0000000002098592 [09:33:53]line ФД: 1867 [09:33:53]line ФПД: 171167128638505 [09:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093353&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1867&fm=171167128638505&tin=02508201610067®Number=0000000000177495&sum=217800 [09:33:54]OFD Sender: Processing packet 1867 [packets to send 1, broken 0] [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00001867 [09:33:54]OFD Sender: To server: pG, [09:33:54]CommunicateWithHost lk.salyk.kg:30040 [09:33:54]ConnectInit lk.salyk.kg [09:33:54]written 0, free lines is 4095 [09:33:54]Connected sock=10 [09:33: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 10 01 00 00 6E A1 08 01 7D 74 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 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 C8 52 03 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 01 4A 92 66 0E 04 04 00 18 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 4B 07 00 00 35 04 06 00 9B AC F3 E6 54 29 C5 B0 9E 1F F3 71 CC 67 [09:33:54]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 7B 15 47 00 D3 CF 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 4B 07 00 00 F4 03 04 00 37 F5 91 66 B6 04 01 00 00 90 A8 B2 F7 C5 A2 34 16 [09:33:54]CommunicateWithHost err = 0 [09:33:54]CheckOFDResponse [09:33:54]1017 (14) - 77093643461234 [09:33:54]1041 (16) - 0000000002098592 [09:33:54]1040 (4) - 1867 [09:33:54]1012 (4) - 13.07.2024 03:32 [09:33:54]1206 (1) - 0 [09:33:54]OFD Sender: Remove packet 1867 [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00001867 [09:33:54]NVStorageDeleteData [09:33:54]Write to MH i2c: 01 00 00 0F 03 12 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 15 0D 3B [09:33:54]RasterBufferAndPrint [09:33:54]line [09:33:54]line [09:33:54]line [09:33:54]line [09:33:54]line [09:33:54]written 0, free lines is 3356 [09:33:54]MH_Cut [09:33:54]Write to MH i2c: D1 01 00 16 03 01 EB [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: D1 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: D1 01 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: D1 01 00 16 03 00 EA [09:33:54]Write to MH i2c: 01 00 00 17 03 1A [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:55]OFD Sender: No OFD packet to send [09:33:55]*** Cut start [09:33:55]*** Partial cut [09:33:55]*** CUTSNS_PIN = 1 [09:33:55]*** CUTSNS_PIN = 0 [09:33:55]*** Brake cut motor [09:33:55]Read from MH i2c: 01 [09:33:55]MH_I2C_Read... [09:33:55]*** Stop cut motor [09:33:55]*** Cut end [09:33:55]Read from MH i2c: 01 07 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [09:33:55]process_action close_receipt done [09:33:55]requested_data is exist [09:33:55]produce_requested_data [09:33:55]requested_item fm.sn is exist - process it [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 11 00 00 [09:33:55]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 17 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EB [09:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:33:55]wFMCommunicate OK [09:33:55]requested_item fd.num is exist - process it [09:33:55]SAM_PROTO_GetFieldsCounters [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 13 00 00 [09:33:55]Write to MH i2c: E2 08 00 19 03 80 13 00 00 00 00 00 00 98 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 62 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 62 00 19 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 4B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [09:33: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 4B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetFieldsCounters done [09:33:56]requested_item shift.num is exist - process it [09:33:56]requested_item shift.opened is exist - process it [09:33:56]req_shift_opened [09:33:56]FM_GetShiftState [09:33:56]SAM_PROTO_GetShiftState [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 13 01 00 [09:33:56]Write to MH i2c: E2 08 00 1A 03 80 13 01 00 00 00 00 00 9A [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 1A 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 25 [09:33:56]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetShiftState done [09:33:56]FM_GetShiftState done [09:33:56]req_shift_opened done [09:33:56]requested_item shift.open_date is exist - process it [09:33:56]req_shift_open_date [09:33:56]req_shift_open_date done [09:33:56]produce_requested_data done [09:33:56]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1867,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:33:56]process_action_free close_receipt [09:33:56]json_value_free [09:33:56]json_value_free done [09:33:56]process_json_proto returns [09:33:56]Send response to host [09:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1867,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:33:56]free response buf [09:33:56]execute_script done [09:33:56]execute_script returns [09:33:56]free content buf [09:33:56]Sock 9.Close socket [09:33:56]Sock 9.Thread stoped [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:50]accept exits with 8 [09:35:50]New connection [09:35:50]New thread 3066977636 created [09:35:50]Thread 3066834276 joined [09:35:50]Waiting for new connection... [09:35:50] Sock 8.Parse request [09:35:50]Sock 8.Check first char [09:35:50]Sock 8.First char is OK [09:35:50]request: POST /json_proto HTTP/1.0 [09:35:50]Method: POST [09:35:50]URL: /json_proto [09:35:50]Method is POST - this is cgi request [09:35:50]url: /json_proto [09:35:50]query_string will be loaded in cgi processing [09:35:50]execute_cgi json_proto POST (null) [09:35:50]execute_cgi path=json_proto method=POST [09:35:50]POST find Content-Length [09:35:50]Host: 172.17.35.133:8080 [09:35:50]Content-Length: 844 [09:35:50]Content-Type: application/json [09:35:50] [09:35:50]POST finish read [09:35:50]Found Content-Length = 844 [09:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618976", "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" : 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" ] } } [09:35:50]execute_script... [09:35: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 : (1)1618976", "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" : 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" ] } } [09:35:50]POST & json_proto [09:35:50]process_json_proto [09:35:50]json parsed OK: [09:35:50]protocol is kg_v1.0 [09:35:50]action value=close_receipt [09:35:50]process_action close_receipt [09:35:50]cmd_close_receipt [09:35:50]MH_GetDate [09:35:50]Write to MH i2c: F0 00 00 1B 03 0D [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 09 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 09 00 1B 03 00 77 4A 92 66 1B 28 2A 66 A2 [09:35:50]GetLastDocTimeStamp 1720863233 [09:35:50]current date 1720863351 [09:35:50]FM_GetShiftState [09:35:50]SAM_PROTO_GetShiftState [09:35:50]wFMCommunicate request_size=4 [09:35:50]MH_SAM_APDU [09:35:50]CAPDU: 80 13 01 00 [09:35:50]Write to MH i2c: E2 08 00 1C 03 80 13 01 00 00 00 00 00 9C [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:50]Read from MH i2c: E2 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 0E 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 0E 00 1C 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 27 [09:35:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:35:50]wFMCommunicate OK [09:35:50]SAM_PROTO_GetShiftState done [09:35:50]FM_GetShiftState done [09:35:50]opened in 1720829379 [09:35:50]opened+sec_in_day 1720915779 [09:35:50]quantity*price = 180004 [09:35:50]sum+1 = 180006 [09:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.05 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.05 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 37 13.07.2024 09:35 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1868 ФПД: 179429610838996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093551&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1868&fm=179429610838996&tin=02508201610067®Number=0000000000177495&sum=180005 [09:35:51]StoreToDocumentArchive [09:35:51]shift 24 fd 1868 [09:35:51]save to /storage/0024/doc_00001868 [09:35:51]save last doc name /storage/0024/doc_00001868 to /storage/kkm_last_doc_name [09:35:51]save OK [09:35:51]Clear old archive folders... [09:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:51]tlvbuf is 00FEB860 [09:35:51]SAM_PROTO_ClearQueue [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 09 00 00 [09:35:51]Write to MH i2c: E2 08 00 29 03 80 09 00 00 00 00 00 00 9E [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_ClearQueue done [09:35:51]KKMCreateOFDPacket [09:35:51]OFDProtocolAddRootSTLVToBuf [09:35:51]FM_MakeSignedData [09:35:51]FM_MakeSignedData [09:35:51]SAM_PROTO_SignData [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 0D 01 02 [09:35:51]Write to MH i2c: E2 08 00 2A 03 80 0D 01 02 00 00 00 00 A6 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]wFMCommunicate request_size=255 [09:35:51]MH_SAM_APDU [09:35:51]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 25 00 00 00 F4 03 04 00 77 4A 92 66 0E 04 04 00 18 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 4C 07 00 00 35 04 06 00 A3 [09:35:51]Write to MH i2c: E2 02 01 2B 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 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 25 00 00 00 F4 03 04 00 77 4A 92 66 0E 04 04 00 18 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 4C 07 00 00 35 04 06 00 A3 00 00 05 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=10 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 02 02 05 30 B6 37 5B D4 [09:35:52]Write to MH i2c: E2 0D 00 2C 03 80 0D 02 02 05 00 30 B6 37 5B D4 00 00 FF [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 03 02 [09:35:52]Write to MH i2c: E2 08 00 2D 03 80 0D 03 02 00 00 00 00 AB [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0B 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0B 00 2D 03 00 57 D7 C0 9C 78 6F AC BA 90 00 83 [09:35:52]RAPDU: 57 D7 C0 9C 78 6F AC BA 90 00 [09:35:52]wFMCommunicate OK [09:35:52]SAM_PROTO_SignData done [09:35:52]FM_MakeSignedData done [09:35:52]CreateOFDProtocolMessage [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 11 00 00 [09:35:52]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 01 [09:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:35:52]wFMCommunicate OK [09:35:52]CreateOFDProtocolMessage done [09:35:52]OFDSenderStorePacket 1868 [09:35:52]StoreOFDPacket docnum=1868 [09:35: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 0F 01 00 00 10 0F 07 01 07 F1 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 25 00 00 00 F4 03 04 00 77 4A 92 66 0E 04 04 00 18 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 4C 07 00 00 35 04 06 00 A3 30 B6 37 5B D4 57 D7 C0 9C 78 6F AC BA [09:35:52]CheckFolder [09:35:52]dirname=/storage/ofd_packets [09:35:52]CheckFolder done [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00001868 [09:35:52]NVStorageSaveData ofd_packets/00001868 [09:35:52]File name is /storage/ofd_packets/00001868 [09:35:52]Write 301 bytes [09:35:52]NVStorageSaveData done [09:35:52]OFDSenderStorePacket done [09:35:52]KKMCreateOFDPacket done [09:35:52]NVStorageSaveData kkm_last_timestamp [09:35:52]File name is /storage/kkm_last_timestamp [09:35:52]Write 4 bytes [09:35:52]NVStorageSaveData done [09:35:52]ExternCall_PrintAddStr [09:35:52]wPrintStart [09:35:52]Write to MH i2c: 01 00 00 2F 03 32 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 FF 0F 47 [09:35:52]RasterBufferAndPrint [09:35:52]line Счет N : (1)1618976 [09:35:52]line ИНН: 02508201610067 [09:35:52]line Контрольно-Кассовый Чек [09:35:52]line ПРОДАЖА [09:35:52]line ТРК (МРК, ГНК) : 24 [09:35:52]line Товар: 2710124130 [09:35:52]line Аи-92-К-5 [09:35:52]line 27.150 * 66.30 [09:35:52]line = 1800.05 [09:35:52]line НДС 12% НСП 1% [09:35:52]line > о реализуемом товаре [09:35:52]line ИТОГО: 1800.05 [09:35:52]line НСП 1% : 15.93 [09:35:52]line НДС 12% : 191.16 [09:35:52]line Наличными: 0.00 [09:35:52]line Безнал.: 1800.05 [09:35:52]line Место: АЗС № 76 "Партнер Нефть" [09:35:52]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:35:52]line СНО: Общий режим [09:35:52]line Чек 37 13.07.2024 09:35 [09:35:52]line Смена: 24 ФФД: 1.0 [09:35:52]line ЗНМ: 0300000124 [09:35:52]line РНМ: 0000000000177495 [09:35:52]line Версия ККМ: 001 [09:35:52]line Платежная система: АКБ Кыргызстан [09:35:52]line ФМ: 0000000002098592 [09:35:52]line ФД: 1868 [09:35:52]line ФПД: 179429610838996 [09:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093551&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1868&fm=179429610838996&tin=02508201610067®Number=0000000000177495&sum=180005 [09:35:52]OFD Sender: Processing packet 1868 [packets to send 1, broken 0] [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00001868 [09:35:52]OFD Sender: To server: pG, [09:35:52]CommunicateWithHost lk.salyk.kg:30040 [09:35:52]ConnectInit lk.salyk.kg [09:35:52]written 0, free lines is 4095 [09:35:52]Connected sock=10 [09:35: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 0F 01 00 00 10 0F 07 01 07 F1 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 25 00 00 00 F4 03 04 00 77 4A 92 66 0E 04 04 00 18 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 4C 07 00 00 35 04 06 00 A3 30 B6 37 5B D4 57 D7 C0 9C 78 6F AC BA [09:35:52]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 E1 C7 47 00 E7 D3 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 4C 07 00 00 F4 03 04 00 AE F5 91 66 B6 04 01 00 00 10 39 90 3A 4B 0D 1C D0 [09:35:52]CommunicateWithHost err = 0 [09:35:52]CheckOFDResponse [09:35:52]1017 (14) - 77093643461234 [09:35:52]1041 (16) - 0000000002098592 [09:35:52]1040 (4) - 1868 [09:35:52]1012 (4) - 13.07.2024 03:34 [09:35:52]1206 (1) - 0 [09:35:52]OFD Sender: Remove packet 1868 [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00001868 [09:35:52]NVStorageDeleteData [09:35:53]Write to MH i2c: 01 00 00 59 03 5C [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 04 0D 74 [09:35:53]RasterBufferAndPrint [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]written 0, free lines is 3337 [09:35:53]MH_Cut [09:35:53]Write to MH i2c: D1 01 00 60 03 01 35 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 01 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 01 00 60 03 00 34 [09:35:53]Write to MH i2c: 01 00 00 61 03 64 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]OFD Sender: No OFD packet to send [09:35:53]*** Cut start [09:35:53]*** Partial cut [09:35:53]*** CUTSNS_PIN = 1 [09:35:53]*** CUTSNS_PIN = 0 [09:35:54]*** Brake cut motor [09:35:54]Read from MH i2c: 01 [09:35:54]MH_I2C_Read... [09:35:54]*** Stop cut motor [09:35:54]*** Cut end [09:35:54]Read from MH i2c: 01 07 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [09:35:54]process_action close_receipt done [09:35:54]requested_data is exist [09:35:54]produce_requested_data [09:35:54]requested_item fm.sn is exist - process it [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 11 00 00 [09:35:54]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 17 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 35 [09:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:35:54]wFMCommunicate OK [09:35:54]requested_item fd.num is exist - process it [09:35:54]SAM_PROTO_GetFieldsCounters [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 13 00 00 [09:35:54]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 62 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 62 00 63 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 4C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [09:35:54]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 4C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:54]wFMCommunicate OK [09:35:54]SAM_PROTO_GetFieldsCounters done [09:35:54]requested_item shift.num is exist - process it [09:35:54]requested_item shift.opened is exist - process it [09:35:54]req_shift_opened [09:35:54]FM_GetShiftState [09:35:54]SAM_PROTO_GetShiftState [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 13 01 00 [09:35:54]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:54]Read from MH i2c: E2 0E 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6F [09:35:54]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:35:54]wFMCommunicate OK [09:35:54]SAM_PROTO_GetShiftState done [09:35:54]FM_GetShiftState done [09:35:54]req_shift_opened done [09:35:54]requested_item shift.open_date is exist - process it [09:35:54]req_shift_open_date [09:35:54]req_shift_open_date done [09:35:54]produce_requested_data done [09:35:54]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1868,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:35:54]process_action_free close_receipt [09:35:54]json_value_free [09:35:54]json_value_free done [09:35:54]process_json_proto returns [09:35:54]Send response to host [09:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1868,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:35:54]free response buf [09:35:54]execute_script done [09:35:54]execute_script returns [09:35:54]free content buf [09:35:54]Sock 8.Close socket [09:35:54]Sock 8.Thread stoped [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:26]accept exits with 9 [09:45:26]New connection [09:45:26]New thread 3066834276 created [09:45:26]Thread 3066977636 joined [09:45:26]Waiting for new connection... [09:45:26] Sock 9.Parse request [09:45:26]Sock 9.Check first char [09:45:26]Sock 9.First char is OK [09:45:26]request: POST /json_proto HTTP/1.0 [09:45:26]Method: POST [09:45:26]URL: /json_proto [09:45:26]Method is POST - this is cgi request [09:45:26]url: /json_proto [09:45:26]query_string will be loaded in cgi processing [09:45:26]execute_cgi json_proto POST (null) [09:45:26]execute_cgi path=json_proto method=POST [09:45:26]POST find Content-Length [09:45:26]Host: 172.17.35.133:8080 [09:45:26]Content-Length: 678 [09:45:26]Content-Type: application/json [09:45:26] [09:45:26]POST finish read [09:45:26]Found Content-Length = 678 [09:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618977", "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" : 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" ] } } [09:45:26]execute_script... [09:45:26]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)1618977", "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" : 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" ] } } [09:45:26]POST & json_proto [09:45:26]process_json_proto [09:45:26]json parsed OK: [09:45:26]protocol is kg_v1.0 [09:45:26]action value=close_receipt [09:45:26]process_action close_receipt [09:45:26]cmd_close_receipt [09:45:26]MH_GetDate [09:45:26]Write to MH i2c: F0 00 00 65 03 57 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: F0 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: F0 09 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: F0 09 00 65 03 00 B7 4C 92 66 1B 28 2A 66 2E [09:45:26]GetLastDocTimeStamp 1720863351 [09:45:26]current date 1720863927 [09:45:26]FM_GetShiftState [09:45:26]SAM_PROTO_GetShiftState [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 13 01 00 [09:45:26]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0E 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 71 [09:45:26]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_GetShiftState done [09:45:26]FM_GetShiftState done [09:45:26]opened in 1720829379 [09:45:26]opened+sec_in_day 1720915779 [09:45:26]quantity*price = 50056 [09:45:26]sum+1 = 50058 [09:45:26]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 СНО: Общий режим Чек 38 13.07.2024 09:45 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1869 ФПД: 102094031809189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094527&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1869&fm=102094031809189&tin=02508201610067®Number=0000000000177495&sum=50000 [09:45:27]StoreToDocumentArchive [09:45:27]shift 24 fd 1869 [09:45:27]save to /storage/0024/doc_00001869 [09:45:27]save last doc name /storage/0024/doc_00001869 to /storage/kkm_last_doc_name [09:45:27]save OK [09:45:27]Clear old archive folders... [09:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:27]tlvbuf is 00FE5AC0 [09:45:27]SAM_PROTO_ClearQueue [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 09 00 00 [09:45:27]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [09:45:27]RAPDU: 90 00 [09:45:27]wFMCommunicate OK [09:45:27]SAM_PROTO_ClearQueue done [09:45:27]KKMCreateOFDPacket [09:45:27]OFDProtocolAddRootSTLVToBuf [09:45:27]FM_MakeSignedData [09:45:27]FM_MakeSignedData [09:45:27]SAM_PROTO_SignData [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 0D 01 02 [09:45:27]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [09:45:27]RAPDU: 90 00 [09:45:27]wFMCommunicate OK [09:45:27]wFMCommunicate request_size=255 [09:45:27]MH_SAM_APDU [09:45:27]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 26 00 00 00 F4 03 04 00 B7 4C 92 66 0E 04 04 00 18 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 4D 07 00 00 35 04 06 00 5C [09:45:27]Write to MH i2c: E2 02 01 75 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 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 26 00 00 00 F4 03 04 00 B7 4C 92 66 0E 04 04 00 18 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 4D 07 00 00 35 04 06 00 5C 00 00 8E [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [09:45:27]RAPDU: 90 00 [09:45:27]wFMCommunicate OK [09:45:27]wFMCommunicate request_size=10 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 0D 02 02 05 DA 9E 7F EA A5 [09:45:27]Write to MH i2c: E2 0D 00 76 03 80 0D 02 02 05 00 DA 9E 7F EA A5 00 00 83 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [09:45:27]RAPDU: 90 00 [09:45:27]wFMCommunicate OK [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 0D 03 02 [09:45:27]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 0B 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 0B 00 77 03 00 09 F3 41 05 E8 BA 86 A0 90 00 00 [09:45:27]RAPDU: 09 F3 41 05 E8 BA 86 A0 90 00 [09:45:27]wFMCommunicate OK [09:45:27]SAM_PROTO_SignData done [09:45:27]FM_MakeSignedData done [09:45:27]CreateOFDProtocolMessage [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 11 00 00 [09:45:27]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 17 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4B [09:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:45:27]wFMCommunicate OK [09:45:27]CreateOFDProtocolMessage done [09:45:27]OFDSenderStorePacket 1869 [09:45:27]StoreOFDPacket docnum=1869 [09:45:27]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 F8 84 07 01 DF 4F 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 26 00 00 00 F4 03 04 00 B7 4C 92 66 0E 04 04 00 18 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 4D 07 00 00 35 04 06 00 5C DA 9E 7F EA A5 09 F3 41 05 E8 BA 86 A0 [09:45:27]CheckFolder [09:45:27]dirname=/storage/ofd_packets [09:45:27]CheckFolder done [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00001869 [09:45:27]NVStorageSaveData ofd_packets/00001869 [09:45:27]File name is /storage/ofd_packets/00001869 [09:45:27]Write 301 bytes [09:45:27]NVStorageSaveData done [09:45:27]OFDSenderStorePacket done [09:45:27]KKMCreateOFDPacket done [09:45:27]NVStorageSaveData kkm_last_timestamp [09:45:27]File name is /storage/kkm_last_timestamp [09:45:27]Write 4 bytes [09:45:27]NVStorageSaveData done [09:45:27]ExternCall_PrintAddStr [09:45:27]wPrintStart [09:45:27]Write to MH i2c: 01 00 00 79 03 7C [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [09:45:27]RasterBufferAndPrint [09:45:27]line Счет N : (1)1618977 [09:45:27]line ИНН: 02508201610067 [09:45:27]line Контрольно-Кассовый Чек [09:45:27]line ПРОДАЖА [09:45:27]line ТРК (МРК, ГНК) : 43 [09:45:27]line Товар: 2710124130 [09:45:27]line Аи-92-К-5 [09:45:27]line 7.550 * 66.30 [09:45:27]line = 500.57 [09:45:27]line НДС 12% НСП 1% [09:45:27]line > о реализуемом товаре [09:45:27]line ОКРУГЛЕНИЕ: -0.57 [09:45:27]line ИТОГО: 500.00 [09:45:27]line Внесено: 500.00 [09:45:27]line СДАЧА: 0.00 [09:45:27]line НСП 1% : 4.43 [09:45:27]line НДС 12% : 53.16 [09:45:27]line Наличными: 500.00 [09:45:27]line Безнал.: 0.00 [09:45:27]line Место: АЗС № 76 "Партнер Нефть" [09:45:27]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [09:45:27]line СНО: Общий режим [09:45:27]line Чек 38 13.07.2024 09:45 [09:45:27]line Смена: 24 ФФД: 1.0 [09:45:27]line ЗНМ: 0300000124 [09:45:27]line РНМ: 0000000000177495 [09:45:27]line Версия ККМ: 001 [09:45:27]line ФМ: 0000000002098592 [09:45:27]line ФД: 1869 [09:45:27]line ФПД: 102094031809189 [09:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094527&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1869&fm=102094031809189&tin=02508201610067®Number=0000000000177495&sum=50000 [09:45:28]OFD Sender: Processing packet 1869 [packets to send 1, broken 0] [09:45:28]ProducePacketName [09:45:28]name=ofd_packets/00001869 [09:45:28]OFD Sender: To server: pG, [09:45:28]CommunicateWithHost lk.salyk.kg:30040 [09:45:28]ConnectInit lk.salyk.kg [09:45:28]written 0, free lines is 4095 [09:45:28]Connected sock=10 [09:45:28]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 F8 84 07 01 DF 4F 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 26 00 00 00 F4 03 04 00 B7 4C 92 66 0E 04 04 00 18 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 4D 07 00 00 35 04 06 00 5C DA 9E 7F EA A5 09 F3 41 05 E8 BA 86 A0 [09:45:28]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 96 0D 47 00 A0 1F 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 4D 07 00 00 F4 03 04 00 ED F7 91 66 B6 04 01 00 00 8F 1E 47 A9 24 48 5B F8 [09:45:28]CommunicateWithHost err = 0 [09:45:28]CheckOFDResponse [09:45:28]1017 (14) - 77093643461234 [09:45:28]1041 (16) - 0000000002098592 [09:45:28]1040 (4) - 1869 [09:45:28]1012 (4) - 13.07.2024 03:43 [09:45:28]1206 (1) - 0 [09:45:28]OFD Sender: Remove packet 1869 [09:45:28]ProducePacketName [09:45:28]name=ofd_packets/00001869 [09:45:28]NVStorageDeleteData [09:45:28]Write to MH i2c: 01 00 00 A4 03 A7 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 EE 0C A8 [09:45:28]RasterBufferAndPrint [09:45:28]line [09:45:28]line [09:45:28]line [09:45:28]line [09:45:28]line [09:45:28]written 0, free lines is 3316 [09:45:28]MH_Cut [09:45:28]Write to MH i2c: D1 01 00 AB 03 01 80 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: D1 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: D1 01 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: D1 01 00 AB 03 00 7F [09:45:28]Write to MH i2c: 01 00 00 AC 03 AF [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]OFD Sender: No OFD packet to send [09:45:29]*** Cut start [09:45:29]*** Partial cut [09:45:29]*** CUTSNS_PIN = 1 [09:45:29]*** CUTSNS_PIN = 0 [09:45:29]*** Brake cut motor [09:45:29]Read from MH i2c: 01 [09:45:29]MH_I2C_Read... [09:45:29]*** Stop cut motor [09:45:29]*** Cut end [09:45:29]Read from MH i2c: 01 07 00 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [09:45:29]process_action close_receipt done [09:45:29]requested_data is exist [09:45:29]produce_requested_data [09:45:29]requested_item fm.sn is exist - process it [09:45:29]wFMCommunicate request_size=4 [09:45:29]MH_SAM_APDU [09:45:29]CAPDU: 80 11 00 00 [09:45:29]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [09:45:30]Write i2c OK [09:45:30]MH_I2C_Read... [09:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:30]Read from MH i2c: E2 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 17 00 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 80 [09:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [09:45:30]wFMCommunicate OK [09:45:30]requested_item fd.num is exist - process it [09:45:30]SAM_PROTO_GetFieldsCounters [09:45:30]wFMCommunicate request_size=4 [09:45:30]MH_SAM_APDU [09:45:30]CAPDU: 80 13 00 00 [09:45:30]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [09:45:30]Write i2c OK [09:45:30]MH_I2C_Read... [09:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:30]Read from MH i2c: E2 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 62 00 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 62 00 AE 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 4D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:45:30]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 4D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:30]wFMCommunicate OK [09:45:30]SAM_PROTO_GetFieldsCounters done [09:45:30]requested_item shift.num is exist - process it [09:45:30]requested_item shift.opened is exist - process it [09:45:30]req_shift_opened [09:45:30]FM_GetShiftState [09:45:30]SAM_PROTO_GetShiftState [09:45:30]wFMCommunicate request_size=4 [09:45:30]MH_SAM_APDU [09:45:30]CAPDU: 80 13 01 00 [09:45:30]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [09:45:30]Write i2c OK [09:45:30]MH_I2C_Read... [09:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:30]Read from MH i2c: E2 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 0E 00 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 BA [09:45:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [09:45:30]wFMCommunicate OK [09:45:30]SAM_PROTO_GetShiftState done [09:45:30]FM_GetShiftState done [09:45:30]req_shift_opened done [09:45:30]requested_item shift.open_date is exist - process it [09:45:30]req_shift_open_date [09:45:30]req_shift_open_date done [09:45:30]produce_requested_data done [09:45:30]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1869,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [09:45:30]process_action_free close_receipt [09:45:30]json_value_free [09:45:30]json_value_free done [09:45:30]process_json_proto returns [09:45:30]Send response to host [09:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1869,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [09:45:30]free response buf [09:45:30]execute_script done [09:45:30]execute_script returns [09:45:30]free content buf [09:45:30]Sock 9.Close socket [09:45:30]Sock 9.Thread stoped [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:26]accept exits with 8 [10:00:26]New connection [10:00:26]New thread 3066977636 created [10:00:26]Thread 3066834276 joined [10:00:26]Waiting for new connection... [10:00:26] Sock 8.Parse request [10:00:26]Sock 8.Check first char [10:00:26]Sock 8.First char is OK [10:00:26]request: POST /json_proto HTTP/1.0 [10:00:26]Method: POST [10:00:26]URL: /json_proto [10:00:26]Method is POST - this is cgi request [10:00:26]url: /json_proto [10:00:26]query_string will be loaded in cgi processing [10:00:26]execute_cgi json_proto POST (null) [10:00:26]execute_cgi path=json_proto method=POST [10:00:26]POST find Content-Length [10:00:26]Host: 172.17.35.133:8080 [10:00:26]Content-Length: 876 [10:00:26]Content-Type: application/json [10:00:26] [10:00:26]POST finish read [10:00:26]Found Content-Length = 876 [10:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256318", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 121.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:26]execute_script... [10:00:26]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)256318", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 121.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:26]POST & json_proto [10:00:26]process_json_proto [10:00:26]json parsed OK: [10:00:26]protocol is kg_v1.0 [10:00:26]action value=close_receipt [10:00:26]process_action close_receipt [10:00:26]cmd_close_receipt [10:00:26]MH_GetDate [10:00:26]Write to MH i2c: F0 00 00 B0 03 A2 [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 09 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 09 00 B0 03 00 3B 50 92 66 1B 28 2A 66 01 [10:00:26]GetLastDocTimeStamp 1720863927 [10:00:26]current date 1720864827 [10:00:26]FM_GetShiftState [10:00:26]SAM_PROTO_GetShiftState [10:00:26]wFMCommunicate request_size=4 [10:00:26]MH_SAM_APDU [10:00:26]CAPDU: 80 13 01 00 [10:00:26]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:26]Read from MH i2c: E2 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 0E 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 BC [10:00:26]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:00:26]wFMCommunicate OK [10:00:26]SAM_PROTO_GetShiftState done [10:00:26]FM_GetShiftState done [10:00:26]opened in 1720829379 [10:00:26]opened+sec_in_day 1720915779 [10:00:26]quantity*price = 11100 [10:00:26]sum+1 = 11101 [10:00:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 121.00 НСП 1% : 1.07 НДС 12% : 12.85 Наличными: 121.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 39 13.07.2024 10:00 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1870 ФПД: 231462729157712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100027&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1870&fm=231462729157712&tin=02508201610067®Number=0000000000177495&sum=12100 0 [10:00:27]StoreToDocumentArchive [10:00:27]shift 24 fd 1870 [10:00:27]save to /storage/0024/doc_00001870 [10:00:27]save last doc name /storage/0024/doc_00001870 to /storage/kkm_last_doc_name [10:00:27]save OK [10:00:27]Clear old archive folders... [10:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=376 [10:00:27]tlvbuf is 00FE5360 [10:00:27]SAM_PROTO_ClearQueue [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 09 00 00 [10:00:27]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [10:00:27]RAPDU: 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_ClearQueue done [10:00:27]KKMCreateOFDPacket [10:00:27]OFDProtocolAddRootSTLVToBuf [10:00:27]FM_MakeSignedData [10:00:27]FM_MakeSignedData [10:00:27]SAM_PROTO_SignData [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 0D 01 02 [10:00:27]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [10:00:27]RAPDU: 90 00 [10:00:27]wFMCommunicate OK [10:00:27]wFMCommunicate request_size=255 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 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 44 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 [10:00:27]Write to MH i2c: E2 02 01 C0 03 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 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 44 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 00 00 0B [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [10:00:27]RAPDU: 90 00 [10:00:27]wFMCommunicate OK [10:00:27]wFMCommunicate request_size=135 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 44 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3B 50 92 66 0E 04 04 00 18 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 4E 07 00 00 35 04 06 00 D2 83 9D C0 0C 50 [10:00:27]Write to MH i2c: E2 8A 00 C1 03 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 44 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3B 50 92 66 0E 04 04 00 18 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 4E 07 00 00 35 04 06 00 D2 83 9D C0 0C 50 00 00 2B [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 0D 03 02 [10:00:28]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0B 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0B 00 C2 03 00 4F A1 36 48 97 34 C3 01 90 00 3E [10:00:28]RAPDU: 4F A1 36 48 97 34 C3 01 90 00 [10:00:28]wFMCommunicate OK [10:00:28]SAM_PROTO_SignData done [10:00:28]FM_MakeSignedData done [10:00:28]CreateOFDProtocolMessage [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 11 00 00 [10:00:28]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 17 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 96 [10:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:00:28]wFMCommunicate OK [10:00:28]CreateOFDProtocolMessage done [10:00:28]OFDSenderStorePacket 1870 [10:00:28]StoreOFDPacket docnum=1870 [10:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 8C 01 00 00 2F 6D 84 01 12 4E 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 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 44 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 44 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3B 50 92 66 0E 04 04 00 18 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 4E 07 00 00 35 04 06 00 D2 83 9D C0 0C 50 4F A1 36 48 97 34 C3 01 [10:00:28]CheckFolder [10:00:28]dirname=/storage/ofd_packets [10:00:28]CheckFolder done [10:00:28]ProducePacketName [10:00:28]name=ofd_packets/00001870 [10:00:28]NVStorageSaveData ofd_packets/00001870 [10:00:28]File name is /storage/ofd_packets/00001870 [10:00:28]Write 426 bytes [10:00:28]NVStorageSaveData done [10:00:28]OFDSenderStorePacket done [10:00:28]KKMCreateOFDPacket done [10:00:28]NVStorageSaveData kkm_last_timestamp [10:00:28]File name is /storage/kkm_last_timestamp [10:00:28]Write 4 bytes [10:00:28]NVStorageSaveData done [10:00:28]ExternCall_PrintAddStr [10:00:28]wPrintStart [10:00:28]Write to MH i2c: 01 00 00 C4 03 C7 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [10:00:28]RasterBufferAndPrint [10:00:28]line Счет N : (3)256318 [10:00:28]line ИНН: 02508201610067 [10:00:28]line Контрольно-Кассовый Чек [10:00:28]line ПРОДАЖА [10:00:28]line Товар: 4870001570071 [10:00:28]line Напиток Pepsi 1л [10:00:28]line 1.000 * 111.00 [10:00:28]line = 111.00 [10:00:28]line НДС 12% НСП 1% [10:00:28]line > о реализуемом товаре [10:00:28]line Товар: 46226617 [10:00:28]line Mentos ПВ Нежная Мята 6*100*2г [10:00:28]line 1.000 * 10.00 [10:00:28]line = 10.00 [10:00:28]line НДС 12% НСП 1% [10:00:28]line > о реализуемом товаре [10:00:28]line ИТОГО: 121.00 [10:00:28]line НСП 1% : 1.07 [10:00:28]line НДС 12% : 12.85 [10:00:28]line Наличными: 121.00 [10:00:28]line Безнал.: 0.00 [10:00:28]line Место: АЗС № 76 "Партнер Нефть" [10:00:28]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:00:28]line СНО: Общий режим [10:00:28]line Чек 39 13.07.2024 10:00 [10:00:28]line Смена: 24 ФФД: 1.0 [10:00:28]line ЗНМ: 0300000124 [10:00:28]line РНМ: 0000000000177495 [10:00:28]line Версия ККМ: 001 [10:00:28]line ФМ: 0000000002098592 [10:00:28]line ФД: 1870 [10:00:28]line ФПД: 231462729157712 [10:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100027&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1870&fm=231462729157712&tin=02508201610067®Number=0000000000177495&sum=12100 [10:00:28]line 0 [10:00:28]OFD Sender: Processing packet 1870 [packets to send 1, broken 0] [10:00:28]ProducePacketName [10:00:28]name=ofd_packets/00001870 [10:00:28]OFD Sender: To server: pG, [10:00:28]CommunicateWithHost lk.salyk.kg:30040 [10:00:28]ConnectInit lk.salyk.kg [10:00:28]written 0, free lines is 4095 [10:00:28]Connected sock=10 [10:00:28]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 8C 01 00 00 2F 6D 84 01 12 4E 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 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 44 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 44 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3B 50 92 66 0E 04 04 00 18 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 4E 07 00 00 35 04 06 00 D2 83 9D C0 0C 50 4F A1 36 48 97 34 C3 01 [10:00:28]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 8F 47 00 2F 6A 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 4E 07 00 00 F4 03 04 00 71 FB 91 66 B6 04 01 00 00 AF 50 96 23 C3 25 39 76 [10:00:28]CommunicateWithHost err = 0 [10:00:28]CheckOFDResponse [10:00:28]1017 (14) - 77093643461234 [10:00:28]1041 (16) - 0000000002098592 [10:00:28]1040 (4) - 1870 [10:00:28]1012 (4) - 13.07.2024 03:58 [10:00:28]1206 (1) - 0 [10:00:28]OFD Sender: Remove packet 1870 [10:00:28]ProducePacketName [10:00:28]name=ofd_packets/00001870 [10:00:28]NVStorageDeleteData [10:00:28]Write to MH i2c: 01 00 00 F3 03 F6 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 96 0C 9F [10:00:28]RasterBufferAndPrint [10:00:28]line [10:00:28]line [10:00:28]line [10:00:28]line [10:00:28]line [10:00:28]written 0, free lines is 3229 [10:00:28]MH_Cut [10:00:28]Write to MH i2c: D1 01 00 FA 03 01 CF [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: D1 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: D1 01 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: D1 01 00 FA 03 00 CE [10:00:29]Write to MH i2c: 01 00 00 FB 03 FE [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]OFD Sender: No OFD packet to send [10:00:29]*** Cut start [10:00:29]*** Partial cut [10:00:29]*** CUTSNS_PIN = 1 [10:00:29]*** CUTSNS_PIN = 0 [10:00:30]*** Brake cut motor [10:00:30]Read from MH i2c: 01 [10:00:30]MH_I2C_Read... [10:00:30]*** Stop cut motor [10:00:30]*** Cut end [10:00:30]Read from MH i2c: 01 07 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FF 0F 13 [10:00:30]process_action close_receipt done [10:00:30]requested_data is exist [10:00:30]produce_requested_data [10:00:30]requested_item fm.sn is exist - process it [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 11 00 00 [10:00:30]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CF [10:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:00:30]wFMCommunicate OK [10:00:30]requested_item fd.num is exist - process it [10:00:30]SAM_PROTO_GetFieldsCounters [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 13 00 00 [10:00:30]Write to MH i2c: E2 08 00 FD 03 80 13 00 00 00 00 00 00 7C [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 62 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 62 00 FD 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 4E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [10:00:30]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 4E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_GetFieldsCounters done [10:00:30]requested_item shift.num is exist - process it [10:00:30]requested_item shift.opened is exist - process it [10:00:30]req_shift_opened [10:00:30]FM_GetShiftState [10:00:30]SAM_PROTO_GetShiftState [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 13 01 00 [10:00:30]Write to MH i2c: E2 08 00 FE 03 80 13 01 00 00 00 00 00 7E [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0E 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0E 00 FE 03 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 09 [10:00:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_GetShiftState done [10:00:30]FM_GetShiftState done [10:00:30]req_shift_opened done [10:00:30]requested_item shift.open_date is exist - process it [10:00:30]req_shift_open_date [10:00:30]req_shift_open_date done [10:00:30]produce_requested_data done [10:00:30]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1870,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:00:30]process_action_free close_receipt [10:00:30]json_value_free [10:00:30]json_value_free done [10:00:30]process_json_proto returns [10:00:30]Send response to host [10:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1870,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:00:30]free response buf [10:00:30]execute_script done [10:00:30]execute_script returns [10:00:30]free content buf [10:00:30]Sock 8.Close socket [10:00:30]Sock 8.Thread stoped [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:14]accept exits with 9 [10:01:14]New connection [10:01:14]New thread 3066834276 created [10:01:14]Thread 3066977636 joined [10:01:14]Waiting for new connection... [10:01:14] Sock 9.Parse request [10:01:14]Sock 9.Check first char [10:01:14]Sock 9.First char is OK [10:01:14]request: POST /json_proto HTTP/1.0 [10:01:14]Method: POST [10:01:14]URL: /json_proto [10:01:14]Method is POST - this is cgi request [10:01:14]url: /json_proto [10:01:14]query_string will be loaded in cgi processing [10:01:14]execute_cgi json_proto POST (null) [10:01:14]execute_cgi path=json_proto method=POST [10:01:14]POST find Content-Length [10:01:14]Host: 172.17.35.133:8080 [10:01:14]Content-Length: 842 [10:01:14]Content-Type: application/json [10:01:14] [10:01:14]POST finish read [10:01:14]Found Content-Length = 842 [10:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618981", "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" : 10.000, "sum" : 663.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" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:14]execute_script... [10:01:14]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)1618981", "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" : 10.000, "sum" : 663.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" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:14]POST & json_proto [10:01:14]process_json_proto [10:01:14]json parsed OK: [10:01:14]protocol is kg_v1.0 [10:01:14]action value=close_receipt [10:01:14]process_action close_receipt [10:01:14]cmd_close_receipt [10:01:14]MH_GetDate [10:01:14]Write to MH i2c: F0 00 00 FF 03 F1 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 FF 03 00 6B 50 92 66 1B 28 2A 66 80 [10:01:14]GetLastDocTimeStamp 1720864827 [10:01:14]current date 1720864875 [10:01:14]FM_GetShiftState [10:01:14]SAM_PROTO_GetShiftState [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 13 01 00 [10:01:14]Write to MH i2c: E2 08 00 00 04 80 13 01 00 00 00 00 00 81 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 00 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0C [10:01:14]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_GetShiftState done [10:01:14]FM_GetShiftState done [10:01:14]opened in 1720829379 [10:01:14]opened+sec_in_day 1720915779 [10:01:14]quantity*price = 66300 [10:01:14]sum+1 = 66301 [10:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 40 13.07.2024 10:01 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1871 ФПД: 10814903286298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100115&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1871&fm=10814903286298&tin=02508201610067®Number=0000000000177495&sum=66300 [10:01:15]StoreToDocumentArchive [10:01:15]shift 24 fd 1871 [10:01:15]save to /storage/0024/doc_00001871 [10:01:15]save last doc name /storage/0024/doc_00001871 to /storage/kkm_last_doc_name [10:01:15]save OK [10:01:15]Clear old archive folders... [10:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:15]tlvbuf is 00FEA920 [10:01:15]SAM_PROTO_ClearQueue [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 09 00 00 [10:01:15]Write to MH i2c: E2 08 00 0D 04 80 09 00 00 00 00 00 00 83 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_ClearQueue done [10:01:15]KKMCreateOFDPacket [10:01:15]OFDProtocolAddRootSTLVToBuf [10:01:15]FM_MakeSignedData [10:01:15]FM_MakeSignedData [10:01:15]SAM_PROTO_SignData [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 01 02 [10:01:15]Write to MH i2c: E2 08 00 0E 04 80 0D 01 02 00 00 00 00 8B [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=255 [10:01:15]MH_SAM_APDU [10:01:15]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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6B 50 92 66 0E 04 04 00 18 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 4F 07 00 00 35 04 06 00 09 [10:01:15]Write to MH i2c: E2 02 01 0F 04 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6B 50 92 66 0E 04 04 00 18 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 4F 07 00 00 35 04 06 00 09 00 00 0E [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=10 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 02 02 05 D6 0A 77 FA 1A [10:01:15]Write to MH i2c: E2 0D 00 10 04 80 0D 02 02 05 00 D6 0A 77 FA 1A 00 00 03 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 0D 03 02 [10:01:16]Write to MH i2c: E2 08 00 11 04 80 0D 03 02 00 00 00 00 90 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0B 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0B 00 11 04 00 3A D3 68 FC 75 DA 9E D4 90 00 C3 [10:01:16]RAPDU: 3A D3 68 FC 75 DA 9E D4 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_SignData done [10:01:16]FM_MakeSignedData done [10:01:16]CreateOFDProtocolMessage [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 11 00 00 [10:01:16]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E6 [10:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:01:16]wFMCommunicate OK [10:01:16]CreateOFDProtocolMessage done [10:01:16]OFDSenderStorePacket 1871 [10:01:16]StoreOFDPacket docnum=1871 [10:01: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 0F 01 00 00 C6 8F 07 01 4E 84 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6B 50 92 66 0E 04 04 00 18 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 4F 07 00 00 35 04 06 00 09 D6 0A 77 FA 1A 3A D3 68 FC 75 DA 9E D4 [10:01:16]CheckFolder [10:01:16]dirname=/storage/ofd_packets [10:01:16]CheckFolder done [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00001871 [10:01:16]NVStorageSaveData ofd_packets/00001871 [10:01:16]File name is /storage/ofd_packets/00001871 [10:01:16]Write 301 bytes [10:01:16]NVStorageSaveData done [10:01:16]OFDSenderStorePacket done [10:01:16]KKMCreateOFDPacket done [10:01:16]NVStorageSaveData kkm_last_timestamp [10:01:16]File name is /storage/kkm_last_timestamp [10:01:16]Write 4 bytes [10:01:16]NVStorageSaveData done [10:01:16]ExternCall_PrintAddStr [10:01:16]wPrintStart [10:01:16]Write to MH i2c: 01 00 00 13 04 17 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 FF 0F 2C [10:01:16]RasterBufferAndPrint [10:01:16]line Счет N : (1)1618981 [10:01:16]line ИНН: 02508201610067 [10:01:16]line Контрольно-Кассовый Чек [10:01:16]line ПРОДАЖА [10:01:16]line ТРК (МРК, ГНК) : 33 [10:01:16]line Товар: 2710124130 [10:01:16]line Аи-92-К-5 [10:01:16]line 10.000 * 66.30 [10:01:16]line = 663.00 [10:01:16]line НДС 12% НСП 1% [10:01:16]line > о реализуемом товаре [10:01:16]line ИТОГО: 663.00 [10:01:16]line НСП 1% : 5.87 [10:01:16]line НДС 12% : 70.41 [10:01:16]line Наличными: 0.00 [10:01:16]line Безнал.: 663.00 [10:01:16]line Место: АЗС № 76 "Партнер Нефть" [10:01:16]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:01:16]line СНО: Общий режим [10:01:16]line Чек 40 13.07.2024 10:01 [10:01:16]line Смена: 24 ФФД: 1.0 [10:01:16]line ЗНМ: 0300000124 [10:01:16]line РНМ: 0000000000177495 [10:01:16]line Версия ККМ: 001 [10:01:16]line Платежная система: АКБ Кыргызстан [10:01:16]line ФМ: 0000000002098592 [10:01:16]line ФД: 1871 [10:01:16]line ФПД: 10814903286298 [10:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100115&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1871&fm=10814903286298&tin=02508201610067®Number=0000000000177495&sum=66300 [10:01:16]OFD Sender: Processing packet 1871 [packets to send 1, broken 0] [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00001871 [10:01:16]OFD Sender: To server: pG, [10:01:16]CommunicateWithHost lk.salyk.kg:30040 [10:01:16]ConnectInit lk.salyk.kg [10:01:16]written 0, free lines is 4095 [10:01:16]Connected sock=10 [10:01:16]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 C6 8F 07 01 4E 84 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6B 50 92 66 0E 04 04 00 18 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 4F 07 00 00 35 04 06 00 09 D6 0A 77 FA 1A 3A D3 68 FC 75 DA 9E D4 [10: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 2D 7F 47 00 15 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 4F 07 00 00 F4 03 04 00 A1 FB 91 66 B6 04 01 00 00 E8 A5 A5 A3 05 05 AC F3 [10:01:16]CommunicateWithHost err = 0 [10:01:16]CheckOFDResponse [10:01:16]1017 (14) - 77093643461234 [10:01:16]1041 (16) - 0000000002098592 [10:01:16]1040 (4) - 1871 [10:01:16]1012 (4) - 13.07.2024 03:59 [10:01:16]1206 (1) - 0 [10:01:16]OFD Sender: Remove packet 1871 [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00001871 [10:01:16]NVStorageDeleteData [10:01:16]Write to MH i2c: 01 00 00 3D 04 41 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 04 0D 59 [10:01:16]RasterBufferAndPrint [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]written 0, free lines is 3338 [10:01:16]MH_Cut [10:01:16]Write to MH i2c: D1 01 00 44 04 01 1A [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 44 04 00 19 [10:01:16]Write to MH i2c: 01 00 00 45 04 49 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:17]OFD Sender: No OFD packet to send [10:01:17]*** Cut start [10:01:17]*** Partial cut [10:01:17]*** CUTSNS_PIN = 1 [10:01:17]*** CUTSNS_PIN = 0 [10:01:17]*** Brake cut motor [10:01:18]Read from MH i2c: 01 [10:01:18]MH_I2C_Read... [10:01:18]*** Stop cut motor [10:01:18]*** Cut end [10:01:18]Read from MH i2c: 01 07 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [10:01:18]process_action close_receipt done [10:01:18]requested_data is exist [10:01:18]produce_requested_data [10:01:18]requested_item fm.sn is exist - process it [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 11 00 00 [10:01:18]Write to MH i2c: E2 08 00 46 04 80 11 00 00 00 00 00 00 C4 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 46 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1A [10:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:01:18]wFMCommunicate OK [10:01:18]requested_item fd.num is exist - process it [10:01:18]SAM_PROTO_GetFieldsCounters [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 00 00 [10:01:18]Write to MH i2c: E2 08 00 47 04 80 13 00 00 00 00 00 00 C7 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 47 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 4F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [10: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 4F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetFieldsCounters done [10:01:18]requested_item shift.num is exist - process it [10:01:18]requested_item shift.opened is exist - process it [10:01:18]req_shift_opened [10:01:18]FM_GetShiftState [10:01:18]SAM_PROTO_GetShiftState [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 01 00 [10:01:18]Write to MH i2c: E2 08 00 48 04 80 13 01 00 00 00 00 00 C9 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 48 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 54 [10:01:18]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetShiftState done [10:01:18]FM_GetShiftState done [10:01:18]req_shift_opened done [10:01:18]requested_item shift.open_date is exist - process it [10:01:18]req_shift_open_date [10:01:18]req_shift_open_date done [10:01:18]produce_requested_data done [10:01:18]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1871,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:01:18]process_action_free close_receipt [10:01:18]json_value_free [10:01:18]json_value_free done [10:01:18]process_json_proto returns [10:01:18]Send response to host [10:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1871,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:01:18]free response buf [10:01:18]execute_script done [10:01:18]execute_script returns [10:01:18]free content buf [10:01:18]Sock 9.Close socket [10:01:18]Sock 9.Thread stoped [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:50]accept exits with 8 [10:02:50]New connection [10:02:50]New thread 3066977636 created [10:02:50]Thread 3066834276 joined [10:02:50]Waiting for new connection... [10:02:50] Sock 8.Parse request [10:02:50]Sock 8.Check first char [10:02:50]Sock 8.First char is OK [10:02:50]request: POST /json_proto HTTP/1.0 [10:02:50]Method: POST [10:02:50]URL: /json_proto [10:02:50]Method is POST - this is cgi request [10:02:50]url: /json_proto [10:02:50]query_string will be loaded in cgi processing [10:02:50]execute_cgi json_proto POST (null) [10:02:50]execute_cgi path=json_proto method=POST [10:02:50]POST find Content-Length [10:02:50]Host: 172.17.35.133:8080 [10:02:50]Content-Length: 986 [10:02:50]Content-Type: application/json [10:02:50] [10:02:50]POST finish read [10:02:50]Found Content-Length = 986 [10:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 69.840, "sum" : 5000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.84 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:50]execute_script... [10:02: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 : (1)1618979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 69.840, "sum" : 5000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.84 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:50]POST & json_proto [10:02:50]process_json_proto [10:02:50]json parsed OK: [10:02:50]protocol is kg_v1.0 [10:02:50]action value=close_receipt [10:02:50]process_action close_receipt [10:02:50]cmd_close_receipt [10:02:50]MH_GetDate [10:02:50]Write to MH i2c: F0 00 00 49 04 3C [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 09 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 09 00 49 04 00 CB 50 92 66 1B 28 2A 66 2B [10:02:50]GetLastDocTimeStamp 1720864875 [10:02:50]current date 1720864971 [10:02:50]FM_GetShiftState [10:02:50]SAM_PROTO_GetShiftState [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 13 01 00 [10:02:50]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 56 [10:02:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_GetShiftState done [10:02:50]FM_GetShiftState done [10:02:50]opened in 1720829379 [10:02:50]opened+sec_in_day 1720915779 [10:02:50]quantity*price = 500054 [10:02:50]sum+1 = 500055 [10:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.03 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 41 13.07.2024 10:02 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Дисконтная программа ДТ номер 76 сэкономлено 69.84 сом ФМ: 0000000002098592 ФД: 1872 ФПД: 170673604708455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100251&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1872&fm=170673604708455&tin=02508201610067®Number=0000000000177495&sum=500000 [10:02:51]StoreToDocumentArchive [10:02:51]shift 24 fd 1872 [10:02:51]save to /storage/0024/doc_00001872 [10:02:51]save last doc name /storage/0024/doc_00001872 to /storage/kkm_last_doc_name [10:02:51]save OK [10:02:51]Clear old archive folders... [10:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:02:51]tlvbuf is 00FB3E70 [10:02:51]SAM_PROTO_ClearQueue [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 09 00 00 [10:02:51]Write to MH i2c: E2 08 00 57 04 80 09 00 00 00 00 00 00 CD [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 57 04 00 90 00 CF [10:02:51]RAPDU: 90 00 [10:02:51]wFMCommunicate OK [10:02:51]SAM_PROTO_ClearQueue done [10:02:51]KKMCreateOFDPacket [10:02:51]OFDProtocolAddRootSTLVToBuf [10:02:51]FM_MakeSignedData [10:02:51]FM_MakeSignedData [10:02:51]SAM_PROTO_SignData [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 0D 01 02 [10:02:51]Write to MH i2c: E2 08 00 58 04 80 0D 01 02 00 00 00 00 D5 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [10:02:51]RAPDU: 90 00 [10:02:51]wFMCommunicate OK [10:02:51]wFMCommunicate request_size=255 [10:02:51]MH_SAM_APDU [10:02:51]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 D0 10 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 56 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB 50 92 66 0E 04 04 00 18 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 50 07 00 00 35 04 06 00 [10:02:51]Write to MH i2c: E2 02 01 59 04 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 D0 10 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 56 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB 50 92 66 0E 04 04 00 18 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 50 07 00 00 35 04 06 00 00 00 E9 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [10:02:52]RAPDU: 90 00 [10:02:52]wFMCommunicate OK [10:02:52]wFMCommunicate request_size=11 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 0D 02 02 06 9B 3A 0B 94 C8 67 [10:02:52]Write to MH i2c: E2 0E 00 5A 04 80 0D 02 02 06 00 9B 3A 0B 94 C8 67 00 00 87 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [10:02:52]RAPDU: 90 00 [10:02:52]wFMCommunicate OK [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 0D 03 02 [10:02:52]Write to MH i2c: E2 08 00 5B 04 80 0D 03 02 00 00 00 00 DA [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 0B 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 0B 00 5B 04 00 62 BC 74 73 70 DD E0 EE 90 00 FB [10:02:52]RAPDU: 62 BC 74 73 70 DD E0 EE 90 00 [10:02:52]wFMCommunicate OK [10:02:52]SAM_PROTO_SignData done [10:02:52]FM_MakeSignedData done [10:02:52]CreateOFDProtocolMessage [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 11 00 00 [10:02:52]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 17 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 30 [10:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:02:52]wFMCommunicate OK [10:02:52]CreateOFDProtocolMessage done [10:02:52]OFDSenderStorePacket 1872 [10:02:52]StoreOFDPacket docnum=1872 [10:02: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 10 01 00 00 14 E1 08 01 68 C7 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 D0 10 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 56 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB 50 92 66 0E 04 04 00 18 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 50 07 00 00 35 04 06 00 9B 3A 0B 94 C8 67 62 BC 74 73 70 DD E0 EE [10:02:52]CheckFolder [10:02:52]dirname=/storage/ofd_packets [10:02:52]CheckFolder done [10:02:52]ProducePacketName [10:02:52]name=ofd_packets/00001872 [10:02:52]NVStorageSaveData ofd_packets/00001872 [10:02:52]File name is /storage/ofd_packets/00001872 [10:02:52]Write 302 bytes [10:02:52]NVStorageSaveData done [10:02:52]OFDSenderStorePacket done [10:02:52]KKMCreateOFDPacket done [10:02:52]NVStorageSaveData kkm_last_timestamp [10:02:52]File name is /storage/kkm_last_timestamp [10:02:52]Write 4 bytes [10:02:52]NVStorageSaveData done [10:02:52]ExternCall_PrintAddStr [10:02:52]wPrintStart [10:02:52]Write to MH i2c: 01 00 00 5D 04 61 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 FF 0F 76 [10:02:52]RasterBufferAndPrint [10:02:52]line Счет N : (1)1618979 [10:02:52]line ИНН: 02508201610067 [10:02:52]line Контрольно-Кассовый Чек [10:02:52]line ПРОДАЖА [10:02:52]line ТРК (МРК, ГНК) : 61 [10:02:52]line Товар: 2710194210 [10:02:52]line ДТ(л)-К-4 [10:02:52]line 69.840 * 71.60 [10:02:52]line = 5000.54 [10:02:52]line НДС 12% НСП 1% [10:02:52]line > о реализуемом товаре [10:02:52]line ОКРУГЛЕНИЕ: -0.54 [10:02:52]line ИТОГО: 5000.00 [10:02:52]line Внесено: 5000.00 [10:02:52]line СДАЧА: 0.00 [10:02:52]line НСП 1% : 44.25 [10:02:52]line НДС 12% : 531.03 [10:02:52]line Наличными: 5000.00 [10:02:52]line Безнал.: 0.00 [10:02:52]line Место: АЗС № 76 "Партнер Нефть" [10:02:52]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:02:52]line СНО: Общий режим [10:02:52]line Чек 41 13.07.2024 10:02 [10:02:52]line Смена: 24 ФФД: 1.0 [10:02:52]line ЗНМ: 0300000124 [10:02:52]line РНМ: 0000000000177495 [10:02:52]line Версия ККМ: 001 [10:02:52]line [10:02:52]line Дисконтная программа [10:02:52]line ДТ [10:02:52]line номер 76 [10:02:52]line сэкономлено 69.84 сом [10:02:52]line ФМ: 0000000002098592 [10:02:52]line ФД: 1872 [10:02:52]line ФПД: 170673604708455 [10:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100251&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1872&fm=170673604708455&tin=02508201610067®Number=0000000000177495&sum=500000 [10:02:52]OFD Sender: Processing packet 1872 [packets to send 1, broken 0] [10:02:52]ProducePacketName [10:02:52]name=ofd_packets/00001872 [10:02:52]OFD Sender: To server: pG, [10:02:52]CommunicateWithHost lk.salyk.kg:30040 [10:02:52]ConnectInit lk.salyk.kg [10:02:52]written 0, free lines is 4095 [10:02:52]Connected sock=10 [10:02: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 10 01 00 00 14 E1 08 01 68 C7 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 D0 10 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 56 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB 50 92 66 0E 04 04 00 18 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 50 07 00 00 35 04 06 00 9B 3A 0B 94 C8 67 62 BC 74 73 70 DD E0 EE [10:02:52]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 7E 47 00 84 FC 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 50 07 00 00 F4 03 04 00 02 FC 91 66 B6 04 01 00 00 D7 48 07 45 3D 88 64 78 [10:02:52]CommunicateWithHost err = 0 [10:02:52]CheckOFDResponse [10:02:52]1017 (14) - 77093643461234 [10:02:52]1041 (16) - 0000000002098592 [10:02:52]1040 (4) - 1872 [10:02:52]1012 (4) - 13.07.2024 04:01 [10:02:52]1206 (1) - 0 [10:02:52]OFD Sender: Remove packet 1872 [10:02:52]ProducePacketName [10:02:52]name=ofd_packets/00001872 [10:02:52]NVStorageDeleteData [10:02:53]Write to MH i2c: 01 00 00 8D 04 91 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 07 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 98 0C 3C [10:02:53]RasterBufferAndPrint [10:02:53]line [10:02:53]line [10:02:53]line [10:02:53]line [10:02:53]line [10:02:53]written 0, free lines is 3230 [10:02:53]MH_Cut [10:02:53]Write to MH i2c: D1 01 00 94 04 01 6A [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: D1 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: D1 01 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: D1 01 00 94 04 00 69 [10:02:53]Write to MH i2c: 01 00 00 95 04 99 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]OFD Sender: No OFD packet to send [10:02:53]*** Cut start [10:02:53]*** Partial cut [10:02:53]*** CUTSNS_PIN = 1 [10:02:53]*** CUTSNS_PIN = 0 [10:02:54]*** Brake cut motor [10:02:54]Read from MH i2c: 01 [10:02:54]MH_I2C_Read... [10:02:54]*** Stop cut motor [10:02:54]*** Cut end [10:02:54]Read from MH i2c: 01 07 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [10:02:54]process_action close_receipt done [10:02:54]requested_data is exist [10:02:54]produce_requested_data [10:02:54]requested_item fm.sn is exist - process it [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 11 00 00 [10:02:54]Write to MH i2c: E2 08 00 96 04 80 11 00 00 00 00 00 00 14 [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 17 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 17 00 96 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 6A [10:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:02:54]wFMCommunicate OK [10:02:54]requested_item fd.num is exist - process it [10:02:54]SAM_PROTO_GetFieldsCounters [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 13 00 00 [10:02:54]Write to MH i2c: E2 08 00 97 04 80 13 00 00 00 00 00 00 17 [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 62 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 62 00 97 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 50 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:02:54]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 50 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:54]wFMCommunicate OK [10:02:54]SAM_PROTO_GetFieldsCounters done [10:02:54]requested_item shift.num is exist - process it [10:02:54]requested_item shift.opened is exist - process it [10:02:54]req_shift_opened [10:02:54]FM_GetShiftState [10:02:54]SAM_PROTO_GetShiftState [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 13 01 00 [10:02:54]Write to MH i2c: E2 08 00 98 04 80 13 01 00 00 00 00 00 19 [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 0E 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 0E 00 98 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A4 [10:02:54]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:02:54]wFMCommunicate OK [10:02:54]SAM_PROTO_GetShiftState done [10:02:54]FM_GetShiftState done [10:02:54]req_shift_opened done [10:02:54]requested_item shift.open_date is exist - process it [10:02:54]req_shift_open_date [10:02:54]req_shift_open_date done [10:02:54]produce_requested_data done [10:02:54]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1872,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:02:54]process_action_free close_receipt [10:02:54]json_value_free [10:02:54]json_value_free done [10:02:54]process_json_proto returns [10:02:54]Send response to host [10:02:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1872,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:02:54]free response buf [10:02:54]execute_script done [10:02:54]execute_script returns [10:02:54]free content buf [10:02:54]Sock 8.Close socket [10:02:54]Sock 8.Thread stoped [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:23]accept exits with 9 [10:03:23]New connection [10:03:23]New thread 3066834276 created [10:03:23]Thread 3066977636 joined [10:03:23]Waiting for new connection... [10:03:23] Sock 9.Parse request [10:03:23]Sock 9.Check first char [10:03:23]Sock 9.First char is OK [10:03:23]request: POST /json_proto HTTP/1.0 [10:03:23]Method: POST [10:03:23]URL: /json_proto [10:03:23]Method is POST - this is cgi request [10:03:23]url: /json_proto [10:03:23]query_string will be loaded in cgi processing [10:03:23]execute_cgi json_proto POST (null) [10:03:23]execute_cgi path=json_proto method=POST [10:03:23]POST find Content-Length [10:03:23]Host: 172.17.35.133:8080 [10:03:23]Content-Length: 683 [10:03:23]Content-Type: application/json [10:03:23] [10:03:23]POST finish read [10:03:23]Found Content-Length = 683 [10:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618982", "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" : 19.610, "sum" : 1300.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:23]execute_script... [10:03:23]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)1618982", "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" : 19.610, "sum" : 1300.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:23]POST & json_proto [10:03:23]process_json_proto [10:03:23]json parsed OK: [10:03:23]protocol is kg_v1.0 [10:03:23]action value=close_receipt [10:03:23]process_action close_receipt [10:03:23]cmd_close_receipt [10:03:23]MH_GetDate [10:03:23]Write to MH i2c: F0 00 00 99 04 8C [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: F0 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: F0 09 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: F0 09 00 99 04 00 EC 50 92 66 1B 28 2A 66 9C [10:03:23]GetLastDocTimeStamp 1720864971 [10:03:23]current date 1720865004 [10:03:23]FM_GetShiftState [10:03:23]SAM_PROTO_GetShiftState [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 13 01 00 [10:03:23]Write to MH i2c: E2 08 00 9A 04 80 13 01 00 00 00 00 00 1B [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 0E 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 0E 00 9A 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A6 [10:03:23]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:03:23]wFMCommunicate OK [10:03:23]SAM_PROTO_GetShiftState done [10:03:23]FM_GetShiftState done [10:03:23]opened in 1720829379 [10:03:23]opened+sec_in_day 1720915779 [10:03:23]quantity*price = 130014 [10:03:23]sum+1 = 130015 [10:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 42 13.07.2024 10:03 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1873 ФПД: 68202926767631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100324&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1873&fm=68202926767631&tin=02508201610067®Number=0000000000177495&sum=130000 [10:03:24]StoreToDocumentArchive [10:03:24]shift 24 fd 1873 [10:03:24]save to /storage/0024/doc_00001873 [10:03:24]save last doc name /storage/0024/doc_00001873 to /storage/kkm_last_doc_name [10:03:24]save OK [10:03:24]Clear old archive folders... [10:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:24]tlvbuf is 00FE1FE0 [10:03:24]SAM_PROTO_ClearQueue [10:03:24]wFMCommunicate request_size=4 [10:03:24]MH_SAM_APDU [10:03:24]CAPDU: 80 09 00 00 [10:03:24]Write to MH i2c: E2 08 00 A7 04 80 09 00 00 00 00 00 00 1D [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:24]Read from MH i2c: E2 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 03 00 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 03 00 A7 04 00 90 00 1F [10:03:24]RAPDU: 90 00 [10:03:24]wFMCommunicate OK [10:03:24]SAM_PROTO_ClearQueue done [10:03:24]KKMCreateOFDPacket [10:03:24]OFDProtocolAddRootSTLVToBuf [10:03:24]FM_MakeSignedData [10:03:24]FM_MakeSignedData [10:03:24]SAM_PROTO_SignData [10:03:24]wFMCommunicate request_size=4 [10:03:24]MH_SAM_APDU [10:03:24]CAPDU: 80 0D 01 02 [10:03:24]Write to MH i2c: E2 08 00 A8 04 80 0D 01 02 00 00 00 00 25 [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:24]Read from MH i2c: E2 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 03 00 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 03 00 A8 04 00 90 00 20 [10:03:24]RAPDU: 90 00 [10:03:24]wFMCommunicate OK [10:03:24]wFMCommunicate request_size=255 [10:03:24]MH_SAM_APDU [10:03:24]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 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 50 92 66 0E 04 04 00 18 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 51 07 00 00 35 04 06 00 3E [10:03:24]Write to MH i2c: E2 02 01 A9 04 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 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 50 92 66 0E 04 04 00 18 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 51 07 00 00 35 04 06 00 3E 00 00 44 [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 03 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 03 00 A9 04 00 90 00 21 [10:03:25]RAPDU: 90 00 [10:03:25]wFMCommunicate OK [10:03:25]wFMCommunicate request_size=10 [10:03:25]MH_SAM_APDU [10:03:25]CAPDU: 80 0D 02 02 05 07 BB 38 FE 0F [10:03:25]Write to MH i2c: E2 0D 00 AA 04 80 0D 02 02 05 00 07 BB 38 FE 0F 00 00 39 [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 03 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 03 00 AA 04 00 90 00 22 [10:03:25]RAPDU: 90 00 [10:03:25]wFMCommunicate OK [10:03:25]wFMCommunicate request_size=4 [10:03:25]MH_SAM_APDU [10:03:25]CAPDU: 80 0D 03 02 [10:03:25]Write to MH i2c: E2 08 00 AB 04 80 0D 03 02 00 00 00 00 2A [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 0B 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 0B 00 AB 04 00 78 17 96 5B 7E 6C 39 2A 90 00 F8 [10:03:25]RAPDU: 78 17 96 5B 7E 6C 39 2A 90 00 [10:03:25]wFMCommunicate OK [10:03:25]SAM_PROTO_SignData done [10:03:25]FM_MakeSignedData done [10:03:25]CreateOFDProtocolMessage [10:03:25]wFMCommunicate request_size=4 [10:03:25]MH_SAM_APDU [10:03:25]CAPDU: 80 11 00 00 [10:03:25]Write to MH i2c: E2 08 00 AC 04 80 11 00 00 00 00 00 00 2A [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 17 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 17 00 AC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 80 [10:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:03:25]wFMCommunicate OK [10:03:25]CreateOFDProtocolMessage done [10:03:25]OFDSenderStorePacket 1873 [10:03:25]StoreOFDPacket docnum=1873 [10:03: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 D4 B6 07 01 39 0C 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 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 50 92 66 0E 04 04 00 18 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 51 07 00 00 35 04 06 00 3E 07 BB 38 FE 0F 78 17 96 5B 7E 6C 39 2A [10:03:25]CheckFolder [10:03:25]dirname=/storage/ofd_packets [10:03:25]CheckFolder done [10:03:25]ProducePacketName [10:03:25]name=ofd_packets/00001873 [10:03:25]NVStorageSaveData ofd_packets/00001873 [10:03:25]File name is /storage/ofd_packets/00001873 [10:03:25]Write 301 bytes [10:03:25]NVStorageSaveData done [10:03:25]OFDSenderStorePacket done [10:03:25]KKMCreateOFDPacket done [10:03:25]NVStorageSaveData kkm_last_timestamp [10:03:25]File name is /storage/kkm_last_timestamp [10:03:25]Write 4 bytes [10:03:25]NVStorageSaveData done [10:03:25]ExternCall_PrintAddStr [10:03:25]wPrintStart [10:03:25]Write to MH i2c: 01 00 00 AD 04 B1 [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: 01 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: 01 07 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [10:03:25]RasterBufferAndPrint [10:03:25]line Счет N : (1)1618982 [10:03:25]line ИНН: 02508201610067 [10:03:25]line Контрольно-Кассовый Чек [10:03:25]line ПРОДАЖА [10:03:25]line ТРК (МРК, ГНК) : 43 [10:03:25]line Товар: 2710124130 [10:03:25]line Аи-92-К-5 [10:03:25]line 19.610 * 66.30 [10:03:25]line = 1300.14 [10:03:25]line НДС 12% НСП 1% [10:03:25]line > о реализуемом товаре [10:03:25]line ОКРУГЛЕНИЕ: -0.14 [10:03:25]line ИТОГО: 1300.00 [10:03:25]line Внесено: 1300.00 [10:03:25]line СДАЧА: 0.00 [10:03:25]line НСП 1% : 11.51 [10:03:25]line НДС 12% : 138.07 [10:03:25]line Наличными: 1300.00 [10:03:25]line Безнал.: 0.00 [10:03:25]line Место: АЗС № 76 "Партнер Нефть" [10:03:25]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:03:25]line СНО: Общий режим [10:03:25]line Чек 42 13.07.2024 10:03 [10:03:25]line Смена: 24 ФФД: 1.0 [10:03:25]line ЗНМ: 0300000124 [10:03:25]line РНМ: 0000000000177495 [10:03:25]line Версия ККМ: 001 [10:03:25]line ФМ: 0000000002098592 [10:03:25]line ФД: 1873 [10:03:25]line ФПД: 68202926767631 [10:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100324&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1873&fm=68202926767631&tin=02508201610067®Number=0000000000177495&sum=130000 [10:03:25]OFD Sender: Processing packet 1873 [packets to send 1, broken 0] [10:03:25]ProducePacketName [10:03:25]name=ofd_packets/00001873 [10:03:25]OFD Sender: To server: pG, [10:03:25]CommunicateWithHost lk.salyk.kg:30040 [10:03:25]ConnectInit lk.salyk.kg [10:03:25]written 0, free lines is 4095 [10:03:25]Connected sock=10 [10:03: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 0F 01 00 00 D4 B6 07 01 39 0C 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 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 50 92 66 0E 04 04 00 18 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 51 07 00 00 35 04 06 00 3E 07 BB 38 FE 0F 78 17 96 5B 7E 6C 39 2A [10:03:25]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 5C 47 00 EC 2E 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 51 07 00 00 F4 03 04 00 23 FC 91 66 B6 04 01 00 00 E9 05 92 60 82 2A 95 58 [10:03:25]CommunicateWithHost err = 0 [10:03:25]CheckOFDResponse [10:03:25]1017 (14) - 77093643461234 [10:03:25]1041 (16) - 0000000002098592 [10:03:25]1040 (4) - 1873 [10:03:25]1012 (4) - 13.07.2024 04:01 [10:03:25]1206 (1) - 0 [10:03:25]OFD Sender: Remove packet 1873 [10:03:25]ProducePacketName [10:03:25]name=ofd_packets/00001873 [10:03:25]NVStorageDeleteData [10:03:26]Write to MH i2c: 01 00 00 D8 04 DC [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: 01 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: 01 07 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: 01 07 00 D8 04 00 00 00 00 00 E2 0C D1 [10:03:26]RasterBufferAndPrint [10:03:26]line [10:03:26]line [10:03:26]line [10:03:26]line [10:03:26]line [10:03:26]written 0, free lines is 3304 [10:03:26]MH_Cut [10:03:26]Write to MH i2c: D1 01 00 DF 04 01 B5 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: D1 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: D1 01 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: D1 01 00 DF 04 00 B4 [10:03:26]Write to MH i2c: 01 00 00 E0 04 E4 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]OFD Sender: No OFD packet to send [10:03:26]*** Cut start [10:03:26]*** Partial cut [10:03:26]*** CUTSNS_PIN = 1 [10:03:26]*** CUTSNS_PIN = 0 [10:03:27]*** Brake cut motor [10:03:27]Read from MH i2c: 01 [10:03:27]MH_I2C_Read... [10:03:27]*** Stop cut motor [10:03:27]*** Cut end [10:03:27]Read from MH i2c: 01 07 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [10:03:27]process_action close_receipt done [10:03:27]requested_data is exist [10:03:27]produce_requested_data [10:03:27]requested_item fm.sn is exist - process it [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 11 00 00 [10:03:27]Write to MH i2c: E2 08 00 E1 04 80 11 00 00 00 00 00 00 5F [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 17 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 17 00 E1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B5 [10:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:03:27]wFMCommunicate OK [10:03:27]requested_item fd.num is exist - process it [10:03:27]SAM_PROTO_GetFieldsCounters [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 13 00 00 [10:03:27]Write to MH i2c: E2 08 00 E2 04 80 13 00 00 00 00 00 00 62 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 62 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 62 00 E2 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 51 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:03: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 51 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:27]wFMCommunicate OK [10:03:27]SAM_PROTO_GetFieldsCounters done [10:03:27]requested_item shift.num is exist - process it [10:03:27]requested_item shift.opened is exist - process it [10:03:27]req_shift_opened [10:03:27]FM_GetShiftState [10:03:27]SAM_PROTO_GetShiftState [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 13 01 00 [10:03:27]Write to MH i2c: E2 08 00 E3 04 80 13 01 00 00 00 00 00 64 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 0E 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 0E 00 E3 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EF [10:03:27]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:03:27]wFMCommunicate OK [10:03:27]SAM_PROTO_GetShiftState done [10:03:27]FM_GetShiftState done [10:03:27]req_shift_opened done [10:03:27]requested_item shift.open_date is exist - process it [10:03:27]req_shift_open_date [10:03:27]req_shift_open_date done [10:03:27]produce_requested_data done [10:03:27]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1873,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:03:27]process_action_free close_receipt [10:03:27]json_value_free [10:03:27]json_value_free done [10:03:27]process_json_proto returns [10:03:27]Send response to host [10:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1873,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:03:27]free response buf [10:03:27]execute_script done [10:03:27]execute_script returns [10:03:27]free content buf [10:03:27]Sock 9.Close socket [10:03:27]Sock 9.Thread stoped [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:52]accept exits with 8 [10:06:52]New connection [10:06:52]New thread 3066977636 created [10:06:52]Thread 3066834276 joined [10:06:52]Waiting for new connection... [10:06:52] Sock 8.Parse request [10:06:52]Sock 8.Check first char [10:06:52]Sock 8.First char is OK [10:06:52]request: POST /json_proto HTTP/1.0 [10:06:52]Method: POST [10:06:52]URL: /json_proto [10:06:52]Method is POST - this is cgi request [10:06:52]url: /json_proto [10:06:52]query_string will be loaded in cgi processing [10:06:52]execute_cgi json_proto POST (null) [10:06:52]execute_cgi path=json_proto method=POST [10:06:52]POST find Content-Length [10:06:52]Host: 172.17.35.133:8080 [10:06:52]Content-Length: 688 [10:06:52]Content-Type: application/json [10:06:52] [10:06:52]POST finish read [10:06:52]Found Content-Length = 688 [10:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:52]execute_script... [10:06: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 : (1)1618983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:52]POST & json_proto [10:06:52]process_json_proto [10:06:52]json parsed OK: [10:06:52]protocol is kg_v1.0 [10:06:52]action value=close_receipt [10:06:52]process_action close_receipt [10:06:52]cmd_close_receipt [10:06:52]MH_GetDate [10:06:52]Write to MH i2c: F0 00 00 E4 04 D7 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: F0 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: F0 09 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: F0 09 00 E4 04 00 BD 51 92 66 1B 28 2A 66 B9 [10:06:52]GetLastDocTimeStamp 1720865004 [10:06:52]current date 1720865213 [10:06:52]FM_GetShiftState [10:06:52]SAM_PROTO_GetShiftState [10:06:52]wFMCommunicate request_size=4 [10:06:52]MH_SAM_APDU [10:06:52]CAPDU: 80 13 01 00 [10:06:52]Write to MH i2c: E2 08 00 E5 04 80 13 01 00 00 00 00 00 66 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:52]Read from MH i2c: E2 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 0E 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 0E 00 E5 04 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 F1 [10:06:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:06:52]wFMCommunicate OK [10:06:52]SAM_PROTO_GetShiftState done [10:06:52]FM_GetShiftState done [10:06:52]opened in 1720829379 [10:06:52]opened+sec_in_day 1720915779 [10:06:52]quantity*price = 250034 [10:06:52]sum+1 = 250035 [10:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 43 13.07.2024 10:06 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1874 ФПД: 281016754087400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100653&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1874&fm=281016754087400&tin=02508201610067®Number=0000000000177495&sum=250000 [10:06:53]StoreToDocumentArchive [10:06:53]shift 24 fd 1874 [10:06:53]save to /storage/0024/doc_00001874 [10:06:53]save last doc name /storage/0024/doc_00001874 to /storage/kkm_last_doc_name [10:06:53]save OK [10:06:53]Clear old archive folders... [10:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:06:53]tlvbuf is 010055C0 [10:06:53]SAM_PROTO_ClearQueue [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 09 00 00 [10:06:53]Write to MH i2c: E2 08 00 F2 04 80 09 00 00 00 00 00 00 68 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 F2 04 00 90 00 6A [10:06:53]RAPDU: 90 00 [10:06:53]wFMCommunicate OK [10:06:53]SAM_PROTO_ClearQueue done [10:06:53]KKMCreateOFDPacket [10:06:53]OFDProtocolAddRootSTLVToBuf [10:06:53]FM_MakeSignedData [10:06:53]FM_MakeSignedData [10:06:53]SAM_PROTO_SignData [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 0D 01 02 [10:06:53]Write to MH i2c: E2 08 00 F3 04 80 0D 01 02 00 00 00 00 70 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 F3 04 00 90 00 6B [10:06:53]RAPDU: 90 00 [10:06:53]wFMCommunicate OK [10:06:53]wFMCommunicate request_size=255 [10:06:53]MH_SAM_APDU [10:06:53]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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BD 51 92 66 0E 04 04 00 18 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 52 07 00 00 35 04 06 00 [10:06:53]Write to MH i2c: E2 02 01 F4 04 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BD 51 92 66 0E 04 04 00 18 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 52 07 00 00 35 04 06 00 00 00 FE [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [10:06:53]RAPDU: 90 00 [10:06:53]wFMCommunicate OK [10:06:53]wFMCommunicate request_size=11 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 0D 02 02 06 FF 95 4F CD A5 E8 [10:06:53]Write to MH i2c: E2 0E 00 F5 04 80 0D 02 02 06 00 FF 95 4F CD A5 E8 00 00 BC [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [10:06:53]RAPDU: 90 00 [10:06:53]wFMCommunicate OK [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 0D 03 02 [10:06:53]Write to MH i2c: E2 08 00 F6 04 80 0D 03 02 00 00 00 00 75 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 0B 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 0B 00 F6 04 00 3D A1 0C 6A 5B B0 3E 40 90 00 53 [10:06:53]RAPDU: 3D A1 0C 6A 5B B0 3E 40 90 00 [10:06:53]wFMCommunicate OK [10:06:53]SAM_PROTO_SignData done [10:06:53]FM_MakeSignedData done [10:06:53]CreateOFDProtocolMessage [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 11 00 00 [10:06:53]Write to MH i2c: E2 08 00 F7 04 80 11 00 00 00 00 00 00 75 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 17 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 17 00 F7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CB [10:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:06:53]wFMCommunicate OK [10:06:53]CreateOFDProtocolMessage done [10:06:53]OFDSenderStorePacket 1874 [10:06:53]StoreOFDPacket docnum=1874 [10:06: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 10 01 00 00 44 C3 08 01 C7 79 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BD 51 92 66 0E 04 04 00 18 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 52 07 00 00 35 04 06 00 FF 95 4F CD A5 E8 3D A1 0C 6A 5B B0 3E 40 [10:06:53]CheckFolder [10:06:53]dirname=/storage/ofd_packets [10:06:53]CheckFolder done [10:06:53]ProducePacketName [10:06:53]name=ofd_packets/00001874 [10:06:53]NVStorageSaveData ofd_packets/00001874 [10:06:53]File name is /storage/ofd_packets/00001874 [10:06:53]Write 302 bytes [10:06:53]NVStorageSaveData done [10:06:53]OFDSenderStorePacket done [10:06:53]KKMCreateOFDPacket done [10:06:53]NVStorageSaveData kkm_last_timestamp [10:06:53]File name is /storage/kkm_last_timestamp [10:06:53]Write 4 bytes [10:06:53]NVStorageSaveData done [10:06:53]ExternCall_PrintAddStr [10:06:53]wPrintStart [10:06:53]Write to MH i2c: 01 00 00 F8 04 FC [10:06:53]OFD Sender: Processing packet 1874 [packets to send 1, broken 0] [10:06:53]ProducePacketName [10:06:53]name=ofd_packets/00001874 [10:06:53]OFD Sender: To server: pG, [10:06:53]CommunicateWithHost lk.salyk.kg:30040 [10:06:53]ConnectInit lk.salyk.kg [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 07 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 FF 0F 11 [10:06:54]RasterBufferAndPrint [10:06:54]line Счет N : (1)1618983 [10:06:54]line ИНН: 02508201610067 [10:06:54]line Контрольно-Кассовый Чек [10:06:54]line ПРОДАЖА [10:06:54]line ТРК (МРК, ГНК) : 22 [10:06:54]line Товар: 2710194210 [10:06:54]line ДТ(л)-К-4 [10:06:54]line 34.440 * 72.60 [10:06:54]line = 2500.34 [10:06:54]line НДС 12% НСП 1% [10:06:54]line > о реализуемом товаре [10:06:54]line ОКРУГЛЕНИЕ: -0.34 [10:06:54]line ИТОГО: 2500.00 [10:06:54]line Внесено: 2500.00 [10:06:54]line СДАЧА: 0.00 [10:06:54]line НСП 1% : 22.13 [10:06:54]line НДС 12% : 265.52 [10:06:54]line Наличными: 2500.00 [10:06:54]line Безнал.: 0.00 [10:06:54]line Место: АЗС № 76 "Партнер Нефть" [10:06:54]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:06:54]line СНО: Общий режим [10:06:54]line Чек 43 13.07.2024 10:06 [10:06:54]line Смена: 24 ФФД: 1.0 [10:06:54]line ЗНМ: 0300000124 [10:06:54]line РНМ: 0000000000177495 [10:06:54]line Версия ККМ: 001 [10:06:54]line ФМ: 0000000002098592 [10:06:54]line ФД: 1874 [10:06:54]line ФПД: 281016754087400 [10:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100653&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1874&fm=281016754087400&tin=02508201610067®Number=0000000000177495&sum=250000 [10:06:54]Connected sock=10 [10:06: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 10 01 00 00 44 C3 08 01 C7 79 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BD 51 92 66 0E 04 04 00 18 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 52 07 00 00 35 04 06 00 FF 95 4F CD A5 E8 3D A1 0C 6A 5B B0 3E 40 [10:06:54]written 0, free lines is 4095 [10:06:54]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 7F 05 47 00 1D 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 52 07 00 00 F4 03 04 00 F3 FC 91 66 B6 04 01 00 00 5B 90 87 16 C6 6B E5 A6 [10:06:54]CommunicateWithHost err = 0 [10:06:54]CheckOFDResponse [10:06:54]1017 (14) - 77093643461234 [10:06:54]1041 (16) - 0000000002098592 [10:06:54]1040 (4) - 1874 [10:06:54]1012 (4) - 13.07.2024 04:05 [10:06:54]1206 (1) - 0 [10:06:54]OFD Sender: Remove packet 1874 [10:06:54]ProducePacketName [10:06:54]name=ofd_packets/00001874 [10:06:54]NVStorageDeleteData [10:06:54]Write to MH i2c: 01 00 00 23 05 28 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: 01 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: 01 07 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 DF 0C 1A [10:06:54]RasterBufferAndPrint [10:06:54]line [10:06:54]line [10:06:54]line [10:06:54]line [10:06:54]line [10:06:54]written 0, free lines is 3304 [10:06:54]MH_Cut [10:06:54]Write to MH i2c: D1 01 00 2A 05 01 01 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: D1 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: D1 01 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: D1 01 00 2A 05 00 00 [10:06:54]Write to MH i2c: 01 00 00 2B 05 30 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:55]OFD Sender: No OFD packet to send [10:06:55]*** Cut start [10:06:55]*** Partial cut [10:06:55]*** CUTSNS_PIN = 1 [10:06:55]*** CUTSNS_PIN = 0 [10:06:55]*** Brake cut motor [10:06:56]Read from MH i2c: 01 [10:06:56]MH_I2C_Read... [10:06:56]*** Stop cut motor [10:06:56]*** Cut end [10:06:56]Read from MH i2c: 01 07 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [10:06:56]process_action close_receipt done [10:06:56]requested_data is exist [10:06:56]produce_requested_data [10:06:56]requested_item fm.sn is exist - process it [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 11 00 00 [10:06:56]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 17 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 01 [10:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:06:56]wFMCommunicate OK [10:06:56]requested_item fd.num is exist - process it [10:06:56]SAM_PROTO_GetFieldsCounters [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 13 00 00 [10:06:56]Write to MH i2c: E2 08 00 2D 05 80 13 00 00 00 00 00 00 AE [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 62 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 62 00 2D 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 52 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [10:06: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 52 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:56]wFMCommunicate OK [10:06:56]SAM_PROTO_GetFieldsCounters done [10:06:56]requested_item shift.num is exist - process it [10:06:56]requested_item shift.opened is exist - process it [10:06:56]req_shift_opened [10:06:56]FM_GetShiftState [10:06:56]SAM_PROTO_GetShiftState [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 13 01 00 [10:06:56]Write to MH i2c: E2 08 00 2E 05 80 13 01 00 00 00 00 00 B0 [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0E 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0E 00 2E 05 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 3B [10:06:56]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:06:56]wFMCommunicate OK [10:06:56]SAM_PROTO_GetShiftState done [10:06:56]FM_GetShiftState done [10:06:56]req_shift_opened done [10:06:56]requested_item shift.open_date is exist - process it [10:06:56]req_shift_open_date [10:06:56]req_shift_open_date done [10:06:56]produce_requested_data done [10:06:56]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1874,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:06:56]process_action_free close_receipt [10:06:56]json_value_free [10:06:56]json_value_free done [10:06:56]process_json_proto returns [10:06:56]Send response to host [10:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1874,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:06:56]free response buf [10:06:56]execute_script done [10:06:56]execute_script returns [10:06:56]free content buf [10:06:56]Sock 8.Close socket [10:06:56]Sock 8.Thread stoped [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:09]accept exits with 9 [10:07:09]New connection [10:07:09]New thread 3066834276 created [10:07:09]Thread 3066977636 joined [10:07:09]Waiting for new connection... [10:07:09] Sock 9.Parse request [10:07:09]Sock 9.Check first char [10:07:09]Sock 9.First char is OK [10:07:09]request: POST /json_proto HTTP/1.0 [10:07:09]Method: POST [10:07:09]URL: /json_proto [10:07:09]Method is POST - this is cgi request [10:07:09]url: /json_proto [10:07:09]query_string will be loaded in cgi processing [10:07:09]execute_cgi json_proto POST (null) [10:07:09]execute_cgi path=json_proto method=POST [10:07:09]POST find Content-Length [10:07:09]Host: 172.17.35.133:8080 [10:07:09]Content-Length: 981 [10:07:09]Content-Type: application/json [10:07:09] [10:07:09]POST finish read [10:07:09]Found Content-Length = 981 [10:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256319", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 114.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:09]execute_script... [10:07: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)256319", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 114.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:09]POST & json_proto [10:07:09]process_json_proto [10:07:09]json parsed OK: [10:07:09]protocol is kg_v1.0 [10:07:09]action value=close_receipt [10:07:09]process_action close_receipt [10:07:09]cmd_close_receipt [10:07:09]MH_GetDate [10:07:09]Write to MH i2c: F0 00 00 2F 05 23 [10:07:09]Write i2c OK [10:07:09]MH_I2C_Read... [10:07:09]Read from MH i2c: F0 [10:07:09]MH_I2C_Read... [10:07:09]Read from MH i2c: F0 09 00 [10:07:09]MH_I2C_Read... [10:07:09]Read from MH i2c: F0 09 00 2F 05 00 CE 51 92 66 1B 28 2A 66 16 [10:07:09]GetLastDocTimeStamp 1720865213 [10:07:09]current date 1720865230 [10:07:09]FM_GetShiftState [10:07:09]SAM_PROTO_GetShiftState [10:07:09]wFMCommunicate request_size=4 [10:07:09]MH_SAM_APDU [10:07:09]CAPDU: 80 13 01 00 [10:07:09]Write to MH i2c: E2 08 00 30 05 80 13 01 00 00 00 00 00 B2 [10:07:09]Write i2c OK [10:07:09]MH_I2C_Read... [10:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:09]Read from MH i2c: E2 [10:07:09]MH_I2C_Read... [10:07:09]Read from MH i2c: E2 0E 00 [10:07:09]MH_I2C_Read... [10:07:09]Read from MH i2c: E2 0E 00 30 05 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 3D [10:07:09]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:07:09]wFMCommunicate OK [10:07:09]SAM_PROTO_GetShiftState done [10:07:09]FM_GetShiftState done [10:07:09]opened in 1720829379 [10:07:09]opened+sec_in_day 1720915779 [10:07:09]quantity*price = 10000 [10:07:09]sum+1 = 10001 [10:07:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 114.00 НСП 1% : 1.00 НДС 12% : 12.11 Наличными: 114.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 44 13.07.2024 10:07 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1875 ФПД: 217177442668120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100710&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1875&fm=217177442668120&tin=02508201610067®Number=0000000000177495&sum=11400 0 [10:07:10]StoreToDocumentArchive [10:07:10]shift 24 fd 1875 [10:07:10]save to /storage/0024/doc_00001875 [10:07:10]save last doc name /storage/0024/doc_00001875 to /storage/kkm_last_doc_name [10:07:10]save OK [10:07:10]Clear old archive folders... [10:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=410 [10:07:10]tlvbuf is 01006F00 [10:07:10]SAM_PROTO_ClearQueue [10:07:10]wFMCommunicate request_size=4 [10:07:10]MH_SAM_APDU [10:07:10]CAPDU: 80 09 00 00 [10:07:10]Write to MH i2c: E2 08 00 3D 05 80 09 00 00 00 00 00 00 B4 [10:07:10]Write i2c OK [10:07:10]MH_I2C_Read... [10:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:10]Read from MH i2c: E2 [10:07:10]MH_I2C_Read... [10:07:10]Read from MH i2c: E2 03 00 [10:07:10]MH_I2C_Read... [10:07:10]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [10:07:10]RAPDU: 90 00 [10:07:10]wFMCommunicate OK [10:07:10]SAM_PROTO_ClearQueue done [10:07:10]KKMCreateOFDPacket [10:07:10]OFDProtocolAddRootSTLVToBuf [10:07:10]FM_MakeSignedData [10:07:10]FM_MakeSignedData [10:07:10]SAM_PROTO_SignData [10:07:10]wFMCommunicate request_size=4 [10:07:10]MH_SAM_APDU [10:07:10]CAPDU: 80 0D 01 02 [10:07:10]Write to MH i2c: E2 08 00 3E 05 80 0D 01 02 00 00 00 00 BC [10:07:10]Write i2c OK [10:07:10]MH_I2C_Read... [10:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:10]Read from MH i2c: E2 [10:07:10]MH_I2C_Read... [10:07:10]Read from MH i2c: E2 03 00 [10:07:10]MH_I2C_Read... [10:07:10]Read from MH i2c: E2 03 00 3E 05 00 90 00 B7 [10:07:10]RAPDU: 90 00 [10:07:10]wFMCommunicate OK [10:07:10]wFMCommunicate request_size=255 [10:07:10]MH_SAM_APDU [10:07:10]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 FC [10:07:10]Write to MH i2c: E2 02 01 3F 05 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 FC 00 00 EE [10:07:10]Write i2c OK [10:07:10]MH_I2C_Read... [10:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:10]Read from MH i2c: E2 [10:07:10]MH_I2C_Read... [10:07:10]Read from MH i2c: E2 03 00 [10:07:10]MH_I2C_Read... [10:07:10]Read from MH i2c: E2 03 00 3F 05 00 90 00 B8 [10:07:10]RAPDU: 90 00 [10:07:10]wFMCommunicate OK [10:07:10]wFMCommunicate request_size=169 [10:07:10]MH_SAM_APDU [10:07:10]CAPDU: 80 0D 02 02 A4 03 06 00 88 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 BB 04 00 00 00 00 07 04 06 00 88 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 2C 00 00 00 F4 03 04 00 CE 51 92 66 0E 04 04 00 18 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 53 07 00 00 35 04 06 00 C5 85 90 52 CE 58 [10:07:10]Write to MH i2c: E2 AC 00 40 05 80 0D 02 02 A4 00 03 06 00 88 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 BB 04 00 00 00 00 07 04 06 00 88 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 2C 00 00 00 F4 03 04 00 CE 51 92 66 0E 04 04 00 18 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 53 07 00 00 35 04 06 00 C5 85 90 52 CE 58 00 00 EA [10:07:10]Write i2c OK [10:07:10]MH_I2C_Read... [10:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:11]Read from MH i2c: E2 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: E2 03 00 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [10:07:11]RAPDU: 90 00 [10:07:11]wFMCommunicate OK [10:07:11]wFMCommunicate request_size=4 [10:07:11]MH_SAM_APDU [10:07:11]CAPDU: 80 0D 03 02 [10:07:11]Write to MH i2c: E2 08 00 41 05 80 0D 03 02 00 00 00 00 C1 [10:07:11]Write i2c OK [10:07:11]MH_I2C_Read... [10:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:11]Read from MH i2c: E2 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: E2 0B 00 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: E2 0B 00 41 05 00 6F 89 0F 2E B1 C7 8C 28 90 00 23 [10:07:11]RAPDU: 6F 89 0F 2E B1 C7 8C 28 90 00 [10:07:11]wFMCommunicate OK [10:07:11]SAM_PROTO_SignData done [10:07:11]FM_MakeSignedData done [10:07:11]CreateOFDProtocolMessage [10:07:11]wFMCommunicate request_size=4 [10:07:11]MH_SAM_APDU [10:07:11]CAPDU: 80 11 00 00 [10:07:11]Write to MH i2c: E2 08 00 42 05 80 11 00 00 00 00 00 00 C1 [10:07:11]Write i2c OK [10:07:11]MH_I2C_Read... [10:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:11]Read from MH i2c: E2 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: E2 17 00 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: E2 17 00 42 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 17 [10:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:07:11]wFMCommunicate OK [10:07:11]CreateOFDProtocolMessage done [10:07:11]OFDSenderStorePacket 1875 [10:07:11]StoreOFDPacket docnum=1875 [10:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 AE 01 00 00 9B 3D A6 01 AF 27 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 FC 03 06 00 88 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 BB 04 00 00 00 00 07 04 06 00 88 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 2C 00 00 00 F4 03 04 00 CE 51 92 66 0E 04 04 00 18 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 53 07 00 00 35 04 06 00 C5 85 90 52 CE 58 6F 89 0F 2E B1 C7 8C 28 [10:07:11]CheckFolder [10:07:11]dirname=/storage/ofd_packets [10:07:11]CheckFolder done [10:07:11]ProducePacketName [10:07:11]name=ofd_packets/00001875 [10:07:11]NVStorageSaveData ofd_packets/00001875 [10:07:11]File name is /storage/ofd_packets/00001875 [10:07:11]Write 460 bytes [10:07:11]NVStorageSaveData done [10:07:11]OFDSenderStorePacket done [10:07:11]KKMCreateOFDPacket done [10:07:11]NVStorageSaveData kkm_last_timestamp [10:07:11]File name is /storage/kkm_last_timestamp [10:07:11]Write 4 bytes [10:07:11]NVStorageSaveData done [10:07:11]ExternCall_PrintAddStr [10:07:11]wPrintStart [10:07:11]Write to MH i2c: 01 00 00 43 05 48 [10:07:11]OFD Sender: Processing packet 1875 [packets to send 1, broken 0] [10:07:11]ProducePacketName [10:07:11]name=ofd_packets/00001875 [10:07:11]Write i2c OK [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: 01 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: 01 07 00 [10:07:11]MH_I2C_Read... [10:07:11]OFD Sender: To server: pG, [10:07:11]CommunicateWithHost lk.salyk.kg:30040 [10:07:11]ConnectInit lk.salyk.kg [10:07:11]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 FF 0F 5D [10:07:11]RasterBufferAndPrint [10:07:11]line Счет N : (3)256319 [10:07:11]line ИНН: 02508201610067 [10:07:11]line Контрольно-Кассовый Чек [10:07:11]line ПРОДАЖА [10:07:11]line Товар: 4870002326172 [10:07:11]line Вода ASU пит н.газ лимон ПЭТ 1л [10:07:11]line 1.000 * 100.00 [10:07:11]line = 100.00 [10:07:11]line НДС 12% НСП 1% [10:07:11]line > о реализуемом товаре [10:07:11]line Товар: 2000053020015 [10:07:11]line Бумажные стаканы 250мл 1шт [10:07:11]line 2.000 * 7.00 [10:07:11]line = 14.00 [10:07:11]line НДС 12% НСП 1% [10:07:11]line > о реализуемом товаре [10:07:11]line ИТОГО: 114.00 [10:07:11]line НСП 1% : 1.00 [10:07:11]line НДС 12% : 12.11 [10:07:11]line Наличными: 114.00 [10:07:11]line Безнал.: 0.00 [10:07:11]line Место: АЗС № 76 "Партнер Нефть" [10:07:11]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:07:11]line СНО: Общий режим [10:07:11]line Чек 44 13.07.2024 10:07 [10:07:11]line Смена: 24 ФФД: 1.0 [10:07:11]line ЗНМ: 0300000124 [10:07:11]line РНМ: 0000000000177495 [10:07:11]line Версия ККМ: 001 [10:07:11]line ФМ: 0000000002098592 [10:07:11]line ФД: 1875 [10:07:11]line ФПД: 217177442668120 [10:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100710&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1875&fm=217177442668120&tin=02508201610067®Number=0000000000177495&sum=11400 [10:07:11]line 0 [10:07:11]written 0, free lines is 4095 [10:07:11]Connected sock=10 [10:07: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 AE 01 00 00 9B 3D A6 01 AF 27 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 FC 03 06 00 88 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 BB 04 00 00 00 00 07 04 06 00 88 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 2C 00 00 00 F4 03 04 00 CE 51 92 66 0E 04 04 00 18 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 53 07 00 00 35 04 06 00 C5 85 90 52 CE 58 6F 89 0F 2E B1 C7 8C 28 [10:07: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 C8 F0 47 00 81 35 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 53 07 00 00 F4 03 04 00 04 FD 91 66 B6 04 01 00 00 F2 61 11 14 E5 FE 48 CB [10:07:11]CommunicateWithHost err = 0 [10:07:11]CheckOFDResponse [10:07:11]1017 (14) - 77093643461234 [10:07:11]1041 (16) - 0000000002098592 [10:07:11]1040 (4) - 1875 [10:07:11]1012 (4) - 13.07.2024 04:05 [10:07:11]1206 (1) - 0 [10:07:11]OFD Sender: Remove packet 1875 [10:07:11]ProducePacketName [10:07:11]name=ofd_packets/00001875 [10:07:11]NVStorageDeleteData [10:07:11]Write to MH i2c: 01 00 00 73 05 78 [10:07:11]Write i2c OK [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: 01 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: 01 07 00 [10:07:11]MH_I2C_Read... [10:07:11]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 7F 0C 0A [10:07:11]RasterBufferAndPrint [10:07:11]line [10:07:11]line [10:07:11]line [10:07:11]line [10:07:11]line [10:07:11]written 0, free lines is 3207 [10:07:11]MH_Cut [10:07:11]Write to MH i2c: D1 01 00 7A 05 01 51 [10:07:12]Write i2c OK [10:07:12]MH_I2C_Read... [10:07:12]Read from MH i2c: D1 [10:07:12]MH_I2C_Read... [10:07:12]Read from MH i2c: D1 01 00 [10:07:12]MH_I2C_Read... [10:07:12]Read from MH i2c: D1 01 00 7A 05 00 50 [10:07:12]Write to MH i2c: 01 00 00 7B 05 80 [10:07:12]Write i2c OK [10:07:12]MH_I2C_Read... [10:07:12]OFD Sender: No OFD packet to send [10:07:12]*** Cut start [10:07:12]*** Partial cut [10:07:12]*** CUTSNS_PIN = 1 [10:07:12]*** CUTSNS_PIN = 0 [10:07:13]*** Brake cut motor [10:07:13]Read from MH i2c: 01 [10:07:13]MH_I2C_Read... [10:07:13]*** Stop cut motor [10:07:13]*** Cut end [10:07:13]Read from MH i2c: 01 07 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: 01 07 00 7B 05 00 00 00 00 00 FF 0F 95 [10:07:13]process_action close_receipt done [10:07:13]requested_data is exist [10:07:13]produce_requested_data [10:07:13]requested_item fm.sn is exist - process it [10:07:13]wFMCommunicate request_size=4 [10:07:13]MH_SAM_APDU [10:07:13]CAPDU: 80 11 00 00 [10:07:13]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:13]Read from MH i2c: E2 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 17 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 51 [10:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:07:13]wFMCommunicate OK [10:07:13]requested_item fd.num is exist - process it [10:07:13]SAM_PROTO_GetFieldsCounters [10:07:13]wFMCommunicate request_size=4 [10:07:13]MH_SAM_APDU [10:07:13]CAPDU: 80 13 00 00 [10:07:13]Write to MH i2c: E2 08 00 7D 05 80 13 00 00 00 00 00 00 FE [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:13]Read from MH i2c: E2 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 62 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 62 00 7D 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 53 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [10:07:13]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 53 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:13]wFMCommunicate OK [10:07:13]SAM_PROTO_GetFieldsCounters done [10:07:13]requested_item shift.num is exist - process it [10:07:13]requested_item shift.opened is exist - process it [10:07:13]req_shift_opened [10:07:13]FM_GetShiftState [10:07:13]SAM_PROTO_GetShiftState [10:07:13]wFMCommunicate request_size=4 [10:07:13]MH_SAM_APDU [10:07:13]CAPDU: 80 13 01 00 [10:07:13]Write to MH i2c: E2 08 00 7E 05 80 13 01 00 00 00 00 00 00 [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 [10:07:13]MH_I2C_Read... [10:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:13]Read from MH i2c: E2 0E 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 7E 05 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8B [10:07:13]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:07:13]wFMCommunicate OK [10:07:13]SAM_PROTO_GetShiftState done [10:07:13]FM_GetShiftState done [10:07:13]req_shift_opened done [10:07:13]requested_item shift.open_date is exist - process it [10:07:13]req_shift_open_date [10:07:13]req_shift_open_date done [10:07:13]produce_requested_data done [10:07:13]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1875,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:07:13]process_action_free close_receipt [10:07:13]json_value_free [10:07:13]json_value_free done [10:07:13]process_json_proto returns [10:07:13]Send response to host [10:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1875,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:07:13]free response buf [10:07:13]execute_script done [10:07:13]execute_script returns [10:07:13]free content buf [10:07:13]Sock 9.Close socket [10:07:13]Sock 9.Thread stoped [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]accept exits with 8 [10:07:52]New connection [10:07:52]New thread 3066977636 created [10:07:52]Thread 3066834276 joined [10:07:52]Waiting for new connection... [10:07:52] Sock 8.Parse request [10:07:52]Sock 8.Check first char [10:07:52]Sock 8.First char is OK [10:07:52]request: POST /json_proto HTTP/1.0 [10:07:52]Method: POST [10:07:52]URL: /json_proto [10:07:52]Method is POST - this is cgi request [10:07:52]url: /json_proto [10:07:52]query_string will be loaded in cgi processing [10:07:52]execute_cgi json_proto POST (null) [10:07:52]execute_cgi path=json_proto method=POST [10:07:52]POST find Content-Length [10:07:52]Host: 172.17.35.133:8080 [10:07:52]Content-Length: 678 [10:07:52]Content-Type: application/json [10:07:52] [10:07:52]POST finish read [10:07:52]Found Content-Length = 678 [10:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618985", "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" : 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" ] } } [10:07:52]execute_script... [10:07: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 : (1)1618985", "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" : 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" ] } } [10:07:52]POST & json_proto [10:07:52]process_json_proto [10:07:52]json parsed OK: [10:07:52]protocol is kg_v1.0 [10:07:52]action value=close_receipt [10:07:52]process_action close_receipt [10:07:52]cmd_close_receipt [10:07:52]MH_GetDate [10:07:52]Write to MH i2c: F0 00 00 7F 05 73 [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: F0 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: F0 09 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: F0 09 00 7F 05 00 F9 51 92 66 1B 28 2A 66 91 [10:07:52]GetLastDocTimeStamp 1720865230 [10:07:52]current date 1720865273 [10:07:52]FM_GetShiftState [10:07:52]SAM_PROTO_GetShiftState [10:07:52]wFMCommunicate request_size=4 [10:07:52]MH_SAM_APDU [10:07:52]CAPDU: 80 13 01 00 [10:07:52]Write to MH i2c: E2 08 00 80 05 80 13 01 00 00 00 00 00 02 [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:52]Read from MH i2c: E2 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 0E 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 0E 00 80 05 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8D [10:07:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:07:52]wFMCommunicate OK [10:07:52]SAM_PROTO_GetShiftState done [10:07:52]FM_GetShiftState done [10:07:52]opened in 1720829379 [10:07:52]opened+sec_in_day 1720915779 [10:07:52]quantity*price = 50056 [10:07:52]sum+1 = 50058 [10:07:52]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 СНО: Общий режим Чек 45 13.07.2024 10:07 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1876 ФПД: 54292459785872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100753&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1876&fm=54292459785872&tin=02508201610067®Number=0000000000177495&sum=50000 [10:07:53]StoreToDocumentArchive [10:07:53]shift 24 fd 1876 [10:07:53]save to /storage/0024/doc_00001876 [10:07:53]save last doc name /storage/0024/doc_00001876 to /storage/kkm_last_doc_name [10:07:53]save OK [10:07:53]Clear old archive folders... [10:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:53]tlvbuf is 00FEC340 [10:07:53]SAM_PROTO_ClearQueue [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 09 00 00 [10:07:53]Write to MH i2c: E2 08 00 8D 05 80 09 00 00 00 00 00 00 04 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]SAM_PROTO_ClearQueue done [10:07:53]KKMCreateOFDPacket [10:07:53]OFDProtocolAddRootSTLVToBuf [10:07:53]FM_MakeSignedData [10:07:53]FM_MakeSignedData [10:07:53]SAM_PROTO_SignData [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 0D 01 02 [10:07:53]Write to MH i2c: E2 08 00 8E 05 80 0D 01 02 00 00 00 00 0C [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]wFMCommunicate request_size=255 [10:07:53]MH_SAM_APDU [10:07:53]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 2D 00 00 00 F4 03 04 00 F9 51 92 66 0E 04 04 00 18 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 54 07 00 00 35 04 06 00 31 [10:07:53]Write to MH i2c: E2 02 01 8F 05 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 2D 00 00 00 F4 03 04 00 F9 51 92 66 0E 04 04 00 18 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 54 07 00 00 35 04 06 00 31 00 00 D4 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]wFMCommunicate request_size=10 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 0D 02 02 05 60 F2 C7 8E 90 [10:07:53]Write to MH i2c: E2 0D 00 90 05 80 0D 02 02 05 00 60 F2 C7 8E 90 00 00 50 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 0D 03 02 [10:07:53]Write to MH i2c: E2 08 00 91 05 80 0D 03 02 00 00 00 00 11 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 0B 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 0B 00 91 05 00 4B 04 E6 AC 77 68 B1 55 90 00 D8 [10:07:53]RAPDU: 4B 04 E6 AC 77 68 B1 55 90 00 [10:07:53]wFMCommunicate OK [10:07:53]SAM_PROTO_SignData done [10:07:53]FM_MakeSignedData done [10:07:53]CreateOFDProtocolMessage [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 11 00 00 [10:07:53]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 17 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 67 [10:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:07:53]wFMCommunicate OK [10:07:53]CreateOFDProtocolMessage done [10:07:53]OFDSenderStorePacket 1876 [10:07:53]StoreOFDPacket docnum=1876 [10:07: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 0F 01 00 00 19 C9 07 01 F3 8D 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 2D 00 00 00 F4 03 04 00 F9 51 92 66 0E 04 04 00 18 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 54 07 00 00 35 04 06 00 31 60 F2 C7 8E 90 4B 04 E6 AC 77 68 B1 55 [10:07:53]CheckFolder [10:07:53]dirname=/storage/ofd_packets [10:07:53]CheckFolder done [10:07:53]ProducePacketName [10:07:53]name=ofd_packets/00001876 [10:07:53]NVStorageSaveData ofd_packets/00001876 [10:07:53]File name is /storage/ofd_packets/00001876 [10:07:53]Write 301 bytes [10:07:53]NVStorageSaveData done [10:07:53]OFDSenderStorePacket done [10:07:53]KKMCreateOFDPacket done [10:07:53]NVStorageSaveData kkm_last_timestamp [10:07:53]File name is /storage/kkm_last_timestamp [10:07:53]Write 4 bytes [10:07:53]NVStorageSaveData done [10:07:53]ExternCall_PrintAddStr [10:07:53]wPrintStart [10:07:53]Write to MH i2c: 01 00 00 93 05 98 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 07 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 FF 0F AD [10:07:53]RasterBufferAndPrint [10:07:53]line Счет N : (1)1618985 [10:07:53]line ИНН: 02508201610067 [10:07:53]line Контрольно-Кассовый Чек [10:07:53]line ПРОДАЖА [10:07:53]line ТРК (МРК, ГНК) : 33 [10:07:53]line Товар: 2710124130 [10:07:53]line Аи-92-К-5 [10:07:53]line 7.550 * 66.30 [10:07:53]line = 500.57 [10:07:53]line НДС 12% НСП 1% [10:07:53]line > о реализуемом товаре [10:07:53]line ОКРУГЛЕНИЕ: -0.57 [10:07:53]line ИТОГО: 500.00 [10:07:53]line Внесено: 500.00 [10:07:53]line СДАЧА: 0.00 [10:07:53]line НСП 1% : 4.43 [10:07:53]line НДС 12% : 53.16 [10:07:53]line Наличными: 500.00 [10:07:53]line Безнал.: 0.00 [10:07:53]line Место: АЗС № 76 "Партнер Нефть" [10:07:53]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:07:53]line СНО: Общий режим [10:07:53]line Чек 45 13.07.2024 10:07 [10:07:53]line Смена: 24 ФФД: 1.0 [10:07:53]line ЗНМ: 0300000124 [10:07:53]line РНМ: 0000000000177495 [10:07:53]line Версия ККМ: 001 [10:07:53]line ФМ: 0000000002098592 [10:07:53]line ФД: 1876 [10:07:53]line ФПД: 54292459785872 [10:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100753&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1876&fm=54292459785872&tin=02508201610067®Number=0000000000177495&sum=50000 [10:07:54]OFD Sender: Processing packet 1876 [packets to send 1, broken 0] [10:07:54]ProducePacketName [10:07:54]name=ofd_packets/00001876 [10:07:54]OFD Sender: To server: pG, [10:07:54]CommunicateWithHost lk.salyk.kg:30040 [10:07:54]written 0, free lines is 4095 [10:07:54]ConnectInit lk.salyk.kg [10:07:54]Connected sock=10 [10:07: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 0F 01 00 00 19 C9 07 01 F3 8D 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 2D 00 00 00 F4 03 04 00 F9 51 92 66 0E 04 04 00 18 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 54 07 00 00 35 04 06 00 31 60 F2 C7 8E 90 4B 04 E6 AC 77 68 B1 55 [10:07:54]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 7F C0 47 00 D4 C1 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 54 07 00 00 F4 03 04 00 2F FD 91 66 B6 04 01 00 00 3D 83 F0 C5 BE 97 44 66 [10:07:54]CommunicateWithHost err = 0 [10:07:54]CheckOFDResponse [10:07:54]1017 (14) - 77093643461234 [10:07:54]1041 (16) - 0000000002098592 [10:07:54]1040 (4) - 1876 [10:07:54]1012 (4) - 13.07.2024 04:06 [10:07:54]1206 (1) - 0 [10:07:54]OFD Sender: Remove packet 1876 [10:07:54]ProducePacketName [10:07:54]name=ofd_packets/00001876 [10:07:54]NVStorageDeleteData [10:07:54]Write to MH i2c: 01 00 00 BE 05 C3 [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 07 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 EB 0C C1 [10:07:54]RasterBufferAndPrint [10:07:54]line [10:07:54]line [10:07:54]line [10:07:54]line [10:07:54]line [10:07:54]written 0, free lines is 3313 [10:07:54]MH_Cut [10:07:54]Write to MH i2c: D1 01 00 C5 05 01 9C [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: D1 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: D1 01 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: D1 01 00 C5 05 00 9B [10:07:54]Write to MH i2c: 01 00 00 C6 05 CB [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]OFD Sender: No OFD packet to send [10:07:55]*** Cut start [10:07:55]*** Partial cut [10:07:55]*** CUTSNS_PIN = 1 [10:07:55]*** CUTSNS_PIN = 0 [10:07:55]*** Brake cut motor [10:07:55]Read from MH i2c: 01 [10:07:55]MH_I2C_Read... [10:07:55]*** Stop cut motor [10:07:55]*** Cut end [10:07:55]Read from MH i2c: 01 07 00 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 FF 0F E0 [10:07:55]process_action close_receipt done [10:07:55]requested_data is exist [10:07:55]produce_requested_data [10:07:55]requested_item fm.sn is exist - process it [10:07:55]wFMCommunicate request_size=4 [10:07:55]MH_SAM_APDU [10:07:55]CAPDU: 80 11 00 00 [10:07:55]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [10:07:55]Write i2c OK [10:07:55]MH_I2C_Read... [10:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:55]Read from MH i2c: E2 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 17 00 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9C [10:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:07:55]wFMCommunicate OK [10:07:55]requested_item fd.num is exist - process it [10:07:55]SAM_PROTO_GetFieldsCounters [10:07:55]wFMCommunicate request_size=4 [10:07:55]MH_SAM_APDU [10:07:55]CAPDU: 80 13 00 00 [10:07:55]Write to MH i2c: E2 08 00 C8 05 80 13 00 00 00 00 00 00 49 [10:07:55]Write i2c OK [10:07:55]MH_I2C_Read... [10:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:56]Read from MH i2c: E2 [10:07:56]MH_I2C_Read... [10:07:56]Read from MH i2c: E2 62 00 [10:07:56]MH_I2C_Read... [10:07:56]Read from MH i2c: E2 62 00 C8 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 54 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:07: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 54 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:56]wFMCommunicate OK [10:07:56]SAM_PROTO_GetFieldsCounters done [10:07:56]requested_item shift.num is exist - process it [10:07:56]requested_item shift.opened is exist - process it [10:07:56]req_shift_opened [10:07:56]FM_GetShiftState [10:07:56]SAM_PROTO_GetShiftState [10:07:56]wFMCommunicate request_size=4 [10:07:56]MH_SAM_APDU [10:07:56]CAPDU: 80 13 01 00 [10:07:56]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [10:07:56]Write i2c OK [10:07:56]MH_I2C_Read... [10:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:56]Read from MH i2c: E2 [10:07:56]MH_I2C_Read... [10:07:56]Read from MH i2c: E2 0E 00 [10:07:56]MH_I2C_Read... [10:07:56]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D6 [10:07:56]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:07:56]wFMCommunicate OK [10:07:56]SAM_PROTO_GetShiftState done [10:07:56]FM_GetShiftState done [10:07:56]req_shift_opened done [10:07:56]requested_item shift.open_date is exist - process it [10:07:56]req_shift_open_date [10:07:56]req_shift_open_date done [10:07:56]produce_requested_data done [10:07:56]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1876,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:07:56]process_action_free close_receipt [10:07:56]json_value_free [10:07:56]json_value_free done [10:07:56]process_json_proto returns [10:07:56]Send response to host [10:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1876,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:07:56]free response buf [10:07:56]execute_script done [10:07:56]execute_script returns [10:07:56]free content buf [10:07:56]Sock 8.Close socket [10:07:56]Sock 8.Thread stoped [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:15:55]accept exits with 9 [10:15:55]New connection [10:15:55]New thread 3066834276 created [10:15:55]Thread 3066977636 joined [10:15:55]Waiting for new connection... [10:15:55] Sock 9.Parse request [10:15:55]Sock 9.Check first char [10:15:55]Sock 9.First char is OK [10:15:55]request: POST /json_proto HTTP/1.0 [10:15:55]Method: POST [10:15:55]URL: /json_proto [10:15:55]Method is POST - this is cgi request [10:15:55]url: /json_proto [10:15:55]query_string will be loaded in cgi processing [10:15:55]execute_cgi json_proto POST (null) [10:15:55]execute_cgi path=json_proto method=POST [10:15:55]POST find Content-Length [10:15:55]Host: 172.17.35.133:8080 [10:15:55]Content-Length: 678 [10:15:55]Content-Type: application/json [10:15:55] [10:15:55]POST finish read [10:15:55]Found Content-Length = 678 [10:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618986", "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.150, "sum" : 540.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:55]execute_script... [10:15: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 : (1)1618986", "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.150, "sum" : 540.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:55]POST & json_proto [10:15:55]process_json_proto [10:15:55]json parsed OK: [10:15:55]protocol is kg_v1.0 [10:15:55]action value=close_receipt [10:15:55]process_action close_receipt [10:15:55]cmd_close_receipt [10:15:55]MH_GetDate [10:15:55]Write to MH i2c: F0 00 00 CA 05 BE [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: F0 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: F0 09 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: F0 09 00 CA 05 00 DC 53 92 66 1B 28 2A 66 C1 [10:15:55]GetLastDocTimeStamp 1720865273 [10:15:55]current date 1720865756 [10:15:55]FM_GetShiftState [10:15:55]SAM_PROTO_GetShiftState [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 13 01 00 [10:15:55]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D8 [10:15:55]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_GetShiftState done [10:15:55]FM_GetShiftState done [10:15:55]opened in 1720829379 [10:15:55]opened+sec_in_day 1720915779 [10:15:55]quantity*price = 54034 [10:15:55]sum+1 = 54036 [10:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.38 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 46 13.07.2024 10:15 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1877 ФПД: 147316761217276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101557&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1877&fm=147316761217276&tin=02508201610067®Number=0000000000177495&sum=54000 [10:15:57]StoreToDocumentArchive [10:15:57]shift 24 fd 1877 [10:15:57]save to /storage/0024/doc_00001877 [10:15:57]save last doc name /storage/0024/doc_00001877 to /storage/kkm_last_doc_name [10:15:57]save OK [10:15:57]Clear old archive folders... [10:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:57]tlvbuf is 010057A0 [10:15:57]SAM_PROTO_ClearQueue [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 09 00 00 [10:15:57]Write to MH i2c: E2 08 00 D8 05 80 09 00 00 00 00 00 00 4F [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]SAM_PROTO_ClearQueue done [10:15:57]KKMCreateOFDPacket [10:15:57]OFDProtocolAddRootSTLVToBuf [10:15:57]FM_MakeSignedData [10:15:57]FM_MakeSignedData [10:15:57]SAM_PROTO_SignData [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 01 02 [10:15:57]Write to MH i2c: E2 08 00 D9 05 80 0D 01 02 00 00 00 00 57 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=255 [10:15:57]MH_SAM_APDU [10:15:57]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 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 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 2E 00 00 00 F4 03 04 00 DD 53 92 66 0E 04 04 00 18 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 55 07 00 00 35 04 06 00 85 [10:15:57]Write to MH i2c: E2 02 01 DA 05 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 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 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 2E 00 00 00 F4 03 04 00 DD 53 92 66 0E 04 04 00 18 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 55 07 00 00 35 04 06 00 85 00 00 78 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=10 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 02 02 05 FB DB 38 C8 FC [10:15:57]Write to MH i2c: E2 0D 00 DB 05 80 0D 02 02 05 00 FB DB 38 C8 FC 00 00 36 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 03 02 [10:15:57]Write to MH i2c: E2 08 00 DC 05 80 0D 03 02 00 00 00 00 5C [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0B 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0B 00 DC 05 00 71 B0 4B 42 81 B2 65 FE 90 00 A1 [10:15:57]RAPDU: 71 B0 4B 42 81 B2 65 FE 90 00 [10:15:57]wFMCommunicate OK [10:15:57]SAM_PROTO_SignData done [10:15:57]FM_MakeSignedData done [10:15:57]CreateOFDProtocolMessage [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 11 00 00 [10:15:57]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 17 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B2 [10:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:15:57]wFMCommunicate OK [10:15:57]CreateOFDProtocolMessage done [10:15:57]OFDSenderStorePacket 1877 [10:15:57]StoreOFDPacket docnum=1877 [10:15: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 0F 01 00 00 CD 14 07 01 95 2C 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 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 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 2E 00 00 00 F4 03 04 00 DD 53 92 66 0E 04 04 00 18 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 55 07 00 00 35 04 06 00 85 FB DB 38 C8 FC 71 B0 4B 42 81 B2 65 FE [10:15:57]CheckFolder [10:15:57]dirname=/storage/ofd_packets [10:15:57]CheckFolder done [10:15:57]ProducePacketName [10:15:57]name=ofd_packets/00001877 [10:15:57]NVStorageSaveData ofd_packets/00001877 [10:15:57]File name is /storage/ofd_packets/00001877 [10:15:57]Write 301 bytes [10:15:57]NVStorageSaveData done [10:15:57]OFDSenderStorePacket done [10:15:57]KKMCreateOFDPacket done [10:15:57]NVStorageSaveData kkm_last_timestamp [10:15:57]File name is /storage/kkm_last_timestamp [10:15:57]Write 4 bytes [10:15:57]NVStorageSaveData done [10:15:57]ExternCall_PrintAddStr [10:15:57]wPrintStart [10:15:57]Write to MH i2c: 01 00 00 DE 05 E3 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 07 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [10:15:57]RasterBufferAndPrint [10:15:57]line Счет N : (1)1618986 [10:15:57]line ИНН: 02508201610067 [10:15:57]line Контрольно-Кассовый Чек [10:15:57]line ПРОДАЖА [10:15:57]line ТРК (МРК, ГНК) : 33 [10:15:57]line Товар: 2710124130 [10:15:57]line Аи-92-К-5 [10:15:57]line 8.150 * 66.30 [10:15:57]line = 540.35 [10:15:57]line НДС 12% НСП 1% [10:15:57]line > о реализуемом товаре [10:15:57]line ОКРУГЛЕНИЕ: -0.35 [10:15:57]line ИТОГО: 540.00 [10:15:57]line Внесено: 540.00 [10:15:57]line СДАЧА: 0.00 [10:15:57]line НСП 1% : 4.78 [10:15:57]line НДС 12% : 57.38 [10:15:57]line Наличными: 540.00 [10:15:57]line Безнал.: 0.00 [10:15:57]line Место: АЗС № 76 "Партнер Нефть" [10:15:57]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:15:57]line СНО: Общий режим [10:15:57]line Чек 46 13.07.2024 10:15 [10:15:57]line Смена: 24 ФФД: 1.0 [10:15:57]line ЗНМ: 0300000124 [10:15:57]line РНМ: 0000000000177495 [10:15:57]line Версия ККМ: 001 [10:15:57]line ФМ: 0000000002098592 [10:15:57]line ФД: 1877 [10:15:57]line ФПД: 147316761217276 [10:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101557&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1877&fm=147316761217276&tin=02508201610067®Number=0000000000177495&sum=54000 [10:15:57]OFD Sender: Processing packet 1877 [packets to send 1, broken 0] [10:15:57]ProducePacketName [10:15:57]name=ofd_packets/00001877 [10:15:57]OFD Sender: To server: pG, [10:15:57]CommunicateWithHost lk.salyk.kg:30040 [10:15:57]ConnectInit lk.salyk.kg [10:15:57]written 0, free lines is 4095 [10:15:58]Connected sock=10 [10:15: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 0F 01 00 00 CD 14 07 01 95 2C 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 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 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 2E 00 00 00 F4 03 04 00 DD 53 92 66 0E 04 04 00 18 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 55 07 00 00 35 04 06 00 85 FB DB 38 C8 FC 71 B0 4B 42 81 B2 65 FE [10:15: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 E3 5F 47 00 53 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 55 07 00 00 F4 03 04 00 13 FF 91 66 B6 04 01 00 00 AC D2 68 7E 9C 19 6B 56 [10:15:58]CommunicateWithHost err = 0 [10:15:58]CheckOFDResponse [10:15:58]1017 (14) - 77093643461234 [10:15:58]1041 (16) - 0000000002098592 [10:15:58]1040 (4) - 1877 [10:15:58]1012 (4) - 13.07.2024 04:14 [10:15:58]1206 (1) - 0 [10:15:58]OFD Sender: Remove packet 1877 [10:15:58]ProducePacketName [10:15:58]name=ofd_packets/00001877 [10:15:58]NVStorageDeleteData [10:15:58]Write to MH i2c: 01 00 00 09 06 0F [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 EB 0C 0D [10:15:58]RasterBufferAndPrint [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]written 0, free lines is 3313 [10:15:58]MH_Cut [10:15:58]Write to MH i2c: D1 01 00 10 06 01 E8 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 01 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 01 00 10 06 00 E7 [10:15:58]Write to MH i2c: 01 00 00 11 06 17 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]OFD Sender: No OFD packet to send [10:15:59]*** Cut start [10:15:59]*** Partial cut [10:15:59]*** CUTSNS_PIN = 1 [10:15:59]*** CUTSNS_PIN = 0 [10:15:59]*** Brake cut motor [10:15:59]Read from MH i2c: 01 [10:15:59]MH_I2C_Read... [10:15:59]*** Stop cut motor [10:15:59]*** Cut end [10:15:59]Read from MH i2c: 01 07 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 FF 0F 2C [10:15:59]process_action close_receipt done [10:15:59]requested_data is exist [10:15:59]produce_requested_data [10:15:59]requested_item fm.sn is exist - process it [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 11 00 00 [10:15:59]Write to MH i2c: E2 08 00 12 06 80 11 00 00 00 00 00 00 92 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 12 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E8 [10:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:15:59]wFMCommunicate OK [10:15:59]requested_item fd.num is exist - process it [10:15:59]SAM_PROTO_GetFieldsCounters [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 13 00 00 [10:15:59]Write to MH i2c: E2 08 00 13 06 80 13 00 00 00 00 00 00 95 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 62 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 62 00 13 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 55 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:15: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 55 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:59]wFMCommunicate OK [10:15:59]SAM_PROTO_GetFieldsCounters done [10:15:59]requested_item shift.num is exist - process it [10:15:59]requested_item shift.opened is exist - process it [10:15:59]req_shift_opened [10:15:59]FM_GetShiftState [10:15:59]SAM_PROTO_GetShiftState [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 13 01 00 [10:15:59]Write to MH i2c: E2 08 00 14 06 80 13 01 00 00 00 00 00 97 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 0E 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 14 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 22 [10:16:00]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:16:00]wFMCommunicate OK [10:16:00]SAM_PROTO_GetShiftState done [10:16:00]FM_GetShiftState done [10:16:00]req_shift_opened done [10:16:00]requested_item shift.open_date is exist - process it [10:16:00]req_shift_open_date [10:16:00]req_shift_open_date done [10:16:00]produce_requested_data done [10:16:00]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1877,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:16:00]process_action_free close_receipt [10:16:00]json_value_free [10:16:00]json_value_free done [10:16:00]process_json_proto returns [10:16:00]Send response to host [10:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1877,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:16:00]free response buf [10:16:00]execute_script done [10:16:00]execute_script returns [10:16:00]free content buf [10:16:00]Sock 9.Close socket [10:16:00]Sock 9.Thread stoped [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]accept exits with 8 [10:19:28]New connection [10:19:28]New thread 3066977636 created [10:19:28]Thread 3066834276 joined [10:19:28]Waiting for new connection... [10:19:28] Sock 8.Parse request [10:19:28]Sock 8.Check first char [10:19:28]Sock 8.First char is OK [10:19:28]request: POST /json_proto HTTP/1.0 [10:19:28]Method: POST [10:19:28]URL: /json_proto [10:19:28]Method is POST - this is cgi request [10:19:28]url: /json_proto [10:19:28]query_string will be loaded in cgi processing [10:19:28]execute_cgi json_proto POST (null) [10:19:28]execute_cgi path=json_proto method=POST [10:19:28]POST find Content-Length [10:19:28]Host: 172.17.35.133:8080 [10:19:28]Content-Length: 1146 [10:19:28]Content-Type: application/json [10:19:28] [10:19:28]POST finish read [10:19:28]Found Content-Length = 1146 [10:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256320", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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" : 253.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:28]execute_script... [10:19: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)256320", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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" : 253.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:28]POST & json_proto [10:19:28]process_json_proto [10:19:28]json parsed OK: [10:19:28]protocol is kg_v1.0 [10:19:28]action value=close_receipt [10:19:28]process_action close_receipt [10:19:28]cmd_close_receipt [10:19:28]MH_GetDate [10:19:28]Write to MH i2c: F0 00 00 15 06 0A [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: F0 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: F0 09 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: F0 09 00 15 06 00 B1 54 92 66 1B 28 2A 66 E3 [10:19:28]GetLastDocTimeStamp 1720865757 [10:19:28]current date 1720865969 [10:19:28]FM_GetShiftState [10:19:28]SAM_PROTO_GetShiftState [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 13 01 00 [10:19:28]Write to MH i2c: E2 08 00 16 06 80 13 01 00 00 00 00 00 99 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 0E 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 0E 00 16 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 24 [10:19:28]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:19:28]wFMCommunicate OK [10:19:28]SAM_PROTO_GetShiftState done [10:19:28]FM_GetShiftState done [10:19:28]opened in 1720829379 [10:19:28]opened+sec_in_day 1720915779 [10:19:28]quantity*price = 11000 [10:19:28]sum+1 = 11001 [10:19:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48746717 Сигареты Winston XStyle Caster + Dream M 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 253.00 НСП 1% : 2.23 НДС 12% : 26.87 Наличными: 0.00 Безнал.: 253.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 47 13.07.2024 10:19 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1878 ФПД: 7928853002956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101929&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1878&fm=7928853002956&tin=02508201610067®Number=0000000000177495&sum=25300 0 [10:19:29]StoreToDocumentArchive [10:19:29]shift 24 fd 1878 [10:19:29]save to /storage/0024/doc_00001878 [10:19:29]save last doc name /storage/0024/doc_00001878 to /storage/kkm_last_doc_name [10:19:29]save OK [10:19:29]Clear old archive folders... [10:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=411 [10:19:29]tlvbuf is 01007100 [10:19:29]SAM_PROTO_ClearQueue [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 09 00 00 [10:19:29]Write to MH i2c: E2 08 00 23 06 80 09 00 00 00 00 00 00 9B [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_ClearQueue done [10:19:29]KKMCreateOFDPacket [10:19:29]OFDProtocolAddRootSTLVToBuf [10:19:29]FM_MakeSignedData [10:19:29]FM_MakeSignedData [10:19:29]SAM_PROTO_SignData [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 01 02 [10:19:29]Write to MH i2c: E2 08 00 24 06 80 0D 01 02 00 00 00 00 A3 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]wFMCommunicate request_size=255 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [10:19:29]Write to MH i2c: E2 02 01 25 06 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 AF [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]wFMCommunicate request_size=170 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 02 02 A5 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B1 54 92 66 0E 04 04 00 18 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 56 07 00 00 35 04 06 00 07 36 14 77 7A CC [10:19:29]Write to MH i2c: E2 AD 00 26 06 80 0D 02 02 A5 00 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B1 54 92 66 0E 04 04 00 18 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 56 07 00 00 35 04 06 00 07 36 14 77 7A CC 00 00 C0 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 03 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [10:19:30]RAPDU: 90 00 [10:19:30]wFMCommunicate OK [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 0D 03 02 [10:19:30]Write to MH i2c: E2 08 00 27 06 80 0D 03 02 00 00 00 00 A8 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0B 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0B 00 27 06 00 20 98 C0 44 76 A5 E6 25 90 00 8B [10:19:30]RAPDU: 20 98 C0 44 76 A5 E6 25 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_SignData done [10:19:30]FM_MakeSignedData done [10:19:30]CreateOFDProtocolMessage [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 11 00 00 [10:19:30]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 17 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FE [10:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:19:30]wFMCommunicate OK [10:19:30]CreateOFDProtocolMessage done [10:19:30]OFDSenderStorePacket 1878 [10:19:30]StoreOFDPacket docnum=1878 [10:19: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 AF 01 00 00 E3 E7 A7 01 15 BF 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B1 54 92 66 0E 04 04 00 18 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 56 07 00 00 35 04 06 00 07 36 14 77 7A CC 20 98 C0 44 76 A5 E6 25 [10:19:30]CheckFolder [10:19:30]dirname=/storage/ofd_packets [10:19:30]CheckFolder done [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00001878 [10:19:30]NVStorageSaveData ofd_packets/00001878 [10:19:30]File name is /storage/ofd_packets/00001878 [10:19:30]Write 461 bytes [10:19:30]NVStorageSaveData done [10:19:30]OFDSenderStorePacket done [10:19:30]KKMCreateOFDPacket done [10:19:30]NVStorageSaveData kkm_last_timestamp [10:19:30]File name is /storage/kkm_last_timestamp [10:19:30]Write 4 bytes [10:19:30]NVStorageSaveData done [10:19:30]ExternCall_PrintAddStr [10:19:30]wPrintStart [10:19:30]Write to MH i2c: 01 00 00 29 06 2F [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [10:19:30]RasterBufferAndPrint [10:19:30]line Счет N : (3)256320 [10:19:30]line ИНН: 02508201610067 [10:19:30]line Контрольно-Кассовый Чек [10:19:30]line ПРОДАЖА [10:19:30]line Товар: 4870202521261 [10:19:30]line Напиток MAXI чай 1,2 лесные ягоды [10:19:30]line 1.000 * 110.00 [10:19:30]line = 110.00 [10:19:30]line НДС 12% НСП 1% [10:19:30]line > о реализуемом товаре [10:19:30]line Товар: 48746717 [10:19:30]line Сигареты Winston XStyle Caster + Dream M [10:19:30]line 1.000 * 143.00 [10:19:30]line = 143.00 [10:19:30]line НДС 12% НСП 1% [10:19:30]line > о реализуемом товаре [10:19:30]line ИТОГО: 253.00 [10:19:30]line НСП 1% : 2.23 [10:19:30]line НДС 12% : 26.87 [10:19:30]line Наличными: 0.00 [10:19:30]line Безнал.: 253.00 [10:19:30]line Место: АЗС № 76 "Партнер Нефть" [10:19:30]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:19:30]line СНО: Общий режим [10:19:30]line Чек 47 13.07.2024 10:19 [10:19:30]line Смена: 24 ФФД: 1.0 [10:19:30]line ЗНМ: 0300000124 [10:19:30]line РНМ: 0000000000177495 [10:19:30]line Версия ККМ: 001 [10:19:30]line Платежная система: АКБ Кыргызстан [10:19:30]line ФМ: 0000000002098592 [10:19:30]line ФД: 1878 [10:19:30]line ФПД: 7928853002956 [10:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101929&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1878&fm=7928853002956&tin=02508201610067®Number=0000000000177495&sum=25300 [10:19:30]line 0 [10:19:30]written 0, free lines is 4095 [10:19:30]OFD Sender: Processing packet 1878 [packets to send 1, broken 0] [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00001878 [10:19:30]OFD Sender: To server: pG, [10:19:30]CommunicateWithHost lk.salyk.kg:30040 [10:19:30]ConnectInit lk.salyk.kg [10:19:30]Connected sock=11 [10:19: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 AF 01 00 00 E3 E7 A7 01 15 BF 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B1 54 92 66 0E 04 04 00 18 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 56 07 00 00 35 04 06 00 07 36 14 77 7A CC 20 98 C0 44 76 A5 E6 25 [10:19: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 F3 5D 47 00 03 4E 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 56 07 00 00 F4 03 04 00 E8 FF 91 66 B6 04 01 00 00 55 E0 FA A6 BD 90 80 F1 [10:19:30]CommunicateWithHost err = 0 [10:19:30]CheckOFDResponse [10:19:30]1017 (14) - 77093643461234 [10:19:30]1041 (16) - 0000000002098592 [10:19:30]1040 (4) - 1878 [10:19:30]1012 (4) - 13.07.2024 04:17 [10:19:30]1206 (1) - 0 [10:19:30]OFD Sender: Remove packet 1878 [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00001878 [10:19:30]NVStorageDeleteData [10:19:31]Write to MH i2c: 01 00 00 5B 06 61 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 5B 06 00 00 00 00 00 82 0C F6 [10:19:31]RasterBufferAndPrint [10:19:31]line [10:19:31]line [10:19:31]line [10:19:31]line [10:19:31]line [10:19:31]written 0, free lines is 3207 [10:19:31]MH_Cut [10:19:31]Write to MH i2c: D1 01 00 62 06 01 3A [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: D1 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: D1 01 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: D1 01 00 62 06 00 39 [10:19:31]Write to MH i2c: 01 00 00 63 06 69 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]OFD Sender: No OFD packet to send [10:19:31]*** Cut start [10:19:31]*** Partial cut [10:19:31]*** CUTSNS_PIN = 1 [10:19:31]*** CUTSNS_PIN = 0 [10:19:32]*** Brake cut motor [10:19:32]Read from MH i2c: 01 [10:19:32]MH_I2C_Read... [10:19:32]*** Stop cut motor [10:19:32]*** Cut end [10:19:32]Read from MH i2c: 01 07 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FF 0F 7E [10:19:32]process_action close_receipt done [10:19:32]requested_data is exist [10:19:32]produce_requested_data [10:19:32]requested_item fm.sn is exist - process it [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 11 00 00 [10:19:32]Write to MH i2c: E2 08 00 64 06 80 11 00 00 00 00 00 00 E4 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 64 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3A [10:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:19:32]wFMCommunicate OK [10:19:32]requested_item fd.num is exist - process it [10:19:32]SAM_PROTO_GetFieldsCounters [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 13 00 00 [10:19:32]Write to MH i2c: E2 08 00 65 06 80 13 00 00 00 00 00 00 E7 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 62 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 62 00 65 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 56 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [10:19: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 56 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_GetFieldsCounters done [10:19:32]requested_item shift.num is exist - process it [10:19:32]requested_item shift.opened is exist - process it [10:19:32]req_shift_opened [10:19:32]FM_GetShiftState [10:19:32]SAM_PROTO_GetShiftState [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 13 01 00 [10:19:32]Write to MH i2c: E2 08 00 66 06 80 13 01 00 00 00 00 00 E9 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:32]Read from MH i2c: E2 0E 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0E 00 66 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 74 [10:19:32]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_GetShiftState done [10:19:32]FM_GetShiftState done [10:19:32]req_shift_opened done [10:19:32]requested_item shift.open_date is exist - process it [10:19:32]req_shift_open_date [10:19:32]req_shift_open_date done [10:19:32]produce_requested_data done [10:19:32]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1878,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:19:32]process_action_free close_receipt [10:19:32]json_value_free [10:19:32]json_value_free done [10:19:32]process_json_proto returns [10:19:32]Send response to host [10:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1878,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:19:32]free response buf [10:19:32]execute_script done [10:19:32]execute_script returns [10:19:32]free content buf [10:19:32]Sock 8.Close socket [10:19:32]Sock 8.Thread stoped [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:21:58]accept exits with 9 [10:21:58]New connection [10:21:58]New thread 3066834276 created [10:21:58]Thread 3066977636 joined [10:21:58]Waiting for new connection... [10:21:58] Sock 9.Parse request [10:21:58]Sock 9.Check first char [10:21:58]Sock 9.First char is OK [10:21:58]request: POST /json_proto HTTP/1.0 [10:21:58]Method: POST [10:21:58]URL: /json_proto [10:21:58]Method is POST - this is cgi request [10:21:58]url: /json_proto [10:21:58]query_string will be loaded in cgi processing [10:21:58]execute_cgi json_proto POST (null) [10:21:58]execute_cgi path=json_proto method=POST [10:21:58]POST find Content-Length [10:21:58]Host: 172.17.35.133:8080 [10:21:58]Content-Length: 986 [10:21:58]Content-Type: application/json [10:21:58] [10:21:58]POST finish read [10:21:58]Found Content-Length = 986 [10:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 62.850, "sum" : 4500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 62.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:58]execute_script... [10:21: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)1618987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 62.850, "sum" : 4500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 62.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:58]POST & json_proto [10:21:58]process_json_proto [10:21:58]json parsed OK: [10:21:58]protocol is kg_v1.0 [10:21:58]action value=close_receipt [10:21:58]process_action close_receipt [10:21:58]cmd_close_receipt [10:21:58]MH_GetDate [10:21:58]Write to MH i2c: F0 00 00 67 06 5C [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: F0 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: F0 09 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: F0 09 00 67 06 00 47 55 92 66 1B 28 2A 66 CC [10:21:58]GetLastDocTimeStamp 1720865969 [10:21:58]current date 1720866119 [10:21:58]FM_GetShiftState [10:21:58]SAM_PROTO_GetShiftState [10:21:58]wFMCommunicate request_size=4 [10:21:58]MH_SAM_APDU [10:21:58]CAPDU: 80 13 01 00 [10:21:58]Write to MH i2c: E2 08 00 68 06 80 13 01 00 00 00 00 00 EB [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 0E 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 0E 00 68 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 76 [10:21:58]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:21:58]wFMCommunicate OK [10:21:58]SAM_PROTO_GetShiftState done [10:21:58]FM_GetShiftState done [10:21:58]opened in 1720829379 [10:21:58]opened+sec_in_day 1720915779 [10:21:58]quantity*price = 450006 [10:21:58]sum+1 = 450007 [10:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.82 НДС 12% : 477.88 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 48 13.07.2024 10:21 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Дисконтная программа ДТ номер 76 сэкономлено 62.85 сом ФМ: 0000000002098592 ФД: 1879 ФПД: 238612570638637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102159&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1879&fm=238612570638637&tin=02508201610067®Number=0000000000177495&sum=450000 [10:21:59]StoreToDocumentArchive [10:21:59]shift 24 fd 1879 [10:21:59]save to /storage/0024/doc_00001879 [10:21:59]save last doc name /storage/0024/doc_00001879 to /storage/kkm_last_doc_name [10:21:59]save OK [10:21:59]Clear old archive folders... [10:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:21:59]tlvbuf is 00FEBA90 [10:21:59]SAM_PROTO_ClearQueue [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 09 00 00 [10:21:59]Write to MH i2c: E2 08 00 75 06 80 09 00 00 00 00 00 00 ED [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]SAM_PROTO_ClearQueue done [10:21:59]KKMCreateOFDPacket [10:21:59]OFDProtocolAddRootSTLVToBuf [10:21:59]FM_MakeSignedData [10:21:59]FM_MakeSignedData [10:21:59]SAM_PROTO_SignData [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 01 02 [10:21:59]Write to MH i2c: E2 08 00 76 06 80 0D 01 02 00 00 00 00 F5 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]wFMCommunicate request_size=255 [10:21:59]MH_SAM_APDU [10:21: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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 47 55 92 66 0E 04 04 00 18 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 57 07 00 00 35 04 06 00 [10:21:59]Write to MH i2c: E2 02 01 77 06 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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 47 55 92 66 0E 04 04 00 18 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 57 07 00 00 35 04 06 00 00 00 2A [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 77 06 00 90 00 F1 [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]wFMCommunicate request_size=11 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 02 02 06 D9 04 51 83 09 2D [10:21:59]Write to MH i2c: E2 0E 00 78 06 80 0D 02 02 06 00 D9 04 51 83 09 2D 00 00 EB [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 78 06 00 90 00 F2 [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 03 02 [10:21:59]Write to MH i2c: E2 08 00 79 06 80 0D 03 02 00 00 00 00 FA [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 0B 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 0B 00 79 06 00 16 E9 CB 9F 43 AB D9 FD 90 00 28 [10:21:59]RAPDU: 16 E9 CB 9F 43 AB D9 FD 90 00 [10:21:59]wFMCommunicate OK [10:21:59]SAM_PROTO_SignData done [10:21:59]FM_MakeSignedData done [10:21:59]CreateOFDProtocolMessage [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 11 00 00 [10:21:59]Write to MH i2c: E2 08 00 7A 06 80 11 00 00 00 00 00 00 FA [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 17 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 17 00 7A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 50 [10:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:21:59]wFMCommunicate OK [10:21:59]CreateOFDProtocolMessage done [10:21:59]OFDSenderStorePacket 1879 [10:21:59]StoreOFDPacket docnum=1879 [10:21: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 F8 D3 08 01 DB 9F 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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 47 55 92 66 0E 04 04 00 18 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 57 07 00 00 35 04 06 00 D9 04 51 83 09 2D 16 E9 CB 9F 43 AB D9 FD [10:21:59]CheckFolder [10:21:59]dirname=/storage/ofd_packets [10:21:59]CheckFolder done [10:21:59]ProducePacketName [10:21:59]name=ofd_packets/00001879 [10:21:59]NVStorageSaveData ofd_packets/00001879 [10:21:59]File name is /storage/ofd_packets/00001879 [10:21:59]Write 302 bytes [10:21:59]NVStorageSaveData done [10:21:59]OFDSenderStorePacket done [10:21:59]KKMCreateOFDPacket done [10:21:59]NVStorageSaveData kkm_last_timestamp [10:21:59]File name is /storage/kkm_last_timestamp [10:21:59]Write 4 bytes [10:21:59]NVStorageSaveData done [10:21:59]ExternCall_PrintAddStr [10:21:59]wPrintStart [10:21:59]Write to MH i2c: 01 00 00 7B 06 81 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 07 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 FF 0F 96 [10:21:59]RasterBufferAndPrint [10:21:59]line Счет N : (1)1618987 [10:21:59]line ИНН: 02508201610067 [10:21:59]line Контрольно-Кассовый Чек [10:21:59]line ПРОДАЖА [10:21:59]line ТРК (МРК, ГНК) : 22 [10:21:59]line Товар: 2710194210 [10:21:59]line ДТ(л)-К-4 [10:21:59]line 62.850 * 71.60 [10:21:59]line = 4500.06 [10:21:59]line НДС 12% НСП 1% [10:21:59]line > о реализуемом товаре [10:21:59]line ОКРУГЛЕНИЕ: -0.06 [10:21:59]line ИТОГО: 4500.00 [10:21:59]line Внесено: 4500.00 [10:21:59]line СДАЧА: 0.00 [10:21:59]line НСП 1% : 39.82 [10:21:59]line НДС 12% : 477.88 [10:21:59]line Наличными: 4500.00 [10:21:59]line Безнал.: 0.00 [10:21:59]line Место: АЗС № 76 "Партнер Нефть" [10:21:59]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:21:59]line СНО: Общий режим [10:21:59]line Чек 48 13.07.2024 10:21 [10:21:59]line Смена: 24 ФФД: 1.0 [10:21:59]line ЗНМ: 0300000124 [10:21:59]line РНМ: 0000000000177495 [10:21:59]line Версия ККМ: 001 [10:21:59]line [10:21:59]line Дисконтная программа [10:21:59]line ДТ [10:21:59]line номер 76 [10:21:59]line сэкономлено 62.85 сом [10:21:59]line ФМ: 0000000002098592 [10:21:59]line ФД: 1879 [10:21:59]line ФПД: 238612570638637 [10:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102159&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1879&fm=238612570638637&tin=02508201610067®Number=0000000000177495&sum=450000 [10:22:00]OFD Sender: Processing packet 1879 [packets to send 1, broken 0] [10:22:00]ProducePacketName [10:22:00]name=ofd_packets/00001879 [10:22:00]OFD Sender: To server: pG, [10:22:00]CommunicateWithHost lk.salyk.kg:30040 [10:22:00]ConnectInit lk.salyk.kg [10:22:00]written 0, free lines is 4095 [10:22:00]Connected sock=8 [10:22: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 F8 D3 08 01 DB 9F 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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 47 55 92 66 0E 04 04 00 18 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 57 07 00 00 35 04 06 00 D9 04 51 83 09 2D 16 E9 CB 9F 43 AB D9 FD [10:22: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 8F 7B 47 00 5B 0F 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 57 07 00 00 F4 03 04 00 7D 00 92 66 B6 04 01 00 00 9C 70 1A 3C 3C 8F 1B CC [10:22:00]CommunicateWithHost err = 0 [10:22:00]CheckOFDResponse [10:22:00]1017 (14) - 77093643461234 [10:22:00]1041 (16) - 0000000002098592 [10:22:00]1040 (4) - 1879 [10:22:00]1012 (4) - 13.07.2024 04:20 [10:22:00]1206 (1) - 0 [10:22:00]OFD Sender: Remove packet 1879 [10:22:00]ProducePacketName [10:22:00]name=ofd_packets/00001879 [10:22:00]NVStorageDeleteData [10:22:00]Write to MH i2c: 01 00 00 AB 06 B1 [10:22:00]Write i2c OK [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: 01 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: 01 07 00 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 93 0C 57 [10:22:00]RasterBufferAndPrint [10:22:00]line [10:22:00]line [10:22:00]line [10:22:00]line [10:22:00]line [10:22:00]written 0, free lines is 3225 [10:22:00]MH_Cut [10:22:00]Write to MH i2c: D1 01 00 B2 06 01 8A [10:22:00]Write i2c OK [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: D1 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: D1 01 00 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: D1 01 00 B2 06 00 89 [10:22:00]Write to MH i2c: 01 00 00 B3 06 B9 [10:22:00]Write i2c OK [10:22:00]MH_I2C_Read... [10:22:01]OFD Sender: No OFD packet to send [10:22:01]*** Cut start [10:22:01]*** Partial cut [10:22:01]*** CUTSNS_PIN = 1 [10:22:01]*** CUTSNS_PIN = 0 [10:22:01]*** Brake cut motor [10:22:02]Read from MH i2c: 01 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: 01 07 00 [10:22:02]MH_I2C_Read... [10:22:02]*** Stop cut motor [10:22:02]*** Cut end [10:22:02]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [10:22:02]process_action close_receipt done [10:22:02]requested_data is exist [10:22:02]produce_requested_data [10:22:02]requested_item fm.sn is exist - process it [10:22:02]wFMCommunicate request_size=4 [10:22:02]MH_SAM_APDU [10:22:02]CAPDU: 80 11 00 00 [10:22:02]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [10:22:02]Write i2c OK [10:22:02]MH_I2C_Read... [10:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:02]Read from MH i2c: E2 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 17 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 8A [10:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:22:02]wFMCommunicate OK [10:22:02]requested_item fd.num is exist - process it [10:22:02]SAM_PROTO_GetFieldsCounters [10:22:02]wFMCommunicate request_size=4 [10:22:02]MH_SAM_APDU [10:22:02]CAPDU: 80 13 00 00 [10:22:02]Write to MH i2c: E2 08 00 B5 06 80 13 00 00 00 00 00 00 37 [10:22:02]Write i2c OK [10:22:02]MH_I2C_Read... [10:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:02]Read from MH i2c: E2 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 62 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 62 00 B5 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 57 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:22: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 57 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:02]wFMCommunicate OK [10:22:02]SAM_PROTO_GetFieldsCounters done [10:22:02]requested_item shift.num is exist - process it [10:22:02]requested_item shift.opened is exist - process it [10:22:02]req_shift_opened [10:22:02]FM_GetShiftState [10:22:02]SAM_PROTO_GetShiftState [10:22:02]wFMCommunicate request_size=4 [10:22:02]MH_SAM_APDU [10:22:02]CAPDU: 80 13 01 00 [10:22:02]Write to MH i2c: E2 08 00 B6 06 80 13 01 00 00 00 00 00 39 [10:22:02]Write i2c OK [10:22:02]MH_I2C_Read... [10:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:02]Read from MH i2c: E2 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 0E 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 0E 00 B6 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C4 [10:22:02]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:22:02]wFMCommunicate OK [10:22:02]SAM_PROTO_GetShiftState done [10:22:02]FM_GetShiftState done [10:22:02]req_shift_opened done [10:22:02]requested_item shift.open_date is exist - process it [10:22:02]req_shift_open_date [10:22:02]req_shift_open_date done [10:22:02]produce_requested_data done [10:22:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1879,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:22:02]process_action_free close_receipt [10:22:02]json_value_free [10:22:02]json_value_free done [10:22:02]process_json_proto returns [10:22:02]Send response to host [10:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1879,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:22:02]free response buf [10:22:02]execute_script done [10:22:02]execute_script returns [10:22:02]free content buf [10:22:02]Sock 9.Close socket [10:22:02]Sock 9.Thread stoped [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:38]accept exits with 10 [10:29:38]New connection [10:29:38]New thread 3066977636 created [10:29:38]Thread 3066834276 joined [10:29:38]Waiting for new connection... [10:29:38] Sock 10.Parse request [10:29:38]Sock 10.Check first char [10:29:38]Sock 10.First char is OK [10:29:38]request: POST /json_proto HTTP/1.0 [10:29:38]Method: POST [10:29:38]URL: /json_proto [10:29:38]Method is POST - this is cgi request [10:29:38]url: /json_proto [10:29:38]query_string will be loaded in cgi processing [10:29:38]execute_cgi json_proto POST (null) [10:29:38]execute_cgi path=json_proto method=POST [10:29:38]POST find Content-Length [10:29:38]Host: 172.17.35.133:8080 [10:29:38]Content-Length: 634 [10:29:38]Content-Type: application/json [10:29:38] [10:29:38]POST finish read [10:29:38]Found Content-Length = 634 [10:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256321", "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" ] } } [10:29:38]execute_script... [10:29: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)256321", "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" ] } } [10:29:38]POST & json_proto [10:29:38]process_json_proto [10:29:38]json parsed OK: [10:29:38]protocol is kg_v1.0 [10:29:38]action value=close_receipt [10:29:38]process_action close_receipt [10:29:38]cmd_close_receipt [10:29:38]MH_GetDate [10:29:38]Write to MH i2c: F0 00 00 B7 06 AC [10:29:38]Write i2c OK [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: F0 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: F0 09 00 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: F0 09 00 B7 06 00 13 57 92 66 1B 28 2A 66 EA [10:29:38]GetLastDocTimeStamp 1720866119 [10:29:38]current date 1720866579 [10:29:38]FM_GetShiftState [10:29:38]SAM_PROTO_GetShiftState [10:29:38]wFMCommunicate request_size=4 [10:29:38]MH_SAM_APDU [10:29:38]CAPDU: 80 13 01 00 [10:29:38]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [10:29:38]Write i2c OK [10:29:38]MH_I2C_Read... [10:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:38]Read from MH i2c: E2 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: E2 0E 00 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C6 [10:29:38]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:29:38]wFMCommunicate OK [10:29:38]SAM_PROTO_GetShiftState done [10:29:38]FM_GetShiftState done [10:29:38]opened in 1720829379 [10:29:38]opened+sec_in_day 1720915779 [10:29:38]quantity*price = 12000 [10:29:38]sum+1 = 12001 [10:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 49 13.07.2024 10:29 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1880 ФПД: 78542342490006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102939&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1880&fm=78542342490006&tin=02508201610067®Number=0000000000177495&sum=12000 0 [10:29:39]StoreToDocumentArchive [10:29:39]shift 24 fd 1880 [10:29:39]save to /storage/0024/doc_00001880 [10:29:39]save last doc name /storage/0024/doc_00001880 to /storage/kkm_last_doc_name [10:29:39]save OK [10:29:39]Clear old archive folders... [10:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:29:39]tlvbuf is 01006AC0 [10:29:39]SAM_PROTO_ClearQueue [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 09 00 00 [10:29:39]Write to MH i2c: E2 08 00 C5 06 80 09 00 00 00 00 00 00 3D [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_ClearQueue done [10:29:39]KKMCreateOFDPacket [10:29:39]OFDProtocolAddRootSTLVToBuf [10:29:39]FM_MakeSignedData [10:29:39]FM_MakeSignedData [10:29:39]SAM_PROTO_SignData [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 01 02 [10:29:39]Write to MH i2c: E2 08 00 C6 06 80 0D 01 02 00 00 00 00 45 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]wFMCommunicate request_size=255 [10:29:39]MH_SAM_APDU [10:29:39]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 31 00 00 00 F4 03 04 00 13 57 92 66 0E 04 04 00 18 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 [10:29:39]Write to MH i2c: E2 02 01 C7 06 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 31 00 00 00 F4 03 04 00 13 57 92 66 0E 04 04 00 18 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 83 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]wFMCommunicate request_size=30 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 02 02 19 32 30 39 38 35 39 32 10 04 04 00 58 07 00 00 35 04 06 00 47 6F 10 6C 87 96 [10:29:39]Write to MH i2c: E2 21 00 C8 06 80 0D 02 02 19 00 32 30 39 38 35 39 32 10 04 04 00 58 07 00 00 35 04 06 00 47 6F 10 6C 87 96 00 00 F2 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 03 02 [10:29:39]Write to MH i2c: E2 08 00 C9 06 80 0D 03 02 00 00 00 00 4A [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0B 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0B 00 C9 06 00 AA 48 A2 85 89 8E CD 89 90 00 D1 [10:29:39]RAPDU: AA 48 A2 85 89 8E CD 89 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_SignData done [10:29:39]FM_MakeSignedData done [10:29:39]CreateOFDProtocolMessage [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 11 00 00 [10:29:39]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 17 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A0 [10:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:29:39]wFMCommunicate OK [10:29:39]CreateOFDProtocolMessage done [10:29:39]OFDSenderStorePacket 1880 [10:29:39]StoreOFDPacket docnum=1880 [10:29: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 23 01 00 00 A5 9C 1B 01 07 04 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 31 00 00 00 F4 03 04 00 13 57 92 66 0E 04 04 00 18 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 58 07 00 00 35 04 06 00 47 6F 10 6C 87 96 AA 48 A2 85 89 8E CD 89 [10:29:39]CheckFolder [10:29:39]dirname=/storage/ofd_packets [10:29:39]CheckFolder done [10:29:39]ProducePacketName [10:29:39]name=ofd_packets/00001880 [10:29:39]NVStorageSaveData ofd_packets/00001880 [10:29:39]File name is /storage/ofd_packets/00001880 [10:29:39]Write 321 bytes [10:29:39]NVStorageSaveData done [10:29:39]OFDSenderStorePacket done [10:29:39]KKMCreateOFDPacket done [10:29:39]NVStorageSaveData kkm_last_timestamp [10:29:39]File name is /storage/kkm_last_timestamp [10:29:39]Write 4 bytes [10:29:39]NVStorageSaveData done [10:29:39]ExternCall_PrintAddStr [10:29:39]wPrintStart [10:29:39]Write to MH i2c: 01 00 00 CB 06 D1 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 07 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [10:29:39]RasterBufferAndPrint [10:29:39]line Счет N : (3)256321 [10:29:39]line ИНН: 02508201610067 [10:29:39]line Контрольно-Кассовый Чек [10:29:39]line ПРОДАЖА [10:29:39]line Товар: 4700025313937 [10:29:39]line ВОДКА МЯГКАЯ 0,1л [10:29:39]line 2.000 * 60.00 [10:29:39]line = 120.00 [10:29:39]line НДС 12% НСП 1% [10:29:39]line > о реализуемом товаре [10:29:39]line ИТОГО: 120.00 [10:29:39]line НСП 1% : 1.06 [10:29:39]line НДС 12% : 12.74 [10:29:39]line Наличными: 120.00 [10:29:39]line Безнал.: 0.00 [10:29:39]line Место: АЗС № 76 "Партнер Нефть" [10:29:39]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:29:39]line СНО: Общий режим [10:29:39]line Чек 49 13.07.2024 10:29 [10:29:39]line Смена: 24 ФФД: 1.0 [10:29:39]line ЗНМ: 0300000124 [10:29:39]line РНМ: 0000000000177495 [10:29:39]line Версия ККМ: 001 [10:29:39]line ФМ: 0000000002098592 [10:29:39]line ФД: 1880 [10:29:39]line ФПД: 78542342490006 [10:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102939&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1880&fm=78542342490006&tin=02508201610067®Number=0000000000177495&sum=12000 [10:29:40]line 0 [10:29:40]OFD Sender: Processing packet 1880 [packets to send 1, broken 0] [10:29:40]ProducePacketName [10:29:40]name=ofd_packets/00001880 [10:29:40]OFD Sender: To server: pG, [10:29:40]CommunicateWithHost lk.salyk.kg:30040 [10:29:40]ConnectInit lk.salyk.kg [10:29:40]written 0, free lines is 4095 [10:29:40]Connected sock=9 [10:29: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 23 01 00 00 A5 9C 1B 01 07 04 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 31 00 00 00 F4 03 04 00 13 57 92 66 0E 04 04 00 18 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 58 07 00 00 35 04 06 00 47 6F 10 6C 87 96 AA 48 A2 85 89 8E CD 89 [10:29: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 66 10 47 00 8C 6C 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 58 07 00 00 F4 03 04 00 49 02 92 66 B6 04 01 00 00 55 E7 C1 51 C3 C7 3A E2 [10:29:40]CommunicateWithHost err = 0 [10:29:40]CheckOFDResponse [10:29:40]1017 (14) - 77093643461234 [10:29:40]1041 (16) - 0000000002098592 [10:29:40]1040 (4) - 1880 [10:29:40]1012 (4) - 13.07.2024 04:27 [10:29:40]1206 (1) - 0 [10:29:40]OFD Sender: Remove packet 1880 [10:29:40]ProducePacketName [10:29:40]name=ofd_packets/00001880 [10:29:40]NVStorageDeleteData [10:29:40]Write to MH i2c: 01 00 00 F3 06 F9 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 18 0D 25 [10:29:40]RasterBufferAndPrint [10:29:40]line [10:29:40]line [10:29:40]line [10:29:40]line [10:29:40]line [10:29:40]written 0, free lines is 3358 [10:29:40]MH_Cut [10:29:40]Write to MH i2c: D1 01 00 FA 06 01 D2 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: D1 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: D1 01 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: D1 01 00 FA 06 00 D1 [10:29:40]Write to MH i2c: 01 00 00 FB 06 01 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:41]OFD Sender: No OFD packet to send [10:29:41]*** Cut start [10:29:41]*** Partial cut [10:29:41]*** CUTSNS_PIN = 1 [10:29:41]*** CUTSNS_PIN = 0 [10:29:41]*** Brake cut motor [10:29:41]Read from MH i2c: 01 [10:29:41]MH_I2C_Read... [10:29:41]*** Stop cut motor [10:29:41]*** Cut end [10:29:41]Read from MH i2c: 01 07 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 FB 06 00 00 00 00 00 FF 0F 16 [10:29:41]process_action close_receipt done [10:29:41]requested_data is exist [10:29:41]produce_requested_data [10:29:41]requested_item fm.sn is exist - process it [10:29:41]wFMCommunicate request_size=4 [10:29:41]MH_SAM_APDU [10:29:41]CAPDU: 80 11 00 00 [10:29:41]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:42]Read from MH i2c: E2 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 17 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D2 [10:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:29:42]wFMCommunicate OK [10:29:42]requested_item fd.num is exist - process it [10:29:42]SAM_PROTO_GetFieldsCounters [10:29:42]wFMCommunicate request_size=4 [10:29:42]MH_SAM_APDU [10:29:42]CAPDU: 80 13 00 00 [10:29:42]Write to MH i2c: E2 08 00 FD 06 80 13 00 00 00 00 00 00 7F [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:42]Read from MH i2c: E2 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 62 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 62 00 FD 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 58 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:29: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 58 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:42]wFMCommunicate OK [10:29:42]SAM_PROTO_GetFieldsCounters done [10:29:42]requested_item shift.num is exist - process it [10:29:42]requested_item shift.opened is exist - process it [10:29:42]req_shift_opened [10:29:42]FM_GetShiftState [10:29:42]SAM_PROTO_GetShiftState [10:29:42]wFMCommunicate request_size=4 [10:29:42]MH_SAM_APDU [10:29:42]CAPDU: 80 13 01 00 [10:29:42]Write to MH i2c: E2 08 00 FE 06 80 13 01 00 00 00 00 00 81 [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:42]Read from MH i2c: E2 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 0E 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 0E 00 FE 06 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0C [10:29:42]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:29:42]wFMCommunicate OK [10:29:42]SAM_PROTO_GetShiftState done [10:29:42]FM_GetShiftState done [10:29:42]req_shift_opened done [10:29:42]requested_item shift.open_date is exist - process it [10:29:42]req_shift_open_date [10:29:42]req_shift_open_date done [10:29:42]produce_requested_data done [10:29:42]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1880,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:29:42]process_action_free close_receipt [10:29:42]json_value_free [10:29:42]json_value_free done [10:29:42]process_json_proto returns [10:29:42]Send response to host [10:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1880,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:29:42]free response buf [10:29:42]execute_script done [10:29:42]execute_script returns [10:29:42]free content buf [10:29:42]Sock 10.Close socket [10:29:42]Sock 10.Thread stoped [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:24]accept exits with 8 [10:38:24]New connection [10:38:24]New thread 3066834276 created [10:38:24]Thread 3066977636 joined [10:38:24]Waiting for new connection... [10:38:24] Sock 8.Parse request [10:38:24]Sock 8.Check first char [10:38:24]Sock 8.First char is OK [10:38:24]request: POST /json_proto HTTP/1.0 [10:38:24]Method: POST [10:38:24]URL: /json_proto [10:38:24]Method is POST - this is cgi request [10:38:24]url: /json_proto [10:38:24]query_string will be loaded in cgi processing [10:38:24]execute_cgi json_proto POST (null) [10:38:24]execute_cgi path=json_proto method=POST [10:38:24]POST find Content-Length [10:38:24]Host: 172.17.35.133:8080 [10:38:24]Content-Length: 678 [10:38:24]Content-Type: application/json [10:38:24] [10:38:24]POST finish read [10:38:24]Found Content-Length = 678 [10:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618992", "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" : 9.660, "sum" : 640.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:24]execute_script... [10:38: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)1618992", "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" : 9.660, "sum" : 640.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:24]POST & json_proto [10:38:24]process_json_proto [10:38:24]json parsed OK: [10:38:24]protocol is kg_v1.0 [10:38:24]action value=close_receipt [10:38:24]process_action close_receipt [10:38:24]cmd_close_receipt [10:38:24]MH_GetDate [10:38:24]Write to MH i2c: F0 00 00 FF 06 F4 [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: F0 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: F0 09 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: F0 09 00 FF 06 00 21 59 92 66 1B 28 2A 66 42 [10:38:24]GetLastDocTimeStamp 1720866579 [10:38:24]current date 1720867105 [10:38:24]FM_GetShiftState [10:38:24]SAM_PROTO_GetShiftState [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 13 01 00 [10:38:24]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 0E 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0F [10:38:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:38:24]wFMCommunicate OK [10:38:24]SAM_PROTO_GetShiftState done [10:38:24]FM_GetShiftState done [10:38:24]opened in 1720829379 [10:38:24]opened+sec_in_day 1720915779 [10:38:24]quantity*price = 64045 [10:38:24]sum+1 = 64047 [10:38:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.01 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 50 13.07.2024 10:38 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1881 ФПД: 35591755816362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103826&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1881&fm=35591755816362&tin=02508201610067®Number=0000000000177495&sum=64000 [10:38:25]StoreToDocumentArchive [10:38:25]shift 24 fd 1881 [10:38:25]save to /storage/0024/doc_00001881 [10:38:25]save last doc name /storage/0024/doc_00001881 to /storage/kkm_last_doc_name [10:38:25]save OK [10:38:25]Clear old archive folders... [10:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:25]tlvbuf is 00FFCFC0 [10:38:25]SAM_PROTO_ClearQueue [10:38:25]wFMCommunicate request_size=4 [10:38:25]MH_SAM_APDU [10:38:25]CAPDU: 80 09 00 00 [10:38:25]Write to MH i2c: E2 08 00 0D 07 80 09 00 00 00 00 00 00 86 [10:38:25]Write i2c OK [10:38:25]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 0D 07 00 90 00 88 [10:38:26]RAPDU: 90 00 [10:38:26]wFMCommunicate OK [10:38:26]SAM_PROTO_ClearQueue done [10:38:26]KKMCreateOFDPacket [10:38:26]OFDProtocolAddRootSTLVToBuf [10:38:26]FM_MakeSignedData [10:38:26]FM_MakeSignedData [10:38:26]SAM_PROTO_SignData [10:38:26]wFMCommunicate request_size=4 [10:38:26]MH_SAM_APDU [10:38:26]CAPDU: 80 0D 01 02 [10:38:26]Write to MH i2c: E2 08 00 0E 07 80 0D 01 02 00 00 00 00 8E [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [10:38:26]RAPDU: 90 00 [10:38:26]wFMCommunicate OK [10:38:26]wFMCommunicate request_size=255 [10:38:26]MH_SAM_APDU [10:38:26]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 BC 25 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2E FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 22 59 92 66 0E 04 04 00 18 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 59 07 00 00 35 04 06 00 20 [10:38:26]Write to MH i2c: E2 02 01 0F 07 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 BC 25 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2E FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 22 59 92 66 0E 04 04 00 18 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 59 07 00 00 35 04 06 00 20 00 00 C0 [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [10:38:26]RAPDU: 90 00 [10:38:26]wFMCommunicate OK [10:38:26]wFMCommunicate request_size=10 [10:38:26]MH_SAM_APDU [10:38:26]CAPDU: 80 0D 02 02 05 5E D9 F6 5D AA [10:38:26]Write to MH i2c: E2 0D 00 10 07 80 0D 02 02 05 00 5E D9 F6 5D AA 00 00 CF [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [10:38:26]RAPDU: 90 00 [10:38:26]wFMCommunicate OK [10:38:26]wFMCommunicate request_size=4 [10:38:26]MH_SAM_APDU [10:38:26]CAPDU: 80 0D 03 02 [10:38:26]Write to MH i2c: E2 08 00 11 07 80 0D 03 02 00 00 00 00 93 [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:26]OFD Sender: No OFD packet to send [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 0B 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 0B 00 11 07 00 16 C8 BF 59 36 A3 B0 61 90 00 74 [10:38:26]RAPDU: 16 C8 BF 59 36 A3 B0 61 90 00 [10:38:26]wFMCommunicate OK [10:38:26]SAM_PROTO_SignData done [10:38:26]FM_MakeSignedData done [10:38:26]CreateOFDProtocolMessage [10:38:26]wFMCommunicate request_size=4 [10:38:26]MH_SAM_APDU [10:38:26]CAPDU: 80 11 00 00 [10:38:26]Write to MH i2c: E2 08 00 12 07 80 11 00 00 00 00 00 00 93 [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 17 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 17 00 12 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E9 [10:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:38:26]wFMCommunicate OK [10:38:26]CreateOFDProtocolMessage done [10:38:26]OFDSenderStorePacket 1881 [10:38:26]StoreOFDPacket docnum=1881 [10:38: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 0F 01 00 00 47 9E 07 01 A5 16 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 BC 25 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2E FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 22 59 92 66 0E 04 04 00 18 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 59 07 00 00 35 04 06 00 20 5E D9 F6 5D AA 16 C8 BF 59 36 A3 B0 61 [10:38:26]CheckFolder [10:38:26]dirname=/storage/ofd_packets [10:38:26]CheckFolder done [10:38:26]ProducePacketName [10:38:26]name=ofd_packets/00001881 [10:38:26]NVStorageSaveData ofd_packets/00001881 [10:38:26]File name is /storage/ofd_packets/00001881 [10:38:26]Write 301 bytes [10:38:26]NVStorageSaveData done [10:38:26]OFDSenderStorePacket done [10:38:26]KKMCreateOFDPacket done [10:38:26]NVStorageSaveData kkm_last_timestamp [10:38:26]File name is /storage/kkm_last_timestamp [10:38:26]Write 4 bytes [10:38:26]NVStorageSaveData done [10:38:26]ExternCall_PrintAddStr [10:38:26]wPrintStart [10:38:26]Write to MH i2c: 01 00 00 13 07 1A [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: 01 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: 01 07 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [10:38:26]RasterBufferAndPrint [10:38:26]line Счет N : (1)1618992 [10:38:26]line ИНН: 02508201610067 [10:38:26]line Контрольно-Кассовый Чек [10:38:26]line ПРОДАЖА [10:38:26]line ТРК (МРК, ГНК) : 33 [10:38:26]line Товар: 2710124130 [10:38:26]line Аи-92-К-5 [10:38:26]line 9.660 * 66.30 [10:38:26]line = 640.46 [10:38:26]line НДС 12% НСП 1% [10:38:26]line > о реализуемом товаре [10:38:26]line ОКРУГЛЕНИЕ: -0.46 [10:38:26]line ИТОГО: 640.00 [10:38:26]line Внесено: 640.00 [10:38:26]line СДАЧА: 0.00 [10:38:26]line НСП 1% : 5.67 [10:38:26]line НДС 12% : 68.01 [10:38:26]line Наличными: 640.00 [10:38:26]line Безнал.: 0.00 [10:38:26]line Место: АЗС № 76 "Партнер Нефть" [10:38:26]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:38:26]line СНО: Общий режим [10:38:26]line Чек 50 13.07.2024 10:38 [10:38:26]line Смена: 24 ФФД: 1.0 [10:38:26]line ЗНМ: 0300000124 [10:38:26]line РНМ: 0000000000177495 [10:38:26]line Версия ККМ: 001 [10:38:26]line ФМ: 0000000002098592 [10:38:26]line ФД: 1881 [10:38:26]line ФПД: 35591755816362 [10:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103826&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1881&fm=35591755816362&tin=02508201610067®Number=0000000000177495&sum=64000 [10:38:26]OFD Sender: Processing packet 1881 [packets to send 1, broken 0] [10:38:26]ProducePacketName [10:38:26]name=ofd_packets/00001881 [10:38:26]OFD Sender: To server: pG, [10:38:26]CommunicateWithHost lk.salyk.kg:30040 [10:38:26]ConnectInit lk.salyk.kg [10:38:26]written 0, free lines is 4095 [10:38:26]Connected sock=10 [10:38: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 47 9E 07 01 A5 16 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 BC 25 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2E FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 22 59 92 66 0E 04 04 00 18 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 59 07 00 00 35 04 06 00 20 5E D9 F6 5D AA 16 C8 BF 59 36 A3 B0 61 [10:38: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 6C 92 47 00 F1 5F 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 59 07 00 00 F4 03 04 00 58 04 92 66 B6 04 01 00 00 DE B7 99 6C 4C BA 92 97 [10:38:27]CommunicateWithHost err = 0 [10:38:27]CheckOFDResponse [10:38:27]1017 (14) - 77093643461234 [10:38:27]1041 (16) - 0000000002098592 [10:38:27]1040 (4) - 1881 [10:38:27]1012 (4) - 13.07.2024 04:36 [10:38:27]1206 (1) - 0 [10:38:27]OFD Sender: Remove packet 1881 [10:38:27]ProducePacketName [10:38:27]name=ofd_packets/00001881 [10:38:27]NVStorageDeleteData [10:38:27]Write to MH i2c: 01 00 00 3E 07 45 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: 01 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: 01 07 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 F1 0C 49 [10:38:27]RasterBufferAndPrint [10:38:27]line [10:38:27]line [10:38:27]line [10:38:27]line [10:38:27]line [10:38:27]written 0, free lines is 3319 [10:38:27]MH_Cut [10:38:27]Write to MH i2c: D1 01 00 45 07 01 1E [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: D1 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: D1 01 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: D1 01 00 45 07 00 1D [10:38:27]Write to MH i2c: 01 00 00 46 07 4D [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]OFD Sender: No OFD packet to send [10:38:28]*** Cut start [10:38:28]*** Partial cut [10:38:28]*** CUTSNS_PIN = 1 [10:38:28]*** CUTSNS_PIN = 0 [10:38:28]*** Brake cut motor [10:38:28]Read from MH i2c: 01 [10:38:28]MH_I2C_Read... [10:38:28]*** Stop cut motor [10:38:28]*** Cut end [10:38:28]Read from MH i2c: 01 07 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 07 00 46 07 00 00 00 00 00 FF 0F 62 [10:38:28]process_action close_receipt done [10:38:28]requested_data is exist [10:38:28]produce_requested_data [10:38:28]requested_item fm.sn is exist - process it [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 11 00 00 [10:38:28]Write to MH i2c: E2 08 00 47 07 80 11 00 00 00 00 00 00 C8 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 17 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 17 00 47 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1E [10:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:38:28]wFMCommunicate OK [10:38:28]requested_item fd.num is exist - process it [10:38:28]SAM_PROTO_GetFieldsCounters [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 13 00 00 [10:38:28]Write to MH i2c: E2 08 00 48 07 80 13 00 00 00 00 00 00 CB [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 62 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 62 00 48 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 59 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:38: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 59 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_GetFieldsCounters done [10:38:28]requested_item shift.num is exist - process it [10:38:28]requested_item shift.opened is exist - process it [10:38:28]req_shift_opened [10:38:28]FM_GetShiftState [10:38:28]SAM_PROTO_GetShiftState [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 13 01 00 [10:38:28]Write to MH i2c: E2 08 00 49 07 80 13 01 00 00 00 00 00 CD [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0E 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0E 00 49 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 58 [10:38:28]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_GetShiftState done [10:38:28]FM_GetShiftState done [10:38:28]req_shift_opened done [10:38:28]requested_item shift.open_date is exist - process it [10:38:28]req_shift_open_date [10:38:28]req_shift_open_date done [10:38:28]produce_requested_data done [10:38:28]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1881,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:38:28]process_action_free close_receipt [10:38:28]json_value_free [10:38:28]json_value_free done [10:38:28]process_json_proto returns [10:38:28]Send response to host [10:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1881,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:38:28]free response buf [10:38:28]execute_script done [10:38:28]execute_script returns [10:38:28]free content buf [10:38:28]Sock 8.Close socket [10:38:28]Sock 8.Thread stoped [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:23]accept exits with 9 [10:43:23]New connection [10:43:23]New thread 3066977636 created [10:43:23]Thread 3066834276 joined [10:43:23]Waiting for new connection... [10:43:23] Sock 9.Parse request [10:43:23]Sock 9.Check first char [10:43:23]Sock 9.First char is OK [10:43:23]request: POST /json_proto HTTP/1.0 [10:43:23]Method: POST [10:43:23]URL: /json_proto [10:43:23]Method is POST - this is cgi request [10:43:23]url: /json_proto [10:43:23]query_string will be loaded in cgi processing [10:43:23]execute_cgi json_proto POST (null) [10:43:23]execute_cgi path=json_proto method=POST [10:43:23]POST find Content-Length [10:43:23]Host: 172.17.35.133:8080 [10:43:23]Content-Length: 688 [10:43:23]Content-Type: application/json [10:43:23] [10:43:23]POST finish read [10:43:23]Found Content-Length = 688 [10:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618993", "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" : 30.310, "sum" : 2200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:23]execute_script... [10:43:23]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)1618993", "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" : 30.310, "sum" : 2200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:23]POST & json_proto [10:43:23]process_json_proto [10:43:23]json parsed OK: [10:43:23]protocol is kg_v1.0 [10:43:23]action value=close_receipt [10:43:23]process_action close_receipt [10:43:23]cmd_close_receipt [10:43:23]MH_GetDate [10:43:23]Write to MH i2c: F0 00 00 4A 07 40 [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: F0 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: F0 09 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: F0 09 00 4A 07 00 4D 5A 92 66 1B 28 2A 66 BB [10:43:23]GetLastDocTimeStamp 1720867106 [10:43:23]current date 1720867405 [10:43:23]FM_GetShiftState [10:43:23]SAM_PROTO_GetShiftState [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 13 01 00 [10:43:23]Write to MH i2c: E2 08 00 4B 07 80 13 01 00 00 00 00 00 CF [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 0E 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 0E 00 4B 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 5A [10:43:23]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:43:23]wFMCommunicate OK [10:43:23]SAM_PROTO_GetShiftState done [10:43:23]FM_GetShiftState done [10:43:23]opened in 1720829379 [10:43:23]opened+sec_in_day 1720915779 [10:43:23]quantity*price = 220050 [10:43:23]sum+1 = 220052 [10:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.68 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 51 13.07.2024 10:43 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1882 ФПД: 274281690150098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104325&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1882&fm=274281690150098&tin=02508201610067®Number=0000000000177495&sum=220000 [10:43:25]StoreToDocumentArchive [10:43:25]shift 24 fd 1882 [10:43:25]save to /storage/0024/doc_00001882 [10:43:25]save last doc name /storage/0024/doc_00001882 to /storage/kkm_last_doc_name [10:43:25]save OK [10:43:25]Clear old archive folders... [10:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:43:25]tlvbuf is 00FB83B0 [10:43:25]SAM_PROTO_ClearQueue [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 09 00 00 [10:43:25]Write to MH i2c: E2 08 00 58 07 80 09 00 00 00 00 00 00 D1 [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 58 07 00 90 00 D3 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]SAM_PROTO_ClearQueue done [10:43:25]KKMCreateOFDPacket [10:43:25]OFDProtocolAddRootSTLVToBuf [10:43:25]FM_MakeSignedData [10:43:25]FM_MakeSignedData [10:43:25]SAM_PROTO_SignData [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 0D 01 02 [10:43:25]Write to MH i2c: E2 08 00 59 07 80 0D 01 02 00 00 00 00 D9 [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 59 07 00 90 00 D4 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]wFMCommunicate request_size=255 [10:43:25]MH_SAM_APDU [10:43:25]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 66 76 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 93 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4D 5A 92 66 0E 04 04 00 18 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 5A 07 00 00 35 04 06 00 [10:43:25]Write to MH i2c: E2 02 01 5A 07 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 66 76 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 93 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4D 5A 92 66 0E 04 04 00 18 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 5A 07 00 00 35 04 06 00 00 00 79 [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]wFMCommunicate request_size=11 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 0D 02 02 06 F9 75 2E B5 B4 D2 [10:43:25]Write to MH i2c: E2 0E 00 5B 07 80 0D 02 02 06 00 F9 75 2E B5 B4 D2 00 00 BF [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 0D 03 02 [10:43:25]Write to MH i2c: E2 08 00 5C 07 80 0D 03 02 00 00 00 00 DE [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 0B 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 0B 00 5C 07 00 52 47 D7 E9 9C C7 03 DA 90 00 78 [10:43:25]RAPDU: 52 47 D7 E9 9C C7 03 DA 90 00 [10:43:25]wFMCommunicate OK [10:43:25]SAM_PROTO_SignData done [10:43:25]FM_MakeSignedData done [10:43:25]CreateOFDProtocolMessage [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 11 00 00 [10:43:25]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 17 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 34 [10:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:43:25]wFMCommunicate OK [10:43:25]CreateOFDProtocolMessage done [10:43:25]OFDSenderStorePacket 1882 [10:43:25]StoreOFDPacket docnum=1882 [10:43: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 10 01 00 00 7B 96 08 01 65 51 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 66 76 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 93 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4D 5A 92 66 0E 04 04 00 18 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 5A 07 00 00 35 04 06 00 F9 75 2E B5 B4 D2 52 47 D7 E9 9C C7 03 DA [10:43:25]CheckFolder [10:43:25]dirname=/storage/ofd_packets [10:43:25]CheckFolder done [10:43:25]ProducePacketName [10:43:25]name=ofd_packets/00001882 [10:43:25]NVStorageSaveData ofd_packets/00001882 [10:43:25]File name is /storage/ofd_packets/00001882 [10:43:25]Write 302 bytes [10:43:25]NVStorageSaveData done [10:43:25]OFDSenderStorePacket done [10:43:25]KKMCreateOFDPacket done [10:43:25]NVStorageSaveData kkm_last_timestamp [10:43:25]File name is /storage/kkm_last_timestamp [10:43:25]Write 4 bytes [10:43:25]NVStorageSaveData done [10:43:25]ExternCall_PrintAddStr [10:43:25]wPrintStart [10:43:25]Write to MH i2c: 01 00 00 5E 07 65 [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: 01 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: 01 07 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 FF 0F 7A [10:43:25]RasterBufferAndPrint [10:43:25]line Счет N : (1)1618993 [10:43:25]line ИНН: 02508201610067 [10:43:25]line Контрольно-Кассовый Чек [10:43:25]line ПРОДАЖА [10:43:25]line ТРК (МРК, ГНК) : 41 [10:43:25]line Товар: 2710194210 [10:43:25]line ДТ(л)-К-4 [10:43:25]line 30.310 * 72.60 [10:43:25]line = 2200.51 [10:43:25]line НДС 12% НСП 1% [10:43:25]line > о реализуемом товаре [10:43:25]line ОКРУГЛЕНИЕ: -0.51 [10:43:25]line ИТОГО: 2200.00 [10:43:25]line Внесено: 2200.00 [10:43:25]line СДАЧА: 0.00 [10:43:25]line НСП 1% : 19.47 [10:43:25]line НДС 12% : 233.68 [10:43:25]line Наличными: 2200.00 [10:43:25]line Безнал.: 0.00 [10:43:25]line Место: АЗС № 76 "Партнер Нефть" [10:43:25]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:43:25]line СНО: Общий режим [10:43:25]line Чек 51 13.07.2024 10:43 [10:43:25]line Смена: 24 ФФД: 1.0 [10:43:25]line ЗНМ: 0300000124 [10:43:25]line РНМ: 0000000000177495 [10:43:25]line Версия ККМ: 001 [10:43:25]line ФМ: 0000000002098592 [10:43:25]line ФД: 1882 [10:43:25]line ФПД: 274281690150098 [10:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104325&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1882&fm=274281690150098&tin=02508201610067®Number=0000000000177495&sum=220000 [10:43:25]OFD Sender: Processing packet 1882 [packets to send 1, broken 0] [10:43:25]ProducePacketName [10:43:25]name=ofd_packets/00001882 [10:43:25]OFD Sender: To server: pG, [10:43:25]CommunicateWithHost lk.salyk.kg:30040 [10:43:25]ConnectInit lk.salyk.kg [10:43:25]written 0, free lines is 4095 [10:43:25]Connected sock=10 [10:43: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 10 01 00 00 7B 96 08 01 65 51 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 66 76 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 93 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4D 5A 92 66 0E 04 04 00 18 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 5A 07 00 00 35 04 06 00 F9 75 2E B5 B4 D2 52 47 D7 E9 9C C7 03 DA [10:43: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 BA 28 47 00 A9 BE 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 5A 07 00 00 F4 03 04 00 83 05 92 66 B6 04 01 00 00 88 D3 CE CD 73 2B DF C4 [10:43:26]CommunicateWithHost err = 0 [10:43:26]CheckOFDResponse [10:43:26]1017 (14) - 77093643461234 [10:43:26]1041 (16) - 0000000002098592 [10:43:26]1040 (4) - 1882 [10:43:26]1012 (4) - 13.07.2024 04:41 [10:43:26]1206 (1) - 0 [10:43:26]OFD Sender: Remove packet 1882 [10:43:26]ProducePacketName [10:43:26]name=ofd_packets/00001882 [10:43:26]NVStorageDeleteData [10:43:26]Write to MH i2c: 01 00 00 89 07 90 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 07 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 07 00 89 07 00 00 00 00 00 F7 0C 9A [10:43:26]RasterBufferAndPrint [10:43:26]line [10:43:26]line [10:43:26]line [10:43:26]line [10:43:26]line [10:43:26]written 0, free lines is 3326 [10:43:26]MH_Cut [10:43:26]Write to MH i2c: D1 01 00 90 07 01 69 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: D1 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: D1 01 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: D1 01 00 90 07 00 68 [10:43:26]Write to MH i2c: 01 00 00 91 07 98 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]OFD Sender: No OFD packet to send [10:43:27]*** Cut start [10:43:27]*** Partial cut [10:43:27]*** CUTSNS_PIN = 1 [10:43:27]*** CUTSNS_PIN = 0 [10:43:27]*** Brake cut motor [10:43:27]Read from MH i2c: 01 [10:43:27]MH_I2C_Read... [10:43:27]*** Stop cut motor [10:43:27]*** Cut end [10:43:27]Read from MH i2c: 01 07 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [10:43:27]process_action close_receipt done [10:43:27]requested_data is exist [10:43:27]produce_requested_data [10:43:27]requested_item fm.sn is exist - process it [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 11 00 00 [10:43:27]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 17 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 69 [10:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:43:27]wFMCommunicate OK [10:43:27]requested_item fd.num is exist - process it [10:43:27]SAM_PROTO_GetFieldsCounters [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 13 00 00 [10:43:27]Write to MH i2c: E2 08 00 93 07 80 13 00 00 00 00 00 00 16 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 62 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 62 00 93 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 5A 07 00 00 0E 04 04 00 18 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 54 [10:43: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 5A 07 00 00 0E 04 04 00 18 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 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_GetFieldsCounters done [10:43:27]requested_item shift.num is exist - process it [10:43:27]requested_item shift.opened is exist - process it [10:43:27]req_shift_opened [10:43:27]FM_GetShiftState [10:43:27]SAM_PROTO_GetShiftState [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 13 01 00 [10:43:27]Write to MH i2c: E2 08 00 94 07 80 13 01 00 00 00 00 00 18 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0E 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0E 00 94 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A3 [10:43:27]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_GetShiftState done [10:43:27]FM_GetShiftState done [10:43:27]req_shift_opened done [10:43:27]requested_item shift.open_date is exist - process it [10:43:27]req_shift_open_date [10:43:27]req_shift_open_date done [10:43:27]produce_requested_data done [10:43:27]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1882,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:43:27]process_action_free close_receipt [10:43:27]json_value_free [10:43:27]json_value_free done [10:43:27]process_json_proto returns [10:43:27]Send response to host [10:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1882,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:43:27]free response buf [10:43:27]execute_script done [10:43:27]execute_script returns [10:43:27]free content buf [10:43:27]Sock 9.Close socket [10:43:27]Sock 9.Thread stoped [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:07]accept exits with 8 [10:45:07]New connection [10:45:07]New thread 3066834276 created [10:45:07]Thread 3066977636 joined [10:45:07]Waiting for new connection... [10:45:07] Sock 8.Parse request [10:45:07]Sock 8.Check first char [10:45:07]Sock 8.First char is OK [10:45:07]request: POST /json_proto HTTP/1.0 [10:45:07]Method: POST [10:45:07]URL: /json_proto [10:45:07]Method is POST - this is cgi request [10:45:07]url: /json_proto [10:45:07]query_string will be loaded in cgi processing [10:45:07]execute_cgi json_proto POST (null) [10:45:07]execute_cgi path=json_proto method=POST [10:45:07]POST find Content-Length [10:45:07]Host: 172.17.35.133:8080 [10:45:07]Content-Length: 842 [10:45:07]Content-Type: application/json [10:45:07] [10:45:07]POST finish read [10:45:07]Found Content-Length = 842 [10:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618994", "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" : 12.070, "sum" : 800.24, "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" : 800.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:07]execute_script... [10:45:07]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)1618994", "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" : 12.070, "sum" : 800.24, "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" : 800.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:07]POST & json_proto [10:45:07]process_json_proto [10:45:07]json parsed OK: [10:45:07]protocol is kg_v1.0 [10:45:07]action value=close_receipt [10:45:07]process_action close_receipt [10:45:07]cmd_close_receipt [10:45:07]MH_GetDate [10:45:07]Write to MH i2c: F0 00 00 95 07 8B [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: F0 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: F0 09 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: F0 09 00 95 07 00 B4 5A 92 66 1B 28 2A 66 6D [10:45:07]GetLastDocTimeStamp 1720867405 [10:45:07]current date 1720867508 [10:45:07]FM_GetShiftState [10:45:07]SAM_PROTO_GetShiftState [10:45:07]wFMCommunicate request_size=4 [10:45:07]MH_SAM_APDU [10:45:07]CAPDU: 80 13 01 00 [10:45:07]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:07]Read from MH i2c: E2 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 0E 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A5 [10:45:07]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:45:07]wFMCommunicate OK [10:45:07]SAM_PROTO_GetShiftState done [10:45:07]FM_GetShiftState done [10:45:07]opened in 1720829379 [10:45:07]opened+sec_in_day 1720915779 [10:45:07]quantity*price = 80024 [10:45:07]sum+1 = 80025 [10:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.24 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.24 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 52 13.07.2024 10:45 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1883 ФПД: 204566976317156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104508&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1883&fm=204566976317156&tin=02508201610067®Number=0000000000177495&sum=80024 [10:45:08]StoreToDocumentArchive [10:45:08]shift 24 fd 1883 [10:45:08]save to /storage/0024/doc_00001883 [10:45:08]save last doc name /storage/0024/doc_00001883 to /storage/kkm_last_doc_name [10:45:08]save OK [10:45:08]Clear old archive folders... [10:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:08]tlvbuf is 00FE2490 [10:45:08]SAM_PROTO_ClearQueue [10:45:08]wFMCommunicate request_size=4 [10:45:08]MH_SAM_APDU [10:45:08]CAPDU: 80 09 00 00 [10:45:08]Write to MH i2c: E2 08 00 A3 07 80 09 00 00 00 00 00 00 1C [10:45:08]Write i2c OK [10:45:08]MH_I2C_Read... [10:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:08]Read from MH i2c: E2 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [10:45:08]RAPDU: 90 00 [10:45:08]wFMCommunicate OK [10:45:08]SAM_PROTO_ClearQueue done [10:45:08]KKMCreateOFDPacket [10:45:08]OFDProtocolAddRootSTLVToBuf [10:45:08]FM_MakeSignedData [10:45:08]FM_MakeSignedData [10:45:08]SAM_PROTO_SignData [10:45:08]wFMCommunicate request_size=4 [10:45:08]MH_SAM_APDU [10:45:08]CAPDU: 80 0D 01 02 [10:45:08]Write to MH i2c: E2 08 00 A4 07 80 0D 01 02 00 00 00 00 24 [10:45:08]Write i2c OK [10:45:08]MH_I2C_Read... [10:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:08]Read from MH i2c: E2 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [10:45:08]RAPDU: 90 00 [10:45:08]wFMCommunicate OK [10:45:08]wFMCommunicate request_size=255 [10:45:08]MH_SAM_APDU [10:45:08]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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 5A 92 66 0E 04 04 00 18 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 5B 07 00 00 35 04 06 00 BA [10:45:08]Write to MH i2c: E2 02 01 A5 07 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 5A 92 66 0E 04 04 00 18 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 5B 07 00 00 35 04 06 00 BA 00 00 87 [10:45:08]Write i2c OK [10:45:08]MH_I2C_Read... [10:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:08]Read from MH i2c: E2 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [10:45:08]RAPDU: 90 00 [10:45:08]wFMCommunicate OK [10:45:08]wFMCommunicate request_size=10 [10:45:08]MH_SAM_APDU [10:45:08]CAPDU: 80 0D 02 02 05 0D 75 F4 C6 E4 [10:45:08]Write to MH i2c: E2 0D 00 A6 07 80 0D 02 02 05 00 0D 75 F4 C6 E4 00 00 51 [10:45:08]Write i2c OK [10:45:08]MH_I2C_Read... [10:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:08]Read from MH i2c: E2 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [10:45:08]RAPDU: 90 00 [10:45:08]wFMCommunicate OK [10:45:08]wFMCommunicate request_size=4 [10:45:08]MH_SAM_APDU [10:45:08]CAPDU: 80 0D 03 02 [10:45:08]Write to MH i2c: E2 08 00 A7 07 80 0D 03 02 00 00 00 00 29 [10:45:08]Write i2c OK [10:45:08]MH_I2C_Read... [10:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:08]Read from MH i2c: E2 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 0B 00 [10:45:08]MH_I2C_Read... [10:45:08]Read from MH i2c: E2 0B 00 A7 07 00 02 1E 45 EC B4 B1 5A 73 90 00 AD [10:45:09]RAPDU: 02 1E 45 EC B4 B1 5A 73 90 00 [10:45:09]wFMCommunicate OK [10:45:09]SAM_PROTO_SignData done [10:45:09]FM_MakeSignedData done [10:45:09]CreateOFDProtocolMessage [10:45:09]wFMCommunicate request_size=4 [10:45:09]MH_SAM_APDU [10:45:09]CAPDU: 80 11 00 00 [10:45:09]Write to MH i2c: E2 08 00 A8 07 80 11 00 00 00 00 00 00 29 [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:09]Read from MH i2c: E2 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: E2 17 00 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: E2 17 00 A8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7F [10:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:45:09]wFMCommunicate OK [10:45:09]CreateOFDProtocolMessage done [10:45:09]OFDSenderStorePacket 1883 [10:45:09]StoreOFDPacket docnum=1883 [10:45: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 0F 01 00 00 95 5E 07 01 36 E5 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 5A 92 66 0E 04 04 00 18 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 5B 07 00 00 35 04 06 00 BA 0D 75 F4 C6 E4 02 1E 45 EC B4 B1 5A 73 [10:45:09]CheckFolder [10:45:09]dirname=/storage/ofd_packets [10:45:09]CheckFolder done [10:45:09]ProducePacketName [10:45:09]name=ofd_packets/00001883 [10:45:09]NVStorageSaveData ofd_packets/00001883 [10:45:09]File name is /storage/ofd_packets/00001883 [10:45:09]Write 301 bytes [10:45:09]NVStorageSaveData done [10:45:09]OFDSenderStorePacket done [10:45:09]KKMCreateOFDPacket done [10:45:09]NVStorageSaveData kkm_last_timestamp [10:45:09]File name is /storage/kkm_last_timestamp [10:45:09]Write 4 bytes [10:45:09]NVStorageSaveData done [10:45:09]ExternCall_PrintAddStr [10:45:09]wPrintStart [10:45:09]Write to MH i2c: 01 00 00 A9 07 B0 [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: 01 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: 01 07 00 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [10:45:09]RasterBufferAndPrint [10:45:09]line Счет N : (1)1618994 [10:45:09]line ИНН: 02508201610067 [10:45:09]line Контрольно-Кассовый Чек [10:45:09]line ПРОДАЖА [10:45:09]line ТРК (МРК, ГНК) : 33 [10:45:09]line Товар: 2710124130 [10:45:09]line Аи-92-К-5 [10:45:09]line 12.070 * 66.30 [10:45:09]line = 800.24 [10:45:09]line НДС 12% НСП 1% [10:45:09]line > о реализуемом товаре [10:45:09]line ИТОГО: 800.24 [10:45:09]line НСП 1% : 7.08 [10:45:09]line НДС 12% : 84.98 [10:45:09]line Наличными: 0.00 [10:45:09]line Безнал.: 800.24 [10:45:09]line Место: АЗС № 76 "Партнер Нефть" [10:45:09]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:45:09]line СНО: Общий режим [10:45:09]line Чек 52 13.07.2024 10:45 [10:45:09]line Смена: 24 ФФД: 1.0 [10:45:09]line ЗНМ: 0300000124 [10:45:09]line РНМ: 0000000000177495 [10:45:09]line Версия ККМ: 001 [10:45:09]line Платежная система: АКБ Кыргызстан [10:45:09]line ФМ: 0000000002098592 [10:45:09]line ФД: 1883 [10:45:09]line ФПД: 204566976317156 [10:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104508&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1883&fm=204566976317156&tin=02508201610067®Number=0000000000177495&sum=80024 [10:45:09]OFD Sender: Processing packet 1883 [packets to send 1, broken 0] [10:45:09]ProducePacketName [10:45:09]name=ofd_packets/00001883 [10:45:09]OFD Sender: To server: pG, [10:45:09]CommunicateWithHost lk.salyk.kg:30040 [10:45:09]ConnectInit lk.salyk.kg [10:45:09]written 0, free lines is 4095 [10:45:09]Connected sock=10 [10:45: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 0F 01 00 00 95 5E 07 01 36 E5 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 5A 92 66 0E 04 04 00 18 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 5B 07 00 00 35 04 06 00 BA 0D 75 F4 C6 E4 02 1E 45 EC B4 B1 5A 73 [10:45: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 E2 F4 47 00 BE 0F 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 5B 07 00 00 F4 03 04 00 EA 05 92 66 B6 04 01 00 00 68 4C AF 46 F3 48 D3 BF [10:45:09]CommunicateWithHost err = 0 [10:45:09]CheckOFDResponse [10:45:09]1017 (14) - 77093643461234 [10:45:09]1041 (16) - 0000000002098592 [10:45:09]1040 (4) - 1883 [10:45:09]1012 (4) - 13.07.2024 04:43 [10:45:09]1206 (1) - 0 [10:45:09]OFD Sender: Remove packet 1883 [10:45:09]ProducePacketName [10:45:09]name=ofd_packets/00001883 [10:45:09]NVStorageDeleteData [10:45:09]Write to MH i2c: 01 00 00 D3 07 DA [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: 01 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: 01 07 00 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: 01 07 00 D3 07 00 00 00 00 00 09 0D F7 [10:45:09]RasterBufferAndPrint [10:45:09]line [10:45:09]line [10:45:09]line [10:45:09]line [10:45:09]line [10:45:09]written 0, free lines is 3343 [10:45:09]MH_Cut [10:45:09]Write to MH i2c: D1 01 00 DA 07 01 B3 [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: D1 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: D1 01 00 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: D1 01 00 DA 07 00 B2 [10:45:09]Write to MH i2c: 01 00 00 DB 07 E2 [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:10]OFD Sender: No OFD packet to send [10:45:10]*** Cut start [10:45:10]*** Partial cut [10:45:10]*** CUTSNS_PIN = 1 [10:45:10]*** CUTSNS_PIN = 0 [10:45:10]*** Brake cut motor [10:45:11]Read from MH i2c: 01 [10:45:11]MH_I2C_Read... [10:45:11]*** Stop cut motor [10:45:11]*** Cut end [10:45:11]Read from MH i2c: 01 07 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [10:45:11]process_action close_receipt done [10:45:11]requested_data is exist [10:45:11]produce_requested_data [10:45:11]requested_item fm.sn is exist - process it [10:45:11]wFMCommunicate request_size=4 [10:45:11]MH_SAM_APDU [10:45:11]CAPDU: 80 11 00 00 [10:45:11]Write to MH i2c: E2 08 00 DC 07 80 11 00 00 00 00 00 00 5D [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 17 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 17 00 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B3 [10:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:45:11]wFMCommunicate OK [10:45:11]requested_item fd.num is exist - process it [10:45:11]SAM_PROTO_GetFieldsCounters [10:45:11]wFMCommunicate request_size=4 [10:45:11]MH_SAM_APDU [10:45:11]CAPDU: 80 13 00 00 [10:45:11]Write to MH i2c: E2 08 00 DD 07 80 13 00 00 00 00 00 00 60 [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 62 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 62 00 DD 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 5B 07 00 00 0E 04 04 00 18 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 A2 [10:45: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 5B 07 00 00 0E 04 04 00 18 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 [10:45:11]wFMCommunicate OK [10:45:11]SAM_PROTO_GetFieldsCounters done [10:45:11]requested_item shift.num is exist - process it [10:45:11]requested_item shift.opened is exist - process it [10:45:11]req_shift_opened [10:45:11]FM_GetShiftState [10:45:11]SAM_PROTO_GetShiftState [10:45:11]wFMCommunicate request_size=4 [10:45:11]MH_SAM_APDU [10:45:11]CAPDU: 80 13 01 00 [10:45:11]Write to MH i2c: E2 08 00 DE 07 80 13 01 00 00 00 00 00 62 [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 0E 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 0E 00 DE 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 ED [10:45:11]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:45:11]wFMCommunicate OK [10:45:11]SAM_PROTO_GetShiftState done [10:45:11]FM_GetShiftState done [10:45:11]req_shift_opened done [10:45:11]requested_item shift.open_date is exist - process it [10:45:11]req_shift_open_date [10:45:11]req_shift_open_date done [10:45:11]produce_requested_data done [10:45:11]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1883,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:45:11]process_action_free close_receipt [10:45:11]json_value_free [10:45:11]json_value_free done [10:45:11]process_json_proto returns [10:45:11]Send response to host [10:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1883,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:45:11]free response buf [10:45:11]execute_script done [10:45:11]execute_script returns [10:45:11]free content buf [10:45:11]Sock 8.Close socket [10:45:11]Sock 8.Thread stoped [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:10]accept exits with 9 [10:53:10]New connection [10:53:10]New thread 3066977636 created [10:53:10]Thread 3066834276 joined [10:53:10]Waiting for new connection... [10:53:10] Sock 9.Parse request [10:53:10]Sock 9.Check first char [10:53:10]Sock 9.First char is OK [10:53:10]request: POST /json_proto HTTP/1.0 [10:53:10]Method: POST [10:53:10]URL: /json_proto [10:53:10]Method is POST - this is cgi request [10:53:10]url: /json_proto [10:53:10]query_string will be loaded in cgi processing [10:53:10]execute_cgi json_proto POST (null) [10:53:10]execute_cgi path=json_proto method=POST [10:53:10]POST find Content-Length [10:53:10]Host: 172.17.35.133:8080 [10:53:10]Content-Length: 641 [10:53:10]Content-Type: application/json [10:53:10] [10:53:10]POST finish read [10:53:10]Found Content-Length = 641 [10:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618995", "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" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:10]execute_script... [10:53: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 : (1)1618995", "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" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:10]POST & json_proto [10:53:10]process_json_proto [10:53:10]json parsed OK: [10:53:10]protocol is kg_v1.0 [10:53:10]action value=close_receipt [10:53:10]process_action close_receipt [10:53:10]cmd_close_receipt [10:53:10]MH_GetDate [10:53:10]Write to MH i2c: F0 00 00 DF 07 D5 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: F0 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: F0 09 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: F0 09 00 DF 07 00 97 5C 92 66 1B 28 2A 66 9C [10:53:10]GetLastDocTimeStamp 1720867508 [10:53:10]current date 1720867991 [10:53:10]FM_GetShiftState [10:53:10]SAM_PROTO_GetShiftState [10:53:10]wFMCommunicate request_size=4 [10:53:10]MH_SAM_APDU [10:53:10]CAPDU: 80 13 01 00 [10:53:10]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:10]Read from MH i2c: E2 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 0E 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EF [10:53:10]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:53:10]wFMCommunicate OK [10:53:10]SAM_PROTO_GetShiftState done [10:53:10]FM_GetShiftState done [10:53:10]opened in 1720829379 [10:53:10]opened+sec_in_day 1720915779 [10:53:10]quantity*price = 66300 [10:53:10]sum+1 = 66301 [10:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 53 13.07.2024 10:53 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1884 ФПД: 141382708710067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105312&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1884&fm=141382708710067&tin=02508201610067®Number=0000000000177495&sum=66300 [10:53:11]StoreToDocumentArchive [10:53:11]shift 24 fd 1884 [10:53:11]save to /storage/0024/doc_00001884 [10:53:11]save last doc name /storage/0024/doc_00001884 to /storage/kkm_last_doc_name [10:53:11]save OK [10:53:11]Clear old archive folders... [10:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:11]tlvbuf is 00FE3060 [10:53:11]SAM_PROTO_ClearQueue [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 09 00 00 [10:53:11]Write to MH i2c: E2 08 00 ED 07 80 09 00 00 00 00 00 00 66 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [10:53:11]RAPDU: 90 00 [10:53:11]wFMCommunicate OK [10:53:11]SAM_PROTO_ClearQueue done [10:53:11]KKMCreateOFDPacket [10:53:11]OFDProtocolAddRootSTLVToBuf [10:53:11]FM_MakeSignedData [10:53:11]FM_MakeSignedData [10:53:11]SAM_PROTO_SignData [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 0D 01 02 [10:53:11]Write to MH i2c: E2 08 00 EE 07 80 0D 01 02 00 00 00 00 6E [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [10:53:12]RAPDU: 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=255 [10:53:12]MH_SAM_APDU [10:53:12]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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 98 5C 92 66 0E 04 04 00 18 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 5C 07 00 00 35 04 06 00 80 [10:53:12]Write to MH i2c: E2 02 01 EF 07 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 98 5C 92 66 0E 04 04 00 18 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 5C 07 00 00 35 04 06 00 80 00 00 BB [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [10:53:12]RAPDU: 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=10 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 0D 02 02 05 96 3A 21 4A B3 [10:53:12]Write to MH i2c: E2 0D 00 F0 07 80 0D 02 02 05 00 96 3A 21 4A B3 00 00 69 [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [10:53:12]RAPDU: 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 0D 03 02 [10:53:12]Write to MH i2c: E2 08 00 F1 07 80 0D 03 02 00 00 00 00 73 [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 0B 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 0B 00 F1 07 00 8C 31 8C C5 44 3F 04 82 90 00 8B [10:53:12]RAPDU: 8C 31 8C C5 44 3F 04 82 90 00 [10:53:12]wFMCommunicate OK [10:53:12]SAM_PROTO_SignData done [10:53:12]FM_MakeSignedData done [10:53:12]CreateOFDProtocolMessage [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 11 00 00 [10:53:12]Write to MH i2c: E2 08 00 F2 07 80 11 00 00 00 00 00 00 73 [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 17 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 17 00 F2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C9 [10:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:53:12]wFMCommunicate OK [10:53:12]CreateOFDProtocolMessage done [10:53:12]OFDSenderStorePacket 1884 [10:53:12]StoreOFDPacket docnum=1884 [10:53:12]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 9F B3 07 01 FD F9 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 98 5C 92 66 0E 04 04 00 18 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 5C 07 00 00 35 04 06 00 80 96 3A 21 4A B3 8C 31 8C C5 44 3F 04 82 [10:53:12]CheckFolder [10:53:12]dirname=/storage/ofd_packets [10:53:12]CheckFolder done [10:53:12]ProducePacketName [10:53:12]name=ofd_packets/00001884 [10:53:12]NVStorageSaveData ofd_packets/00001884 [10:53:12]File name is /storage/ofd_packets/00001884 [10:53:12]Write 301 bytes [10:53:12]NVStorageSaveData done [10:53:12]OFDSenderStorePacket done [10:53:12]KKMCreateOFDPacket done [10:53:12]NVStorageSaveData kkm_last_timestamp [10:53:12]File name is /storage/kkm_last_timestamp [10:53:12]Write 4 bytes [10:53:12]NVStorageSaveData done [10:53:12]ExternCall_PrintAddStr [10:53:12]wPrintStart [10:53:12]Write to MH i2c: 01 00 00 F3 07 FA [10:53:12]OFD Sender: Processing packet 1884 [packets to send 1, broken 0] [10:53:12]ProducePacketName [10:53:12]name=ofd_packets/00001884 [10:53:12]OFD Sender: To server: pG, [10:53:12]CommunicateWithHost lk.salyk.kg:30040 [10:53:12]ConnectInit lk.salyk.kg [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: 01 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: 01 07 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [10:53:12]RasterBufferAndPrint [10:53:12]line Счет N : (1)1618995 [10:53:12]line ИНН: 02508201610067 [10:53:12]line Контрольно-Кассовый Чек [10:53:12]line ПРОДАЖА [10:53:12]line ТРК (МРК, ГНК) : 33 [10:53:12]line Товар: 2710124130 [10:53:12]line Аи-92-К-5 [10:53:12]line 10.000 * 66.30 [10:53:12]line = 663.00 [10:53:12]line НДС 12% НСП 1% [10:53:12]line > о реализуемом товаре [10:53:12]line ИТОГО: 663.00 [10:53:12]line НСП 1% : 5.87 [10:53:12]line НДС 12% : 70.41 [10:53:12]line Наличными: 663.00 [10:53:12]line Безнал.: 0.00 [10:53:12]line Место: АЗС № 76 "Партнер Нефть" [10:53:12]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [10:53:12]line СНО: Общий режим [10:53:12]line Чек 53 13.07.2024 10:53 [10:53:12]line Смена: 24 ФФД: 1.0 [10:53:12]line ЗНМ: 0300000124 [10:53:12]line РНМ: 0000000000177495 [10:53:12]line Версия ККМ: 001 [10:53:12]line ФМ: 0000000002098592 [10:53:12]line ФД: 1884 [10:53:12]line ФПД: 141382708710067 [10:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105312&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1884&fm=141382708710067&tin=02508201610067®Number=0000000000177495&sum=66300 [10:53:12]Connected sock=10 [10:53: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 0F 01 00 00 9F B3 07 01 FD F9 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 98 5C 92 66 0E 04 04 00 18 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 5C 07 00 00 35 04 06 00 80 96 3A 21 4A B3 8C 31 8C C5 44 3F 04 82 [10:53:12]written 0, free lines is 4095 [10:53: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 B8 3E 47 00 A2 66 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 5C 07 00 00 F4 03 04 00 CE 07 92 66 B6 04 01 00 00 3D 68 93 CD A9 64 E3 2C [10:53:12]CommunicateWithHost err = 0 [10:53:12]CheckOFDResponse [10:53:12]1017 (14) - 77093643461234 [10:53:12]1041 (16) - 0000000002098592 [10:53:12]1040 (4) - 1884 [10:53:12]1012 (4) - 13.07.2024 04:51 [10:53:12]1206 (1) - 0 [10:53:12]OFD Sender: Remove packet 1884 [10:53:12]ProducePacketName [10:53:12]name=ofd_packets/00001884 [10:53:12]NVStorageDeleteData [10:53:13]Write to MH i2c: 01 00 00 1B 08 23 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 19 0D 50 [10:53:13]RasterBufferAndPrint [10:53:13]line [10:53:13]line [10:53:13]line [10:53:13]line [10:53:13]line [10:53:13]written 0, free lines is 3358 [10:53:13]MH_Cut [10:53:13]Write to MH i2c: D1 01 00 22 08 01 FC [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: D1 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: D1 01 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: D1 01 00 22 08 00 FB [10:53:13]Write to MH i2c: 01 00 00 23 08 2B [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]OFD Sender: No OFD packet to send [10:53:13]*** Cut start [10:53:13]*** Partial cut [10:53:13]*** CUTSNS_PIN = 1 [10:53:13]*** CUTSNS_PIN = 0 [10:53:14]*** Brake cut motor [10:53:14]Read from MH i2c: 01 [10:53:14]MH_I2C_Read... [10:53:14]*** Stop cut motor [10:53:14]*** Cut end [10:53:14]Read from MH i2c: 01 07 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [10:53:14]process_action close_receipt done [10:53:14]requested_data is exist [10:53:14]produce_requested_data [10:53:14]requested_item fm.sn is exist - process it [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 11 00 00 [10:53:14]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 17 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FC [10:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [10:53:14]wFMCommunicate OK [10:53:14]requested_item fd.num is exist - process it [10:53:14]SAM_PROTO_GetFieldsCounters [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 13 00 00 [10:53:14]Write to MH i2c: E2 08 00 25 08 80 13 00 00 00 00 00 00 A9 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 62 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 62 00 25 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 5C 07 00 00 0E 04 04 00 18 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 EF [10:53:14]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 5C 07 00 00 0E 04 04 00 18 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 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_GetFieldsCounters done [10:53:14]requested_item shift.num is exist - process it [10:53:14]requested_item shift.opened is exist - process it [10:53:14]req_shift_opened [10:53:14]FM_GetShiftState [10:53:14]SAM_PROTO_GetShiftState [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 13 01 00 [10:53:14]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:14]Read from MH i2c: E2 0E 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 36 [10:53:14]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_GetShiftState done [10:53:14]FM_GetShiftState done [10:53:14]req_shift_opened done [10:53:14]requested_item shift.open_date is exist - process it [10:53:14]req_shift_open_date [10:53:14]req_shift_open_date done [10:53:14]produce_requested_data done [10:53:14]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1884,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [10:53:14]process_action_free close_receipt [10:53:14]json_value_free [10:53:14]json_value_free done [10:53:14]process_json_proto returns [10:53:14]Send response to host [10:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1884,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [10:53:14]free response buf [10:53:14]execute_script done [10:53:14]execute_script returns [10:53:14]free content buf [10:53:14]Sock 9.Close socket [10:53:14]Sock 9.Thread stoped [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:19]accept exits with 8 [11:01:19]New connection [11:01:19]New thread 3066834276 created [11:01:19]Thread 3066977636 joined [11:01:19]Waiting for new connection... [11:01:19] Sock 8.Parse request [11:01:19]Sock 8.Check first char [11:01:19]Sock 8.First char is OK [11:01:19]request: POST /json_proto HTTP/1.0 [11:01:19]Method: POST [11:01:19]URL: /json_proto [11:01:19]Method is POST - this is cgi request [11:01:19]url: /json_proto [11:01:19]query_string will be loaded in cgi processing [11:01:19]execute_cgi json_proto POST (null) [11:01:19]execute_cgi path=json_proto method=POST [11:01:19]POST find Content-Length [11:01:19]Host: 172.17.35.133:8080 [11:01:19]Content-Length: 683 [11:01:19]Content-Type: application/json [11:01:19] [11:01:19]POST finish read [11:01:19]Found Content-Length = 683 [11:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 9.920, "sum" : 720.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:19]execute_script... [11:01:19]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)1618997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 9.920, "sum" : 720.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:19]POST & json_proto [11:01:19]process_json_proto [11:01:19]json parsed OK: [11:01:19]protocol is kg_v1.0 [11:01:19]action value=close_receipt [11:01:19]process_action close_receipt [11:01:19]cmd_close_receipt [11:01:19]MH_GetDate [11:01:19]Write to MH i2c: F0 00 00 27 08 1E [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: F0 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: F0 09 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: F0 09 00 27 08 00 80 5E 92 66 1B 28 2A 66 D0 [11:01:19]GetLastDocTimeStamp 1720867992 [11:01:19]current date 1720868480 [11:01:19]FM_GetShiftState [11:01:19]SAM_PROTO_GetShiftState [11:01:19]wFMCommunicate request_size=4 [11:01:19]MH_SAM_APDU [11:01:19]CAPDU: 80 13 01 00 [11:01:19]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:19]Read from MH i2c: E2 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 0E 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 38 [11:01:19]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:01:19]wFMCommunicate OK [11:01:19]SAM_PROTO_GetShiftState done [11:01:19]FM_GetShiftState done [11:01:19]opened in 1720829379 [11:01:19]opened+sec_in_day 1720915779 [11:01:19]quantity*price = 72019 [11:01:19]sum+1 = 72020 [11:01:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.48 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 54 13.07.2024 11:01 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1885 ФПД: 246687428818319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110120&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1885&fm=246687428818319&tin=02508201610067®Number=0000000000177495&sum=72000 [11:01:20]StoreToDocumentArchive [11:01:20]shift 24 fd 1885 [11:01:20]save to /storage/0024/doc_00001885 [11:01:20]save last doc name /storage/0024/doc_00001885 to /storage/kkm_last_doc_name [11:01:20]save OK [11:01:20]Clear old archive folders... [11:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:01:20]tlvbuf is 00FE2F00 [11:01:20]SAM_PROTO_ClearQueue [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 09 00 00 [11:01:20]Write to MH i2c: E2 08 00 35 08 80 09 00 00 00 00 00 00 AF [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [11:01:20]RAPDU: 90 00 [11:01:20]wFMCommunicate OK [11:01:20]SAM_PROTO_ClearQueue done [11:01:20]KKMCreateOFDPacket [11:01:20]OFDProtocolAddRootSTLVToBuf [11:01:20]FM_MakeSignedData [11:01:20]FM_MakeSignedData [11:01:20]SAM_PROTO_SignData [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 0D 01 02 [11:01:20]Write to MH i2c: E2 08 00 36 08 80 0D 01 02 00 00 00 00 B7 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [11:01:20]RAPDU: 90 00 [11:01:20]wFMCommunicate OK [11:01:20]wFMCommunicate request_size=255 [11:01:20]MH_SAM_APDU [11:01:20]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 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 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 80 5E 92 66 0E 04 04 00 18 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 5D 07 00 00 35 04 06 00 [11:01:20]Write to MH i2c: E2 02 01 37 08 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 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 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 80 5E 92 66 0E 04 04 00 18 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 5D 07 00 00 35 04 06 00 00 00 89 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [11:01:20]RAPDU: 90 00 [11:01:20]wFMCommunicate OK [11:01:20]wFMCommunicate request_size=11 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 0D 02 02 06 E0 5C 64 90 B5 8F [11:01:20]Write to MH i2c: E2 0E 00 38 08 80 0D 02 02 06 00 E0 5C 64 90 B5 8F 00 00 3A [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [11:01:20]RAPDU: 90 00 [11:01:20]wFMCommunicate OK [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 0D 03 02 [11:01:20]Write to MH i2c: E2 08 00 39 08 80 0D 03 02 00 00 00 00 BC [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 0B 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 0B 00 39 08 00 9D 90 1D 8B 86 31 4B 23 90 00 B7 [11:01:20]RAPDU: 9D 90 1D 8B 86 31 4B 23 90 00 [11:01:20]wFMCommunicate OK [11:01:20]SAM_PROTO_SignData done [11:01:20]FM_MakeSignedData done [11:01:20]CreateOFDProtocolMessage [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 11 00 00 [11:01:20]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 17 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 12 [11:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:01:20]wFMCommunicate OK [11:01:20]CreateOFDProtocolMessage done [11:01:20]OFDSenderStorePacket 1885 [11:01:20]StoreOFDPacket docnum=1885 [11:01: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 10 01 00 00 63 1D 08 01 EC 6E 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 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 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 80 5E 92 66 0E 04 04 00 18 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 5D 07 00 00 35 04 06 00 E0 5C 64 90 B5 8F 9D 90 1D 8B 86 31 4B 23 [11:01:20]CheckFolder [11:01:20]dirname=/storage/ofd_packets [11:01:20]CheckFolder done [11:01:20]ProducePacketName [11:01:20]name=ofd_packets/00001885 [11:01:20]NVStorageSaveData ofd_packets/00001885 [11:01:20]File name is /storage/ofd_packets/00001885 [11:01:20]Write 302 bytes [11:01:20]NVStorageSaveData done [11:01:20]OFDSenderStorePacket done [11:01:20]KKMCreateOFDPacket done [11:01:20]NVStorageSaveData kkm_last_timestamp [11:01:20]File name is /storage/kkm_last_timestamp [11:01:20]Write 4 bytes [11:01:20]NVStorageSaveData done [11:01:20]ExternCall_PrintAddStr [11:01:20]wPrintStart [11:01:20]Write to MH i2c: 01 00 00 3B 08 43 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: 01 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: 01 07 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [11:01:20]RasterBufferAndPrint [11:01:20]line Счет N : (1)1618997 [11:01:20]line ИНН: 02508201610067 [11:01:20]line Контрольно-Кассовый Чек [11:01:20]line ПРОДАЖА [11:01:20]line ТРК (МРК, ГНК) : 31 [11:01:20]line Товар: 2710194210 [11:01:20]line ДТ(л)-К-4 [11:01:20]line 9.920 * 72.60 [11:01:20]line = 720.19 [11:01:20]line НДС 12% НСП 1% [11:01:20]line > о реализуемом товаре [11:01:20]line ОКРУГЛЕНИЕ: -0.19 [11:01:20]line ИТОГО: 720.00 [11:01:20]line Внесено: 720.00 [11:01:20]line СДАЧА: 0.00 [11:01:20]line НСП 1% : 6.37 [11:01:20]line НДС 12% : 76.48 [11:01:20]line Наличными: 720.00 [11:01:20]line Безнал.: 0.00 [11:01:20]line Место: АЗС № 76 "Партнер Нефть" [11:01:20]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [11:01:20]line СНО: Общий режим [11:01:20]line Чек 54 13.07.2024 11:01 [11:01:20]line Смена: 24 ФФД: 1.0 [11:01:20]line ЗНМ: 0300000124 [11:01:20]line РНМ: 0000000000177495 [11:01:20]line Версия ККМ: 001 [11:01:20]line ФМ: 0000000002098592 [11:01:20]line ФД: 1885 [11:01:20]line ФПД: 246687428818319 [11:01:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110120&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1885&fm=246687428818319&tin=02508201610067®Number=0000000000177495&sum=72000 [11:01:21]OFD Sender: Processing packet 1885 [packets to send 1, broken 0] [11:01:21]ProducePacketName [11:01:21]name=ofd_packets/00001885 [11:01:21]OFD Sender: To server: pG, [11:01:21]CommunicateWithHost lk.salyk.kg:30040 [11:01:21]ConnectInit lk.salyk.kg [11:01:21]written 0, free lines is 4095 [11:01:21]Connected sock=10 [11:01:21]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 63 1D 08 01 EC 6E 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 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 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 80 5E 92 66 0E 04 04 00 18 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 5D 07 00 00 35 04 06 00 E0 5C 64 90 B5 8F 9D 90 1D 8B 86 31 4B 23 [11:01:21]Write to MH i2c: 01 00 00 66 08 6E [11:01:21]Write i2c OK [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: 01 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: 01 07 00 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 E2 0C 63 [11:01:21]RasterBufferAndPrint [11:01:21]line [11:01:21]line [11:01:21]line [11:01:21]line [11:01:21]line [11:01:21]written 0, free lines is 3304 [11:01:21]MH_Cut [11:01:21]Write to MH i2c: D1 01 00 6D 08 01 47 [11:01:21]Write i2c OK [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: D1 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: D1 01 00 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: D1 01 00 6D 08 00 46 [11:01:21]Write to MH i2c: 01 00 00 6E 08 76 [11:01:21]Write i2c OK [11:01:21]MH_I2C_Read... [11:01: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 15 6C 47 00 A6 74 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 5D 07 00 00 F4 03 04 00 B7 09 92 66 B6 04 01 00 00 57 9C 1C 16 5D 2A 91 5F [11:01:21]CommunicateWithHost err = 0 [11:01:21]CheckOFDResponse [11:01:21]1017 (14) - 77093643461234 [11:01:21]1041 (16) - 0000000002098592 [11:01:21]1040 (4) - 1885 [11:01:21]1012 (4) - 13.07.2024 04:59 [11:01:21]1206 (1) - 0 [11:01:21]OFD Sender: Remove packet 1885 [11:01:21]ProducePacketName [11:01:21]name=ofd_packets/00001885 [11:01:21]NVStorageDeleteData [11:01:22]*** Cut start [11:01:22]*** Partial cut [11:01:22]*** CUTSNS_PIN = 1 [11:01:22]*** CUTSNS_PIN = 0 [11:01:22]OFD Sender: No OFD packet to send [11:01:22]*** Brake cut motor [11:01:22]Read from MH i2c: 01 [11:01:22]MH_I2C_Read... [11:01:22]*** Stop cut motor [11:01:22]*** Cut end [11:01:22]Read from MH i2c: 01 07 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 FF 0F 8B [11:01:22]process_action close_receipt done [11:01:22]requested_data is exist [11:01:22]produce_requested_data [11:01:22]requested_item fm.sn is exist - process it [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 11 00 00 [11:01:22]Write to MH i2c: E2 08 00 6F 08 80 11 00 00 00 00 00 00 F1 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:23]Read from MH i2c: E2 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 17 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 17 00 6F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 47 [11:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:01:23]wFMCommunicate OK [11:01:23]requested_item fd.num is exist - process it [11:01:23]SAM_PROTO_GetFieldsCounters [11:01:23]wFMCommunicate request_size=4 [11:01:23]MH_SAM_APDU [11:01:23]CAPDU: 80 13 00 00 [11:01:23]Write to MH i2c: E2 08 00 70 08 80 13 00 00 00 00 00 00 F4 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:23]Read from MH i2c: E2 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 62 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 62 00 70 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 5D 07 00 00 0E 04 04 00 18 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 3E [11:01:23]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 5D 07 00 00 0E 04 04 00 18 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 [11:01:23]wFMCommunicate OK [11:01:23]SAM_PROTO_GetFieldsCounters done [11:01:23]requested_item shift.num is exist - process it [11:01:23]requested_item shift.opened is exist - process it [11:01:23]req_shift_opened [11:01:23]FM_GetShiftState [11:01:23]SAM_PROTO_GetShiftState [11:01:23]wFMCommunicate request_size=4 [11:01:23]MH_SAM_APDU [11:01:23]CAPDU: 80 13 01 00 [11:01:23]Write to MH i2c: E2 08 00 71 08 80 13 01 00 00 00 00 00 F6 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:23]Read from MH i2c: E2 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 0E 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 0E 00 71 08 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 81 [11:01:23]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:01:23]wFMCommunicate OK [11:01:23]SAM_PROTO_GetShiftState done [11:01:23]FM_GetShiftState done [11:01:23]req_shift_opened done [11:01:23]requested_item shift.open_date is exist - process it [11:01:23]req_shift_open_date [11:01:23]req_shift_open_date done [11:01:23]produce_requested_data done [11:01:23]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1885,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [11:01:23]process_action_free close_receipt [11:01:23]json_value_free [11:01:23]json_value_free done [11:01:23]process_json_proto returns [11:01:23]Send response to host [11:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1885,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [11:01:23]free response buf [11:01:23]execute_script done [11:01:23]execute_script returns [11:01:23]free content buf [11:01:23]Sock 8.Close socket [11:01:23]Sock 8.Thread stoped [11:01:27]OFD Sender: No OFD packet to send [11:01:28]recv_with_timeout no data received [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]recv_with_timeout no data received [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]accept exits with 9 [11:03:02]New connection [11:03:02]New thread 3066977636 created [11:03:02]Thread 3066834276 joined [11:03:02]Waiting for new connection... [11:03:02] Sock 9.Parse request [11:03:02]Sock 9.Check first char [11:03:02]Sock 9.First char is OK [11:03:02]request: POST /json_proto HTTP/1.0 [11:03:02]Method: POST [11:03:02]URL: /json_proto [11:03:02]Method is POST - this is cgi request [11:03:02]url: /json_proto [11:03:02]query_string will be loaded in cgi processing [11:03:02]execute_cgi json_proto POST (null) [11:03:02]execute_cgi path=json_proto method=POST [11:03:02]POST find Content-Length [11:03:02]Host: 172.17.35.133:8080 [11:03:02]Content-Length: 986 [11:03:02]Content-Type: application/json [11:03:02] [11:03:02]POST finish read [11:03:02]Found Content-Length = 986 [11:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 55.870, "sum" : 4000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.87 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:02]execute_script... [11:03: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 : (1)1618996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 55.870, "sum" : 4000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.87 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:02]POST & json_proto [11:03:02]process_json_proto [11:03:02]json parsed OK: [11:03:02]protocol is kg_v1.0 [11:03:02]action value=close_receipt [11:03:02]process_action close_receipt [11:03:02]cmd_close_receipt [11:03:02]MH_GetDate [11:03:02]Write to MH i2c: F0 00 00 72 08 69 [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: F0 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: F0 09 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: F0 09 00 72 08 00 E7 5E 92 66 1B 28 2A 66 82 [11:03:02]GetLastDocTimeStamp 1720868480 [11:03:02]current date 1720868583 [11:03:02]FM_GetShiftState [11:03:02]SAM_PROTO_GetShiftState [11:03:02]wFMCommunicate request_size=4 [11:03:02]MH_SAM_APDU [11:03:02]CAPDU: 80 13 01 00 [11:03:02]Write to MH i2c: E2 08 00 73 08 80 13 01 00 00 00 00 00 F8 [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 73 08 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 83 [11:03:02]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:03:02]wFMCommunicate OK [11:03:02]SAM_PROTO_GetShiftState done [11:03:02]FM_GetShiftState done [11:03:02]opened in 1720829379 [11:03:02]opened+sec_in_day 1720915779 [11:03:02]quantity*price = 400029 [11:03:02]sum+1 = 400030 [11:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 55 13.07.2024 11:03 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Дисконтная программа ДТ номер 76 сэкономлено 55.87 сом ФМ: 0000000002098592 ФД: 1886 ФПД: 194237460843119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110303&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1886&fm=194237460843119&tin=02508201610067®Number=0000000000177495&sum=400000 [11:03:03]StoreToDocumentArchive [11:03:03]shift 24 fd 1886 [11:03:03]save to /storage/0024/doc_00001886 [11:03:03]save last doc name /storage/0024/doc_00001886 to /storage/kkm_last_doc_name [11:03:03]save OK [11:03:03]Clear old archive folders... [11:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:03:03]tlvbuf is 00FB9790 [11:03:03]SAM_PROTO_ClearQueue [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 09 00 00 [11:03:03]Write to MH i2c: E2 08 00 80 08 80 09 00 00 00 00 00 00 FA [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_ClearQueue done [11:03:03]KKMCreateOFDPacket [11:03:03]OFDProtocolAddRootSTLVToBuf [11:03:03]FM_MakeSignedData [11:03:03]FM_MakeSignedData [11:03:03]SAM_PROTO_SignData [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 0D 01 02 [11:03:03]Write to MH i2c: E2 08 00 81 08 80 0D 01 02 00 00 00 00 02 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]wFMCommunicate request_size=255 [11:03:03]MH_SAM_APDU [11:03:03]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 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 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 E7 5E 92 66 0E 04 04 00 18 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 5E 07 00 00 35 04 06 00 [11:03:03]Write to MH i2c: E2 02 01 82 08 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 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 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 E7 5E 92 66 0E 04 04 00 18 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 5E 07 00 00 35 04 06 00 00 00 E1 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]wFMCommunicate request_size=11 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 0D 02 02 06 B0 A8 6E DB 0A 6F [11:03:03]Write to MH i2c: E2 0E 00 83 08 80 0D 02 02 06 00 B0 A8 6E DB 0A 6F 00 00 2B [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 0D 03 02 [11:03:03]Write to MH i2c: E2 08 00 84 08 80 0D 03 02 00 00 00 00 07 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0B 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0B 00 84 08 00 8A 6F 3F 0E 07 B4 AD 59 90 00 0F [11:03:03]RAPDU: 8A 6F 3F 0E 07 B4 AD 59 90 00 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_SignData done [11:03:03]FM_MakeSignedData done [11:03:03]CreateOFDProtocolMessage [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 11 00 00 [11:03:03]Write to MH i2c: E2 08 00 85 08 80 [11:03:24]OFD Sender: Processing packet 1886 [packets to send 1, broken 0] [11:03:24]ProducePacketName [11:03:24]name=ofd_packets/00001886 [11:03:24]OFD Sender: To server: pG, [11:03:24]CommunicateWithHost lk.salyk.kg:30040 [11:03:24]ConnectInit lk.salyk.kg [11:03:29]ConnectInit Can't take IP for lk.salyk.kg [11:03:29]CommunicateWithHost connect error [11:03:29]CommunicateWithHost err = -1 [11:03:29]OFD Sender: Server communicate error [11:03:34]OFD Sender: Processing packet 1886 [packets to send 1, broken 0] [11:03:34]ProducePacketName [11:03:34]name=ofd_packets/00001886 [11:03:34]OFD Sender: To server: pG, [11:03:34]CommunicateWithHost lk.salyk.kg:30040 [11:03:34]ConnectInit lk.salyk.kg [11:03:34]Connected sock=9 [11:03: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 10 01 00 00 A0 FF 08 01 97 92 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 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 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 E7 5E 92 66 0E 04 04 00 18 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 5E 07 00 00 35 04 06 00 B0 A8 6E DB 0A 6F 8A 6F 3F 0E 07 B4 AD 59 [11:03: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 F2 44 47 00 43 9D 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 5E 07 00 00 F4 03 04 00 3C 0A 92 66 B6 04 01 00 00 98 AD 19 90 2D 36 88 07 [11:03:34]CommunicateWithHost err = 0 [11:03:34]CheckOFDResponse [11:03:34]1017 (14) - 77093643461234 [11:03:34]1041 (16) - 0000000002098592 [11:03:34]1040 (4) - 1886 [11:03:34]1012 (4) - 13.07.2024 05:01 [11:03:34]1206 (1) - 0 [11:03:34]OFD Sender: Remove packet 1886 [11:03:34]ProducePacketName [11:03:34]name=ofd_packets/00001886 [11:03:34]NVStorageDeleteData [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:03:58]recv_with_timeout no data received [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:19]recv_with_timeout no data received [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:07]recv_with_timeout no data received [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:52]accept exits with 10 [11:13:52]New connection [11:13:52]New thread 3066834276 created [11:13:52]Thread 3066977636 joined [11:13:52]Waiting for new connection... [11:13:52] Sock 10.Parse request [11:13:52]Sock 10.Check first char [11:13:52]Sock 10.First char is OK [11:13:52]request: POST /json_proto HTTP/1.0 [11:13:52]Method: POST [11:13:52]URL: /json_proto [11:13:52]Method is POST - this is cgi request [11:13:52]url: /json_proto [11:13:52]query_string will be loaded in cgi processing [11:13:52]execute_cgi json_proto POST (null) [11:13:52]execute_cgi path=json_proto method=POST [11:13:52]POST find Content-Length [11:13:52]Host: 172.17.35.133:8080 [11:13:52]Content-Length: 683 [11:13:52]Content-Type: application/json [11:13:52] [11:13:52]POST finish read [11:13:52]Found Content-Length = 683 [11:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1618998", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:52]execute_script... [11:13: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 : (1)1618998", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:52]POST & json_proto [11:13:52]process_json_proto [11:13:52]json parsed OK: [11:13:52]protocol is kg_v1.0 [11:13:52]action value=close_receipt [11:13:52]process_action close_receipt [11:13:52]cmd_close_receipt [11:13:52]MH_GetDate [11:13:52]Write to MH i2c: F0 00 00 C2 08 B9 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: F0 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: F0 09 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: F0 09 00 C2 08 00 72 61 92 66 1B 28 2A 66 60 [11:13:52]GetLastDocTimeStamp 1720868583 [11:13:52]current date 1720869234 [11:13:52]FM_GetShiftState [11:13:52]SAM_PROTO_GetShiftState [11:13:52]wFMCommunicate request_size=4 [11:13:52]MH_SAM_APDU [11:13:52]CAPDU: 80 13 01 00 [11:13:52]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:53]Read from MH i2c: E2 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D3 [11:13:53]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:13:53]wFMCommunicate OK [11:13:53]SAM_PROTO_GetShiftState done [11:13:53]FM_GetShiftState done [11:13:53]opened in 1720829379 [11:13:53]opened+sec_in_day 1720915779 [11:13:53]quantity*price = 100046 [11:13:53]sum+1 = 100048 [11:13:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 56 13.07.2024 11:13 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1887 ФПД: 127320477043785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111354&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1887&fm=127320477043785&tin=02508201610067®Number=0000000000177495&sum=100000 [11:13:54]StoreToDocumentArchive [11:13:54]shift 24 fd 1887 [11:13:54]save to /storage/0024/doc_00001887 [11:13:54]save last doc name /storage/0024/doc_00001887 to /storage/kkm_last_doc_name [11:13:54]save OK [11:13:54]Clear old archive folders... [11:13:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:54]tlvbuf is 00FC2800 [11:13:54]SAM_PROTO_ClearQueue [11:13:54]wFMCommunicate request_size=4 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 09 00 00 [11:13:54]Write to MH i2c: E2 08 00 D0 08 80 09 00 00 00 00 00 00 4A [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [11:13:54]RAPDU: 90 00 [11:13:54]wFMCommunicate OK [11:13:54]SAM_PROTO_ClearQueue done [11:13:54]KKMCreateOFDPacket [11:13:54]OFDProtocolAddRootSTLVToBuf [11:13:54]FM_MakeSignedData [11:13:54]FM_MakeSignedData [11:13:54]SAM_PROTO_SignData [11:13:54]wFMCommunicate request_size=4 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 0D 01 02 [11:13:54]Write to MH i2c: E2 08 00 D1 08 80 0D 01 02 00 00 00 00 52 [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [11:13:54]RAPDU: 90 00 [11:13:54]wFMCommunicate OK [11:13:54]wFMCommunicate request_size=255 [11:13:54]MH_SAM_APDU [11:13:54]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 61 92 66 0E 04 04 00 18 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 5F 07 00 00 35 04 06 00 73 [11:13:54]Write to MH i2c: E2 02 01 D2 08 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 61 92 66 0E 04 04 00 18 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 5F 07 00 00 35 04 06 00 73 00 00 4B [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [11:13:54]RAPDU: 90 00 [11:13:54]wFMCommunicate OK [11:13:54]wFMCommunicate request_size=10 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 0D 02 02 05 CC 1B CE 8C 49 [11:13:54]Write to MH i2c: E2 0D 00 D3 08 80 0D 02 02 05 00 CC 1B CE 8C 49 00 00 E9 [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [11:13:54]RAPDU: 90 00 [11:13:54]wFMCommunicate OK [11:13:54]wFMCommunicate request_size=4 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 0D 03 02 [11:13:54]Write to MH i2c: E2 08 00 D4 08 80 0D 03 02 00 00 00 00 57 [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 0B 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 0B 00 D4 08 00 44 E3 32 2A 5B CA 31 A6 90 00 D7 [11:13:54]RAPDU: 44 E3 32 2A 5B CA 31 A6 90 00 [11:13:54]wFMCommunicate OK [11:13:54]SAM_PROTO_SignData done [11:13:54]FM_MakeSignedData done [11:13:54]CreateOFDProtocolMessage [11:13:54]wFMCommunicate request_size=4 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 11 00 00 [11:13:54]Write to MH i2c: E2 08 00 D5 08 80 11 00 00 00 00 00 00 57 [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 17 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 17 00 D5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AD [11:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:13:54]wFMCommunicate OK [11:13:54]CreateOFDProtocolMessage done [11:13:54]OFDSenderStorePacket 1887 [11:13:54]StoreOFDPacket docnum=1887 [11:13:54]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 FB 14 07 01 AB DF 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 61 92 66 0E 04 04 00 18 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 5F 07 00 00 35 04 06 00 73 CC 1B CE 8C 49 44 E3 32 2A 5B CA 31 A6 [11:13:54]CheckFolder [11:13:54]dirname=/storage/ofd_packets [11:13:54]CheckFolder done [11:13:54]ProducePacketName [11:13:54]name=ofd_packets/00001887 [11:13:54]NVStorageSaveData ofd_packets/00001887 [11:13:54]File name is /storage/ofd_packets/00001887 [11:13:54]Write 301 bytes [11:13:54]NVStorageSaveData done [11:13:54]OFDSenderStorePacket done [11:13:54]KKMCreateOFDPacket done [11:13:54]NVStorageSaveData kkm_last_timestamp [11:13:54]File name is /storage/kkm_last_timestamp [11:13:54]Write 4 bytes [11:13:54]NVStorageSaveData done [11:13:54]ExternCall_PrintAddStr [11:13:54]wPrintStart [11:13:54]Write to MH i2c: 01 00 00 D6 08 DE [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: 01 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: 01 07 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: 01 07 00 D6 08 00 00 00 00 00 FF 0F F3 [11:13:54]RasterBufferAndPrint [11:13:54]line Счет N : (1)1618998 [11:13:54]line ИНН: 02508201610067 [11:13:54]line Контрольно-Кассовый Чек [11:13:54]line ПРОДАЖА [11:13:54]line ТРК (МРК, ГНК) : 24 [11:13:54]line Товар: 2710124130 [11:13:54]line Аи-92-К-5 [11:13:54]line 15.090 * 66.30 [11:13:54]line = 1000.47 [11:13:54]line НДС 12% НСП 1% [11:13:54]line > о реализуемом товаре [11:13:54]line ОКРУГЛЕНИЕ: -0.47 [11:13:54]line ИТОГО: 1000.00 [11:13:54]line Внесено: 1000.00 [11:13:54]line СДАЧА: 0.00 [11:13:54]line НСП 1% : 8.85 [11:13:54]line НДС 12% : 106.24 [11:13:54]line Наличными: 1000.00 [11:13:54]line Безнал.: 0.00 [11:13:54]line Место: АЗС № 76 "Партнер Нефть" [11:13:54]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [11:13:54]line СНО: Общий режим [11:13:54]line Чек 56 13.07.2024 11:13 [11:13:54]line Смена: 24 ФФД: 1.0 [11:13:54]line ЗНМ: 0300000124 [11:13:54]line РНМ: 0000000000177495 [11:13:54]line Версия ККМ: 001 [11:13:54]line ФМ: 0000000002098592 [11:13:54]line ФД: 1887 [11:13:54]line ФПД: 127320477043785 [11:13:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111354&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1887&fm=127320477043785&tin=02508201610067®Number=0000000000177495&sum=100000 [11:13:55]OFD Sender: Processing packet 1887 [packets to send 1, broken 0] [11:13:55]ProducePacketName [11:13:55]name=ofd_packets/00001887 [11:13:55]OFD Sender: To server: pG, [11:13:55]CommunicateWithHost lk.salyk.kg:30040 [11:13:55]ConnectInit lk.salyk.kg [11:13:55]written 0, free lines is 4095 [11:13:55]Connected sock=9 [11:13: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 0F 01 00 00 FB 14 07 01 AB DF 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 61 92 66 0E 04 04 00 18 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 5F 07 00 00 35 04 06 00 73 CC 1B CE 8C 49 44 E3 32 2A 5B CA 31 A6 [11:13:55]Write to MH i2c: 01 00 00 01 09 0A [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 EB 0C 08 [11:13:55]RasterBufferAndPrint [11:13:55]line [11:13:55]line [11:13:55]line [11:13:55]line [11:13:55]line [11:13:55]written 0, free lines is 3313 [11:13:55]MH_Cut [11:13:55]Write to MH i2c: D1 01 00 08 09 01 E3 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: D1 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: D1 01 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: D1 01 00 08 09 00 E2 [11:13:55]Write to MH i2c: 01 00 00 09 09 12 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13: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 75 66 47 00 E8 82 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 5F 07 00 00 F4 03 04 00 A8 0C 92 66 B6 04 01 00 00 B7 87 18 D3 17 E3 EB 36 [11:13:55]CommunicateWithHost err = 0 [11:13:55]CheckOFDResponse [11:13:55]1017 (14) - 77093643461234 [11:13:55]1041 (16) - 0000000002098592 [11:13:55]1040 (4) - 1887 [11:13:55]1012 (4) - 13.07.2024 05:12 [11:13:55]1206 (1) - 0 [11:13:55]OFD Sender: Remove packet 1887 [11:13:55]ProducePacketName [11:13:55]name=ofd_packets/00001887 [11:13:55]NVStorageDeleteData [11:13:56]OFD Sender: No OFD packet to send [11:13:56]*** Cut start [11:13:56]*** Partial cut [11:13:56]*** CUTSNS_PIN = 1 [11:13:56]*** CUTSNS_PIN = 0 [11:13:56]*** Brake cut motor [11:13:56]Read from MH i2c: 01 [11:13:56]MH_I2C_Read... [11:13:56]*** Stop cut motor [11:13:56]*** Cut end [11:13:56]Read from MH i2c: 01 07 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 FF 0F 27 [11:13:56]process_action close_receipt done [11:13:56]requested_data is exist [11:13:56]produce_requested_data [11:13:56]requested_item fm.sn is exist - process it [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 11 00 00 [11:13:56]Write to MH i2c: E2 08 00 0A 09 80 11 00 00 00 00 00 00 8D [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 17 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 17 00 0A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E3 [11:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:13:56]wFMCommunicate OK [11:13:56]requested_item fd.num is exist - process it [11:13:56]SAM_PROTO_GetFieldsCounters [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 13 00 00 [11:13:56]Write to MH i2c: E2 08 00 0B 09 80 13 00 00 00 00 00 00 90 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 62 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 62 00 0B 09 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 5F 07 00 00 0E 04 04 00 18 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 E2 [11:13: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 5F 07 00 00 0E 04 04 00 18 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 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetFieldsCounters done [11:13:57]requested_item shift.num is exist - process it [11:13:57]requested_item shift.opened is exist - process it [11:13:57]req_shift_opened [11:13:57]FM_GetShiftState [11:13:57]SAM_PROTO_GetShiftState [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 13 01 00 [11:13:57]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1D [11:13:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetShiftState done [11:13:57]FM_GetShiftState done [11:13:57]req_shift_opened done [11:13:57]requested_item shift.open_date is exist - process it [11:13:57]req_shift_open_date [11:13:57]req_shift_open_date done [11:13:57]produce_requested_data done [11:13:57]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1887,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [11:13:57]process_action_free close_receipt [11:13:57]json_value_free [11:13:57]json_value_free done [11:13:57]process_json_proto returns [11:13:57]Send response to host [11:13:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1887,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [11:13:57]free response buf [11:13:57]execute_script done [11:13:57]execute_script returns [11:13:57]free content buf [11:13:57]Sock 10.Close socket [11:13:57]Sock 10.Thread stoped [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:44]accept exits with 8 [11:42:44]New connection [11:42:44]New thread 3066977636 created [11:42:44]Thread 3066834276 joined [11:42:44]Waiting for new connection... [11:42:44] Sock 8.Parse request [11:42:44]Sock 8.Check first char [11:42:44]Sock 8.First char is OK [11:42:44]request: POST /json_proto HTTP/1.0 [11:42:44]Method: POST [11:42:44]URL: /json_proto [11:42:44]Method is POST - this is cgi request [11:42:44]url: /json_proto [11:42:44]query_string will be loaded in cgi processing [11:42:44]execute_cgi json_proto POST (null) [11:42:44]execute_cgi path=json_proto method=POST [11:42:44]POST find Content-Length [11:42:44]Host: 172.17.35.133:8080 [11:42:44]Content-Length: 683 [11:42:44]Content-Type: application/json [11:42:44] [11:42:44]POST finish read [11:42:44]Found Content-Length = 683 [11:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:44]execute_script... [11:42: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)1619003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:44]POST & json_proto [11:42:44]process_json_proto [11:42:44]json parsed OK: [11:42:44]protocol is kg_v1.0 [11:42:44]action value=close_receipt [11:42:44]process_action close_receipt [11:42:44]cmd_close_receipt [11:42:44]MH_GetDate [11:42:44]Write to MH i2c: F0 00 00 0D 09 05 [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 09 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 09 00 0D 09 00 35 68 92 66 1B 28 2A 66 76 [11:42:44]GetLastDocTimeStamp 1720869234 [11:42:44]current date 1720870965 [11:42:44]FM_GetShiftState [11:42:44]SAM_PROTO_GetShiftState [11:42:44]wFMCommunicate request_size=4 [11:42:44]MH_SAM_APDU [11:42:44]CAPDU: 80 13 01 00 [11:42:44]Write to MH i2c: E2 08 00 0E 09 80 13 01 00 00 00 00 00 94 [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:44]Read from MH i2c: E2 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: E2 0E 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: E2 0E 00 0E 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1F [11:42:44]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:42:44]wFMCommunicate OK [11:42:44]SAM_PROTO_GetShiftState done [11:42:44]FM_GetShiftState done [11:42:44]opened in 1720829379 [11:42:44]opened+sec_in_day 1720915779 [11:42:44]quantity*price = 100068 [11:42:44]sum+1 = 100069 [11:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 57 13.07.2024 11:42 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1888 ФПД: 71190009163684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114245&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1888&fm=71190009163684&tin=02508201610067®Number=0000000000177495&sum=100000 [11:42:45]StoreToDocumentArchive [11:42:45]shift 24 fd 1888 [11:42:45]save to /storage/0024/doc_00001888 [11:42:45]save last doc name /storage/0024/doc_00001888 to /storage/kkm_last_doc_name [11:42:45]save OK [11:42:45]Clear old archive folders... [11:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:45]tlvbuf is 00F9A7D0 [11:42:45]SAM_PROTO_ClearQueue [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 09 00 00 [11:42:45]Write to MH i2c: E2 08 00 1B 09 80 09 00 00 00 00 00 00 96 [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [11:42:45]RAPDU: 90 00 [11:42:45]wFMCommunicate OK [11:42:45]SAM_PROTO_ClearQueue done [11:42:45]KKMCreateOFDPacket [11:42:45]OFDProtocolAddRootSTLVToBuf [11:42:45]FM_MakeSignedData [11:42:45]FM_MakeSignedData [11:42:45]SAM_PROTO_SignData [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 0D 01 02 [11:42:45]Write to MH i2c: E2 08 00 1C 09 80 0D 01 02 00 00 00 00 9E [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [11:42:45]RAPDU: 90 00 [11:42:45]wFMCommunicate OK [11:42:45]wFMCommunicate request_size=255 [11:42:45]MH_SAM_APDU [11:42:45]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 35 68 92 66 0E 04 04 00 18 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 60 07 00 00 35 04 06 00 40 [11:42:45]Write to MH i2c: E2 02 01 1D 09 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 35 68 92 66 0E 04 04 00 18 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 60 07 00 00 35 04 06 00 40 00 00 0D [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [11:42:46]RAPDU: 90 00 [11:42:46]wFMCommunicate OK [11:42:46]wFMCommunicate request_size=10 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 0D 02 02 05 BF 37 35 2F A4 [11:42:46]Write to MH i2c: E2 0D 00 1E 09 80 0D 02 02 05 00 BF 37 35 2F A4 00 00 A9 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [11:42:46]RAPDU: 90 00 [11:42:46]wFMCommunicate OK [11:42:46]wFMCommunicate request_size=4 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 0D 03 02 [11:42:46]Write to MH i2c: E2 08 00 1F 09 80 0D 03 02 00 00 00 00 A3 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 0B 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 0B 00 1F 09 00 B3 F4 75 AB 22 79 31 08 90 00 3F [11:42:46]RAPDU: B3 F4 75 AB 22 79 31 08 90 00 [11:42:46]wFMCommunicate OK [11:42:46]SAM_PROTO_SignData done [11:42:46]FM_MakeSignedData done [11:42:46]CreateOFDProtocolMessage [11:42:46]wFMCommunicate request_size=4 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 11 00 00 [11:42:46]Write to MH i2c: E2 08 00 20 09 80 11 00 00 00 00 00 00 A3 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 17 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 17 00 20 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F9 [11:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:42:46]wFMCommunicate OK [11:42:46]CreateOFDProtocolMessage done [11:42:46]OFDSenderStorePacket 1888 [11:42:46]StoreOFDPacket docnum=1888 [11:42: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 3E E7 07 01 A3 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 35 68 92 66 0E 04 04 00 18 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 60 07 00 00 35 04 06 00 40 BF 37 35 2F A4 B3 F4 75 AB 22 79 31 08 [11:42:46]CheckFolder [11:42:46]dirname=/storage/ofd_packets [11:42:46]CheckFolder done [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00001888 [11:42:46]NVStorageSaveData ofd_packets/00001888 [11:42:46]File name is /storage/ofd_packets/00001888 [11:42:46]Write 301 bytes [11:42:46]NVStorageSaveData done [11:42:46]OFDSenderStorePacket done [11:42:46]KKMCreateOFDPacket done [11:42:46]NVStorageSaveData kkm_last_timestamp [11:42:46]File name is /storage/kkm_last_timestamp [11:42:46]Write 4 bytes [11:42:46]NVStorageSaveData done [11:42:46]ExternCall_PrintAddStr [11:42:46]wPrintStart [11:42:46]Write to MH i2c: 01 00 00 21 09 2A [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 FF 0F 3F [11:42:46]RasterBufferAndPrint [11:42:46]line Счет N : (1)1619003 [11:42:46]line ИНН: 02508201610067 [11:42:46]line Контрольно-Кассовый Чек [11:42:46]line ПРОДАЖА [11:42:46]line ТРК (МРК, ГНК) : 32 [11:42:46]line Товар: 2710124500 [11:42:46]line Аи-95-К-5 [11:42:46]line 13.450 * 74.40 [11:42:46]line = 1000.68 [11:42:46]line НДС 12% НСП 1% [11:42:46]line > о реализуемом товаре [11:42:46]line ОКРУГЛЕНИЕ: -0.68 [11:42:46]line ИТОГО: 1000.00 [11:42:46]line Внесено: 1000.00 [11:42:46]line СДАЧА: 0.00 [11:42:46]line НСП 1% : 8.86 [11:42:46]line НДС 12% : 106.27 [11:42:46]line Наличными: 1000.00 [11:42:46]line Безнал.: 0.00 [11:42:46]line Место: АЗС № 76 "Партнер Нефть" [11:42:46]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [11:42:46]line СНО: Общий режим [11:42:46]line Чек 57 13.07.2024 11:42 [11:42:46]line Смена: 24 ФФД: 1.0 [11:42:46]line ЗНМ: 0300000124 [11:42:46]line РНМ: 0000000000177495 [11:42:46]line Версия ККМ: 001 [11:42:46]line ФМ: 0000000002098592 [11:42:46]line ФД: 1888 [11:42:46]line ФПД: 71190009163684 [11:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114245&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1888&fm=71190009163684&tin=02508201610067®Number=0000000000177495&sum=100000 [11:42:46]OFD Sender: Processing packet 1888 [packets to send 1, broken 0] [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00001888 [11:42:46]OFD Sender: To server: pG, [11:42:46]CommunicateWithHost lk.salyk.kg:30040 [11:42:46]ConnectInit lk.salyk.kg [11:42:46]written 0, free lines is 4095 [11:42:46]Connected sock=10 [11:42: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 3E E7 07 01 A3 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 35 68 92 66 0E 04 04 00 18 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 60 07 00 00 35 04 06 00 40 BF 37 35 2F A4 B3 F4 75 AB 22 79 31 08 [11:42:46]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 B9 14 47 00 1F D2 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 60 07 00 00 F4 03 04 00 6C 13 92 66 B6 04 01 00 00 D3 11 F6 14 63 DE 40 8C [11:42:46]CommunicateWithHost err = 0 [11:42:46]CheckOFDResponse [11:42:46]1017 (14) - 77093643461234 [11:42:46]1041 (16) - 0000000002098592 [11:42:46]1040 (4) - 1888 [11:42:46]1012 (4) - 13.07.2024 05:41 [11:42:46]1206 (1) - 0 [11:42:46]OFD Sender: Remove packet 1888 [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00001888 [11:42:46]NVStorageDeleteData [11:42:47]Write to MH i2c: 01 00 00 4C 09 55 [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: 01 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: 01 07 00 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 F1 0C 59 [11:42:47]RasterBufferAndPrint [11:42:47]line [11:42:47]line [11:42:47]line [11:42:47]line [11:42:47]line [11:42:47]written 0, free lines is 3320 [11:42:47]MH_Cut [11:42:47]Write to MH i2c: D1 01 00 53 09 01 2E [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 01 00 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 01 00 53 09 00 2D [11:42:47]Write to MH i2c: 01 00 00 54 09 5D [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]OFD Sender: No OFD packet to send [11:42:47]*** Cut start [11:42:47]*** Partial cut [11:42:47]*** CUTSNS_PIN = 1 [11:42:47]*** CUTSNS_PIN = 0 [11:42:48]*** Brake cut motor [11:42:48]Read from MH i2c: 01 [11:42:48]MH_I2C_Read... [11:42:48]*** Stop cut motor [11:42:48]*** Cut end [11:42:48]Read from MH i2c: 01 07 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [11:42:48]process_action close_receipt done [11:42:48]requested_data is exist [11:42:48]produce_requested_data [11:42:48]requested_item fm.sn is exist - process it [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 11 00 00 [11:42:48]Write to MH i2c: E2 08 00 55 09 80 11 00 00 00 00 00 00 D8 [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 17 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 17 00 55 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 2E [11:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:42:48]wFMCommunicate OK [11:42:48]requested_item fd.num is exist - process it [11:42:48]SAM_PROTO_GetFieldsCounters [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 13 00 00 [11:42:48]Write to MH i2c: E2 08 00 56 09 80 13 00 00 00 00 00 00 DB [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 62 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 62 00 56 09 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 60 07 00 00 0E 04 04 00 18 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 31 [11:42: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 60 07 00 00 0E 04 04 00 18 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 [11:42:48]wFMCommunicate OK [11:42:48]SAM_PROTO_GetFieldsCounters done [11:42:48]requested_item shift.num is exist - process it [11:42:48]requested_item shift.opened is exist - process it [11:42:48]req_shift_opened [11:42:48]FM_GetShiftState [11:42:48]SAM_PROTO_GetShiftState [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 13 01 00 [11:42:48]Write to MH i2c: E2 08 00 57 09 80 13 01 00 00 00 00 00 DD [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 0E 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 0E 00 57 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 68 [11:42:48]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:42:48]wFMCommunicate OK [11:42:48]SAM_PROTO_GetShiftState done [11:42:48]FM_GetShiftState done [11:42:48]req_shift_opened done [11:42:48]requested_item shift.open_date is exist - process it [11:42:48]req_shift_open_date [11:42:48]req_shift_open_date done [11:42:48]produce_requested_data done [11:42:48]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1888,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [11:42:48]process_action_free close_receipt [11:42:48]json_value_free [11:42:48]json_value_free done [11:42:48]process_json_proto returns [11:42:48]Send response to host [11:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1888,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [11:42:48]free response buf [11:42:48]execute_script done [11:42:48]execute_script returns [11:42:48]free content buf [11:42:48]Sock 8.Close socket [11:42:48]Sock 8.Thread stoped [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:46]accept exits with 9 [11:48:46]New connection [11:48:46]New thread 3066834276 created [11:48:46]Thread 3066977636 joined [11:48:46]Waiting for new connection... [11:48:46] Sock 9.Parse request [11:48:46]Sock 9.Check first char [11:48:46]Sock 9.First char is OK [11:48:46]request: POST /json_proto HTTP/1.0 [11:48:46]Method: POST [11:48:46]URL: /json_proto [11:48:46]Method is POST - this is cgi request [11:48:46]url: /json_proto [11:48:46]query_string will be loaded in cgi processing [11:48:46]execute_cgi json_proto POST (null) [11:48:46]execute_cgi path=json_proto method=POST [11:48:46]POST find Content-Length [11:48:46]Host: 172.17.35.133:8080 [11:48:46]Content-Length: 688 [11:48:46]Content-Type: application/json [11:48:46] [11:48:46]POST finish read [11:48:46]Found Content-Length = 688 [11:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619004", "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" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:46]execute_script... [11:48: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 : (1)1619004", "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" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:46]POST & json_proto [11:48:46]process_json_proto [11:48:46]json parsed OK: [11:48:46]protocol is kg_v1.0 [11:48:46]action value=close_receipt [11:48:46]process_action close_receipt [11:48:46]cmd_close_receipt [11:48:46]MH_GetDate [11:48:46]Write to MH i2c: F0 00 00 58 09 50 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: F0 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: F0 09 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: F0 09 00 58 09 00 9F 69 92 66 1B 28 2A 66 2C [11:48:46]GetLastDocTimeStamp 1720870965 [11:48:46]current date 1720871327 [11:48:46]FM_GetShiftState [11:48:46]SAM_PROTO_GetShiftState [11:48:46]wFMCommunicate request_size=4 [11:48:46]MH_SAM_APDU [11:48:46]CAPDU: 80 13 01 00 [11:48:46]Write to MH i2c: E2 08 00 59 09 80 13 01 00 00 00 00 00 DF [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:46]Read from MH i2c: E2 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: E2 0E 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: E2 0E 00 59 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6A [11:48:46]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:48:46]wFMCommunicate OK [11:48:46]SAM_PROTO_GetShiftState done [11:48:46]FM_GetShiftState done [11:48:46]opened in 1720829379 [11:48:46]opened+sec_in_day 1720915779 [11:48:46]quantity*price = 150064 [11:48:46]sum+1 = 150065 [11:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 58 13.07.2024 11:48 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1889 ФПД: 176052766205766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114847&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1889&fm=176052766205766&tin=02508201610067®Number=0000000000177495&sum=150000 [11:48:47]StoreToDocumentArchive [11:48:47]shift 24 fd 1889 [11:48:47]save to /storage/0024/doc_00001889 [11:48:47]save last doc name /storage/0024/doc_00001889 to /storage/kkm_last_doc_name [11:48:47]save OK [11:48:47]Clear old archive folders... [11:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:48:47]tlvbuf is 00FDD1B0 [11:48:47]SAM_PROTO_ClearQueue [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 09 00 00 [11:48:47]Write to MH i2c: E2 08 00 66 09 80 09 00 00 00 00 00 00 E1 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [11:48:47]RAPDU: 90 00 [11:48:47]wFMCommunicate OK [11:48:47]SAM_PROTO_ClearQueue done [11:48:47]KKMCreateOFDPacket [11:48:47]OFDProtocolAddRootSTLVToBuf [11:48:47]FM_MakeSignedData [11:48:47]FM_MakeSignedData [11:48:47]SAM_PROTO_SignData [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 0D 01 02 [11:48:47]Write to MH i2c: E2 08 00 67 09 80 0D 01 02 00 00 00 00 E9 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [11:48:47]RAPDU: 90 00 [11:48:47]wFMCommunicate OK [11:48:47]wFMCommunicate request_size=255 [11:48:47]MH_SAM_APDU [11:48:47]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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 69 92 66 0E 04 04 00 18 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 61 07 00 00 35 04 06 00 [11:48:47]Write to MH i2c: E2 02 01 68 09 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 69 92 66 0E 04 04 00 18 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 61 07 00 00 35 04 06 00 00 00 1D [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]OFD Sender: No OFD packet to send [11:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [11:48:47]RAPDU: 90 00 [11:48:47]wFMCommunicate OK [11:48:47]wFMCommunicate request_size=11 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 0D 02 02 06 A0 1E 7A 97 67 46 [11:48:47]Write to MH i2c: E2 0E 00 69 09 80 0D 02 02 06 00 A0 1E 7A 97 67 46 00 00 74 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [11:48:47]RAPDU: 90 00 [11:48:47]wFMCommunicate OK [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 0D 03 02 [11:48:47]Write to MH i2c: E2 08 00 6A 09 80 0D 03 02 00 00 00 00 EE [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 0B 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 0B 00 6A 09 00 6F 32 62 44 EB 6B 4F 49 90 00 24 [11:48:47]RAPDU: 6F 32 62 44 EB 6B 4F 49 90 00 [11:48:47]wFMCommunicate OK [11:48:47]SAM_PROTO_SignData done [11:48:47]FM_MakeSignedData done [11:48:47]CreateOFDProtocolMessage [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 11 00 00 [11:48:47]Write to MH i2c: E2 08 00 6B 09 80 11 00 00 00 00 00 00 EE [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 17 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 17 00 6B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 44 [11:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:48:47]wFMCommunicate OK [11:48:47]CreateOFDProtocolMessage done [11:48:47]OFDSenderStorePacket 1889 [11:48:47]StoreOFDPacket docnum=1889 [11:48:47]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 A4 E5 08 01 40 0E 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 69 92 66 0E 04 04 00 18 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 61 07 00 00 35 04 06 00 A0 1E 7A 97 67 46 6F 32 62 44 EB 6B 4F 49 [11:48:47]CheckFolder [11:48:47]dirname=/storage/ofd_packets [11:48:47]CheckFolder done [11:48:47]ProducePacketName [11:48:47]name=ofd_packets/00001889 [11:48:47]NVStorageSaveData ofd_packets/00001889 [11:48:47]File name is /storage/ofd_packets/00001889 [11:48:47]Write 302 bytes [11:48:47]NVStorageSaveData done [11:48:47]OFDSenderStorePacket done [11:48:47]KKMCreateOFDPacket done [11:48:47]NVStorageSaveData kkm_last_timestamp [11:48:47]File name is /storage/kkm_last_timestamp [11:48:47]Write 4 bytes [11:48:47]NVStorageSaveData done [11:48:47]ExternCall_PrintAddStr [11:48:47]wPrintStart [11:48:47]Write to MH i2c: 01 00 00 6C 09 75 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: 01 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: 01 07 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FF 0F 8A [11:48:47]RasterBufferAndPrint [11:48:47]line Счет N : (1)1619004 [11:48:47]line ИНН: 02508201610067 [11:48:47]line Контрольно-Кассовый Чек [11:48:47]line ПРОДАЖА [11:48:47]line ТРК (МРК, ГНК) : 41 [11:48:47]line Товар: 2710194210 [11:48:47]line ДТ(л)-К-4 [11:48:47]line 20.670 * 72.60 [11:48:47]line = 1500.64 [11:48:47]line НДС 12% НСП 1% [11:48:47]line > о реализуемом товаре [11:48:47]line ОКРУГЛЕНИЕ: -0.64 [11:48:47]line ИТОГО: 1500.00 [11:48:47]line Внесено: 1500.00 [11:48:47]line СДАЧА: 0.00 [11:48:47]line НСП 1% : 13.28 [11:48:47]line НДС 12% : 159.36 [11:48:47]line Наличными: 1500.00 [11:48:47]line Безнал.: 0.00 [11:48:47]line Место: АЗС № 76 "Партнер Нефть" [11:48:47]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [11:48:47]line СНО: Общий режим [11:48:47]line Чек 58 13.07.2024 11:48 [11:48:48]line Смена: 24 ФФД: 1.0 [11:48:48]line ЗНМ: 0300000124 [11:48:48]line РНМ: 0000000000177495 [11:48:48]line Версия ККМ: 001 [11:48:48]line ФМ: 0000000002098592 [11:48:48]line ФД: 1889 [11:48:48]line ФПД: 176052766205766 [11:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114847&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1889&fm=176052766205766&tin=02508201610067®Number=0000000000177495&sum=150000 [11:48:48]OFD Sender: Processing packet 1889 [packets to send 1, broken 0] [11:48:48]ProducePacketName [11:48:48]name=ofd_packets/00001889 [11:48:48]OFD Sender: To server: pG, [11:48:48]CommunicateWithHost lk.salyk.kg:30040 [11:48:48]ConnectInit lk.salyk.kg [11:48:48]written 0, free lines is 4095 [11:48:48]Connected sock=10 [11:48:48]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 A4 E5 08 01 40 0E 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 69 92 66 0E 04 04 00 18 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 61 07 00 00 35 04 06 00 A0 1E 7A 97 67 46 6F 32 62 44 EB 6B 4F 49 [11:48:48]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 B4 57 47 00 89 E3 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 61 07 00 00 F4 03 04 00 D5 14 92 66 B6 04 01 00 00 6B 2D C9 D5 88 45 05 21 [11:48:48]CommunicateWithHost err = 0 [11:48:48]CheckOFDResponse [11:48:48]1017 (14) - 77093643461234 [11:48:48]1041 (16) - 0000000002098592 [11:48:48]1040 (4) - 1889 [11:48:48]1012 (4) - 13.07.2024 05:47 [11:48:48]1206 (1) - 0 [11:48:48]OFD Sender: Remove packet 1889 [11:48:48]ProducePacketName [11:48:48]name=ofd_packets/00001889 [11:48:48]NVStorageDeleteData [11:48:48]Write to MH i2c: 01 00 00 97 09 A0 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 97 09 00 00 00 00 00 EE 0C A1 [11:48:48]RasterBufferAndPrint [11:48:48]line [11:48:48]line [11:48:48]line [11:48:48]line [11:48:48]line [11:48:48]written 0, free lines is 3317 [11:48:48]MH_Cut [11:48:48]Write to MH i2c: D1 01 00 9E 09 01 79 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: D1 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: D1 01 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: D1 01 00 9E 09 00 78 [11:48:48]Write to MH i2c: 01 00 00 9F 09 A8 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:49]OFD Sender: No OFD packet to send [11:48:49]*** Cut start [11:48:49]*** Partial cut [11:48:49]*** CUTSNS_PIN = 1 [11:48:49]*** CUTSNS_PIN = 0 [11:48:49]*** Brake cut motor [11:48:50]Read from MH i2c: 01 [11:48:50]MH_I2C_Read... [11:48:50]*** Stop cut motor [11:48:50]*** Cut end [11:48:50]Read from MH i2c: 01 07 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 FF 0F BD [11:48:50]process_action close_receipt done [11:48:50]requested_data is exist [11:48:50]produce_requested_data [11:48:50]requested_item fm.sn is exist - process it [11:48:50]wFMCommunicate request_size=4 [11:48:50]MH_SAM_APDU [11:48:50]CAPDU: 80 11 00 00 [11:48:50]Write to MH i2c: E2 08 00 A0 09 80 11 00 00 00 00 00 00 23 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:50]Read from MH i2c: E2 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 17 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 17 00 A0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 79 [11:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:48:50]wFMCommunicate OK [11:48:50]requested_item fd.num is exist - process it [11:48:50]SAM_PROTO_GetFieldsCounters [11:48:50]wFMCommunicate request_size=4 [11:48:50]MH_SAM_APDU [11:48:50]CAPDU: 80 13 00 00 [11:48:50]Write to MH i2c: E2 08 00 A1 09 80 13 00 00 00 00 00 00 26 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:50]Read from MH i2c: E2 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 62 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 62 00 A1 09 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 61 07 00 00 0E 04 04 00 18 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 80 [11:48:50]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 61 07 00 00 0E 04 04 00 18 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 [11:48:50]wFMCommunicate OK [11:48:50]SAM_PROTO_GetFieldsCounters done [11:48:50]requested_item shift.num is exist - process it [11:48:50]requested_item shift.opened is exist - process it [11:48:50]req_shift_opened [11:48:50]FM_GetShiftState [11:48:50]SAM_PROTO_GetShiftState [11:48:50]wFMCommunicate request_size=4 [11:48:50]MH_SAM_APDU [11:48:50]CAPDU: 80 13 01 00 [11:48:50]Write to MH i2c: E2 08 00 A2 09 80 13 01 00 00 00 00 00 28 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:50]Read from MH i2c: E2 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 0E 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 0E 00 A2 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B3 [11:48:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:48:50]wFMCommunicate OK [11:48:50]SAM_PROTO_GetShiftState done [11:48:50]FM_GetShiftState done [11:48:50]req_shift_opened done [11:48:50]requested_item shift.open_date is exist - process it [11:48:50]req_shift_open_date [11:48:50]req_shift_open_date done [11:48:50]produce_requested_data done [11:48:50]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1889,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [11:48:50]process_action_free close_receipt [11:48:50]json_value_free [11:48:50]json_value_free done [11:48:50]process_json_proto returns [11:48:50]Send response to host [11:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1889,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [11:48:50]free response buf [11:48:50]execute_script done [11:48:50]execute_script returns [11:48:50]free content buf [11:48:50]Sock 9.Close socket [11:48:50]Sock 9.Thread stoped [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:19]accept exits with 8 [11:55:19]New connection [11:55:19]New thread 3066977636 created [11:55:19] Sock 8.Parse request [11:55:19]Thread 3066834276 joined [11:55:19]Sock 8.Check first char [11:55:19]Waiting for new connection... [11:55:19]Sock 8.First char is OK [11:55:19]request: POST /json_proto HTTP/1.0 [11:55:19]Method: POST [11:55:19]URL: /json_proto [11:55:19]Method is POST - this is cgi request [11:55:19]url: /json_proto [11:55:19]query_string will be loaded in cgi processing [11:55:19]execute_cgi json_proto POST (null) [11:55:19]execute_cgi path=json_proto method=POST [11:55:19]POST find Content-Length [11:55:19]Host: 172.17.35.133:8080 [11:55:19]Content-Length: 1381 [11:55:19]Content-Type: application/json [11:55:19] [11:55:19]POST finish read [11:55:19]Found Content-Length = 1381 [11:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256322", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "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" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:19]execute_script... [11:55:19]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)256322", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "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" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:19]POST & json_proto [11:55:19]process_json_proto [11:55:19]json parsed OK: [11:55:19]protocol is kg_v1.0 [11:55:19]action value=close_receipt [11:55:19]process_action close_receipt [11:55:19]cmd_close_receipt [11:55:19]MH_GetDate [11:55:19]Write to MH i2c: F0 00 00 A3 09 9B [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: F0 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: F0 09 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: F0 09 00 A3 09 00 28 6B 92 66 1B 28 2A 66 02 [11:55:19]GetLastDocTimeStamp 1720871327 [11:55:19]current date 1720871720 [11:55:19]FM_GetShiftState [11:55:19]SAM_PROTO_GetShiftState [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 01 00 [11:55:19]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B5 [11:55:19]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetShiftState done [11:55:19]FM_GetShiftState done [11:55:19]opened in 1720829379 [11:55:19]opened+sec_in_day 1720915779 [11:55:19]quantity*price = 13000 [11:55:19]sum+1 = 13001 [11:55:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 415.00 НСП 1% : 3.67 НДС 12% : 44.07 Наличными: 0.00 Безнал.: 415.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 59 13.07.2024 11:55 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1890 ФПД: 222154510780375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115521&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1890&fm=222154510780375&tin=02508201610067®Number=0000000000177495&sum=41500 0 [11:55:20]StoreToDocumentArchive [11:55:20]shift 24 fd 1890 [11:55:20]save to /storage/0024/doc_00001890 [11:55:20]save last doc name /storage/0024/doc_00001890 to /storage/kkm_last_doc_name [11:55:20]save OK [11:55:20]Clear old archive folders... [11:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=519 [11:55:20]tlvbuf is 00F99920 [11:55:20]SAM_PROTO_ClearQueue [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 09 00 00 [11:55:20]Write to MH i2c: E2 08 00 B1 09 80 09 00 00 00 00 00 00 2C [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [11:55:20]RAPDU: 90 00 [11:55:20]wFMCommunicate OK [11:55:20]SAM_PROTO_ClearQueue done [11:55:20]KKMCreateOFDPacket [11:55:20]OFDProtocolAddRootSTLVToBuf [11:55:20]FM_MakeSignedData [11:55:20]FM_MakeSignedData [11:55:20]SAM_PROTO_SignData [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 0D 01 02 [11:55:20]Write to MH i2c: E2 08 00 B2 09 80 0D 01 02 00 00 00 00 34 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [11:55:20]RAPDU: 90 00 [11:55:20]wFMCommunicate OK [11:55:20]wFMCommunicate request_size=255 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 0D 02 02 FA 03 00 07 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 [11:55:20]Write to MH i2c: E2 02 01 B3 09 80 0D 02 02 FA 00 03 00 07 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 00 00 E1 [11:55:20]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:21]Read from MH i2c: E2 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 03 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [11:55:21]RAPDU: 90 00 [11:55:21]wFMCommunicate OK [11:55:21]wFMCommunicate request_size=255 [11:55:21]MH_SAM_APDU [11:55:21]CAPDU: 80 0D 02 02 FA 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 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 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 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 29 6B 92 66 0E 04 04 00 18 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 [11:55:21]Write to MH i2c: E2 02 01 B4 09 80 0D 02 02 FA 00 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 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 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 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 29 6B 92 66 0E 04 04 00 18 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 06 [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:21]Read from MH i2c: E2 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 03 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [11:55:21]RAPDU: 90 00 [11:55:21]wFMCommunicate OK [11:55:21]wFMCommunicate request_size=28 [11:55:21]MH_SAM_APDU [11:55:21]CAPDU: 80 0D 02 02 17 39 38 35 39 32 10 04 04 00 62 07 00 00 35 04 06 00 CA 0C 60 B3 47 D7 [11:55:21]Write to MH i2c: E2 1F 00 B5 09 80 0D 02 02 17 00 39 38 35 39 32 10 04 04 00 62 07 00 00 35 04 06 00 CA 0C 60 B3 47 D7 00 00 3E [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:21]Read from MH i2c: E2 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 03 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [11:55:21]RAPDU: 90 00 [11:55:21]wFMCommunicate OK [11:55:21]wFMCommunicate request_size=4 [11:55:21]MH_SAM_APDU [11:55:21]CAPDU: 80 0D 03 02 [11:55:21]Write to MH i2c: E2 08 00 B6 09 80 0D 03 02 00 00 00 00 3A [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:21]Read from MH i2c: E2 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 0B 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 0B 00 B6 09 00 3C DF 39 DE 59 18 AB 5B 90 00 E4 [11:55:21]RAPDU: 3C DF 39 DE 59 18 AB 5B 90 00 [11:55:21]wFMCommunicate OK [11:55:21]SAM_PROTO_SignData done [11:55:21]FM_MakeSignedData done [11:55:21]CreateOFDProtocolMessage [11:55:21]wFMCommunicate request_size=4 [11:55:21]MH_SAM_APDU [11:55:21]CAPDU: 80 11 00 00 [11:55:21]Write to MH i2c: E2 08 00 B7 09 80 11 00 00 00 00 00 00 3A [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:21]Read from MH i2c: E2 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 17 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: E2 17 00 B7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 90 [11:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:55:21]wFMCommunicate OK [11:55:21]CreateOFDProtocolMessage done [11:55:21]OFDSenderStorePacket 1890 [11:55:21]StoreOFDPacket docnum=1890 [11:55: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 1B 02 00 00 98 3C 13 02 71 C3 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 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 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 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 29 6B 92 66 0E 04 04 00 18 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 62 07 00 00 35 04 06 00 CA 0C 60 B3 47 D7 3C DF 39 DE 59 18 AB 5B [11:55:21]CheckFolder [11:55:21]dirname=/storage/ofd_packets [11:55:21]CheckFolder done [11:55:21]ProducePacketName [11:55:21]name=ofd_packets/00001890 [11:55:21]NVStorageSaveData ofd_packets/00001890 [11:55:21]File name is /storage/ofd_packets/00001890 [11:55:21]Write 569 bytes [11:55:21]NVStorageSaveData done [11:55:21]OFDSenderStorePacket done [11:55:21]KKMCreateOFDPacket done [11:55:21]NVStorageSaveData kkm_last_timestamp [11:55:21]File name is /storage/kkm_last_timestamp [11:55:21]Write 4 bytes [11:55:21]NVStorageSaveData done [11:55:21]ExternCall_PrintAddStr [11:55:21]wPrintStart [11:55:21]Write to MH i2c: 01 00 00 B8 09 C1 [11:55:21]Write i2c OK [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 07 00 [11:55:21]MH_I2C_Read... [11:55:21]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [11:55:21]RasterBufferAndPrint [11:55:21]line Счет N : (3)256322 [11:55:21]line ИНН: 02508201610067 [11:55:21]line Контрольно-Кассовый Чек [11:55:21]line ПРОДАЖА [11:55:21]line Товар: 48741415 [11:55:21]line Сигареты LD Super Slims Violet [11:55:21]line 1.000 * 130.00 [11:55:21]line = 130.00 [11:55:21]line НДС 12% НСП 1% [11:55:21]line > о реализуемом товаре [11:55:21]line Товар: 4700000481453 [11:55:21]line Напиток энерг Nitro Max 0,45 ж/б [11:55:21]line 2.000 * 95.00 [11:55:21]line = 190.00 [11:55:21]line НДС 12% НСП 1% [11:55:21]line > о реализуемом товаре [11:55:21]line Товар: 4631150682851 [11:55:21]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [11:55:21]line 1.000 * 95.00 [11:55:21]line = 95.00 [11:55:21]line НДС 12% НСП 1% [11:55:21]line > о реализуемом товаре [11:55:21]line ИТОГО: 415.00 [11:55:21]line НСП 1% : 3.67 [11:55:21]line НДС 12% : 44.07 [11:55:21]line Наличными: 0.00 [11:55:21]line Безнал.: 415.00 [11:55:21]line Место: АЗС № 76 "Партнер Нефть" [11:55:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [11:55:21]line СНО: Общий режим [11:55:21]line Чек 59 13.07.2024 11:55 [11:55:21]line Смена: 24 ФФД: 1.0 [11:55:21]line ЗНМ: 0300000124 [11:55:21]line РНМ: 0000000000177495 [11:55:21]line Версия ККМ: 001 [11:55:21]line Платежная система: АКБ Кыргызстан [11:55:21]line ФМ: 0000000002098592 [11:55:21]line ФД: 1890 [11:55:21]line ФПД: 222154510780375 [11:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115521&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1890&fm=222154510780375&tin=02508201610067®Number=0000000000177495&sum=41500 [11:55:22]line 0 [11:55:22]OFD Sender: Processing packet 1890 [packets to send 1, broken 0] [11:55:22]ProducePacketName [11:55:22]name=ofd_packets/00001890 [11:55:22]OFD Sender: To server: pG, [11:55:22]CommunicateWithHost lk.salyk.kg:30040 [11:55:22]ConnectInit lk.salyk.kg [11:55:22]written 0, free lines is 4095 [11:55:22]Connected sock=10 [11:55: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 1B 02 00 00 98 3C 13 02 71 C3 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 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 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 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 29 6B 92 66 0E 04 04 00 18 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 62 07 00 00 35 04 06 00 CA 0C 60 B3 47 D7 3C DF 39 DE 59 18 AB 5B [11:55: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 AF 38 47 00 B5 E6 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 62 07 00 00 F4 03 04 00 5F 16 92 66 B6 04 01 00 00 61 27 B8 6C D0 92 51 7A [11:55:22]CommunicateWithHost err = 0 [11:55:22]CheckOFDResponse [11:55:22]1017 (14) - 77093643461234 [11:55:22]1041 (16) - 0000000002098592 [11:55:22]1040 (4) - 1890 [11:55:22]1012 (4) - 13.07.2024 05:53 [11:55:22]1206 (1) - 0 [11:55:22]OFD Sender: Remove packet 1890 [11:55:22]ProducePacketName [11:55:22]name=ofd_packets/00001890 [11:55:22]NVStorageDeleteData [11:55:22]Write to MH i2c: 01 00 00 F1 09 FA [11:55:22]Write i2c OK [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: 01 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: 01 07 00 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: 01 07 00 F1 09 00 00 00 00 00 E6 0B F2 [11:55:22]RasterBufferAndPrint [11:55:22]line [11:55:22]line [11:55:22]line [11:55:22]line [11:55:22]line [11:55:22]written 0, free lines is 3052 [11:55:22]MH_Cut [11:55:22]Write to MH i2c: D1 01 00 F8 09 01 D3 [11:55:22]Write i2c OK [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: D1 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: D1 01 00 [11:55:22]MH_I2C_Read... [11:55:22]Read from MH i2c: D1 01 00 F8 09 00 D2 [11:55:22]Write to MH i2c: 01 00 00 F9 09 02 [11:55:22]Write i2c OK [11:55:22]MH_I2C_Read... [11:55:22]OFD Sender: No OFD packet to send [11:55:23]*** Cut start [11:55:23]*** Partial cut [11:55:23]*** CUTSNS_PIN = 1 [11:55:23]*** CUTSNS_PIN = 0 [11:55:23]*** Brake cut motor [11:55:24]Read from MH i2c: 01 [11:55:24]MH_I2C_Read... [11:55:24]*** Stop cut motor [11:55:24]*** Cut end [11:55:24]Read from MH i2c: 01 07 00 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: 01 07 00 F9 09 00 00 00 00 00 FF 0F 17 [11:55:24]process_action close_receipt done [11:55:24]requested_data is exist [11:55:24]produce_requested_data [11:55:24]requested_item fm.sn is exist - process it [11:55:24]wFMCommunicate request_size=4 [11:55:24]MH_SAM_APDU [11:55:24]CAPDU: 80 11 00 00 [11:55:24]Write to MH i2c: E2 08 00 FA 09 80 11 00 00 00 00 00 00 7D [11:55:24]Write i2c OK [11:55:24]MH_I2C_Read... [11:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:24]Read from MH i2c: E2 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 17 00 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 17 00 FA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D3 [11:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:55:24]wFMCommunicate OK [11:55:24]requested_item fd.num is exist - process it [11:55:24]SAM_PROTO_GetFieldsCounters [11:55:24]wFMCommunicate request_size=4 [11:55:24]MH_SAM_APDU [11:55:24]CAPDU: 80 13 00 00 [11:55:24]Write to MH i2c: E2 08 00 FB 09 80 13 00 00 00 00 00 00 80 [11:55:24]Write i2c OK [11:55:24]MH_I2C_Read... [11:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:24]Read from MH i2c: E2 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 62 00 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 62 00 FB 09 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 62 07 00 00 0E 04 04 00 18 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 DE [11:55: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 62 07 00 00 0E 04 04 00 18 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 [11:55:24]wFMCommunicate OK [11:55:24]SAM_PROTO_GetFieldsCounters done [11:55:24]requested_item shift.num is exist - process it [11:55:24]requested_item shift.opened is exist - process it [11:55:24]req_shift_opened [11:55:24]FM_GetShiftState [11:55:24]SAM_PROTO_GetShiftState [11:55:24]wFMCommunicate request_size=4 [11:55:24]MH_SAM_APDU [11:55:24]CAPDU: 80 13 01 00 [11:55:24]Write to MH i2c: E2 08 00 FC 09 80 13 01 00 00 00 00 00 82 [11:55:24]Write i2c OK [11:55:24]MH_I2C_Read... [11:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:24]Read from MH i2c: E2 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 0E 00 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 0E 00 FC 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0D [11:55:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:55:24]wFMCommunicate OK [11:55:24]SAM_PROTO_GetShiftState done [11:55:24]FM_GetShiftState done [11:55:24]req_shift_opened done [11:55:24]requested_item shift.open_date is exist - process it [11:55:24]req_shift_open_date [11:55:24]req_shift_open_date done [11:55:24]produce_requested_data done [11:55:24]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1890,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [11:55:24]process_action_free close_receipt [11:55:24]json_value_free [11:55:24]json_value_free done [11:55:24]process_json_proto returns [11:55:24]Send response to host [11:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1890,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [11:55:24]free response buf [11:55:24]execute_script done [11:55:24]execute_script returns [11:55:24]free content buf [11:55:24]Sock 8.Close socket [11:55:24]Sock 8.Thread stoped [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:40]accept exits with 9 [11:58:40]New connection [11:58:40]New thread 3066834276 created [11:58:40]Thread 3066977636 joined [11:58:40]Waiting for new connection... [11:58:40] Sock 9.Parse request [11:58:40]Sock 9.Check first char [11:58:40]Sock 9.First char is OK [11:58:40]request: POST /json_proto HTTP/1.0 [11:58:40]Method: POST [11:58:40]URL: /json_proto [11:58:40]Method is POST - this is cgi request [11:58:40]url: /json_proto [11:58:40]query_string will be loaded in cgi processing [11:58:40]execute_cgi json_proto POST (null) [11:58:40]execute_cgi path=json_proto method=POST [11:58:40]POST find Content-Length [11:58:40]Host: 172.17.35.133:8080 [11:58:40]Content-Length: 620 [11:58:40]Content-Type: application/json [11:58:40] [11:58:40]POST finish read [11:58:40]Found Content-Length = 620 [11:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256323", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:40]execute_script... [11:58:40]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)256323", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:40]POST & json_proto [11:58:40]process_json_proto [11:58:40]json parsed OK: [11:58:40]protocol is kg_v1.0 [11:58:40]action value=close_receipt [11:58:40]process_action close_receipt [11:58:40]cmd_close_receipt [11:58:40]MH_GetDate [11:58:40]Write to MH i2c: F0 00 00 FD 09 F5 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: F0 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: F0 09 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: F0 09 00 FD 09 00 F2 6B 92 66 1B 28 2A 66 26 [11:58:40]GetLastDocTimeStamp 1720871721 [11:58:40]current date 1720871922 [11:58:40]FM_GetShiftState [11:58:40]SAM_PROTO_GetShiftState [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 13 01 00 [11:58:40]Write to MH i2c: E2 08 00 FE 09 80 13 01 00 00 00 00 00 84 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:41]Read from MH i2c: E2 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 0E 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 0E 00 FE 09 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0F [11:58:41]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:58:41]wFMCommunicate OK [11:58:41]SAM_PROTO_GetShiftState done [11:58:41]FM_GetShiftState done [11:58:41]opened in 1720829379 [11:58:41]opened+sec_in_day 1720915779 [11:58:41]quantity*price = 40500 [11:58:41]sum+1 = 40501 [11:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 60 13.07.2024 11:58 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1891 ФПД: 100435156727480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115842&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1891&fm=100435156727480&tin=02508201610067®Number=0000000000177495&sum=40500 0 [11:58:42]StoreToDocumentArchive [11:58:42]shift 24 fd 1891 [11:58:42]save to /storage/0024/doc_00001891 [11:58:42]save last doc name /storage/0024/doc_00001891 to /storage/kkm_last_doc_name [11:58:42]save OK [11:58:42]Clear old archive folders... [11:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:58:42]tlvbuf is 00F9ABB0 [11:58:42]SAM_PROTO_ClearQueue [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 09 00 00 [11:58:42]Write to MH i2c: E2 08 00 0B 0A 80 09 00 00 00 00 00 00 87 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]SAM_PROTO_ClearQueue done [11:58:42]KKMCreateOFDPacket [11:58:42]OFDProtocolAddRootSTLVToBuf [11:58:42]FM_MakeSignedData [11:58:42]FM_MakeSignedData [11:58:42]SAM_PROTO_SignData [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 01 02 [11:58:42]Write to MH i2c: E2 08 00 0C 0A 80 0D 01 02 00 00 00 00 8F [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=255 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F2 6B 92 66 0E 04 04 00 18 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 [11:58:42]Write to MH i2c: E2 02 01 0D 0A 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F2 6B 92 66 0E 04 04 00 18 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 3B [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=39 [11:58:42]MH_SAM_APDU [11:58:42]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 63 07 00 00 35 04 06 00 5B 58 61 D6 F6 B8 [11:58:42]Write to MH i2c: E2 2A 00 0E 0A 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 63 07 00 00 35 04 06 00 5B 58 61 D6 F6 B8 00 00 52 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 03 02 [11:58:42]Write to MH i2c: E2 08 00 0F 0A 80 0D 03 02 00 00 00 00 94 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 0B 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 0B 00 0F 0A 00 6F 22 D3 6A 2D F0 A8 2E 90 00 56 [11:58:42]RAPDU: 6F 22 D3 6A 2D F0 A8 2E 90 00 [11:58:42]wFMCommunicate OK [11:58:42]SAM_PROTO_SignData done [11:58:42]FM_MakeSignedData done [11:58:42]CreateOFDProtocolMessage [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 11 00 00 [11:58:42]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 17 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 EA [11:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:58:42]wFMCommunicate OK [11:58:42]CreateOFDProtocolMessage done [11:58:42]OFDSenderStorePacket 1891 [11:58:42]StoreOFDPacket docnum=1891 [11:58:42]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 D7 81 24 01 95 DD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F2 6B 92 66 0E 04 04 00 18 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 63 07 00 00 35 04 06 00 5B 58 61 D6 F6 B8 6F 22 D3 6A 2D F0 A8 2E [11:58:42]CheckFolder [11:58:42]dirname=/storage/ofd_packets [11:58:42]CheckFolder done [11:58:42]ProducePacketName [11:58:42]name=ofd_packets/00001891 [11:58:42]NVStorageSaveData ofd_packets/00001891 [11:58:42]File name is /storage/ofd_packets/00001891 [11:58:42]Write 330 bytes [11:58:42]NVStorageSaveData done [11:58:42]OFDSenderStorePacket done [11:58:42]KKMCreateOFDPacket done [11:58:42]NVStorageSaveData kkm_last_timestamp [11:58:42]File name is /storage/kkm_last_timestamp [11:58:42]Write 4 bytes [11:58:42]NVStorageSaveData done [11:58:42]ExternCall_PrintAddStr [11:58:42]wPrintStart [11:58:42]Write to MH i2c: 01 00 00 11 0A 1B [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 07 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [11:58:42]RasterBufferAndPrint [11:58:42]line Счет N : (3)256323 [11:58:42]line ИНН: 02508201610067 [11:58:42]line Контрольно-Кассовый Чек [11:58:42]line ПРОДАЖА [11:58:42]line Товар: 4650063110756 [11:58:42]line Масло Gazpromneft Super 10w40 1л [11:58:42]line 1.000 * 405.00 [11:58:42]line = 405.00 [11:58:42]line НДС 12% НСП 1% [11:58:42]line > о реализуемом товаре [11:58:42]line ИТОГО: 405.00 [11:58:42]line НСП 1% : 3.58 [11:58:42]line НДС 12% : 43.01 [11:58:42]line Наличными: 405.00 [11:58:42]line Безнал.: 0.00 [11:58:42]line Место: АЗС № 76 "Партнер Нефть" [11:58:42]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [11:58:42]line СНО: Общий режим [11:58:42]line Чек 60 13.07.2024 11:58 [11:58:42]line Смена: 24 ФФД: 1.0 [11:58:42]line ЗНМ: 0300000124 [11:58:42]line РНМ: 0000000000177495 [11:58:42]line Версия ККМ: 001 [11:58:42]line ФМ: 0000000002098592 [11:58:42]line ФД: 1891 [11:58:42]line ФПД: 100435156727480 [11:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115842&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1891&fm=100435156727480&tin=02508201610067®Number=0000000000177495&sum=40500 [11:58:43]line 0 [11:58:43]OFD Sender: Processing packet 1891 [packets to send 1, broken 0] [11:58:43]ProducePacketName [11:58:43]name=ofd_packets/00001891 [11:58:43]OFD Sender: To server: pG, [11:58:43]CommunicateWithHost lk.salyk.kg:30040 [11:58:43]ConnectInit lk.salyk.kg [11:58:43]written 0, free lines is 4095 [11:58:43]Connected sock=11 [11:58: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 2C 01 00 00 D7 81 24 01 95 DD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F2 6B 92 66 0E 04 04 00 18 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 63 07 00 00 35 04 06 00 5B 58 61 D6 F6 B8 6F 22 D3 6A 2D F0 A8 2E [11:58: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 97 F5 47 00 0D 5C 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 63 07 00 00 F4 03 04 00 28 17 92 66 B6 04 01 00 00 CD D9 25 40 0B FB 69 BB [11:58:43]CommunicateWithHost err = 0 [11:58:43]CheckOFDResponse [11:58:43]1017 (14) - 77093643461234 [11:58:43]1041 (16) - 0000000002098592 [11:58:43]1040 (4) - 1891 [11:58:43]1012 (4) - 13.07.2024 05:56 [11:58:43]1206 (1) - 0 [11:58:43]OFD Sender: Remove packet 1891 [11:58:43]ProducePacketName [11:58:43]name=ofd_packets/00001891 [11:58:43]NVStorageDeleteData [11:58:43]Write to MH i2c: 01 00 00 3A 0A 44 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 3A 0A 00 00 00 00 00 D5 0C 2C [11:58:43]RasterBufferAndPrint [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]written 0, free lines is 3292 [11:58:43]MH_Cut [11:58:43]Write to MH i2c: D1 01 00 41 0A 01 1D [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 01 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 01 00 41 0A 00 1C [11:58:43]Write to MH i2c: 01 00 00 42 0A 4C [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]OFD Sender: No OFD packet to send [11:58:44]*** Cut start [11:58:44]*** Partial cut [11:58:44]*** CUTSNS_PIN = 1 [11:58:44]*** CUTSNS_PIN = 0 [11:58:44]*** Brake cut motor [11:58:44]Read from MH i2c: 01 [11:58:44]MH_I2C_Read... [11:58:44]*** Stop cut motor [11:58:44]*** Cut end [11:58:44]Read from MH i2c: 01 07 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: 01 07 00 42 0A 00 00 00 00 00 FF 0F 61 [11:58:44]process_action close_receipt done [11:58:44]requested_data is exist [11:58:44]produce_requested_data [11:58:44]requested_item fm.sn is exist - process it [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 11 00 00 [11:58:44]Write to MH i2c: E2 08 00 43 0A 80 11 00 00 00 00 00 00 C7 [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:44]Read from MH i2c: E2 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 17 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 17 00 43 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1D [11:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [11:58:44]wFMCommunicate OK [11:58:44]requested_item fd.num is exist - process it [11:58:44]SAM_PROTO_GetFieldsCounters [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 13 00 00 [11:58:44]Write to MH i2c: E2 08 00 44 0A 80 13 00 00 00 00 00 00 CA [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:45]Read from MH i2c: E2 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 62 00 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 62 00 44 0A 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 63 07 00 00 0E 04 04 00 18 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 2C [11:58: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 63 07 00 00 0E 04 04 00 18 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 [11:58:45]wFMCommunicate OK [11:58:45]SAM_PROTO_GetFieldsCounters done [11:58:45]requested_item shift.num is exist - process it [11:58:45]requested_item shift.opened is exist - process it [11:58:45]req_shift_opened [11:58:45]FM_GetShiftState [11:58:45]SAM_PROTO_GetShiftState [11:58:45]wFMCommunicate request_size=4 [11:58:45]MH_SAM_APDU [11:58:45]CAPDU: 80 13 01 00 [11:58:45]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [11:58:45]Write i2c OK [11:58:45]MH_I2C_Read... [11:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:45]Read from MH i2c: E2 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 0E 00 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 57 [11:58:45]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [11:58:45]wFMCommunicate OK [11:58:45]SAM_PROTO_GetShiftState done [11:58:45]FM_GetShiftState done [11:58:45]req_shift_opened done [11:58:45]requested_item shift.open_date is exist - process it [11:58:45]req_shift_open_date [11:58:45]req_shift_open_date done [11:58:45]produce_requested_data done [11:58:45]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1891,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [11:58:45]process_action_free close_receipt [11:58:45]json_value_free [11:58:45]json_value_free done [11:58:45]process_json_proto returns [11:58:45]Send response to host [11:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1891,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [11:58:45]free response buf [11:58:45]execute_script done [11:58:45]execute_script returns [11:58:45]free content buf [11:58:45]Sock 9.Close socket [11:58:45]Sock 9.Thread stoped [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:06]accept exits with 8 [12:00:06]New connection [12:00:06]New thread 3066977636 created [12:00:06]Thread 3066834276 joined [12:00:06]Waiting for new connection... [12:00:06] Sock 8.Parse request [12:00:06]Sock 8.Check first char [12:00:06]Sock 8.First char is OK [12:00:06]request: POST /json_proto HTTP/1.0 [12:00:06]Method: POST [12:00:06]URL: /json_proto [12:00:06]Method is POST - this is cgi request [12:00:06]url: /json_proto [12:00:06]query_string will be loaded in cgi processing [12:00:06]execute_cgi json_proto POST (null) [12:00:06]execute_cgi path=json_proto method=POST [12:00:06]POST find Content-Length [12:00:06]Host: 172.17.35.133:8080 [12:00:06]Content-Length: 654 [12:00:06]Content-Type: application/json [12:00:06] [12:00:06]POST finish read [12:00:06]Found Content-Length = 654 [12:00:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256324", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:06]execute_script... [12: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)256324", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:06]POST & json_proto [12:00:06]process_json_proto [12:00:06]json parsed OK: [12:00:06]protocol is kg_v1.0 [12:00:06]action value=close_receipt [12:00:06]process_action close_receipt [12:00:06]cmd_close_receipt [12:00:06]MH_GetDate [12:00:06]Write to MH i2c: F0 00 00 46 0A 3F [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: F0 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: F0 09 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: F0 09 00 46 0A 00 47 6C 92 66 1B 28 2A 66 C6 [12:00:06]GetLastDocTimeStamp 1720871922 [12:00:06]current date 1720872007 [12:00:06]FM_GetShiftState [12:00:06]SAM_PROTO_GetShiftState [12:00:06]wFMCommunicate request_size=4 [12:00:06]MH_SAM_APDU [12:00:06]CAPDU: 80 13 01 00 [12:00:06]Write to MH i2c: E2 08 00 47 0A 80 13 01 00 00 00 00 00 CE [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 0E 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 0E 00 47 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 59 [12:00:06]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:00:06]wFMCommunicate OK [12:00:06]SAM_PROTO_GetShiftState done [12:00:06]FM_GetShiftState done [12:00:06]opened in 1720829379 [12:00:06]opened+sec_in_day 1720915779 [12:00:06]quantity*price = 9500 [12:00:06]sum+1 = 9501 [12:00:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 61 13.07.2024 12:00 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1892 ФПД: 197421982751656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120007&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1892&fm=197421982751656&tin=02508201610067®Number=0000000000177495&sum=9500 0 [12:00:07]StoreToDocumentArchive [12:00:07]shift 24 fd 1892 [12:00:07]save to /storage/0024/doc_00001892 [12:00:07]save last doc name /storage/0024/doc_00001892 to /storage/kkm_last_doc_name [12:00:07]save OK [12:00:07]Clear old archive folders... [12:00:07]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:00:07]tlvbuf is 01000D30 [12:00:07]SAM_PROTO_ClearQueue [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 09 00 00 [12:00:07]Write to MH i2c: E2 08 00 54 0A 80 09 00 00 00 00 00 00 D0 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_ClearQueue done [12:00:07]KKMCreateOFDPacket [12:00:07]OFDProtocolAddRootSTLVToBuf [12:00:07]FM_MakeSignedData [12:00:07]FM_MakeSignedData [12:00:07]SAM_PROTO_SignData [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 01 02 [12:00:07]Write to MH i2c: E2 08 00 55 0A 80 0D 01 02 00 00 00 00 D8 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=255 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 47 6C 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:00:07]Write to MH i2c: E2 02 01 56 0A 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 47 6C 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 78 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=52 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 02 02 2F 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 64 07 00 00 35 04 06 00 B3 8D E3 27 1B A8 [12:00:07]Write to MH i2c: E2 37 00 57 0A 80 0D 02 02 2F 00 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 64 07 00 00 35 04 06 00 B3 8D E3 27 1B A8 00 00 21 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 03 02 [12:00:07]Write to MH i2c: E2 08 00 58 0A 80 0D 03 02 00 00 00 00 DD [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0B 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0B 00 58 0A 00 2A 62 9E 91 15 DF 50 1E 90 00 FB [12:00:07]RAPDU: 2A 62 9E 91 15 DF 50 1E 90 00 [12:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_SignData done [12:00:07]FM_MakeSignedData done [12:00:07]CreateOFDProtocolMessage [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 11 00 00 [12:00:07]Write to MH i2c: E2 08 00 59 0A 80 11 00 00 00 00 00 00 DD [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 59 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 33 [12:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:00:07]wFMCommunicate OK [12:00:07]CreateOFDProtocolMessage done [12:00:07]OFDSenderStorePacket 1892 [12:00:07]StoreOFDPacket docnum=1892 [12:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 39 01 00 00 E0 90 31 01 B1 20 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 47 6C 92 66 0E 04 04 00 18 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 64 07 00 00 35 04 06 00 B3 8D E3 27 1B A8 2A 62 9E 91 15 DF 50 1E [12:00:07]CheckFolder [12:00:07]dirname=/storage/ofd_packets [12:00:07]CheckFolder done [12:00:07]ProducePacketName [12:00:07]name=ofd_packets/00001892 [12:00:07]NVStorageSaveData ofd_packets/00001892 [12:00:07]File name is /storage/ofd_packets/00001892 [12:00:07]Write 343 bytes [12:00:07]NVStorageSaveData done [12:00:07]OFDSenderStorePacket done [12:00:07]KKMCreateOFDPacket done [12:00:07]NVStorageSaveData kkm_last_timestamp [12:00:07]File name is /storage/kkm_last_timestamp [12:00:07]Write 4 bytes [12:00:07]NVStorageSaveData done [12:00:07]ExternCall_PrintAddStr [12:00:07]wPrintStart [12:00:07]Write to MH i2c: 01 00 00 5A 0A 64 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 FF 0F 79 [12:00:07]RasterBufferAndPrint [12:00:07]line Счет N : (3)256324 [12:00:07]line ИНН: 02508201610067 [12:00:07]line Контрольно-Кассовый Чек [12:00:07]line ПРОДАЖА [12:00:07]line Товар: 4700000480050 [12:00:07]line Напиток Nitro Energy эн green ж/б 0,45л [12:00:07]line 1.000 * 95.00 [12:00:07]line = 95.00 [12:00:07]line НДС 12% НСП 1% [12:00:07]line > о реализуемом товаре [12:00:07]line ИТОГО: 95.00 [12:00:07]line НСП 1% : 0.84 [12:00:07]line НДС 12% : 10.09 [12:00:07]line Наличными: 95.00 [12:00:07]line Безнал.: 0.00 [12:00:07]line Место: АЗС № 76 "Партнер Нефть" [12:00:07]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:00:07]line СНО: Общий режим [12:00:07]line Чек 61 13.07.2024 12:00 [12:00:07]line Смена: 24 ФФД: 1.0 [12:00:07]line ЗНМ: 0300000124 [12:00:07]line РНМ: 0000000000177495 [12:00:07]line Версия ККМ: 001 [12:00:07]line ФМ: 0000000002098592 [12:00:07]line ФД: 1892 [12:00:07]line ФПД: 197421982751656 [12:00:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120007&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1892&fm=197421982751656&tin=02508201610067®Number=0000000000177495&sum=9500 [12:00:08]line 0 [12:00:08]OFD Sender: Processing packet 1892 [packets to send 1, broken 0] [12:00:08]ProducePacketName [12:00:08]name=ofd_packets/00001892 [12:00:08]OFD Sender: To server: pG, [12:00:08]CommunicateWithHost lk.salyk.kg:30040 [12:00:08]ConnectInit lk.salyk.kg [12:00:08]written 0, free lines is 4095 [12:00:08]Connected sock=10 [12:00:08]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 39 01 00 00 E0 90 31 01 B1 20 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 47 6C 92 66 0E 04 04 00 18 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 64 07 00 00 35 04 06 00 B3 8D E3 27 1B A8 2A 62 9E 91 15 DF 50 1E [12: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 12 38 47 00 55 56 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 64 07 00 00 F4 03 04 00 7D 17 92 66 B6 04 01 00 00 53 81 5B 3D 89 6D 05 D4 [12:00:08]CommunicateWithHost err = 0 [12:00:08]CheckOFDResponse [12:00:08]1017 (14) - 77093643461234 [12:00:08]1041 (16) - 0000000002098592 [12:00:08]1040 (4) - 1892 [12:00:08]1012 (4) - 13.07.2024 05:58 [12:00:08]1206 (1) - 0 [12:00:08]OFD Sender: Remove packet 1892 [12:00:08]ProducePacketName [12:00:08]name=ofd_packets/00001892 [12:00:08]NVStorageDeleteData [12:00:08]Write to MH i2c: 01 00 00 83 0A 8D [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 E8 0C 88 [12:00:08]RasterBufferAndPrint [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]written 0, free lines is 3310 [12:00:08]MH_Cut [12:00:08]Write to MH i2c: D1 01 00 8A 0A 01 66 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 01 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 01 00 8A 0A 00 65 [12:00:08]Write to MH i2c: 01 00 00 8B 0A 95 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]OFD Sender: No OFD packet to send [12:00:09]*** Cut start [12:00:09]*** Partial cut [12:00:09]*** CUTSNS_PIN = 1 [12:00:09]*** CUTSNS_PIN = 0 [12:00:09]*** Brake cut motor [12:00:09]Read from MH i2c: 01 [12:00:09]MH_I2C_Read... [12:00:09]*** Stop cut motor [12:00:09]*** Cut end [12:00:09]Read from MH i2c: 01 07 00 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [12:00:09]process_action close_receipt done [12:00:09]requested_data is exist [12:00:09]produce_requested_data [12:00:09]requested_item fm.sn is exist - process it [12:00:09]wFMCommunicate request_size=4 [12:00:09]MH_SAM_APDU [12:00:09]CAPDU: 80 11 00 00 [12:00:09]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [12:00:09]Write i2c OK [12:00:09]MH_I2C_Read... [12:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:09]Read from MH i2c: E2 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: E2 17 00 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 66 [12: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 [12:00:09]wFMCommunicate OK [12:00:09]requested_item fd.num is exist - process it [12:00:09]SAM_PROTO_GetFieldsCounters [12:00:09]wFMCommunicate request_size=4 [12:00:09]MH_SAM_APDU [12:00:09]CAPDU: 80 13 00 00 [12:00:09]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [12:00:09]Write i2c OK [12:00:09]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 62 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 62 00 8D 0A 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 64 07 00 00 0E 04 04 00 18 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 79 [12:00:10]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 64 07 00 00 0E 04 04 00 18 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 [12:00:10]wFMCommunicate OK [12:00:10]SAM_PROTO_GetFieldsCounters done [12:00:10]requested_item shift.num is exist - process it [12:00:10]requested_item shift.opened is exist - process it [12:00:10]req_shift_opened [12:00:10]FM_GetShiftState [12:00:10]SAM_PROTO_GetShiftState [12:00:10]wFMCommunicate request_size=4 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 13 01 00 [12:00:10]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 0E 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A0 [12:00:10]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:00:10]wFMCommunicate OK [12:00:10]SAM_PROTO_GetShiftState done [12:00:10]FM_GetShiftState done [12:00:10]req_shift_opened done [12:00:10]requested_item shift.open_date is exist - process it [12:00:10]req_shift_open_date [12:00:10]req_shift_open_date done [12:00:10]produce_requested_data done [12:00:10]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1892,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:00:10]process_action_free close_receipt [12:00:10]json_value_free [12:00:10]json_value_free done [12:00:10]process_json_proto returns [12:00:10]Send response to host [12:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1892,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:00:10]free response buf [12:00:10]execute_script done [12:00:10]execute_script returns [12:00:10]free content buf [12:00:10]Sock 8.Close socket [12:00:10]Sock 8.Thread stoped [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:51]accept exits with 9 [12:03:51]New connection [12:03:51]New thread 3066834276 created [12:03:51]Thread 3066977636 joined [12:03:51]Waiting for new connection... [12:03:51] Sock 9.Parse request [12:03:51]Sock 9.Check first char [12:03:51]Sock 9.First char is OK [12:03:51]request: POST /json_proto HTTP/1.0 [12:03:51]Method: POST [12:03:51]URL: /json_proto [12:03:51]Method is POST - this is cgi request [12:03:51]url: /json_proto [12:03:51]query_string will be loaded in cgi processing [12:03:51]execute_cgi json_proto POST (null) [12:03:51]execute_cgi path=json_proto method=POST [12:03:51]POST find Content-Length [12:03:51]Host: 172.17.35.133:8080 [12:03:51]Content-Length: 933 [12:03:51]Content-Type: application/json [12:03:51] [12:03:51]POST finish read [12:03:51]Found Content-Length = 933 [12:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256325", "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 }]} ,{ "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 297.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:51]execute_script... [12:03: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)256325", "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 }]} ,{ "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 297.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:51]POST & json_proto [12:03:51]process_json_proto [12:03:51]json parsed OK: [12:03:51]protocol is kg_v1.0 [12:03:51]action value=close_receipt [12:03:51]process_action close_receipt [12:03:51]cmd_close_receipt [12:03:51]MH_GetDate [12:03:51]Write to MH i2c: F0 00 00 8F 0A 88 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 09 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 09 00 8F 0A 00 28 6D 92 66 1B 28 2A 66 F1 [12:03:51]GetLastDocTimeStamp 1720872007 [12:03:51]current date 1720872232 [12:03:51]FM_GetShiftState [12:03:51]SAM_PROTO_GetShiftState [12:03:51]wFMCommunicate request_size=4 [12:03:51]MH_SAM_APDU [12:03:51]CAPDU: 80 13 01 00 [12:03:51]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:51]Read from MH i2c: E2 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A2 [12:03:51]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:03:51]wFMCommunicate OK [12:03:51]SAM_PROTO_GetShiftState done [12:03:51]FM_GetShiftState done [12:03:51]opened in 1720829379 [12:03:51]opened+sec_in_day 1720915779 [12:03:51]quantity*price = 10700 [12:03:51]sum+1 = 10701 [12:03:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483259 Напиток Nitro Fresh Мохито 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 297.00 НСП 1% : 2.63 НДС 12% : 31.54 Наличными: 297.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 62 13.07.2024 12:03 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1893 ФПД: 91759841448939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120352&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1893&fm=91759841448939&tin=02508201610067®Number=0000000000177495&sum=29700 0 [12:03:52]StoreToDocumentArchive [12:03:52]shift 24 fd 1893 [12:03:52]save to /storage/0024/doc_00001893 [12:03:52]save last doc name /storage/0024/doc_00001893 to /storage/kkm_last_doc_name [12:03:52]save OK [12:03:52]Clear old archive folders... [12:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=396 [12:03:52]tlvbuf is 00FF1C50 [12:03:52]SAM_PROTO_ClearQueue [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 09 00 00 [12:03:52]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]SAM_PROTO_ClearQueue done [12:03:52]KKMCreateOFDPacket [12:03:52]OFDProtocolAddRootSTLVToBuf [12:03:52]FM_MakeSignedData [12:03:52]FM_MakeSignedData [12:03:52]SAM_PROTO_SignData [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 01 02 [12:03:52]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=255 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 02 02 FA 03 00 8C 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF [12:03:52]Write to MH i2c: E2 02 01 9F 0A 80 0D 02 02 FA 00 03 00 8C 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 00 00 83 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=155 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 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 28 6D 92 66 0E 04 04 00 18 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 65 07 00 00 35 04 06 00 53 74 80 C1 13 EB [12:03:52]Write to MH i2c: E2 9E 00 A0 0A 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 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 28 6D 92 66 0E 04 04 00 18 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 65 07 00 00 35 04 06 00 53 74 80 C1 13 EB 00 00 C8 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 03 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [12:03:53]RAPDU: 90 00 [12:03:53]wFMCommunicate OK [12:03:53]wFMCommunicate request_size=4 [12:03:53]MH_SAM_APDU [12:03:53]CAPDU: 80 0D 03 02 [12:03:53]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 0B 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 0B 00 A1 0A 00 0B 75 82 91 5A A6 3D 84 90 00 7B [12:03:53]RAPDU: 0B 75 82 91 5A A6 3D 84 90 00 [12:03:53]wFMCommunicate OK [12:03:53]SAM_PROTO_SignData done [12:03:53]FM_MakeSignedData done [12:03:53]CreateOFDProtocolMessage [12:03:53]wFMCommunicate request_size=4 [12:03:53]MH_SAM_APDU [12:03:53]CAPDU: 80 11 00 00 [12:03:53]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 17 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7C [12:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:03:53]wFMCommunicate OK [12:03:53]CreateOFDProtocolMessage done [12:03:53]OFDSenderStorePacket 1893 [12:03:53]StoreOFDPacket docnum=1893 [12:03: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 A0 01 00 00 51 81 98 01 D5 1F 5A 03 01 00 03 00 8C 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 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 28 6D 92 66 0E 04 04 00 18 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 65 07 00 00 35 04 06 00 53 74 80 C1 13 EB 0B 75 82 91 5A A6 3D 84 [12:03:53]CheckFolder [12:03:53]dirname=/storage/ofd_packets [12:03:53]CheckFolder done [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00001893 [12:03:53]NVStorageSaveData ofd_packets/00001893 [12:03:53]File name is /storage/ofd_packets/00001893 [12:03:53]Write 446 bytes [12:03:53]NVStorageSaveData done [12:03:53]OFDSenderStorePacket done [12:03:53]KKMCreateOFDPacket done [12:03:53]NVStorageSaveData kkm_last_timestamp [12:03:53]File name is /storage/kkm_last_timestamp [12:03:53]Write 4 bytes [12:03:53]NVStorageSaveData done [12:03:53]ExternCall_PrintAddStr [12:03:53]wPrintStart [12:03:53]Write to MH i2c: 01 00 00 A3 0A AD [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 [12:03:53]MH_I2C_Read... [12:03:53]OFD Sender: Processing packet 1893 [packets to send 1, broken 0] [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00001893 [12:03:53]OFD Sender: To server: pG, [12:03:53]CommunicateWithHost lk.salyk.kg:30040 [12:03:53]ConnectInit lk.salyk.kg [12:03:53]Read from MH i2c: 01 07 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [12:03:53]RasterBufferAndPrint [12:03:53]line Счет N : (3)256325 [12:03:53]line ИНН: 02508201610067 [12:03:53]line Контрольно-Кассовый Чек [12:03:53]line ПРОДАЖА [12:03:53]line Товар: 5449000189318 [12:03:53]line Холодный чай Fuse лимон 1л [12:03:53]line 1.000 * 107.00 [12:03:53]line = 107.00 [12:03:53]line НДС 12% НСП 1% [12:03:53]line > о реализуемом товаре [12:03:53]line Товар: 4700000483259 [12:03:53]line Напиток Nitro Fresh Мохито [12:03:53]line 2.000 * 95.00 [12:03:53]line = 190.00 [12:03:53]line НДС 12% НСП 1% [12:03:53]line > о реализуемом товаре [12:03:53]line ИТОГО: 297.00 [12:03:53]line НСП 1% : 2.63 [12:03:53]line НДС 12% : 31.54 [12:03:53]line Наличными: 297.00 [12:03:53]line Безнал.: 0.00 [12:03:53]line Место: АЗС № 76 "Партнер Нефть" [12:03:53]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:03:53]line СНО: Общий режим [12:03:53]line Чек 62 13.07.2024 12:03 [12:03:53]line Смена: 24 ФФД: 1.0 [12:03:53]line ЗНМ: 0300000124 [12:03:53]line РНМ: 0000000000177495 [12:03:53]line Версия ККМ: 001 [12:03:53]line ФМ: 0000000002098592 [12:03:53]line ФД: 1893 [12:03:53]line ФПД: 91759841448939 [12:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120352&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1893&fm=91759841448939&tin=02508201610067®Number=0000000000177495&sum=29700 [12:03:53]line 0 [12:03:53]written 0, free lines is 4095 [12:03:53]Connected sock=10 [12:03: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 A0 01 00 00 51 81 98 01 D5 1F 5A 03 01 00 03 00 8C 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 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 28 6D 92 66 0E 04 04 00 18 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 65 07 00 00 35 04 06 00 53 74 80 C1 13 EB 0B 75 82 91 5A A6 3D 84 [12:03: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 3C A2 47 00 5D D8 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 65 07 00 00 F4 03 04 00 5F 18 92 66 B6 04 01 00 00 3F 03 78 0C CC B9 DF F5 [12:03:53]CommunicateWithHost err = 0 [12:03:53]CheckOFDResponse [12:03:53]1017 (14) - 77093643461234 [12:03:53]1041 (16) - 0000000002098592 [12:03:53]1040 (4) - 1893 [12:03:53]1012 (4) - 13.07.2024 06:02 [12:03:53]1206 (1) - 0 [12:03:53]OFD Sender: Remove packet 1893 [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00001893 [12:03:53]NVStorageDeleteData [12:03:53]Write to MH i2c: 01 00 00 D1 0A DB [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 [12:03:53]MH_I2C_Read... [12:03:54]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 AD 0C 9B [12:03:54]RasterBufferAndPrint [12:03:54]line [12:03:54]line [12:03:54]line [12:03:54]line [12:03:54]line [12:03:54]written 0, free lines is 3252 [12:03:54]MH_Cut [12:03:54]Write to MH i2c: D1 01 00 D8 0A 01 B4 [12:03:54]Write i2c OK [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: D1 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: D1 01 00 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: D1 01 00 D8 0A 00 B3 [12:03:54]Write to MH i2c: 01 00 00 D9 0A E3 [12:03:54]Write i2c OK [12:03:54]MH_I2C_Read... [12:03:54]OFD Sender: No OFD packet to send [12:03:54]*** Cut start [12:03:54]*** Partial cut [12:03:54]*** CUTSNS_PIN = 1 [12:03:54]*** CUTSNS_PIN = 0 [12:03:55]*** Brake cut motor [12:03:55]Read from MH i2c: 01 [12:03:55]MH_I2C_Read... [12:03:55]*** Stop cut motor [12:03:55]*** Cut end [12:03:55]Read from MH i2c: 01 07 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [12:03:55]process_action close_receipt done [12:03:55]requested_data is exist [12:03:55]produce_requested_data [12:03:55]requested_item fm.sn is exist - process it [12:03:55]wFMCommunicate request_size=4 [12:03:55]MH_SAM_APDU [12:03:55]CAPDU: 80 11 00 00 [12:03:55]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [12:03:55]Write i2c OK [12:03:55]MH_I2C_Read... [12:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:55]Read from MH i2c: E2 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 17 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B4 [12:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:03:55]wFMCommunicate OK [12:03:55]requested_item fd.num is exist - process it [12:03:55]SAM_PROTO_GetFieldsCounters [12:03:55]wFMCommunicate request_size=4 [12:03:55]MH_SAM_APDU [12:03:55]CAPDU: 80 13 00 00 [12:03:55]Write to MH i2c: E2 08 00 DB 0A 80 13 00 00 00 00 00 00 61 [12:03:55]Write i2c OK [12:03:55]MH_I2C_Read... [12:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:55]Read from MH i2c: E2 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 62 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 62 00 DB 0A 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 65 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [12:03: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 65 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:55]wFMCommunicate OK [12:03:55]SAM_PROTO_GetFieldsCounters done [12:03:55]requested_item shift.num is exist - process it [12:03:55]requested_item shift.opened is exist - process it [12:03:55]req_shift_opened [12:03:55]FM_GetShiftState [12:03:55]SAM_PROTO_GetShiftState [12:03:55]wFMCommunicate request_size=4 [12:03:55]MH_SAM_APDU [12:03:55]CAPDU: 80 13 01 00 [12:03:55]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [12:03:55]Write i2c OK [12:03:55]MH_I2C_Read... [12:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:55]Read from MH i2c: E2 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 0E 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EE [12:03:55]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:03:55]wFMCommunicate OK [12:03:55]SAM_PROTO_GetShiftState done [12:03:55]FM_GetShiftState done [12:03:55]req_shift_opened done [12:03:55]requested_item shift.open_date is exist - process it [12:03:55]req_shift_open_date [12:03:55]req_shift_open_date done [12:03:55]produce_requested_data done [12:03:55]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1893,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:03:55]process_action_free close_receipt [12:03:55]json_value_free [12:03:55]json_value_free done [12:03:55]process_json_proto returns [12:03:55]Send response to host [12:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1893,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:03:55]free response buf [12:03:55]execute_script done [12:03:55]execute_script returns [12:03:55]free content buf [12:03:55]Sock 9.Close socket [12:03:55]Sock 9.Thread stoped [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:50]accept exits with 8 [12:17:50]New connection [12:17:50]New thread 3066977636 created [12:17:50]Thread 3066834276 joined [12:17:50]Waiting for new connection... [12:17:50] Sock 8.Parse request [12:17:50]Sock 8.Check first char [12:17:50]Sock 8.First char is OK [12:17:50]request: POST /json_proto HTTP/1.0 [12:17:50]Method: POST [12:17:50]URL: /json_proto [12:17:50]Method is POST - this is cgi request [12:17:50]url: /json_proto [12:17:50]query_string will be loaded in cgi processing [12:17:50]execute_cgi json_proto POST (null) [12:17:50]execute_cgi path=json_proto method=POST [12:17:50]POST find Content-Length [12:17:50]Host: 172.17.35.133:8080 [12:17:50]Content-Length: 683 [12:17:50]Content-Type: application/json [12:17:50] [12:17:50]POST finish read [12:17:50]Found Content-Length = 683 [12:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619012", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:50]execute_script... [12:17: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 : (1)1619012", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:50]POST & json_proto [12:17:50]process_json_proto [12:17:50]json parsed OK: [12:17:50]protocol is kg_v1.0 [12:17:50]action value=close_receipt [12:17:50]process_action close_receipt [12:17:50]cmd_close_receipt [12:17:50]MH_GetDate [12:17:50]Write to MH i2c: F0 00 00 DD 0A D6 [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: F0 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: F0 09 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: F0 09 00 DD 0A 00 70 70 92 66 1B 28 2A 66 8A [12:17:50]GetLastDocTimeStamp 1720872232 [12:17:50]current date 1720873072 [12:17:50]FM_GetShiftState [12:17:50]SAM_PROTO_GetShiftState [12:17:50]wFMCommunicate request_size=4 [12:17:50]MH_SAM_APDU [12:17:50]CAPDU: 80 13 01 00 [12:17:50]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:50]Read from MH i2c: E2 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 0E 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 F0 [12:17:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:17:50]wFMCommunicate OK [12:17:50]SAM_PROTO_GetShiftState done [12:17:50]FM_GetShiftState done [12:17:50]opened in 1720829379 [12:17:50]opened+sec_in_day 1720915779 [12:17:50]quantity*price = 100046 [12:17:50]sum+1 = 100048 [12:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 63 13.07.2024 12:17 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1894 ФПД: 223154613285908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121752&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1894&fm=223154613285908&tin=02508201610067®Number=0000000000177495&sum=100000 [12:17:51]StoreToDocumentArchive [12:17:51]shift 24 fd 1894 [12:17:51]save to /storage/0024/doc_00001894 [12:17:51]save last doc name /storage/0024/doc_00001894 to /storage/kkm_last_doc_name [12:17:52]save OK [12:17:52]Clear old archive folders... [12:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:52]tlvbuf is 00FE2DA0 [12:17:52]SAM_PROTO_ClearQueue [12:17:52]wFMCommunicate request_size=4 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 09 00 00 [12:17:52]Write to MH i2c: E2 08 00 EB 0A 80 09 00 00 00 00 00 00 67 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [12:17:52]RAPDU: 90 00 [12:17:52]wFMCommunicate OK [12:17:52]SAM_PROTO_ClearQueue done [12:17:52]KKMCreateOFDPacket [12:17:52]OFDProtocolAddRootSTLVToBuf [12:17:52]FM_MakeSignedData [12:17:52]FM_MakeSignedData [12:17:52]SAM_PROTO_SignData [12:17:52]wFMCommunicate request_size=4 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 0D 01 02 [12:17:52]Write to MH i2c: E2 08 00 EC 0A 80 0D 01 02 00 00 00 00 6F [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [12:17:52]RAPDU: 90 00 [12:17:52]wFMCommunicate OK [12:17:52]wFMCommunicate request_size=255 [12:17:52]MH_SAM_APDU [12:17:52]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 70 70 92 66 0E 04 04 00 18 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 66 07 00 00 35 04 06 00 CA [12:17:52]Write to MH i2c: E2 02 01 ED 0A 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 70 70 92 66 0E 04 04 00 18 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 66 07 00 00 35 04 06 00 CA 00 00 DA [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [12:17:52]RAPDU: 90 00 [12:17:52]wFMCommunicate OK [12:17:52]wFMCommunicate request_size=10 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 0D 02 02 05 F5 3B 74 74 14 [12:17:52]Write to MH i2c: E2 0D 00 EE 0A 80 0D 02 02 05 00 F5 3B 74 74 14 00 00 A8 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [12:17:52]RAPDU: 90 00 [12:17:52]wFMCommunicate OK [12:17:52]wFMCommunicate request_size=4 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 0D 03 02 [12:17:52]Write to MH i2c: E2 08 00 EF 0A 80 0D 03 02 00 00 00 00 74 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 0B 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 0B 00 EF 0A 00 82 0A 5C 61 57 AC 35 4B 90 00 41 [12:17:52]RAPDU: 82 0A 5C 61 57 AC 35 4B 90 00 [12:17:52]wFMCommunicate OK [12:17:52]SAM_PROTO_SignData done [12:17:52]FM_MakeSignedData done [12:17:52]CreateOFDProtocolMessage [12:17:52]wFMCommunicate request_size=4 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 11 00 00 [12:17:52]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 17 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CA [12:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:17:52]wFMCommunicate OK [12:17:52]CreateOFDProtocolMessage done [12:17:52]OFDSenderStorePacket 1894 [12:17:52]StoreOFDPacket docnum=1894 [12:17: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 0F 01 00 00 F1 2B 07 01 12 63 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 70 70 92 66 0E 04 04 00 18 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 66 07 00 00 35 04 06 00 CA F5 3B 74 74 14 82 0A 5C 61 57 AC 35 4B [12:17:52]CheckFolder [12:17:52]dirname=/storage/ofd_packets [12:17:52]CheckFolder done [12:17:52]ProducePacketName [12:17:52]name=ofd_packets/00001894 [12:17:52]NVStorageSaveData ofd_packets/00001894 [12:17:52]File name is /storage/ofd_packets/00001894 [12:17:52]Write 301 bytes [12:17:52]NVStorageSaveData done [12:17:52]OFDSenderStorePacket done [12:17:52]KKMCreateOFDPacket done [12:17:52]NVStorageSaveData kkm_last_timestamp [12:17:52]File name is /storage/kkm_last_timestamp [12:17:52]Write 4 bytes [12:17:52]NVStorageSaveData done [12:17:52]ExternCall_PrintAddStr [12:17:52]wPrintStart [12:17:52]Write to MH i2c: 01 00 00 F1 0A FB [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [12:17:52]RasterBufferAndPrint [12:17:52]line Счет N : (1)1619012 [12:17:52]line ИНН: 02508201610067 [12:17:52]line Контрольно-Кассовый Чек [12:17:52]line ПРОДАЖА [12:17:52]line ТРК (МРК, ГНК) : 33 [12:17:52]line Товар: 2710124130 [12:17:52]line Аи-92-К-5 [12:17:52]line 15.090 * 66.30 [12:17:52]line = 1000.47 [12:17:52]line НДС 12% НСП 1% [12:17:52]line > о реализуемом товаре [12:17:52]line ОКРУГЛЕНИЕ: -0.47 [12:17:52]line ИТОГО: 1000.00 [12:17:52]line Внесено: 1000.00 [12:17:52]line СДАЧА: 0.00 [12:17:52]line НСП 1% : 8.85 [12:17:52]line НДС 12% : 106.24 [12:17:52]line Наличными: 1000.00 [12:17:52]line Безнал.: 0.00 [12:17:52]line Место: АЗС № 76 "Партнер Нефть" [12:17:52]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:17:52]line СНО: Общий режим [12:17:52]line Чек 63 13.07.2024 12:17 [12:17:52]line Смена: 24 ФФД: 1.0 [12:17:52]line ЗНМ: 0300000124 [12:17:52]line РНМ: 0000000000177495 [12:17:52]line Версия ККМ: 001 [12:17:52]line ФМ: 0000000002098592 [12:17:52]line ФД: 1894 [12:17:52]line ФПД: 223154613285908 [12:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121752&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1894&fm=223154613285908&tin=02508201610067®Number=0000000000177495&sum=100000 [12:17:52]OFD Sender: Processing packet 1894 [packets to send 1, broken 0] [12:17:52]ProducePacketName [12:17:52]name=ofd_packets/00001894 [12:17:52]OFD Sender: To server: pG, [12:17:52]CommunicateWithHost lk.salyk.kg:30040 [12:17:52]ConnectInit lk.salyk.kg [12:17:52]written 0, free lines is 4095 [12:17:52]Connected sock=11 [12:17: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 0F 01 00 00 F1 2B 07 01 12 63 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 70 70 92 66 0E 04 04 00 18 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 66 07 00 00 35 04 06 00 CA F5 3B 74 74 14 82 0A 5C 61 57 AC 35 4B [12:17: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 6D 59 47 00 A1 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 66 07 00 00 F4 03 04 00 A6 1B 92 66 B6 04 01 00 00 BA E8 EA 38 A3 07 14 90 [12:17:53]CommunicateWithHost err = 0 [12:17:53]CheckOFDResponse [12:17:53]1017 (14) - 77093643461234 [12:17:53]1041 (16) - 0000000002098592 [12:17:53]1040 (4) - 1894 [12:17:53]1012 (4) - 13.07.2024 06:16 [12:17:53]1206 (1) - 0 [12:17:53]OFD Sender: Remove packet 1894 [12:17:53]ProducePacketName [12:17:53]name=ofd_packets/00001894 [12:17:53]NVStorageDeleteData [12:17:53]Write to MH i2c: 01 00 00 1C 0B 27 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 07 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 D7 0C 11 [12:17:53]RasterBufferAndPrint [12:17:53]line [12:17:53]line [12:17:53]line [12:17:53]line [12:17:53]line [12:17:53]written 0, free lines is 3292 [12:17:53]MH_Cut [12:17:53]Write to MH i2c: D1 01 00 23 0B 01 00 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: D1 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: D1 01 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: D1 01 00 23 0B 00 FF [12:17:53]Write to MH i2c: 01 00 00 24 0B 2F [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]OFD Sender: No OFD packet to send [12:17:54]*** Cut start [12:17:54]*** Partial cut [12:17:54]*** CUTSNS_PIN = 1 [12:17:54]*** CUTSNS_PIN = 0 [12:17:54]*** Brake cut motor [12:17:54]Read from MH i2c: 01 [12:17:54]MH_I2C_Read... [12:17:54]*** Stop cut motor [12:17:54]*** Cut end [12:17:54]Read from MH i2c: 01 07 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [12:17:54]process_action close_receipt done [12:17:54]requested_data is exist [12:17:54]produce_requested_data [12:17:54]requested_item fm.sn is exist - process it [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 11 00 00 [12:17:54]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 17 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 00 [12:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:17:54]wFMCommunicate OK [12:17:54]requested_item fd.num is exist - process it [12:17:54]SAM_PROTO_GetFieldsCounters [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 13 00 00 [12:17:54]Write to MH i2c: E2 08 00 26 0B 80 13 00 00 00 00 00 00 AD [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 62 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 62 00 26 0B 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 66 07 00 00 0E 04 04 00 18 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 1B [12:17:54]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 66 07 00 00 0E 04 04 00 18 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 [12:17:54]wFMCommunicate OK [12:17:54]SAM_PROTO_GetFieldsCounters done [12:17:54]requested_item shift.num is exist - process it [12:17:54]requested_item shift.opened is exist - process it [12:17:54]req_shift_opened [12:17:54]FM_GetShiftState [12:17:54]SAM_PROTO_GetShiftState [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 13 01 00 [12:17:54]Write to MH i2c: E2 08 00 27 0B 80 13 01 00 00 00 00 00 AF [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 27 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 3A [12:17:54]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:17:54]wFMCommunicate OK [12:17:54]SAM_PROTO_GetShiftState done [12:17:54]FM_GetShiftState done [12:17:54]req_shift_opened done [12:17:54]requested_item shift.open_date is exist - process it [12:17:54]req_shift_open_date [12:17:54]req_shift_open_date done [12:17:54]produce_requested_data done [12:17:54]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1894,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:17:54]process_action_free close_receipt [12:17:54]json_value_free [12:17:54]json_value_free done [12:17:54]process_json_proto returns [12:17:54]Send response to host [12:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1894,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:17:54]free response buf [12:17:54]execute_script done [12:17:54]execute_script returns [12:17:54]free content buf [12:17:54]Sock 8.Close socket [12:17:54]Sock 8.Thread stoped [12:17:55]accept exits with 9 [12:17:55]New connection [12:17:55]New thread 3066834276 created [12:17:55]Thread 3066977636 joined [12:17:55]Waiting for new connection... [12:17:55] Sock 9.Parse request [12:17:55]Sock 9.Check first char [12:17:55]Sock 9.First char is OK [12:17:55]request: POST /json_proto HTTP/1.0 [12:17:55]Method: POST [12:17:55]URL: /json_proto [12:17:55]Method is POST - this is cgi request [12:17:55]url: /json_proto [12:17:55]query_string will be loaded in cgi processing [12:17:55]execute_cgi json_proto POST (null) [12:17:55]execute_cgi path=json_proto method=POST [12:17:55]POST find Content-Length [12:17:55]Host: 172.17.35.133:8080 [12:17:55]Content-Length: 849 [12:17:55]Content-Type: application/json [12:17:55] [12:17:55]POST finish read [12:17:55]Found Content-Length = 849 [12:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:55]execute_script... [12:17: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 : (1)1619011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:55]POST & json_proto [12:17:55]process_json_proto [12:17:55]json parsed OK: [12:17:55]protocol is kg_v1.0 [12:17:55]action value=close_receipt [12:17:55]process_action close_receipt [12:17:55]cmd_close_receipt [12:17:55]MH_GetDate [12:17:55]Write to MH i2c: F0 00 00 28 0B 22 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 09 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 09 00 28 0B 00 74 70 92 66 1B 28 2A 66 DA [12:17:55]GetLastDocTimeStamp 1720873072 [12:17:55]current date 1720873076 [12:17:55]FM_GetShiftState [12:17:55]SAM_PROTO_GetShiftState [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 13 01 00 [12:17:55]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:55]Read from MH i2c: E2 0E 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 3C [12:17:55]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_GetShiftState done [12:17:55]FM_GetShiftState done [12:17:55]opened in 1720829379 [12:17:55]opened+sec_in_day 1720915779 [12:17:55]quantity*price = 200013 [12:17:55]sum+1 = 200014 [12:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 64 13.07.2024 12:17 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1895 ФПД: 183691099602263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121756&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1895&fm=183691099602263&tin=02508201610067®Number=0000000000177495&sum=200013 [12:17:56]StoreToDocumentArchive [12:17:56]shift 24 fd 1895 [12:17:56]save to /storage/0024/doc_00001895 [12:17:56]save last doc name /storage/0024/doc_00001895 to /storage/kkm_last_doc_name [12:17:56]save OK [12:17:56]Clear old archive folders... [12:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:17:56]tlvbuf is 0101A350 [12:17:56]SAM_PROTO_ClearQueue [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 09 00 00 [12:17:56]Write to MH i2c: E2 08 00 36 0B 80 09 00 00 00 00 00 00 B3 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [12:17:56]RAPDU: 90 00 [12:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_ClearQueue done [12:17:56]KKMCreateOFDPacket [12:17:56]OFDProtocolAddRootSTLVToBuf [12:17:56]FM_MakeSignedData [12:17:56]FM_MakeSignedData [12:17:56]SAM_PROTO_SignData [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 0D 01 02 [12:17:56]Write to MH i2c: E2 08 00 37 0B 80 0D 01 02 00 00 00 00 BB [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [12:17:56]RAPDU: 90 00 [12:17:56]wFMCommunicate OK [12:17:56]wFMCommunicate request_size=255 [12:17:56]MH_SAM_APDU [12:17:56]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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 74 70 92 66 0E 04 04 00 18 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 67 07 00 00 35 04 06 00 [12:17:56]Write to MH i2c: E2 02 01 38 0B 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 74 70 92 66 0E 04 04 00 18 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 67 07 00 00 35 04 06 00 00 00 7E [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=11 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 02 02 06 A7 10 EA BD 7D 57 [12:17:57]Write to MH i2c: E2 0E 00 39 0B 80 0D 02 02 06 00 A7 10 EA BD 7D 57 00 00 FC [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 03 02 [12:17:57]Write to MH i2c: E2 08 00 3A 0B 80 0D 03 02 00 00 00 00 C0 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0B 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0B 00 3A 0B 00 3D 5C 75 7B A2 C7 07 C8 90 00 82 [12:17:57]RAPDU: 3D 5C 75 7B A2 C7 07 C8 90 00 [12:17:57]wFMCommunicate OK [12:17:57]SAM_PROTO_SignData done [12:17:57]FM_MakeSignedData done [12:17:57]CreateOFDProtocolMessage [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 11 00 00 [12:17:57]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 16 [12:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:17:57]wFMCommunicate OK [12:17:57]CreateOFDProtocolMessage done [12:17:57]OFDSenderStorePacket 1895 [12:17:57]StoreOFDPacket docnum=1895 [12:17: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 10 01 00 00 8D 55 08 01 54 87 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 74 70 92 66 0E 04 04 00 18 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 67 07 00 00 35 04 06 00 A7 10 EA BD 7D 57 3D 5C 75 7B A2 C7 07 C8 [12:17:57]CheckFolder [12:17:57]dirname=/storage/ofd_packets [12:17:57]CheckFolder done [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00001895 [12:17:57]NVStorageSaveData ofd_packets/00001895 [12:17:57]File name is /storage/ofd_packets/00001895 [12:17:57]Write 302 bytes [12:17:57]NVStorageSaveData done [12:17:57]OFDSenderStorePacket done [12:17:57]KKMCreateOFDPacket done [12:17:57]NVStorageSaveData kkm_last_timestamp [12:17:57]File name is /storage/kkm_last_timestamp [12:17:57]Write 4 bytes [12:17:57]NVStorageSaveData done [12:17:57]ExternCall_PrintAddStr [12:17:57]wPrintStart [12:17:57]Write to MH i2c: 01 00 00 3C 0B 47 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [12:17:57]RasterBufferAndPrint [12:17:57]line Счет N : (1)1619011 [12:17:57]line ИНН: 02508201610067 [12:17:57]line Контрольно-Кассовый Чек [12:17:57]line ПРОДАЖА [12:17:57]line ТРК (МРК, ГНК) : 22 [12:17:57]line Товар: 2710194210 [12:17:57]line ДТ(л)-К-4 [12:17:57]line 27.550 * 72.60 [12:17:57]line = 2000.13 [12:17:57]line НДС 12% НСП 1% [12:17:57]line > о реализуемом товаре [12:17:57]line ИТОГО: 2000.13 [12:17:57]line НСП 1% : 17.70 [12:17:57]line НДС 12% : 212.40 [12:17:57]line Наличными: 0.00 [12:17:57]line Безнал.: 2000.13 [12:17:57]line Место: АЗС № 76 "Партнер Нефть" [12:17:57]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:17:57]line СНО: Общий режим [12:17:57]line Чек 64 13.07.2024 12:17 [12:17:57]line Смена: 24 ФФД: 1.0 [12:17:57]line ЗНМ: 0300000124 [12:17:57]line РНМ: 0000000000177495 [12:17:57]line Версия ККМ: 001 [12:17:57]line Платежная система: АКБ Кыргызстан [12:17:57]line ФМ: 0000000002098592 [12:17:57]line ФД: 1895 [12:17:57]line ФПД: 183691099602263 [12:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121756&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1895&fm=183691099602263&tin=02508201610067®Number=0000000000177495&sum=200013 [12:17:57]written 0, free lines is 4095 [12:17:57]OFD Sender: Processing packet 1895 [packets to send 1, broken 0] [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00001895 [12:17:57]OFD Sender: To server: pG, [12:17:57]CommunicateWithHost lk.salyk.kg:30040 [12:17:57]ConnectInit lk.salyk.kg [12:17:57]Connected sock=10 [12:17: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 10 01 00 00 8D 55 08 01 54 87 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 74 70 92 66 0E 04 04 00 18 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 67 07 00 00 35 04 06 00 A7 10 EA BD 7D 57 3D 5C 75 7B A2 C7 07 C8 [12:17:57]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 BF 21 47 00 27 04 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 67 07 00 00 F4 03 04 00 AB 1B 92 66 B6 04 01 00 00 6A E4 17 B4 77 05 A5 72 [12:17:57]CommunicateWithHost err = 0 [12:17:57]CheckOFDResponse [12:17:57]1017 (14) - 77093643461234 [12:17:57]1041 (16) - 0000000002098592 [12:17:57]1040 (4) - 1895 [12:17:57]1012 (4) - 13.07.2024 06:16 [12:17:57]1206 (1) - 0 [12:17:57]OFD Sender: Remove packet 1895 [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00001895 [12:17:57]NVStorageDeleteData [12:17:58]Write to MH i2c: 01 00 00 66 0B 71 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 66 0B 00 00 00 00 00 16 0D 9B [12:17:58]RasterBufferAndPrint [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]written 0, free lines is 3360 [12:17:58]MH_Cut [12:17:58]Write to MH i2c: D1 01 00 6D 0B 01 4A [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 01 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 01 00 6D 0B 00 49 [12:17:58]Write to MH i2c: 01 00 00 6E 0B 79 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]OFD Sender: No OFD packet to send [12:17:58]*** Cut start [12:17:58]*** Partial cut [12:17:58]*** CUTSNS_PIN = 1 [12:17:58]*** CUTSNS_PIN = 0 [12:17:58]*** Brake cut motor [12:17:59]Read from MH i2c: 01 [12:17:59]MH_I2C_Read... [12:17:59]*** Stop cut motor [12:17:59]*** Cut end [12:17:59]Read from MH i2c: 01 07 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: 01 07 00 6E 0B 00 00 00 00 00 FF 0F 8E [12:17:59]process_action close_receipt done [12:17:59]requested_data is exist [12:17:59]produce_requested_data [12:17:59]requested_item fm.sn is exist - process it [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 11 00 00 [12:17:59]Write to MH i2c: E2 08 00 6F 0B 80 11 00 00 00 00 00 00 F4 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 17 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 17 00 6F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4A [12:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:17:59]wFMCommunicate OK [12:17:59]requested_item fd.num is exist - process it [12:17:59]SAM_PROTO_GetFieldsCounters [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 13 00 00 [12:17:59]Write to MH i2c: E2 08 00 70 0B 80 13 00 00 00 00 00 00 F7 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 62 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 62 00 70 0B 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 67 07 00 00 0E 04 04 00 18 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 69 [12:17: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 67 07 00 00 0E 04 04 00 18 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 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_GetFieldsCounters done [12:17:59]requested_item shift.num is exist - process it [12:17:59]requested_item shift.opened is exist - process it [12:17:59]req_shift_opened [12:17:59]FM_GetShiftState [12:17:59]SAM_PROTO_GetShiftState [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 13 01 00 [12:17:59]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0E 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 84 [12:17:59]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_GetShiftState done [12:17:59]FM_GetShiftState done [12:17:59]req_shift_opened done [12:17:59]requested_item shift.open_date is exist - process it [12:17:59]req_shift_open_date [12:17:59]req_shift_open_date done [12:17:59]produce_requested_data done [12:17:59]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1895,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:17:59]process_action_free close_receipt [12:17:59]json_value_free [12:17:59]json_value_free done [12:17:59]process_json_proto returns [12:17:59]Send response to host [12:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1895,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:17:59]free response buf [12:17:59]execute_script done [12:17:59]execute_script returns [12:17:59]free content buf [12:17:59]Sock 9.Close socket [12:17:59]Sock 9.Thread stoped [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:43]accept exits with 8 [12:33:43]New connection [12:33:43]New thread 3066977636 created [12:33:43]Thread 3066834276 joined [12:33:43]Waiting for new connection... [12:33:43] Sock 8.Parse request [12:33:43]Sock 8.Check first char [12:33:43]Sock 8.First char is OK [12:33:43]request: POST /json_proto HTTP/1.0 [12:33:43]Method: POST [12:33:43]URL: /json_proto [12:33:43]Method is POST - this is cgi request [12:33:43]url: /json_proto [12:33:43]query_string will be loaded in cgi processing [12:33:43]execute_cgi json_proto POST (null) [12:33:43]execute_cgi path=json_proto method=POST [12:33:43]POST find Content-Length [12:33:43]Host: 172.17.35.133:8080 [12:33:43]Content-Length: 984 [12:33:43]Content-Type: application/json [12:33:43] [12:33:43]POST finish read [12:33:43]Found Content-Length = 984 [12:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619014", "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" : 65.30, "quantity" : 38.290, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 38.29 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:43]execute_script... [12:33: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)1619014", "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" : 65.30, "quantity" : 38.290, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 38.29 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:43]POST & json_proto [12:33:43]process_json_proto [12:33:43]json parsed OK: [12:33:43]protocol is kg_v1.0 [12:33:43]action value=close_receipt [12:33:43]process_action close_receipt [12:33:43]cmd_close_receipt [12:33:43]MH_GetDate [12:33:43]Write to MH i2c: F0 00 00 72 0B 6C [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: F0 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: F0 09 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: F0 09 00 72 0B 00 28 74 92 66 1B 28 2A 66 DC [12:33:43]GetLastDocTimeStamp 1720873076 [12:33:43]current date 1720874024 [12:33:43]FM_GetShiftState [12:33:43]SAM_PROTO_GetShiftState [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 13 01 00 [12:33:43]Write to MH i2c: E2 08 00 73 0B 80 13 01 00 00 00 00 00 FB [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 0E 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 0E 00 73 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 86 [12:33:43]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:33:43]wFMCommunicate OK [12:33:43]SAM_PROTO_GetShiftState done [12:33:43]FM_GetShiftState done [12:33:43]opened in 1720829379 [12:33:43]opened+sec_in_day 1720915779 [12:33:43]quantity*price = 250033 [12:33:43]sum+1 = 250035 [12:33:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 65 13.07.2024 12:33 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Дисконтная программа АИ-92 номер 76 сэкономлено 38.29 сом ФМ: 0000000002098592 ФД: 1896 ФПД: 209208203175688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123344&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1896&fm=209208203175688&tin=02508201610067®Number=0000000000177495&sum=250000 [12:33:44]StoreToDocumentArchive [12:33:44]shift 24 fd 1896 [12:33:44]save to /storage/0024/doc_00001896 [12:33:44]save last doc name /storage/0024/doc_00001896 to /storage/kkm_last_doc_name [12:33:44]save OK [12:33:44]Clear old archive folders... [12:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:44]tlvbuf is 00FF2200 [12:33:44]SAM_PROTO_ClearQueue [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 09 00 00 [12:33:44]Write to MH i2c: E2 08 00 80 0B 80 09 00 00 00 00 00 00 FD [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [12:33:44]RAPDU: 90 00 [12:33:44]wFMCommunicate OK [12:33:44]SAM_PROTO_ClearQueue done [12:33:44]KKMCreateOFDPacket [12:33:44]OFDProtocolAddRootSTLVToBuf [12:33:44]FM_MakeSignedData [12:33:44]FM_MakeSignedData [12:33:44]SAM_PROTO_SignData [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 0D 01 02 [12:33:44]Write to MH i2c: E2 08 00 81 0B 80 0D 01 02 00 00 00 00 05 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [12:33:44]RAPDU: 90 00 [12:33:44]wFMCommunicate OK [12:33:44]wFMCommunicate request_size=255 [12:33:44]MH_SAM_APDU [12:33: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 92 95 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 28 74 92 66 0E 04 04 00 18 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 68 07 00 00 35 04 06 00 BE [12:33:44]Write to MH i2c: E2 02 01 82 0B 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 92 95 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 28 74 92 66 0E 04 04 00 18 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 68 07 00 00 35 04 06 00 BE 00 00 0D [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [12:33:44]RAPDU: 90 00 [12:33:44]wFMCommunicate OK [12:33:44]wFMCommunicate request_size=10 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 0D 02 02 05 46 14 A2 67 08 [12:33:44]Write to MH i2c: E2 0D 00 83 0B 80 0D 02 02 05 00 46 14 A2 67 08 00 00 7D [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [12:33:44]RAPDU: 90 00 [12:33:44]wFMCommunicate OK [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 0D 03 02 [12:33:44]Write to MH i2c: E2 08 00 84 0B 80 0D 03 02 00 00 00 00 0A [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0B 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0B 00 84 0B 00 8C 93 35 33 52 13 5D 32 90 00 86 [12:33:44]RAPDU: 8C 93 35 33 52 13 5D 32 90 00 [12:33:44]wFMCommunicate OK [12:33:44]SAM_PROTO_SignData done [12:33:44]FM_MakeSignedData done [12:33:44]CreateOFDProtocolMessage [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 11 00 00 [12:33:44]Write to MH i2c: E2 08 00 85 0B 80 11 00 00 00 00 00 00 0A [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 17 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 17 00 85 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 60 [12:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:33:44]wFMCommunicate OK [12:33:44]CreateOFDProtocolMessage done [12:33:44]OFDSenderStorePacket 1896 [12:33:44]StoreOFDPacket docnum=1896 [12:33: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 0F 01 00 00 A3 79 07 01 1F 26 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 92 95 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 28 74 92 66 0E 04 04 00 18 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 68 07 00 00 35 04 06 00 BE 46 14 A2 67 08 8C 93 35 33 52 13 5D 32 [12:33:44]CheckFolder [12:33:44]dirname=/storage/ofd_packets [12:33:44]CheckFolder done [12:33:44]ProducePacketName [12:33:44]name=ofd_packets/00001896 [12:33:44]NVStorageSaveData ofd_packets/00001896 [12:33:44]File name is /storage/ofd_packets/00001896 [12:33:44]Write 301 bytes [12:33:44]NVStorageSaveData done [12:33:44]OFDSenderStorePacket done [12:33:44]KKMCreateOFDPacket done [12:33:44]NVStorageSaveData kkm_last_timestamp [12:33:44]File name is /storage/kkm_last_timestamp [12:33:44]Write 4 bytes [12:33:44]NVStorageSaveData done [12:33:44]ExternCall_PrintAddStr [12:33:44]wPrintStart [12:33:44]Write to MH i2c: 01 00 00 86 0B 91 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 07 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 FF 0F A6 [12:33:44]RasterBufferAndPrint [12:33:44]line Счет N : (1)1619014 [12:33:44]line ИНН: 02508201610067 [12:33:44]line Контрольно-Кассовый Чек [12:33:44]line ПРОДАЖА [12:33:44]line ТРК (МРК, ГНК) : 33 [12:33:44]line Товар: 2710124130 [12:33:44]line Аи-92-К-5 [12:33:44]line 38.290 * 65.30 [12:33:44]line = 2500.34 [12:33:44]line НДС 12% НСП 1% [12:33:44]line > о реализуемом товаре [12:33:44]line ОКРУГЛЕНИЕ: -0.34 [12:33:44]line ИТОГО: 2500.00 [12:33:44]line Внесено: 2500.00 [12:33:44]line СДАЧА: 0.00 [12:33:44]line НСП 1% : 22.13 [12:33:44]line НДС 12% : 265.52 [12:33:44]line Наличными: 2500.00 [12:33:44]line Безнал.: 0.00 [12:33:44]line Место: АЗС № 76 "Партнер Нефть" [12:33:44]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:33:44]line СНО: Общий режим [12:33:44]line Чек 65 13.07.2024 12:33 [12:33:44]line Смена: 24 ФФД: 1.0 [12:33:44]line ЗНМ: 0300000124 [12:33:44]line РНМ: 0000000000177495 [12:33:44]line Версия ККМ: 001 [12:33:44]line [12:33:44]line Дисконтная программа [12:33:44]line АИ-92 [12:33:44]line номер 76 [12:33:44]line сэкономлено 38.29 сом [12:33:44]line ФМ: 0000000002098592 [12:33:44]line ФД: 1896 [12:33:44]line ФПД: 209208203175688 [12:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123344&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1896&fm=209208203175688&tin=02508201610067®Number=0000000000177495&sum=250000 [12:33:45]OFD Sender: Processing packet 1896 [packets to send 1, broken 0] [12:33:45]ProducePacketName [12:33:45]name=ofd_packets/00001896 [12:33:45]OFD Sender: To server: pG, [12:33:45]CommunicateWithHost lk.salyk.kg:30040 [12:33:45]ConnectInit lk.salyk.kg [12:33:45]written 0, free lines is 4095 [12:33:45]Connected sock=10 [12:33: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 A3 79 07 01 1F 26 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 92 95 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 28 74 92 66 0E 04 04 00 18 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 68 07 00 00 35 04 06 00 BE 46 14 A2 67 08 8C 93 35 33 52 13 5D 32 [12:33: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 A7 1E 47 00 4D 80 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 68 07 00 00 F4 03 04 00 5E 1F 92 66 B6 04 01 00 00 90 A7 19 23 1C 2B 57 84 [12:33:45]CommunicateWithHost err = 0 [12:33:45]CheckOFDResponse [12:33:45]1017 (14) - 77093643461234 [12:33:45]1041 (16) - 0000000002098592 [12:33:45]1040 (4) - 1896 [12:33:45]1012 (4) - 13.07.2024 06:31 [12:33:45]1206 (1) - 0 [12:33:45]OFD Sender: Remove packet 1896 [12:33:45]ProducePacketName [12:33:45]name=ofd_packets/00001896 [12:33:45]NVStorageDeleteData [12:33:45]Write to MH i2c: 01 00 00 B6 0B C1 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: 01 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: 01 07 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 98 0C 6C [12:33:45]RasterBufferAndPrint [12:33:45]line [12:33:45]line [12:33:45]line [12:33:45]line [12:33:45]line [12:33:45]written 0, free lines is 3230 [12:33:45]MH_Cut [12:33:45]Write to MH i2c: D1 01 00 BD 0B 01 9A [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: D1 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: D1 01 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: D1 01 00 BD 0B 00 99 [12:33:45]Write to MH i2c: 01 00 00 BE 0B C9 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]OFD Sender: No OFD packet to send [12:33:46]*** Cut start [12:33:46]*** Partial cut [12:33:46]*** CUTSNS_PIN = 1 [12:33:46]*** CUTSNS_PIN = 0 [12:33:46]*** Brake cut motor [12:33:47]Read from MH i2c: 01 [12:33:47]MH_I2C_Read... [12:33:47]*** Stop cut motor [12:33:47]*** Cut end [12:33:47]Read from MH i2c: 01 07 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [12:33:47]process_action close_receipt done [12:33:47]requested_data is exist [12:33:47]produce_requested_data [12:33:47]requested_item fm.sn is exist - process it [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 11 00 00 [12:33:47]Write to MH i2c: E2 08 00 BF 0B 80 11 00 00 00 00 00 00 44 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 17 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 17 00 BF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9A [12:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:33:47]wFMCommunicate OK [12:33:47]requested_item fd.num is exist - process it [12:33:47]SAM_PROTO_GetFieldsCounters [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 13 00 00 [12:33:47]Write to MH i2c: E2 08 00 C0 0B 80 13 00 00 00 00 00 00 47 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 62 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 62 00 C0 0B 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 68 07 00 00 0E 04 04 00 18 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 BD [12:33: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 68 07 00 00 0E 04 04 00 18 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 [12:33:47]wFMCommunicate OK [12:33:47]SAM_PROTO_GetFieldsCounters done [12:33:47]requested_item shift.num is exist - process it [12:33:47]requested_item shift.opened is exist - process it [12:33:47]req_shift_opened [12:33:47]FM_GetShiftState [12:33:47]SAM_PROTO_GetShiftState [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 13 01 00 [12:33:47]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:47]Read from MH i2c: E2 0E 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D4 [12:33:47]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:33:47]wFMCommunicate OK [12:33:47]SAM_PROTO_GetShiftState done [12:33:47]FM_GetShiftState done [12:33:47]req_shift_opened done [12:33:47]requested_item shift.open_date is exist - process it [12:33:47]req_shift_open_date [12:33:47]req_shift_open_date done [12:33:47]produce_requested_data done [12:33:47]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1896,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:33:47]process_action_free close_receipt [12:33:47]json_value_free [12:33:47]json_value_free done [12:33:47]process_json_proto returns [12:33:47]Send response to host [12:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1896,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:33:47]free response buf [12:33:47]execute_script done [12:33:47]execute_script returns [12:33:47]free content buf [12:33:47]Sock 8.Close socket [12:33:47]Sock 8.Thread stoped [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:08]accept exits with 9 [12:43:08]New connection [12:43:08]New thread 3066834276 created [12:43:08]Thread 3066977636 joined [12:43:08]Waiting for new connection... [12:43:08] Sock 9.Parse request [12:43:08]Sock 9.Check first char [12:43:08]Sock 9.First char is OK [12:43:08]request: POST /json_proto HTTP/1.0 [12:43:08]Method: POST [12:43:08]URL: /json_proto [12:43:08]Method is POST - this is cgi request [12:43:08]url: /json_proto [12:43:08]query_string will be loaded in cgi processing [12:43:08]execute_cgi json_proto POST (null) [12:43:08]execute_cgi path=json_proto method=POST [12:43:08]POST find Content-Length [12:43:08]Host: 172.17.35.133:8080 [12:43:08]Content-Length: 679 [12:43:08]Content-Type: application/json [12:43:08] [12:43:08]POST finish read [12:43:08]Found Content-Length = 679 [12:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619019", "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" : 10.040, "sum" : 665.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:08]execute_script... [12:43:08]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)1619019", "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" : 10.040, "sum" : 665.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:08]POST & json_proto [12:43:08]process_json_proto [12:43:08]json parsed OK: [12:43:08]protocol is kg_v1.0 [12:43:08]action value=close_receipt [12:43:08]process_action close_receipt [12:43:08]cmd_close_receipt [12:43:08]MH_GetDate [12:43:08]Write to MH i2c: F0 00 00 C2 0B BC [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 09 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 09 00 C2 0B 00 5E 76 92 66 1B 28 2A 66 64 [12:43:08]GetLastDocTimeStamp 1720874024 [12:43:08]current date 1720874590 [12:43:08]FM_GetShiftState [12:43:08]SAM_PROTO_GetShiftState [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 01 00 [12:43:08]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D6 [12:43:08]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetShiftState done [12:43:08]FM_GetShiftState done [12:43:08]opened in 1720829379 [12:43:08]opened+sec_in_day 1720915779 [12:43:08]quantity*price = 66565 [12:43:08]sum+1 = 66566 [12:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.69 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 66 13.07.2024 12:43 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1897 ФПД: 190353671450070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124310&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1897&fm=190353671450070&tin=02508201610067®Number=0000000000177495&sum=66500 [12:43:09]StoreToDocumentArchive [12:43:09]shift 24 fd 1897 [12:43:09]save to /storage/0024/doc_00001897 [12:43:09]save last doc name /storage/0024/doc_00001897 to /storage/kkm_last_doc_name [12:43:09]save OK [12:43:09]Clear old archive folders... [12:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:09]tlvbuf is 00FDB110 [12:43:09]SAM_PROTO_ClearQueue [12:43:09]wFMCommunicate request_size=4 [12:43:09]MH_SAM_APDU [12:43:09]CAPDU: 80 09 00 00 [12:43:09]Write to MH i2c: E2 08 00 D0 0B 80 09 00 00 00 00 00 00 4D [12:43:09]Write i2c OK [12:43:09]MH_I2C_Read... [12:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:09]Read from MH i2c: E2 [12:43:09]MH_I2C_Read... [12:43:09]Read from MH i2c: E2 03 00 [12:43:09]MH_I2C_Read... [12:43:09]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [12:43:09]RAPDU: 90 00 [12:43:09]wFMCommunicate OK [12:43:09]SAM_PROTO_ClearQueue done [12:43:09]KKMCreateOFDPacket [12:43:09]OFDProtocolAddRootSTLVToBuf [12:43:09]FM_MakeSignedData [12:43:09]FM_MakeSignedData [12:43:09]SAM_PROTO_SignData [12:43:09]wFMCommunicate request_size=4 [12:43:09]MH_SAM_APDU [12:43:09]CAPDU: 80 0D 01 02 [12:43:09]Write to MH i2c: E2 08 00 D1 0B 80 0D 01 02 00 00 00 00 55 [12:43:09]Write i2c OK [12:43:09]MH_I2C_Read... [12:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:09]Read from MH i2c: E2 [12:43:09]MH_I2C_Read... [12:43:09]Read from MH i2c: E2 03 00 [12:43:09]MH_I2C_Read... [12:43:09]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [12:43:09]RAPDU: 90 00 [12:43:09]wFMCommunicate OK [12:43:09]wFMCommunicate request_size=255 [12:43:09]MH_SAM_APDU [12:43:09]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 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 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 5E 76 92 66 0E 04 04 00 18 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 69 07 00 00 35 04 06 00 AD [12:43:09]Write to MH i2c: E2 02 01 D2 0B 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 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 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 5E 76 92 66 0E 04 04 00 18 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 69 07 00 00 35 04 06 00 AD 00 00 AC [12:43:09]Write i2c OK [12:43:09]MH_I2C_Read... [12:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:10]Read from MH i2c: E2 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 03 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [12:43:10]RAPDU: 90 00 [12:43:10]wFMCommunicate OK [12:43:10]wFMCommunicate request_size=10 [12:43:10]MH_SAM_APDU [12:43:10]CAPDU: 80 0D 02 02 05 20 2A F7 ED D6 [12:43:10]Write to MH i2c: E2 0D 00 D3 0B 80 0D 02 02 05 00 20 2A F7 ED D6 00 00 66 [12:43:10]Write i2c OK [12:43:10]MH_I2C_Read... [12:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:10]Read from MH i2c: E2 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 03 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [12:43:10]RAPDU: 90 00 [12:43:10]wFMCommunicate OK [12:43:10]wFMCommunicate request_size=4 [12:43:10]MH_SAM_APDU [12:43:10]CAPDU: 80 0D 03 02 [12:43:10]Write to MH i2c: E2 08 00 D4 0B 80 0D 03 02 00 00 00 00 5A [12:43:10]Write i2c OK [12:43:10]MH_I2C_Read... [12:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:10]Read from MH i2c: E2 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 0B 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 0B 00 D4 0B 00 33 54 5D BC B8 14 36 32 90 00 2F [12:43:10]RAPDU: 33 54 5D BC B8 14 36 32 90 00 [12:43:10]wFMCommunicate OK [12:43:10]SAM_PROTO_SignData done [12:43:10]FM_MakeSignedData done [12:43:10]CreateOFDProtocolMessage [12:43:10]wFMCommunicate request_size=4 [12:43:10]MH_SAM_APDU [12:43:10]CAPDU: 80 11 00 00 [12:43:10]Write to MH i2c: E2 08 00 D5 0B 80 11 00 00 00 00 00 00 5A [12:43:10]Write i2c OK [12:43:10]MH_I2C_Read... [12:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:10]Read from MH i2c: E2 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 17 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 17 00 D5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B0 [12:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:43:10]wFMCommunicate OK [12:43:10]CreateOFDProtocolMessage done [12:43:10]OFDSenderStorePacket 1897 [12:43:10]StoreOFDPacket docnum=1897 [12:43:10]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 2A 69 07 01 B4 6D 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 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 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 5E 76 92 66 0E 04 04 00 18 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 69 07 00 00 35 04 06 00 AD 20 2A F7 ED D6 33 54 5D BC B8 14 36 32 [12:43:10]CheckFolder [12:43:10]dirname=/storage/ofd_packets [12:43:10]CheckFolder done [12:43:10]ProducePacketName [12:43:10]name=ofd_packets/00001897 [12:43:10]NVStorageSaveData ofd_packets/00001897 [12:43:10]File name is /storage/ofd_packets/00001897 [12:43:10]Write 301 bytes [12:43:10]NVStorageSaveData done [12:43:10]OFDSenderStorePacket done [12:43:10]KKMCreateOFDPacket done [12:43:10]NVStorageSaveData kkm_last_timestamp [12:43:10]File name is /storage/kkm_last_timestamp [12:43:10]Write 4 bytes [12:43:10]NVStorageSaveData done [12:43:10]ExternCall_PrintAddStr [12:43:10]wPrintStart [12:43:10]Write to MH i2c: 01 00 00 D6 0B E1 [12:43:10]Write i2c OK [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: 01 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: 01 07 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [12:43:10]RasterBufferAndPrint [12:43:10]line Счет N : (1)1619019 [12:43:10]line ИНН: 02508201610067 [12:43:10]line Контрольно-Кассовый Чек [12:43:10]line ПРОДАЖА [12:43:10]line ТРК (МРК, ГНК) : 33 [12:43:10]line Товар: 2710124130 [12:43:10]line Аи-92-К-5 [12:43:10]line 10.040 * 66.30 [12:43:10]line = 665.65 [12:43:10]line НДС 12% НСП 1% [12:43:10]line > о реализуемом товаре [12:43:10]line ОКРУГЛЕНИЕ: -0.65 [12:43:10]line ИТОГО: 665.00 [12:43:10]line Внесено: 665.00 [12:43:10]line СДАЧА: 0.00 [12:43:10]line НСП 1% : 5.89 [12:43:10]line НДС 12% : 70.69 [12:43:10]line Наличными: 665.00 [12:43:10]line Безнал.: 0.00 [12:43:10]line Место: АЗС № 76 "Партнер Нефть" [12:43:10]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:43:10]line СНО: Общий режим [12:43:10]line Чек 66 13.07.2024 12:43 [12:43:10]line Смена: 24 ФФД: 1.0 [12:43:10]line ЗНМ: 0300000124 [12:43:10]line РНМ: 0000000000177495 [12:43:10]line Версия ККМ: 001 [12:43:10]line ФМ: 0000000002098592 [12:43:10]line ФД: 1897 [12:43:10]line ФПД: 190353671450070 [12:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124310&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1897&fm=190353671450070&tin=02508201610067®Number=0000000000177495&sum=66500 [12:43:10]OFD Sender: Processing packet 1897 [packets to send 1, broken 0] [12:43:10]ProducePacketName [12:43:10]name=ofd_packets/00001897 [12:43:10]OFD Sender: To server: pG, [12:43:10]CommunicateWithHost lk.salyk.kg:30040 [12:43:10]ConnectInit lk.salyk.kg [12:43:10]written 0, free lines is 4095 [12:43:10]Connected sock=10 [12:43: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 0F 01 00 00 2A 69 07 01 B4 6D 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 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 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 5E 76 92 66 0E 04 04 00 18 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 69 07 00 00 35 04 06 00 AD 20 2A F7 ED D6 33 54 5D BC B8 14 36 32 [12:43: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 90 9D 47 00 AA 53 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 69 07 00 00 F4 03 04 00 94 21 92 66 B6 04 01 00 00 1D 83 8D F1 29 16 53 C6 [12:43:10]CommunicateWithHost err = 0 [12:43:10]CheckOFDResponse [12:43:10]1017 (14) - 77093643461234 [12:43:10]1041 (16) - 0000000002098592 [12:43:10]1040 (4) - 1897 [12:43:10]1012 (4) - 13.07.2024 06:41 [12:43:10]1206 (1) - 0 [12:43:10]OFD Sender: Remove packet 1897 [12:43:10]ProducePacketName [12:43:10]name=ofd_packets/00001897 [12:43:10]NVStorageDeleteData [12:43:11]Write to MH i2c: 01 00 00 01 0C 0D [12:43:11]Write i2c OK [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: 01 [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: 01 07 00 [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 DF 0C FF [12:43:11]RasterBufferAndPrint [12:43:11]line [12:43:11]line [12:43:11]line [12:43:11]line [12:43:11]line [12:43:11]written 0, free lines is 3301 [12:43:11]MH_Cut [12:43:11]Write to MH i2c: D1 01 00 08 0C 01 E6 [12:43:11]Write i2c OK [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: D1 [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: D1 01 00 [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: D1 01 00 08 0C 00 E5 [12:43:11]Write to MH i2c: 01 00 00 09 0C 15 [12:43:11]Write i2c OK [12:43:11]MH_I2C_Read... [12:43:11]OFD Sender: No OFD packet to send [12:43:11]*** Cut start [12:43:11]*** Partial cut [12:43:11]*** CUTSNS_PIN = 1 [12:43:11]*** CUTSNS_PIN = 0 [12:43:12]*** Brake cut motor [12:43:12]Read from MH i2c: 01 [12:43:12]MH_I2C_Read... [12:43:12]*** Stop cut motor [12:43:12]*** Cut end [12:43:12]Read from MH i2c: 01 07 00 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: 01 07 00 09 0C 00 00 00 00 00 FF 0F 2A [12:43:12]process_action close_receipt done [12:43:12]requested_data is exist [12:43:12]produce_requested_data [12:43:12]requested_item fm.sn is exist - process it [12:43:12]wFMCommunicate request_size=4 [12:43:12]MH_SAM_APDU [12:43:12]CAPDU: 80 11 00 00 [12:43:12]Write to MH i2c: E2 08 00 0A 0C 80 11 00 00 00 00 00 00 90 [12:43:12]Write i2c OK [12:43:12]MH_I2C_Read... [12:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:12]Read from MH i2c: E2 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 17 00 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 17 00 0A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E6 [12:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:43:12]wFMCommunicate OK [12:43:12]requested_item fd.num is exist - process it [12:43:12]SAM_PROTO_GetFieldsCounters [12:43:12]wFMCommunicate request_size=4 [12:43:12]MH_SAM_APDU [12:43:12]CAPDU: 80 13 00 00 [12:43:12]Write to MH i2c: E2 08 00 0B 0C 80 13 00 00 00 00 00 00 93 [12:43:12]Write i2c OK [12:43:12]MH_I2C_Read... [12:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:12]Read from MH i2c: E2 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 62 00 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 62 00 0B 0C 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 69 07 00 00 0E 04 04 00 18 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 0D [12:43:12]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 69 07 00 00 0E 04 04 00 18 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 [12:43:12]wFMCommunicate OK [12:43:12]SAM_PROTO_GetFieldsCounters done [12:43:12]requested_item shift.num is exist - process it [12:43:12]requested_item shift.opened is exist - process it [12:43:12]req_shift_opened [12:43:12]FM_GetShiftState [12:43:12]SAM_PROTO_GetShiftState [12:43:12]wFMCommunicate request_size=4 [12:43:12]MH_SAM_APDU [12:43:12]CAPDU: 80 13 01 00 [12:43:12]Write to MH i2c: E2 08 00 0C 0C 80 13 01 00 00 00 00 00 95 [12:43:12]Write i2c OK [12:43:12]MH_I2C_Read... [12:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:12]Read from MH i2c: E2 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 0E 00 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 0E 00 0C 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 20 [12:43:12]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:43:12]wFMCommunicate OK [12:43:12]SAM_PROTO_GetShiftState done [12:43:12]FM_GetShiftState done [12:43:12]req_shift_opened done [12:43:12]requested_item shift.open_date is exist - process it [12:43:12]req_shift_open_date [12:43:12]req_shift_open_date done [12:43:12]produce_requested_data done [12:43:12]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1897,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:43:12]process_action_free close_receipt [12:43:12]json_value_free [12:43:12]json_value_free done [12:43:12]process_json_proto returns [12:43:12]Send response to host [12:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1897,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:43:12]free response buf [12:43:12]execute_script done [12:43:12]execute_script returns [12:43:12]free content buf [12:43:12]Sock 9.Close socket [12:43:12]Sock 9.Thread stoped [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:44]accept exits with 8 [12:43:44]New connection [12:43:44]New thread 3066977636 created [12:43:44]Thread 3066834276 joined [12:43:44]Waiting for new connection... [12:43:44] Sock 8.Parse request [12:43:44]Sock 8.Check first char [12:43:44]Sock 8.First char is OK [12:43:44]request: POST /json_proto HTTP/1.0 [12:43:44]Method: POST [12:43:44]URL: /json_proto [12:43:44]Method is POST - this is cgi request [12:43:44]url: /json_proto [12:43:44]query_string will be loaded in cgi processing [12:43:44]execute_cgi json_proto POST (null) [12:43:44]execute_cgi path=json_proto method=POST [12:43:44]POST find Content-Length [12:43:44]Host: 172.17.35.133:8080 [12:43:44]Content-Length: 849 [12:43:44]Content-Type: application/json [12:43:44] [12:43:44]POST finish read [12:43:44]Found Content-Length = 849 [12:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "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" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:44]execute_script... [12:43: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)1619017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "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" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:44]POST & json_proto [12:43:44]process_json_proto [12:43:44]json parsed OK: [12:43:44]protocol is kg_v1.0 [12:43:44]action value=close_receipt [12:43:44]process_action close_receipt [12:43:44]cmd_close_receipt [12:43:44]MH_GetDate [12:43:44]Write to MH i2c: F0 00 00 0D 0C 08 [12:43:44]Write i2c OK [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: F0 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: F0 09 00 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: F0 09 00 0D 0C 00 81 76 92 66 1B 28 2A 66 D3 [12:43:44]GetLastDocTimeStamp 1720874590 [12:43:44]current date 1720874625 [12:43:44]FM_GetShiftState [12:43:44]SAM_PROTO_GetShiftState [12:43:44]wFMCommunicate request_size=4 [12:43:44]MH_SAM_APDU [12:43:44]CAPDU: 80 13 01 00 [12:43:44]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [12:43:44]Write i2c OK [12:43:44]MH_I2C_Read... [12:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:44]Read from MH i2c: E2 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: E2 0E 00 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 22 [12:43:44]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:43:44]wFMCommunicate OK [12:43:44]SAM_PROTO_GetShiftState done [12:43:44]FM_GetShiftState done [12:43:44]opened in 1720829379 [12:43:44]opened+sec_in_day 1720915779 [12:43:44]quantity*price = 400026 [12:43:44]sum+1 = 400027 [12:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.26 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 0.00 Безнал.: 4000.26 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 67 13.07.2024 12:43 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1898 ФПД: 28730608629724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124345&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1898&fm=28730608629724&tin=02508201610067®Number=0000000000177495&sum=400026 [12:43:45]StoreToDocumentArchive [12:43:45]shift 24 fd 1898 [12:43:45]save to /storage/0024/doc_00001898 [12:43:45]save last doc name /storage/0024/doc_00001898 to /storage/kkm_last_doc_name [12:43:45]save OK [12:43:45]Clear old archive folders... [12:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:43:45]tlvbuf is 00F9AAB0 [12:43:45]SAM_PROTO_ClearQueue [12:43:45]wFMCommunicate request_size=4 [12:43:45]MH_SAM_APDU [12:43:45]CAPDU: 80 09 00 00 [12:43:45]Write to MH i2c: E2 08 00 1B 0C 80 09 00 00 00 00 00 00 99 [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [12:43:45]RAPDU: 90 00 [12:43:45]wFMCommunicate OK [12:43:45]SAM_PROTO_ClearQueue done [12:43:45]KKMCreateOFDPacket [12:43:45]OFDProtocolAddRootSTLVToBuf [12:43:45]FM_MakeSignedData [12:43:45]FM_MakeSignedData [12:43:45]SAM_PROTO_SignData [12:43:45]wFMCommunicate request_size=4 [12:43:45]MH_SAM_APDU [12:43:45]CAPDU: 80 0D 01 02 [12:43:45]Write to MH i2c: E2 08 00 1C 0C 80 0D 01 02 00 00 00 00 A1 [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [12:43:45]RAPDU: 90 00 [12:43:45]wFMCommunicate OK [12:43:45]wFMCommunicate request_size=255 [12:43:45]MH_SAM_APDU [12:43:45]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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 81 76 92 66 0E 04 04 00 18 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 6A 07 00 00 35 04 06 00 [12:43:45]Write to MH i2c: E2 02 01 1D 0C 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 81 76 92 66 0E 04 04 00 18 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 6A 07 00 00 35 04 06 00 00 00 DB [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [12:43:45]RAPDU: 90 00 [12:43:45]wFMCommunicate OK [12:43:45]wFMCommunicate request_size=11 [12:43:45]MH_SAM_APDU [12:43:45]CAPDU: 80 0D 02 02 06 1A 21 5D B8 B7 DC [12:43:45]Write to MH i2c: E2 0E 00 1E 0C 80 0D 02 02 06 00 1A 21 5D B8 B7 DC 00 00 93 [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [12:43:45]RAPDU: 90 00 [12:43:45]wFMCommunicate OK [12:43:45]wFMCommunicate request_size=4 [12:43:45]MH_SAM_APDU [12:43:45]CAPDU: 80 0D 03 02 [12:43:45]Write to MH i2c: E2 08 00 1F 0C 80 0D 03 02 00 00 00 00 A6 [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 0B 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 0B 00 1F 0C 00 9A 19 CA CF CD 98 9C AE 90 00 A2 [12:43:45]RAPDU: 9A 19 CA CF CD 98 9C AE 90 00 [12:43:45]wFMCommunicate OK [12:43:45]SAM_PROTO_SignData done [12:43:45]FM_MakeSignedData done [12:43:45]CreateOFDProtocolMessage [12:43:45]wFMCommunicate request_size=4 [12:43:45]MH_SAM_APDU [12:43:45]CAPDU: 80 11 00 00 [12:43:45]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:45]Read from MH i2c: E2 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 17 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: E2 17 00 20 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FC [12:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:43:45]wFMCommunicate OK [12:43:45]CreateOFDProtocolMessage done [12:43:45]OFDSenderStorePacket 1898 [12:43:45]StoreOFDPacket docnum=1898 [12:43: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 10 01 00 00 9D 3E 08 01 0D 38 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 81 76 92 66 0E 04 04 00 18 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 6A 07 00 00 35 04 06 00 1A 21 5D B8 B7 DC 9A 19 CA CF CD 98 9C AE [12:43:45]CheckFolder [12:43:45]dirname=/storage/ofd_packets [12:43:45]CheckFolder done [12:43:45]ProducePacketName [12:43:45]name=ofd_packets/00001898 [12:43:45]NVStorageSaveData ofd_packets/00001898 [12:43:45]File name is /storage/ofd_packets/00001898 [12:43:45]Write 302 bytes [12:43:45]NVStorageSaveData done [12:43:45]OFDSenderStorePacket done [12:43:45]KKMCreateOFDPacket done [12:43:45]NVStorageSaveData kkm_last_timestamp [12:43:45]File name is /storage/kkm_last_timestamp [12:43:45]Write 4 bytes [12:43:45]NVStorageSaveData done [12:43:45]ExternCall_PrintAddStr [12:43:45]wPrintStart [12:43:45]Write to MH i2c: 01 00 00 21 0C 2D [12:43:45]Write i2c OK [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: 01 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: 01 07 00 [12:43:45]MH_I2C_Read... [12:43:45]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 FF 0F 42 [12:43:45]RasterBufferAndPrint [12:43:45]line Счет N : (1)1619017 [12:43:45]line ИНН: 02508201610067 [12:43:45]line Контрольно-Кассовый Чек [12:43:45]line ПРОДАЖА [12:43:45]line ТРК (МРК, ГНК) : 22 [12:43:45]line Товар: 2710194210 [12:43:45]line ДТ(л)-К-4 [12:43:45]line 55.100 * 72.60 [12:43:45]line = 4000.26 [12:43:45]line НДС 12% НСП 1% [12:43:45]line > о реализуемом товаре [12:43:45]line ИТОГО: 4000.26 [12:43:45]line НСП 1% : 35.40 [12:43:45]line НДС 12% : 424.81 [12:43:45]line Наличными: 0.00 [12:43:45]line Безнал.: 4000.26 [12:43:45]line Место: АЗС № 76 "Партнер Нефть" [12:43:45]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:43:45]line СНО: Общий режим [12:43:45]line Чек 67 13.07.2024 12:43 [12:43:45]line Смена: 24 ФФД: 1.0 [12:43:45]line ЗНМ: 0300000124 [12:43:45]line РНМ: 0000000000177495 [12:43:45]line Версия ККМ: 001 [12:43:45]line Платежная система: АКБ Кыргызстан [12:43:45]line ФМ: 0000000002098592 [12:43:45]line ФД: 1898 [12:43:45]line ФПД: 28730608629724 [12:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124345&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1898&fm=28730608629724&tin=02508201610067®Number=0000000000177495&sum=400026 [12:43:46]OFD Sender: Processing packet 1898 [packets to send 1, broken 0] [12:43:46]ProducePacketName [12:43:46]name=ofd_packets/00001898 [12:43:46]OFD Sender: To server: pG, [12:43:46]CommunicateWithHost lk.salyk.kg:30040 [12:43:46]ConnectInit lk.salyk.kg [12:43:46]written 0, free lines is 4095 [12:43:46]Connected sock=10 [12:43: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 10 01 00 00 9D 3E 08 01 0D 38 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 81 76 92 66 0E 04 04 00 18 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 6A 07 00 00 35 04 06 00 1A 21 5D B8 B7 DC 9A 19 CA CF CD 98 9C AE [12:43:46]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 81 E9 47 00 CB 28 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 6A 07 00 00 F4 03 04 00 B7 21 92 66 B6 04 01 00 00 BF CE 41 86 96 FE 08 FE [12:43:46]CommunicateWithHost err = 0 [12:43:46]CheckOFDResponse [12:43:46]1017 (14) - 77093643461234 [12:43:46]1041 (16) - 0000000002098592 [12:43:46]1040 (4) - 1898 [12:43:46]1012 (4) - 13.07.2024 06:41 [12:43:46]1206 (1) - 0 [12:43:46]OFD Sender: Remove packet 1898 [12:43:46]ProducePacketName [12:43:46]name=ofd_packets/00001898 [12:43:46]NVStorageDeleteData [12:43:46]Write to MH i2c: 01 00 00 4B 0C 57 [12:43:46]Write i2c OK [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: 01 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: 01 07 00 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 FE 0C 68 [12:43:46]RasterBufferAndPrint [12:43:46]line [12:43:46]line [12:43:46]line [12:43:46]line [12:43:46]line [12:43:46]written 0, free lines is 3332 [12:43:46]MH_Cut [12:43:46]Write to MH i2c: D1 01 00 52 0C 01 30 [12:43:46]Write i2c OK [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: D1 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: D1 01 00 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: D1 01 00 52 0C 00 2F [12:43:46]Write to MH i2c: 01 00 00 53 0C 5F [12:43:46]Write i2c OK [12:43:46]MH_I2C_Read... [12:43:46]OFD Sender: No OFD packet to send [12:43:47]*** Cut start [12:43:47]*** Partial cut [12:43:47]*** CUTSNS_PIN = 1 [12:43:47]*** CUTSNS_PIN = 0 [12:43:47]*** Brake cut motor [12:43:47]Read from MH i2c: 01 [12:43:47]MH_I2C_Read... [12:43:47]*** Stop cut motor [12:43:47]*** Cut end [12:43:47]Read from MH i2c: 01 07 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [12:43:47]process_action close_receipt done [12:43:47]requested_data is exist [12:43:47]produce_requested_data [12:43:47]requested_item fm.sn is exist - process it [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 11 00 00 [12:43:47]Write to MH i2c: E2 08 00 54 0C 80 11 00 00 00 00 00 00 DA [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:47]Read from MH i2c: E2 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 17 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 17 00 54 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 30 [12:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:43:48]wFMCommunicate OK [12:43:48]requested_item fd.num is exist - process it [12:43:48]SAM_PROTO_GetFieldsCounters [12:43:48]wFMCommunicate request_size=4 [12:43:48]MH_SAM_APDU [12:43:48]CAPDU: 80 13 00 00 [12:43:48]Write to MH i2c: E2 08 00 55 0C 80 13 00 00 00 00 00 00 DD [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:48]Read from MH i2c: E2 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 62 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 62 00 55 0C 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 6A 07 00 00 0E 04 04 00 18 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 5B [12:43: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 6A 07 00 00 0E 04 04 00 18 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 [12:43:48]wFMCommunicate OK [12:43:48]SAM_PROTO_GetFieldsCounters done [12:43:48]requested_item shift.num is exist - process it [12:43:48]requested_item shift.opened is exist - process it [12:43:48]req_shift_opened [12:43:48]FM_GetShiftState [12:43:48]SAM_PROTO_GetShiftState [12:43:48]wFMCommunicate request_size=4 [12:43:48]MH_SAM_APDU [12:43:48]CAPDU: 80 13 01 00 [12:43:48]Write to MH i2c: E2 08 00 56 0C 80 13 01 00 00 00 00 00 DF [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:48]Read from MH i2c: E2 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 0E 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 0E 00 56 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6A [12:43:48]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:43:48]wFMCommunicate OK [12:43:48]SAM_PROTO_GetShiftState done [12:43:48]FM_GetShiftState done [12:43:48]req_shift_opened done [12:43:48]requested_item shift.open_date is exist - process it [12:43:48]req_shift_open_date [12:43:48]req_shift_open_date done [12:43:48]produce_requested_data done [12:43:48]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1898,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:43:48]process_action_free close_receipt [12:43:48]json_value_free [12:43:48]json_value_free done [12:43:48]process_json_proto returns [12:43:48]Send response to host [12:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1898,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:43:48]free response buf [12:43:48]execute_script done [12:43:48]execute_script returns [12:43:48]free content buf [12:43:48]Sock 8.Close socket [12:43:48]Sock 8.Thread stoped [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:00]accept exits with 9 [12:58:00]New connection [12:58:00]New thread 3066834276 created [12:58:00]Thread 3066977636 joined [12:58:00]Waiting for new connection... [12:58:00] Sock 9.Parse request [12:58:00]Sock 9.Check first char [12:58:00]Sock 9.First char is OK [12:58:00]request: POST /json_proto HTTP/1.0 [12:58:00]Method: POST [12:58:00]URL: /json_proto [12:58:00]Method is POST - this is cgi request [12:58:00]url: /json_proto [12:58:00]query_string will be loaded in cgi processing [12:58:00]execute_cgi json_proto POST (null) [12:58:00]execute_cgi path=json_proto method=POST [12:58:00]POST find Content-Length [12:58:00]Host: 172.17.35.133:8080 [12:58:00]Content-Length: 678 [12:58:00]Content-Type: application/json [12:58:00] [12:58:00]POST finish read [12:58:00]Found Content-Length = 678 [12:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619022", "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" : 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" ] } } [12:58:00]execute_script... [12:58: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 : (1)1619022", "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" : 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" ] } } [12:58:00]POST & json_proto [12:58:00]process_json_proto [12:58:00]json parsed OK: [12:58:00]protocol is kg_v1.0 [12:58:00]action value=close_receipt [12:58:00]process_action close_receipt [12:58:00]cmd_close_receipt [12:58:00]MH_GetDate [12:58:00]Write to MH i2c: F0 00 00 57 0C 52 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: F0 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: F0 09 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: F0 09 00 57 0C 00 D9 79 92 66 1B 28 2A 66 78 [12:58:00]GetLastDocTimeStamp 1720874625 [12:58:00]current date 1720875481 [12:58:00]FM_GetShiftState [12:58:00]SAM_PROTO_GetShiftState [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 13 01 00 [12:58:00]Write to MH i2c: E2 08 00 58 0C 80 13 01 00 00 00 00 00 E1 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 0E 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 0E 00 58 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6C [12:58:00]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:58:00]wFMCommunicate OK [12:58:00]SAM_PROTO_GetShiftState done [12:58:00]FM_GetShiftState done [12:58:00]opened in 1720829379 [12:58:00]opened+sec_in_day 1720915779 [12:58:00]quantity*price = 50056 [12:58:00]sum+1 = 50058 [12:58:00]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 СНО: Общий режим Чек 68 13.07.2024 12:58 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1899 ФПД: 139686765105522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125801&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1899&fm=139686765105522&tin=02508201610067®Number=0000000000177495&sum=50000 [12:58:01]StoreToDocumentArchive [12:58:01]shift 24 fd 1899 [12:58:01]save to /storage/0024/doc_00001899 [12:58:01]save last doc name /storage/0024/doc_00001899 to /storage/kkm_last_doc_name [12:58:01]save OK [12:58:01]Clear old archive folders... [12:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:01]tlvbuf is 00FF2980 [12:58:01]SAM_PROTO_ClearQueue [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 09 00 00 [12:58:01]Write to MH i2c: E2 08 00 65 0C 80 09 00 00 00 00 00 00 E3 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_ClearQueue done [12:58:01]KKMCreateOFDPacket [12:58:01]OFDProtocolAddRootSTLVToBuf [12:58:01]FM_MakeSignedData [12:58:01]FM_MakeSignedData [12:58:01]SAM_PROTO_SignData [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 0D 01 02 [12:58:01]Write to MH i2c: E2 08 00 66 0C 80 0D 01 02 00 00 00 00 EB [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 66 0C 00 90 00 E6 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]wFMCommunicate request_size=255 [12:58:01]MH_SAM_APDU [12:58:01]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 44 00 00 00 F4 03 04 00 D9 79 92 66 0E 04 04 00 18 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 6B 07 00 00 35 04 06 00 7F [12:58:01]Write to MH i2c: E2 02 01 67 0C 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 44 00 00 00 F4 03 04 00 D9 79 92 66 0E 04 04 00 18 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 6B 07 00 00 35 04 06 00 7F 00 00 37 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]wFMCommunicate request_size=10 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 0D 02 02 05 0B 5C 03 91 72 [12:58:01]Write to MH i2c: E2 0D 00 68 0C 80 0D 02 02 05 00 0B 5C 03 91 72 00 00 65 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 0D 03 02 [12:58:01]Write to MH i2c: E2 08 00 69 0C 80 0D 03 02 00 00 00 00 F0 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 0B 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 0B 00 69 0C 00 0E 6C CD 98 C1 DD 32 1A 90 00 BA [12:58:01]RAPDU: 0E 6C CD 98 C1 DD 32 1A 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_SignData done [12:58:01]FM_MakeSignedData done [12:58:01]CreateOFDProtocolMessage [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 11 00 00 [12:58:01]Write to MH i2c: E2 08 00 6A 0C 80 11 00 00 00 00 00 00 F0 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 17 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 17 00 6A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 46 [12:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:58:01]wFMCommunicate OK [12:58:01]CreateOFDProtocolMessage done [12:58:01]OFDSenderStorePacket 1899 [12:58:01]StoreOFDPacket docnum=1899 [12:58: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 0F 01 00 00 E6 A0 07 01 5B FB 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 44 00 00 00 F4 03 04 00 D9 79 92 66 0E 04 04 00 18 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 6B 07 00 00 35 04 06 00 7F 0B 5C 03 91 72 0E 6C CD 98 C1 DD 32 1A [12:58:01]CheckFolder [12:58:01]dirname=/storage/ofd_packets [12:58:01]CheckFolder done [12:58:01]ProducePacketName [12:58:01]name=ofd_packets/00001899 [12:58:01]NVStorageSaveData ofd_packets/00001899 [12:58:01]File name is /storage/ofd_packets/00001899 [12:58:01]Write 301 bytes [12:58:01]NVStorageSaveData done [12:58:01]OFDSenderStorePacket done [12:58:01]KKMCreateOFDPacket done [12:58:01]NVStorageSaveData kkm_last_timestamp [12:58:01]File name is /storage/kkm_last_timestamp [12:58:01]Write 4 bytes [12:58:01]NVStorageSaveData done [12:58:01]ExternCall_PrintAddStr [12:58:01]wPrintStart [12:58:01]Write to MH i2c: 01 00 00 6B 0C 77 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 FF 0F 8C [12:58:01]RasterBufferAndPrint [12:58:01]line Счет N : (1)1619022 [12:58:01]line ИНН: 02508201610067 [12:58:01]line Контрольно-Кассовый Чек [12:58:01]line ПРОДАЖА [12:58:01]line ТРК (МРК, ГНК) : 33 [12:58:01]line Товар: 2710124130 [12:58:01]line Аи-92-К-5 [12:58:01]line 7.550 * 66.30 [12:58:01]line = 500.57 [12:58:01]line НДС 12% НСП 1% [12:58:01]line > о реализуемом товаре [12:58:01]line ОКРУГЛЕНИЕ: -0.57 [12:58:01]line ИТОГО: 500.00 [12:58:01]line Внесено: 500.00 [12:58:01]line СДАЧА: 0.00 [12:58:01]line НСП 1% : 4.43 [12:58:01]line НДС 12% : 53.16 [12:58:01]line Наличными: 500.00 [12:58:01]line Безнал.: 0.00 [12:58:01]line Место: АЗС № 76 "Партнер Нефть" [12:58:01]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:58:01]line СНО: Общий режим [12:58:01]line Чек 68 13.07.2024 12:58 [12:58:01]line Смена: 24 ФФД: 1.0 [12:58:01]line ЗНМ: 0300000124 [12:58:01]line РНМ: 0000000000177495 [12:58:01]line Версия ККМ: 001 [12:58:01]line ФМ: 0000000002098592 [12:58:01]line ФД: 1899 [12:58:01]line ФПД: 139686765105522 [12:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125801&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1899&fm=139686765105522&tin=02508201610067®Number=0000000000177495&sum=50000 [12:58:02]OFD Sender: Processing packet 1899 [packets to send 1, broken 0] [12:58:02]ProducePacketName [12:58:02]name=ofd_packets/00001899 [12:58:02]OFD Sender: To server: pG, [12:58:02]CommunicateWithHost lk.salyk.kg:30040 [12:58:02]ConnectInit lk.salyk.kg [12:58:02]written 0, free lines is 4095 [12:58:02]Connected sock=10 [12:58: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 0F 01 00 00 E6 A0 07 01 5B FB 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 44 00 00 00 F4 03 04 00 D9 79 92 66 0E 04 04 00 18 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 6B 07 00 00 35 04 06 00 7F 0B 5C 03 91 72 0E 6C CD 98 C1 DD 32 1A [12:58:02]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 E5 CF 47 00 59 60 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 6B 07 00 00 F4 03 04 00 0F 25 92 66 B6 04 01 00 00 66 45 B0 D3 CF EB 89 6D [12:58:02]CommunicateWithHost err = 0 [12:58:02]CheckOFDResponse [12:58:02]1017 (14) - 77093643461234 [12:58:02]1041 (16) - 0000000002098592 [12:58:02]1040 (4) - 1899 [12:58:02]1012 (4) - 13.07.2024 06:56 [12:58:02]1206 (1) - 0 [12:58:02]OFD Sender: Remove packet 1899 [12:58:02]ProducePacketName [12:58:02]name=ofd_packets/00001899 [12:58:02]NVStorageDeleteData [12:58:02]Write to MH i2c: 01 00 00 96 0C A2 [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 07 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 07 00 96 0C 00 00 00 00 00 F1 0C A6 [12:58:02]RasterBufferAndPrint [12:58:02]line [12:58:02]line [12:58:02]line [12:58:02]line [12:58:02]line [12:58:02]written 0, free lines is 3319 [12:58:02]MH_Cut [12:58:02]Write to MH i2c: D1 01 00 9D 0C 01 7B [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: D1 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: D1 01 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: D1 01 00 9D 0C 00 7A [12:58:02]Write to MH i2c: 01 00 00 9E 0C AA [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:03]OFD Sender: No OFD packet to send [12:58:03]*** Cut start [12:58:03]*** Partial cut [12:58:03]*** CUTSNS_PIN = 1 [12:58:03]*** CUTSNS_PIN = 0 [12:58:03]*** Brake cut motor [12:58:04]Read from MH i2c: 01 [12:58:04]MH_I2C_Read... [12:58:04]*** Stop cut motor [12:58:04]*** Cut end [12:58:04]Read from MH i2c: 01 07 00 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 FF 0F BF [12:58:04]process_action close_receipt done [12:58:04]requested_data is exist [12:58:04]produce_requested_data [12:58:04]requested_item fm.sn is exist - process it [12:58:04]wFMCommunicate request_size=4 [12:58:04]MH_SAM_APDU [12:58:04]CAPDU: 80 11 00 00 [12:58:04]Write to MH i2c: E2 08 00 9F 0C 80 11 00 00 00 00 00 00 25 [12:58:04]Write i2c OK [12:58:04]MH_I2C_Read... [12:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:04]Read from MH i2c: E2 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 17 00 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 17 00 9F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7B [12:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:58:04]wFMCommunicate OK [12:58:04]requested_item fd.num is exist - process it [12:58:04]SAM_PROTO_GetFieldsCounters [12:58:04]wFMCommunicate request_size=4 [12:58:04]MH_SAM_APDU [12:58:04]CAPDU: 80 13 00 00 [12:58:04]Write to MH i2c: E2 08 00 A0 0C 80 13 00 00 00 00 00 00 28 [12:58:04]Write i2c OK [12:58:04]MH_I2C_Read... [12:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:04]Read from MH i2c: E2 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 62 00 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 62 00 A0 0C 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 6B 07 00 00 0E 04 04 00 18 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 AA [12:58: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 6B 07 00 00 0E 04 04 00 18 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 [12:58:04]wFMCommunicate OK [12:58:04]SAM_PROTO_GetFieldsCounters done [12:58:04]requested_item shift.num is exist - process it [12:58:04]requested_item shift.opened is exist - process it [12:58:04]req_shift_opened [12:58:04]FM_GetShiftState [12:58:04]SAM_PROTO_GetShiftState [12:58:04]wFMCommunicate request_size=4 [12:58:04]MH_SAM_APDU [12:58:04]CAPDU: 80 13 01 00 [12:58:04]Write to MH i2c: E2 08 00 A1 0C 80 13 01 00 00 00 00 00 2A [12:58:04]Write i2c OK [12:58:04]MH_I2C_Read... [12:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:04]Read from MH i2c: E2 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 0E 00 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 0E 00 A1 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B5 [12:58:04]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:58:04]wFMCommunicate OK [12:58:04]SAM_PROTO_GetShiftState done [12:58:04]FM_GetShiftState done [12:58:04]req_shift_opened done [12:58:04]requested_item shift.open_date is exist - process it [12:58:04]req_shift_open_date [12:58:04]req_shift_open_date done [12:58:04]produce_requested_data done [12:58:04]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1899,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:58:04]process_action_free close_receipt [12:58:04]json_value_free [12:58:04]json_value_free done [12:58:04]process_json_proto returns [12:58:04]Send response to host [12:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1899,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:58:04]free response buf [12:58:04]execute_script done [12:58:04]execute_script returns [12:58:04]free content buf [12:58:04]Sock 9.Close socket [12:58:04]Sock 9.Thread stoped [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:51]accept exits with 8 [12:58:51]New connection [12:58:51]New thread 3066977636 created [12:58:51]Thread 3066834276 joined [12:58:51]Waiting for new connection... [12:58:51] Sock 8.Parse request [12:58:51]Sock 8.Check first char [12:58:51]Sock 8.First char is OK [12:58:51]request: POST /json_proto HTTP/1.0 [12:58:51]Method: POST [12:58:51]URL: /json_proto [12:58:51]Method is POST - this is cgi request [12:58:51]url: /json_proto [12:58:51]query_string will be loaded in cgi processing [12:58:51]execute_cgi json_proto POST (null) [12:58:51]execute_cgi path=json_proto method=POST [12:58:51]POST find Content-Length [12:58:51]Host: 172.17.35.133:8080 [12:58:51]Content-Length: 683 [12:58:51]Content-Type: application/json [12:58:51] [12:58:51]POST finish read [12:58:51]Found Content-Length = 683 [12:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619023", "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" : 18.100, "sum" : 1200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:51]execute_script... [12:58: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 : (1)1619023", "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" : 18.100, "sum" : 1200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:51]POST & json_proto [12:58:51]process_json_proto [12:58:51]json parsed OK: [12:58:51]protocol is kg_v1.0 [12:58:51]action value=close_receipt [12:58:51]process_action close_receipt [12:58:51]cmd_close_receipt [12:58:51]MH_GetDate [12:58:51]Write to MH i2c: F0 00 00 A2 0C 9D [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: F0 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: F0 09 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: F0 09 00 A2 0C 00 0C 7A 92 66 1B 28 2A 66 F7 [12:58:51]GetLastDocTimeStamp 1720875481 [12:58:51]current date 1720875532 [12:58:51]FM_GetShiftState [12:58:51]SAM_PROTO_GetShiftState [12:58:51]wFMCommunicate request_size=4 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 13 01 00 [12:58:51]Write to MH i2c: E2 08 00 A3 0C 80 13 01 00 00 00 00 00 2C [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 0E 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 0E 00 A3 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B7 [12:58:51]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:58:51]wFMCommunicate OK [12:58:51]SAM_PROTO_GetShiftState done [12:58:51]FM_GetShiftState done [12:58:51]opened in 1720829379 [12:58:51]opened+sec_in_day 1720915779 [12:58:51]quantity*price = 120003 [12:58:51]sum+1 = 120004 [12:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 69 13.07.2024 12:58 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1900 ФПД: 249795594778131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125852&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1900&fm=249795594778131&tin=02508201610067®Number=0000000000177495&sum=120000 [12:58:52]StoreToDocumentArchive [12:58:52]shift 24 fd 1900 [12:58:52]save to /storage/0024/doc_00001900 [12:58:52]save last doc name /storage/0024/doc_00001900 to /storage/kkm_last_doc_name [12:58:52]save OK [12:58:52]Clear old archive folders... [12:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:52]tlvbuf is 00FEA8B0 [12:58:52]SAM_PROTO_ClearQueue [12:58:52]wFMCommunicate request_size=4 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 09 00 00 [12:58:52]Write to MH i2c: E2 08 00 B0 0C 80 09 00 00 00 00 00 00 2E [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [12:58:52]RAPDU: 90 00 [12:58:52]wFMCommunicate OK [12:58:52]SAM_PROTO_ClearQueue done [12:58:52]KKMCreateOFDPacket [12:58:52]OFDProtocolAddRootSTLVToBuf [12:58:52]FM_MakeSignedData [12:58:52]FM_MakeSignedData [12:58:52]SAM_PROTO_SignData [12:58:52]wFMCommunicate request_size=4 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 0D 01 02 [12:58:52]Write to MH i2c: E2 08 00 B1 0C 80 0D 01 02 00 00 00 00 36 [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [12:58:52]RAPDU: 90 00 [12:58:52]wFMCommunicate OK [12:58:52]wFMCommunicate request_size=255 [12:58:52]MH_SAM_APDU [12:58:52]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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 0C 7A 92 66 0E 04 04 00 18 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 6C 07 00 00 35 04 06 00 E3 [12:58:52]Write to MH i2c: E2 02 01 B2 0C 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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 0C 7A 92 66 0E 04 04 00 18 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 6C 07 00 00 35 04 06 00 E3 00 00 5A [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [12:58:52]RAPDU: 90 00 [12:58:52]wFMCommunicate OK [12:58:52]wFMCommunicate request_size=10 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 0D 02 02 05 30 11 B1 76 13 [12:58:52]Write to MH i2c: E2 0D 00 B3 0C 80 0D 02 02 05 00 30 11 B1 76 13 00 00 BE [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [12:58:52]RAPDU: 90 00 [12:58:52]wFMCommunicate OK [12:58:52]wFMCommunicate request_size=4 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 0D 03 02 [12:58:52]Write to MH i2c: E2 08 00 B4 0C 80 0D 03 02 00 00 00 00 3B [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 0B 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 0B 00 B4 0C 00 B1 5E DF DE 36 2B A8 85 90 00 96 [12:58:52]RAPDU: B1 5E DF DE 36 2B A8 85 90 00 [12:58:52]wFMCommunicate OK [12:58:52]SAM_PROTO_SignData done [12:58:52]FM_MakeSignedData done [12:58:52]CreateOFDProtocolMessage [12:58:52]wFMCommunicate request_size=4 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 11 00 00 [12:58:52]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 17 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 91 [12:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:58:52]wFMCommunicate OK [12:58:52]CreateOFDProtocolMessage done [12:58:52]OFDSenderStorePacket 1900 [12:58:52]StoreOFDPacket docnum=1900 [12:58: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 0F 01 00 00 98 24 07 01 0B 58 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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 0C 7A 92 66 0E 04 04 00 18 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 6C 07 00 00 35 04 06 00 E3 30 11 B1 76 13 B1 5E DF DE 36 2B A8 85 [12:58:52]CheckFolder [12:58:52]dirname=/storage/ofd_packets [12:58:52]CheckFolder done [12:58:52]ProducePacketName [12:58:52]name=ofd_packets/00001900 [12:58:52]NVStorageSaveData ofd_packets/00001900 [12:58:52]File name is /storage/ofd_packets/00001900 [12:58:52]Write 301 bytes [12:58:52]NVStorageSaveData done [12:58:52]OFDSenderStorePacket done [12:58:52]KKMCreateOFDPacket done [12:58:52]NVStorageSaveData kkm_last_timestamp [12:58:52]File name is /storage/kkm_last_timestamp [12:58:52]Write 4 bytes [12:58:52]NVStorageSaveData done [12:58:52]ExternCall_PrintAddStr [12:58:52]wPrintStart [12:58:52]Write to MH i2c: 01 00 00 B6 0C C2 [12:58:52]OFD Sender: Processing packet 1900 [packets to send 1, broken 0] [12:58:52]ProducePacketName [12:58:52]name=ofd_packets/00001900 [12:58:52]OFD Sender: To server: pG, [12:58:52]CommunicateWithHost lk.salyk.kg:30040 [12:58:52]ConnectInit lk.salyk.kg [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 07 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 FF 0F D7 [12:58:52]RasterBufferAndPrint [12:58:52]line Счет N : (1)1619023 [12:58:52]line ИНН: 02508201610067 [12:58:52]line Контрольно-Кассовый Чек [12:58:52]line ПРОДАЖА [12:58:52]line ТРК (МРК, ГНК) : 43 [12:58:52]line Товар: 2710124130 [12:58:52]line Аи-92-К-5 [12:58:52]line 18.100 * 66.30 [12:58:52]line = 1200.03 [12:58:52]line НДС 12% НСП 1% [12:58:52]line > о реализуемом товаре [12:58:52]line ОКРУГЛЕНИЕ: -0.03 [12:58:52]line ИТОГО: 1200.00 [12:58:52]line Внесено: 1200.00 [12:58:52]line СДАЧА: 0.00 [12:58:52]line НСП 1% : 10.62 [12:58:52]line НДС 12% : 127.44 [12:58:52]line Наличными: 1200.00 [12:58:52]line Безнал.: 0.00 [12:58:52]line Место: АЗС № 76 "Партнер Нефть" [12:58:52]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [12:58:52]line СНО: Общий режим [12:58:52]line Чек 69 13.07.2024 12:58 [12:58:52]line Смена: 24 ФФД: 1.0 [12:58:52]line ЗНМ: 0300000124 [12:58:52]line РНМ: 0000000000177495 [12:58:52]line Версия ККМ: 001 [12:58:52]line ФМ: 0000000002098592 [12:58:52]line ФД: 1900 [12:58:52]line ФПД: 249795594778131 [12:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125852&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1900&fm=249795594778131&tin=02508201610067®Number=0000000000177495&sum=120000 [12:58:53]Connected sock=10 [12:58: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 0F 01 00 00 98 24 07 01 0B 58 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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 0C 7A 92 66 0E 04 04 00 18 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 6C 07 00 00 35 04 06 00 E3 30 11 B1 76 13 B1 5E DF DE 36 2B A8 85 [12:58:53]written 0, free lines is 4095 [12:58: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 BF 2E 47 00 C8 B4 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 6C 07 00 00 F4 03 04 00 42 25 92 66 B6 04 01 00 00 8E 6A 19 DC E1 D0 7D 21 [12:58:53]CommunicateWithHost err = 0 [12:58:53]CheckOFDResponse [12:58:53]1017 (14) - 77093643461234 [12:58:53]1041 (16) - 0000000002098592 [12:58:53]1040 (4) - 1900 [12:58:53]1012 (4) - 13.07.2024 06:57 [12:58:53]1206 (1) - 0 [12:58:53]OFD Sender: Remove packet 1900 [12:58:53]ProducePacketName [12:58:53]name=ofd_packets/00001900 [12:58:53]NVStorageDeleteData [12:58:53]Write to MH i2c: 01 00 00 E1 0C ED [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: 01 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: 01 07 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 DF 0C DF [12:58:53]RasterBufferAndPrint [12:58:53]line [12:58:53]line [12:58:53]line [12:58:53]line [12:58:53]line [12:58:53]written 0, free lines is 3302 [12:58:53]MH_Cut [12:58:53]Write to MH i2c: D1 01 00 E8 0C 01 C6 [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: D1 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: D1 01 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: D1 01 00 E8 0C 00 C5 [12:58:53]Write to MH i2c: 01 00 00 E9 0C F5 [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:53]OFD Sender: No OFD packet to send [12:58:54]*** Cut start [12:58:54]*** Partial cut [12:58:54]*** CUTSNS_PIN = 1 [12:58:54]*** CUTSNS_PIN = 0 [12:58:54]*** Brake cut motor [12:58:55]Read from MH i2c: 01 [12:58:55]MH_I2C_Read... [12:58:55]*** Stop cut motor [12:58:55]*** Cut end [12:58:55]Read from MH i2c: 01 07 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: 01 07 00 E9 0C 00 00 00 00 00 FF 0F 0A [12:58:55]process_action close_receipt done [12:58:55]requested_data is exist [12:58:55]produce_requested_data [12:58:55]requested_item fm.sn is exist - process it [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 11 00 00 [12:58:55]Write to MH i2c: E2 08 00 EA 0C 80 11 00 00 00 00 00 00 70 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 17 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 17 00 EA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C6 [12:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [12:58:55]wFMCommunicate OK [12:58:55]requested_item fd.num is exist - process it [12:58:55]SAM_PROTO_GetFieldsCounters [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 13 00 00 [12:58:55]Write to MH i2c: E2 08 00 EB 0C 80 13 00 00 00 00 00 00 73 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 62 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 62 00 EB 0C 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 6C 07 00 00 0E 04 04 00 18 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 F9 [12:58: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 6C 07 00 00 0E 04 04 00 18 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 [12:58:55]wFMCommunicate OK [12:58:55]SAM_PROTO_GetFieldsCounters done [12:58:55]requested_item shift.num is exist - process it [12:58:55]requested_item shift.opened is exist - process it [12:58:55]req_shift_opened [12:58:55]FM_GetShiftState [12:58:55]SAM_PROTO_GetShiftState [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 13 01 00 [12:58:55]Write to MH i2c: E2 08 00 EC 0C 80 13 01 00 00 00 00 00 75 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 0E 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 0E 00 EC 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 00 [12:58:55]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [12:58:55]wFMCommunicate OK [12:58:55]SAM_PROTO_GetShiftState done [12:58:55]FM_GetShiftState done [12:58:55]req_shift_opened done [12:58:55]requested_item shift.open_date is exist - process it [12:58:55]req_shift_open_date [12:58:55]req_shift_open_date done [12:58:55]produce_requested_data done [12:58:55]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1900,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [12:58:55]process_action_free close_receipt [12:58:55]json_value_free [12:58:55]json_value_free done [12:58:55]process_json_proto returns [12:58:55]Send response to host [12:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1900,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [12:58:55]free response buf [12:58:55]execute_script done [12:58:55]execute_script returns [12:58:55]free content buf [12:58:55]Sock 8.Close socket [12:58:55]Sock 8.Thread stoped [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:25]accept exits with 9 [13:02:25]New connection [13:02:25]New thread 3066834276 created [13:02:25]Thread 3066977636 joined [13:02:25]Waiting for new connection... [13:02:25] Sock 9.Parse request [13:02:25]Sock 9.Check first char [13:02:25]Sock 9.First char is OK [13:02:25]request: POST /json_proto HTTP/1.0 [13:02:25]Method: POST [13:02:25]URL: /json_proto [13:02:25]Method is POST - this is cgi request [13:02:25]url: /json_proto [13:02:25]query_string will be loaded in cgi processing [13:02:25]execute_cgi json_proto POST (null) [13:02:25]execute_cgi path=json_proto method=POST [13:02:25]POST find Content-Length [13:02:25]Host: 172.17.35.133:8080 [13:02:25]Content-Length: 849 [13:02:25]Content-Type: application/json [13:02:25] [13:02:25]POST finish read [13:02:25]Found Content-Length = 849 [13:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:25]execute_script... [13:02: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 : (1)1619024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:25]POST & json_proto [13:02:25]process_json_proto [13:02:25]json parsed OK: [13:02:25]protocol is kg_v1.0 [13:02:25]action value=close_receipt [13:02:25]process_action close_receipt [13:02:25]cmd_close_receipt [13:02:25]MH_GetDate [13:02:25]Write to MH i2c: F0 00 00 ED 0C E8 [13:02:25]Write i2c OK [13:02:25]MH_I2C_Read... [13:02:25]Read from MH i2c: F0 [13:02:25]MH_I2C_Read... [13:02:25]Read from MH i2c: F0 09 00 [13:02:25]MH_I2C_Read... [13:02:25]Read from MH i2c: F0 09 00 ED 0C 00 E3 7A 92 66 1B 28 2A 66 19 [13:02:25]GetLastDocTimeStamp 1720875532 [13:02:25]current date 1720875747 [13:02:25]FM_GetShiftState [13:02:25]SAM_PROTO_GetShiftState [13:02:25]wFMCommunicate request_size=4 [13:02:25]MH_SAM_APDU [13:02:25]CAPDU: 80 13 01 00 [13:02:25]Write to MH i2c: E2 08 00 EE 0C 80 13 01 00 00 00 00 00 77 [13:02:25]Write i2c OK [13:02:25]MH_I2C_Read... [13:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:25]Read from MH i2c: E2 [13:02:25]MH_I2C_Read... [13:02:25]Read from MH i2c: E2 0E 00 [13:02:25]MH_I2C_Read... [13:02:25]Read from MH i2c: E2 0E 00 EE 0C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 02 [13:02:25]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:02:25]wFMCommunicate OK [13:02:25]SAM_PROTO_GetShiftState done [13:02:25]FM_GetShiftState done [13:02:25]opened in 1720829379 [13:02:25]opened+sec_in_day 1720915779 [13:02:25]quantity*price = 100042 [13:02:25]sum+1 = 100044 [13:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 70 13.07.2024 13:02 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1901 ФПД: 224916229217991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130227&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1901&fm=224916229217991&tin=02508201610067®Number=0000000000177495&sum=100043 [13:02:26]StoreToDocumentArchive [13:02:26]shift 24 fd 1901 [13:02:26]save to /storage/0024/doc_00001901 [13:02:26]save last doc name /storage/0024/doc_00001901 to /storage/kkm_last_doc_name [13:02:26]save OK [13:02:26]Clear old archive folders... [13:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:02:26]tlvbuf is 00FDD390 [13:02:26]SAM_PROTO_ClearQueue [13:02:26]wFMCommunicate request_size=4 [13:02:26]MH_SAM_APDU [13:02:26]CAPDU: 80 09 00 00 [13:02:26]Write to MH i2c: E2 08 00 FB 0C 80 09 00 00 00 00 00 00 79 [13:02:26]Write i2c OK [13:02:26]MH_I2C_Read... [13:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:26]Read from MH i2c: E2 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [13:02:26]RAPDU: 90 00 [13:02:26]wFMCommunicate OK [13:02:26]SAM_PROTO_ClearQueue done [13:02:26]KKMCreateOFDPacket [13:02:26]OFDProtocolAddRootSTLVToBuf [13:02:26]FM_MakeSignedData [13:02:26]FM_MakeSignedData [13:02:26]SAM_PROTO_SignData [13:02:26]wFMCommunicate request_size=4 [13:02:26]MH_SAM_APDU [13:02:26]CAPDU: 80 0D 01 02 [13:02:26]Write to MH i2c: E2 08 00 FC 0C 80 0D 01 02 00 00 00 00 81 [13:02:26]Write i2c OK [13:02:26]MH_I2C_Read... [13:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:26]Read from MH i2c: E2 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [13:02:26]RAPDU: 90 00 [13:02:26]wFMCommunicate OK [13:02:26]wFMCommunicate request_size=255 [13:02:26]MH_SAM_APDU [13:02:26]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E3 7A 92 66 0E 04 04 00 18 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 6D 07 00 00 35 04 06 00 [13:02:26]Write to MH i2c: E2 02 01 FD 0C 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E3 7A 92 66 0E 04 04 00 18 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 6D 07 00 00 35 04 06 00 00 00 8F [13:02:26]Write i2c OK [13:02:26]MH_I2C_Read... [13:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:26]Read from MH i2c: E2 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [13:02:26]RAPDU: 90 00 [13:02:26]wFMCommunicate OK [13:02:26]wFMCommunicate request_size=11 [13:02:26]MH_SAM_APDU [13:02:26]CAPDU: 80 0D 02 02 06 CC 8F 63 F2 5E C7 [13:02:26]Write to MH i2c: E2 0E 00 FE 0C 80 0D 02 02 06 00 CC 8F 63 F2 5E C7 00 00 65 [13:02:26]Write i2c OK [13:02:26]MH_I2C_Read... [13:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:26]Read from MH i2c: E2 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 [13:02:26]MH_I2C_Read... [13:02:26]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [13:02:26]RAPDU: 90 00 [13:02:26]wFMCommunicate OK [13:02:26]wFMCommunicate request_size=4 [13:02:26]MH_SAM_APDU [13:02:26]CAPDU: 80 0D 03 02 [13:02:26]Write to MH i2c: E2 08 00 FF 0C 80 0D 03 02 00 00 00 00 86 [13:02:26]Write i2c OK [13:02:26]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0B 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0B 00 FF 0C 00 F9 DB 84 6B A0 F6 36 AA 90 00 C0 [13:02:27]RAPDU: F9 DB 84 6B A0 F6 36 AA 90 00 [13:02:27]wFMCommunicate OK [13:02:27]SAM_PROTO_SignData done [13:02:27]FM_MakeSignedData done [13:02:27]CreateOFDProtocolMessage [13:02:27]wFMCommunicate request_size=4 [13:02:27]MH_SAM_APDU [13:02:27]CAPDU: 80 11 00 00 [13:02:27]Write to MH i2c: E2 08 00 00 0D 80 11 00 00 00 00 00 00 87 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 17 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 17 00 00 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DD [13:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:02:27]wFMCommunicate OK [13:02:27]CreateOFDProtocolMessage done [13:02:27]OFDSenderStorePacket 1901 [13:02:27]StoreOFDPacket docnum=1901 [13:02:27]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 74 99 08 01 A1 47 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E3 7A 92 66 0E 04 04 00 18 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 6D 07 00 00 35 04 06 00 CC 8F 63 F2 5E C7 F9 DB 84 6B A0 F6 36 AA [13:02:27]CheckFolder [13:02:27]dirname=/storage/ofd_packets [13:02:27]CheckFolder done [13:02:27]ProducePacketName [13:02:27]name=ofd_packets/00001901 [13:02:27]NVStorageSaveData ofd_packets/00001901 [13:02:27]File name is /storage/ofd_packets/00001901 [13:02:27]Write 302 bytes [13:02:27]NVStorageSaveData done [13:02:27]OFDSenderStorePacket done [13:02:27]KKMCreateOFDPacket done [13:02:27]NVStorageSaveData kkm_last_timestamp [13:02:27]File name is /storage/kkm_last_timestamp [13:02:27]Write 4 bytes [13:02:27]NVStorageSaveData done [13:02:27]ExternCall_PrintAddStr [13:02:27]wPrintStart [13:02:27]Write to MH i2c: 01 00 00 01 0D 0E [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 FF 0F 23 [13:02:27]RasterBufferAndPrint [13:02:27]line Счет N : (1)1619024 [13:02:27]line ИНН: 02508201610067 [13:02:27]line Контрольно-Кассовый Чек [13:02:27]line ПРОДАЖА [13:02:27]line ТРК (МРК, ГНК) : 22 [13:02:27]line Товар: 2710194210 [13:02:27]line ДТ(л)-К-4 [13:02:27]line 13.780 * 72.60 [13:02:27]line = 1000.43 [13:02:27]line НДС 12% НСП 1% [13:02:27]line > о реализуемом товаре [13:02:27]line ИТОГО: 1000.43 [13:02:27]line НСП 1% : 8.85 [13:02:27]line НДС 12% : 106.24 [13:02:27]line Наличными: 0.00 [13:02:27]line Безнал.: 1000.43 [13:02:27]line Место: АЗС № 76 "Партнер Нефть" [13:02:27]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:02:27]line СНО: Общий режим [13:02:27]line Чек 70 13.07.2024 13:02 [13:02:27]line Смена: 24 ФФД: 1.0 [13:02:27]line ЗНМ: 0300000124 [13:02:27]line РНМ: 0000000000177495 [13:02:27]line Версия ККМ: 001 [13:02:27]line Платежная система: АКБ Кыргызстан [13:02:27]line ФМ: 0000000002098592 [13:02:27]line ФД: 1901 [13:02:27]line ФПД: 224916229217991 [13:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130227&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1901&fm=224916229217991&tin=02508201610067®Number=0000000000177495&sum=100043 [13:02:27]OFD Sender: Processing packet 1901 [packets to send 1, broken 0] [13:02:27]ProducePacketName [13:02:27]name=ofd_packets/00001901 [13:02:27]OFD Sender: To server: pG, [13:02:27]CommunicateWithHost lk.salyk.kg:30040 [13:02:27]ConnectInit lk.salyk.kg [13:02:27]written 0, free lines is 4095 [13:02:27]Connected sock=10 [13:02: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 10 01 00 00 74 99 08 01 A1 47 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E3 7A 92 66 0E 04 04 00 18 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 6D 07 00 00 35 04 06 00 CC 8F 63 F2 5E C7 F9 DB 84 6B A0 F6 36 AA [13:02: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 D7 D3 47 00 FF F4 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 6D 07 00 00 F4 03 04 00 19 26 92 66 B6 04 01 00 00 73 E6 F2 F0 0B 53 18 D9 [13:02:27]CommunicateWithHost err = 0 [13:02:27]CheckOFDResponse [13:02:27]1017 (14) - 77093643461234 [13:02:27]1041 (16) - 0000000002098592 [13:02:27]1040 (4) - 1901 [13:02:27]1012 (4) - 13.07.2024 07:00 [13:02:27]1206 (1) - 0 [13:02:27]OFD Sender: Remove packet 1901 [13:02:27]ProducePacketName [13:02:27]name=ofd_packets/00001901 [13:02:27]NVStorageDeleteData [13:02:27]Write to MH i2c: 01 00 00 2B 0D 38 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 FB 0C 46 [13:02:27]RasterBufferAndPrint [13:02:27]line [13:02:27]line [13:02:27]line [13:02:27]line [13:02:27]line [13:02:27]written 0, free lines is 3329 [13:02:27]MH_Cut [13:02:27]Write to MH i2c: D1 01 00 32 0D 01 11 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: D1 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: D1 01 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: D1 01 00 32 0D 00 10 [13:02:27]Write to MH i2c: 01 00 00 33 0D 40 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:28]OFD Sender: No OFD packet to send [13:02:28]*** Cut start [13:02:28]*** Partial cut [13:02:28]*** CUTSNS_PIN = 1 [13:02:28]*** CUTSNS_PIN = 0 [13:02:28]*** Brake cut motor [13:02:29]Read from MH i2c: 01 [13:02:29]MH_I2C_Read... [13:02:29]*** Stop cut motor [13:02:29]*** Cut end [13:02:29]Read from MH i2c: 01 07 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 FF 0F 55 [13:02:29]process_action close_receipt done [13:02:29]requested_data is exist [13:02:29]produce_requested_data [13:02:29]requested_item fm.sn is exist - process it [13:02:29]wFMCommunicate request_size=4 [13:02:29]MH_SAM_APDU [13:02:29]CAPDU: 80 11 00 00 [13:02:29]Write to MH i2c: E2 08 00 34 0D 80 11 00 00 00 00 00 00 BB [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 17 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 17 00 34 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 11 [13:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:02:29]wFMCommunicate OK [13:02:29]requested_item fd.num is exist - process it [13:02:29]SAM_PROTO_GetFieldsCounters [13:02:29]wFMCommunicate request_size=4 [13:02:29]MH_SAM_APDU [13:02:29]CAPDU: 80 13 00 00 [13:02:29]Write to MH i2c: E2 08 00 35 0D 80 13 00 00 00 00 00 00 BE [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 62 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 62 00 35 0D 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 6D 07 00 00 0E 04 04 00 18 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 48 [13:02: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 6D 07 00 00 0E 04 04 00 18 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 [13:02:29]wFMCommunicate OK [13:02:29]SAM_PROTO_GetFieldsCounters done [13:02:29]requested_item shift.num is exist - process it [13:02:29]requested_item shift.opened is exist - process it [13:02:29]req_shift_opened [13:02:29]FM_GetShiftState [13:02:29]SAM_PROTO_GetShiftState [13:02:29]wFMCommunicate request_size=4 [13:02:29]MH_SAM_APDU [13:02:29]CAPDU: 80 13 01 00 [13:02:29]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 0E 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4B [13:02:29]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:02:29]wFMCommunicate OK [13:02:29]SAM_PROTO_GetShiftState done [13:02:29]FM_GetShiftState done [13:02:29]req_shift_opened done [13:02:29]requested_item shift.open_date is exist - process it [13:02:29]req_shift_open_date [13:02:29]req_shift_open_date done [13:02:29]produce_requested_data done [13:02:29]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1901,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:02:29]process_action_free close_receipt [13:02:29]json_value_free [13:02:29]json_value_free done [13:02:29]process_json_proto returns [13:02:29]Send response to host [13:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1901,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:02:29]free response buf [13:02:29]execute_script done [13:02:29]execute_script returns [13:02:29]free content buf [13:02:29]Sock 9.Close socket [13:02:29]Sock 9.Thread stoped [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:56]accept exits with 8 [13:15:56]New connection [13:15:56]New thread 3066977636 created [13:15:56]Thread 3066834276 joined [13:15:56]Waiting for new connection... [13:15:56] Sock 8.Parse request [13:15:56]Sock 8.Check first char [13:15:56]Sock 8.First char is OK [13:15:56]request: POST /json_proto HTTP/1.0 [13:15:56]Method: POST [13:15:56]URL: /json_proto [13:15:56]Method is POST - this is cgi request [13:15:56]url: /json_proto [13:15:56]query_string will be loaded in cgi processing [13:15:56]execute_cgi json_proto POST (null) [13:15:56]execute_cgi path=json_proto method=POST [13:15:56]POST find Content-Length [13:15:56]Host: 172.17.35.133:8080 [13:15:56]Content-Length: 844 [13:15:56]Content-Type: application/json [13:15:56] [13:15:56]POST finish read [13:15:56]Found Content-Length = 844 [13:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619025", "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" : 15.090, "sum" : 1000.47, "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" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:56]execute_script... [13:15:56]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)1619025", "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" : 15.090, "sum" : 1000.47, "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" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:56]POST & json_proto [13:15:56]process_json_proto [13:15:56]json parsed OK: [13:15:56]protocol is kg_v1.0 [13:15:56]action value=close_receipt [13:15:56]process_action close_receipt [13:15:56]cmd_close_receipt [13:15:56]MH_GetDate [13:15:56]Write to MH i2c: F0 00 00 37 0D 33 [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: F0 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: F0 09 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: F0 09 00 37 0D 00 0E 7E 92 66 1B 28 2A 66 93 [13:15:56]GetLastDocTimeStamp 1720875747 [13:15:56]current date 1720876558 [13:15:56]FM_GetShiftState [13:15:56]SAM_PROTO_GetShiftState [13:15:56]wFMCommunicate request_size=4 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 13 01 00 [13:15:56]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4D [13:15:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_GetShiftState done [13:15:57]FM_GetShiftState done [13:15:57]opened in 1720829379 [13:15:57]opened+sec_in_day 1720915779 [13:15:57]quantity*price = 100046 [13:15:57]sum+1 = 100048 [13:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 71 13.07.2024 13:15 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1902 ФПД: 85853239138706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131558&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1902&fm=85853239138706&tin=02508201610067®Number=0000000000177495&sum=100047 [13:15:58]StoreToDocumentArchive [13:15:58]shift 24 fd 1902 [13:15:58]save to /storage/0024/doc_00001902 [13:15:58]save last doc name /storage/0024/doc_00001902 to /storage/kkm_last_doc_name [13:15:58]save OK [13:15:58]Clear old archive folders... [13:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:58]tlvbuf is 00FDCF50 [13:15:58]SAM_PROTO_ClearQueue [13:15:58]wFMCommunicate request_size=4 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 09 00 00 [13:15:58]Write to MH i2c: E2 08 00 45 0D 80 09 00 00 00 00 00 00 C4 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [13:15:58]RAPDU: 90 00 [13:15:58]wFMCommunicate OK [13:15:58]SAM_PROTO_ClearQueue done [13:15:58]KKMCreateOFDPacket [13:15:58]OFDProtocolAddRootSTLVToBuf [13:15:58]FM_MakeSignedData [13:15:58]FM_MakeSignedData [13:15:58]SAM_PROTO_SignData [13:15:58]wFMCommunicate request_size=4 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 0D 01 02 [13:15:58]Write to MH i2c: E2 08 00 46 0D 80 0D 01 02 00 00 00 00 CC [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [13:15:58]RAPDU: 90 00 [13:15:58]wFMCommunicate OK [13:15:58]wFMCommunicate request_size=255 [13:15:58]MH_SAM_APDU [13:15:58]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 7E 92 66 0E 04 04 00 18 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 6E 07 00 00 35 04 06 00 4E [13:15:58]Write to MH i2c: E2 02 01 47 0D 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 7E 92 66 0E 04 04 00 18 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 6E 07 00 00 35 04 06 00 4E 00 00 D5 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [13:15:58]RAPDU: 90 00 [13:15:58]wFMCommunicate OK [13:15:58]wFMCommunicate request_size=10 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 0D 02 02 05 15 43 D2 59 92 [13:15:58]Write to MH i2c: E2 0D 00 48 0D 80 0D 02 02 05 00 15 43 D2 59 92 00 00 EE [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [13:15:58]RAPDU: 90 00 [13:15:58]wFMCommunicate OK [13:15:58]wFMCommunicate request_size=4 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 0D 03 02 [13:15:58]Write to MH i2c: E2 08 00 49 0D 80 0D 03 02 00 00 00 00 D1 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 0B 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 0B 00 49 0D 00 FC 2A 04 F5 AB 47 B6 45 90 00 DE [13:15:58]RAPDU: FC 2A 04 F5 AB 47 B6 45 90 00 [13:15:58]wFMCommunicate OK [13:15:58]SAM_PROTO_SignData done [13:15:58]FM_MakeSignedData done [13:15:58]CreateOFDProtocolMessage [13:15:58]wFMCommunicate request_size=4 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 11 00 00 [13:15:58]Write to MH i2c: E2 08 00 4A 0D 80 11 00 00 00 00 00 00 D1 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 17 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 17 00 4A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 27 [13:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:15:58]wFMCommunicate OK [13:15:58]CreateOFDProtocolMessage done [13:15:58]OFDSenderStorePacket 1902 [13:15:58]StoreOFDPacket docnum=1902 [13:15: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 0F 01 00 00 75 6F 07 01 E5 72 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 7E 92 66 0E 04 04 00 18 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 6E 07 00 00 35 04 06 00 4E 15 43 D2 59 92 FC 2A 04 F5 AB 47 B6 45 [13:15:58]CheckFolder [13:15:58]dirname=/storage/ofd_packets [13:15:58]CheckFolder done [13:15:58]ProducePacketName [13:15:58]name=ofd_packets/00001902 [13:15:58]NVStorageSaveData ofd_packets/00001902 [13:15:58]File name is /storage/ofd_packets/00001902 [13:15:58]Write 301 bytes [13:15:58]NVStorageSaveData done [13:15:58]OFDSenderStorePacket done [13:15:58]KKMCreateOFDPacket done [13:15:58]NVStorageSaveData kkm_last_timestamp [13:15:58]File name is /storage/kkm_last_timestamp [13:15:58]Write 4 bytes [13:15:58]NVStorageSaveData done [13:15:58]ExternCall_PrintAddStr [13:15:58]wPrintStart [13:15:58]Write to MH i2c: 01 00 00 4B 0D 58 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: 01 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: 01 07 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 FF 0F 6D [13:15:58]RasterBufferAndPrint [13:15:58]line Счет N : (1)1619025 [13:15:58]line ИНН: 02508201610067 [13:15:58]line Контрольно-Кассовый Чек [13:15:58]line ПРОДАЖА [13:15:58]line ТРК (МРК, ГНК) : 43 [13:15:58]line Товар: 2710124130 [13:15:58]line Аи-92-К-5 [13:15:58]line 15.090 * 66.30 [13:15:58]line = 1000.47 [13:15:58]line НДС 12% НСП 1% [13:15:58]line > о реализуемом товаре [13:15:58]line ИТОГО: 1000.47 [13:15:58]line НСП 1% : 8.85 [13:15:58]line НДС 12% : 106.24 [13:15:58]line Наличными: 0.00 [13:15:58]line Безнал.: 1000.47 [13:15:58]line Место: АЗС № 76 "Партнер Нефть" [13:15:58]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:15:58]line СНО: Общий режим [13:15:58]line Чек 71 13.07.2024 13:15 [13:15:58]line Смена: 24 ФФД: 1.0 [13:15:58]line ЗНМ: 0300000124 [13:15:58]line РНМ: 0000000000177495 [13:15:58]line Версия ККМ: 001 [13:15:58]line Платежная система: АКБ Кыргызстан [13:15:58]line ФМ: 0000000002098592 [13:15:58]line ФД: 1902 [13:15:58]line ФПД: 85853239138706 [13:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131558&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1902&fm=85853239138706&tin=02508201610067®Number=0000000000177495&sum=100047 [13:15:59]OFD Sender: Processing packet 1902 [packets to send 1, broken 0] [13:15:59]ProducePacketName [13:15:59]name=ofd_packets/00001902 [13:15:59]OFD Sender: To server: pG, [13:15:59]CommunicateWithHost lk.salyk.kg:30040 [13:15:59]ConnectInit lk.salyk.kg [13:15:59]written 0, free lines is 4095 [13:15:59]Connected sock=10 [13:15: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 0F 01 00 00 75 6F 07 01 E5 72 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 7E 92 66 0E 04 04 00 18 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 6E 07 00 00 35 04 06 00 4E 15 43 D2 59 92 FC 2A 04 F5 AB 47 B6 45 [13:15: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 49 09 47 00 10 DC 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 6E 07 00 00 F4 03 04 00 44 29 92 66 B6 04 01 00 00 6B A1 D1 92 E5 76 D3 38 [13:15:59]CommunicateWithHost err = 0 [13:15:59]CheckOFDResponse [13:15:59]1017 (14) - 77093643461234 [13:15:59]1041 (16) - 0000000002098592 [13:15:59]1040 (4) - 1902 [13:15:59]1012 (4) - 13.07.2024 07:14 [13:15:59]1206 (1) - 0 [13:15:59]OFD Sender: Remove packet 1902 [13:15:59]ProducePacketName [13:15:59]name=ofd_packets/00001902 [13:15:59]NVStorageDeleteData [13:15:59]Write to MH i2c: 01 00 00 75 0D 82 [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 07 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 07 00 75 0D 00 00 00 00 00 FB 0C 90 [13:15:59]RasterBufferAndPrint [13:15:59]line [13:15:59]line [13:15:59]line [13:15:59]line [13:15:59]line [13:15:59]written 0, free lines is 3330 [13:15:59]MH_Cut [13:15:59]Write to MH i2c: D1 01 00 7C 0D 01 5B [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: D1 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: D1 01 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: D1 01 00 7C 0D 00 5A [13:15:59]Write to MH i2c: 01 00 00 7D 0D 8A [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]OFD Sender: No OFD packet to send [13:16:00]*** Cut start [13:16:00]*** Partial cut [13:16:00]*** CUTSNS_PIN = 1 [13:16:00]*** CUTSNS_PIN = 0 [13:16:00]*** Brake cut motor [13:16:00]Read from MH i2c: 01 [13:16:00]MH_I2C_Read... [13:16:00]*** Stop cut motor [13:16:00]*** Cut end [13:16:00]Read from MH i2c: 01 07 00 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: 01 07 00 7D 0D 00 00 00 00 00 FF 0F 9F [13:16:00]process_action close_receipt done [13:16:00]requested_data is exist [13:16:00]produce_requested_data [13:16:00]requested_item fm.sn is exist - process it [13:16:00]wFMCommunicate request_size=4 [13:16:00]MH_SAM_APDU [13:16:00]CAPDU: 80 11 00 00 [13:16:00]Write to MH i2c: E2 08 00 7E 0D 80 11 00 00 00 00 00 00 05 [13:16:00]Write i2c OK [13:16:00]MH_I2C_Read... [13:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:00]Read from MH i2c: E2 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 17 00 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 17 00 7E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5B [13:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:16:00]wFMCommunicate OK [13:16:00]requested_item fd.num is exist - process it [13:16:00]SAM_PROTO_GetFieldsCounters [13:16:00]wFMCommunicate request_size=4 [13:16:00]MH_SAM_APDU [13:16:00]CAPDU: 80 13 00 00 [13:16:00]Write to MH i2c: E2 08 00 7F 0D 80 13 00 00 00 00 00 00 08 [13:16:00]Write i2c OK [13:16:00]MH_I2C_Read... [13:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:01]Read from MH i2c: E2 [13:16:01]MH_I2C_Read... [13:16:01]Read from MH i2c: E2 62 00 [13:16:01]MH_I2C_Read... [13:16:01]Read from MH i2c: E2 62 00 7F 0D 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 6E 07 00 00 0E 04 04 00 18 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 96 [13:16: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 6E 07 00 00 0E 04 04 00 18 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 [13:16:01]wFMCommunicate OK [13:16:01]SAM_PROTO_GetFieldsCounters done [13:16:01]requested_item shift.num is exist - process it [13:16:01]requested_item shift.opened is exist - process it [13:16:01]req_shift_opened [13:16:01]FM_GetShiftState [13:16:01]SAM_PROTO_GetShiftState [13:16:01]wFMCommunicate request_size=4 [13:16:01]MH_SAM_APDU [13:16:01]CAPDU: 80 13 01 00 [13:16:01]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [13:16:01]Write i2c OK [13:16:01]MH_I2C_Read... [13:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:01]Read from MH i2c: E2 [13:16:01]MH_I2C_Read... [13:16:01]Read from MH i2c: E2 0E 00 [13:16:01]MH_I2C_Read... [13:16:01]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 95 [13:16:01]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:16:01]wFMCommunicate OK [13:16:01]SAM_PROTO_GetShiftState done [13:16:01]FM_GetShiftState done [13:16:01]req_shift_opened done [13:16:01]requested_item shift.open_date is exist - process it [13:16:01]req_shift_open_date [13:16:01]req_shift_open_date done [13:16:01]produce_requested_data done [13:16:01]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1902,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:16:01]process_action_free close_receipt [13:16:01]json_value_free [13:16:01]json_value_free done [13:16:01]process_json_proto returns [13:16:01]Send response to host [13:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1902,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:16:01]free response buf [13:16:01]execute_script done [13:16:01]execute_script returns [13:16:01]free content buf [13:16:01]Sock 8.Close socket [13:16:01]Sock 8.Thread stoped [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:52]accept exits with 9 [13:26:52]New connection [13:26:52]New thread 3066834276 created [13:26:52]Thread 3066977636 joined [13:26:52]Waiting for new connection... [13:26:52] Sock 9.Parse request [13:26:52]Sock 9.Check first char [13:26:52]Sock 9.First char is OK [13:26:52]request: POST /json_proto HTTP/1.0 [13:26:52]Method: POST [13:26:52]URL: /json_proto [13:26:52]Method is POST - this is cgi request [13:26:52]url: /json_proto [13:26:52]query_string will be loaded in cgi processing [13:26:52]execute_cgi json_proto POST (null) [13:26:52]execute_cgi path=json_proto method=POST [13:26:52]POST find Content-Length [13:26:52]Host: 172.17.35.133:8080 [13:26:52]Content-Length: 897 [13:26:52]Content-Type: application/json [13:26:52] [13:26:52]POST finish read [13:26:52]Found Content-Length = 897 [13:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256326", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:52]execute_script... [13:26: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)256326", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:52]POST & json_proto [13:26:52]process_json_proto [13:26:52]json parsed OK: [13:26:52]protocol is kg_v1.0 [13:26:52]action value=close_receipt [13:26:52]process_action close_receipt [13:26:52]cmd_close_receipt [13:26:52]MH_GetDate [13:26:52]Write to MH i2c: F0 00 00 81 0D 7D [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: F0 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: F0 09 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: F0 09 00 81 0D 00 9E 80 92 66 1B 28 2A 66 6F [13:26:52]GetLastDocTimeStamp 1720876558 [13:26:52]current date 1720877214 [13:26:52]FM_GetShiftState [13:26:52]SAM_PROTO_GetShiftState [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 13 01 00 [13:26:52]Write to MH i2c: E2 08 00 82 0D 80 13 01 00 00 00 00 00 0C [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 82 0D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 97 [13:26:53]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetShiftState done [13:26:53]FM_GetShiftState done [13:26:53]opened in 1720829379 [13:26:53]opened+sec_in_day 1720915779 [13:26:53]quantity*price = 11000 [13:26:53]sum+1 = 11001 [13:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 72 13.07.2024 13:26 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1903 ФПД: 105603768386649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T132654&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1903&fm=105603768386649&tin=02508201610067®Number=0000000000177495&sum=11000 0 [13:26:54]StoreToDocumentArchive [13:26:54]shift 24 fd 1903 [13:26:54]save to /storage/0024/doc_00001903 [13:26:54]save last doc name /storage/0024/doc_00001903 to /storage/kkm_last_doc_name [13:26:54]save OK [13:26:54]Clear old archive folders... [13:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:26:54]tlvbuf is 00FEB4F0 [13:26:54]SAM_PROTO_ClearQueue [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 09 00 00 [13:26:54]Write to MH i2c: E2 08 00 8F 0D 80 09 00 00 00 00 00 00 0E [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_ClearQueue done [13:26:54]KKMCreateOFDPacket [13:26:54]OFDProtocolAddRootSTLVToBuf [13:26:54]FM_MakeSignedData [13:26:54]FM_MakeSignedData [13:26:54]SAM_PROTO_SignData [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 01 02 [13:26:54]Write to MH i2c: E2 08 00 90 0D 80 0D 01 02 00 00 00 00 16 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=255 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 48 00 00 00 F4 03 04 00 9E 80 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:26:54]Write to MH i2c: E2 02 01 91 0D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 48 00 00 00 F4 03 04 00 9E 80 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 0A [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=55 [13:26:54]MH_SAM_APDU [13:26:54]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 6F 07 00 00 35 04 06 00 60 0B CB 1A 04 59 [13:26:54]Write to MH i2c: E2 3A 00 92 0D 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 6F 07 00 00 35 04 06 00 60 0B CB 1A 04 59 00 00 A0 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 03 02 [13:26:54]Write to MH i2c: E2 08 00 93 0D 80 0D 03 02 00 00 00 00 1B [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0B 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0B 00 93 0D 00 DF BC 09 2A F1 87 0E 4F 90 00 BF [13:26:54]RAPDU: DF BC 09 2A F1 87 0E 4F 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_SignData done [13:26:54]FM_MakeSignedData done [13:26:54]CreateOFDProtocolMessage [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 11 00 00 [13:26:54]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 71 [13:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:26:54]wFMCommunicate OK [13:26:54]CreateOFDProtocolMessage done [13:26:54]OFDSenderStorePacket 1903 [13:26:54]StoreOFDPacket docnum=1903 [13:26:54]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 4F 3F 34 01 58 D3 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 48 00 00 00 F4 03 04 00 9E 80 92 66 0E 04 04 00 18 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 6F 07 00 00 35 04 06 00 60 0B CB 1A 04 59 DF BC 09 2A F1 87 0E 4F [13:26:54]CheckFolder [13:26:54]dirname=/storage/ofd_packets [13:26:54]CheckFolder done [13:26:54]ProducePacketName [13:26:54]name=ofd_packets/00001903 [13:26:54]NVStorageSaveData ofd_packets/00001903 [13:26:54]File name is /storage/ofd_packets/00001903 [13:26:54]Write 346 bytes [13:26:54]NVStorageSaveData done [13:26:54]OFDSenderStorePacket done [13:26:54]KKMCreateOFDPacket done [13:26:54]NVStorageSaveData kkm_last_timestamp [13:26:54]File name is /storage/kkm_last_timestamp [13:26:54]Write 4 bytes [13:26:54]NVStorageSaveData done [13:26:54]ExternCall_PrintAddStr [13:26:54]wPrintStart [13:26:54]Write to MH i2c: 01 00 00 95 0D A2 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 FF 0F B7 [13:26:54]RasterBufferAndPrint [13:26:54]line Счет N : (3)256326 [13:26:54]line ИНН: 02508201610067 [13:26:54]line Контрольно-Кассовый Чек [13:26:54]line ПРОДАЖА [13:26:54]line Товар: 4870202521261 [13:26:54]line Напиток MAXI чай 1,2 лесные ягоды [13:26:54]line 1.000 * 110.00 [13:26:54]line = 110.00 [13:26:54]line НДС 12% НСП 1% [13:26:54]line > о реализуемом товаре [13:26:54]line ИТОГО: 110.00 [13:26:54]line НСП 1% : 0.97 [13:26:54]line НДС 12% : 11.68 [13:26:54]line Наличными: 0.00 [13:26:54]line Безнал.: 110.00 [13:26:54]line Место: АЗС № 76 "Партнер Нефть" [13:26:54]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:26:54]line СНО: Общий режим [13:26:54]line Чек 72 13.07.2024 13:26 [13:26:54]line Смена: 24 ФФД: 1.0 [13:26:54]line ЗНМ: 0300000124 [13:26:54]line РНМ: 0000000000177495 [13:26:54]line Версия ККМ: 001 [13:26:54]line Платежная система: АКБ Кыргызстан [13:26:54]line ФМ: 0000000002098592 [13:26:54]line ФД: 1903 [13:26:54]line ФПД: 105603768386649 [13:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T132654&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1903&fm=105603768386649&tin=02508201610067®Number=0000000000177495&sum=11000 [13:26:55]line 0 [13:26:55]OFD Sender: Processing packet 1903 [packets to send 1, broken 0] [13:26:55]ProducePacketName [13:26:55]name=ofd_packets/00001903 [13:26:55]OFD Sender: To server: pG, [13:26:55]CommunicateWithHost lk.salyk.kg:30040 [13:26:55]ConnectInit lk.salyk.kg [13:26:55]written 0, free lines is 4095 [13:26:55]Connected sock=10 [13:26: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 3C 01 00 00 4F 3F 34 01 58 D3 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 48 00 00 00 F4 03 04 00 9E 80 92 66 0E 04 04 00 18 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 6F 07 00 00 35 04 06 00 60 0B CB 1A 04 59 DF BC 09 2A F1 87 0E 4F [13:26: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 22 32 47 00 9D 9D 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 6F 07 00 00 F4 03 04 00 D4 2B 92 66 B6 04 01 00 00 B6 D3 D8 3C A5 86 4B CF [13:26:55]CommunicateWithHost err = 0 [13:26:55]CheckOFDResponse [13:26:55]1017 (14) - 77093643461234 [13:26:55]1041 (16) - 0000000002098592 [13:26:55]1040 (4) - 1903 [13:26:55]1012 (4) - 13.07.2024 07:25 [13:26:55]1206 (1) - 0 [13:26:55]OFD Sender: Remove packet 1903 [13:26:55]ProducePacketName [13:26:55]name=ofd_packets/00001903 [13:26:55]NVStorageDeleteData [13:26:55]Write to MH i2c: 01 00 00 C0 0D CD [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 07 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 E5 0C C5 [13:26:55]RasterBufferAndPrint [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]written 0, free lines is 3305 [13:26:55]MH_Cut [13:26:55]Write to MH i2c: D1 01 00 C7 0D 01 A6 [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: D1 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: D1 01 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: D1 01 00 C7 0D 00 A5 [13:26:55]Write to MH i2c: 01 00 00 C8 0D D5 [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]OFD Sender: No OFD packet to send [13:26:56]*** Cut start [13:26:56]*** Partial cut [13:26:56]*** CUTSNS_PIN = 1 [13:26:56]*** CUTSNS_PIN = 0 [13:26:56]*** Brake cut motor [13:26:56]Read from MH i2c: 01 [13:26:56]MH_I2C_Read... [13:26:56]*** Stop cut motor [13:26:56]*** Cut end [13:26:56]Read from MH i2c: 01 07 00 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: 01 07 00 C8 0D 00 00 00 00 00 FF 0F EA [13:26:56]process_action close_receipt done [13:26:56]requested_data is exist [13:26:56]produce_requested_data [13:26:56]requested_item fm.sn is exist - process it [13:26:56]wFMCommunicate request_size=4 [13:26:56]MH_SAM_APDU [13:26:56]CAPDU: 80 11 00 00 [13:26:56]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [13:26:56]Write i2c OK [13:26:56]MH_I2C_Read... [13:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:56]Read from MH i2c: E2 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 17 00 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A6 [13:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:26:56]wFMCommunicate OK [13:26:56]requested_item fd.num is exist - process it [13:26:56]SAM_PROTO_GetFieldsCounters [13:26:56]wFMCommunicate request_size=4 [13:26:56]MH_SAM_APDU [13:26:56]CAPDU: 80 13 00 00 [13:26:56]Write to MH i2c: E2 08 00 CA 0D 80 13 00 00 00 00 00 00 53 [13:26:56]Write i2c OK [13:26:56]MH_I2C_Read... [13:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:57]Read from MH i2c: E2 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: E2 62 00 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: E2 62 00 CA 0D 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 6F 07 00 00 0E 04 04 00 18 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 E5 [13:26: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 6F 07 00 00 0E 04 04 00 18 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 [13:26:57]wFMCommunicate OK [13:26:57]SAM_PROTO_GetFieldsCounters done [13:26:57]requested_item shift.num is exist - process it [13:26:57]requested_item shift.opened is exist - process it [13:26:57]req_shift_opened [13:26:57]FM_GetShiftState [13:26:57]SAM_PROTO_GetShiftState [13:26:57]wFMCommunicate request_size=4 [13:26:57]MH_SAM_APDU [13:26:57]CAPDU: 80 13 01 00 [13:26:57]Write to MH i2c: E2 08 00 CB 0D 80 13 01 00 00 00 00 00 55 [13:26:57]Write i2c OK [13:26:57]MH_I2C_Read... [13:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:57]Read from MH i2c: E2 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: E2 0E 00 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: E2 0E 00 CB 0D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E0 [13:26:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:26:57]wFMCommunicate OK [13:26:57]SAM_PROTO_GetShiftState done [13:26:57]FM_GetShiftState done [13:26:57]req_shift_opened done [13:26:57]requested_item shift.open_date is exist - process it [13:26:57]req_shift_open_date [13:26:57]req_shift_open_date done [13:26:57]produce_requested_data done [13:26:57]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1903,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:26:57]process_action_free close_receipt [13:26:57]json_value_free [13:26:57]json_value_free done [13:26:57]process_json_proto returns [13:26:57]Send response to host [13:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1903,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:26:57]free response buf [13:26:57]execute_script done [13:26:57]execute_script returns [13:26:57]free content buf [13:26:57]Sock 9.Close socket [13:26:57]Sock 9.Thread stoped [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:13]accept exits with 8 [13:30:13]New connection [13:30:13]New thread 3066977636 created [13:30:13]Thread 3066834276 joined [13:30:13]Waiting for new connection... [13:30:13] Sock 8.Parse request [13:30:13]Sock 8.Check first char [13:30:13]Sock 8.First char is OK [13:30:13]request: POST /json_proto HTTP/1.0 [13:30:13]Method: POST [13:30:13]URL: /json_proto [13:30:13]Method is POST - this is cgi request [13:30:13]url: /json_proto [13:30:13]query_string will be loaded in cgi processing [13:30:13]execute_cgi json_proto POST (null) [13:30:13]execute_cgi path=json_proto method=POST [13:30:13]POST find Content-Length [13:30:13]Host: 172.17.35.133:8080 [13:30:13]Content-Length: 683 [13:30:13]Content-Type: application/json [13:30:13] [13:30:13]POST finish read [13:30:13]Found Content-Length = 683 [13:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619028", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:13]execute_script... [13:30: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 : (1)1619028", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:13]POST & json_proto [13:30:13]process_json_proto [13:30:13]json parsed OK: [13:30:13]protocol is kg_v1.0 [13:30:13]action value=close_receipt [13:30:13]process_action close_receipt [13:30:13]cmd_close_receipt [13:30:13]MH_GetDate [13:30:13]Write to MH i2c: F0 00 00 CC 0D C8 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: F0 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: F0 09 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: F0 09 00 CC 0D 00 67 81 92 66 1B 28 2A 66 84 [13:30:13]GetLastDocTimeStamp 1720877214 [13:30:13]current date 1720877415 [13:30:13]FM_GetShiftState [13:30:13]SAM_PROTO_GetShiftState [13:30:13]wFMCommunicate request_size=4 [13:30:13]MH_SAM_APDU [13:30:13]CAPDU: 80 13 01 00 [13:30:13]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:13]Read from MH i2c: E2 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 0E 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E2 [13:30:13]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:30:13]wFMCommunicate OK [13:30:13]SAM_PROTO_GetShiftState done [13:30:13]FM_GetShiftState done [13:30:13]opened in 1720829379 [13:30:13]opened+sec_in_day 1720915779 [13:30:13]quantity*price = 100046 [13:30:13]sum+1 = 100048 [13:30:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 73 13.07.2024 13:30 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1904 ФПД: 184638926674765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133015&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1904&fm=184638926674765&tin=02508201610067®Number=0000000000177495&sum=100000 [13:30:14]StoreToDocumentArchive [13:30:14]shift 24 fd 1904 [13:30:14]save to /storage/0024/doc_00001904 [13:30:14]save last doc name /storage/0024/doc_00001904 to /storage/kkm_last_doc_name [13:30:14]save OK [13:30:14]Clear old archive folders... [13:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:14]tlvbuf is 00FF9B20 [13:30:14]SAM_PROTO_ClearQueue [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 09 00 00 [13:30:14]Write to MH i2c: E2 08 00 DA 0D 80 09 00 00 00 00 00 00 59 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [13:30:14]RAPDU: 90 00 [13:30:14]wFMCommunicate OK [13:30:14]SAM_PROTO_ClearQueue done [13:30:14]KKMCreateOFDPacket [13:30:14]OFDProtocolAddRootSTLVToBuf [13:30:14]FM_MakeSignedData [13:30:14]FM_MakeSignedData [13:30:14]SAM_PROTO_SignData [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 0D 01 02 [13:30:14]Write to MH i2c: E2 08 00 DB 0D 80 0D 01 02 00 00 00 00 61 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [13:30:14]RAPDU: 90 00 [13:30:14]wFMCommunicate OK [13:30:14]wFMCommunicate request_size=255 [13:30:14]MH_SAM_APDU [13:30:14]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 67 81 92 66 0E 04 04 00 18 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 70 07 00 00 35 04 06 00 A7 [13:30:14]Write to MH i2c: E2 02 01 DC 0D 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 67 81 92 66 0E 04 04 00 18 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 70 07 00 00 35 04 06 00 A7 00 00 C5 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [13:30:14]RAPDU: 90 00 [13:30:14]wFMCommunicate OK [13:30:14]wFMCommunicate request_size=10 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 0D 02 02 05 ED 99 A2 DB 4D [13:30:14]Write to MH i2c: E2 0D 00 DD 0D 80 0D 02 02 05 00 ED 99 A2 DB 4D 00 00 BE [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [13:30:14]RAPDU: 90 00 [13:30:14]wFMCommunicate OK [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 0D 03 02 [13:30:14]Write to MH i2c: E2 08 00 DE 0D 80 0D 03 02 00 00 00 00 66 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 0B 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 0B 00 DE 0D 00 F8 96 02 20 7B 12 23 04 90 00 CB [13:30:14]RAPDU: F8 96 02 20 7B 12 23 04 90 00 [13:30:14]wFMCommunicate OK [13:30:14]SAM_PROTO_SignData done [13:30:14]FM_MakeSignedData done [13:30:14]CreateOFDProtocolMessage [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 11 00 00 [13:30:14]Write to MH i2c: E2 08 00 DF 0D 80 11 00 00 00 00 00 00 66 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 17 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 17 00 DF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BC [13:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:30:14]wFMCommunicate OK [13:30:14]CreateOFDProtocolMessage done [13:30:14]OFDSenderStorePacket 1904 [13:30:14]StoreOFDPacket docnum=1904 [13:30:14]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 93 2A 07 01 7D B3 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 67 81 92 66 0E 04 04 00 18 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 70 07 00 00 35 04 06 00 A7 ED 99 A2 DB 4D F8 96 02 20 7B 12 23 04 [13:30:14]CheckFolder [13:30:14]dirname=/storage/ofd_packets [13:30:14]CheckFolder done [13:30:14]ProducePacketName [13:30:14]name=ofd_packets/00001904 [13:30:14]NVStorageSaveData ofd_packets/00001904 [13:30:14]File name is /storage/ofd_packets/00001904 [13:30:14]Write 301 bytes [13:30:14]NVStorageSaveData done [13:30:14]OFDSenderStorePacket done [13:30:14]KKMCreateOFDPacket done [13:30:14]NVStorageSaveData kkm_last_timestamp [13:30:14]File name is /storage/kkm_last_timestamp [13:30:14]Write 4 bytes [13:30:14]NVStorageSaveData done [13:30:14]ExternCall_PrintAddStr [13:30:14]wPrintStart [13:30:14]Write to MH i2c: 01 00 00 E0 0D ED [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: 01 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: 01 07 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 FF 0F 02 [13:30:14]RasterBufferAndPrint [13:30:14]line Счет N : (1)1619028 [13:30:14]line ИНН: 02508201610067 [13:30:14]line Контрольно-Кассовый Чек [13:30:14]line ПРОДАЖА [13:30:14]line ТРК (МРК, ГНК) : 33 [13:30:14]line Товар: 2710124130 [13:30:14]line Аи-92-К-5 [13:30:14]line 15.090 * 66.30 [13:30:14]line = 1000.47 [13:30:14]line НДС 12% НСП 1% [13:30:14]line > о реализуемом товаре [13:30:14]line ОКРУГЛЕНИЕ: -0.47 [13:30:14]line ИТОГО: 1000.00 [13:30:14]line Внесено: 1000.00 [13:30:14]line СДАЧА: 0.00 [13:30:14]line НСП 1% : 8.85 [13:30:14]line НДС 12% : 106.24 [13:30:14]line Наличными: 1000.00 [13:30:14]line Безнал.: 0.00 [13:30:14]line Место: АЗС № 76 "Партнер Нефть" [13:30:14]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:30:14]line СНО: Общий режим [13:30:14]line Чек 73 13.07.2024 13:30 [13:30:14]line Смена: 24 ФФД: 1.0 [13:30:14]line ЗНМ: 0300000124 [13:30:14]line РНМ: 0000000000177495 [13:30:14]line Версия ККМ: 001 [13:30:14]line ФМ: 0000000002098592 [13:30:14]line ФД: 1904 [13:30:14]line ФПД: 184638926674765 [13:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133015&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1904&fm=184638926674765&tin=02508201610067®Number=0000000000177495&sum=100000 [13:30:15]OFD Sender: Processing packet 1904 [packets to send 1, broken 0] [13:30:15]ProducePacketName [13:30:15]name=ofd_packets/00001904 [13:30:15]OFD Sender: To server: pG, [13:30:15]CommunicateWithHost lk.salyk.kg:30040 [13:30:15]ConnectInit lk.salyk.kg [13:30:15]written 0, free lines is 4095 [13:30:15]Connected sock=9 [13:30: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 0F 01 00 00 93 2A 07 01 7D B3 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 67 81 92 66 0E 04 04 00 18 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 70 07 00 00 35 04 06 00 A7 ED 99 A2 DB 4D F8 96 02 20 7B 12 23 04 [13:30: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 A9 31 47 00 BC 9A 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 70 07 00 00 F4 03 04 00 9D 2C 92 66 B6 04 01 00 00 7B 0C 7B 0C 50 87 89 39 [13:30:15]CommunicateWithHost err = 0 [13:30:15]CheckOFDResponse [13:30:15]1017 (14) - 77093643461234 [13:30:15]1041 (16) - 0000000002098592 [13:30:15]1040 (4) - 1904 [13:30:15]1012 (4) - 13.07.2024 07:28 [13:30:15]1206 (1) - 0 [13:30:15]OFD Sender: Remove packet 1904 [13:30:15]ProducePacketName [13:30:15]name=ofd_packets/00001904 [13:30:15]NVStorageDeleteData [13:30:15]Write to MH i2c: 01 00 00 0B 0E 19 [13:30:15]Write i2c OK [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: 01 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: 01 07 00 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: 01 07 00 0B 0E 00 00 00 00 00 E5 0C 11 [13:30:15]RasterBufferAndPrint [13:30:15]line [13:30:15]line [13:30:15]line [13:30:15]line [13:30:15]line [13:30:15]written 0, free lines is 3307 [13:30:15]MH_Cut [13:30:15]Write to MH i2c: D1 01 00 12 0E 01 F2 [13:30:15]Write i2c OK [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: D1 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: D1 01 00 [13:30:15]MH_I2C_Read... [13:30:15]Read from MH i2c: D1 01 00 12 0E 00 F1 [13:30:15]Write to MH i2c: 01 00 00 13 0E 21 [13:30:15]Write i2c OK [13:30:15]MH_I2C_Read... [13:30:16]OFD Sender: No OFD packet to send [13:30:16]*** Cut start [13:30:16]*** Partial cut [13:30:16]*** CUTSNS_PIN = 1 [13:30:16]*** CUTSNS_PIN = 0 [13:30:16]*** Brake cut motor [13:30:17]Read from MH i2c: 01 [13:30:17]MH_I2C_Read... [13:30:17]*** Stop cut motor [13:30:17]*** Cut end [13:30:17]Read from MH i2c: 01 07 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: 01 07 00 13 0E 00 00 00 00 00 FF 0F 36 [13:30:17]process_action close_receipt done [13:30:17]requested_data is exist [13:30:17]produce_requested_data [13:30:17]requested_item fm.sn is exist - process it [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 11 00 00 [13:30:17]Write to MH i2c: E2 08 00 14 0E 80 11 00 00 00 00 00 00 9C [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 17 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 17 00 14 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F2 [13:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:30:17]wFMCommunicate OK [13:30:17]requested_item fd.num is exist - process it [13:30:17]SAM_PROTO_GetFieldsCounters [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 13 00 00 [13:30:17]Write to MH i2c: E2 08 00 15 0E 80 13 00 00 00 00 00 00 9F [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 62 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 62 00 15 0E 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 70 07 00 00 0E 04 04 00 18 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 35 [13:30:17]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 70 07 00 00 0E 04 04 00 18 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 [13:30:17]wFMCommunicate OK [13:30:17]SAM_PROTO_GetFieldsCounters done [13:30:17]requested_item shift.num is exist - process it [13:30:17]requested_item shift.opened is exist - process it [13:30:17]req_shift_opened [13:30:17]FM_GetShiftState [13:30:17]SAM_PROTO_GetShiftState [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 13 01 00 [13:30:17]Write to MH i2c: E2 08 00 16 0E 80 13 01 00 00 00 00 00 A1 [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:17]Read from MH i2c: E2 0E 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 0E 00 16 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 2C [13:30:17]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:30:17]wFMCommunicate OK [13:30:17]SAM_PROTO_GetShiftState done [13:30:17]FM_GetShiftState done [13:30:17]req_shift_opened done [13:30:17]requested_item shift.open_date is exist - process it [13:30:17]req_shift_open_date [13:30:17]req_shift_open_date done [13:30:17]produce_requested_data done [13:30:17]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1904,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:30:17]process_action_free close_receipt [13:30:17]json_value_free [13:30:17]json_value_free done [13:30:17]process_json_proto returns [13:30:17]Send response to host [13:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1904,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:30:17]free response buf [13:30:17]execute_script done [13:30:17]execute_script returns [13:30:17]free content buf [13:30:17]Sock 8.Close socket [13:30:17]Sock 8.Thread stoped [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]accept exits with 10 [13:33:31]New connection [13:33:31]New thread 3066834276 created [13:33:31]Thread 3066977636 joined [13:33:31]Waiting for new connection... [13:33:31] Sock 10.Parse request [13:33:31]Sock 10.Check first char [13:33:31]Sock 10.First char is OK [13:33:31]request: POST /json_proto HTTP/1.0 [13:33:31]Method: POST [13:33:31]URL: /json_proto [13:33:31]Method is POST - this is cgi request [13:33:31]url: /json_proto [13:33:31]query_string will be loaded in cgi processing [13:33:31]execute_cgi json_proto POST (null) [13:33:31]execute_cgi path=json_proto method=POST [13:33:31]POST find Content-Length [13:33:31]Host: 172.17.35.133:8080 [13:33:31]Content-Length: 844 [13:33:31]Content-Type: application/json [13:33:31] [13:33:31]POST finish read [13:33:31]Found Content-Length = 844 [13:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619029", "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" : 15.090, "sum" : 1000.47, "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" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:31]execute_script... [13:33: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 : (1)1619029", "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" : 15.090, "sum" : 1000.47, "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" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:31]POST & json_proto [13:33:31]process_json_proto [13:33:31]json parsed OK: [13:33:31]protocol is kg_v1.0 [13:33:31]action value=close_receipt [13:33:31]process_action close_receipt [13:33:31]cmd_close_receipt [13:33:31]MH_GetDate [13:33:31]Write to MH i2c: F0 00 00 17 0E 14 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: F0 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: F0 09 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: F0 09 00 17 0E 00 2C 82 92 66 1B 28 2A 66 96 [13:33:31]GetLastDocTimeStamp 1720877415 [13:33:31]current date 1720877612 [13:33:31]FM_GetShiftState [13:33:31]SAM_PROTO_GetShiftState [13:33:31]wFMCommunicate request_size=4 [13:33:31]MH_SAM_APDU [13:33:31]CAPDU: 80 13 01 00 [13:33:31]Write to MH i2c: E2 08 00 18 0E 80 13 01 00 00 00 00 00 A3 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:31]Read from MH i2c: E2 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 0E 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 0E 00 18 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 2E [13:33:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:33:31]wFMCommunicate OK [13:33:31]SAM_PROTO_GetShiftState done [13:33:31]FM_GetShiftState done [13:33:31]opened in 1720829379 [13:33:31]opened+sec_in_day 1720915779 [13:33:31]quantity*price = 100046 [13:33:31]sum+1 = 100048 [13:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 74 13.07.2024 13:33 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1905 ФПД: 212698478366375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133332&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1905&fm=212698478366375&tin=02508201610067®Number=0000000000177495&sum=100047 [13:33:32]StoreToDocumentArchive [13:33:32]shift 24 fd 1905 [13:33:32]save to /storage/0024/doc_00001905 [13:33:32]save last doc name /storage/0024/doc_00001905 to /storage/kkm_last_doc_name [13:33:32]save OK [13:33:32]Clear old archive folders... [13:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:32]tlvbuf is 00FDAC40 [13:33:32]SAM_PROTO_ClearQueue [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 09 00 00 [13:33:32]Write to MH i2c: E2 08 00 25 0E 80 09 00 00 00 00 00 00 A5 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]SAM_PROTO_ClearQueue done [13:33:32]KKMCreateOFDPacket [13:33:32]OFDProtocolAddRootSTLVToBuf [13:33:32]FM_MakeSignedData [13:33:32]FM_MakeSignedData [13:33:32]SAM_PROTO_SignData [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 01 02 [13:33:32]Write to MH i2c: E2 08 00 26 0E 80 0D 01 02 00 00 00 00 AD [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=255 [13:33:32]MH_SAM_APDU [13:33:32]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2C 82 92 66 0E 04 04 00 18 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 71 07 00 00 35 04 06 00 C1 [13:33:32]Write to MH i2c: E2 02 01 27 0E 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2C 82 92 66 0E 04 04 00 18 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 71 07 00 00 35 04 06 00 C1 00 00 51 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=10 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 02 02 05 72 B9 3F 4E A7 [13:33:32]Write to MH i2c: E2 0D 00 28 0E 80 0D 02 02 05 00 72 B9 3F 4E A7 00 00 19 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 03 02 [13:33:32]Write to MH i2c: E2 08 00 29 0E 80 0D 03 02 00 00 00 00 B2 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0B 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0B 00 29 0E 00 DA 19 08 A7 E7 58 90 28 90 00 4C [13:33:32]RAPDU: DA 19 08 A7 E7 58 90 28 90 00 [13:33:32]wFMCommunicate OK [13:33:32]SAM_PROTO_SignData done [13:33:32]FM_MakeSignedData done [13:33:32]CreateOFDProtocolMessage [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 11 00 00 [13:33:32]Write to MH i2c: E2 08 00 2A 0E 80 11 00 00 00 00 00 00 B2 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 17 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 17 00 2A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 08 [13: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 [13:33:32]wFMCommunicate OK [13:33:32]CreateOFDProtocolMessage done [13:33:32]OFDSenderStorePacket 1905 [13:33:32]StoreOFDPacket docnum=1905 [13:33: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 0F 01 00 00 EF D7 07 01 0B 96 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2C 82 92 66 0E 04 04 00 18 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 71 07 00 00 35 04 06 00 C1 72 B9 3F 4E A7 DA 19 08 A7 E7 58 90 28 [13:33:32]CheckFolder [13:33:32]dirname=/storage/ofd_packets [13:33:32]CheckFolder done [13:33:32]ProducePacketName [13:33:32]name=ofd_packets/00001905 [13:33:32]NVStorageSaveData ofd_packets/00001905 [13:33:32]File name is /storage/ofd_packets/00001905 [13:33:32]Write 301 bytes [13:33:32]NVStorageSaveData done [13:33:32]OFDSenderStorePacket done [13:33:32]KKMCreateOFDPacket done [13:33:32]NVStorageSaveData kkm_last_timestamp [13:33:32]File name is /storage/kkm_last_timestamp [13:33:32]Write 4 bytes [13:33:32]NVStorageSaveData done [13:33:32]ExternCall_PrintAddStr [13:33:32]wPrintStart [13:33:32]Write to MH i2c: 01 00 00 2B 0E 39 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 FF 0F 4E [13:33:32]RasterBufferAndPrint [13:33:32]line Счет N : (1)1619029 [13:33:32]line ИНН: 02508201610067 [13:33:32]line Контрольно-Кассовый Чек [13:33:32]line ПРОДАЖА [13:33:32]line ТРК (МРК, ГНК) : 43 [13:33:32]line Товар: 2710124130 [13:33:32]line Аи-92-К-5 [13:33:32]line 15.090 * 66.30 [13:33:32]line = 1000.47 [13:33:32]line НДС 12% НСП 1% [13:33:32]line > о реализуемом товаре [13:33:32]line ИТОГО: 1000.47 [13:33:32]line НСП 1% : 8.85 [13:33:32]line НДС 12% : 106.24 [13:33:32]line Наличными: 0.00 [13:33:32]line Безнал.: 1000.47 [13:33:32]line Место: АЗС № 76 "Партнер Нефть" [13:33:32]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:33:32]line СНО: Общий режим [13:33:32]line Чек 74 13.07.2024 13:33 [13:33:32]line Смена: 24 ФФД: 1.0 [13:33:32]line ЗНМ: 0300000124 [13:33:32]line РНМ: 0000000000177495 [13:33:32]line Версия ККМ: 001 [13:33:32]line Платежная система: АКБ Кыргызстан [13:33:32]line ФМ: 0000000002098592 [13:33:32]line ФД: 1905 [13:33:32]line ФПД: 212698478366375 [13:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133332&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1905&fm=212698478366375&tin=02508201610067®Number=0000000000177495&sum=100047 [13:33:33]OFD Sender: Processing packet 1905 [packets to send 1, broken 0] [13:33:33]ProducePacketName [13:33:33]name=ofd_packets/00001905 [13:33:33]OFD Sender: To server: pG, [13:33:33]CommunicateWithHost lk.salyk.kg:30040 [13:33:33]ConnectInit lk.salyk.kg [13:33:33]written 0, free lines is 4095 [13:33:33]Connected sock=9 [13:33:33]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 EF D7 07 01 0B 96 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 2C 82 92 66 0E 04 04 00 18 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 71 07 00 00 35 04 06 00 C1 72 B9 3F 4E A7 DA 19 08 A7 E7 58 90 28 [13:33:33]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 B4 FD 47 00 77 B4 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 71 07 00 00 F4 03 04 00 62 2D 92 66 B6 04 01 00 00 9F 3F 3B BF 2F 9F AD C0 [13:33:33]CommunicateWithHost err = 0 [13:33:33]CheckOFDResponse [13:33:33]1017 (14) - 77093643461234 [13:33:33]1041 (16) - 0000000002098592 [13:33:33]1040 (4) - 1905 [13:33:33]1012 (4) - 13.07.2024 07:31 [13:33:33]1206 (1) - 0 [13:33:33]OFD Sender: Remove packet 1905 [13:33:33]ProducePacketName [13:33:33]name=ofd_packets/00001905 [13:33:33]NVStorageDeleteData [13:33:33]Write to MH i2c: 01 00 00 55 0E 63 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 F7 0C 6D [13:33:33]RasterBufferAndPrint [13:33:33]line [13:33:33]line [13:33:33]line [13:33:33]line [13:33:33]line [13:33:33]written 0, free lines is 3326 [13:33:33]MH_Cut [13:33:33]Write to MH i2c: D1 01 00 5C 0E 01 3C [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: D1 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: D1 01 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: D1 01 00 5C 0E 00 3B [13:33:33]Write to MH i2c: 01 00 00 5D 0E 6B [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]OFD Sender: No OFD packet to send [13:33:34]*** Cut start [13:33:34]*** Partial cut [13:33:34]*** CUTSNS_PIN = 1 [13:33:34]*** CUTSNS_PIN = 0 [13:33:34]*** Brake cut motor [13:33:34]Read from MH i2c: 01 [13:33:34]MH_I2C_Read... [13:33:34]*** Stop cut motor [13:33:34]*** Cut end [13:33:34]Read from MH i2c: 01 07 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [13:33:34]process_action close_receipt done [13:33:34]requested_data is exist [13:33:34]produce_requested_data [13:33:34]requested_item fm.sn is exist - process it [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 11 00 00 [13:33:34]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:35]Read from MH i2c: E2 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 17 00 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3C [13:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:33:35]wFMCommunicate OK [13:33:35]requested_item fd.num is exist - process it [13:33:35]SAM_PROTO_GetFieldsCounters [13:33:35]wFMCommunicate request_size=4 [13:33:35]MH_SAM_APDU [13:33:35]CAPDU: 80 13 00 00 [13:33:35]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [13:33:35]Write i2c OK [13:33:35]MH_I2C_Read... [13:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:35]Read from MH i2c: E2 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 62 00 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 62 00 5F 0E 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 71 07 00 00 0E 04 04 00 18 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 83 [13:33: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 71 07 00 00 0E 04 04 00 18 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 [13:33:35]wFMCommunicate OK [13:33:35]SAM_PROTO_GetFieldsCounters done [13:33:35]requested_item shift.num is exist - process it [13:33:35]requested_item shift.opened is exist - process it [13:33:35]req_shift_opened [13:33:35]FM_GetShiftState [13:33:35]SAM_PROTO_GetShiftState [13:33:35]wFMCommunicate request_size=4 [13:33:35]MH_SAM_APDU [13:33:35]CAPDU: 80 13 01 00 [13:33:35]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [13:33:35]Write i2c OK [13:33:35]MH_I2C_Read... [13:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:35]Read from MH i2c: E2 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 0E 00 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 76 [13:33:35]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:33:35]wFMCommunicate OK [13:33:35]SAM_PROTO_GetShiftState done [13:33:35]FM_GetShiftState done [13:33:35]req_shift_opened done [13:33:35]requested_item shift.open_date is exist - process it [13:33:35]req_shift_open_date [13:33:35]req_shift_open_date done [13:33:35]produce_requested_data done [13:33:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1905,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:33:35]process_action_free close_receipt [13:33:35]json_value_free [13:33:35]json_value_free done [13:33:35]process_json_proto returns [13:33:35]Send response to host [13:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1905,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:33:35]free response buf [13:33:35]execute_script done [13:33:35]execute_script returns [13:33:35]free content buf [13:33:35]Sock 10.Close socket [13:33:35]Sock 10.Thread stoped [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:20]accept exits with 8 [13:39:20]New connection [13:39:20]New thread 3066977636 created [13:39:20]Thread 3066834276 joined [13:39:20]Waiting for new connection... [13:39:20] Sock 8.Parse request [13:39:20]Sock 8.Check first char [13:39:20]Sock 8.First char is OK [13:39:20]request: POST /json_proto HTTP/1.0 [13:39:20]Method: POST [13:39:20]URL: /json_proto [13:39:20]Method is POST - this is cgi request [13:39:20]url: /json_proto [13:39:20]query_string will be loaded in cgi processing [13:39:20]execute_cgi json_proto POST (null) [13:39:20]execute_cgi path=json_proto method=POST [13:39:20]POST find Content-Length [13:39:20]Host: 172.17.35.133:8080 [13:39:20]Content-Length: 678 [13:39:20]Content-Type: application/json [13:39:20] [13:39:20]POST finish read [13:39:20]Found Content-Length = 678 [13:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619030", "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" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:20]execute_script... [13:39: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 : (1)1619030", "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" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:20]POST & json_proto [13:39:20]process_json_proto [13:39:20]json parsed OK: [13:39:20]protocol is kg_v1.0 [13:39:20]action value=close_receipt [13:39:20]process_action close_receipt [13:39:20]cmd_close_receipt [13:39:20]MH_GetDate [13:39:20]Write to MH i2c: F0 00 00 61 0E 5E [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: F0 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: F0 09 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: F0 09 00 61 0E 00 8A 83 92 66 1B 28 2A 66 3F [13:39:20]GetLastDocTimeStamp 1720877612 [13:39:20]current date 1720877962 [13:39:20]FM_GetShiftState [13:39:20]SAM_PROTO_GetShiftState [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 13 01 00 [13:39:20]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:20]Read from MH i2c: E2 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 0E 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 78 [13:39:20]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:39:20]wFMCommunicate OK [13:39:20]SAM_PROTO_GetShiftState done [13:39:20]FM_GetShiftState done [13:39:20]opened in 1720829379 [13:39:20]opened+sec_in_day 1720915779 [13:39:20]quantity*price = 40045 [13:39:20]sum+1 = 40046 [13:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 75 13.07.2024 13:39 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1906 ФПД: 58947551461512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133922&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1906&fm=58947551461512&tin=02508201610067®Number=0000000000177495&sum=40000 [13:39:21]StoreToDocumentArchive [13:39:21]shift 24 fd 1906 [13:39:21]save to /storage/0024/doc_00001906 [13:39:21]save last doc name /storage/0024/doc_00001906 to /storage/kkm_last_doc_name [13:39:21]save OK [13:39:21]Clear old archive folders... [13:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:21]tlvbuf is 01033B90 [13:39:21]SAM_PROTO_ClearQueue [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 09 00 00 [13:39:21]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_ClearQueue done [13:39:21]KKMCreateOFDPacket [13:39:21]OFDProtocolAddRootSTLVToBuf [13:39:21]FM_MakeSignedData [13:39:21]FM_MakeSignedData [13:39:21]SAM_PROTO_SignData [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 01 02 [13:39:21]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=255 [13:39:21]MH_SAM_APDU [13:39:21]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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 8A 83 92 66 0E 04 04 00 18 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 72 07 00 00 35 04 06 00 35 [13:39:21]Write to MH i2c: E2 02 01 71 0E 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 8A 83 92 66 0E 04 04 00 18 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 72 07 00 00 35 04 06 00 35 00 00 A1 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=10 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 02 02 05 9C CB DD 80 88 [13:39:21]Write to MH i2c: E2 0D 00 72 0E 80 0D 02 02 05 00 9C CB DD 80 88 00 00 50 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 03 02 [13:39:21]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0B 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0B 00 73 0E 00 B5 75 4C CD F9 9B CA 94 90 00 32 [13:39:21]RAPDU: B5 75 4C CD F9 9B CA 94 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_SignData done [13:39:21]FM_MakeSignedData done [13:39:21]CreateOFDProtocolMessage [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 11 00 00 [13:39:21]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 52 [13:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:39:21]wFMCommunicate OK [13:39:21]CreateOFDProtocolMessage done [13:39:21]OFDSenderStorePacket 1906 [13:39:21]StoreOFDPacket docnum=1906 [13:39: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 0F 01 00 00 8B 6E 07 01 4E C2 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 8A 83 92 66 0E 04 04 00 18 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 72 07 00 00 35 04 06 00 35 9C CB DD 80 88 B5 75 4C CD F9 9B CA 94 [13:39:21]CheckFolder [13:39:21]dirname=/storage/ofd_packets [13:39:21]CheckFolder done [13:39:21]ProducePacketName [13:39:21]name=ofd_packets/00001906 [13:39:21]NVStorageSaveData ofd_packets/00001906 [13:39:21]File name is /storage/ofd_packets/00001906 [13:39:21]Write 301 bytes [13:39:21]NVStorageSaveData done [13:39:21]OFDSenderStorePacket done [13:39:21]KKMCreateOFDPacket done [13:39:21]NVStorageSaveData kkm_last_timestamp [13:39:21]File name is /storage/kkm_last_timestamp [13:39:21]Write 4 bytes [13:39:21]NVStorageSaveData done [13:39:21]ExternCall_PrintAddStr [13:39:21]wPrintStart [13:39:21]Write to MH i2c: 01 00 00 75 0E 83 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [13:39:21]RasterBufferAndPrint [13:39:21]line Счет N : (1)1619030 [13:39:21]line ИНН: 02508201610067 [13:39:21]line Контрольно-Кассовый Чек [13:39:21]line ПРОДАЖА [13:39:21]line ТРК (МРК, ГНК) : 33 [13:39:21]line Товар: 2710124130 [13:39:21]line Аи-92-К-5 [13:39:21]line 6.040 * 66.30 [13:39:21]line = 400.45 [13:39:21]line НДС 12% НСП 1% [13:39:21]line > о реализуемом товаре [13:39:21]line ОКРУГЛЕНИЕ: -0.45 [13:39:21]line ИТОГО: 400.00 [13:39:21]line Внесено: 400.00 [13:39:21]line СДАЧА: 0.00 [13:39:21]line НСП 1% : 3.54 [13:39:21]line НДС 12% : 42.53 [13:39:21]line Наличными: 400.00 [13:39:21]line Безнал.: 0.00 [13:39:21]line Место: АЗС № 76 "Партнер Нефть" [13:39:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:39:21]line СНО: Общий режим [13:39:21]line Чек 75 13.07.2024 13:39 [13:39:21]line Смена: 24 ФФД: 1.0 [13:39:21]line ЗНМ: 0300000124 [13:39:21]line РНМ: 0000000000177495 [13:39:21]line Версия ККМ: 001 [13:39:21]line ФМ: 0000000002098592 [13:39:22]line ФД: 1906 [13:39:22]line ФПД: 58947551461512 [13:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133922&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1906&fm=58947551461512&tin=02508201610067®Number=0000000000177495&sum=40000 [13:39:22]OFD Sender: Processing packet 1906 [packets to send 1, broken 0] [13:39:22]ProducePacketName [13:39:22]name=ofd_packets/00001906 [13:39:22]OFD Sender: To server: pG, [13:39:22]CommunicateWithHost lk.salyk.kg:30040 [13:39:22]ConnectInit lk.salyk.kg [13:39:22]written 0, free lines is 4095 [13:39:22]Connected sock=10 [13:39: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 0F 01 00 00 8B 6E 07 01 4E C2 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 8A 83 92 66 0E 04 04 00 18 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 72 07 00 00 35 04 06 00 35 9C CB DD 80 88 B5 75 4C CD F9 9B CA 94 [13:39: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 AB EE 47 00 65 35 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 72 07 00 00 F4 03 04 00 C0 2E 92 66 B6 04 01 00 00 8D 1A F8 B4 B6 D5 E5 0C [13:39:22]CommunicateWithHost err = 0 [13:39:22]CheckOFDResponse [13:39:22]1017 (14) - 77093643461234 [13:39:22]1041 (16) - 0000000002098592 [13:39:22]1040 (4) - 1906 [13:39:22]1012 (4) - 13.07.2024 07:37 [13:39:22]1206 (1) - 0 [13:39:22]OFD Sender: Remove packet 1906 [13:39:22]ProducePacketName [13:39:22]name=ofd_packets/00001906 [13:39:22]NVStorageDeleteData [13:39:22]Write to MH i2c: 01 00 00 A0 0E AE [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 07 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 07 00 A0 0E 00 00 00 00 00 DD 0C 9E [13:39:22]RasterBufferAndPrint [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]written 0, free lines is 3299 [13:39:22]MH_Cut [13:39:22]Write to MH i2c: D1 01 00 A7 0E 01 87 [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: D1 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: D1 01 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: D1 01 00 A7 0E 00 86 [13:39:22]Write to MH i2c: 01 00 00 A8 0E B6 [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:23]OFD Sender: No OFD packet to send [13:39:23]*** Cut start [13:39:23]*** Partial cut [13:39:23]*** CUTSNS_PIN = 1 [13:39:23]*** CUTSNS_PIN = 0 [13:39:23]*** Brake cut motor [13:39:24]Read from MH i2c: 01 [13:39:24]MH_I2C_Read... [13:39:24]*** Stop cut motor [13:39:24]*** Cut end [13:39:24]Read from MH i2c: 01 07 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: 01 07 00 A8 0E 00 00 00 00 00 FF 0F CB [13:39:24]process_action close_receipt done [13:39:24]requested_data is exist [13:39:24]produce_requested_data [13:39:24]requested_item fm.sn is exist - process it [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 11 00 00 [13:39:24]Write to MH i2c: E2 08 00 A9 0E 80 11 00 00 00 00 00 00 31 [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 17 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 17 00 A9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 87 [13:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:39:24]wFMCommunicate OK [13:39:24]requested_item fd.num is exist - process it [13:39:24]SAM_PROTO_GetFieldsCounters [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 13 00 00 [13:39:24]Write to MH i2c: E2 08 00 AA 0E 80 13 00 00 00 00 00 00 34 [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 62 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 62 00 AA 0E 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 72 07 00 00 0E 04 04 00 18 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 D2 [13:39: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 72 07 00 00 0E 04 04 00 18 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 [13:39:24]wFMCommunicate OK [13:39:24]SAM_PROTO_GetFieldsCounters done [13:39:24]requested_item shift.num is exist - process it [13:39:24]requested_item shift.opened is exist - process it [13:39:24]req_shift_opened [13:39:24]FM_GetShiftState [13:39:24]SAM_PROTO_GetShiftState [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 13 01 00 [13:39:24]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 0E 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C1 [13:39:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:39:24]wFMCommunicate OK [13:39:24]SAM_PROTO_GetShiftState done [13:39:24]FM_GetShiftState done [13:39:24]req_shift_opened done [13:39:24]requested_item shift.open_date is exist - process it [13:39:24]req_shift_open_date [13:39:24]req_shift_open_date done [13:39:24]produce_requested_data done [13:39:24]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1906,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:39:24]process_action_free close_receipt [13:39:24]json_value_free [13:39:24]json_value_free done [13:39:24]process_json_proto returns [13:39:24]Send response to host [13:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1906,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:39:24]free response buf [13:39:24]execute_script done [13:39:24]execute_script returns [13:39:24]free content buf [13:39:24]Sock 8.Close socket [13:39:24]Sock 8.Thread stoped [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:30]accept exits with 9 [13:54:30]New connection [13:54:30]New thread 3066834276 created [13:54:30]Thread 3066977636 joined [13:54:30]Waiting for new connection... [13:54:30] Sock 9.Parse request [13:54:30]Sock 9.Check first char [13:54:30]Sock 9.First char is OK [13:54:30]request: POST /json_proto HTTP/1.0 [13:54:30]Method: POST [13:54:30]URL: /json_proto [13:54:30]Method is POST - this is cgi request [13:54:30]url: /json_proto [13:54:30]query_string will be loaded in cgi processing [13:54:30]execute_cgi json_proto POST (null) [13:54:30]execute_cgi path=json_proto method=POST [13:54:30]POST find Content-Length [13:54:30]Host: 172.17.35.133:8080 [13:54:30]Content-Length: 658 [13:54:30]Content-Type: application/json [13:54:30] [13:54:30]POST finish read [13:54:30]Found Content-Length = 658 [13:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256327", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:30]execute_script... [13:54:30]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)256327", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:30]POST & json_proto [13:54:30]process_json_proto [13:54:30]json parsed OK: [13:54:30]protocol is kg_v1.0 [13:54:30]action value=close_receipt [13:54:30]process_action close_receipt [13:54:30]cmd_close_receipt [13:54:30]MH_GetDate [13:54:30]Write to MH i2c: F0 00 00 AC 0E A9 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: F0 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: F0 09 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: F0 09 00 AC 0E 00 18 87 92 66 1B 28 2A 66 1C [13:54:30]GetLastDocTimeStamp 1720877962 [13:54:30]current date 1720878872 [13:54:30]FM_GetShiftState [13:54:30]SAM_PROTO_GetShiftState [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 13 01 00 [13:54:30]Write to MH i2c: E2 08 00 AD 0E 80 13 01 00 00 00 00 00 38 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0E 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0E 00 AD 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C3 [13:54:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:54:31]wFMCommunicate OK [13:54:31]SAM_PROTO_GetShiftState done [13:54:31]FM_GetShiftState done [13:54:31]opened in 1720829379 [13:54:31]opened+sec_in_day 1720915779 [13:54:31]quantity*price = 20500 [13:54:31]sum+1 = 20501 [13:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 76 13.07.2024 13:54 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1907 ФПД: 153578043378252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135432&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1907&fm=153578043378252&tin=02508201610067®Number=0000000000177495&sum=20500 0 [13:54:32]StoreToDocumentArchive [13:54:32]shift 24 fd 1907 [13:54:32]save to /storage/0024/doc_00001907 [13:54:32]save last doc name /storage/0024/doc_00001907 to /storage/kkm_last_doc_name [13:54:32]save OK [13:54:32]Clear old archive folders... [13:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:54:32]tlvbuf is 00FD9FA0 [13:54:32]SAM_PROTO_ClearQueue [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 09 00 00 [13:54:32]Write to MH i2c: E2 08 00 BA 0E 80 09 00 00 00 00 00 00 3A [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [13:54:32]RAPDU: 90 00 [13:54:32]wFMCommunicate OK [13:54:32]SAM_PROTO_ClearQueue done [13:54:32]KKMCreateOFDPacket [13:54:32]OFDProtocolAddRootSTLVToBuf [13:54:32]FM_MakeSignedData [13:54:32]FM_MakeSignedData [13:54:32]SAM_PROTO_SignData [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 0D 01 02 [13:54:32]Write to MH i2c: E2 08 00 BB 0E 80 0D 01 02 00 00 00 00 42 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [13:54:32]RAPDU: 90 00 [13:54:32]wFMCommunicate OK [13:54:32]wFMCommunicate request_size=255 [13:54:32]MH_SAM_APDU [13:54:32]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 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 18 87 92 66 0E 04 04 00 18 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 [13:54:32]Write to MH i2c: E2 02 01 BC 0E 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 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 18 87 92 66 0E 04 04 00 18 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 09 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [13:54:32]RAPDU: 90 00 [13:54:32]wFMCommunicate OK [13:54:32]wFMCommunicate request_size=37 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 73 07 00 00 35 04 06 00 8B AD AC B8 8A 4C [13:54:32]Write to MH i2c: E2 28 00 BD 0E 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 73 07 00 00 35 04 06 00 8B AD AC B8 8A 4C 00 00 8B [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [13:54:32]RAPDU: 90 00 [13:54:32]wFMCommunicate OK [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 0D 03 02 [13:54:32]Write to MH i2c: E2 08 00 BE 0E 80 0D 03 02 00 00 00 00 47 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 0B 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 0B 00 BE 0E 00 8B 02 86 6B E8 3B B7 42 90 00 E2 [13:54:32]RAPDU: 8B 02 86 6B E8 3B B7 42 90 00 [13:54:32]wFMCommunicate OK [13:54:32]SAM_PROTO_SignData done [13:54:32]FM_MakeSignedData done [13:54:32]CreateOFDProtocolMessage [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 11 00 00 [13:54:32]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 17 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9D [13:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:54:32]wFMCommunicate OK [13:54:32]CreateOFDProtocolMessage done [13:54:32]OFDSenderStorePacket 1907 [13:54:32]StoreOFDPacket docnum=1907 [13:54: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 2A 01 00 00 44 BB 22 01 01 04 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 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 18 87 92 66 0E 04 04 00 18 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 73 07 00 00 35 04 06 00 8B AD AC B8 8A 4C 8B 02 86 6B E8 3B B7 42 [13:54:32]CheckFolder [13:54:32]dirname=/storage/ofd_packets [13:54:32]CheckFolder done [13:54:32]ProducePacketName [13:54:32]name=ofd_packets/00001907 [13:54:32]NVStorageSaveData ofd_packets/00001907 [13:54:32]File name is /storage/ofd_packets/00001907 [13:54:32]Write 328 bytes [13:54:32]NVStorageSaveData done [13:54:32]OFDSenderStorePacket done [13:54:32]KKMCreateOFDPacket done [13:54:32]NVStorageSaveData kkm_last_timestamp [13:54:32]File name is /storage/kkm_last_timestamp [13:54:32]Write 4 bytes [13:54:32]NVStorageSaveData done [13:54:32]ExternCall_PrintAddStr [13:54:32]wPrintStart [13:54:32]Write to MH i2c: 01 00 00 C0 0E CE [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 C0 0E 00 00 00 00 00 FF 0F E3 [13:54:32]RasterBufferAndPrint [13:54:32]line Счет N : (3)256327 [13:54:32]line ИНН: 02508201610067 [13:54:32]line Контрольно-Кассовый Чек [13:54:32]line ПРОДАЖА [13:54:32]line Товар: 5449000000286 [13:54:32]line Напиток Кока-Кола 2л [13:54:32]line 1.000 * 205.00 [13:54:32]line = 205.00 [13:54:32]line НДС 12% НСП 1% [13:54:32]line > о реализуемом товаре [13:54:32]line ИТОГО: 205.00 [13:54:32]line НСП 1% : 1.81 [13:54:32]line НДС 12% : 21.77 [13:54:32]line Наличными: 205.00 [13:54:32]line Безнал.: 0.00 [13:54:32]line Место: АЗС № 76 "Партнер Нефть" [13:54:32]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [13:54:32]line СНО: Общий режим [13:54:32]line Чек 76 13.07.2024 13:54 [13:54:32]line Смена: 24 ФФД: 1.0 [13:54:32]line ЗНМ: 0300000124 [13:54:32]line РНМ: 0000000000177495 [13:54:32]line Версия ККМ: 001 [13:54:32]line ФМ: 0000000002098592 [13:54:32]line ФД: 1907 [13:54:32]line ФПД: 153578043378252 [13:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135432&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1907&fm=153578043378252&tin=02508201610067®Number=0000000000177495&sum=20500 [13:54:33]line 0 [13:54:33]OFD Sender: Processing packet 1907 [packets to send 1, broken 0] [13:54:33]ProducePacketName [13:54:33]name=ofd_packets/00001907 [13:54:33]OFD Sender: To server: pG, [13:54:33]CommunicateWithHost lk.salyk.kg:30040 [13:54:33]ConnectInit lk.salyk.kg [13:54:33]written 0, free lines is 4095 [13:54:33]Connected sock=10 [13:54:33]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 44 BB 22 01 01 04 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 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 18 87 92 66 0E 04 04 00 18 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 73 07 00 00 35 04 06 00 8B AD AC B8 8A 4C 8B 02 86 6B E8 3B B7 42 [13:54:33]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 34 71 47 00 65 1E 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 73 07 00 00 F4 03 04 00 4E 32 92 66 B6 04 01 00 00 64 E4 67 3F D3 0F CE AD [13:54:33]CommunicateWithHost err = 0 [13:54:33]CheckOFDResponse [13:54:33]1017 (14) - 77093643461234 [13:54:33]1041 (16) - 0000000002098592 [13:54:33]1040 (4) - 1907 [13:54:33]1012 (4) - 13.07.2024 07:52 [13:54:33]1206 (1) - 0 [13:54:33]OFD Sender: Remove packet 1907 [13:54:33]ProducePacketName [13:54:33]name=ofd_packets/00001907 [13:54:33]NVStorageDeleteData [13:54:33]Write to MH i2c: 01 00 00 E8 0E F6 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 E8 0E 00 00 00 00 00 14 0D 1E [13:54:33]RasterBufferAndPrint [13:54:33]line [13:54:33]line [13:54:33]line [13:54:33]line [13:54:33]line [13:54:33]written 0, free lines is 3357 [13:54:33]MH_Cut [13:54:33]Write to MH i2c: D1 01 00 EF 0E 01 CF [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: D1 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: D1 01 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: D1 01 00 EF 0E 00 CE [13:54:33]Write to MH i2c: 01 00 00 F0 0E FE [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]OFD Sender: No OFD packet to send [13:54:34]*** Cut start [13:54:34]*** Partial cut [13:54:34]*** CUTSNS_PIN = 1 [13:54:34]*** CUTSNS_PIN = 0 [13:54:34]*** Brake cut motor [13:54:34]Read from MH i2c: 01 [13:54:34]MH_I2C_Read... [13:54:34]*** Stop cut motor [13:54:34]*** Cut end [13:54:34]Read from MH i2c: 01 07 00 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 FF 0F 13 [13:54:34]process_action close_receipt done [13:54:34]requested_data is exist [13:54:34]produce_requested_data [13:54:34]requested_item fm.sn is exist - process it [13:54:34]wFMCommunicate request_size=4 [13:54:34]MH_SAM_APDU [13:54:34]CAPDU: 80 11 00 00 [13:54:34]Write to MH i2c: E2 08 00 F1 0E 80 11 00 00 00 00 00 00 79 [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:34]Read from MH i2c: E2 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: E2 17 00 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: E2 17 00 F1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CF [13:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [13:54:34]wFMCommunicate OK [13:54:34]requested_item fd.num is exist - process it [13:54:34]SAM_PROTO_GetFieldsCounters [13:54:34]wFMCommunicate request_size=4 [13:54:34]MH_SAM_APDU [13:54:34]CAPDU: 80 13 00 00 [13:54:34]Write to MH i2c: E2 08 00 F2 0E 80 13 00 00 00 00 00 00 7C [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:35]Read from MH i2c: E2 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 62 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 62 00 F2 0E 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 73 07 00 00 0E 04 04 00 18 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 1E [13:54: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 73 07 00 00 0E 04 04 00 18 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 [13:54:35]wFMCommunicate OK [13:54:35]SAM_PROTO_GetFieldsCounters done [13:54:35]requested_item shift.num is exist - process it [13:54:35]requested_item shift.opened is exist - process it [13:54:35]req_shift_opened [13:54:35]FM_GetShiftState [13:54:35]SAM_PROTO_GetShiftState [13:54:35]wFMCommunicate request_size=4 [13:54:35]MH_SAM_APDU [13:54:35]CAPDU: 80 13 01 00 [13:54:35]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [13:54:35]Write i2c OK [13:54:35]MH_I2C_Read... [13:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:35]Read from MH i2c: E2 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 0E 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 09 [13:54:35]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [13:54:35]wFMCommunicate OK [13:54:35]SAM_PROTO_GetShiftState done [13:54:35]FM_GetShiftState done [13:54:35]req_shift_opened done [13:54:35]requested_item shift.open_date is exist - process it [13:54:35]req_shift_open_date [13:54:35]req_shift_open_date done [13:54:35]produce_requested_data done [13:54:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1907,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [13:54:35]process_action_free close_receipt [13:54:35]json_value_free [13:54:35]json_value_free done [13:54:35]process_json_proto returns [13:54:35]Send response to host [13:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1907,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [13:54:35]free response buf [13:54:35]execute_script done [13:54:35]execute_script returns [13:54:35]free content buf [13:54:35]Sock 9.Close socket [13:54:35]Sock 9.Thread stoped [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:21]accept exits with 8 [14:00:21]New connection [14:00:21]New thread 3066977636 created [14:00:21]Thread 3066834276 joined [14:00:21]Waiting for new connection... [14:00:21] Sock 8.Parse request [14:00:21]Sock 8.Check first char [14:00:21]Sock 8.First char is OK [14:00:21]request: POST /json_proto HTTP/1.0 [14:00:21]Method: POST [14:00:21]URL: /json_proto [14:00:21]Method is POST - this is cgi request [14:00:21]url: /json_proto [14:00:21]query_string will be loaded in cgi processing [14:00:21]execute_cgi json_proto POST (null) [14:00:21]execute_cgi path=json_proto method=POST [14:00:21]POST find Content-Length [14:00:21]Host: 172.17.35.133:8080 [14:00:21]Content-Length: 655 [14:00:21]Content-Type: application/json [14:00:21] [14:00:21]POST finish read [14:00:21]Found Content-Length = 655 [14:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256328", "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 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:21]execute_script... [14:00:21]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)256328", "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 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:21]POST & json_proto [14:00:21]process_json_proto [14:00:21]json parsed OK: [14:00:21]protocol is kg_v1.0 [14:00:21]action value=close_receipt [14:00:21]process_action close_receipt [14:00:21]cmd_close_receipt [14:00:21]MH_GetDate [14:00:21]Write to MH i2c: F0 00 00 F4 0E F1 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: F0 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: F0 09 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: F0 09 00 F4 0E 00 76 88 92 66 1B 28 2A 66 C3 [14:00:21]GetLastDocTimeStamp 1720878872 [14:00:21]current date 1720879222 [14:00:21]FM_GetShiftState [14:00:21]SAM_PROTO_GetShiftState [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 01 00 [14:00:21]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0B [14:00:21]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetShiftState done [14:00:21]FM_GetShiftState done [14:00:21]opened in 1720829379 [14:00:21]opened+sec_in_day 1720915779 [14:00:21]quantity*price = 8500 [14:00:21]sum+1 = 8501 [14:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 77 13.07.2024 14:00 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1908 ФПД: 172921958002603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140022&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1908&fm=172921958002603&tin=02508201610067®Number=0000000000177495&sum=8500 0 [14:00:22]StoreToDocumentArchive [14:00:22]shift 24 fd 1908 [14:00:22]save to /storage/0024/doc_00001908 [14:00:22]save last doc name /storage/0024/doc_00001908 to /storage/kkm_last_doc_name [14:00:22]save OK [14:00:22]Clear old archive folders... [14:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:00:22]tlvbuf is 00FE87E0 [14:00:22]SAM_PROTO_ClearQueue [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 09 00 00 [14:00:22]Write to MH i2c: E2 08 00 02 0F 80 09 00 00 00 00 00 00 83 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]SAM_PROTO_ClearQueue done [14:00:22]KKMCreateOFDPacket [14:00:22]OFDProtocolAddRootSTLVToBuf [14:00:22]FM_MakeSignedData [14:00:22]FM_MakeSignedData [14:00:22]SAM_PROTO_SignData [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 0D 01 02 [14:00:22]Write to MH i2c: E2 08 00 03 0F 80 0D 01 02 00 00 00 00 8B [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=255 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 0D 02 02 FA 03 00 26 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 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 76 88 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:00:22]Write to MH i2c: E2 02 01 04 0F 80 0D 02 02 FA 00 03 00 26 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 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 76 88 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 CA [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=53 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 0D 02 02 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 74 07 00 00 35 04 06 00 9D 45 87 E1 6F AB [14:00:22]Write to MH i2c: E2 38 00 05 0F 80 0D 02 02 30 00 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 74 07 00 00 35 04 06 00 9D 45 87 E1 6F AB 00 00 6D [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 0D 03 02 [14:00:22]Write to MH i2c: E2 08 00 06 0F 80 0D 03 02 00 00 00 00 90 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 0B 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 0B 00 06 0F 00 99 19 BE E4 C1 8F 34 D1 90 00 3A [14:00:22]RAPDU: 99 19 BE E4 C1 8F 34 D1 90 00 [14:00:22]wFMCommunicate OK [14:00:22]SAM_PROTO_SignData done [14:00:22]FM_MakeSignedData done [14:00:22]CreateOFDProtocolMessage [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 11 00 00 [14:00:22]Write to MH i2c: E2 08 00 07 0F 80 11 00 00 00 00 00 00 90 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 07 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E6 [14:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:00:22]wFMCommunicate OK [14:00:22]CreateOFDProtocolMessage done [14:00:22]OFDSenderStorePacket 1908 [14:00:22]StoreOFDPacket docnum=1908 [14:00:22]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 8E FB 32 01 C5 DD 5A 03 01 00 03 00 26 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 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 76 88 92 66 0E 04 04 00 18 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 74 07 00 00 35 04 06 00 9D 45 87 E1 6F AB 99 19 BE E4 C1 8F 34 D1 [14:00:22]CheckFolder [14:00:22]dirname=/storage/ofd_packets [14:00:22]CheckFolder done [14:00:22]ProducePacketName [14:00:22]name=ofd_packets/00001908 [14:00:22]NVStorageSaveData ofd_packets/00001908 [14:00:22]File name is /storage/ofd_packets/00001908 [14:00:22]Write 344 bytes [14:00:22]NVStorageSaveData done [14:00:22]OFDSenderStorePacket done [14:00:22]KKMCreateOFDPacket done [14:00:22]NVStorageSaveData kkm_last_timestamp [14:00:22]File name is /storage/kkm_last_timestamp [14:00:22]Write 4 bytes [14:00:22]NVStorageSaveData done [14:00:22]ExternCall_PrintAddStr [14:00:22]wPrintStart [14:00:22]Write to MH i2c: 01 00 00 08 0F 17 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 07 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 FF 0F 2C [14:00:22]RasterBufferAndPrint [14:00:22]line Счет N : (3)256328 [14:00:22]line ИНН: 02508201610067 [14:00:22]line Контрольно-Кассовый Чек [14:00:22]line ПРОДАЖА [14:00:22]line Товар: 4600682557456 [14:00:22]line Напиток FLash up energy эн ж/б 0,5/0,45л [14:00:22]line 1.000 * 85.00 [14:00:22]line = 85.00 [14:00:22]line НДС 12% НСП 1% [14:00:22]line > о реализуемом товаре [14:00:22]line ИТОГО: 85.00 [14:00:22]line НСП 1% : 0.75 [14:00:22]line НДС 12% : 9.03 [14:00:22]line Наличными: 85.00 [14:00:22]line Безнал.: 0.00 [14:00:22]line Место: АЗС № 76 "Партнер Нефть" [14:00:22]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:00:22]line СНО: Общий режим [14:00:22]line Чек 77 13.07.2024 14:00 [14:00:22]line Смена: 24 ФФД: 1.0 [14:00:22]line ЗНМ: 0300000124 [14:00:22]line РНМ: 0000000000177495 [14:00:23]line Версия ККМ: 001 [14:00:23]line ФМ: 0000000002098592 [14:00:23]line ФД: 1908 [14:00:23]line ФПД: 172921958002603 [14:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140022&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1908&fm=172921958002603&tin=02508201610067®Number=0000000000177495&sum=8500 [14:00:23]line 0 [14:00:23]OFD Sender: Processing packet 1908 [packets to send 1, broken 0] [14:00:23]ProducePacketName [14:00:23]name=ofd_packets/00001908 [14:00:23]OFD Sender: To server: pG, [14:00:23]CommunicateWithHost lk.salyk.kg:30040 [14:00:23]ConnectInit lk.salyk.kg [14:00:23]written 0, free lines is 4095 [14:00:23]Connected sock=10 [14:00:23]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 8E FB 32 01 C5 DD 5A 03 01 00 03 00 26 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 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 76 88 92 66 0E 04 04 00 18 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 74 07 00 00 35 04 06 00 9D 45 87 E1 6F AB 99 19 BE E4 C1 8F 34 D1 [14:00:23]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 55 C7 47 00 3C 26 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 74 07 00 00 F4 03 04 00 AC 33 92 66 B6 04 01 00 00 0F 80 A3 C6 C6 0E 97 5D [14:00:23]CommunicateWithHost err = 0 [14:00:23]CheckOFDResponse [14:00:23]1017 (14) - 77093643461234 [14:00:23]1041 (16) - 0000000002098592 [14:00:23]1040 (4) - 1908 [14:00:23]1012 (4) - 13.07.2024 07:58 [14:00:23]1206 (1) - 0 [14:00:23]OFD Sender: Remove packet 1908 [14:00:23]ProducePacketName [14:00:23]name=ofd_packets/00001908 [14:00:23]NVStorageDeleteData [14:00:23]Write to MH i2c: 01 00 00 31 0F 40 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: 01 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: 01 07 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: 01 07 00 31 0F 00 00 00 00 00 02 0D 56 [14:00:23]RasterBufferAndPrint [14:00:23]line [14:00:23]line [14:00:23]line [14:00:23]line [14:00:23]line [14:00:23]written 0, free lines is 3336 [14:00:23]MH_Cut [14:00:23]Write to MH i2c: D1 01 00 38 0F 01 19 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: D1 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: D1 01 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: D1 01 00 38 0F 00 18 [14:00:23]Write to MH i2c: 01 00 00 39 0F 48 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]OFD Sender: No OFD packet to send [14:00:24]*** Cut start [14:00:24]*** Partial cut [14:00:24]*** CUTSNS_PIN = 1 [14:00:24]*** CUTSNS_PIN = 0 [14:00:24]*** Brake cut motor [14:00:24]Read from MH i2c: 01 [14:00:24]MH_I2C_Read... [14:00:24]*** Stop cut motor [14:00:24]*** Cut end [14:00:24]Read from MH i2c: 01 07 00 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [14:00:24]process_action close_receipt done [14:00:24]requested_data is exist [14:00:24]produce_requested_data [14:00:24]requested_item fm.sn is exist - process it [14:00:24]wFMCommunicate request_size=4 [14:00:24]MH_SAM_APDU [14:00:24]CAPDU: 80 11 00 00 [14:00:24]Write to MH i2c: E2 08 00 3A 0F 80 11 00 00 00 00 00 00 C3 [14:00:24]Write i2c OK [14:00:24]MH_I2C_Read... [14:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:24]Read from MH i2c: E2 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: E2 17 00 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: E2 17 00 3A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 19 [14: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 [14:00:24]wFMCommunicate OK [14:00:24]requested_item fd.num is exist - process it [14:00:24]SAM_PROTO_GetFieldsCounters [14:00:24]wFMCommunicate request_size=4 [14:00:24]MH_SAM_APDU [14:00:24]CAPDU: 80 13 00 00 [14:00:24]Write to MH i2c: E2 08 00 3B 0F 80 13 00 00 00 00 00 00 C6 [14:00:24]Write i2c OK [14:00:24]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 62 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 62 00 3B 0F 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 74 07 00 00 0E 04 04 00 18 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 6C [14:00:25]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 74 07 00 00 0E 04 04 00 18 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 [14:00:25]wFMCommunicate OK [14:00:25]SAM_PROTO_GetFieldsCounters done [14:00:25]requested_item shift.num is exist - process it [14:00:25]requested_item shift.opened is exist - process it [14:00:25]req_shift_opened [14:00:25]FM_GetShiftState [14:00:25]SAM_PROTO_GetShiftState [14:00:25]wFMCommunicate request_size=4 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 13 01 00 [14:00:25]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 0E 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 53 [14:00:25]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:00:25]wFMCommunicate OK [14:00:25]SAM_PROTO_GetShiftState done [14:00:25]FM_GetShiftState done [14:00:25]req_shift_opened done [14:00:25]requested_item shift.open_date is exist - process it [14:00:25]req_shift_open_date [14:00:25]req_shift_open_date done [14:00:25]produce_requested_data done [14:00:25]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1908,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:00:25]process_action_free close_receipt [14:00:25]json_value_free [14:00:25]json_value_free done [14:00:25]process_json_proto returns [14:00:25]Send response to host [14:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1908,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:00:25]free response buf [14:00:25]execute_script done [14:00:25]execute_script returns [14:00:25]free content buf [14:00:25]Sock 8.Close socket [14:00:25]Sock 8.Thread stoped [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]accept exits with 9 [14:02:58]New connection [14:02:58]New thread 3066834276 created [14:02:58]Thread 3066977636 joined [14:02:58]Waiting for new connection... [14:02:58] Sock 9.Parse request [14:02:58]Sock 9.Check first char [14:02:58]Sock 9.First char is OK [14:02:58]request: POST /json_proto HTTP/1.0 [14:02:58]Method: POST [14:02:58]URL: /json_proto [14:02:58]Method is POST - this is cgi request [14:02:58]url: /json_proto [14:02:58]query_string will be loaded in cgi processing [14:02:58]execute_cgi json_proto POST (null) [14:02:58]execute_cgi path=json_proto method=POST [14:02:58]POST find Content-Length [14:02:58]Host: 172.17.35.133:8080 [14:02:58]Content-Length: 982 [14:02:58]Content-Type: application/json [14:02:58] [14:02:58]POST finish read [14:02:58]Found Content-Length = 982 [14:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256329", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:58]execute_script... [14:02: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)256329", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:58]POST & json_proto [14:02:58]process_json_proto [14:02:58]json parsed OK: [14:02:58]protocol is kg_v1.0 [14:02:58]action value=close_receipt [14:02:58]process_action close_receipt [14:02:58]cmd_close_receipt [14:02:58]MH_GetDate [14:02:58]Write to MH i2c: F0 00 00 3D 0F 3B [14:02:58]Write i2c OK [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: F0 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: F0 09 00 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: F0 09 00 3D 0F 00 13 89 92 66 1B 28 2A 66 AB [14:02:58]GetLastDocTimeStamp 1720879222 [14:02:58]current date 1720879379 [14:02:58]FM_GetShiftState [14:02:58]SAM_PROTO_GetShiftState [14:02:58]wFMCommunicate request_size=4 [14:02:58]MH_SAM_APDU [14:02:58]CAPDU: 80 13 01 00 [14:02:58]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [14:02:58]Write i2c OK [14:02:58]MH_I2C_Read... [14:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:58]Read from MH i2c: E2 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: E2 0E 00 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 55 [14:02:58]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:02:58]wFMCommunicate OK [14:02:58]SAM_PROTO_GetShiftState done [14:02:58]FM_GetShiftState done [14:02:58]opened in 1720829379 [14:02:58]opened+sec_in_day 1720915779 [14:02:58]quantity*price = 12500 [14:02:58]sum+1 = 12501 [14:02:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 78 13.07.2024 14:02 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1909 ФПД: 28370027339676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140259&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1909&fm=28370027339676&tin=02508201610067®Number=0000000000177495&sum=13900 0 [14:02:59]StoreToDocumentArchive [14:02:59]shift 24 fd 1909 [14:02:59]save to /storage/0024/doc_00001909 [14:02:59]save last doc name /storage/0024/doc_00001909 to /storage/kkm_last_doc_name [14:02:59]save OK [14:02:59]Clear old archive folders... [14:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=411 [14:02:59]tlvbuf is 0100DE00 [14:02:59]SAM_PROTO_ClearQueue [14:02:59]wFMCommunicate request_size=4 [14:02:59]MH_SAM_APDU [14:02:59]CAPDU: 80 09 00 00 [14:02:59]Write to MH i2c: E2 08 00 4B 0F 80 09 00 00 00 00 00 00 CC [14:02:59]Write i2c OK [14:02:59]MH_I2C_Read... [14:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:59]Read from MH i2c: E2 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [14:02:59]RAPDU: 90 00 [14:02:59]wFMCommunicate OK [14:02:59]SAM_PROTO_ClearQueue done [14:02:59]KKMCreateOFDPacket [14:02:59]OFDProtocolAddRootSTLVToBuf [14:02:59]FM_MakeSignedData [14:02:59]FM_MakeSignedData [14:02:59]SAM_PROTO_SignData [14:02:59]wFMCommunicate request_size=4 [14:02:59]MH_SAM_APDU [14:02:59]CAPDU: 80 0D 01 02 [14:02:59]Write to MH i2c: E2 08 00 4C 0F 80 0D 01 02 00 00 00 00 D4 [14:02:59]Write i2c OK [14:02:59]MH_I2C_Read... [14:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:59]Read from MH i2c: E2 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [14:02:59]RAPDU: 90 00 [14:02:59]wFMCommunicate OK [14:02:59]wFMCommunicate request_size=255 [14:02:59]MH_SAM_APDU [14:02:59]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 [14:02:59]Write to MH i2c: E2 02 01 4D 0F 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 00 00 49 [14:02:59]Write i2c OK [14:02:59]MH_I2C_Read... [14:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:59]Read from MH i2c: E2 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [14:02:59]RAPDU: 90 00 [14:02:59]wFMCommunicate OK [14:02:59]wFMCommunicate request_size=170 [14:02:59]MH_SAM_APDU [14:02:59]CAPDU: 80 0D 02 02 A5 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4E 00 00 00 F4 03 04 00 13 89 92 66 0E 04 04 00 18 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 75 07 00 00 35 04 06 00 19 CD 69 66 DF 9C [14:02:59]Write to MH i2c: E2 AD 00 4E 0F 80 0D 02 02 A5 00 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4E 00 00 00 F4 03 04 00 13 89 92 66 0E 04 04 00 18 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 75 07 00 00 35 04 06 00 19 CD 69 66 DF 9C 00 00 5C [14:02:59]Write i2c OK [14:02:59]MH_I2C_Read... [14:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:59]Read from MH i2c: E2 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [14:02:59]RAPDU: 90 00 [14:02:59]wFMCommunicate OK [14:02:59]wFMCommunicate request_size=4 [14:02:59]MH_SAM_APDU [14:02:59]CAPDU: 80 0D 03 02 [14:02:59]Write to MH i2c: E2 08 00 4F 0F 80 0D 03 02 00 00 00 00 D9 [14:02:59]Write i2c OK [14:02:59]MH_I2C_Read... [14:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:59]Read from MH i2c: E2 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 0B 00 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 0B 00 4F 0F 00 62 80 6B 60 C5 36 0D 05 90 00 94 [14:02:59]RAPDU: 62 80 6B 60 C5 36 0D 05 90 00 [14:02:59]wFMCommunicate OK [14:02:59]SAM_PROTO_SignData done [14:02:59]FM_MakeSignedData done [14:02:59]CreateOFDProtocolMessage [14:02:59]wFMCommunicate request_size=4 [14:02:59]MH_SAM_APDU [14:02:59]CAPDU: 80 11 00 00 [14:02:59]Write to MH i2c: E2 08 00 50 0F 80 11 00 00 00 00 00 00 D9 [14:02:59]Write i2c OK [14:02:59]MH_I2C_Read... [14:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:59]Read from MH i2c: E2 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 17 00 [14:02:59]MH_I2C_Read... [14:02:59]Read from MH i2c: E2 17 00 50 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 2F [14:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:02:59]wFMCommunicate OK [14:02:59]CreateOFDProtocolMessage done [14:02:59]OFDSenderStorePacket 1909 [14:02:59]StoreOFDPacket docnum=1909 [14:02: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 AF 01 00 00 B7 0B A7 01 9B BD 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4E 00 00 00 F4 03 04 00 13 89 92 66 0E 04 04 00 18 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 75 07 00 00 35 04 06 00 19 CD 69 66 DF 9C 62 80 6B 60 C5 36 0D 05 [14:02:59]CheckFolder [14:02:59]dirname=/storage/ofd_packets [14:02:59]CheckFolder done [14:02:59]ProducePacketName [14:02:59]name=ofd_packets/00001909 [14:02:59]NVStorageSaveData ofd_packets/00001909 [14:02:59]File name is /storage/ofd_packets/00001909 [14:02:59]Write 461 bytes [14:02:59]NVStorageSaveData done [14:02:59]OFDSenderStorePacket done [14:02:59]KKMCreateOFDPacket done [14:02:59]NVStorageSaveData kkm_last_timestamp [14:02:59]File name is /storage/kkm_last_timestamp [14:02:59]Write 4 bytes [14:03:00]NVStorageSaveData done [14:03:00]ExternCall_PrintAddStr [14:03:00]wPrintStart [14:03:00]Write to MH i2c: 01 00 00 51 0F 60 [14:03:00]OFD Sender: Processing packet 1909 [packets to send 1, broken 0] [14:03:00]ProducePacketName [14:03:00]name=ofd_packets/00001909 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 [14:03:00]MH_I2C_Read... [14:03:00]OFD Sender: To server: pG, [14:03:00]CommunicateWithHost lk.salyk.kg:30040 [14:03:00]ConnectInit lk.salyk.kg [14:03:00]Read from MH i2c: 01 07 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 FF 0F 75 [14:03:00]RasterBufferAndPrint [14:03:00]line Счет N : (3)256329 [14:03:00]line ИНН: 02508201610067 [14:03:00]line Контрольно-Кассовый Чек [14:03:00]line ПРОДАЖА [14:03:00]line Товар: 4870202521247 [14:03:00]line Напиток MAXI чай 1,2 черн.персик [14:03:00]line 1.000 * 125.00 [14:03:00]line = 125.00 [14:03:00]line НДС 12% НСП 1% [14:03:00]line > о реализуемом товаре [14:03:00]line Товар: 2000053020015 [14:03:00]line Бумажные стаканы 250мл 1шт [14:03:00]line 2.000 * 7.00 [14:03:00]line = 14.00 [14:03:00]line НДС 12% НСП 1% [14:03:00]line > о реализуемом товаре [14:03:00]line ИТОГО: 139.00 [14:03:00]line НСП 1% : 1.23 [14:03:00]line НДС 12% : 14.76 [14:03:00]line Наличными: 139.00 [14:03:00]line Безнал.: 0.00 [14:03:00]line Место: АЗС № 76 "Партнер Нефть" [14:03:00]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:03:00]line СНО: Общий режим [14:03:00]line Чек 78 13.07.2024 14:02 [14:03:00]line Смена: 24 ФФД: 1.0 [14:03:00]line ЗНМ: 0300000124 [14:03:00]line РНМ: 0000000000177495 [14:03:00]line Версия ККМ: 001 [14:03:00]line ФМ: 0000000002098592 [14:03:00]line ФД: 1909 [14:03:00]line ФПД: 28370027339676 [14:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140259&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1909&fm=28370027339676&tin=02508201610067®Number=0000000000177495&sum=13900 [14:03:00]line 0 [14:03:00]written 0, free lines is 4095 [14:03:00]Write to MH i2c: 01 00 00 81 0F 90 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 07 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 07 00 81 0F 00 00 00 00 00 78 0C 1B [14:03:00]RasterBufferAndPrint [14:03:00]line [14:03:00]line [14:03:00]line [14:03:00]line [14:03:00]line [14:03:00]written 0, free lines is 3197 [14:03:00]MH_Cut [14:03:00]Write to MH i2c: D1 01 00 88 0F 01 69 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: D1 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: D1 01 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: D1 01 00 88 0F 00 68 [14:03:00]Write to MH i2c: 01 00 00 89 0F 98 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:01]*** Cut start [14:03:01]*** Partial cut [14:03:01]*** CUTSNS_PIN = 1 [14:03:01]*** CUTSNS_PIN = 0 [14:03:01]*** Brake cut motor [14:03:02]Read from MH i2c: 01 [14:03:02]MH_I2C_Read... [14:03:02]*** Stop cut motor [14:03:02]*** Cut end [14:03:02]Read from MH i2c: 01 07 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: 01 07 00 89 0F 00 00 00 00 00 FF 0F AD [14:03:02]process_action close_receipt done [14:03:02]requested_data is exist [14:03:02]produce_requested_data [14:03:02]requested_item fm.sn is exist - process it [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 11 00 00 [14:03:02]Write to MH i2c: E2 08 00 8A 0F 80 11 00 00 00 00 00 00 13 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 17 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 17 00 8A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 69 [14:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:03:02]wFMCommunicate OK [14:03:02]requested_item fd.num is exist - process it [14:03:02]SAM_PROTO_GetFieldsCounters [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 13 00 00 [14:03:02]Write to MH i2c: E2 08 00 8B 0F 80 13 00 00 00 00 00 00 16 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 62 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 62 00 8B 0F 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 75 07 00 00 0E 04 04 00 18 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 C0 [14:03: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 75 07 00 00 0E 04 04 00 18 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 [14:03:02]wFMCommunicate OK [14:03:02]SAM_PROTO_GetFieldsCounters done [14:03:02]requested_item shift.num is exist - process it [14:03:02]requested_item shift.opened is exist - process it [14:03:02]req_shift_opened [14:03:02]FM_GetShiftState [14:03:02]SAM_PROTO_GetShiftState [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 13 01 00 [14:03:02]Write to MH i2c: E2 08 00 8C 0F 80 13 01 00 00 00 00 00 18 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 0E 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 0E 00 8C 0F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A3 [14:03:02]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:03:02]wFMCommunicate OK [14:03:02]SAM_PROTO_GetShiftState done [14:03:02]FM_GetShiftState done [14:03:02]req_shift_opened done [14:03:02]requested_item shift.open_date is exist - process it [14:03:02]req_shift_open_date [14:03:02]req_shift_open_date done [14:03:02]produce_requested_data done [14:03:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1909,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:03:02]process_action_free close_receipt [14:03:02]json_value_free [14:03:02]json_value_free done [14:03:02]process_json_proto returns [14:03:02]Send response to host [14:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1909,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:03:02]free response buf [14:03:02]execute_script done [14:03:02]execute_script returns [14:03:02]free content buf [14:03:02]Sock 9.Close socket [14:03:02]Sock 9.Thread stoped [14:05:11]ConnectInit Can't connect to host [14:05:11]CommunicateWithHost connect error [14:05:11]CommunicateWithHost err = -1 [14:05:11]OFD Sender: Server communicate error [14:05:16]OFD Sender: Processing packet 1909 [packets to send 1, broken 0] [14:05:16]ProducePacketName [14:05:16]name=ofd_packets/00001909 [14:05:16]OFD Sender: To server: pG, [14:05:16]CommunicateWithHost lk.salyk.kg:30040 [14:05:16]ConnectInit lk.salyk.kg [14:05:17]Connected sock=9 [14:05: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 AF 01 00 00 B7 0B A7 01 9B BD 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4E 00 00 00 F4 03 04 00 13 89 92 66 0E 04 04 00 18 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 75 07 00 00 35 04 06 00 19 CD 69 66 DF 9C 62 80 6B 60 C5 36 0D 05 [14:05: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 BD 73 47 00 D0 AB 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 75 07 00 00 F4 03 04 00 D2 34 92 66 B6 04 01 00 00 D3 89 AF C8 FB 24 6B 72 [14:05:17]CommunicateWithHost err = 0 [14:05:17]CheckOFDResponse [14:05:17]1017 (14) - 77093643461234 [14:05:17]1041 (16) - 0000000002098592 [14:05:17]1040 (4) - 1909 [14:05:17]1012 (4) - 13.07.2024 08:03 [14:05:17]1206 (1) - 0 [14:05:17]OFD Sender: Remove packet 1909 [14:05:17]ProducePacketName [14:05:17]name=ofd_packets/00001909 [14:05:17]NVStorageDeleteData [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:08]accept exits with 8 [14:06:08]New connection [14:06:08]New thread 3066977636 created [14:06:08]Thread 3066834276 joined [14:06:08]Waiting for new connection... [14:06:08] Sock 8.Parse request [14:06:08]Sock 8.Check first char [14:06:08]Sock 8.First char is OK [14:06:08]request: POST /json_proto HTTP/1.0 [14:06:08]Method: POST [14:06:08]URL: /json_proto [14:06:08]Method is POST - this is cgi request [14:06:08]url: /json_proto [14:06:08]query_string will be loaded in cgi processing [14:06:08]execute_cgi json_proto POST (null) [14:06:08]execute_cgi path=json_proto method=POST [14:06:08]POST find Content-Length [14:06:08]Host: 172.17.35.133:8080 [14:06:08]Content-Length: 748 [14:06:08]Content-Type: application/json [14:06:08] [14:06:08]POST finish read [14:06:08]Found Content-Length = 748 [14:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256330", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "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" ] } } [14:06:08]execute_script... [14:06:08]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)256330", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "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" ] } } [14:06:08]POST & json_proto [14:06:08]process_json_proto [14:06:08]json parsed OK: [14:06:08]protocol is kg_v1.0 [14:06:08]action value=close_receipt [14:06:08]process_action close_receipt [14:06:08]cmd_close_receipt [14:06:08]MH_GetDate [14:06:08]Write to MH i2c: F0 00 00 8D 0F 8B [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 09 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 09 00 8D 0F 00 D2 89 92 66 1B 28 2A 66 BA [14:06:08]GetLastDocTimeStamp 1720879379 [14:06:08]current date 1720879570 [14:06:08]FM_GetShiftState [14:06:08]SAM_PROTO_GetShiftState [14:06:08]wFMCommunicate request_size=4 [14:06:08]MH_SAM_APDU [14:06:08]CAPDU: 80 13 01 00 [14:06:08]Write to MH i2c: E2 08 00 8E 0F 80 13 01 00 00 00 00 00 1A [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0E 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0E 00 8E 0F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A5 [14:06:09]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_GetShiftState done [14:06:09]FM_GetShiftState done [14:06:09]opened in 1720829379 [14:06:09]opened+sec_in_day 1720915779 [14:06:09]quantity*price = 11000 [14:06:09]sum+1 = 11001 [14:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 79 13.07.2024 14:06 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1910 ФПД: 8770655627664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140610&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1910&fm=8770655627664&tin=02508201610067®Number=0000000000177495&sum=11000 0 [14:06:10]StoreToDocumentArchive [14:06:10]shift 24 fd 1910 [14:06:10]save to /storage/0024/doc_00001910 [14:06:10]save last doc name /storage/0024/doc_00001910 to /storage/kkm_last_doc_name [14:06:10]save OK [14:06:10]Clear old archive folders... [14:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=312 [14:06:10]tlvbuf is B6EAE3F0 [14:06:10]SAM_PROTO_ClearQueue [14:06:10]wFMCommunicate request_size=4 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 09 00 00 [14:06:10]Write to MH i2c: E2 08 00 9B 0F 80 09 00 00 00 00 00 00 1C [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [14:06:10]RAPDU: 90 00 [14:06:10]wFMCommunicate OK [14:06:10]SAM_PROTO_ClearQueue done [14:06:10]KKMCreateOFDPacket [14:06:10]OFDProtocolAddRootSTLVToBuf [14:06:10]FM_MakeSignedData [14:06:10]FM_MakeSignedData [14:06:10]SAM_PROTO_SignData [14:06:10]wFMCommunicate request_size=4 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 0D 01 02 [14:06:10]Write to MH i2c: E2 08 00 9C 0F 80 0D 01 02 00 00 00 00 24 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [14:06:10]RAPDU: 90 00 [14:06:10]wFMCommunicate OK [14:06:10]wFMCommunicate request_size=255 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 4F 00 00 00 F4 03 04 00 D2 89 92 66 0E 04 04 00 18 [14:06:10]Write to MH i2c: E2 02 01 9D 0F 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 4F 00 00 00 F4 03 04 00 D2 89 92 66 0E 04 04 00 18 00 00 C4 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [14:06:10]RAPDU: 90 00 [14:06:10]wFMCommunicate OK [14:06:10]wFMCommunicate request_size=71 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 0D 02 02 42 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 76 07 00 00 35 04 06 00 07 FA 13 D0 29 90 [14:06:10]Write to MH i2c: E2 4A 00 9E 0F 80 0D 02 02 42 00 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 76 07 00 00 35 04 06 00 07 FA 13 D0 29 90 00 00 65 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [14:06:10]RAPDU: 90 00 [14:06:10]wFMCommunicate OK [14:06:10]wFMCommunicate request_size=4 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 0D 03 02 [14:06:10]Write to MH i2c: E2 08 00 9F 0F 80 0D 03 02 00 00 00 00 29 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 0B 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 0B 00 9F 0F 00 10 90 E9 52 27 92 69 08 90 00 2F [14:06:10]RAPDU: 10 90 E9 52 27 92 69 08 90 00 [14:06:10]wFMCommunicate OK [14:06:10]SAM_PROTO_SignData done [14:06:10]FM_MakeSignedData done [14:06:10]CreateOFDProtocolMessage [14:06:10]wFMCommunicate request_size=4 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 11 00 00 [14:06:10]Write to MH i2c: E2 08 00 A0 0F 80 11 00 00 00 00 00 00 29 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 17 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 17 00 A0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7F [14:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:06:10]wFMCommunicate OK [14:06:10]CreateOFDProtocolMessage done [14:06:10]OFDSenderStorePacket 1910 [14:06:10]StoreOFDPacket docnum=1910 [14:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 4C 01 00 00 97 AE 44 01 6F 6C 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 4F 00 00 00 F4 03 04 00 D2 89 92 66 0E 04 04 00 18 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 76 07 00 00 35 04 06 00 07 FA 13 D0 29 90 10 90 E9 52 27 92 69 08 [14:06:10]CheckFolder [14:06:10]dirname=/storage/ofd_packets [14:06:10]CheckFolder done [14:06:10]ProducePacketName [14:06:10]name=ofd_packets/00001910 [14:06:10]NVStorageSaveData ofd_packets/00001910 [14:06:10]File name is /storage/ofd_packets/00001910 [14:06:10]Write 362 bytes [14:06:10]NVStorageSaveData done [14:06:10]OFDSenderStorePacket done [14:06:10]KKMCreateOFDPacket done [14:06:10]NVStorageSaveData kkm_last_timestamp [14:06:10]File name is /storage/kkm_last_timestamp [14:06:10]Write 4 bytes [14:06:10]NVStorageSaveData done [14:06:10]ExternCall_PrintAddStr [14:06:10]wPrintStart [14:06:10]Write to MH i2c: 01 00 00 A1 0F B0 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 A1 0F 00 00 00 00 00 FF 0F C5 [14:06:10]RasterBufferAndPrint [14:06:10]line Счет N : (3)256330 [14:06:10]line ИНН: 02508201610067 [14:06:10]line Контрольно-Кассовый Чек [14:06:10]line ПРОДАЖА [14:06:10]line Товар: 4870202521254 [14:06:10]line Чай холодный MAXI черный со вкусом клубн [14:06:10]line 1.000 * 110.00 [14:06:10]line = 110.00 [14:06:10]line НДС 12% НСП 1% [14:06:10]line > о реализуемом товаре [14:06:10]line ИТОГО: 110.00 [14:06:10]line НСП 1% : 0.97 [14:06:10]line НДС 12% : 11.68 [14:06:10]line Наличными: 110.00 [14:06:10]line Безнал.: 0.00 [14:06:10]line Место: АЗС № 76 "Партнер Нефть" [14:06:10]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:06:10]line СНО: Общий режим [14:06:10]line Чек 79 13.07.2024 14:06 [14:06:10]line Смена: 24 ФФД: 1.0 [14:06:10]line ЗНМ: 0300000124 [14:06:10]line РНМ: 0000000000177495 [14:06:10]line Версия ККМ: 001 [14:06:10]line ФМ: 0000000002098592 [14:06:10]line ФД: 1910 [14:06:11]line ФПД: 8770655627664 [14:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140610&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1910&fm=8770655627664&tin=02508201610067®Number=0000000000177495&sum=11000 [14:06:11]line 0 [14:06:11]OFD Sender: Processing packet 1910 [packets to send 1, broken 0] [14:06:11]ProducePacketName [14:06:11]name=ofd_packets/00001910 [14:06:11]OFD Sender: To server: pG, [14:06:11]CommunicateWithHost lk.salyk.kg:30040 [14:06:11]ConnectInit lk.salyk.kg [14:06:11]written 0, free lines is 4095 [14:06:11]Connected sock=10 [14:06: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 4C 01 00 00 97 AE 44 01 6F 6C 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 4F 00 00 00 F4 03 04 00 D2 89 92 66 0E 04 04 00 18 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 76 07 00 00 35 04 06 00 07 FA 13 D0 29 90 10 90 E9 52 27 92 69 08 [14:06: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 25 39 47 00 50 48 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 76 07 00 00 F4 03 04 00 08 35 92 66 B6 04 01 00 00 4F 08 E9 C5 86 87 C2 B7 [14:06:11]CommunicateWithHost err = 0 [14:06:11]CheckOFDResponse [14:06:11]1017 (14) - 77093643461234 [14:06:11]1041 (16) - 0000000002098592 [14:06:11]1040 (4) - 1910 [14:06:11]1012 (4) - 13.07.2024 08:04 [14:06:11]1206 (1) - 0 [14:06:11]OFD Sender: Remove packet 1910 [14:06:11]ProducePacketName [14:06:11]name=ofd_packets/00001910 [14:06:11]NVStorageDeleteData [14:06:11]Write to MH i2c: 01 00 00 CA 0F D9 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: 01 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: 01 07 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 02 0D EF [14:06:11]RasterBufferAndPrint [14:06:11]line [14:06:11]line [14:06:11]line [14:06:11]line [14:06:11]line [14:06:11]written 0, free lines is 3337 [14:06:11]MH_Cut [14:06:11]Write to MH i2c: D1 01 00 D1 0F 01 B2 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: D1 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: D1 01 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: D1 01 00 D1 0F 00 B1 [14:06:11]Write to MH i2c: 01 00 00 D2 0F E1 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]OFD Sender: No OFD packet to send [14:06:12]*** Cut start [14:06:12]*** Partial cut [14:06:12]*** CUTSNS_PIN = 1 [14:06:12]*** CUTSNS_PIN = 0 [14:06:12]*** Brake cut motor [14:06:12]Read from MH i2c: 01 [14:06:12]MH_I2C_Read... [14:06:12]*** Stop cut motor [14:06:12]*** Cut end [14:06:12]Read from MH i2c: 01 07 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: 01 07 00 D2 0F 00 00 00 00 00 FF 0F F6 [14:06:12]process_action close_receipt done [14:06:12]requested_data is exist [14:06:12]produce_requested_data [14:06:12]requested_item fm.sn is exist - process it [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 11 00 00 [14:06:12]Write to MH i2c: E2 08 00 D3 0F 80 11 00 00 00 00 00 00 5C [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 17 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 17 00 D3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B2 [14:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:06:12]wFMCommunicate OK [14:06:12]requested_item fd.num is exist - process it [14:06:12]SAM_PROTO_GetFieldsCounters [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 13 00 00 [14:06:12]Write to MH i2c: E2 08 00 D4 0F 80 13 00 00 00 00 00 00 5F [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 62 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 62 00 D4 0F 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 76 07 00 00 0E 04 04 00 18 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 0D [14:06:13]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 76 07 00 00 0E 04 04 00 18 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 [14:06:13]wFMCommunicate OK [14:06:13]SAM_PROTO_GetFieldsCounters done [14:06:13]requested_item shift.num is exist - process it [14:06:13]requested_item shift.opened is exist - process it [14:06:13]req_shift_opened [14:06:13]FM_GetShiftState [14:06:13]SAM_PROTO_GetShiftState [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 13 01 00 [14:06:13]Write to MH i2c: E2 08 00 D5 0F 80 13 01 00 00 00 00 00 61 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:13]Read from MH i2c: E2 0E 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 0E 00 D5 0F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EC [14:06:13]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:06:13]wFMCommunicate OK [14:06:13]SAM_PROTO_GetShiftState done [14:06:13]FM_GetShiftState done [14:06:13]req_shift_opened done [14:06:13]requested_item shift.open_date is exist - process it [14:06:13]req_shift_open_date [14:06:13]req_shift_open_date done [14:06:13]produce_requested_data done [14:06:13]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1910,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:06:13]process_action_free close_receipt [14:06:13]json_value_free [14:06:13]json_value_free done [14:06:13]process_json_proto returns [14:06:13]Send response to host [14:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1910,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:06:13]free response buf [14:06:13]execute_script done [14:06:13]execute_script returns [14:06:13]free content buf [14:06:13]Sock 8.Close socket [14:06:13]Sock 8.Thread stoped [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:19]accept exits with 9 [14:18:19]New connection [14:18:19]New thread 3066834276 created [14:18:19]Thread 3066977636 joined [14:18:19]Waiting for new connection... [14:18:19] Sock 9.Parse request [14:18:19]Sock 9.Check first char [14:18:19]Sock 9.First char is OK [14:18:19]request: POST /json_proto HTTP/1.0 [14:18:19]Method: POST [14:18:19]URL: /json_proto [14:18:19]Method is POST - this is cgi request [14:18:19]url: /json_proto [14:18:19]query_string will be loaded in cgi processing [14:18:19]execute_cgi json_proto POST (null) [14:18:19]execute_cgi path=json_proto method=POST [14:18:19]POST find Content-Length [14:18:19]Host: 172.17.35.133:8080 [14:18:19]Content-Length: 671 [14:18:19]Content-Type: application/json [14:18:19] [14:18:19]POST finish read [14:18:19]Found Content-Length = 671 [14:18:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256331", "tax_sys" : 0, "items" : [ { "code": "4670003190020", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 5\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:19]execute_script... [14:18:19]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)256331", "tax_sys" : 0, "items" : [ { "code": "4670003190020", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 5\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:19]POST & json_proto [14:18:19]process_json_proto [14:18:19]json parsed OK: [14:18:19]protocol is kg_v1.0 [14:18:19]action value=close_receipt [14:18:19]process_action close_receipt [14:18:19]cmd_close_receipt [14:18:19]MH_GetDate [14:18:19]Write to MH i2c: F0 00 00 D6 0F D4 [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: F0 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: F0 09 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: F0 09 00 D6 0F 00 AD 8C 92 66 1B 28 2A 66 E1 [14:18:19]GetLastDocTimeStamp 1720879570 [14:18:19]current date 1720880301 [14:18:19]FM_GetShiftState [14:18:19]SAM_PROTO_GetShiftState [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 13 01 00 [14:18:19]Write to MH i2c: E2 08 00 D7 0F 80 13 01 00 00 00 00 00 63 [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:20]Read from MH i2c: E2 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 0E 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 0E 00 D7 0F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EE [14:18:20]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:18:20]wFMCommunicate OK [14:18:20]SAM_PROTO_GetShiftState done [14:18:20]FM_GetShiftState done [14:18:20]opened in 1720829379 [14:18:20]opened+sec_in_day 1720915779 [14:18:20]quantity*price = 100000 [14:18:20]sum+1 = 100001 [14:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 80 13.07.2024 14:18 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1911 ФПД: 263906519070722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141821&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1911&fm=263906519070722&tin=02508201610067®Number=0000000000177495&sum=100000 0 [14:18:21]StoreToDocumentArchive [14:18:21]shift 24 fd 1911 [14:18:21]save to /storage/0024/doc_00001911 [14:18:21]save last doc name /storage/0024/doc_00001911 to /storage/kkm_last_doc_name [14:18:21]save OK [14:18:21]Clear old archive folders... [14:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=296 [14:18:21]tlvbuf is B6EC7640 [14:18:21]SAM_PROTO_ClearQueue [14:18:21]wFMCommunicate request_size=4 [14:18:21]MH_SAM_APDU [14:18:21]CAPDU: 80 09 00 00 [14:18:21]Write to MH i2c: E2 08 00 E4 0F 80 09 00 00 00 00 00 00 65 [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:21]Read from MH i2c: E2 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [14:18:21]RAPDU: 90 00 [14:18:21]wFMCommunicate OK [14:18:21]SAM_PROTO_ClearQueue done [14:18:21]KKMCreateOFDPacket [14:18:21]OFDProtocolAddRootSTLVToBuf [14:18:21]FM_MakeSignedData [14:18:21]FM_MakeSignedData [14:18:21]SAM_PROTO_SignData [14:18:21]wFMCommunicate request_size=4 [14:18:21]MH_SAM_APDU [14:18:21]CAPDU: 80 0D 01 02 [14:18:21]Write to MH i2c: E2 08 00 E5 0F 80 0D 01 02 00 00 00 00 6D [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:21]Read from MH i2c: E2 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [14:18:21]RAPDU: 90 00 [14:18:21]wFMCommunicate OK [14:18:21]wFMCommunicate request_size=255 [14:18:21]MH_SAM_APDU [14:18:21]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 AD 8C 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [14:18:21]Write to MH i2c: E2 02 01 E6 0F 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 AD 8C 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 30 [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:21]Read from MH i2c: E2 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [14:18:21]RAPDU: 90 00 [14:18:21]wFMCommunicate OK [14:18:21]wFMCommunicate request_size=55 [14:18:21]MH_SAM_APDU [14:18:21]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 77 07 00 00 35 04 06 00 F0 05 86 52 B8 02 [14:18:21]Write to MH i2c: E2 3A 00 E7 0F 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 77 07 00 00 35 04 06 00 F0 05 86 52 B8 02 00 00 D9 [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:21]Read from MH i2c: E2 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [14:18:21]RAPDU: 90 00 [14:18:21]wFMCommunicate OK [14:18:21]wFMCommunicate request_size=4 [14:18:21]MH_SAM_APDU [14:18:21]CAPDU: 80 0D 03 02 [14:18:21]Write to MH i2c: E2 08 00 E8 0F 80 0D 03 02 00 00 00 00 72 [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:21]Read from MH i2c: E2 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 0B 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 0B 00 E8 0F 00 FB F0 27 B2 00 3D 8C 4A 90 00 4A [14:18:21]RAPDU: FB F0 27 B2 00 3D 8C 4A 90 00 [14:18:21]wFMCommunicate OK [14:18:21]SAM_PROTO_SignData done [14:18:21]FM_MakeSignedData done [14:18:21]CreateOFDProtocolMessage [14:18:21]wFMCommunicate request_size=4 [14:18:21]MH_SAM_APDU [14:18:21]CAPDU: 80 11 00 00 [14:18:21]Write to MH i2c: E2 08 00 E9 0F 80 11 00 00 00 00 00 00 72 [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:21]Read from MH i2c: E2 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 17 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: E2 17 00 E9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C8 [14:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:18:21]wFMCommunicate OK [14:18:21]CreateOFDProtocolMessage done [14:18:21]OFDSenderStorePacket 1911 [14:18:21]StoreOFDPacket docnum=1911 [14:18: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 3C 01 00 00 9F 89 34 01 12 FD 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 AD 8C 92 66 0E 04 04 00 18 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 77 07 00 00 35 04 06 00 F0 05 86 52 B8 02 FB F0 27 B2 00 3D 8C 4A [14:18:21]CheckFolder [14:18:21]dirname=/storage/ofd_packets [14:18:21]CheckFolder done [14:18:21]ProducePacketName [14:18:21]name=ofd_packets/00001911 [14:18:21]NVStorageSaveData ofd_packets/00001911 [14:18:21]File name is /storage/ofd_packets/00001911 [14:18:21]Write 346 bytes [14:18:21]NVStorageSaveData done [14:18:21]OFDSenderStorePacket done [14:18:21]KKMCreateOFDPacket done [14:18:21]NVStorageSaveData kkm_last_timestamp [14:18:21]File name is /storage/kkm_last_timestamp [14:18:21]Write 4 bytes [14:18:21]NVStorageSaveData done [14:18:21]ExternCall_PrintAddStr [14:18:21]wPrintStart [14:18:21]Write to MH i2c: 01 00 00 EA 0F F9 [14:18:21]Write i2c OK [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: 01 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: 01 07 00 [14:18:21]MH_I2C_Read... [14:18:21]Read from MH i2c: 01 07 00 EA 0F 00 00 00 00 00 FF 0F 0E [14:18:21]RasterBufferAndPrint [14:18:21]line Счет N : (3)256331 [14:18:21]line ИНН: 02508201610067 [14:18:21]line Контрольно-Кассовый Чек [14:18:21]line ПРОДАЖА [14:18:21]line Товар: 4670003190020 [14:18:21]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 5л [14:18:21]line 1.000 * 1000.00 [14:18:21]line = 1000.00 [14:18:21]line НДС 12% НСП 1% [14:18:21]line > о реализуемом товаре [14:18:21]line ИТОГО: 1000.00 [14:18:21]line НСП 1% : 8.85 [14:18:21]line НДС 12% : 106.19 [14:18:21]line Наличными: 1000.00 [14:18:21]line Безнал.: 0.00 [14:18:21]line Место: АЗС № 76 "Партнер Нефть" [14:18:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:18:21]line СНО: Общий режим [14:18:21]line Чек 80 13.07.2024 14:18 [14:18:21]line Смена: 24 ФФД: 1.0 [14:18:21]line ЗНМ: 0300000124 [14:18:21]line РНМ: 0000000000177495 [14:18:21]line Версия ККМ: 001 [14:18:21]line ФМ: 0000000002098592 [14:18:21]line ФД: 1911 [14:18:21]line ФПД: 263906519070722 [14:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141821&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1911&fm=263906519070722&tin=02508201610067®Number=0000000000177495&sum=100000 [14:18:22]line 0 [14:18:22]OFD Sender: Processing packet 1911 [packets to send 1, broken 0] [14:18:22]ProducePacketName [14:18:22]name=ofd_packets/00001911 [14:18:22]OFD Sender: To server: pG, [14:18:22]CommunicateWithHost lk.salyk.kg:30040 [14:18:22]ConnectInit lk.salyk.kg [14:18:22]written 0, free lines is 4095 [14:18:22]Connected sock=10 [14:18: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 3C 01 00 00 9F 89 34 01 12 FD 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 32 30 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 AD 8C 92 66 0E 04 04 00 18 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 77 07 00 00 35 04 06 00 F0 05 86 52 B8 02 FB F0 27 B2 00 3D 8C 4A [14:18: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 37 21 47 00 56 18 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 77 07 00 00 F4 03 04 00 E3 37 92 66 B6 04 01 00 00 5F 40 7F BA 3E D0 FD 16 [14:18:22]CommunicateWithHost err = 0 [14:18:22]CheckOFDResponse [14:18:22]1017 (14) - 77093643461234 [14:18:22]1041 (16) - 0000000002098592 [14:18:22]1040 (4) - 1911 [14:18:22]1012 (4) - 13.07.2024 08:16 [14:18:22]1206 (1) - 0 [14:18:22]OFD Sender: Remove packet 1911 [14:18:22]ProducePacketName [14:18:22]name=ofd_packets/00001911 [14:18:22]NVStorageDeleteData [14:18:22]Write to MH i2c: 01 00 00 13 10 23 [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: 01 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: 01 07 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 09 0D 40 [14:18:22]RasterBufferAndPrint [14:18:22]line [14:18:22]line [14:18:22]line [14:18:22]line [14:18:22]line [14:18:22]written 0, free lines is 3342 [14:18:22]MH_Cut [14:18:22]Write to MH i2c: D1 01 00 1A 10 01 FC [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: D1 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: D1 01 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: D1 01 00 1A 10 00 FB [14:18:22]Write to MH i2c: 01 00 00 1B 10 2B [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]OFD Sender: No OFD packet to send [14:18:23]*** Cut start [14:18:23]*** Partial cut [14:18:23]*** CUTSNS_PIN = 1 [14:18:23]*** CUTSNS_PIN = 0 [14:18:23]*** Brake cut motor [14:18:23]Read from MH i2c: 01 [14:18:23]MH_I2C_Read... [14:18:23]*** Stop cut motor [14:18:23]*** Cut end [14:18:23]Read from MH i2c: 01 07 00 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: 01 07 00 1B 10 00 00 00 00 00 FF 0F 40 [14:18:23]process_action close_receipt done [14:18:23]requested_data is exist [14:18:23]produce_requested_data [14:18:23]requested_item fm.sn is exist - process it [14:18:23]wFMCommunicate request_size=4 [14:18:23]MH_SAM_APDU [14:18:23]CAPDU: 80 11 00 00 [14:18:23]Write to MH i2c: E2 08 00 1C 10 80 11 00 00 00 00 00 00 A6 [14:18:23]Write i2c OK [14:18:23]MH_I2C_Read... [14:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:23]Read from MH i2c: E2 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: E2 17 00 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: E2 17 00 1C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FC [14:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:18:23]wFMCommunicate OK [14:18:23]requested_item fd.num is exist - process it [14:18:23]SAM_PROTO_GetFieldsCounters [14:18:23]wFMCommunicate request_size=4 [14:18:23]MH_SAM_APDU [14:18:23]CAPDU: 80 13 00 00 [14:18:23]Write to MH i2c: E2 08 00 1D 10 80 13 00 00 00 00 00 00 A9 [14:18:23]Write i2c OK [14:18:23]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 62 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 62 00 1D 10 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 77 07 00 00 0E 04 04 00 18 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 5B [14:18: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 77 07 00 00 0E 04 04 00 18 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 [14:18:24]wFMCommunicate OK [14:18:24]SAM_PROTO_GetFieldsCounters done [14:18:24]requested_item shift.num is exist - process it [14:18:24]requested_item shift.opened is exist - process it [14:18:24]req_shift_opened [14:18:24]FM_GetShiftState [14:18:24]SAM_PROTO_GetShiftState [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 13 01 00 [14:18:24]Write to MH i2c: E2 08 00 1E 10 80 13 01 00 00 00 00 00 AB [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 0E 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 0E 00 1E 10 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 36 [14:18:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:18:24]wFMCommunicate OK [14:18:24]SAM_PROTO_GetShiftState done [14:18:24]FM_GetShiftState done [14:18:24]req_shift_opened done [14:18:24]requested_item shift.open_date is exist - process it [14:18:24]req_shift_open_date [14:18:24]req_shift_open_date done [14:18:24]produce_requested_data done [14:18:24]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1911,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:18:24]process_action_free close_receipt [14:18:24]json_value_free [14:18:24]json_value_free done [14:18:24]process_json_proto returns [14:18:24]Send response to host [14:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1911,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:18:24]free response buf [14:18:24]execute_script done [14:18:24]execute_script returns [14:18:24]free content buf [14:18:24]Sock 9.Close socket [14:18:24]Sock 9.Thread stoped [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]accept exits with 8 [14:20:17]New connection [14:20:17]New thread 3066977636 created [14:20:17]Thread 3066834276 joined [14:20:17]Waiting for new connection... [14:20:17] Sock 8.Parse request [14:20:17]Sock 8.Check first char [14:20:17]Sock 8.First char is OK [14:20:17]request: POST /json_proto HTTP/1.0 [14:20:17]Method: POST [14:20:17]URL: /json_proto [14:20:17]Method is POST - this is cgi request [14:20:17]url: /json_proto [14:20:17]query_string will be loaded in cgi processing [14:20:17]execute_cgi json_proto POST (null) [14:20:17]execute_cgi path=json_proto method=POST [14:20:17]POST find Content-Length [14:20:17]Host: 172.17.35.133:8080 [14:20:17]Content-Length: 879 [14:20:17]Content-Type: application/json [14:20:17] [14:20:17]POST finish read [14:20:17]Found Content-Length = 879 [14:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256332", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:17]execute_script... [14:20: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)256332", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:17]POST & json_proto [14:20:17]process_json_proto [14:20:17]json parsed OK: [14:20:17]protocol is kg_v1.0 [14:20:17]action value=close_receipt [14:20:17]process_action close_receipt [14:20:17]cmd_close_receipt [14:20:17]MH_GetDate [14:20:17]Write to MH i2c: F0 00 00 1F 10 1E [14:20:17]Write i2c OK [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: F0 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: F0 09 00 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: F0 09 00 1F 10 00 23 8D 92 66 1B 28 2A 66 A2 [14:20:17]GetLastDocTimeStamp 1720880301 [14:20:17]current date 1720880419 [14:20:17]FM_GetShiftState [14:20:17]SAM_PROTO_GetShiftState [14:20:17]wFMCommunicate request_size=4 [14:20:17]MH_SAM_APDU [14:20:17]CAPDU: 80 13 01 00 [14:20:17]Write to MH i2c: E2 08 00 20 10 80 13 01 00 00 00 00 00 AD [14:20:17]Write i2c OK [14:20:17]MH_I2C_Read... [14:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:17]Read from MH i2c: E2 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 0E 00 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 0E 00 20 10 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 38 [14:20:17]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:20:17]wFMCommunicate OK [14:20:17]SAM_PROTO_GetShiftState done [14:20:17]FM_GetShiftState done [14:20:17]opened in 1720829379 [14:20:17]opened+sec_in_day 1720915779 [14:20:17]quantity*price = 14500 [14:20:17]sum+1 = 14501 [14:20:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 157.00 = 157.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 302.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 81 13.07.2024 14:20 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1912 ФПД: 279889137094175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142019&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1912&fm=279889137094175&tin=02508201610067®Number=0000000000177495&sum=30200 0 [14:20:18]StoreToDocumentArchive [14:20:18]shift 24 fd 1912 [14:20:18]save to /storage/0024/doc_00001912 [14:20:18]save last doc name /storage/0024/doc_00001912 to /storage/kkm_last_doc_name [14:20:18]save OK [14:20:18]Clear old archive folders... [14:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=373 [14:20:18]tlvbuf is 00FD37A0 [14:20:18]SAM_PROTO_ClearQueue [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 09 00 00 [14:20:18]Write to MH i2c: E2 08 00 2D 10 80 09 00 00 00 00 00 00 AF [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [14:20:18]RAPDU: 90 00 [14:20:18]wFMCommunicate OK [14:20:18]SAM_PROTO_ClearQueue done [14:20:18]KKMCreateOFDPacket [14:20:18]OFDProtocolAddRootSTLVToBuf [14:20:18]FM_MakeSignedData [14:20:18]FM_MakeSignedData [14:20:18]SAM_PROTO_SignData [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 0D 01 02 [14:20:18]Write to MH i2c: E2 08 00 2E 10 80 0D 01 02 00 00 00 00 B7 [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [14:20:18]RAPDU: 90 00 [14:20:18]wFMCommunicate OK [14:20:18]wFMCommunicate request_size=255 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 0D 02 02 FA 03 00 75 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 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 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 [14:20:18]Write to MH i2c: E2 02 01 2F 10 80 0D 02 02 FA 00 03 00 75 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 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 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 00 00 1C [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [14:20:18]RAPDU: 90 00 [14:20:18]wFMCommunicate OK [14:20:18]wFMCommunicate request_size=132 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 0D 02 02 7F 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 51 00 00 00 F4 03 04 00 23 8D 92 66 0E 04 04 00 18 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 78 07 00 00 35 04 06 00 FE 8E C4 97 CE 1F [14:20:18]Write to MH i2c: E2 87 00 30 10 80 0D 02 02 7F 00 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 51 00 00 00 F4 03 04 00 23 8D 92 66 0E 04 04 00 18 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 78 07 00 00 35 04 06 00 FE 8E C4 97 CE 1F 00 00 62 [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [14:20:18]RAPDU: 90 00 [14:20:18]wFMCommunicate OK [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 0D 03 02 [14:20:18]Write to MH i2c: E2 08 00 31 10 80 0D 03 02 00 00 00 00 BC [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 0B 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 0B 00 31 10 00 D2 49 9F A7 8A 31 0D E5 90 00 CB [14:20:18]RAPDU: D2 49 9F A7 8A 31 0D E5 90 00 [14:20:18]wFMCommunicate OK [14:20:18]SAM_PROTO_SignData done [14:20:18]FM_MakeSignedData done [14:20:18]CreateOFDProtocolMessage [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 11 00 00 [14:20:18]Write to MH i2c: E2 08 00 32 10 80 11 00 00 00 00 00 00 BC [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 17 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 17 00 32 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 12 [14:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:20:18]wFMCommunicate OK [14:20:18]CreateOFDProtocolMessage done [14:20:18]OFDSenderStorePacket 1912 [14:20:18]StoreOFDPacket docnum=1912 [14:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 89 01 00 00 4C EF 81 01 C3 E7 5A 03 01 00 03 00 75 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 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 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 51 00 00 00 F4 03 04 00 23 8D 92 66 0E 04 04 00 18 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 78 07 00 00 35 04 06 00 FE 8E C4 97 CE 1F D2 49 9F A7 8A 31 0D E5 [14:20:18]CheckFolder [14:20:18]dirname=/storage/ofd_packets [14:20:18]CheckFolder done [14:20:18]ProducePacketName [14:20:18]name=ofd_packets/00001912 [14:20:18]NVStorageSaveData ofd_packets/00001912 [14:20:18]File name is /storage/ofd_packets/00001912 [14:20:18]Write 423 bytes [14:20:18]NVStorageSaveData done [14:20:18]OFDSenderStorePacket done [14:20:18]KKMCreateOFDPacket done [14:20:18]NVStorageSaveData kkm_last_timestamp [14:20:18]File name is /storage/kkm_last_timestamp [14:20:18]Write 4 bytes [14:20:18]NVStorageSaveData done [14:20:18]ExternCall_PrintAddStr [14:20:18]wPrintStart [14:20:18]Write to MH i2c: 01 00 00 33 10 43 [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: 01 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: 01 07 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 FF 0F 58 [14:20:18]RasterBufferAndPrint [14:20:18]line Счет N : (3)256332 [14:20:18]line ИНН: 02508201610067 [14:20:18]line Контрольно-Кассовый Чек [14:20:18]line ПРОДАЖА [14:20:18]line Товар: 4700001610012 [14:20:18]line Пиво Арпа 0,5л [14:20:18]line 1.000 * 145.00 [14:20:18]line = 145.00 [14:20:18]line НДС 12% НСП 1% [14:20:19]line > о реализуемом товаре [14:20:19]line Товар: 90162602 [14:20:19]line Энерг напиток Red bull 0,25л [14:20:19]line 1.000 * 157.00 [14:20:19]line = 157.00 [14:20:19]line НДС 12% НСП 1% [14:20:19]line > о реализуемом товаре [14:20:19]line ИТОГО: 302.00 [14:20:19]line НСП 1% : 2.67 [14:20:19]line НДС 12% : 32.07 [14:20:19]line Наличными: 302.00 [14:20:19]line Безнал.: 0.00 [14:20:19]line Место: АЗС № 76 "Партнер Нефть" [14:20:19]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:20:19]line СНО: Общий режим [14:20:19]line Чек 81 13.07.2024 14:20 [14:20:19]line Смена: 24 ФФД: 1.0 [14:20:19]line ЗНМ: 0300000124 [14:20:19]line РНМ: 0000000000177495 [14:20:19]line Версия ККМ: 001 [14:20:19]line ФМ: 0000000002098592 [14:20:19]line ФД: 1912 [14:20:19]line ФПД: 279889137094175 [14:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142019&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1912&fm=279889137094175&tin=02508201610067®Number=0000000000177495&sum=30200 [14:20:19]line 0 [14:20:19]OFD Sender: Processing packet 1912 [packets to send 1, broken 0] [14:20:19]ProducePacketName [14:20:19]name=ofd_packets/00001912 [14:20:19]OFD Sender: To server: pG, [14:20:19]CommunicateWithHost lk.salyk.kg:30040 [14:20:19]ConnectInit lk.salyk.kg [14:20:19]written 0, free lines is 4095 [14:20:19]Connected sock=10 [14:20:19]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 89 01 00 00 4C EF 81 01 C3 E7 5A 03 01 00 03 00 75 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 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 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 51 00 00 00 F4 03 04 00 23 8D 92 66 0E 04 04 00 18 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 78 07 00 00 35 04 06 00 FE 8E C4 97 CE 1F D2 49 9F A7 8A 31 0D E5 [14:20:19]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 73 47 00 1E 3E 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 78 07 00 00 F4 03 04 00 59 38 92 66 B6 04 01 00 00 5D 50 C0 ED A9 18 5B B6 [14:20:19]CommunicateWithHost err = 0 [14:20:19]CheckOFDResponse [14:20:19]1017 (14) - 77093643461234 [14:20:19]1041 (16) - 0000000002098592 [14:20:19]1040 (4) - 1912 [14:20:19]1012 (4) - 13.07.2024 08:18 [14:20:19]1206 (1) - 0 [14:20:19]OFD Sender: Remove packet 1912 [14:20:19]ProducePacketName [14:20:19]name=ofd_packets/00001912 [14:20:19]NVStorageDeleteData [14:20:19]Write to MH i2c: 01 00 00 61 10 71 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 07 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 07 00 61 10 00 00 00 00 00 C3 0C 47 [14:20:19]RasterBufferAndPrint [14:20:19]line [14:20:19]line [14:20:19]line [14:20:19]line [14:20:19]line [14:20:19]written 0, free lines is 3273 [14:20:19]MH_Cut [14:20:19]Write to MH i2c: D1 01 00 68 10 01 4A [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: D1 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: D1 01 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: D1 01 00 68 10 00 49 [14:20:19]Write to MH i2c: 01 00 00 69 10 79 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:20]OFD Sender: No OFD packet to send [14:20:20]*** Cut start [14:20:20]*** Partial cut [14:20:20]*** CUTSNS_PIN = 1 [14:20:20]*** CUTSNS_PIN = 0 [14:20:20]*** Brake cut motor [14:20:21]Read from MH i2c: 01 [14:20:21]MH_I2C_Read... [14:20:21]*** Stop cut motor [14:20:21]*** Cut end [14:20:21]Read from MH i2c: 01 07 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: 01 07 00 69 10 00 00 00 00 00 FF 0F 8E [14:20:21]process_action close_receipt done [14:20:21]requested_data is exist [14:20:21]produce_requested_data [14:20:21]requested_item fm.sn is exist - process it [14:20:21]wFMCommunicate request_size=4 [14:20:21]MH_SAM_APDU [14:20:21]CAPDU: 80 11 00 00 [14:20:21]Write to MH i2c: E2 08 00 6A 10 80 11 00 00 00 00 00 00 F4 [14:20:21]Write i2c OK [14:20:21]MH_I2C_Read... [14:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:21]Read from MH i2c: E2 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 17 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 17 00 6A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4A [14:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:20:21]wFMCommunicate OK [14:20:21]requested_item fd.num is exist - process it [14:20:21]SAM_PROTO_GetFieldsCounters [14:20:21]wFMCommunicate request_size=4 [14:20:21]MH_SAM_APDU [14:20:21]CAPDU: 80 13 00 00 [14:20:21]Write to MH i2c: E2 08 00 6B 10 80 13 00 00 00 00 00 00 F7 [14:20:21]Write i2c OK [14:20:21]MH_I2C_Read... [14:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:21]Read from MH i2c: E2 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 62 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 62 00 6B 10 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 78 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [14:20:21]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 78 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:21]wFMCommunicate OK [14:20:21]SAM_PROTO_GetFieldsCounters done [14:20:21]requested_item shift.num is exist - process it [14:20:21]requested_item shift.opened is exist - process it [14:20:21]req_shift_opened [14:20:21]FM_GetShiftState [14:20:21]SAM_PROTO_GetShiftState [14:20:21]wFMCommunicate request_size=4 [14:20:21]MH_SAM_APDU [14:20:21]CAPDU: 80 13 01 00 [14:20:21]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [14:20:21]Write i2c OK [14:20:21]MH_I2C_Read... [14:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:21]Read from MH i2c: E2 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 0E 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 84 [14:20:21]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:20:21]wFMCommunicate OK [14:20:21]SAM_PROTO_GetShiftState done [14:20:21]FM_GetShiftState done [14:20:21]req_shift_opened done [14:20:21]requested_item shift.open_date is exist - process it [14:20:21]req_shift_open_date [14:20:21]req_shift_open_date done [14:20:21]produce_requested_data done [14:20:21]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1912,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:20:21]process_action_free close_receipt [14:20:21]json_value_free [14:20:21]json_value_free done [14:20:21]process_json_proto returns [14:20:21]Send response to host [14:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1912,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:20:21]free response buf [14:20:21]execute_script done [14:20:21]execute_script returns [14:20:21]free content buf [14:20:21]Sock 8.Close socket [14:20:21]Sock 8.Thread stoped [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:38]ConnectInit Can't connect to host [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:00]recv_with_timeout no data received [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:54]accept exits with 9 [14:42:54]New connection [14:42:54]New thread 3066834276 created [14:42:54]Thread 3066977636 joined [14:42:54]Waiting for new connection... [14:42:54] Sock 9.Parse request [14:42:54]Sock 9.Check first char [14:42:54]Sock 9.First char is OK [14:42:54]request: POST /json_proto HTTP/1.0 [14:42:54]Method: POST [14:42:54]URL: /json_proto [14:42:54]Method is POST - this is cgi request [14:42:54]url: /json_proto [14:42:54]query_string will be loaded in cgi processing [14:42:54]execute_cgi json_proto POST (null) [14:42:54]execute_cgi path=json_proto method=POST [14:42:54]POST find Content-Length [14:42:54]Host: 172.17.35.133:8080 [14:42:54]Content-Length: 838 [14:42:54]Content-Type: application/json [14:42:54] [14:42:54]POST finish read [14:42:54]Found Content-Length = 838 [14:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256333", "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 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh 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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:54]execute_script... [14:42:54]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)256333", "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 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh 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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:54]POST & json_proto [14:42:54]process_json_proto [14:42:54]json parsed OK: [14:42:54]protocol is kg_v1.0 [14:42:54]action value=close_receipt [14:42:54]process_action close_receipt [14:42:54]cmd_close_receipt [14:42:54]MH_GetDate [14:42:54]Write to MH i2c: F0 00 00 6D 10 6C [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: F0 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: F0 09 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: F0 09 00 6D 10 00 70 92 92 66 1B 28 2A 66 42 [14:42:54]GetLastDocTimeStamp 1720880419 [14:42:54]current date 1720881776 [14:42:54]FM_GetShiftState [14:42:54]SAM_PROTO_GetShiftState [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 13 01 00 [14:42:54]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0E 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 86 [14:42:54]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:42:54]wFMCommunicate OK [14:42:54]SAM_PROTO_GetShiftState done [14:42:54]FM_GetShiftState done [14:42:54]opened in 1720829379 [14:42:54]opened+sec_in_day 1720915779 [14:42:54]quantity*price = 5000 [14:42:54]sum+1 = 5001 [14:42:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 82 13.07.2024 14:42 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1913 ФПД: 102900887329984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144256&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1913&fm=102900887329984&tin=02508201610067®Number=0000000000177495&sum=9500 0 [14:42:55]StoreToDocumentArchive [14:42:55]shift 24 fd 1913 [14:42:55]save to /storage/0024/doc_00001913 [14:42:55]save last doc name /storage/0024/doc_00001913 to /storage/kkm_last_doc_name [14:42:55]save OK [14:42:55]Clear old archive folders... [14:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=365 [14:42:55]tlvbuf is 00FF97E0 [14:42:55]SAM_PROTO_ClearQueue [14:42:55]wFMCommunicate request_size=4 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 09 00 00 [14:42:55]Write to MH i2c: E2 08 00 7B 10 80 09 00 00 00 00 00 00 FD [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [14:42:55]RAPDU: 90 00 [14:42:55]wFMCommunicate OK [14:42:55]SAM_PROTO_ClearQueue done [14:42:55]KKMCreateOFDPacket [14:42:55]OFDProtocolAddRootSTLVToBuf [14:42:55]FM_MakeSignedData [14:42:55]FM_MakeSignedData [14:42:55]SAM_PROTO_SignData [14:42:55]wFMCommunicate request_size=4 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 0D 01 02 [14:42:55]Write to MH i2c: E2 08 00 7C 10 80 0D 01 02 00 00 00 00 05 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [14:42:55]RAPDU: 90 00 [14:42:55]wFMCommunicate OK [14:42:55]wFMCommunicate request_size=255 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 0D 02 02 FA 03 00 6D 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 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 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 [14:42:55]Write to MH i2c: E2 02 01 7D 10 80 0D 02 02 FA 00 03 00 6D 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 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 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 00 00 75 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [14:42:55]RAPDU: 90 00 [14:42:55]wFMCommunicate OK [14:42:55]wFMCommunicate request_size=124 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 0D 02 02 77 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 70 92 92 66 0E 04 04 00 18 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 79 07 00 00 35 04 06 00 5D 96 7A D6 1C C0 [14:42:55]Write to MH i2c: E2 7F 00 7E 10 80 0D 02 02 77 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 70 92 92 66 0E 04 04 00 18 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 79 07 00 00 35 04 06 00 5D 96 7A D6 1C C0 00 00 73 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [14:42:55]RAPDU: 90 00 [14:42:55]wFMCommunicate OK [14:42:55]wFMCommunicate request_size=4 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 0D 03 02 [14:42:55]Write to MH i2c: E2 08 00 7F 10 80 0D 03 02 00 00 00 00 0A [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 0B 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 0B 00 7F 10 00 9C D0 CF 8E 4E 91 D9 F2 90 00 7E [14:42:55]RAPDU: 9C D0 CF 8E 4E 91 D9 F2 90 00 [14:42:55]wFMCommunicate OK [14:42:55]SAM_PROTO_SignData done [14:42:55]FM_MakeSignedData done [14:42:55]CreateOFDProtocolMessage [14:42:55]wFMCommunicate request_size=4 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 11 00 00 [14:42:55]Write to MH i2c: E2 08 00 80 10 80 11 00 00 00 00 00 00 0A [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 17 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 17 00 80 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 60 [14:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:42:55]wFMCommunicate OK [14:42:55]CreateOFDProtocolMessage done [14:42:55]OFDSenderStorePacket 1913 [14:42:55]StoreOFDPacket docnum=1913 [14:42: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 81 01 00 00 1A F3 79 01 08 A1 5A 03 01 00 03 00 6D 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 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 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 70 92 92 66 0E 04 04 00 18 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 79 07 00 00 35 04 06 00 5D 96 7A D6 1C C0 9C D0 CF 8E 4E 91 D9 F2 [14:42:55]CheckFolder [14:42:55]dirname=/storage/ofd_packets [14:42:55]CheckFolder done [14:42:55]ProducePacketName [14:42:55]name=ofd_packets/00001913 [14:42:55]NVStorageSaveData ofd_packets/00001913 [14:42:55]File name is /storage/ofd_packets/00001913 [14:42:55]Write 415 bytes [14:42:55]NVStorageSaveData done [14:42:55]OFDSenderStorePacket done [14:42:55]KKMCreateOFDPacket done [14:42:55]NVStorageSaveData kkm_last_timestamp [14:42:55]File name is /storage/kkm_last_timestamp [14:42:55]Write 4 bytes [14:42:55]NVStorageSaveData done [14:42:55]ExternCall_PrintAddStr [14:42:55]wPrintStart [14:42:55]Write to MH i2c: 01 00 00 81 10 91 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: 01 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: 01 07 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: 01 07 00 81 10 00 00 00 00 00 FF 0F A6 [14:42:55]RasterBufferAndPrint [14:42:55]line Счет N : (3)256333 [14:42:55]line ИНН: 02508201610067 [14:42:55]line Контрольно-Кассовый Чек [14:42:55]line ПРОДАЖА [14:42:55]line Товар: 4700000160358 [14:42:55]line Вода Легенда 1л [14:42:55]line 1.000 * 50.00 [14:42:55]line = 50.00 [14:42:55]line НДС 12% НСП 1% [14:42:55]line > о реализуемом товаре [14:42:55]line Товар: 42069942 [14:42:55]line Жев Orbit White Fresh Mint [14:42:56]line 1.000 * 45.00 [14:42:56]line = 45.00 [14:42:56]line НДС 12% НСП 1% [14:42:56]line > о реализуемом товаре [14:42:56]line ИТОГО: 95.00 [14:42:56]line НСП 1% : 0.84 [14:42:56]line НДС 12% : 10.09 [14:42:56]line Наличными: 95.00 [14:42:56]line Безнал.: 0.00 [14:42:56]line Место: АЗС № 76 "Партнер Нефть" [14:42:56]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:42:56]line СНО: Общий режим [14:42:56]line Чек 82 13.07.2024 14:42 [14:42:56]line Смена: 24 ФФД: 1.0 [14:42:56]line ЗНМ: 0300000124 [14:42:56]line РНМ: 0000000000177495 [14:42:56]line Версия ККМ: 001 [14:42:56]line ФМ: 0000000002098592 [14:42:56]line ФД: 1913 [14:42:56]line ФПД: 102900887329984 [14:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144256&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1913&fm=102900887329984&tin=02508201610067®Number=0000000000177495&sum=9500 [14:42:56]OFD Sender: Processing packet 1913 [packets to send 1, broken 0] [14:42:56]line 0 [14:42:56]ProducePacketName [14:42:56]name=ofd_packets/00001913 [14:42:56]OFD Sender: To server: pG, [14:42:56]CommunicateWithHost lk.salyk.kg:30040 [14:42:56]ConnectInit lk.salyk.kg [14:42:56]written 0, free lines is 4095 [14:42:56]Connected sock=10 [14:42:56]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 81 01 00 00 1A F3 79 01 08 A1 5A 03 01 00 03 00 6D 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 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 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 70 92 92 66 0E 04 04 00 18 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 79 07 00 00 35 04 06 00 5D 96 7A D6 1C C0 9C D0 CF 8E 4E 91 D9 F2 [14:42:56]Write to MH i2c: 01 00 00 AF 10 BF [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: 01 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: 01 07 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 B9 0C 8B [14:42:56]RasterBufferAndPrint [14:42:56]line [14:42:56]line [14:42:56]line [14:42:56]line [14:42:56]line [14:42:56]written 0, free lines is 3263 [14:42:56]MH_Cut [14:42:56]Write to MH i2c: D1 01 00 B6 10 01 98 [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: D1 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: D1 01 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: D1 01 00 B6 10 00 97 [14:42:56]Write to MH i2c: 01 00 00 B7 10 C7 [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42: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 23 BE 47 00 C5 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 79 07 00 00 F4 03 04 00 A6 3D 92 66 B6 04 01 00 00 2C 48 4A 2E AF C0 70 40 [14:42:56]CommunicateWithHost err = 0 [14:42:56]CheckOFDResponse [14:42:56]1017 (14) - 77093643461234 [14:42:56]1041 (16) - 0000000002098592 [14:42:56]1040 (4) - 1913 [14:42:56]1012 (4) - 13.07.2024 08:41 [14:42:56]1206 (1) - 0 [14:42:56]OFD Sender: Remove packet 1913 [14:42:56]ProducePacketName [14:42:56]name=ofd_packets/00001913 [14:42:56]NVStorageDeleteData [14:42:57]OFD Sender: No OFD packet to send [14:42:57]*** Cut start [14:42:57]*** Partial cut [14:42:57]*** CUTSNS_PIN = 1 [14:42:57]*** CUTSNS_PIN = 0 [14:42:57]*** Brake cut motor [14:42:58]Read from MH i2c: 01 [14:42:58]MH_I2C_Read... [14:42:58]*** Stop cut motor [14:42:58]*** Cut end [14:42:58]Read from MH i2c: 01 07 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: 01 07 00 B7 10 00 00 00 00 00 FF 0F DC [14:42:58]process_action close_receipt done [14:42:58]requested_data is exist [14:42:58]produce_requested_data [14:42:58]requested_item fm.sn is exist - process it [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 11 00 00 [14:42:58]Write to MH i2c: E2 08 00 B8 10 80 11 00 00 00 00 00 00 42 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 17 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 17 00 B8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 98 [14:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:42:58]wFMCommunicate OK [14:42:58]requested_item fd.num is exist - process it [14:42:58]SAM_PROTO_GetFieldsCounters [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 13 00 00 [14:42:58]Write to MH i2c: E2 08 00 B9 10 80 13 00 00 00 00 00 00 45 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 62 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 62 00 B9 10 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 79 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [14:42: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 79 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:58]wFMCommunicate OK [14:42:58]SAM_PROTO_GetFieldsCounters done [14:42:58]requested_item shift.num is exist - process it [14:42:58]requested_item shift.opened is exist - process it [14:42:58]req_shift_opened [14:42:58]FM_GetShiftState [14:42:58]SAM_PROTO_GetShiftState [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 13 01 00 [14:42:58]Write to MH i2c: E2 08 00 BA 10 80 13 01 00 00 00 00 00 47 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 0E 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 0E 00 BA 10 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D2 [14:42:58]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:42:58]wFMCommunicate OK [14:42:58]SAM_PROTO_GetShiftState done [14:42:58]FM_GetShiftState done [14:42:58]req_shift_opened done [14:42:58]requested_item shift.open_date is exist - process it [14:42:58]req_shift_open_date [14:42:58]req_shift_open_date done [14:42:58]produce_requested_data done [14:42:58]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1913,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:42:58]process_action_free close_receipt [14:42:58]json_value_free [14:42:58]json_value_free done [14:42:58]process_json_proto returns [14:42:58]Send response to host [14:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1913,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:42:58]free response buf [14:42:58]execute_script done [14:42:58]execute_script returns [14:42:58]free content buf [14:42:58]Sock 9.Close socket [14:42:58]Sock 9.Thread stoped [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:28]accept exits with 8 [14:43:28]New connection [14:43:28]New thread 3066977636 created [14:43:28]Thread 3066834276 joined [14:43:28]Waiting for new connection... [14:43:28] Sock 8.Parse request [14:43:28]Sock 8.Check first char [14:43:28]Sock 8.First char is OK [14:43:28]request: POST /json_proto HTTP/1.0 [14:43:28]Method: POST [14:43:28]URL: /json_proto [14:43:28]Method is POST - this is cgi request [14:43:28]url: /json_proto [14:43:28]query_string will be loaded in cgi processing [14:43:28]execute_cgi json_proto POST (null) [14:43:28]execute_cgi path=json_proto method=POST [14:43:28]POST find Content-Length [14:43:28]Host: 172.17.35.133:8080 [14:43:28]Content-Length: 632 [14:43:28]Content-Type: application/json [14:43:28] [14:43:28]POST finish read [14:43:28]Found Content-Length = 632 [14:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256334", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:28]execute_script... [14:43: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)256334", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:28]POST & json_proto [14:43:28]process_json_proto [14:43:28]json parsed OK: [14:43:28]protocol is kg_v1.0 [14:43:28]action value=close_receipt [14:43:28]process_action close_receipt [14:43:28]cmd_close_receipt [14:43:28]MH_GetDate [14:43:28]Write to MH i2c: F0 00 00 BB 10 BA [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: F0 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: F0 09 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: F0 09 00 BB 10 00 92 92 92 66 1B 28 2A 66 B2 [14:43:28]GetLastDocTimeStamp 1720881776 [14:43:28]current date 1720881810 [14:43:28]FM_GetShiftState [14:43:28]SAM_PROTO_GetShiftState [14:43:28]wFMCommunicate request_size=4 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 13 01 00 [14:43:28]Write to MH i2c: E2 08 00 BC 10 80 13 01 00 00 00 00 00 49 [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 0E 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 0E 00 BC 10 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D4 [14:43:28]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:43:28]wFMCommunicate OK [14:43:28]SAM_PROTO_GetShiftState done [14:43:28]FM_GetShiftState done [14:43:28]opened in 1720829379 [14:43:28]opened+sec_in_day 1720915779 [14:43:28]quantity*price = 4000 [14:43:28]sum+1 = 4001 [14:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 83 13.07.2024 14:43 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1914 ФПД: 266496939142603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144330&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1914&fm=266496939142603&tin=02508201610067®Number=0000000000177495&sum=4000 0 [14:43:30]StoreToDocumentArchive [14:43:30]shift 24 fd 1914 [14:43:30]save to /storage/0024/doc_00001914 [14:43:30]save last doc name /storage/0024/doc_00001914 to /storage/kkm_last_doc_name [14:43:30]save OK [14:43:30]Clear old archive folders... [14:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:43:30]tlvbuf is 0100D920 [14:43:30]SAM_PROTO_ClearQueue [14:43:30]wFMCommunicate request_size=4 [14:43:30]MH_SAM_APDU [14:43:30]CAPDU: 80 09 00 00 [14:43:30]Write to MH i2c: E2 08 00 C9 10 80 09 00 00 00 00 00 00 4B [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:30]Read from MH i2c: E2 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [14:43:30]RAPDU: 90 00 [14:43:30]wFMCommunicate OK [14:43:30]SAM_PROTO_ClearQueue done [14:43:30]KKMCreateOFDPacket [14:43:30]OFDProtocolAddRootSTLVToBuf [14:43:30]FM_MakeSignedData [14:43:30]FM_MakeSignedData [14:43:30]SAM_PROTO_SignData [14:43:30]wFMCommunicate request_size=4 [14:43:30]MH_SAM_APDU [14:43:30]CAPDU: 80 0D 01 02 [14:43:30]Write to MH i2c: E2 08 00 CA 10 80 0D 01 02 00 00 00 00 53 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:30]Read from MH i2c: E2 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [14:43:30]RAPDU: 90 00 [14:43:30]wFMCommunicate OK [14:43:30]wFMCommunicate request_size=255 [14:43:30]MH_SAM_APDU [14:43:30]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 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 92 92 92 66 0E 04 04 00 18 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 [14:43:30]Write to MH i2c: E2 02 01 CB 10 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 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 92 92 92 66 0E 04 04 00 18 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 C7 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:30]Read from MH i2c: E2 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [14:43:30]RAPDU: 90 00 [14:43:30]wFMCommunicate OK [14:43:30]wFMCommunicate request_size=30 [14:43:30]MH_SAM_APDU [14:43:30]CAPDU: 80 0D 02 02 19 32 30 39 38 35 39 32 10 04 04 00 7A 07 00 00 35 04 06 00 F2 60 A7 64 2D CB [14:43:30]Write to MH i2c: E2 21 00 CC 10 80 0D 02 02 19 00 32 30 39 38 35 39 32 10 04 04 00 7A 07 00 00 35 04 06 00 F2 60 A7 64 2D CB 00 00 28 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:30]Read from MH i2c: E2 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [14:43:30]RAPDU: 90 00 [14:43:30]wFMCommunicate OK [14:43:30]wFMCommunicate request_size=4 [14:43:30]MH_SAM_APDU [14:43:30]CAPDU: 80 0D 03 02 [14:43:30]Write to MH i2c: E2 08 00 CD 10 80 0D 03 02 00 00 00 00 58 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:30]Read from MH i2c: E2 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 0B 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 0B 00 CD 10 00 52 65 A0 6E 6D 31 79 F4 90 00 29 [14:43:30]RAPDU: 52 65 A0 6E 6D 31 79 F4 90 00 [14:43:30]wFMCommunicate OK [14:43:30]SAM_PROTO_SignData done [14:43:30]FM_MakeSignedData done [14:43:30]CreateOFDProtocolMessage [14:43:30]wFMCommunicate request_size=4 [14:43:30]MH_SAM_APDU [14:43:30]CAPDU: 80 11 00 00 [14:43:30]Write to MH i2c: E2 08 00 CE 10 80 11 00 00 00 00 00 00 58 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:30]Read from MH i2c: E2 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 17 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: E2 17 00 CE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AE [14:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:43:30]wFMCommunicate OK [14:43:30]CreateOFDProtocolMessage done [14:43:30]OFDSenderStorePacket 1914 [14:43:30]StoreOFDPacket docnum=1914 [14:43: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 23 01 00 00 5F 0F 1B 01 CC FC 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 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 92 92 92 66 0E 04 04 00 18 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 7A 07 00 00 35 04 06 00 F2 60 A7 64 2D CB 52 65 A0 6E 6D 31 79 F4 [14:43:30]CheckFolder [14:43:30]dirname=/storage/ofd_packets [14:43:30]CheckFolder done [14:43:30]ProducePacketName [14:43:30]name=ofd_packets/00001914 [14:43:30]NVStorageSaveData ofd_packets/00001914 [14:43:30]File name is /storage/ofd_packets/00001914 [14:43:30]Write 321 bytes [14:43:30]NVStorageSaveData done [14:43:30]OFDSenderStorePacket done [14:43:30]KKMCreateOFDPacket done [14:43:30]NVStorageSaveData kkm_last_timestamp [14:43:30]File name is /storage/kkm_last_timestamp [14:43:30]Write 4 bytes [14:43:30]NVStorageSaveData done [14:43:30]ExternCall_PrintAddStr [14:43:30]wPrintStart [14:43:30]Write to MH i2c: 01 00 00 CF 10 DF [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: 01 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: 01 07 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: 01 07 00 CF 10 00 00 00 00 00 FF 0F F4 [14:43:30]RasterBufferAndPrint [14:43:30]line Счет N : (3)256334 [14:43:30]line ИНН: 02508201610067 [14:43:30]line Контрольно-Кассовый Чек [14:43:30]line ПРОДАЖА [14:43:30]line Товар: 4700000160211 [14:43:30]line Вода Легенда 0,5л [14:43:30]line 1.000 * 40.00 [14:43:30]line = 40.00 [14:43:30]line НДС 12% НСП 1% [14:43:30]line > о реализуемом товаре [14:43:30]line ИТОГО: 40.00 [14:43:30]line НСП 1% : 0.35 [14:43:30]line НДС 12% : 4.25 [14:43:30]line Наличными: 40.00 [14:43:30]line Безнал.: 0.00 [14:43:30]line Место: АЗС № 76 "Партнер Нефть" [14:43:30]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:43:30]line СНО: Общий режим [14:43:30]line Чек 83 13.07.2024 14:43 [14:43:30]line Смена: 24 ФФД: 1.0 [14:43:30]line ЗНМ: 0300000124 [14:43:30]line РНМ: 0000000000177495 [14:43:30]line Версия ККМ: 001 [14:43:30]line ФМ: 0000000002098592 [14:43:30]line ФД: 1914 [14:43:30]line ФПД: 266496939142603 [14:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144330&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1914&fm=266496939142603&tin=02508201610067®Number=0000000000177495&sum=4000 [14:43:30]line 0 [14:43:30]OFD Sender: Processing packet 1914 [packets to send 1, broken 0] [14:43:30]ProducePacketName [14:43:30]name=ofd_packets/00001914 [14:43:30]OFD Sender: To server: pG, [14:43:30]CommunicateWithHost lk.salyk.kg:30040 [14:43:30]ConnectInit lk.salyk.kg [14:43:30]written 0, free lines is 4095 [14:43:31]Write to MH i2c: 01 00 00 F7 10 07 [14:43:31]Write i2c OK [14:43:31]MH_I2C_Read... [14:43:31]Read from MH i2c: 01 [14:43:31]MH_I2C_Read... [14:43:31]Read from MH i2c: 01 07 00 [14:43:31]MH_I2C_Read... [14:43:31]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 01 0D 1C [14:43:31]RasterBufferAndPrint [14:43:31]line [14:43:31]line [14:43:31]line [14:43:31]line [14:43:31]line [14:43:31]written 0, free lines is 3335 [14:43:31]MH_Cut [14:43:31]Write to MH i2c: D1 01 00 FE 10 01 E0 [14:43:31]Write i2c OK [14:43:31]MH_I2C_Read... [14:43:31]Read from MH i2c: D1 [14:43:31]MH_I2C_Read... [14:43:31]Read from MH i2c: D1 01 00 [14:43:31]MH_I2C_Read... [14:43:31]Read from MH i2c: D1 01 00 FE 10 00 DF [14:43:31]Write to MH i2c: 01 00 00 FF 10 0F [14:43:31]Write i2c OK [14:43:31]MH_I2C_Read... [14:43:32]*** Cut start [14:43:32]*** Partial cut [14:43:32]*** CUTSNS_PIN = 1 [14:43:32]*** CUTSNS_PIN = 0 [14:43:32]*** Brake cut motor [14:43:32]Read from MH i2c: 01 [14:43:32]MH_I2C_Read... [14:43:32]*** Stop cut motor [14:43:32]*** Cut end [14:43:32]Read from MH i2c: 01 07 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: 01 07 00 FF 10 00 00 00 00 00 FF 0F 24 [14:43:32]process_action close_receipt done [14:43:32]requested_data is exist [14:43:32]produce_requested_data [14:43:32]requested_item fm.sn is exist - process it [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 11 00 00 [14:43:32]Write to MH i2c: E2 08 00 00 11 80 11 00 00 00 00 00 00 8B [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 17 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 17 00 00 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E1 [14:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:43:32]wFMCommunicate OK [14:43:32]requested_item fd.num is exist - process it [14:43:32]SAM_PROTO_GetFieldsCounters [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 13 00 00 [14:43:32]Write to MH i2c: E2 08 00 01 11 80 13 00 00 00 00 00 00 8E [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 62 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 62 00 01 11 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 7A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [14:43: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 7A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:32]wFMCommunicate OK [14:43:32]SAM_PROTO_GetFieldsCounters done [14:43:32]requested_item shift.num is exist - process it [14:43:32]requested_item shift.opened is exist - process it [14:43:32]req_shift_opened [14:43:32]FM_GetShiftState [14:43:32]SAM_PROTO_GetShiftState [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 13 01 00 [14:43:32]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 0E 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1B [14:43:32]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:43:32]wFMCommunicate OK [14:43:32]SAM_PROTO_GetShiftState done [14:43:32]FM_GetShiftState done [14:43:32]req_shift_opened done [14:43:32]requested_item shift.open_date is exist - process it [14:43:32]req_shift_open_date [14:43:32]req_shift_open_date done [14:43:32]produce_requested_data done [14:43:32]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1914,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:43:32]process_action_free close_receipt [14:43:32]json_value_free [14:43:32]json_value_free done [14:43:32]process_json_proto returns [14:43:32]Send response to host [14:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1914,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:43:32]free response buf [14:43:32]execute_script done [14:43:32]execute_script returns [14:43:32]free content buf [14:43:32]Sock 8.Close socket [14:43:32]Sock 8.Thread stoped [14:43:36]Connected sock=11 [14:43:36]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 5F 0F 1B 01 CC FC 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 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 92 92 92 66 0E 04 04 00 18 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 7A 07 00 00 35 04 06 00 F2 60 A7 64 2D CB 52 65 A0 6E 6D 31 79 F4 [14:43: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 30 6E 47 00 21 40 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 7A 07 00 00 F4 03 04 00 CE 3D 92 66 B6 04 01 00 00 EF 96 BE 4E 78 B8 5A 21 [14:43:36]CommunicateWithHost err = 0 [14:43:36]CheckOFDResponse [14:43:36]1017 (14) - 77093643461234 [14:43:36]1041 (16) - 0000000002098592 [14:43:36]1040 (4) - 1914 [14:43:36]1012 (4) - 13.07.2024 08:41 [14:43:36]1206 (1) - 0 [14:43:36]OFD Sender: Remove packet 1914 [14:43:36]ProducePacketName [14:43:36]name=ofd_packets/00001914 [14:43:36]NVStorageDeleteData [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:43:57]recv_with_timeout no data received [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:09]recv_with_timeout no data received [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]recv_with_timeout no data received [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:32]recv_with_timeout no data received [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:47]recv_with_timeout no data received [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:53]accept exits with 9 [14:54:53]New connection [14:54:53]New thread 3066834276 created [14:54:53]Thread 3066977636 joined [14:54:53]Waiting for new connection... [14:54:53] Sock 9.Parse request [14:54:53]Sock 9.Check first char [14:54:53]Sock 9.First char is OK [14:54:53]request: POST /json_proto HTTP/1.0 [14:54:53]Method: POST [14:54:53]URL: /json_proto [14:54:53]Method is POST - this is cgi request [14:54:53]url: /json_proto [14:54:53]query_string will be loaded in cgi processing [14:54:53]execute_cgi json_proto POST (null) [14:54:53]execute_cgi path=json_proto method=POST [14:54:53]POST find Content-Length [14:54:53]Host: 172.17.35.133:8080 [14:54:53]Content-Length: 908 [14:54:53]Content-Type: application/json [14:54:53] [14:54:53]POST finish read [14:54:53]Found Content-Length = 908 [14:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256335", "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": "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" : 247.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:53]execute_script... [14:54: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)256335", "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": "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" : 247.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:53]POST & json_proto [14:54:53]process_json_proto [14:54:53]json parsed OK: [14:54:53]protocol is kg_v1.0 [14:54:53]action value=close_receipt [14:54:53]process_action close_receipt [14:54:53]cmd_close_receipt [14:54:53]MH_GetDate [14:54:53]Write to MH i2c: F0 00 00 03 11 03 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: F0 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: F0 09 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: F0 09 00 03 11 00 3F 95 92 66 1B 28 2A 66 AB [14:54:53]GetLastDocTimeStamp 1720881810 [14:54:53]current date 1720882495 [14:54:53]FM_GetShiftState [14:54:53]SAM_PROTO_GetShiftState [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 13 01 00 [14:54:53]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 0E 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1D [14:54:53]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:54:53]wFMCommunicate OK [14:54:53]SAM_PROTO_GetShiftState done [14:54:53]FM_GetShiftState done [14:54:53]opened in 1720829379 [14:54:53]opened+sec_in_day 1720915779 [14:54:53]quantity*price = 14000 [14:54:53]sum+1 = 14001 [14:54:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189318 Холодный чай Fuse лимон 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 247.00 НСП 1% : 2.19 НДС 12% : 26.23 Наличными: 247.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 84 13.07.2024 14:54 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1915 ФПД: 155752187575319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145455&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1915&fm=155752187575319&tin=02508201610067®Number=0000000000177495&sum=24700 0 [14:54:54]StoreToDocumentArchive [14:54:54]shift 24 fd 1915 [14:54:54]save to /storage/0024/doc_00001915 [14:54:54]save last doc name /storage/0024/doc_00001915 to /storage/kkm_last_doc_name [14:54:54]save OK [14:54:54]Clear old archive folders... [14:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=390 [14:54:54]tlvbuf is 0100E230 [14:54:54]SAM_PROTO_ClearQueue [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 09 00 00 [14:54:54]Write to MH i2c: E2 08 00 11 11 80 09 00 00 00 00 00 00 94 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [14:54:54]RAPDU: 90 00 [14:54:54]wFMCommunicate OK [14:54:54]SAM_PROTO_ClearQueue done [14:54:54]KKMCreateOFDPacket [14:54:54]OFDProtocolAddRootSTLVToBuf [14:54:54]FM_MakeSignedData [14:54:54]FM_MakeSignedData [14:54:54]SAM_PROTO_SignData [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 0D 01 02 [14:54:54]Write to MH i2c: E2 08 00 12 11 80 0D 01 02 00 00 00 00 9C [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [14:54:54]RAPDU: 90 00 [14:54:54]wFMCommunicate OK [14:54:54]wFMCommunicate request_size=255 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 0D 02 02 FA 03 00 86 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 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 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [14:54:54]Write to MH i2c: E2 02 01 13 11 80 0D 02 02 FA 00 03 00 86 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 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 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 B2 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [14:54:54]RAPDU: 90 00 [14:54:54]wFMCommunicate OK [14:54:54]wFMCommunicate request_size=149 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3F 95 92 66 0E 04 04 00 18 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 7B 07 00 00 35 04 06 00 8D A7 E1 D0 3C 17 [14:54:54]Write to MH i2c: E2 98 00 14 11 80 0D 02 02 90 00 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3F 95 92 66 0E 04 04 00 18 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 7B 07 00 00 35 04 06 00 8D A7 E1 D0 3C 17 00 00 EA [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [14:54:54]RAPDU: 90 00 [14:54:54]wFMCommunicate OK [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 0D 03 02 [14:54:54]Write to MH i2c: E2 08 00 15 11 80 0D 03 02 00 00 00 00 A1 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 0B 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 0B 00 15 11 00 AB E6 FF 91 8D 28 0E B3 90 00 39 [14:54:54]RAPDU: AB E6 FF 91 8D 28 0E B3 90 00 [14:54:54]wFMCommunicate OK [14:54:54]SAM_PROTO_SignData done [14:54:54]FM_MakeSignedData done [14:54:54]CreateOFDProtocolMessage [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 11 00 00 [14:54:54]Write to MH i2c: E2 08 00 16 11 80 11 00 00 00 00 00 00 A1 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 17 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 17 00 16 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F7 [14:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:54:54]wFMCommunicate OK [14:54:54]CreateOFDProtocolMessage done [14:54:54]OFDSenderStorePacket 1915 [14:54:54]StoreOFDPacket docnum=1915 [14:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 9A 01 00 00 20 18 92 01 33 FF 5A 03 01 00 03 00 86 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 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 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3F 95 92 66 0E 04 04 00 18 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 7B 07 00 00 35 04 06 00 8D A7 E1 D0 3C 17 AB E6 FF 91 8D 28 0E B3 [14:54:54]CheckFolder [14:54:54]dirname=/storage/ofd_packets [14:54:54]CheckFolder done [14:54:54]ProducePacketName [14:54:54]name=ofd_packets/00001915 [14:54:54]NVStorageSaveData ofd_packets/00001915 [14:54:54]File name is /storage/ofd_packets/00001915 [14:54:54]Write 440 bytes [14:54:54]NVStorageSaveData done [14:54:54]OFDSenderStorePacket done [14:54:54]KKMCreateOFDPacket done [14:54:54]NVStorageSaveData kkm_last_timestamp [14:54:54]File name is /storage/kkm_last_timestamp [14:54:54]Write 4 bytes [14:54:54]NVStorageSaveData done [14:54:54]ExternCall_PrintAddStr [14:54:54]wPrintStart [14:54:54]Write to MH i2c: 01 00 00 17 11 28 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: 01 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: 01 07 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [14:54:55]RasterBufferAndPrint [14:54:55]line Счет N : (3)256335 [14:54:55]line ИНН: 02508201610067 [14:54:55]line Контрольно-Кассовый Чек [14:54:55]line ПРОДАЖА [14:54:55]line Товар: 48743587 [14:54:55]line Сигареты Winston XStyle Silver [14:54:55]line 1.000 * 140.00 [14:54:55]line = 140.00 [14:54:55]line НДС 12% НСП 1% [14:54:55]line > о реализуемом товаре [14:54:55]line Товар: 5449000189318 [14:54:55]line Холодный чай Fuse лимон 1л [14:54:55]line 1.000 * 107.00 [14:54:55]line = 107.00 [14:54:55]line НДС 12% НСП 1% [14:54:55]line > о реализуемом товаре [14:54:55]line ИТОГО: 247.00 [14:54:55]line НСП 1% : 2.19 [14:54:55]line НДС 12% : 26.23 [14:54:55]line Наличными: 247.00 [14:54:55]line Безнал.: 0.00 [14:54:55]line Место: АЗС № 76 "Партнер Нефть" [14:54:55]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [14:54:55]line СНО: Общий режим [14:54:55]line Чек 84 13.07.2024 14:54 [14:54:55]line Смена: 24 ФФД: 1.0 [14:54:55]line ЗНМ: 0300000124 [14:54:55]line РНМ: 0000000000177495 [14:54:55]line Версия ККМ: 001 [14:54:55]line ФМ: 0000000002098592 [14:54:55]line ФД: 1915 [14:54:55]line ФПД: 155752187575319 [14:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145455&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1915&fm=155752187575319&tin=02508201610067®Number=0000000000177495&sum=24700 [14:54:55]OFD Sender: Processing packet 1915 [packets to send 1, broken 0] [14:54:55]ProducePacketName [14:54:55]name=ofd_packets/00001915 [14:54:55]OFD Sender: To server: pG, [14:54:55]CommunicateWithHost lk.salyk.kg:30040 [14:54:55]ConnectInit lk.salyk.kg [14:54:55]line 0 [14:54:55]written 0, free lines is 4095 [14:54:55]Write to MH i2c: 01 00 00 46 11 57 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 07 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 A2 0C 0C [14:54:55]RasterBufferAndPrint [14:54:55]line [14:54:55]line [14:54:55]line [14:54:55]line [14:54:55]line [14:54:55]written 0, free lines is 3241 [14:54:55]MH_Cut [14:54:55]Write to MH i2c: D1 01 00 4D 11 01 30 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: D1 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: D1 01 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: D1 01 00 4D 11 00 2F [14:54:55]Write to MH i2c: 01 00 00 4E 11 5F [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:56]*** Cut start [14:54:56]*** Partial cut [14:54:56]*** CUTSNS_PIN = 1 [14:54:56]*** CUTSNS_PIN = 0 [14:54:56]*** Brake cut motor [14:54:57]Read from MH i2c: 01 [14:54:57]MH_I2C_Read... [14:54:57]*** Stop cut motor [14:54:57]*** Cut end [14:54:57]Read from MH i2c: 01 07 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 07 00 4E 11 00 00 00 00 00 FF 0F 74 [14:54:57]process_action close_receipt done [14:54:57]requested_data is exist [14:54:57]produce_requested_data [14:54:57]requested_item fm.sn is exist - process it [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 11 00 00 [14:54:57]Write to MH i2c: E2 08 00 4F 11 80 11 00 00 00 00 00 00 DA [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 4F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 30 [14:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [14:54:57]wFMCommunicate OK [14:54:57]requested_item fd.num is exist - process it [14:54:57]SAM_PROTO_GetFieldsCounters [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 13 00 00 [14:54:57]Write to MH i2c: E2 08 00 50 11 80 13 00 00 00 00 00 00 DD [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 62 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 62 00 50 11 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 7B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [14:54: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 7B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:57]wFMCommunicate OK [14:54:57]SAM_PROTO_GetFieldsCounters done [14:54:57]requested_item shift.num is exist - process it [14:54:57]requested_item shift.opened is exist - process it [14:54:57]req_shift_opened [14:54:57]FM_GetShiftState [14:54:57]SAM_PROTO_GetShiftState [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 13 01 00 [14:54:57]Write to MH i2c: E2 08 00 51 11 80 13 01 00 00 00 00 00 DF [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 0E 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 0E 00 51 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6A [14:54:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [14:54:57]wFMCommunicate OK [14:54:57]SAM_PROTO_GetShiftState done [14:54:57]FM_GetShiftState done [14:54:57]req_shift_opened done [14:54:57]requested_item shift.open_date is exist - process it [14:54:57]req_shift_open_date [14:54:57]req_shift_open_date done [14:54:57]produce_requested_data done [14:54:57]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1915,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [14:54:57]process_action_free close_receipt [14:54:57]json_value_free [14:54:57]json_value_free done [14:54:57]process_json_proto returns [14:54:57]Send response to host [14:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1915,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [14:54:57]free response buf [14:54:57]execute_script done [14:54:57]execute_script returns [14:54:57]free content buf [14:54:57]Sock 9.Close socket [14:54:57]Sock 9.Thread stoped [14:57:04]ConnectInit Can't connect to host [14:57:04]CommunicateWithHost connect error [14:57:04]CommunicateWithHost err = -1 [14:57:04]OFD Sender: Server communicate error [14:57:09]OFD Sender: Processing packet 1915 [packets to send 1, broken 0] [14:57:09]ProducePacketName [14:57:09]name=ofd_packets/00001915 [14:57:09]OFD Sender: To server: pG, [14:57:09]CommunicateWithHost lk.salyk.kg:30040 [14:57:09]ConnectInit lk.salyk.kg [14:57:09]Connected sock=9 [14:57: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 9A 01 00 00 20 18 92 01 33 FF 5A 03 01 00 03 00 86 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 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 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3F 95 92 66 0E 04 04 00 18 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 7B 07 00 00 35 04 06 00 8D A7 E1 D0 3C 17 AB E6 FF 91 8D 28 0E B3 [14:57: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 96 25 47 00 D9 02 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 7B 07 00 00 F4 03 04 00 FB 40 92 66 B6 04 01 00 00 00 C4 AA 05 8D 69 AA 12 [14:57:10]CommunicateWithHost err = 0 [14:57:10]CheckOFDResponse [14:57:10]1017 (14) - 77093643461234 [14:57:10]1041 (16) - 0000000002098592 [14:57:10]1040 (4) - 1915 [14:57:10]1012 (4) - 13.07.2024 08:55 [14:57:10]1206 (1) - 0 [14:57:10]OFD Sender: Remove packet 1915 [14:57:10]ProducePacketName [14:57:10]name=ofd_packets/00001915 [14:57:10]NVStorageDeleteData [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:34]accept exits with 8 [15:03:34]New connection [15:03:34]New thread 3066977636 created [15:03:34]Thread 3066834276 joined [15:03:34]Waiting for new connection... [15:03:34] Sock 8.Parse request [15:03:34]Sock 8.Check first char [15:03:34]Sock 8.First char is OK [15:03:34]request: POST /json_proto HTTP/1.0 [15:03:34]Method: POST [15:03:34]URL: /json_proto [15:03:34]Method is POST - this is cgi request [15:03:34]url: /json_proto [15:03:34]query_string will be loaded in cgi processing [15:03:34]execute_cgi json_proto POST (null) [15:03:34]execute_cgi path=json_proto method=POST [15:03:34]POST find Content-Length [15:03:34]Host: 172.17.35.133:8080 [15:03:34]Content-Length: 632 [15:03:34]Content-Type: application/json [15:03:34] [15:03:34]POST finish read [15:03:34]Found Content-Length = 632 [15:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256336", "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" ] } } [15:03:34]execute_script... [15:03: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)256336", "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" ] } } [15:03:34]POST & json_proto [15:03:34]process_json_proto [15:03:34]json parsed OK: [15:03:34]protocol is kg_v1.0 [15:03:34]action value=close_receipt [15:03:34]process_action close_receipt [15:03:34]cmd_close_receipt [15:03:34]MH_GetDate [15:03:34]Write to MH i2c: F0 00 00 52 11 52 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: F0 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: F0 09 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: F0 09 00 52 11 00 48 97 92 66 1B 28 2A 66 05 [15:03:34]GetLastDocTimeStamp 1720882495 [15:03:34]current date 1720883016 [15:03:34]FM_GetShiftState [15:03:34]SAM_PROTO_GetShiftState [15:03:34]wFMCommunicate request_size=4 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 13 01 00 [15:03:34]Write to MH i2c: E2 08 00 53 11 80 13 01 00 00 00 00 00 E1 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 0E 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 0E 00 53 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6C [15:03:34]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:03:34]wFMCommunicate OK [15:03:34]SAM_PROTO_GetShiftState done [15:03:34]FM_GetShiftState done [15:03:34]opened in 1720829379 [15:03:34]opened+sec_in_day 1720915779 [15:03:34]quantity*price = 6000 [15:03:34]sum+1 = 6001 [15:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 85 13.07.2024 15:03 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1916 ФПД: 236943856687122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150336&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1916&fm=236943856687122&tin=02508201610067®Number=0000000000177495&sum=6000 0 [15:03:36]StoreToDocumentArchive [15:03:36]shift 24 fd 1916 [15:03:36]save to /storage/0024/doc_00001916 [15:03:36]save last doc name /storage/0024/doc_00001916 to /storage/kkm_last_doc_name [15:03:36]OFD Sender: No OFD packet to send [15:03:36]save OK [15:03:36]Clear old archive folders... [15:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:03:36]tlvbuf is 00FF9F90 [15:03:36]SAM_PROTO_ClearQueue [15:03:36]wFMCommunicate request_size=4 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 09 00 00 [15:03:36]Write to MH i2c: E2 08 00 60 11 80 09 00 00 00 00 00 00 E3 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:36]Read from MH i2c: E2 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [15:03:36]RAPDU: 90 00 [15:03:36]wFMCommunicate OK [15:03:36]SAM_PROTO_ClearQueue done [15:03:36]KKMCreateOFDPacket [15:03:36]OFDProtocolAddRootSTLVToBuf [15:03:36]FM_MakeSignedData [15:03:36]FM_MakeSignedData [15:03:36]SAM_PROTO_SignData [15:03:36]wFMCommunicate request_size=4 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 0D 01 02 [15:03:36]Write to MH i2c: E2 08 00 61 11 80 0D 01 02 00 00 00 00 EB [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:36]Read from MH i2c: E2 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [15:03:36]RAPDU: 90 00 [15:03:36]wFMCommunicate OK [15:03:36]wFMCommunicate request_size=255 [15:03:36]MH_SAM_APDU [15:03:36]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 55 00 00 00 F4 03 04 00 48 97 92 66 0E 04 04 00 18 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 [15:03:36]Write to MH i2c: E2 02 01 62 11 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 55 00 00 00 F4 03 04 00 48 97 92 66 0E 04 04 00 18 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 66 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:36]Read from MH i2c: E2 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [15:03:36]RAPDU: 90 00 [15:03:36]wFMCommunicate OK [15:03:36]wFMCommunicate request_size=30 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 0D 02 02 19 32 30 39 38 35 39 32 10 04 04 00 7C 07 00 00 35 04 06 00 D7 7F CA 68 D8 12 [15:03:36]Write to MH i2c: E2 21 00 63 11 80 0D 02 02 19 00 32 30 39 38 35 39 32 10 04 04 00 7C 07 00 00 35 04 06 00 D7 7F CA 68 D8 12 00 00 DF [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:36]Read from MH i2c: E2 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [15:03:36]RAPDU: 90 00 [15:03:36]wFMCommunicate OK [15:03:36]wFMCommunicate request_size=4 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 0D 03 02 [15:03:36]Write to MH i2c: E2 08 00 64 11 80 0D 03 02 00 00 00 00 F0 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:36]Read from MH i2c: E2 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 0B 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 0B 00 64 11 00 47 19 48 F3 6E B8 E5 57 90 00 EE [15:03:36]RAPDU: 47 19 48 F3 6E B8 E5 57 90 00 [15:03:36]wFMCommunicate OK [15:03:36]SAM_PROTO_SignData done [15:03:36]FM_MakeSignedData done [15:03:36]CreateOFDProtocolMessage [15:03:36]wFMCommunicate request_size=4 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 11 00 00 [15:03:36]Write to MH i2c: E2 08 00 65 11 80 11 00 00 00 00 00 00 F0 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:36]Read from MH i2c: E2 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 17 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: E2 17 00 65 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 46 [15:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:03:36]wFMCommunicate OK [15:03:36]CreateOFDProtocolMessage done [15:03:36]OFDSenderStorePacket 1916 [15:03:36]StoreOFDPacket docnum=1916 [15:03: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 23 01 00 00 01 23 1B 01 D5 FD 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 55 00 00 00 F4 03 04 00 48 97 92 66 0E 04 04 00 18 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 7C 07 00 00 35 04 06 00 D7 7F CA 68 D8 12 47 19 48 F3 6E B8 E5 57 [15:03:36]CheckFolder [15:03:36]dirname=/storage/ofd_packets [15:03:36]CheckFolder done [15:03:36]ProducePacketName [15:03:36]name=ofd_packets/00001916 [15:03:36]NVStorageSaveData ofd_packets/00001916 [15:03:36]File name is /storage/ofd_packets/00001916 [15:03:36]Write 321 bytes [15:03:36]NVStorageSaveData done [15:03:36]OFDSenderStorePacket done [15:03:36]KKMCreateOFDPacket done [15:03:36]NVStorageSaveData kkm_last_timestamp [15:03:36]File name is /storage/kkm_last_timestamp [15:03:36]Write 4 bytes [15:03:36]NVStorageSaveData done [15:03:36]ExternCall_PrintAddStr [15:03:36]wPrintStart [15:03:36]Write to MH i2c: 01 00 00 66 11 77 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: 01 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: 01 07 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: 01 07 00 66 11 00 00 00 00 00 FF 0F 8C [15:03:36]RasterBufferAndPrint [15:03:36]line Счет N : (3)256336 [15:03:36]line ИНН: 02508201610067 [15:03:36]line Контрольно-Кассовый Чек [15:03:36]line ПРОДАЖА [15:03:36]line Товар: 4700000160204 [15:03:36]line Вода Легенда 1,5л [15:03:36]line 1.000 * 60.00 [15:03:36]line = 60.00 [15:03:36]line НДС 12% НСП 1% [15:03:36]line > о реализуемом товаре [15:03:36]line ИТОГО: 60.00 [15:03:36]line НСП 1% : 0.53 [15:03:36]line НДС 12% : 6.37 [15:03:36]line Наличными: 60.00 [15:03:36]line Безнал.: 0.00 [15:03:36]line Место: АЗС № 76 "Партнер Нефть" [15:03:36]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:03:36]line СНО: Общий режим [15:03:36]line Чек 85 13.07.2024 15:03 [15:03:36]line Смена: 24 ФФД: 1.0 [15:03:36]line ЗНМ: 0300000124 [15:03:36]line РНМ: 0000000000177495 [15:03:36]line Версия ККМ: 001 [15:03:36]line ФМ: 0000000002098592 [15:03:36]line ФД: 1916 [15:03:36]line ФПД: 236943856687122 [15:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150336&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1916&fm=236943856687122&tin=02508201610067®Number=0000000000177495&sum=6000 [15:03:36]line 0 [15:03:36]OFD Sender: Processing packet 1916 [packets to send 1, broken 0] [15:03:36]ProducePacketName [15:03:36]name=ofd_packets/00001916 [15:03:36]OFD Sender: To server: pG, [15:03:36]CommunicateWithHost lk.salyk.kg:30040 [15:03:36]ConnectInit lk.salyk.kg [15:03:36]written 0, free lines is 4095 [15:03:36]Connected sock=11 [15:03:36]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 01 23 1B 01 D5 FD 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 55 00 00 00 F4 03 04 00 48 97 92 66 0E 04 04 00 18 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 7C 07 00 00 35 04 06 00 D7 7F CA 68 D8 12 47 19 48 F3 6E B8 E5 57 [15:03: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 39 DC 47 00 94 88 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 7C 07 00 00 F4 03 04 00 7E 42 92 66 B6 04 01 00 00 62 EB 50 20 6A 05 BC D1 [15:03:37]CommunicateWithHost err = 0 [15:03:37]CheckOFDResponse [15:03:37]1017 (14) - 77093643461234 [15:03:37]1041 (16) - 0000000002098592 [15:03:37]1040 (4) - 1916 [15:03:37]1012 (4) - 13.07.2024 09:01 [15:03:37]1206 (1) - 0 [15:03:37]OFD Sender: Remove packet 1916 [15:03:37]ProducePacketName [15:03:37]name=ofd_packets/00001916 [15:03:37]NVStorageDeleteData [15:03:37]Write to MH i2c: 01 00 00 8E 11 9F [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: 01 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: 01 07 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 11 0D C4 [15:03:37]RasterBufferAndPrint [15:03:37]line [15:03:37]line [15:03:37]line [15:03:37]line [15:03:37]line [15:03:37]written 0, free lines is 3349 [15:03:37]MH_Cut [15:03:37]Write to MH i2c: D1 01 00 95 11 01 78 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: D1 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: D1 01 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: D1 01 00 95 11 00 77 [15:03:37]Write to MH i2c: 01 00 00 96 11 A7 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]OFD Sender: No OFD packet to send [15:03:38]*** Cut start [15:03:38]*** Partial cut [15:03:38]*** CUTSNS_PIN = 1 [15:03:38]*** CUTSNS_PIN = 0 [15:03:38]*** Brake cut motor [15:03:38]Read from MH i2c: 01 [15:03:38]MH_I2C_Read... [15:03:38]*** Stop cut motor [15:03:38]*** Cut end [15:03:38]Read from MH i2c: 01 07 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 FF 0F BC [15:03:38]process_action close_receipt done [15:03:38]requested_data is exist [15:03:38]produce_requested_data [15:03:38]requested_item fm.sn is exist - process it [15:03:38]wFMCommunicate request_size=4 [15:03:38]MH_SAM_APDU [15:03:38]CAPDU: 80 11 00 00 [15:03:38]Write to MH i2c: E2 08 00 97 11 80 11 00 00 00 00 00 00 22 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:38]Read from MH i2c: E2 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 17 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 17 00 97 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 78 [15:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:03:38]wFMCommunicate OK [15:03:38]requested_item fd.num is exist - process it [15:03:38]SAM_PROTO_GetFieldsCounters [15:03:38]wFMCommunicate request_size=4 [15:03:38]MH_SAM_APDU [15:03:38]CAPDU: 80 13 00 00 [15:03:38]Write to MH i2c: E2 08 00 98 11 80 13 00 00 00 00 00 00 25 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:38]Read from MH i2c: E2 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 62 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 62 00 98 11 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 7C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [15:03:38]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 7C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:38]wFMCommunicate OK [15:03:38]SAM_PROTO_GetFieldsCounters done [15:03:38]requested_item shift.num is exist - process it [15:03:38]requested_item shift.opened is exist - process it [15:03:38]req_shift_opened [15:03:38]FM_GetShiftState [15:03:38]SAM_PROTO_GetShiftState [15:03:38]wFMCommunicate request_size=4 [15:03:38]MH_SAM_APDU [15:03:38]CAPDU: 80 13 01 00 [15:03:38]Write to MH i2c: E2 08 00 99 11 80 13 01 00 00 00 00 00 27 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:38]Read from MH i2c: E2 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 0E 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 0E 00 99 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B2 [15:03:38]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:03:38]wFMCommunicate OK [15:03:38]SAM_PROTO_GetShiftState done [15:03:38]FM_GetShiftState done [15:03:38]req_shift_opened done [15:03:38]requested_item shift.open_date is exist - process it [15:03:38]req_shift_open_date [15:03:38]req_shift_open_date done [15:03:38]produce_requested_data done [15:03:38]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1916,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [15:03:38]process_action_free close_receipt [15:03:38]json_value_free [15:03:38]json_value_free done [15:03:38]process_json_proto returns [15:03:38]Send response to host [15:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1916,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [15:03:38]free response buf [15:03:38]execute_script done [15:03:38]execute_script returns [15:03:38]free content buf [15:03:38]Sock 8.Close socket [15:03:38]Sock 8.Thread stoped [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:28]accept exits with 9 [15:05:28]New connection [15:05:28]New thread 3066834276 created [15:05:28]Thread 3066977636 joined [15:05:28]Waiting for new connection... [15:05:28] Sock 9.Parse request [15:05:28]Sock 9.Check first char [15:05:28]Sock 9.First char is OK [15:05:28]request: POST /json_proto HTTP/1.0 [15:05:28]Method: POST [15:05:28]URL: /json_proto [15:05:28]Method is POST - this is cgi request [15:05:28]url: /json_proto [15:05:28]query_string will be loaded in cgi processing [15:05:28]execute_cgi json_proto POST (null) [15:05:28]execute_cgi path=json_proto method=POST [15:05:28]POST find Content-Length [15:05:28]Host: 172.17.35.133:8080 [15:05:28]Content-Length: 683 [15:05:28]Content-Type: application/json [15:05:28] [15:05:28]POST finish read [15:05:28]Found Content-Length = 683 [15:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256337", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:28]execute_script... [15:05: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)256337", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:28]POST & json_proto [15:05:28]process_json_proto [15:05:28]json parsed OK: [15:05:28]protocol is kg_v1.0 [15:05:28]action value=close_receipt [15:05:28]process_action close_receipt [15:05:28]cmd_close_receipt [15:05:28]MH_GetDate [15:05:28]Write to MH i2c: F0 00 00 9A 11 9A [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: F0 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: F0 09 00 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: F0 09 00 9A 11 00 BA 97 92 66 1B 28 2A 66 BF [15:05:28]GetLastDocTimeStamp 1720883016 [15:05:28]current date 1720883130 [15:05:28]FM_GetShiftState [15:05:28]SAM_PROTO_GetShiftState [15:05:28]wFMCommunicate request_size=4 [15:05:28]MH_SAM_APDU [15:05:28]CAPDU: 80 13 01 00 [15:05:28]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:28]Read from MH i2c: E2 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: E2 0E 00 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B4 [15:05:28]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:05:28]wFMCommunicate OK [15:05:28]SAM_PROTO_GetShiftState done [15:05:28]FM_GetShiftState done [15:05:28]opened in 1720829379 [15:05:28]opened+sec_in_day 1720915779 [15:05:28]quantity*price = 10000 [15:05:28]sum+1 = 10001 [15:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 86 13.07.2024 15:05 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1917 ФПД: 252813777800084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150530&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1917&fm=252813777800084&tin=02508201610067®Number=0000000000177495&sum=10000 0 [15:05:30]StoreToDocumentArchive [15:05:30]shift 24 fd 1917 [15:05:30]save to /storage/0024/doc_00001917 [15:05:30]save last doc name /storage/0024/doc_00001917 to /storage/kkm_last_doc_name [15:05:30]save OK [15:05:30]Clear old archive folders... [15:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=291 [15:05:30]tlvbuf is 0101AF30 [15:05:30]SAM_PROTO_ClearQueue [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 09 00 00 [15:05:30]Write to MH i2c: E2 08 00 A8 11 80 09 00 00 00 00 00 00 2B [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [15:05:30]RAPDU: 90 00 [15:05:30]wFMCommunicate OK [15:05:30]SAM_PROTO_ClearQueue done [15:05:30]KKMCreateOFDPacket [15:05:30]OFDProtocolAddRootSTLVToBuf [15:05:30]FM_MakeSignedData [15:05:30]FM_MakeSignedData [15:05:30]SAM_PROTO_SignData [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 0D 01 02 [15:05:30]Write to MH i2c: E2 08 00 A9 11 80 0D 01 02 00 00 00 00 33 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [15:05:30]RAPDU: 90 00 [15:05:30]wFMCommunicate OK [15:05:30]wFMCommunicate request_size=255 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 56 00 00 00 F4 03 04 00 BA 97 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [15:05:30]Write to MH i2c: E2 02 01 AA 11 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 56 00 00 00 F4 03 04 00 BA 97 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0E [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [15:05:30]RAPDU: 90 00 [15:05:30]wFMCommunicate OK [15:05:30]wFMCommunicate request_size=50 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 0D 02 02 2D 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 7D 07 00 00 35 04 06 00 E5 EE CB 6B 8B 94 [15:05:30]Write to MH i2c: E2 35 00 AB 11 80 0D 02 02 2D 00 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 7D 07 00 00 35 04 06 00 E5 EE CB 6B 8B 94 00 00 4C [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [15:05:30]RAPDU: 90 00 [15:05:30]wFMCommunicate OK [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 0D 03 02 [15:05:30]Write to MH i2c: E2 08 00 AC 11 80 0D 03 02 00 00 00 00 38 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 0B 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 0B 00 AC 11 00 18 77 B2 23 19 FA BC FE 90 00 6A [15:05:30]RAPDU: 18 77 B2 23 19 FA BC FE 90 00 [15:05:30]wFMCommunicate OK [15:05:30]SAM_PROTO_SignData done [15:05:30]FM_MakeSignedData done [15:05:30]CreateOFDProtocolMessage [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 11 00 00 [15:05:30]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 17 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 8E [15:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:05:30]wFMCommunicate OK [15:05:30]CreateOFDProtocolMessage done [15:05:30]OFDSenderStorePacket 1917 [15:05:30]StoreOFDPacket docnum=1917 [15:05: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 37 01 00 00 15 A7 2F 01 6B 42 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 56 00 00 00 F4 03 04 00 BA 97 92 66 0E 04 04 00 18 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 7D 07 00 00 35 04 06 00 E5 EE CB 6B 8B 94 18 77 B2 23 19 FA BC FE [15:05:30]CheckFolder [15:05:30]dirname=/storage/ofd_packets [15:05:30]CheckFolder done [15:05:30]ProducePacketName [15:05:30]name=ofd_packets/00001917 [15:05:30]NVStorageSaveData ofd_packets/00001917 [15:05:30]File name is /storage/ofd_packets/00001917 [15:05:30]Write 341 bytes [15:05:30]NVStorageSaveData done [15:05:30]OFDSenderStorePacket done [15:05:30]KKMCreateOFDPacket done [15:05:30]NVStorageSaveData kkm_last_timestamp [15:05:30]File name is /storage/kkm_last_timestamp [15:05:30]Write 4 bytes [15:05:30]NVStorageSaveData done [15:05:30]ExternCall_PrintAddStr [15:05:30]wPrintStart [15:05:30]Write to MH i2c: 01 00 00 AE 11 BF [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: 01 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: 01 07 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [15:05:30]RasterBufferAndPrint [15:05:30]line Счет N : (3)256337 [15:05:30]line ИНН: 02508201610067 [15:05:30]line Контрольно-Кассовый Чек [15:05:30]line ПРОДАЖА [15:05:30]line Товар: 4870002328398 [15:05:30]line Вода ASU пит н.газ мята ПЭТ 1л [15:05:30]line 1.000 * 100.00 [15:05:30]line = 100.00 [15:05:30]line НДС 12% НСП 1% [15:05:30]line > о реализуемом товаре [15:05:30]line ИТОГО: 100.00 [15:05:30]line НСП 1% : 0.88 [15:05:30]line НДС 12% : 10.62 [15:05:30]line Наличными: 100.00 [15:05:30]line Безнал.: 0.00 [15:05:30]line Место: АЗС № 76 "Партнер Нефть" [15:05:30]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:05:30]line СНО: Общий режим [15:05:30]line Чек 86 13.07.2024 15:05 [15:05:30]line Смена: 24 ФФД: 1.0 [15:05:30]line ЗНМ: 0300000124 [15:05:30]line РНМ: 0000000000177495 [15:05:30]line Версия ККМ: 001 [15:05:30]line ФМ: 0000000002098592 [15:05:30]line ФД: 1917 [15:05:30]line ФПД: 252813777800084 [15:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150530&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1917&fm=252813777800084&tin=02508201610067®Number=0000000000177495&sum=10000 [15:05:30]line 0 [15:05:30]OFD Sender: Processing packet 1917 [packets to send 1, broken 0] [15:05:30]ProducePacketName [15:05:30]name=ofd_packets/00001917 [15:05:30]OFD Sender: To server: pG, [15:05:30]CommunicateWithHost lk.salyk.kg:30040 [15:05:30]ConnectInit lk.salyk.kg [15:05:30]written 0, free lines is 4095 [15:05:31]Connected sock=10 [15:05: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 37 01 00 00 15 A7 2F 01 6B 42 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB 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 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 56 00 00 00 F4 03 04 00 BA 97 92 66 0E 04 04 00 18 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 7D 07 00 00 35 04 06 00 E5 EE CB 6B 8B 94 18 77 B2 23 19 FA BC FE [15:05: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 9C 97 47 00 C8 71 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 7D 07 00 00 F4 03 04 00 F0 42 92 66 B6 04 01 00 00 F1 05 52 23 22 16 FE F4 [15:05:31]CommunicateWithHost err = 0 [15:05:31]CheckOFDResponse [15:05:31]1017 (14) - 77093643461234 [15:05:31]1041 (16) - 0000000002098592 [15:05:31]1040 (4) - 1917 [15:05:31]1012 (4) - 13.07.2024 09:03 [15:05:31]1206 (1) - 0 [15:05:31]OFD Sender: Remove packet 1917 [15:05:31]ProducePacketName [15:05:31]name=ofd_packets/00001917 [15:05:31]NVStorageDeleteData [15:05:31]Write to MH i2c: 01 00 00 D7 11 E8 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 07 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 03 0D FF [15:05:31]RasterBufferAndPrint [15:05:31]line [15:05:31]line [15:05:31]line [15:05:31]line [15:05:31]line [15:05:31]written 0, free lines is 3337 [15:05:31]MH_Cut [15:05:31]Write to MH i2c: D1 01 00 DE 11 01 C1 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: D1 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: D1 01 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: D1 01 00 DE 11 00 C0 [15:05:31]Write to MH i2c: 01 00 00 DF 11 F0 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]OFD Sender: No OFD packet to send [15:05:32]*** Cut start [15:05:32]*** Partial cut [15:05:32]*** CUTSNS_PIN = 1 [15:05:32]*** CUTSNS_PIN = 0 [15:05:32]*** Brake cut motor [15:05:32]Read from MH i2c: 01 [15:05:32]MH_I2C_Read... [15:05:32]*** Stop cut motor [15:05:32]*** Cut end [15:05:32]Read from MH i2c: 01 07 00 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [15:05:32]process_action close_receipt done [15:05:32]requested_data is exist [15:05:32]produce_requested_data [15:05:32]requested_item fm.sn is exist - process it [15:05:32]wFMCommunicate request_size=4 [15:05:32]MH_SAM_APDU [15:05:32]CAPDU: 80 11 00 00 [15:05:32]Write to MH i2c: E2 08 00 E0 11 80 11 00 00 00 00 00 00 6B [15:05:32]Write i2c OK [15:05:32]MH_I2C_Read... [15:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:32]Read from MH i2c: E2 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 17 00 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 17 00 E0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C1 [15:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:05:32]wFMCommunicate OK [15:05:32]requested_item fd.num is exist - process it [15:05:32]SAM_PROTO_GetFieldsCounters [15:05:32]wFMCommunicate request_size=4 [15:05:32]MH_SAM_APDU [15:05:32]CAPDU: 80 13 00 00 [15:05:32]Write to MH i2c: E2 08 00 E1 11 80 13 00 00 00 00 00 00 6E [15:05:32]Write i2c OK [15:05:32]MH_I2C_Read... [15:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:32]Read from MH i2c: E2 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 62 00 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 62 00 E1 11 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 7D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [15:05: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 7D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:32]wFMCommunicate OK [15:05:32]SAM_PROTO_GetFieldsCounters done [15:05:32]requested_item shift.num is exist - process it [15:05:32]requested_item shift.opened is exist - process it [15:05:32]req_shift_opened [15:05:32]FM_GetShiftState [15:05:32]SAM_PROTO_GetShiftState [15:05:32]wFMCommunicate request_size=4 [15:05:32]MH_SAM_APDU [15:05:32]CAPDU: 80 13 01 00 [15:05:32]Write to MH i2c: E2 08 00 E2 11 80 13 01 00 00 00 00 00 70 [15:05:32]Write i2c OK [15:05:32]MH_I2C_Read... [15:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:32]Read from MH i2c: E2 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 0E 00 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 0E 00 E2 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 FB [15:05:32]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:05:32]wFMCommunicate OK [15:05:32]SAM_PROTO_GetShiftState done [15:05:32]FM_GetShiftState done [15:05:32]req_shift_opened done [15:05:32]requested_item shift.open_date is exist - process it [15:05:32]req_shift_open_date [15:05:32]req_shift_open_date done [15:05:32]produce_requested_data done [15:05:32]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1917,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [15:05:32]process_action_free close_receipt [15:05:32]json_value_free [15:05:32]json_value_free done [15:05:32]process_json_proto returns [15:05:32]Send response to host [15:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1917,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [15:05:32]free response buf [15:05:32]execute_script done [15:05:32]execute_script returns [15:05:32]free content buf [15:05:32]Sock 9.Close socket [15:05:32]Sock 9.Thread stoped [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:42]accept exits with 8 [15:13:42]New connection [15:13:42]New thread 3066977636 created [15:13:42]Thread 3066834276 joined [15:13:42]Waiting for new connection... [15:13:42] Sock 8.Parse request [15:13:42]Sock 8.Check first char [15:13:42]Sock 8.First char is OK [15:13:42]request: POST /json_proto HTTP/1.0 [15:13:42]Method: POST [15:13:42]URL: /json_proto [15:13:42]Method is POST - this is cgi request [15:13:42]url: /json_proto [15:13:42]query_string will be loaded in cgi processing [15:13:42]execute_cgi json_proto POST (null) [15:13:42]execute_cgi path=json_proto method=POST [15:13:42]POST find Content-Length [15:13:42]Host: 172.17.35.133:8080 [15:13:42]Content-Length: 898 [15:13:42]Content-Type: application/json [15:13:42] [15:13:42]POST finish read [15:13:42]Found Content-Length = 898 [15:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256338", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 740.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:42]execute_script... [15:13:42]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)256338", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 740.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:42]POST & json_proto [15:13:42]process_json_proto [15:13:42]json parsed OK: [15:13:42]protocol is kg_v1.0 [15:13:42]action value=close_receipt [15:13:42]process_action close_receipt [15:13:42]cmd_close_receipt [15:13:42]MH_GetDate [15:13:42]Write to MH i2c: F0 00 00 E3 11 E3 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 09 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 09 00 E3 11 00 A8 99 92 66 1B 28 2A 66 F8 [15:13:42]GetLastDocTimeStamp 1720883130 [15:13:42]current date 1720883624 [15:13:42]FM_GetShiftState [15:13:42]SAM_PROTO_GetShiftState [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 13 01 00 [15:13:42]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 FD [15:13:42]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_GetShiftState done [15:13:42]FM_GetShiftState done [15:13:42]opened in 1720829379 [15:13:42]opened+sec_in_day 1720915779 [15:13:42]quantity*price = 18000 [15:13:42]sum+1 = 18001 [15:13:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150936 Новая Водка Organic 40% 0,48л 1.000 * 560.00 = 560.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 740.00 НСП 1% : 6.55 НДС 12% : 78.58 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 87 13.07.2024 15:13 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1918 ФПД: 215840003674755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151344&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1918&fm=215840003674755&tin=02508201610067®Number=0000000000177495&sum=74000 0 [15:13:42]StoreToDocumentArchive [15:13:42]shift 24 fd 1918 [15:13:42]save to /storage/0024/doc_00001918 [15:13:42]save last doc name /storage/0024/doc_00001918 to /storage/kkm_last_doc_name [15:13:42]save OK [15:13:42]Clear old archive folders... [15:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=384 [15:13:42]tlvbuf is 0101AB20 [15:13:42]SAM_PROTO_ClearQueue [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 09 00 00 [15:13:42]Write to MH i2c: E2 08 00 F1 11 80 09 00 00 00 00 00 00 74 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 03 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [15:13:42]RAPDU: 90 00 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_ClearQueue done [15:13:42]KKMCreateOFDPacket [15:13:42]OFDProtocolAddRootSTLVToBuf [15:13:42]FM_MakeSignedData [15:13:42]FM_MakeSignedData [15:13:42]SAM_PROTO_SignData [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 0D 01 02 [15:13:42]Write to MH i2c: E2 08 00 F2 11 80 0D 01 02 00 00 00 00 7C [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]wFMCommunicate request_size=255 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [15:13:43]Write to MH i2c: E2 02 01 F3 11 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 AA [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]wFMCommunicate request_size=143 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 0D 02 02 8A 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 99 92 66 0E 04 04 00 18 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 7E 07 00 00 35 04 06 00 C4 4E 2A BF 52 83 [15:13:43]Write to MH i2c: E2 92 00 F4 11 80 0D 02 02 8A 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 99 92 66 0E 04 04 00 18 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 7E 07 00 00 35 04 06 00 C4 4E 2A BF 52 83 00 00 5B [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 0D 03 02 [15:13:43]Write to MH i2c: E2 08 00 F5 11 80 0D 03 02 00 00 00 00 81 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0B 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0B 00 F5 11 00 87 CA 9C FC 59 7A FA D7 90 00 0F [15:13:43]RAPDU: 87 CA 9C FC 59 7A FA D7 90 00 [15:13:43]wFMCommunicate OK [15:13:43]SAM_PROTO_SignData done [15:13:43]FM_MakeSignedData done [15:13:43]CreateOFDProtocolMessage [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 11 00 00 [15:13:43]Write to MH i2c: E2 08 00 F6 11 80 11 00 00 00 00 00 00 81 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 17 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 17 00 F6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D7 [15:13: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:13:43]wFMCommunicate OK [15:13:43]CreateOFDProtocolMessage done [15:13:43]OFDSenderStorePacket 1918 [15:13:43]StoreOFDPacket docnum=1918 [15:13: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 94 01 00 00 DC BA 8C 01 C8 05 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 99 92 66 0E 04 04 00 18 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 7E 07 00 00 35 04 06 00 C4 4E 2A BF 52 83 87 CA 9C FC 59 7A FA D7 [15:13:43]CheckFolder [15:13:43]dirname=/storage/ofd_packets [15:13:43]CheckFolder done [15:13:43]ProducePacketName [15:13:43]name=ofd_packets/00001918 [15:13:43]NVStorageSaveData ofd_packets/00001918 [15:13:43]File name is /storage/ofd_packets/00001918 [15:13:43]Write 434 bytes [15:13:43]NVStorageSaveData done [15:13:43]OFDSenderStorePacket done [15:13:43]KKMCreateOFDPacket done [15:13:43]NVStorageSaveData kkm_last_timestamp [15:13:43]File name is /storage/kkm_last_timestamp [15:13:43]Write 4 bytes [15:13:43]NVStorageSaveData done [15:13:43]ExternCall_PrintAddStr [15:13:43]wPrintStart [15:13:43]Write to MH i2c: 01 00 00 F7 11 08 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: 01 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: 01 07 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [15:13:43]RasterBufferAndPrint [15:13:43]line Счет N : (3)256338 [15:13:43]line ИНН: 02508201610067 [15:13:43]line Контрольно-Кассовый Чек [15:13:43]line ПРОДАЖА [15:13:43]line Товар: 4700000480517 [15:13:43]line Пиво Живое 1л ПЭТ [15:13:43]line 1.000 * 180.00 [15:13:43]line = 180.00 [15:13:43]line НДС 12% НСП 1% [15:13:43]line > о реализуемом товаре [15:13:43]line Товар: 4700003150936 [15:13:43]line Новая Водка Organic 40% 0,48л [15:13:43]line 1.000 * 560.00 [15:13:43]line = 560.00 [15:13:43]line НДС 12% НСП 1% [15:13:43]line > о реализуемом товаре [15:13:43]line ИТОГО: 740.00 [15:13:43]line НСП 1% : 6.55 [15:13:43]line НДС 12% : 78.58 [15:13:43]line Наличными: 740.00 [15:13:43]line Безнал.: 0.00 [15:13:43]line Место: АЗС № 76 "Партнер Нефть" [15:13:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:13:43]line СНО: Общий режим [15:13:43]line Чек 87 13.07.2024 15:13 [15:13:43]line Смена: 24 ФФД: 1.0 [15:13:43]line ЗНМ: 0300000124 [15:13:43]line РНМ: 0000000000177495 [15:13:43]line Версия ККМ: 001 [15:13:43]line ФМ: 0000000002098592 [15:13:43]line ФД: 1918 [15:13:43]line ФПД: 215840003674755 [15:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151344&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1918&fm=215840003674755&tin=02508201610067®Number=0000000000177495&sum=74000 [15:13:43]line 0 [15:13:43]written 0, free lines is 4095 [15:13:43]OFD Sender: Processing packet 1918 [packets to send 1, broken 0] [15:13:43]ProducePacketName [15:13:43]name=ofd_packets/00001918 [15:13:43]OFD Sender: To server: pG, [15:13:43]CommunicateWithHost lk.salyk.kg:30040 [15:13:43]ConnectInit lk.salyk.kg [15:13:44]Connected sock=10 [15:13: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 94 01 00 00 DC BA 8C 01 C8 05 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 99 92 66 0E 04 04 00 18 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 7E 07 00 00 35 04 06 00 C4 4E 2A BF 52 83 87 CA 9C FC 59 7A FA D7 [15:13:44]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 25 06 47 00 D3 B8 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 7E 07 00 00 F4 03 04 00 DD 44 92 66 B6 04 01 00 00 3C A7 4C 47 92 E6 F9 4B [15:13:44]CommunicateWithHost err = 0 [15:13:44]CheckOFDResponse [15:13:44]1017 (14) - 77093643461234 [15:13:44]1041 (16) - 0000000002098592 [15:13:44]1040 (4) - 1918 [15:13:44]1012 (4) - 13.07.2024 09:11 [15:13:44]1206 (1) - 0 [15:13:44]OFD Sender: Remove packet 1918 [15:13:44]ProducePacketName [15:13:44]name=ofd_packets/00001918 [15:13:44]NVStorageDeleteData [15:13:44]Write to MH i2c: 01 00 00 26 12 38 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 B3 0C FE [15:13:44]RasterBufferAndPrint [15:13:44]line [15:13:44]line [15:13:44]line [15:13:44]line [15:13:44]line [15:13:44]written 0, free lines is 3257 [15:13:44]MH_Cut [15:13:44]Write to MH i2c: D1 01 00 2D 12 01 11 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: D1 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: D1 01 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: D1 01 00 2D 12 00 10 [15:13:44]Write to MH i2c: 01 00 00 2E 12 40 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]OFD Sender: No OFD packet to send [15:13:45]*** Cut start [15:13:45]*** Partial cut [15:13:45]*** CUTSNS_PIN = 1 [15:13:45]*** CUTSNS_PIN = 0 [15:13:45]*** Brake cut motor [15:13:45]Read from MH i2c: 01 [15:13:45]MH_I2C_Read... [15:13:45]*** Stop cut motor [15:13:45]*** Cut end [15:13:45]Read from MH i2c: 01 07 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: 01 07 00 2E 12 00 00 00 00 00 FF 0F 55 [15:13:45]process_action close_receipt done [15:13:45]requested_data is exist [15:13:45]produce_requested_data [15:13:45]requested_item fm.sn is exist - process it [15:13:45]wFMCommunicate request_size=4 [15:13:45]MH_SAM_APDU [15:13:45]CAPDU: 80 11 00 00 [15:13:45]Write to MH i2c: E2 08 00 2F 12 80 11 00 00 00 00 00 00 BB [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:45]Read from MH i2c: E2 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 17 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 17 00 2F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 11 [15:13: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:13:45]wFMCommunicate OK [15:13:45]requested_item fd.num is exist - process it [15:13:45]SAM_PROTO_GetFieldsCounters [15:13:45]wFMCommunicate request_size=4 [15:13:45]MH_SAM_APDU [15:13:45]CAPDU: 80 13 00 00 [15:13:45]Write to MH i2c: E2 08 00 30 12 80 13 00 00 00 00 00 00 BE [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:45]Read from MH i2c: E2 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 62 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 62 00 30 12 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 7E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [15:13: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 7E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_GetFieldsCounters done [15:13:46]requested_item shift.num is exist - process it [15:13:46]requested_item shift.opened is exist - process it [15:13:46]req_shift_opened [15:13:46]FM_GetShiftState [15:13:46]SAM_PROTO_GetShiftState [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 13 01 00 [15:13:46]Write to MH i2c: E2 08 00 31 12 80 13 01 00 00 00 00 00 C0 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:46]Read from MH i2c: E2 0E 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0E 00 31 12 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4B [15:13:46]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_GetShiftState done [15:13:46]FM_GetShiftState done [15:13:46]req_shift_opened done [15:13:46]requested_item shift.open_date is exist - process it [15:13:46]req_shift_open_date [15:13:46]req_shift_open_date done [15:13:46]produce_requested_data done [15:13:46]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1918,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [15:13:46]process_action_free close_receipt [15:13:46]json_value_free [15:13:46]json_value_free done [15:13:46]process_json_proto returns [15:13:46]Send response to host [15:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1918,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [15:13:46]free response buf [15:13:46]execute_script done [15:13:46]execute_script returns [15:13:46]free content buf [15:13:46]Sock 8.Close socket [15:13:46]Sock 8.Thread stoped [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:47]accept exits with 9 [15:16:47]New connection [15:16:47]New thread 3066834276 created [15:16:47]Thread 3066977636 joined [15:16:47]Waiting for new connection... [15:16:47] Sock 9.Parse request [15:16:47]Sock 9.Check first char [15:16:47]Sock 9.First char is OK [15:16:47]request: POST /json_proto HTTP/1.0 [15:16:47]Method: POST [15:16:47]URL: /json_proto [15:16:47]Method is POST - this is cgi request [15:16:47]url: /json_proto [15:16:47]query_string will be loaded in cgi processing [15:16:47]execute_cgi json_proto POST (null) [15:16:47]execute_cgi path=json_proto method=POST [15:16:47]POST find Content-Length [15:16:47]Host: 172.17.35.133:8080 [15:16:47]Content-Length: 648 [15:16:47]Content-Type: application/json [15:16:47] [15:16:47]POST finish read [15:16:47]Found Content-Length = 648 [15:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256339", "tax_sys" : 0, "items" : [ { "code": "4870238424819", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 5.000, "sum" : 2025.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2025.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:47]execute_script... [15:16:47]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)256339", "tax_sys" : 0, "items" : [ { "code": "4870238424819", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 5.000, "sum" : 2025.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2025.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:47]POST & json_proto [15:16:47]process_json_proto [15:16:47]json parsed OK: [15:16:47]protocol is kg_v1.0 [15:16:47]action value=close_receipt [15:16:47]process_action close_receipt [15:16:47]cmd_close_receipt [15:16:47]MH_GetDate [15:16:47]Write to MH i2c: F0 00 00 32 12 33 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: F0 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: F0 09 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: F0 09 00 32 12 00 62 9A 92 66 1B 28 2A 66 03 [15:16:47]GetLastDocTimeStamp 1720883624 [15:16:47]current date 1720883810 [15:16:47]FM_GetShiftState [15:16:47]SAM_PROTO_GetShiftState [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 13 01 00 [15:16:47]Write to MH i2c: E2 08 00 33 12 80 13 01 00 00 00 00 00 C2 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 33 12 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4D [15:16:48]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:16:48]wFMCommunicate OK [15:16:48]SAM_PROTO_GetShiftState done [15:16:48]FM_GetShiftState done [15:16:48]opened in 1720829379 [15:16:48]opened+sec_in_day 1720915779 [15:16:48]quantity*price = 202500 [15:16:48]sum+1 = 202501 [15:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2025.00 НСП 1% : 17.92 НДС 12% : 215.04 Наличными: 2025.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 88 13.07.2024 15:16 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1919 ФПД: 277913432306817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151650&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1919&fm=277913432306817&tin=02508201610067®Number=0000000000177495&sum=202500 0 [15:16:49]StoreToDocumentArchive [15:16:49]shift 24 fd 1919 [15:16:49]save to /storage/0024/doc_00001919 [15:16:49]save last doc name /storage/0024/doc_00001919 to /storage/kkm_last_doc_name [15:16:49]save OK [15:16:49]Clear old archive folders... [15:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:16:49]tlvbuf is 00FE5A90 [15:16:49]SAM_PROTO_ClearQueue [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 09 00 00 [15:16:49]Write to MH i2c: E2 08 00 40 12 80 09 00 00 00 00 00 00 C4 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [15:16:49]RAPDU: 90 00 [15:16:49]wFMCommunicate OK [15:16:49]SAM_PROTO_ClearQueue done [15:16:49]KKMCreateOFDPacket [15:16:49]OFDProtocolAddRootSTLVToBuf [15:16:49]FM_MakeSignedData [15:16:49]FM_MakeSignedData [15:16:49]SAM_PROTO_SignData [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 0D 01 02 [15:16:49]Write to MH i2c: E2 08 00 41 12 80 0D 01 02 00 00 00 00 CC [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 41 12 00 90 00 C7 [15:16:49]RAPDU: 90 00 [15:16:49]wFMCommunicate OK [15:16:49]wFMCommunicate request_size=255 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 04 17 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 17 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 54 00 00 00 00 07 04 06 00 04 17 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 62 9A 92 66 0E 04 04 00 18 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 [15:16:49]Write to MH i2c: E2 02 01 42 12 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 04 17 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 17 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 54 00 00 00 00 07 04 06 00 04 17 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 62 9A 92 66 0E 04 04 00 18 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 00 00 64 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 42 12 00 90 00 C8 [15:16:49]RAPDU: 90 00 [15:16:49]wFMCommunicate OK [15:16:49]wFMCommunicate request_size=41 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 7F 07 00 00 35 04 06 00 FC C2 C3 69 34 81 [15:16:49]Write to MH i2c: E2 2C 00 43 12 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 7F 07 00 00 35 04 06 00 FC C2 C3 69 34 81 00 00 C6 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 43 12 00 90 00 C9 [15:16:49]RAPDU: 90 00 [15:16:49]wFMCommunicate OK [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 0D 03 02 [15:16:49]Write to MH i2c: E2 08 00 44 12 80 0D 03 02 00 00 00 00 D1 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 0B 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 0B 00 44 12 00 F4 97 52 45 7E 09 4E E3 90 00 AC [15:16:49]RAPDU: F4 97 52 45 7E 09 4E E3 90 00 [15:16:49]wFMCommunicate OK [15:16:49]SAM_PROTO_SignData done [15:16:49]FM_MakeSignedData done [15:16:49]CreateOFDProtocolMessage [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 11 00 00 [15:16:49]Write to MH i2c: E2 08 00 45 12 80 11 00 00 00 00 00 00 D1 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 17 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 17 00 45 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 27 [15:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:16:49]wFMCommunicate OK [15:16:49]CreateOFDProtocolMessage done [15:16:49]OFDSenderStorePacket 1919 [15:16:49]StoreOFDPacket docnum=1919 [15:16: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 2E 01 00 00 C8 2B 26 01 C1 68 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 04 17 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 17 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 54 00 00 00 00 07 04 06 00 04 17 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 62 9A 92 66 0E 04 04 00 18 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 7F 07 00 00 35 04 06 00 FC C2 C3 69 34 81 F4 97 52 45 7E 09 4E E3 [15:16:49]CheckFolder [15:16:49]dirname=/storage/ofd_packets [15:16:49]CheckFolder done [15:16:49]ProducePacketName [15:16:49]name=ofd_packets/00001919 [15:16:49]NVStorageSaveData ofd_packets/00001919 [15:16:49]File name is /storage/ofd_packets/00001919 [15:16:49]Write 332 bytes [15:16:49]NVStorageSaveData done [15:16:49]OFDSenderStorePacket done [15:16:49]KKMCreateOFDPacket done [15:16:49]NVStorageSaveData kkm_last_timestamp [15:16:49]File name is /storage/kkm_last_timestamp [15:16:49]Write 4 bytes [15:16:49]NVStorageSaveData done [15:16:49]ExternCall_PrintAddStr [15:16:49]wPrintStart [15:16:49]Write to MH i2c: 01 00 00 46 12 58 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: 01 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: 01 07 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 FF 0F 6D [15:16:49]RasterBufferAndPrint [15:16:49]line Счет N : (3)256339 [15:16:49]line ИНН: 02508201610067 [15:16:49]line Контрольно-Кассовый Чек [15:16:49]line ПРОДАЖА [15:16:49]line Товар: 4870238424819 [15:16:49]line Лукойл Супер 10W40 SG/CD 1л. [15:16:49]line 5.000 * 405.00 [15:16:49]line = 2025.00 [15:16:49]line НДС 12% НСП 1% [15:16:49]line > о реализуемом товаре [15:16:49]line ИТОГО: 2025.00 [15:16:49]line НСП 1% : 17.92 [15:16:49]line НДС 12% : 215.04 [15:16:49]line Наличными: 2025.00 [15:16:49]line Безнал.: 0.00 [15:16:49]line Место: АЗС № 76 "Партнер Нефть" [15:16:49]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:16:49]line СНО: Общий режим [15:16:49]line Чек 88 13.07.2024 15:16 [15:16:49]line Смена: 24 ФФД: 1.0 [15:16:49]line ЗНМ: 0300000124 [15:16:49]line РНМ: 0000000000177495 [15:16:49]line Версия ККМ: 001 [15:16:49]line ФМ: 0000000002098592 [15:16:49]line ФД: 1919 [15:16:49]line ФПД: 277913432306817 [15:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151650&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1919&fm=277913432306817&tin=02508201610067®Number=0000000000177495&sum=202500 [15:16:49]line 0 [15:16:49]OFD Sender: Processing packet 1919 [packets to send 1, broken 0] [15:16:49]ProducePacketName [15:16:49]name=ofd_packets/00001919 [15:16:49]OFD Sender: To server: pG, [15:16:49]CommunicateWithHost lk.salyk.kg:30040 [15:16:49]ConnectInit lk.salyk.kg [15:16:49]written 0, free lines is 4095 [15:16:50]Connected sock=8 [15:16:50]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 2E 01 00 00 C8 2B 26 01 C1 68 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 04 17 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 17 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 54 00 00 00 00 07 04 06 00 04 17 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 62 9A 92 66 0E 04 04 00 18 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 7F 07 00 00 35 04 06 00 FC C2 C3 69 34 81 F4 97 52 45 7E 09 4E E3 [15:16: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 7E C1 47 00 A2 32 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 7F 07 00 00 F4 03 04 00 97 45 92 66 B6 04 01 00 00 44 31 4A 32 1C 1A 9F 46 [15:16:50]CommunicateWithHost err = 0 [15:16:50]CheckOFDResponse [15:16:50]1017 (14) - 77093643461234 [15:16:50]1041 (16) - 0000000002098592 [15:16:50]1040 (4) - 1919 [15:16:50]1012 (4) - 13.07.2024 09:15 [15:16:50]1206 (1) - 0 [15:16:50]OFD Sender: Remove packet 1919 [15:16:50]ProducePacketName [15:16:50]name=ofd_packets/00001919 [15:16:50]NVStorageDeleteData [15:16:50]Write to MH i2c: 01 00 00 6F 12 81 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: 01 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: 01 07 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: 01 07 00 6F 12 00 00 00 00 00 07 0D 9C [15:16:50]RasterBufferAndPrint [15:16:50]line [15:16:50]line [15:16:50]line [15:16:50]line [15:16:50]line [15:16:50]written 0, free lines is 3340 [15:16:50]MH_Cut [15:16:50]Write to MH i2c: D1 01 00 76 12 01 5A [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: D1 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: D1 01 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: D1 01 00 76 12 00 59 [15:16:50]Write to MH i2c: 01 00 00 77 12 89 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]OFD Sender: No OFD packet to send [15:16:51]*** Cut start [15:16:51]*** Partial cut [15:16:51]*** CUTSNS_PIN = 1 [15:16:51]*** CUTSNS_PIN = 0 [15:16:51]*** Brake cut motor [15:16:51]Read from MH i2c: 01 [15:16:51]MH_I2C_Read... [15:16:51]*** Stop cut motor [15:16:51]*** Cut end [15:16:51]Read from MH i2c: 01 07 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 77 12 00 00 00 00 00 FF 0F 9E [15:16:51]process_action close_receipt done [15:16:51]requested_data is exist [15:16:51]produce_requested_data [15:16:51]requested_item fm.sn is exist - process it [15:16:51]wFMCommunicate request_size=4 [15:16:51]MH_SAM_APDU [15:16:51]CAPDU: 80 11 00 00 [15:16:51]Write to MH i2c: E2 08 00 78 12 80 11 00 00 00 00 00 00 04 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:51]Read from MH i2c: E2 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 17 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 17 00 78 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5A [15:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:16:51]wFMCommunicate OK [15:16:51]requested_item fd.num is exist - process it [15:16:51]SAM_PROTO_GetFieldsCounters [15:16:51]wFMCommunicate request_size=4 [15:16:51]MH_SAM_APDU [15:16:51]CAPDU: 80 13 00 00 [15:16:51]Write to MH i2c: E2 08 00 79 12 80 13 00 00 00 00 00 00 07 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:51]Read from MH i2c: E2 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 62 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 62 00 79 12 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 7F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [15:16: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 7F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:51]wFMCommunicate OK [15:16:51]SAM_PROTO_GetFieldsCounters done [15:16:51]requested_item shift.num is exist - process it [15:16:51]requested_item shift.opened is exist - process it [15:16:51]req_shift_opened [15:16:51]FM_GetShiftState [15:16:51]SAM_PROTO_GetShiftState [15:16:51]wFMCommunicate request_size=4 [15:16:51]MH_SAM_APDU [15:16:51]CAPDU: 80 13 01 00 [15:16:51]Write to MH i2c: E2 08 00 7A 12 80 13 01 00 00 00 00 00 09 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:52]Read from MH i2c: E2 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: E2 0E 00 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: E2 0E 00 7A 12 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 94 [15:16:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:16:52]wFMCommunicate OK [15:16:52]SAM_PROTO_GetShiftState done [15:16:52]FM_GetShiftState done [15:16:52]req_shift_opened done [15:16:52]requested_item shift.open_date is exist - process it [15:16:52]req_shift_open_date [15:16:52]req_shift_open_date done [15:16:52]produce_requested_data done [15:16:52]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1919,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [15:16:52]process_action_free close_receipt [15:16:52]json_value_free [15:16:52]json_value_free done [15:16:52]process_json_proto returns [15:16:52]Send response to host [15:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1919,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [15:16:52]free response buf [15:16:52]execute_script done [15:16:52]execute_script returns [15:16:52]free content buf [15:16:52]Sock 9.Close socket [15:16:52]Sock 9.Thread stoped [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:10]accept exits with 10 [15:24:10]New connection [15:24:10]New thread 3066977636 created [15:24:10]Thread 3066834276 joined [15:24:10]Waiting for new connection... [15:24:10] Sock 10.Parse request [15:24:10]Sock 10.Check first char [15:24:10]Sock 10.First char is OK [15:24:10]request: POST /json_proto HTTP/1.0 [15:24:10]Method: POST [15:24:10]URL: /json_proto [15:24:10]Method is POST - this is cgi request [15:24:10]url: /json_proto [15:24:10]query_string will be loaded in cgi processing [15:24:10]execute_cgi json_proto POST (null) [15:24:10]execute_cgi path=json_proto method=POST [15:24:10]POST find Content-Length [15:24:10]Host: 172.17.35.133:8080 [15:24:10]Content-Length: 615 [15:24:10]Content-Type: application/json [15:24:10] [15:24:10]POST finish read [15:24:10]Found Content-Length = 615 [15:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256340", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:10]execute_script... [15:24: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)256340", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:10]POST & json_proto [15:24:10]process_json_proto [15:24:10]json parsed OK: [15:24:10]protocol is kg_v1.0 [15:24:10]action value=close_receipt [15:24:10]process_action close_receipt [15:24:10]cmd_close_receipt [15:24:10]MH_GetDate [15:24:10]Write to MH i2c: F0 00 00 7B 12 7C [15:24:10]Write i2c OK [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: F0 [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: F0 09 00 [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: F0 09 00 7B 12 00 1C 9C 92 66 1B 28 2A 66 08 [15:24:10]GetLastDocTimeStamp 1720883810 [15:24:10]current date 1720884252 [15:24:10]FM_GetShiftState [15:24:10]SAM_PROTO_GetShiftState [15:24:10]wFMCommunicate request_size=4 [15:24:10]MH_SAM_APDU [15:24:10]CAPDU: 80 13 01 00 [15:24:10]Write to MH i2c: E2 08 00 7C 12 80 13 01 00 00 00 00 00 0B [15:24:10]Write i2c OK [15:24:10]MH_I2C_Read... [15:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:10]Read from MH i2c: E2 [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: E2 0E 00 [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: E2 0E 00 7C 12 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 96 [15:24:10]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:24:10]wFMCommunicate OK [15:24:10]SAM_PROTO_GetShiftState done [15:24:10]FM_GetShiftState done [15:24:10]opened in 1720829379 [15:24:10]opened+sec_in_day 1720915779 [15:24:10]quantity*price = 24000 [15:24:10]sum+1 = 24001 [15:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 89 13.07.2024 15:24 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1920 ФПД: 269773572817083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152412&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1920&fm=269773572817083&tin=02508201610067®Number=0000000000177495&sum=24000 0 [15:24:11]StoreToDocumentArchive [15:24:11]shift 24 fd 1920 [15:24:11]save to /storage/0024/doc_00001920 [15:24:11]save last doc name /storage/0024/doc_00001920 to /storage/kkm_last_doc_name [15:24:11]save OK [15:24:11]Clear old archive folders... [15:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:24:11]tlvbuf is B6EAE8E0 [15:24:11]SAM_PROTO_ClearQueue [15:24:11]wFMCommunicate request_size=4 [15:24:11]MH_SAM_APDU [15:24:11]CAPDU: 80 09 00 00 [15:24:11]Write to MH i2c: E2 08 00 89 12 80 09 00 00 00 00 00 00 0D [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:11]Read from MH i2c: E2 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 03 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [15:24:11]RAPDU: 90 00 [15:24:11]wFMCommunicate OK [15:24:11]SAM_PROTO_ClearQueue done [15:24:11]KKMCreateOFDPacket [15:24:11]OFDProtocolAddRootSTLVToBuf [15:24:11]FM_MakeSignedData [15:24:11]FM_MakeSignedData [15:24:11]SAM_PROTO_SignData [15:24:11]wFMCommunicate request_size=4 [15:24:11]MH_SAM_APDU [15:24:11]CAPDU: 80 0D 01 02 [15:24:11]Write to MH i2c: E2 08 00 8A 12 80 0D 01 02 00 00 00 00 15 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]wFMCommunicate request_size=255 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 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 59 00 00 00 F4 03 04 00 1C 9C 92 66 0E 04 04 00 18 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 [15:24:12]Write to MH i2c: E2 02 01 8B 12 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 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 59 00 00 00 F4 03 04 00 1C 9C 92 66 0E 04 04 00 18 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 00 00 95 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 8B 12 00 90 00 11 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]wFMCommunicate request_size=27 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 02 02 16 38 35 39 32 10 04 04 00 80 07 00 00 35 04 06 00 F5 5B 8D FA 40 BB [15:24:12]Write to MH i2c: E2 1E 00 8C 12 80 0D 02 02 16 00 38 35 39 32 10 04 04 00 80 07 00 00 35 04 06 00 F5 5B 8D FA 40 BB 00 00 CC [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 8C 12 00 90 00 12 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 03 02 [15:24:12]Write to MH i2c: E2 08 00 8D 12 80 0D 03 02 00 00 00 00 1A [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 0B 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 0B 00 8D 12 00 1E E1 29 CE 2C 0C 35 59 90 00 D7 [15:24:12]RAPDU: 1E E1 29 CE 2C 0C 35 59 90 00 [15:24:12]wFMCommunicate OK [15:24:12]SAM_PROTO_SignData done [15:24:12]FM_MakeSignedData done [15:24:12]CreateOFDProtocolMessage [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 11 00 00 [15:24:12]Write to MH i2c: E2 08 00 8E 12 80 11 00 00 00 00 00 00 1A [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 17 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 17 00 8E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 70 [15:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:24:12]wFMCommunicate OK [15:24:12]CreateOFDProtocolMessage done [15:24:12]OFDSenderStorePacket 1920 [15:24:12]StoreOFDPacket docnum=1920 [15:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 20 01 00 00 60 B4 18 01 A8 81 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 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 59 00 00 00 F4 03 04 00 1C 9C 92 66 0E 04 04 00 18 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 80 07 00 00 35 04 06 00 F5 5B 8D FA 40 BB 1E E1 29 CE 2C 0C 35 59 [15:24:12]CheckFolder [15:24:12]dirname=/storage/ofd_packets [15:24:12]CheckFolder done [15:24:12]ProducePacketName [15:24:12]name=ofd_packets/00001920 [15:24:12]NVStorageSaveData ofd_packets/00001920 [15:24:12]File name is /storage/ofd_packets/00001920 [15:24:12]Write 318 bytes [15:24:12]NVStorageSaveData done [15:24:12]OFDSenderStorePacket done [15:24:12]KKMCreateOFDPacket done [15:24:12]NVStorageSaveData kkm_last_timestamp [15:24:12]File name is /storage/kkm_last_timestamp [15:24:12]Write 4 bytes [15:24:12]NVStorageSaveData done [15:24:12]ExternCall_PrintAddStr [15:24:12]wPrintStart [15:24:12]Write to MH i2c: 01 00 00 8F 12 A1 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: 01 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: 01 07 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: 01 07 00 8F 12 00 00 00 00 00 FF 0F B6 [15:24:12]RasterBufferAndPrint [15:24:12]line Счет N : (3)256340 [15:24:12]line ИНН: 02508201610067 [15:24:12]line Контрольно-Кассовый Чек [15:24:12]line ПРОДАЖА [15:24:12]line Товар: 4870001570057 [15:24:12]line Напиток Pepsi 0,5л [15:24:12]line 3.000 * 80.00 [15:24:12]line = 240.00 [15:24:12]line НДС 12% НСП 1% [15:24:12]line > о реализуемом товаре [15:24:12]line ИТОГО: 240.00 [15:24:12]line НСП 1% : 2.12 [15:24:12]line НДС 12% : 25.49 [15:24:12]line Наличными: 240.00 [15:24:12]line Безнал.: 0.00 [15:24:12]line Место: АЗС № 76 "Партнер Нефть" [15:24:12]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [15:24:12]line СНО: Общий режим [15:24:12]line Чек 89 13.07.2024 15:24 [15:24:12]line Смена: 24 ФФД: 1.0 [15:24:12]line ЗНМ: 0300000124 [15:24:12]line РНМ: 0000000000177495 [15:24:12]line Версия ККМ: 001 [15:24:12]line ФМ: 0000000002098592 [15:24:12]line ФД: 1920 [15:24:12]line ФПД: 269773572817083 [15:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152412&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1920&fm=269773572817083&tin=02508201610067®Number=0000000000177495&sum=24000 [15:24:12]line 0 [15:24:12]OFD Sender: Processing packet 1920 [packets to send 1, broken 0] [15:24:12]ProducePacketName [15:24:12]name=ofd_packets/00001920 [15:24:12]OFD Sender: To server: pG, [15:24:12]CommunicateWithHost lk.salyk.kg:30040 [15:24:12]ConnectInit lk.salyk.kg [15:24:12]written 0, free lines is 4095 [15:24:12]Connected sock=9 [15:24: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 20 01 00 00 60 B4 18 01 A8 81 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 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 59 00 00 00 F4 03 04 00 1C 9C 92 66 0E 04 04 00 18 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 80 07 00 00 35 04 06 00 F5 5B 8D FA 40 BB 1E E1 29 CE 2C 0C 35 59 [15:24: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 E5 22 47 00 8C 9D 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 80 07 00 00 F4 03 04 00 52 47 92 66 B6 04 01 00 00 8D 5F 6B 40 BC 66 75 BA [15:24:13]CommunicateWithHost err = 0 [15:24:13]CheckOFDResponse [15:24:13]1017 (14) - 77093643461234 [15:24:13]1041 (16) - 0000000002098592 [15:24:13]1040 (4) - 1920 [15:24:13]1012 (4) - 13.07.2024 09:22 [15:24:13]1206 (1) - 0 [15:24:13]OFD Sender: Remove packet 1920 [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00001920 [15:24:13]NVStorageDeleteData [15:24:13]Write to MH i2c: 01 00 00 B7 12 C9 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 12 0D EF [15:24:13]RasterBufferAndPrint [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]written 0, free lines is 3352 [15:24:13]MH_Cut [15:24:13]Write to MH i2c: D1 01 00 BE 12 01 A2 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 01 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 01 00 BE 12 00 A1 [15:24:13]Write to MH i2c: 01 00 00 BF 12 D1 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]OFD Sender: No OFD packet to send [15:24:13]*** Cut start [15:24:13]*** Partial cut [15:24:13]*** CUTSNS_PIN = 1 [15:24:13]*** CUTSNS_PIN = 0 [15:24:14]*** Brake cut motor [15:24:14]Read from MH i2c: 01 [15:24:14]MH_I2C_Read... [15:24:14]*** Stop cut motor [15:24:14]*** Cut end [15:24:14]Read from MH i2c: 01 07 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 FF 0F E6 [15:24:14]process_action close_receipt done [15:24:14]requested_data is exist [15:24:14]produce_requested_data [15:24:14]requested_item fm.sn is exist - process it [15:24:14]wFMCommunicate request_size=4 [15:24:14]MH_SAM_APDU [15:24:14]CAPDU: 80 11 00 00 [15:24:14]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:14]Read from MH i2c: E2 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 17 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A2 [15:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [15:24:14]wFMCommunicate OK [15:24:14]requested_item fd.num is exist - process it [15:24:14]SAM_PROTO_GetFieldsCounters [15:24:14]wFMCommunicate request_size=4 [15:24:14]MH_SAM_APDU [15:24:14]CAPDU: 80 13 00 00 [15:24:14]Write to MH i2c: E2 08 00 C1 12 80 13 00 00 00 00 00 00 4F [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:14]Read from MH i2c: E2 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 62 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 62 00 C1 12 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 80 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15:24:14]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 80 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:14]wFMCommunicate OK [15:24:14]SAM_PROTO_GetFieldsCounters done [15:24:14]requested_item shift.num is exist - process it [15:24:14]requested_item shift.opened is exist - process it [15:24:14]req_shift_opened [15:24:14]FM_GetShiftState [15:24:14]SAM_PROTO_GetShiftState [15:24:14]wFMCommunicate request_size=4 [15:24:14]MH_SAM_APDU [15:24:14]CAPDU: 80 13 01 00 [15:24:14]Write to MH i2c: E2 08 00 C2 12 80 13 01 00 00 00 00 00 51 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:14]Read from MH i2c: E2 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 0E 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 0E 00 C2 12 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 DC [15:24:14]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [15:24:14]wFMCommunicate OK [15:24:14]SAM_PROTO_GetShiftState done [15:24:14]FM_GetShiftState done [15:24:14]req_shift_opened done [15:24:14]requested_item shift.open_date is exist - process it [15:24:14]req_shift_open_date [15:24:14]req_shift_open_date done [15:24:14]produce_requested_data done [15:24:14]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1920,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [15:24:14]process_action_free close_receipt [15:24:14]json_value_free [15:24:14]json_value_free done [15:24:14]process_json_proto returns [15:24:14]Send response to host [15:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1920,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [15:24:14]free response buf [15:24:14]execute_script done [15:24:14]execute_script returns [15:24:14]free content buf [15:24:14]Sock 10.Close socket [15:24:14]Sock 10.Thread stoped [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:28]accept exits with 8 [16:12:28]New connection [16:12:28]New thread 3066834276 created [16:12:28]Thread 3066977636 joined [16:12:28]Waiting for new connection... [16:12:28] Sock 8.Parse request [16:12:28]Sock 8.Check first char [16:12:28]Sock 8.First char is OK [16:12:28]request: POST /json_proto HTTP/1.0 [16:12:28]Method: POST [16:12:28]URL: /json_proto [16:12:28]Method is POST - this is cgi request [16:12:28]url: /json_proto [16:12:28]query_string will be loaded in cgi processing [16:12:28]execute_cgi json_proto POST (null) [16:12:28]execute_cgi path=json_proto method=POST [16:12:28]POST find Content-Length [16:12:28]Host: 172.17.35.133:8080 [16:12:28]Content-Length: 912 [16:12:28]Content-Type: application/json [16:12:28] [16:12:28]POST finish read [16:12:28]Found Content-Length = 912 [16:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256341", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.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" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:28]execute_script... [16:12: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)256341", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.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" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:28]POST & json_proto [16:12:28]process_json_proto [16:12:28]json parsed OK: [16:12:28]protocol is kg_v1.0 [16:12:28]action value=close_receipt [16:12:28]process_action close_receipt [16:12:28]cmd_close_receipt [16:12:28]MH_GetDate [16:12:28]Write to MH i2c: F0 00 00 C3 12 C4 [16:12:28]Write i2c OK [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: F0 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: F0 09 00 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: F0 09 00 C3 12 00 6F A7 92 66 1B 28 2A 66 AE [16:12:28]GetLastDocTimeStamp 1720884252 [16:12:28]current date 1720887151 [16:12:28]FM_GetShiftState [16:12:28]SAM_PROTO_GetShiftState [16:12:28]wFMCommunicate request_size=4 [16:12:28]MH_SAM_APDU [16:12:28]CAPDU: 80 13 01 00 [16:12:28]Write to MH i2c: E2 08 00 C4 12 80 13 01 00 00 00 00 00 53 [16:12:28]Write i2c OK [16:12:28]MH_I2C_Read... [16:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:28]Read from MH i2c: E2 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: E2 0E 00 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: E2 0E 00 C4 12 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 DE [16:12:28]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:12:28]wFMCommunicate OK [16:12:28]SAM_PROTO_GetShiftState done [16:12:28]FM_GetShiftState done [16:12:28]opened in 1720829379 [16:12:28]opened+sec_in_day 1720915779 [16:12:28]quantity*price = 8400 [16:12:28]sum+1 = 8401 [16:12:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 0.00 Безнал.: 84.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 90 13.07.2024 16:12 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1921 ФПД: 108142506418469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161231&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1921&fm=108142506418469&tin=02508201610067®Number=0000000000177495&sum=8400 0 [16:12:30]StoreToDocumentArchive [16:12:30]shift 24 fd 1921 [16:12:30]save to /storage/0024/doc_00001921 [16:12:30]save last doc name /storage/0024/doc_00001921 to /storage/kkm_last_doc_name [16:12:30]save OK [16:12:30]Clear old archive folders... [16:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:12:30]tlvbuf is 00FC8B30 [16:12:30]SAM_PROTO_ClearQueue [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 09 00 00 [16:12:30]Write to MH i2c: E2 08 00 D1 12 80 09 00 00 00 00 00 00 55 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]SAM_PROTO_ClearQueue done [16:12:30]KKMCreateOFDPacket [16:12:30]OFDProtocolAddRootSTLVToBuf [16:12:30]FM_MakeSignedData [16:12:30]FM_MakeSignedData [16:12:30]SAM_PROTO_SignData [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 01 02 [16:12:30]Write to MH i2c: E2 08 00 D2 12 80 0D 01 02 00 00 00 00 5D [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]wFMCommunicate request_size=255 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F A7 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 [16:12:30]Write to MH i2c: E2 02 01 D3 12 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F A7 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 00 00 7B [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]wFMCommunicate request_size=61 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 02 02 38 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 81 07 00 00 35 04 06 00 62 5A E3 AE 21 25 [16:12:30]Write to MH i2c: E2 40 00 D4 12 80 0D 02 02 38 00 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 81 07 00 00 35 04 06 00 62 5A E3 AE 21 25 00 00 BB [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 03 02 [16:12:30]Write to MH i2c: E2 08 00 D5 12 80 0D 03 02 00 00 00 00 62 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 0B 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 0B 00 D5 12 00 AF 7F 7C 8F 45 E4 B5 70 90 00 EA [16:12:30]RAPDU: AF 7F 7C 8F 45 E4 B5 70 90 00 [16:12:30]wFMCommunicate OK [16:12:30]SAM_PROTO_SignData done [16:12:30]FM_MakeSignedData done [16:12:30]CreateOFDProtocolMessage [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 11 00 00 [16:12:30]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 17 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B8 [16:12:30]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:30]wFMCommunicate OK [16:12:30]CreateOFDProtocolMessage done [16:12:30]OFDSenderStorePacket 1921 [16:12:30]StoreOFDPacket docnum=1921 [16:12: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 42 01 00 00 EF D8 3A 01 05 12 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F A7 92 66 0E 04 04 00 18 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 81 07 00 00 35 04 06 00 62 5A E3 AE 21 25 AF 7F 7C 8F 45 E4 B5 70 [16:12:30]CheckFolder [16:12:30]dirname=/storage/ofd_packets [16:12:30]CheckFolder done [16:12:30]ProducePacketName [16:12:30]name=ofd_packets/00001921 [16:12:30]NVStorageSaveData ofd_packets/00001921 [16:12:30]File name is /storage/ofd_packets/00001921 [16:12:30]Write 352 bytes [16:12:30]NVStorageSaveData done [16:12:30]OFDSenderStorePacket done [16:12:30]KKMCreateOFDPacket done [16:12:30]NVStorageSaveData kkm_last_timestamp [16:12:30]File name is /storage/kkm_last_timestamp [16:12:30]Write 4 bytes [16:12:30]NVStorageSaveData done [16:12:30]ExternCall_PrintAddStr [16:12:30]wPrintStart [16:12:30]Write to MH i2c: 01 00 00 D7 12 E9 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 07 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [16:12:30]RasterBufferAndPrint [16:12:30]line Счет N : (3)256341 [16:12:30]line ИНН: 02508201610067 [16:12:30]line Контрольно-Кассовый Чек [16:12:30]line ПРОДАЖА [16:12:30]line Товар: 4870001571030 [16:12:30]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [16:12:30]line 1.000 * 84.00 [16:12:30]line = 84.00 [16:12:30]line НДС 12% НСП 1% [16:12:30]line > о реализуемом товаре [16:12:30]line ИТОГО: 84.00 [16:12:30]line НСП 1% : 0.74 [16:12:30]line НДС 12% : 8.92 [16:12:30]line Наличными: 0.00 [16:12:30]line Безнал.: 84.00 [16:12:30]line Место: АЗС № 76 "Партнер Нефть" [16:12:30]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:12:30]line СНО: Общий режим [16:12:30]line Чек 90 13.07.2024 16:12 [16:12:30]line Смена: 24 ФФД: 1.0 [16:12:30]line ЗНМ: 0300000124 [16:12:30]line РНМ: 0000000000177495 [16:12:30]line Версия ККМ: 001 [16:12:30]line Платежная система: АКБ Кыргызстан [16:12:30]line ФМ: 0000000002098592 [16:12:30]line ФД: 1921 [16:12:30]line ФПД: 108142506418469 [16:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161231&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1921&fm=108142506418469&tin=02508201610067®Number=0000000000177495&sum=8400 [16:12:31]line 0 [16:12:31]OFD Sender: Processing packet 1921 [packets to send 1, broken 0] [16:12:31]ProducePacketName [16:12:31]name=ofd_packets/00001921 [16:12:31]OFD Sender: To server: pG, [16:12:31]CommunicateWithHost lk.salyk.kg:30040 [16:12:31]ConnectInit lk.salyk.kg [16:12:31]written 0, free lines is 4095 [16:12:31]Connected sock=10 [16:12: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 42 01 00 00 EF D8 3A 01 05 12 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F A7 92 66 0E 04 04 00 18 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 81 07 00 00 35 04 06 00 62 5A E3 AE 21 25 AF 7F 7C 8F 45 E4 B5 70 [16:12: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 E5 D8 47 00 C6 0A 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 81 07 00 00 F4 03 04 00 A4 52 92 66 B6 04 01 00 00 E3 BF F2 4F F1 87 B9 E9 [16:12:31]CommunicateWithHost err = 0 [16:12:31]CheckOFDResponse [16:12:31]1017 (14) - 77093643461234 [16:12:31]1041 (16) - 0000000002098592 [16:12:31]1040 (4) - 1921 [16:12:31]1012 (4) - 13.07.2024 10:10 [16:12:31]1206 (1) - 0 [16:12:31]OFD Sender: Remove packet 1921 [16:12:31]ProducePacketName [16:12:31]name=ofd_packets/00001921 [16:12:31]NVStorageDeleteData [16:12:31]Write to MH i2c: 01 00 00 02 13 15 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: 01 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: 01 07 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 D2 0C FA [16:12:31]RasterBufferAndPrint [16:12:31]line [16:12:31]line [16:12:31]line [16:12:31]line [16:12:31]line [16:12:31]written 0, free lines is 3287 [16:12:31]MH_Cut [16:12:31]Write to MH i2c: D1 01 00 09 13 01 EE [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: D1 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: D1 01 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: D1 01 00 09 13 00 ED [16:12:31]Write to MH i2c: 01 00 00 0A 13 1D [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]OFD Sender: No OFD packet to send [16:12:32]*** Cut start [16:12:32]*** Partial cut [16:12:32]*** CUTSNS_PIN = 1 [16:12:32]*** CUTSNS_PIN = 0 [16:12:32]*** Brake cut motor [16:12:32]Read from MH i2c: 01 [16:12:32]MH_I2C_Read... [16:12:32]*** Stop cut motor [16:12:32]*** Cut end [16:12:32]Read from MH i2c: 01 07 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [16:12:32]process_action close_receipt done [16:12:32]requested_data is exist [16:12:32]produce_requested_data [16:12:32]requested_item fm.sn is exist - process it [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 11 00 00 [16:12:32]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 17 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 17 00 0B 13 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:12: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:12:32]wFMCommunicate OK [16:12:32]requested_item fd.num is exist - process it [16:12:32]SAM_PROTO_GetFieldsCounters [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 13 00 00 [16:12:32]Write to MH i2c: E2 08 00 0C 13 80 13 00 00 00 00 00 00 9B [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 62 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 62 00 0C 13 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 81 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [16:12: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 81 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_GetFieldsCounters done [16:12:33]requested_item shift.num is exist - process it [16:12:33]requested_item shift.opened is exist - process it [16:12:33]req_shift_opened [16:12:33]FM_GetShiftState [16:12:33]SAM_PROTO_GetShiftState [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 13 01 00 [16:12:33]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 0E 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 28 [16:12:33]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_GetShiftState done [16:12:33]FM_GetShiftState done [16:12:33]req_shift_opened done [16:12:33]requested_item shift.open_date is exist - process it [16:12:33]req_shift_open_date [16:12:33]req_shift_open_date done [16:12:33]produce_requested_data done [16:12:33]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1921,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [16:12:33]process_action_free close_receipt [16:12:33]json_value_free [16:12:33]json_value_free done [16:12:33]process_json_proto returns [16:12:33]Send response to host [16:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1921,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [16:12:33]free response buf [16:12:33]execute_script done [16:12:33]execute_script returns [16:12:33]free content buf [16:12:33]Sock 8.Close socket [16:12:33]Sock 8.Thread stoped [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]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: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:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]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:17]accept exits with 9 [16:44:17]New connection [16:44:17]New thread 3066977636 created [16:44:17]Thread 3066834276 joined [16:44:17]Waiting for new connection... [16:44:17] Sock 9.Parse request [16:44:17]Sock 9.Check first char [16:44:17]Sock 9.First char is OK [16:44:17]request: POST /json_proto HTTP/1.0 [16:44:17]Method: POST [16:44:17]URL: /json_proto [16:44:17]Method is POST - this is cgi request [16:44:17]url: /json_proto [16:44:17]query_string will be loaded in cgi processing [16:44:17]execute_cgi json_proto POST (null) [16:44:17]execute_cgi path=json_proto method=POST [16:44:17]POST find Content-Length [16:44:17]Host: 172.17.35.133:8080 [16:44:17]Content-Length: 641 [16:44:17]Content-Type: application/json [16:44:17] [16:44:17]POST finish read [16:44:17]Found Content-Length = 641 [16:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619088", "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" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:17]execute_script... [16:44: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 : (1)1619088", "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" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:17]POST & json_proto [16:44:17]process_json_proto [16:44:17]json parsed OK: [16:44:17]protocol is kg_v1.0 [16:44:17]action value=close_receipt [16:44:17]process_action close_receipt [16:44:17]cmd_close_receipt [16:44:17]MH_GetDate [16:44:17]Write to MH i2c: F0 00 00 0E 13 10 [16:44:17]Write i2c OK [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: F0 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: F0 09 00 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: F0 09 00 0E 13 00 E3 AE 92 66 1B 28 2A 66 75 [16:44:17]GetLastDocTimeStamp 1720887151 [16:44:17]current date 1720889059 [16:44:17]FM_GetShiftState [16:44:17]SAM_PROTO_GetShiftState [16:44:17]wFMCommunicate request_size=4 [16:44:17]MH_SAM_APDU [16:44:17]CAPDU: 80 13 01 00 [16:44:17]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [16:44:17]Write i2c OK [16:44:17]MH_I2C_Read... [16:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:17]Read from MH i2c: E2 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 0E 00 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 2A [16:44:17]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:44:17]wFMCommunicate OK [16:44:17]SAM_PROTO_GetShiftState done [16:44:17]FM_GetShiftState done [16:44:17]opened in 1720829379 [16:44:17]opened+sec_in_day 1720915779 [16:44:17]quantity*price = 66300 [16:44:17]sum+1 = 66301 [16:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 91 13.07.2024 16:44 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1922 ФПД: 174717271377881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164419&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1922&fm=174717271377881&tin=02508201610067®Number=0000000000177495&sum=66300 [16:44:18]StoreToDocumentArchive [16:44:18]shift 24 fd 1922 [16:44:18]save to /storage/0024/doc_00001922 [16:44:18]save last doc name /storage/0024/doc_00001922 to /storage/kkm_last_doc_name [16:44:18]save OK [16:44:18]Clear old archive folders... [16:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:18]tlvbuf is 00FF9830 [16:44:18]SAM_PROTO_ClearQueue [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 09 00 00 [16:44:18]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]SAM_PROTO_ClearQueue done [16:44:18]KKMCreateOFDPacket [16:44:18]OFDProtocolAddRootSTLVToBuf [16:44:18]FM_MakeSignedData [16:44:18]FM_MakeSignedData [16:44:18]SAM_PROTO_SignData [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 01 02 [16:44:18]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=255 [16:44:18]MH_SAM_APDU [16:44:18]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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E3 AE 92 66 0E 04 04 00 18 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 82 07 00 00 35 04 06 00 9E [16:44:18]Write to MH i2c: E2 02 01 1E 13 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E3 AE 92 66 0E 04 04 00 18 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 82 07 00 00 35 04 06 00 9E 00 00 FD [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=10 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 02 02 05 E7 88 E5 87 D9 [16:44:18]Write to MH i2c: E2 0D 00 1F 13 80 0D 02 02 05 00 E7 88 E5 87 D9 00 00 6A [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 03 02 [16:44:18]Write to MH i2c: E2 08 00 20 13 80 0D 03 02 00 00 00 00 AE [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:19]Read from MH i2c: E2 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 0B 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 0B 00 20 13 00 7C 9E 32 DF 39 2A E4 59 90 00 7A [16:44:19]RAPDU: 7C 9E 32 DF 39 2A E4 59 90 00 [16:44:19]wFMCommunicate OK [16:44:19]SAM_PROTO_SignData done [16:44:19]FM_MakeSignedData done [16:44:19]CreateOFDProtocolMessage [16:44:19]wFMCommunicate request_size=4 [16:44:19]MH_SAM_APDU [16:44:19]CAPDU: 80 11 00 00 [16:44:19]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:19]Read from MH i2c: E2 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 17 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 04 [16:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:44:19]wFMCommunicate OK [16:44:19]CreateOFDProtocolMessage done [16:44:19]OFDSenderStorePacket 1922 [16:44:19]StoreOFDPacket docnum=1922 [16:44:19]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 87 2A 07 01 71 6F 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E3 AE 92 66 0E 04 04 00 18 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 82 07 00 00 35 04 06 00 9E E7 88 E5 87 D9 7C 9E 32 DF 39 2A E4 59 [16:44:19]CheckFolder [16:44:19]dirname=/storage/ofd_packets [16:44:19]CheckFolder done [16:44:19]ProducePacketName [16:44:19]name=ofd_packets/00001922 [16:44:19]NVStorageSaveData ofd_packets/00001922 [16:44:19]File name is /storage/ofd_packets/00001922 [16:44:19]Write 301 bytes [16:44:19]NVStorageSaveData done [16:44:19]OFDSenderStorePacket done [16:44:19]KKMCreateOFDPacket done [16:44:19]NVStorageSaveData kkm_last_timestamp [16:44:19]File name is /storage/kkm_last_timestamp [16:44:19]Write 4 bytes [16:44:19]NVStorageSaveData done [16:44:19]ExternCall_PrintAddStr [16:44:19]wPrintStart [16:44:19]Write to MH i2c: 01 00 00 22 13 35 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [16:44:19]RasterBufferAndPrint [16:44:19]line Счет N : (1)1619088 [16:44:19]line ИНН: 02508201610067 [16:44:19]line Контрольно-Кассовый Чек [16:44:19]line ПРОДАЖА [16:44:19]line ТРК (МРК, ГНК) : 33 [16:44:19]line Товар: 2710124130 [16:44:19]line Аи-92-К-5 [16:44:19]line 10.000 * 66.30 [16:44:19]line = 663.00 [16:44:19]line НДС 12% НСП 1% [16:44:19]line > о реализуемом товаре [16:44:19]line ИТОГО: 663.00 [16:44:19]line НСП 1% : 5.87 [16:44:19]line НДС 12% : 70.41 [16:44:19]line Наличными: 663.00 [16:44:19]line Безнал.: 0.00 [16:44:19]line Место: АЗС № 76 "Партнер Нефть" [16:44:19]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:44:19]line СНО: Общий режим [16:44:19]line Чек 91 13.07.2024 16:44 [16:44:19]line Смена: 24 ФФД: 1.0 [16:44:19]line ЗНМ: 0300000124 [16:44:19]line РНМ: 0000000000177495 [16:44:19]line Версия ККМ: 001 [16:44:19]line ФМ: 0000000002098592 [16:44:19]line ФД: 1922 [16:44:19]line ФПД: 174717271377881 [16:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164419&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1922&fm=174717271377881&tin=02508201610067®Number=0000000000177495&sum=66300 [16:44:19]OFD Sender: Processing packet 1922 [packets to send 1, broken 0] [16:44:19]ProducePacketName [16:44:19]name=ofd_packets/00001922 [16:44:19]OFD Sender: To server: pG, [16:44:19]CommunicateWithHost lk.salyk.kg:30040 [16:44:19]ConnectInit lk.salyk.kg [16:44:19]written 0, free lines is 4095 [16:44:19]Connected sock=10 [16:44:19]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 87 2A 07 01 71 6F 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E3 AE 92 66 0E 04 04 00 18 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 82 07 00 00 35 04 06 00 9E E7 88 E5 87 D9 7C 9E 32 DF 39 2A E4 59 [16:44:19]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 2E 73 47 00 CF 05 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 82 07 00 00 F4 03 04 00 19 5A 92 66 B6 04 01 00 00 D6 88 0B 0A AA D2 FA 4D [16:44:19]CommunicateWithHost err = 0 [16:44:19]CheckOFDResponse [16:44:19]1017 (14) - 77093643461234 [16:44:19]1041 (16) - 0000000002098592 [16:44:19]1040 (4) - 1922 [16:44:19]1012 (4) - 13.07.2024 10:42 [16:44:19]1206 (1) - 0 [16:44:19]OFD Sender: Remove packet 1922 [16:44:19]ProducePacketName [16:44:19]name=ofd_packets/00001922 [16:44:19]NVStorageDeleteData [16:44:19]Write to MH i2c: 01 00 00 4A 13 5D [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 4A 13 00 00 00 00 00 0D 0D 7E [16:44:19]RasterBufferAndPrint [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]written 0, free lines is 3347 [16:44:19]MH_Cut [16:44:19]Write to MH i2c: D1 01 00 51 13 01 36 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: D1 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: D1 01 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: D1 01 00 51 13 00 35 [16:44:19]Write to MH i2c: 01 00 00 52 13 65 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:20]OFD Sender: No OFD packet to send [16:44:20]*** Cut start [16:44:20]*** Partial cut [16:44:20]*** CUTSNS_PIN = 1 [16:44:20]*** CUTSNS_PIN = 0 [16:44:20]*** Brake cut motor [16:44:21]Read from MH i2c: 01 [16:44:21]MH_I2C_Read... [16:44:21]*** Stop cut motor [16:44:21]*** Cut end [16:44:21]Read from MH i2c: 01 07 00 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: 01 07 00 52 13 00 00 00 00 00 FF 0F 7A [16:44:21]process_action close_receipt done [16:44:21]requested_data is exist [16:44:21]produce_requested_data [16:44:21]requested_item fm.sn is exist - process it [16:44:21]wFMCommunicate request_size=4 [16:44:21]MH_SAM_APDU [16:44:21]CAPDU: 80 11 00 00 [16:44:21]Write to MH i2c: E2 08 00 53 13 80 11 00 00 00 00 00 00 E0 [16:44:21]Write i2c OK [16:44:21]MH_I2C_Read... [16:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:21]Read from MH i2c: E2 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 17 00 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 17 00 53 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 36 [16:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:44:21]wFMCommunicate OK [16:44:21]requested_item fd.num is exist - process it [16:44:21]SAM_PROTO_GetFieldsCounters [16:44:21]wFMCommunicate request_size=4 [16:44:21]MH_SAM_APDU [16:44:21]CAPDU: 80 13 00 00 [16:44:21]Write to MH i2c: E2 08 00 54 13 80 13 00 00 00 00 00 00 E3 [16:44:21]Write i2c OK [16:44:21]MH_I2C_Read... [16:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:21]Read from MH i2c: E2 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 62 00 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 62 00 54 13 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 82 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:44:21]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 82 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:21]wFMCommunicate OK [16:44:21]SAM_PROTO_GetFieldsCounters done [16:44:21]requested_item shift.num is exist - process it [16:44:21]requested_item shift.opened is exist - process it [16:44:21]req_shift_opened [16:44:21]FM_GetShiftState [16:44:21]SAM_PROTO_GetShiftState [16:44:21]wFMCommunicate request_size=4 [16:44:21]MH_SAM_APDU [16:44:21]CAPDU: 80 13 01 00 [16:44:21]Write to MH i2c: E2 08 00 55 13 80 13 01 00 00 00 00 00 E5 [16:44:21]Write i2c OK [16:44:21]MH_I2C_Read... [16:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:21]Read from MH i2c: E2 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 0E 00 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 0E 00 55 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 70 [16:44:21]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:44:21]wFMCommunicate OK [16:44:21]SAM_PROTO_GetShiftState done [16:44:21]FM_GetShiftState done [16:44:21]req_shift_opened done [16:44:21]requested_item shift.open_date is exist - process it [16:44:21]req_shift_open_date [16:44:21]req_shift_open_date done [16:44:21]produce_requested_data done [16:44:21]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1922,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [16:44:21]process_action_free close_receipt [16:44:21]json_value_free [16:44:21]json_value_free done [16:44:21]process_json_proto returns [16:44:21]Send response to host [16:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1922,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [16:44:21]free response buf [16:44:21]execute_script done [16:44:21]execute_script returns [16:44:21]free content buf [16:44:21]Sock 9.Close socket [16:44:21]Sock 9.Thread stoped [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:52]accept exits with 8 [16:44:52]New connection [16:44:52]New thread 3066834276 created [16:44:52]Thread 3066977636 joined [16:44:52]Waiting for new connection... [16:44:52] Sock 8.Parse request [16:44:52]Sock 8.Check first char [16:44:52]Sock 8.First char is OK [16:44:52]request: POST /json_proto HTTP/1.0 [16:44:52]Method: POST [16:44:52]URL: /json_proto [16:44:52]Method is POST - this is cgi request [16:44:52]url: /json_proto [16:44:52]query_string will be loaded in cgi processing [16:44:52]execute_cgi json_proto POST (null) [16:44:52]execute_cgi path=json_proto method=POST [16:44:52]POST find Content-Length [16:44:52]Host: 172.17.35.133:8080 [16:44:52]Content-Length: 215 [16:44:52]Content-Type: application/json [16:44:52] [16:44:52]POST finish read [16:44:52]Found Content-Length = 215 [16:44:52]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:44:52]execute_script... [16:44:52]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:44:52]POST & json_proto [16:44:52]process_json_proto [16:44:52]json parsed OK: [16:44:52]protocol is kg_v1.0 [16:44:52]action value=get_value [16:44:52]process_action get_value [16:44:52]cmd_get_value [16:44:52]process_action get_value done [16:44:52]requested_data is exist [16:44:52]produce_requested_data [16:44:52]requested_item kkm.sn is exist - process it [16:44:52]requested_item kkm.ver is exist - process it [16:44:52]requested_item fm.sn is exist - process it [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 11 00 00 [16:44:52]Write to MH i2c: E2 08 00 56 13 80 11 00 00 00 00 00 00 E3 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 17 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 17 00 56 13 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:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:44:52]wFMCommunicate OK [16:44:52]requested_item fd.num is exist - process it [16:44:52]SAM_PROTO_GetFieldsCounters [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 13 00 00 [16:44:52]Write to MH i2c: E2 08 00 57 13 80 13 00 00 00 00 00 00 E6 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 62 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 62 00 57 13 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 82 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:44: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 82 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:52]wFMCommunicate OK [16:44:52]SAM_PROTO_GetFieldsCounters done [16:44:52]requested_item shift.num is exist - process it [16:44:52]requested_item shift.opened is exist - process it [16:44:52]req_shift_opened [16:44:52]FM_GetShiftState [16:44:52]SAM_PROTO_GetShiftState [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 13 01 00 [16:44:52]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 0E 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 73 [16:44:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:44:52]wFMCommunicate OK [16:44:52]SAM_PROTO_GetShiftState done [16:44:52]FM_GetShiftState done [16:44:52]req_shift_opened done [16:44:52]requested_item shift.open_date is exist - process it [16:44:52]req_shift_open_date [16:44:52]req_shift_open_date done [16:44:52]produce_requested_data done [16:44:52]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1922,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [16:44:52]process_action_free get_value [16:44:52]json_value_free [16:44:52]json_value_free done [16:44:52]process_json_proto returns [16:44:52]Send response to host [16:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1922,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [16:44:52]free response buf [16:44:52]execute_script done [16:44:52]execute_script returns [16:44:52]free content buf [16:44:52]Sock 8.Close socket [16:44:52]Sock 8.Thread stoped [16:44:52]accept exits with 9 [16:44:52]New connection [16:44:52]New thread 3066977636 created [16:44:52]Thread 3066834276 joined [16:44:52]Waiting for new connection... [16:44:52] Sock 9.Parse request [16:44:52]Sock 9.Check first char [16:44:52]Sock 9.First char is OK [16:44:52]request: POST /json_proto HTTP/1.0 [16:44:52]Method: POST [16:44:52]URL: /json_proto [16:44:52]Method is POST - this is cgi request [16:44:52]url: /json_proto [16:44:52]query_string will be loaded in cgi processing [16:44:52]execute_cgi json_proto POST (null) [16:44:52]execute_cgi path=json_proto method=POST [16:44:52]POST find Content-Length [16:44:52]Host: 172.17.35.133:8080 [16:44:52]Content-Length: 331 [16:44:52]Content-Type: application/json [16:44:52] [16:44:52]POST finish read [16:44:52]Found Content-Length = 331 [16:44:52]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:44:52]execute_script... [16:44:52]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:44:52]POST & json_proto [16:44:52]process_json_proto [16:44:52]json parsed OK: [16:44:52]protocol is kg_v1.0 [16:44:52]action value=get_value [16:44:52]process_action get_value [16:44:52]cmd_get_value [16:44:52]process_action get_value done [16:44:52]requested_data is exist [16:44:52]produce_requested_data [16:44:52]requested_item fm.sale.total is exist - process it [16:44:52]SAM_PROTO_GetFMData [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 13 03 00 [16:44:52]Write to MH i2c: E2 08 00 59 13 80 13 03 00 00 00 00 00 EB [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 FD 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 FD 00 59 13 00 BA 04 85 04 B6 04 6E 04 04 00 52 07 00 00 69 04 9F 00 6F 04 04 00 50 07 00 00 B1 04 04 00 2E 44 C9 04 70 04 04 00 28 64 F2 03 72 04 03 00 06 E0 D6 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 F1 1E 82 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 C6 D6 0A 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 F4 [16:44:53]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 52 07 00 00 69 04 9F 00 6F 04 04 00 50 07 00 00 B1 04 04 00 2E 44 C9 04 70 04 04 00 28 64 F2 03 72 04 03 00 06 E0 D6 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 F1 1E 82 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 C6 D6 0A 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:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 17 00 00 [16:44:53]Write to MH i2c: E2 08 00 5A 13 80 17 00 00 00 00 00 00 ED [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 FD 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 FD 00 5A 13 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 EA [16:44: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 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 17 00 00 [16:44:53]Write to MH i2c: E2 08 00 5B 13 80 17 00 00 00 00 00 00 EE [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 FD 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 FD 00 5B 13 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 1A [16:44:53]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:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 17 00 00 [16:44:53]Write to MH i2c: E2 08 00 5C 13 80 17 00 00 00 00 00 00 EF [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 FD 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 FD 00 5C 13 00 00 EF 03 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 67 [16:44: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:44:54]wFMCommunicate OK [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 17 00 00 [16:44:54]Write to MH i2c: E2 08 00 5D 13 80 17 00 00 00 00 00 00 F0 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 D7 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 D7 00 5D 13 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 D3 [16:44:54]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:44:54]wFMCommunicate OK [16:44:54]SAM_PROTO_GetFMData done [16:44:54]requested_item fm.sale_refund.total is exist - process it [16:44:54]requested_item fm.buy.total is exist - process it [16:44:54]requested_item shift.sale.total is exist - process it [16:44:54]SAM_PROTO_GetShiftData [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 13 02 00 [16:44:54]Write to MH i2c: E2 08 00 5E 13 80 13 02 00 00 00 00 00 EF [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 FD 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 FD 00 5E 13 00 AF 04 AA 04 AB 04 6E 04 04 00 5B 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 95 63 79 70 04 03 00 68 6C 5D 72 04 03 00 2D F7 1B 00 04 7B 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 89 E4 0C 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 02 13 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [16:44:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 5B 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 95 63 79 70 04 03 00 68 6C 5D 72 04 03 00 2D F7 1B 00 04 7B 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 89 E4 0C 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 02 13 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:44:54]wFMCommunicate OK [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 17 00 00 [16:44:54]Write to MH i2c: E2 08 00 5F 13 80 17 00 00 00 00 00 00 F2 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 FD 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 FD 00 5F 13 00 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 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 90 00 0B [16:44:55]RAPDU: 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 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 90 00 [16:44:55]wFMCommunicate OK [16:44:55]wFMCommunicate request_size=4 [16:44:55]MH_SAM_APDU [16:44:55]CAPDU: 80 17 00 00 [16:44:55]Write to MH i2c: E2 08 00 60 13 80 17 00 00 00 00 00 00 F3 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]OFD Sender: No OFD packet to send [16:44:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 FD 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 FD 00 60 13 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 A7 [16:44:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [16:44:55]wFMCommunicate OK [16:44:55]wFMCommunicate request_size=4 [16:44:55]MH_SAM_APDU [16:44:55]CAPDU: 80 17 00 00 [16:44:55]Write to MH i2c: E2 08 00 61 13 80 17 00 00 00 00 00 00 F4 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 FD 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 FD 00 61 13 00 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 90 00 72 [16:44:55]RAPDU: 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 90 00 [16:44:55]wFMCommunicate OK [16:44:55]wFMCommunicate request_size=4 [16:44:55]MH_SAM_APDU [16:44:55]CAPDU: 80 17 00 00 [16:44:55]Write to MH i2c: E2 08 00 62 13 80 17 00 00 00 00 00 00 F5 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 CC 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 CC 00 62 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [16:44:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:44:56]wFMCommunicate OK [16:44:56]SAM_PROTO_GetShiftData done [16:44:56]requested_item shift.sale.total_cash is exist - process it [16:44:56]requested_item shift.sale_refund.total is exist - process it [16:44:56]requested_item shift.sale_refund.total_cash is exist - process it [16:44:56]requested_item shift.buy.total is exist - process it [16:44:56]requested_item shift.buy.total_cash is exist - process it [16:44:56]produce_requested_data done [16:44:56]produce_requested_data return {"fm.sale.total":802990.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":79553.49,"shift.sale.total_cash":61226.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:44:56]process_action_free get_value [16:44:56]json_value_free [16:44:56]json_value_free done [16:44:56]process_json_proto returns [16:44:56]Send response to host [16:44:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":802990.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":79553.49,"shift.sale.total_cash":61226.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:44:56]free response buf [16:44:56]execute_script done [16:44:56]execute_script returns [16:44:56]free content buf [16:44:56]Sock 9.Close socket [16:44:56]Sock 9.Thread stoped [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:23]accept exits with 8 [16:48:23]New connection [16:48:23]New thread 3066834276 created [16:48:23]Thread 3066977636 joined [16:48:23]Waiting for new connection... [16:48:23] Sock 8.Parse request [16:48:23]Sock 8.Check first char [16:48:23]Sock 8.First char is OK [16:48:23]request: POST /json_proto HTTP/1.0 [16:48:23]Method: POST [16:48:23]URL: /json_proto [16:48:23]Method is POST - this is cgi request [16:48:23]url: /json_proto [16:48:23]query_string will be loaded in cgi processing [16:48:23]execute_cgi json_proto POST (null) [16:48:23]execute_cgi path=json_proto method=POST [16:48:23]POST find Content-Length [16:48:23]Host: 172.17.35.133:8080 [16:48:23]Content-Length: 1268 [16:48:23]Content-Type: application/json [16:48:23] [16:48:23]POST finish read [16:48:23]Found Content-Length = 1268 [16:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256342", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.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" : 233.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:23]execute_script... [16:48:23]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)256342", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.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" : 233.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:23]POST & json_proto [16:48:23]process_json_proto [16:48:23]json parsed OK: [16:48:23]protocol is kg_v1.0 [16:48:23]action value=close_receipt [16:48:23]process_action close_receipt [16:48:23]cmd_close_receipt [16:48:23]MH_GetDate [16:48:23]Write to MH i2c: F0 00 00 63 13 65 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: F0 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: F0 09 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: F0 09 00 63 13 00 D9 AF 92 66 1B 28 2A 66 C1 [16:48:23]GetLastDocTimeStamp 1720889059 [16:48:23]current date 1720889305 [16:48:23]FM_GetShiftState [16:48:23]SAM_PROTO_GetShiftState [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 13 01 00 [16:48:23]Write to MH i2c: E2 08 00 64 13 80 13 01 00 00 00 00 00 F4 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 64 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 7F [16:48:23]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetShiftState done [16:48:23]FM_GetShiftState done [16:48:23]opened in 1720829379 [16:48:23]opened+sec_in_day 1720915779 [16:48:23]quantity*price = 9500 [16:48:23]sum+1 = 9501 [16:48:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483334 Напиток Nitro Fresh Дикие ягоды 1.000 * 82.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 233.00 НСП 1% : 2.07 НДС 12% : 24.75 Наличными: 233.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 92 13.07.2024 16:48 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1923 ФПД: 84182549009183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164825&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1923&fm=84182549009183&tin=02508201610067®Number=0000000000177495&sum=23300 0 [16:48:24]StoreToDocumentArchive [16:48:24]shift 24 fd 1923 [16:48:24]save to /storage/0024/doc_00001923 [16:48:24]save last doc name /storage/0024/doc_00001923 to /storage/kkm_last_doc_name [16:48:24]save OK [16:48:24]Clear old archive folders... [16:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=538 [16:48:24]tlvbuf is 0100DAC0 [16:48:24]SAM_PROTO_ClearQueue [16:48:24]wFMCommunicate request_size=4 [16:48:24]MH_SAM_APDU [16:48:24]CAPDU: 80 09 00 00 [16:48:24]Write to MH i2c: E2 08 00 71 13 80 09 00 00 00 00 00 00 F6 [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:24]Read from MH i2c: E2 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: E2 03 00 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: E2 03 00 71 13 00 90 00 F8 [16:48:24]RAPDU: 90 00 [16:48:24]wFMCommunicate OK [16:48:24]SAM_PROTO_ClearQueue done [16:48:24]KKMCreateOFDPacket [16:48:24]OFDProtocolAddRootSTLVToBuf [16:48:24]FM_MakeSignedData [16:48:24]FM_MakeSignedData [16:48:24]SAM_PROTO_SignData [16:48:24]wFMCommunicate request_size=4 [16:48:24]MH_SAM_APDU [16:48:24]CAPDU: 80 0D 01 02 [16:48:24]Write to MH i2c: E2 08 00 72 13 80 0D 01 02 00 00 00 00 FE [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:24]Read from MH i2c: E2 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: E2 03 00 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: E2 03 00 72 13 00 90 00 F9 [16:48:24]RAPDU: 90 00 [16:48:24]wFMCommunicate OK [16:48:24]wFMCommunicate request_size=255 [16:48:24]MH_SAM_APDU [16:48:24]CAPDU: 80 0D 02 02 FA 03 00 1A 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 [16:48:24]Write to MH i2c: E2 02 01 73 13 80 0D 02 02 FA 00 03 00 1A 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 00 3A [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 73 13 00 90 00 FA [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]wFMCommunicate request_size=255 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 0D 02 02 FA 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 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D9 AF 92 66 0E 04 04 00 18 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:48:25]Write to MH i2c: E2 02 01 74 13 80 0D 02 02 FA 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 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D9 AF 92 66 0E 04 04 00 18 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 F4 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 74 13 00 90 00 FB [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]wFMCommunicate request_size=47 [16:48:25]MH_SAM_APDU [16:48:25]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 83 07 00 00 35 04 06 00 4C 90 46 EE 13 1F [16:48:25]Write to MH i2c: E2 32 00 75 13 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 83 07 00 00 35 04 06 00 4C 90 46 EE 13 1F 00 00 9A [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 75 13 00 90 00 FC [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 0D 03 02 [16:48:25]Write to MH i2c: E2 08 00 76 13 80 0D 03 02 00 00 00 00 04 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0B 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0B 00 76 13 00 82 81 8C 13 0B 9E 8B 13 90 00 EE [16:48:25]RAPDU: 82 81 8C 13 0B 9E 8B 13 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_SignData done [16:48:25]FM_MakeSignedData done [16:48:25]CreateOFDProtocolMessage [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 77 13 80 11 00 00 00 00 00 00 04 [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 77 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5A [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]CreateOFDProtocolMessage done [16:48:25]OFDSenderStorePacket 1923 [16:48:25]StoreOFDPacket docnum=1923 [16:48: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 2E 02 00 00 14 8C 26 02 F9 95 5A 03 01 00 03 00 1A 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 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 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D9 AF 92 66 0E 04 04 00 18 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 83 07 00 00 35 04 06 00 4C 90 46 EE 13 1F 82 81 8C 13 0B 9E 8B 13 [16:48:25]CheckFolder [16:48:25]dirname=/storage/ofd_packets [16:48:25]CheckFolder done [16:48:25]ProducePacketName [16:48:25]name=ofd_packets/00001923 [16:48:25]NVStorageSaveData ofd_packets/00001923 [16:48:25]File name is /storage/ofd_packets/00001923 [16:48:25]Write 588 bytes [16:48:25]NVStorageSaveData done [16:48:25]OFDSenderStorePacket done [16:48:25]KKMCreateOFDPacket done [16:48:25]NVStorageSaveData kkm_last_timestamp [16:48:25]File name is /storage/kkm_last_timestamp [16:48:25]Write 4 bytes [16:48:25]NVStorageSaveData done [16:48:25]ExternCall_PrintAddStr [16:48:25]wPrintStart [16:48:25]Write to MH i2c: 01 00 00 78 13 8B [16:48:25]OFD Sender: No OFD packet to send [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: 01 [16:48:25]MH_I2C_Read... [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 78 13 00 00 00 00 00 FF 0F A0 [16:48:25]RasterBufferAndPrint [16:48:25]line Счет N : (3)256342 [16:48:25]line ИНН: 02508201610067 [16:48:25]line Контрольно-Кассовый Чек [16:48:25]line ПРОДАЖА [16:48:25]line Товар: 4700000481989 [16:48:25]line Напиток энерг Nitro киви-мангостин 0,45 [16:48:25]line 1.000 * 95.00 [16:48:25]line = 95.00 [16:48:25]line НДС 12% НСП 1% [16:48:25]line > о реализуемом товаре [16:48:25]line Товар: 4700000483334 [16:48:25]line Напиток Nitro Fresh Дикие ягоды [16:48:25]line 1.000 * 82.00 [16:48:25]line = 82.00 [16:48:25]line НДС 12% НСП 1% [16:48:25]line > о реализуемом товаре [16:48:25]line Товар: 4607065001445 [16:48:25]line Шок батончик Snickers 50,5г [16:48:25]line 1.000 * 56.00 [16:48:25]line = 56.00 [16:48:25]line НДС 12% НСП 1% [16:48:25]line > о реализуемом товаре [16:48:25]line ИТОГО: 233.00 [16:48:25]line НСП 1% : 2.07 [16:48:25]line НДС 12% : 24.75 [16:48:25]line Наличными: 233.00 [16:48:25]line Безнал.: 0.00 [16:48:25]line Место: АЗС № 76 "Партнер Нефть" [16:48:25]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:48:25]line СНО: Общий режим [16:48:25]line Чек 92 13.07.2024 16:48 [16:48:25]line Смена: 24 ФФД: 1.0 [16:48:25]line ЗНМ: 0300000124 [16:48:25]line РНМ: 0000000000177495 [16:48:25]line Версия ККМ: 001 [16:48:25]line ФМ: 0000000002098592 [16:48:25]line ФД: 1923 [16:48:25]line ФПД: 84182549009183 [16:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164825&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1923&fm=84182549009183&tin=02508201610067®Number=0000000000177495&sum=23300 [16:48:25]line 0 [16:48:25]written 0, free lines is 4095 [16:48:25]OFD Sender: Processing packet 1923 [packets to send 1, broken 0] [16:48:25]ProducePacketName [16:48:25]name=ofd_packets/00001923 [16:48:25]OFD Sender: To server: pG, [16:48:25]CommunicateWithHost lk.salyk.kg:30040 [16:48:25]ConnectInit lk.salyk.kg [16:48:25]Connected sock=10 [16:48: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 2E 02 00 00 14 8C 26 02 F9 95 5A 03 01 00 03 00 1A 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 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 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D9 AF 92 66 0E 04 04 00 18 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 83 07 00 00 35 04 06 00 4C 90 46 EE 13 1F 82 81 8C 13 0B 9E 8B 13 [16:48:25]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 CF 7A 47 00 3F 0A 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 83 07 00 00 F4 03 04 00 0F 5B 92 66 B6 04 01 00 00 8B 6E 72 F1 71 6E 8B 5A [16:48:25]CommunicateWithHost err = 0 [16:48:25]CheckOFDResponse [16:48:25]1017 (14) - 77093643461234 [16:48:25]1041 (16) - 0000000002098592 [16:48:25]1040 (4) - 1923 [16:48:25]1012 (4) - 13.07.2024 10:46 [16:48:25]1206 (1) - 0 [16:48:25]OFD Sender: Remove packet 1923 [16:48:25]ProducePacketName [16:48:25]name=ofd_packets/00001923 [16:48:25]NVStorageDeleteData [16:48:26]Write to MH i2c: 01 00 00 AE 13 C1 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: 01 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: 01 07 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: 01 07 00 AE 13 00 00 00 00 00 18 0C EC [16:48:26]RasterBufferAndPrint [16:48:26]line [16:48:26]line [16:48:26]line [16:48:26]line [16:48:26]line [16:48:26]written 0, free lines is 3103 [16:48:26]MH_Cut [16:48:26]Write to MH i2c: D1 01 00 B5 13 01 9A [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: D1 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: D1 01 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: D1 01 00 B5 13 00 99 [16:48:26]Write to MH i2c: 01 00 00 B6 13 C9 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]OFD Sender: No OFD packet to send [16:48:26]*** Cut start [16:48:26]*** Partial cut [16:48:27]*** CUTSNS_PIN = 1 [16:48:27]*** CUTSNS_PIN = 0 [16:48:27]*** Brake cut motor [16:48:27]Read from MH i2c: 01 [16:48:27]MH_I2C_Read... [16:48:27]*** Stop cut motor [16:48:27]*** Cut end [16:48:27]Read from MH i2c: 01 07 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [16:48:27]process_action close_receipt done [16:48:27]requested_data is exist [16:48:27]produce_requested_data [16:48:27]requested_item fm.sn is exist - process it [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 11 00 00 [16:48:27]Write to MH i2c: E2 08 00 B7 13 80 11 00 00 00 00 00 00 44 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 17 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 17 00 B7 13 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:48: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:48:27]wFMCommunicate OK [16:48:27]requested_item fd.num is exist - process it [16:48:27]SAM_PROTO_GetFieldsCounters [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 13 00 00 [16:48:27]Write to MH i2c: E2 08 00 B8 13 80 13 00 00 00 00 00 00 47 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 62 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 62 00 B8 13 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 83 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:48: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 83 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_GetFieldsCounters done [16:48:27]requested_item shift.num is exist - process it [16:48:27]requested_item shift.opened is exist - process it [16:48:27]req_shift_opened [16:48:27]FM_GetShiftState [16:48:27]SAM_PROTO_GetShiftState [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 13 01 00 [16:48:27]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0E 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D4 [16:48:27]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_GetShiftState done [16:48:27]FM_GetShiftState done [16:48:27]req_shift_opened done [16:48:27]requested_item shift.open_date is exist - process it [16:48:27]req_shift_open_date [16:48:27]req_shift_open_date done [16:48:27]produce_requested_data done [16:48:27]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1923,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [16:48:27]process_action_free close_receipt [16:48:27]json_value_free [16:48:27]json_value_free done [16:48:27]process_json_proto returns [16:48:27]Send response to host [16:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1923,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [16:48:27]free response buf [16:48:27]execute_script done [16:48:27]execute_script returns [16:48:27]free content buf [16:48:27]Sock 8.Close socket [16:48:27]Sock 8.Thread stoped [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:39]accept exits with 9 [16:50:39]New connection [16:50:39]New thread 3066977636 created [16:50:39]Thread 3066834276 joined [16:50:39]Waiting for new connection... [16:50:39] Sock 9.Parse request [16:50:39]Sock 9.Check first char [16:50:39]Sock 9.First char is OK [16:50:39]request: POST /json_proto HTTP/1.0 [16:50:39]Method: POST [16:50:39]URL: /json_proto [16:50:39]Method is POST - this is cgi request [16:50:39]url: /json_proto [16:50:39]query_string will be loaded in cgi processing [16:50:39]execute_cgi json_proto POST (null) [16:50:39]execute_cgi path=json_proto method=POST [16:50:39]POST find Content-Length [16:50:39]Host: 172.17.35.133:8080 [16:50:39]Content-Length: 1663 [16:50:39]Content-Type: application/json [16:50:39] [16:50:39]POST finish read [16:50:39]Found Content-Length = 1663 [16:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256343", "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 }]} ,{ "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": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290003032", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 \u042F\u0448\u043A\u0438\u043D\u043E \u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439 \u0445\u0440\u0443\u0441\u0442 \u0441 \u043A\u0443\u043D\u0436\u0443\u0442", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 292.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:39]execute_script... [16:50:39]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)256343", "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 }]} ,{ "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": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290003032", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 \u042F\u0448\u043A\u0438\u043D\u043E \u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439 \u0445\u0440\u0443\u0441\u0442 \u0441 \u043A\u0443\u043D\u0436\u0443\u0442", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 292.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:39]POST & json_proto [16:50:39]process_json_proto [16:50:39]json parsed OK: [16:50:39]protocol is kg_v1.0 [16:50:39]action value=close_receipt [16:50:39]process_action close_receipt [16:50:39]cmd_close_receipt [16:50:39]MH_GetDate [16:50:39]Write to MH i2c: F0 00 00 BA 13 BC [16:50:39]Write i2c OK [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: F0 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: F0 09 00 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: F0 09 00 BA 13 00 62 B0 92 66 1B 28 2A 66 A2 [16:50:39]GetLastDocTimeStamp 1720889305 [16:50:39]current date 1720889442 [16:50:39]FM_GetShiftState [16:50:39]SAM_PROTO_GetShiftState [16:50:39]wFMCommunicate request_size=4 [16:50:39]MH_SAM_APDU [16:50:39]CAPDU: 80 13 01 00 [16:50:39]Write to MH i2c: E2 08 00 BB 13 80 13 01 00 00 00 00 00 4B [16:50:39]Write i2c OK [16:50:39]MH_I2C_Read... [16:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:39]Read from MH i2c: E2 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 0E 00 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 0E 00 BB 13 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D6 [16:50:39]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:50:39]wFMCommunicate OK [16:50:39]SAM_PROTO_GetShiftState done [16:50:39]FM_GetShiftState done [16:50:39]opened in 1720829379 [16:50:39]opened+sec_in_day 1720915779 [16:50:39]quantity*price = 10700 [16:50:39]sum+1 = 10701 [16:50:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600338007564 Сок Фруто НЯНЯ мультифрукт 0,2л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290003032 Крекер Яшкино Французский хруст с кунжут 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 292.00 НСП 1% : 2.58 НДС 12% : 31.00 Наличными: 292.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 93 13.07.2024 16:50 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1924 ФПД: 61079496049305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165042&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1924&fm=61079496049305&tin=02508201610067®Number=0000000000177495&sum=29200 0 [16:50:40]StoreToDocumentArchive [16:50:40]shift 24 fd 1924 [16:50:40]save to /storage/0024/doc_00001924 [16:50:40]save last doc name /storage/0024/doc_00001924 to /storage/kkm_last_doc_name [16:50:40]save OK [16:50:40]Clear old archive folders... [16:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=671 [16:50:40]tlvbuf is 00FFA2D0 [16:50:40]SAM_PROTO_ClearQueue [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 09 00 00 [16:50:40]Write to MH i2c: E2 08 00 C8 13 80 09 00 00 00 00 00 00 4D [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]SAM_PROTO_ClearQueue done [16:50:41]KKMCreateOFDPacket [16:50:41]OFDProtocolAddRootSTLVToBuf [16:50:41]FM_MakeSignedData [16:50:41]FM_MakeSignedData [16:50:41]SAM_PROTO_SignData [16:50:41]wFMCommunicate request_size=4 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 01 02 [16:50:41]Write to MH i2c: E2 08 00 C9 13 80 0D 01 02 00 00 00 00 55 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]wFMCommunicate request_size=255 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 02 02 FA 03 00 9F 02 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 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 7B 00 8A 04 0D 00 34 36 30 30 33 33 [16:50:41]Write to MH i2c: E2 02 01 CA 13 80 0D 02 02 FA 00 03 00 9F 02 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 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 7B 00 8A 04 0D 00 34 36 30 30 33 33 00 00 24 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]wFMCommunicate request_size=255 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 02 02 FA 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 [16:50:41]Write to MH i2c: E2 02 01 CB 13 80 0D 02 02 FA 00 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 00 00 97 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]OFD Sender: No OFD packet to send [16:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 CB 13 00 90 00 52 [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]wFMCommunicate request_size=180 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 02 02 AF F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0C 00 00 00 00 07 04 06 00 10 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 62 B0 92 66 0E 04 04 00 18 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 84 07 00 00 35 04 06 00 37 8D 2D AA 42 99 [16:50:41]Write to MH i2c: E2 B7 00 CC 13 80 0D 02 02 AF 00 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0C 00 00 00 00 07 04 06 00 10 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 62 B0 92 66 0E 04 04 00 18 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 84 07 00 00 35 04 06 00 37 8D 2D AA 42 99 00 00 70 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 CC 13 00 90 00 53 [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]wFMCommunicate request_size=4 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 03 02 [16:50:41]Write to MH i2c: E2 08 00 CD 13 80 0D 03 02 00 00 00 00 5B [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 0B 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 0B 00 CD 13 00 17 F1 22 8B B0 D8 26 A8 90 00 67 [16:50:41]RAPDU: 17 F1 22 8B B0 D8 26 A8 90 00 [16:50:41]wFMCommunicate OK [16:50:41]SAM_PROTO_SignData done [16:50:41]FM_MakeSignedData done [16:50:41]CreateOFDProtocolMessage [16:50:41]wFMCommunicate request_size=4 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 11 00 00 [16:50:41]Write to MH i2c: E2 08 00 CE 13 80 11 00 00 00 00 00 00 5B [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 17 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 17 00 CE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B1 [16:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [16:50:41]wFMCommunicate OK [16:50:41]CreateOFDProtocolMessage done [16:50:41]OFDSenderStorePacket 1924 [16:50:41]StoreOFDPacket docnum=1924 [16:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 B3 02 00 00 17 63 AB 02 5C ED 5A 03 01 00 03 00 9F 02 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 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 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 10 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0C 00 00 00 00 07 04 06 00 10 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 62 B0 92 66 0E 04 04 00 18 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 84 07 00 00 35 04 06 00 37 8D 2D AA 42 99 17 F1 22 8B B0 D8 26 A8 [16:50:41]CheckFolder [16:50:41]dirname=/storage/ofd_packets [16:50:41]CheckFolder done [16:50:41]ProducePacketName [16:50:41]name=ofd_packets/00001924 [16:50:41]NVStorageSaveData ofd_packets/00001924 [16:50:41]File name is /storage/ofd_packets/00001924 [16:50:41]Write 721 bytes [16:50:41]NVStorageSaveData done [16:50:41]OFDSenderStorePacket done [16:50:41]KKMCreateOFDPacket done [16:50:41]NVStorageSaveData kkm_last_timestamp [16:50:41]File name is /storage/kkm_last_timestamp [16:50:41]Write 4 bytes [16:50:41]NVStorageSaveData done [16:50:41]ExternCall_PrintAddStr [16:50:41]wPrintStart [16:50:41]Write to MH i2c: 01 00 00 CF 13 E2 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 07 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 FF 0F F7 [16:50:42]RasterBufferAndPrint [16:50:42]line Счет N : (3)256343 [16:50:42]line ИНН: 02508201610067 [16:50:42]line Контрольно-Кассовый Чек [16:50:42]line ПРОДАЖА [16:50:42]line Товар: 5449000189356 [16:50:42]line Холодный чай Fuse манго ананас 1л [16:50:42]line 1.000 * 107.00 [16:50:42]line = 107.00 [16:50:42]line НДС 12% НСП 1% [16:50:42]line > о реализуемом товаре [16:50:42]line Товар: 4700000160358 [16:50:42]line Вода Легенда 1л [16:50:42]line 1.000 * 50.00 [16:50:42]line = 50.00 [16:50:42]line НДС 12% НСП 1% [16:50:42]line > о реализуемом товаре [16:50:42]line Товар: 4600338007564 [16:50:42]line Сок Фруто НЯНЯ мультифрукт 0,2л [16:50:42]line 1.000 * 65.00 [16:50:42]line = 65.00 [16:50:42]line НДС 12% НСП 1% [16:50:42]line > о реализуемом товаре [16:50:42]line Товар: 4603290003032 [16:50:42]line Крекер Яшкино Французский хруст с кунжут [16:50:42]line 1.000 * 70.00 [16:50:42]line = 70.00 [16:50:42]line НДС 12% НСП 1% [16:50:42]line > о реализуемом товаре [16:50:42]line ИТОГО: 292.00 [16:50:42]line НСП 1% : 2.58 [16:50:42]line НДС 12% : 31.00 [16:50:42]line Наличными: 292.00 [16:50:42]line Безнал.: 0.00 [16:50:42]line Место: АЗС № 76 "Партнер Нефть" [16:50:42]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [16:50:42]line СНО: Общий режим [16:50:42]line Чек 93 13.07.2024 16:50 [16:50:42]line Смена: 24 ФФД: 1.0 [16:50:42]line ЗНМ: 0300000124 [16:50:42]line РНМ: 0000000000177495 [16:50:42]line Версия ККМ: 001 [16:50:42]line ФМ: 0000000002098592 [16:50:42]line ФД: 1924 [16:50:42]line ФПД: 61079496049305 [16:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165042&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1924&fm=61079496049305&tin=02508201610067®Number=0000000000177495&sum=29200 [16:50:42]OFD Sender: Processing packet 1924 [packets to send 1, broken 0] [16:50:42]ProducePacketName [16:50:42]name=ofd_packets/00001924 [16:50:42]OFD Sender: To server: pG, [16:50:42]CommunicateWithHost lk.salyk.kg:30040 [16:50:42]ConnectInit lk.salyk.kg [16:50:42]line 0 [16:50:42]written 0, free lines is 4095 [16:50:42]Connected sock=10 [16:50:42]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 B3 02 00 00 17 63 AB 02 5C ED 5A 03 01 00 03 00 9F 02 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 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 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 10 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0C 00 00 00 00 07 04 06 00 10 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 62 B0 92 66 0E 04 04 00 18 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 84 07 00 00 35 04 06 00 37 8D 2D AA 42 99 17 F1 22 8B B0 D8 26 A8 [16:50:42]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 7D 47 00 9D B4 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 84 07 00 00 F4 03 04 00 98 5B 92 66 B6 04 01 00 00 C1 04 D3 7A 05 4D 38 04 [16:50:42]CommunicateWithHost err = 0 [16:50:42]CheckOFDResponse [16:50:42]1017 (14) - 77093643461234 [16:50:42]1041 (16) - 0000000002098592 [16:50:42]1040 (4) - 1924 [16:50:42]1012 (4) - 13.07.2024 10:48 [16:50:42]1206 (1) - 0 [16:50:42]OFD Sender: Remove packet 1924 [16:50:42]ProducePacketName [16:50:42]name=ofd_packets/00001924 [16:50:42]NVStorageDeleteData [16:50:42]Write to MH i2c: 01 00 00 0C 14 20 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 0C 14 00 00 00 00 00 D8 0B 0A [16:50:42]RasterBufferAndPrint [16:50:42]line [16:50:42]line [16:50:42]line [16:50:42]line [16:50:42]line [16:50:42]written 0, free lines is 3039 [16:50:42]MH_Cut [16:50:42]Write to MH i2c: D1 01 00 13 14 01 F9 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: D1 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: D1 01 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: D1 01 00 13 14 00 F8 [16:50:42]Write to MH i2c: 01 00 00 14 14 28 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:43]OFD Sender: No OFD packet to send [16:50:43]*** Cut start [16:50:43]*** Partial cut [16:50:43]*** CUTSNS_PIN = 1 [16:50:43]*** CUTSNS_PIN = 0 [16:50:44]*** Brake cut motor [16:50:44]Read from MH i2c: 01 [16:50:44]MH_I2C_Read... [16:50:44]*** Stop cut motor [16:50:44]*** Cut end [16:50:44]Read from MH i2c: 01 07 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: 01 07 00 14 14 00 00 00 00 00 FF 0F 3D [16:50:44]process_action close_receipt done [16:50:44]requested_data is exist [16:50:44]produce_requested_data [16:50:44]requested_item fm.sn is exist - process it [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 11 00 00 [16:50:44]Write to MH i2c: E2 08 00 15 14 80 11 00 00 00 00 00 00 A3 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 17 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 17 00 15 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F9 [16:50: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:50:44]wFMCommunicate OK [16:50:44]requested_item fd.num is exist - process it [16:50:44]SAM_PROTO_GetFieldsCounters [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 13 00 00 [16:50:44]Write to MH i2c: E2 08 00 16 14 80 13 00 00 00 00 00 00 A6 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 62 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 62 00 16 14 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 84 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16:50:44]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 84 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:44]wFMCommunicate OK [16:50:44]SAM_PROTO_GetFieldsCounters done [16:50:44]requested_item shift.num is exist - process it [16:50:44]requested_item shift.opened is exist - process it [16:50:44]req_shift_opened [16:50:44]FM_GetShiftState [16:50:44]SAM_PROTO_GetShiftState [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 13 01 00 [16:50:44]Write to MH i2c: E2 08 00 17 14 80 13 01 00 00 00 00 00 A8 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 0E 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 0E 00 17 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 33 [16:50:44]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [16:50:44]wFMCommunicate OK [16:50:44]SAM_PROTO_GetShiftState done [16:50:44]FM_GetShiftState done [16:50:44]req_shift_opened done [16:50:44]requested_item shift.open_date is exist - process it [16:50:44]req_shift_open_date [16:50:44]req_shift_open_date done [16:50:44]produce_requested_data done [16:50:44]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1924,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [16:50:44]process_action_free close_receipt [16:50:44]json_value_free [16:50:44]json_value_free done [16:50:44]process_json_proto returns [16:50:44]Send response to host [16:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1924,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [16:50:44]free response buf [16:50:44]execute_script done [16:50:44]execute_script returns [16:50:44]free content buf [16:50:44]Sock 9.Close socket [16:50:44]Sock 9.Thread stoped [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:36]accept exits with 8 [17:26:36]New connection [17:26:36]New thread 3066834276 created [17:26:36]Thread 3066977636 joined [17:26:36]Waiting for new connection... [17:26:36] Sock 8.Parse request [17:26:36]Sock 8.Check first char [17:26:36]Sock 8.First char is OK [17:26:36]request: POST /json_proto HTTP/1.0 [17:26:36]Method: POST [17:26:36]URL: /json_proto [17:26:36]Method is POST - this is cgi request [17:26:36]url: /json_proto [17:26:36]query_string will be loaded in cgi processing [17:26:36]execute_cgi json_proto POST (null) [17:26:36]execute_cgi path=json_proto method=POST [17:26:36]POST find Content-Length [17:26:36]Host: 172.17.35.133:8080 [17:26:36]Content-Length: 924 [17:26:36]Content-Type: application/json [17:26:36] [17:26:36]POST finish read [17:26:36]Found Content-Length = 924 [17:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256344", "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 }]} ,{ "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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 74.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:36]execute_script... [17:26: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)256344", "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 }]} ,{ "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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 74.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:36]POST & json_proto [17:26:36]process_json_proto [17:26:36]json parsed OK: [17:26:36]protocol is kg_v1.0 [17:26:36]action value=close_receipt [17:26:36]process_action close_receipt [17:26:36]cmd_close_receipt [17:26:36]MH_GetDate [17:26:36]Write to MH i2c: F0 00 00 18 14 1B [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: F0 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: F0 09 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: F0 09 00 18 14 00 CE B8 92 66 1B 28 2A 66 75 [17:26:36]GetLastDocTimeStamp 1720889442 [17:26:36]current date 1720891598 [17:26:36]FM_GetShiftState [17:26:36]SAM_PROTO_GetShiftState [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 13 01 00 [17:26:36]Write to MH i2c: E2 08 00 19 14 80 13 01 00 00 00 00 00 AA [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 19 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 35 [17:26:36]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_GetShiftState done [17:26:36]FM_GetShiftState done [17:26:36]opened in 1720829379 [17:26:36]opened+sec_in_day 1720915779 [17:26:36]quantity*price = 6000 [17:26:36]sum+1 = 6001 [17:26:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 74.00 НСП 1% : 0.65 НДС 12% : 7.86 Наличными: 74.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 94 13.07.2024 17:26 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1925 ФПД: 66749107268936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172638&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1925&fm=66749107268936&tin=02508201610067®Number=0000000000177495&sum=7400 0 [17:26:37]StoreToDocumentArchive [17:26:37]shift 24 fd 1925 [17:26:37]save to /storage/0024/doc_00001925 [17:26:37]save last doc name /storage/0024/doc_00001925 to /storage/kkm_last_doc_name [17:26:37]save OK [17:26:37]Clear old archive folders... [17:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=388 [17:26:37]tlvbuf is 00FDF800 [17:26:37]SAM_PROTO_ClearQueue [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 09 00 00 [17:26:37]Write to MH i2c: E2 08 00 26 14 80 09 00 00 00 00 00 00 AC [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 26 14 00 90 00 AE [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_ClearQueue done [17:26:37]KKMCreateOFDPacket [17:26:37]OFDProtocolAddRootSTLVToBuf [17:26:37]FM_MakeSignedData [17:26:37]FM_MakeSignedData [17:26:37]SAM_PROTO_SignData [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 01 02 [17:26:37]Write to MH i2c: E2 08 00 27 14 80 0D 01 02 00 00 00 00 B4 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 27 14 00 90 00 AF [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=255 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 02 02 FA 03 00 84 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 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 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [17:26:37]Write to MH i2c: E2 02 01 28 14 80 0D 02 02 FA 00 03 00 84 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 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 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 09 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 28 14 00 90 00 B0 [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=147 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 02 02 8E F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 03 00 00 00 00 07 04 06 00 E8 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CE B8 92 66 0E 04 04 00 18 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 85 07 00 00 35 04 06 00 3C B5 3C D3 ED 48 [17:26:37]Write to MH i2c: E2 96 00 29 14 80 0D 02 02 8E 00 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 03 00 00 00 00 07 04 06 00 E8 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CE B8 92 66 0E 04 04 00 18 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 85 07 00 00 35 04 06 00 3C B5 3C D3 ED 48 00 00 1A [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 03 02 [17:26:37]Write to MH i2c: E2 08 00 2A 14 80 0D 03 02 00 00 00 00 B9 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0B 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0B 00 2A 14 00 90 96 56 78 6D E3 B5 A4 90 00 57 [17:26:37]RAPDU: 90 96 56 78 6D E3 B5 A4 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_SignData done [17:26:37]FM_MakeSignedData done [17:26:37]CreateOFDProtocolMessage [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 11 00 00 [17:26:37]Write to MH i2c: E2 08 00 2B 14 80 11 00 00 00 00 00 00 B9 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 2B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0F [17:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [17:26:37]wFMCommunicate OK [17:26:37]CreateOFDProtocolMessage done [17:26:37]OFDSenderStorePacket 1925 [17:26:37]StoreOFDPacket docnum=1925 [17:26: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 98 01 00 00 D6 94 90 01 BD 5C 5A 03 01 00 03 00 84 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 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 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 03 00 00 00 00 07 04 06 00 E8 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CE B8 92 66 0E 04 04 00 18 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 85 07 00 00 35 04 06 00 3C B5 3C D3 ED 48 90 96 56 78 6D E3 B5 A4 [17:26:37]CheckFolder [17:26:37]dirname=/storage/ofd_packets [17:26:37]CheckFolder done [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00001925 [17:26:37]NVStorageSaveData ofd_packets/00001925 [17:26:37]File name is /storage/ofd_packets/00001925 [17:26:37]Write 438 bytes [17:26:37]NVStorageSaveData done [17:26:37]OFDSenderStorePacket done [17:26:37]KKMCreateOFDPacket done [17:26:37]NVStorageSaveData kkm_last_timestamp [17:26:37]File name is /storage/kkm_last_timestamp [17:26:37]Write 4 bytes [17:26:37]NVStorageSaveData done [17:26:37]ExternCall_PrintAddStr [17:26:37]wPrintStart [17:26:37]Write to MH i2c: 01 00 00 2C 14 40 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 FF 0F 55 [17:26:38]RasterBufferAndPrint [17:26:38]line Счет N : (3)256344 [17:26:38]line ИНН: 02508201610067 [17:26:38]line Контрольно-Кассовый Чек [17:26:38]line ПРОДАЖА [17:26:38]line Товар: 4700000160204 [17:26:38]line Вода Легенда 1,5л [17:26:38]line 1.000 * 60.00 [17:26:38]line = 60.00 [17:26:38]line НДС 12% НСП 1% [17:26:38]line > о реализуемом товаре [17:26:38]line Товар: 2000053020015 [17:26:38]line Бумажные стаканы 250мл 1шт [17:26:38]line 2.000 * 7.00 [17:26:38]line = 14.00 [17:26:38]line НДС 12% НСП 1% [17:26:38]line > о реализуемом товаре [17:26:38]line ИТОГО: 74.00 [17:26:38]line НСП 1% : 0.65 [17:26:38]line НДС 12% : 7.86 [17:26:38]line Наличными: 74.00 [17:26:38]line Безнал.: 0.00 [17:26:38]line Место: АЗС № 76 "Партнер Нефть" [17:26:38]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [17:26:38]line СНО: Общий режим [17:26:38]line Чек 94 13.07.2024 17:26 [17:26:38]line Смена: 24 ФФД: 1.0 [17:26:38]line ЗНМ: 0300000124 [17:26:38]line РНМ: 0000000000177495 [17:26:38]line Версия ККМ: 001 [17:26:38]line ФМ: 0000000002098592 [17:26:38]line ФД: 1925 [17:26:38]line ФПД: 66749107268936 [17:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172638&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1925&fm=66749107268936&tin=02508201610067®Number=0000000000177495&sum=7400 [17:26:38]line 0 [17:26:38]OFD Sender: Processing packet 1925 [packets to send 1, broken 0] [17:26:38]ProducePacketName [17:26:38]name=ofd_packets/00001925 [17:26:38]OFD Sender: To server: pG, [17:26:38]CommunicateWithHost lk.salyk.kg:30040 [17:26:38]ConnectInit lk.salyk.kg [17:26:38]written 0, free lines is 4095 [17:26:38]Connected sock=10 [17:26:38]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 98 01 00 00 D6 94 90 01 BD 5C 5A 03 01 00 03 00 84 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 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 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 03 00 00 00 00 07 04 06 00 E8 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CE B8 92 66 0E 04 04 00 18 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 85 07 00 00 35 04 06 00 3C B5 3C D3 ED 48 90 96 56 78 6D E3 B5 A4 [17:26: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 0F 16 47 00 C1 B2 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 85 07 00 00 F4 03 04 00 04 64 92 66 B6 04 01 00 00 29 BA 2D 27 20 78 98 BA [17:26:38]CommunicateWithHost err = 0 [17:26:38]CheckOFDResponse [17:26:38]1017 (14) - 77093643461234 [17:26:38]1041 (16) - 0000000002098592 [17:26:38]1040 (4) - 1925 [17:26:38]1012 (4) - 13.07.2024 11:24 [17:26:38]1206 (1) - 0 [17:26:38]OFD Sender: Remove packet 1925 [17:26:38]ProducePacketName [17:26:38]name=ofd_packets/00001925 [17:26:38]NVStorageDeleteData [17:26:38]Write to MH i2c: 01 00 00 5B 14 6F [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 85 0C 07 [17:26:38]RasterBufferAndPrint [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]written 0, free lines is 3212 [17:26:38]MH_Cut [17:26:38]Write to MH i2c: D1 01 00 62 14 01 48 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 01 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 01 00 62 14 00 47 [17:26:38]Write to MH i2c: 01 00 00 63 14 77 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]OFD Sender: No OFD packet to send [17:26:39]*** Cut start [17:26:39]*** Partial cut [17:26:39]*** CUTSNS_PIN = 1 [17:26:39]*** CUTSNS_PIN = 0 [17:26:39]*** Brake cut motor [17:26:40]Read from MH i2c: 01 [17:26:40]MH_I2C_Read... [17:26:40]*** Stop cut motor [17:26:40]*** Cut end [17:26:40]Read from MH i2c: 01 07 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 FF 0F 8C [17:26:40]process_action close_receipt done [17:26:40]requested_data is exist [17:26:40]produce_requested_data [17:26:40]requested_item fm.sn is exist - process it [17:26:40]wFMCommunicate request_size=4 [17:26:40]MH_SAM_APDU [17:26:40]CAPDU: 80 11 00 00 [17:26:40]Write to MH i2c: E2 08 00 64 14 80 11 00 00 00 00 00 00 F2 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:40]Read from MH i2c: E2 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 17 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 17 00 64 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 48 [17:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [17:26:40]wFMCommunicate OK [17:26:40]requested_item fd.num is exist - process it [17:26:40]SAM_PROTO_GetFieldsCounters [17:26:40]wFMCommunicate request_size=4 [17:26:40]MH_SAM_APDU [17:26:40]CAPDU: 80 13 00 00 [17:26:40]Write to MH i2c: E2 08 00 65 14 80 13 00 00 00 00 00 00 F5 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:40]Read from MH i2c: E2 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 62 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 62 00 65 14 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 85 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [17:26:40]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 85 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:40]wFMCommunicate OK [17:26:40]SAM_PROTO_GetFieldsCounters done [17:26:40]requested_item shift.num is exist - process it [17:26:40]requested_item shift.opened is exist - process it [17:26:40]req_shift_opened [17:26:40]FM_GetShiftState [17:26:40]SAM_PROTO_GetShiftState [17:26:40]wFMCommunicate request_size=4 [17:26:40]MH_SAM_APDU [17:26:40]CAPDU: 80 13 01 00 [17:26:40]Write to MH i2c: E2 08 00 66 14 80 13 01 00 00 00 00 00 F7 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:40]Read from MH i2c: E2 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 0E 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 0E 00 66 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 82 [17:26:40]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [17:26:40]wFMCommunicate OK [17:26:40]SAM_PROTO_GetShiftState done [17:26:40]FM_GetShiftState done [17:26:40]req_shift_opened done [17:26:40]requested_item shift.open_date is exist - process it [17:26:40]req_shift_open_date [17:26:40]req_shift_open_date done [17:26:40]produce_requested_data done [17:26:40]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1925,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [17:26:40]process_action_free close_receipt [17:26:40]json_value_free [17:26:40]json_value_free done [17:26:40]process_json_proto returns [17:26:40]Send response to host [17:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1925,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [17:26:40]free response buf [17:26:40]execute_script done [17:26:40]execute_script returns [17:26:40]free content buf [17:26:40]Sock 8.Close socket [17:26:40]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:04]accept exits with 9 [18:10:04]New connection [18:10:04]New thread 3066977636 created [18:10:04]Thread 3066834276 joined [18:10:04]Waiting for new connection... [18:10:04] Sock 9.Parse request [18:10:04]Sock 9.Check first char [18:10:04]Sock 9.First char is OK [18:10:04]request: POST /json_proto HTTP/1.0 [18:10:04]Method: POST [18:10:04]URL: /json_proto [18:10:04]Method is POST - this is cgi request [18:10:04]url: /json_proto [18:10:04]query_string will be loaded in cgi processing [18:10:04]execute_cgi json_proto POST (null) [18:10:04]execute_cgi path=json_proto method=POST [18:10:04]POST find Content-Length [18:10:04]Host: 172.17.35.133:8080 [18:10:04]Content-Length: 809 [18:10:04]Content-Type: application/json [18:10:04] [18:10:04]POST finish read [18:10:04]Found Content-Length = 809 [18:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256345", "tax_sys" : 0, "items" : [ { "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 3.000, "sum" : 270.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" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:04]execute_script... [18:10: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)256345", "tax_sys" : 0, "items" : [ { "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 3.000, "sum" : 270.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" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:04]POST & json_proto [18:10:04]process_json_proto [18:10:04]json parsed OK: [18:10:04]protocol is kg_v1.0 [18:10:04]action value=close_receipt [18:10:04]process_action close_receipt [18:10:04]cmd_close_receipt [18:10:04]MH_GetDate [18:10:04]Write to MH i2c: F0 00 00 67 14 6A [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: F0 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: F0 09 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: F0 09 00 67 14 00 FF C2 92 66 1B 28 2A 66 FF [18:10:04]GetLastDocTimeStamp 1720891598 [18:10:04]current date 1720894207 [18:10:04]FM_GetShiftState [18:10:04]SAM_PROTO_GetShiftState [18:10:04]wFMCommunicate request_size=4 [18:10:04]MH_SAM_APDU [18:10:04]CAPDU: 80 13 01 00 [18:10:04]Write to MH i2c: E2 08 00 68 14 80 13 01 00 00 00 00 00 F9 [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:04]Read from MH i2c: E2 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 0E 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 0E 00 68 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 84 [18:10:04]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:10:04]wFMCommunicate OK [18:10:04]SAM_PROTO_GetShiftState done [18:10:04]FM_GetShiftState done [18:10:04]opened in 1720829379 [18:10:04]opened+sec_in_day 1720915779 [18:10:04]quantity*price = 27000 [18:10:04]sum+1 = 27001 [18:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 0.00 Безнал.: 270.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 95 13.07.2024 18:10 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1926 ФПД: 85519967973773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181007&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1926&fm=85519967973773&tin=02508201610067®Number=0000000000177495&sum=27000 0 [18:10:06]StoreToDocumentArchive [18:10:06]shift 24 fd 1926 [18:10:06]save to /storage/0024/doc_00001926 [18:10:06]save last doc name /storage/0024/doc_00001926 to /storage/kkm_last_doc_name [18:10:06]save OK [18:10:06]Clear old archive folders... [18:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:10:06]tlvbuf is B6EC7E40 [18:10:06]SAM_PROTO_ClearQueue [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 09 00 00 [18:10:06]Write to MH i2c: E2 08 00 75 14 80 09 00 00 00 00 00 00 FB [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]SAM_PROTO_ClearQueue done [18:10:06]KKMCreateOFDPacket [18:10:06]OFDProtocolAddRootSTLVToBuf [18:10:06]FM_MakeSignedData [18:10:06]FM_MakeSignedData [18:10:06]SAM_PROTO_SignData [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 01 02 [18:10:06]Write to MH i2c: E2 08 00 76 14 80 0D 01 02 00 00 00 00 03 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=255 [18:10:06]MH_SAM_APDU [18:10:06]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 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FF C2 92 66 0E 04 04 00 18 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 [18:10:06]Write to MH i2c: E2 02 01 77 14 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 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FF C2 92 66 0E 04 04 00 18 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 69 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=28 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 02 02 17 39 38 35 39 32 10 04 04 00 86 07 00 00 35 04 06 00 4D C7 AB 4F F1 8D [18:10:06]Write to MH i2c: E2 1F 00 78 14 80 0D 02 02 17 00 39 38 35 39 32 10 04 04 00 86 07 00 00 35 04 06 00 4D C7 AB 4F F1 8D 00 00 B5 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 03 02 [18:10:06]Write to MH i2c: E2 08 00 79 14 80 0D 03 02 00 00 00 00 08 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 0B 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 0B 00 79 14 00 4D 2C CD 89 99 A7 1F 82 90 00 B9 [18:10:06]RAPDU: 4D 2C CD 89 99 A7 1F 82 90 00 [18:10:06]wFMCommunicate OK [18:10:06]SAM_PROTO_SignData done [18:10:06]FM_MakeSignedData done [18:10:06]CreateOFDProtocolMessage [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 11 00 00 [18:10:06]Write to MH i2c: E2 08 00 7A 14 80 11 00 00 00 00 00 00 08 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 17 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 17 00 7A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5E [18:10: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:10:06]wFMCommunicate OK [18:10:06]CreateOFDProtocolMessage done [18:10:06]OFDSenderStorePacket 1926 [18:10:06]StoreOFDPacket docnum=1926 [18:10: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 21 01 00 00 FF A8 19 01 F5 05 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FF C2 92 66 0E 04 04 00 18 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 86 07 00 00 35 04 06 00 4D C7 AB 4F F1 8D 4D 2C CD 89 99 A7 1F 82 [18:10:06]CheckFolder [18:10:06]dirname=/storage/ofd_packets [18:10:06]CheckFolder done [18:10:06]ProducePacketName [18:10:06]name=ofd_packets/00001926 [18:10:06]NVStorageSaveData ofd_packets/00001926 [18:10:06]File name is /storage/ofd_packets/00001926 [18:10:06]Write 319 bytes [18:10:06]NVStorageSaveData done [18:10:06]OFDSenderStorePacket done [18:10:06]KKMCreateOFDPacket done [18:10:06]NVStorageSaveData kkm_last_timestamp [18:10:06]File name is /storage/kkm_last_timestamp [18:10:06]Write 4 bytes [18:10:06]NVStorageSaveData done [18:10:06]ExternCall_PrintAddStr [18:10:06]wPrintStart [18:10:06]Write to MH i2c: 01 00 00 7B 14 8F [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: 01 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: 01 07 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: 01 07 00 7B 14 00 00 00 00 00 FF 0F A4 [18:10:06]RasterBufferAndPrint [18:10:06]line Счет N : (3)256345 [18:10:06]line ИНН: 02508201610067 [18:10:06]line Контрольно-Кассовый Чек [18:10:06]line ПРОДАЖА [18:10:06]line Товар: 4680036914937 [18:10:06]line Gorilla эн нап 0,275л [18:10:06]line 3.000 * 90.00 [18:10:06]line = 270.00 [18:10:06]line НДС 12% НСП 1% [18:10:06]line > о реализуемом товаре [18:10:06]line ИТОГО: 270.00 [18:10:06]line НСП 1% : 2.39 [18:10:06]line НДС 12% : 28.67 [18:10:06]line Наличными: 0.00 [18:10:06]line Безнал.: 270.00 [18:10:06]line Место: АЗС № 76 "Партнер Нефть" [18:10:06]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:10:06]line СНО: Общий режим [18:10:06]line Чек 95 13.07.2024 18:10 [18:10:06]line Смена: 24 ФФД: 1.0 [18:10:06]line ЗНМ: 0300000124 [18:10:06]line РНМ: 0000000000177495 [18:10:06]line Версия ККМ: 001 [18:10:06]line Платежная система: АКБ Кыргызстан [18:10:06]line ФМ: 0000000002098592 [18:10:06]line ФД: 1926 [18:10:06]line ФПД: 85519967973773 [18:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181007&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1926&fm=85519967973773&tin=02508201610067®Number=0000000000177495&sum=27000 [18:10:06]line 0 [18:10:06]OFD Sender: Processing packet 1926 [packets to send 1, broken 0] [18:10:06]ProducePacketName [18:10:06]name=ofd_packets/00001926 [18:10:06]OFD Sender: To server: pG, [18:10:06]CommunicateWithHost lk.salyk.kg:30040 [18:10:06]ConnectInit lk.salyk.kg [18:10:06]written 0, free lines is 4095 [18:10:06]Connected sock=10 [18:10: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 FF A8 19 01 F5 05 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FF C2 92 66 0E 04 04 00 18 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 86 07 00 00 35 04 06 00 4D C7 AB 4F F1 8D 4D 2C CD 89 99 A7 1F 82 [18:10:07]Write to MH i2c: 01 00 00 A5 14 B9 [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 07 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 E7 0C B3 [18:10:07]RasterBufferAndPrint [18:10:07]line [18:10:07]line [18:10:07]line [18:10:07]line [18:10:07]line [18:10:07]written 0, free lines is 3307 [18:10:07]MH_Cut [18:10:07]Write to MH i2c: D1 01 00 AC 14 01 92 [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: D1 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: D1 01 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: D1 01 00 AC 14 00 91 [18:10:07]Write to MH i2c: 01 00 00 AD 14 C1 [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10: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 74 43 47 00 FC 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 86 07 00 00 F4 03 04 00 35 6E 92 66 B6 04 01 00 00 1B 80 1A DE FB DC 22 05 [18:10:07]CommunicateWithHost err = 0 [18:10:07]CheckOFDResponse [18:10:07]1017 (14) - 77093643461234 [18:10:07]1041 (16) - 0000000002098592 [18:10:07]1040 (4) - 1926 [18:10:07]1012 (4) - 13.07.2024 12:08 [18:10:07]1206 (1) - 0 [18:10:07]OFD Sender: Remove packet 1926 [18:10:07]ProducePacketName [18:10:07]name=ofd_packets/00001926 [18:10:07]NVStorageDeleteData [18:10:08]*** Cut start [18:10:08]*** Partial cut [18:10:08]*** CUTSNS_PIN = 1 [18:10:08]*** CUTSNS_PIN = 0 [18:10:08]OFD Sender: No OFD packet to send [18:10:08]*** Brake cut motor [18:10:08]Read from MH i2c: 01 [18:10:08]MH_I2C_Read... [18:10:08]*** Stop cut motor [18:10:08]*** Cut end [18:10:08]Read from MH i2c: 01 07 00 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: 01 07 00 AD 14 00 00 00 00 00 FF 0F D6 [18:10:08]process_action close_receipt done [18:10:08]requested_data is exist [18:10:08]produce_requested_data [18:10:08]requested_item fm.sn is exist - process it [18:10:08]wFMCommunicate request_size=4 [18:10:08]MH_SAM_APDU [18:10:08]CAPDU: 80 11 00 00 [18:10:08]Write to MH i2c: E2 08 00 AE 14 80 11 00 00 00 00 00 00 3C [18:10:08]Write i2c OK [18:10:08]MH_I2C_Read... [18:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:08]Read from MH i2c: E2 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 17 00 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 17 00 AE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 92 [18:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:10:08]wFMCommunicate OK [18:10:08]requested_item fd.num is exist - process it [18:10:08]SAM_PROTO_GetFieldsCounters [18:10:08]wFMCommunicate request_size=4 [18:10:08]MH_SAM_APDU [18:10:08]CAPDU: 80 13 00 00 [18:10:08]Write to MH i2c: E2 08 00 AF 14 80 13 00 00 00 00 00 00 3F [18:10:08]Write i2c OK [18:10:08]MH_I2C_Read... [18:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:08]Read from MH i2c: E2 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 62 00 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 62 00 AF 14 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 86 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:10: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 86 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:08]wFMCommunicate OK [18:10:08]SAM_PROTO_GetFieldsCounters done [18:10:08]requested_item shift.num is exist - process it [18:10:08]requested_item shift.opened is exist - process it [18:10:08]req_shift_opened [18:10:08]FM_GetShiftState [18:10:08]SAM_PROTO_GetShiftState [18:10:08]wFMCommunicate request_size=4 [18:10:08]MH_SAM_APDU [18:10:08]CAPDU: 80 13 01 00 [18:10:08]Write to MH i2c: E2 08 00 B0 14 80 13 01 00 00 00 00 00 41 [18:10:08]Write i2c OK [18:10:08]MH_I2C_Read... [18:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:08]Read from MH i2c: E2 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 0E 00 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 0E 00 B0 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 CC [18:10:08]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:10:08]wFMCommunicate OK [18:10:08]SAM_PROTO_GetShiftState done [18:10:08]FM_GetShiftState done [18:10:08]req_shift_opened done [18:10:08]requested_item shift.open_date is exist - process it [18:10:08]req_shift_open_date [18:10:08]req_shift_open_date done [18:10:08]produce_requested_data done [18:10:08]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1926,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [18:10:08]process_action_free close_receipt [18:10:08]json_value_free [18:10:08]json_value_free done [18:10:08]process_json_proto returns [18:10:08]Send response to host [18:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1926,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [18:10:08]free response buf [18:10:08]execute_script done [18:10:08]execute_script returns [18:10:08]free content buf [18:10:08]Sock 9.Close socket [18:10:08]Sock 9.Thread stoped [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [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:19]accept exits with 8 [18:39:19]New connection [18:39:19]New thread 3066834276 created [18:39:19]Thread 3066977636 joined [18:39:19]Waiting for new connection... [18:39:19] Sock 8.Parse request [18:39:19]Sock 8.Check first char [18:39:19]Sock 8.First char is OK [18:39:19]request: POST /json_proto HTTP/1.0 [18:39:19]Method: POST [18:39:19]URL: /json_proto [18:39:19]Method is POST - this is cgi request [18:39:19]url: /json_proto [18:39:19]query_string will be loaded in cgi processing [18:39:19]execute_cgi json_proto POST (null) [18:39:19]execute_cgi path=json_proto method=POST [18:39:19]POST find Content-Length [18:39:19]Host: 172.17.35.133:8080 [18:39:19]Content-Length: 608 [18:39:19]Content-Type: application/json [18:39:19] [18:39:19]POST finish read [18:39:19]Found Content-Length = 608 [18:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256346", "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" ] } } [18:39:19]execute_script... [18:39:19]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)256346", "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" ] } } [18:39:19]POST & json_proto [18:39:19]process_json_proto [18:39:19]json parsed OK: [18:39:19]protocol is kg_v1.0 [18:39:19]action value=close_receipt [18:39:19]process_action close_receipt [18:39:19]cmd_close_receipt [18:39:19]MH_GetDate [18:39:19]Write to MH i2c: F0 00 00 B1 14 B4 [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: F0 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: F0 09 00 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: F0 09 00 B1 14 00 DA C9 92 66 1B 28 2A 66 2B [18:39:19]GetLastDocTimeStamp 1720894207 [18:39:19]current date 1720895962 [18:39:19]FM_GetShiftState [18:39:19]SAM_PROTO_GetShiftState [18:39:19]wFMCommunicate request_size=4 [18:39:19]MH_SAM_APDU [18:39:19]CAPDU: 80 13 01 00 [18:39:19]Write to MH i2c: E2 08 00 B2 14 80 13 01 00 00 00 00 00 43 [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:19]Read from MH i2c: E2 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: E2 0E 00 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: E2 0E 00 B2 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 CE [18:39:19]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:39:19]wFMCommunicate OK [18:39:19]SAM_PROTO_GetShiftState done [18:39:19]FM_GetShiftState done [18:39:19]opened in 1720829379 [18:39:19]opened+sec_in_day 1720915779 [18:39:19]quantity*price = 1000 [18:39:19]sum+1 = 1001 [18:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 96 13.07.2024 18:39 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1927 ФПД: 227470183813883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183922&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1927&fm=227470183813883&tin=02508201610067®Number=0000000000177495&sum=1000 0 [18:39:20]StoreToDocumentArchive [18:39:20]shift 24 fd 1927 [18:39:20]save to /storage/0024/doc_00001927 [18:39:20]save last doc name /storage/0024/doc_00001927 to /storage/kkm_last_doc_name [18:39:20]save OK [18:39:20]Clear old archive folders... [18:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=267 [18:39:20]tlvbuf is 00FE6300 [18:39:20]SAM_PROTO_ClearQueue [18:39:20]wFMCommunicate request_size=4 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 09 00 00 [18:39:20]Write to MH i2c: E2 08 00 BF 14 80 09 00 00 00 00 00 00 45 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [18:39:20]RAPDU: 90 00 [18:39:20]wFMCommunicate OK [18:39:20]SAM_PROTO_ClearQueue done [18:39:20]KKMCreateOFDPacket [18:39:20]OFDProtocolAddRootSTLVToBuf [18:39:20]FM_MakeSignedData [18:39:20]FM_MakeSignedData [18:39:20]SAM_PROTO_SignData [18:39:20]wFMCommunicate request_size=4 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 0D 01 02 [18:39:20]Write to MH i2c: E2 08 00 C0 14 80 0D 01 02 00 00 00 00 4D [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [18:39:20]RAPDU: 90 00 [18:39:20]wFMCommunicate OK [18:39:20]wFMCommunicate request_size=255 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 0D 02 02 FA 03 00 0B 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 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 60 00 00 00 F4 03 04 00 DA C9 92 66 0E 04 04 00 18 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 [18:39:20]Write to MH i2c: E2 02 01 C1 14 80 0D 02 02 FA 00 03 00 0B 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 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 60 00 00 00 F4 03 04 00 DA C9 92 66 0E 04 04 00 18 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 00 00 FE [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 C1 14 00 90 00 49 [18:39:21]RAPDU: 90 00 [18:39:21]wFMCommunicate OK [18:39:21]wFMCommunicate request_size=26 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 0D 02 02 15 35 39 32 10 04 04 00 87 07 00 00 35 04 06 00 CE E2 07 80 D2 FB [18:39:21]Write to MH i2c: E2 1D 00 C2 14 80 0D 02 02 15 00 35 39 32 10 04 04 00 87 07 00 00 35 04 06 00 CE E2 07 80 D2 FB 00 00 03 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [18:39:21]RAPDU: 90 00 [18:39:21]wFMCommunicate OK [18:39:21]wFMCommunicate request_size=4 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 0D 03 02 [18:39:21]Write to MH i2c: E2 08 00 C3 14 80 0D 03 02 00 00 00 00 52 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 0B 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 0B 00 C3 14 00 94 B8 CC B2 C4 29 8C 79 90 00 0F [18:39:21]RAPDU: 94 B8 CC B2 C4 29 8C 79 90 00 [18:39:21]wFMCommunicate OK [18:39:21]SAM_PROTO_SignData done [18:39:21]FM_MakeSignedData done [18:39:21]CreateOFDProtocolMessage [18:39:21]wFMCommunicate request_size=4 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 11 00 00 [18:39:21]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 17 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A8 [18:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:39:21]wFMCommunicate OK [18:39:21]CreateOFDProtocolMessage done [18:39:21]OFDSenderStorePacket 1927 [18:39:21]StoreOFDPacket docnum=1927 [18:39: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 1F 01 00 00 85 89 17 01 3E 71 5A 03 01 00 03 00 0B 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 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 60 00 00 00 F4 03 04 00 DA C9 92 66 0E 04 04 00 18 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 87 07 00 00 35 04 06 00 CE E2 07 80 D2 FB 94 B8 CC B2 C4 29 8C 79 [18:39:21]CheckFolder [18:39:21]dirname=/storage/ofd_packets [18:39:21]CheckFolder done [18:39:21]ProducePacketName [18:39:21]name=ofd_packets/00001927 [18:39:21]NVStorageSaveData ofd_packets/00001927 [18:39:21]File name is /storage/ofd_packets/00001927 [18:39:21]Write 317 bytes [18:39:21]NVStorageSaveData done [18:39:21]OFDSenderStorePacket done [18:39:21]KKMCreateOFDPacket done [18:39:21]NVStorageSaveData kkm_last_timestamp [18:39:21]File name is /storage/kkm_last_timestamp [18:39:21]Write 4 bytes [18:39:21]NVStorageSaveData done [18:39:21]ExternCall_PrintAddStr [18:39:21]wPrintStart [18:39:21]Write to MH i2c: 01 00 00 C5 14 D9 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: 01 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: 01 07 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 FF 0F EE [18:39:21]RasterBufferAndPrint [18:39:21]line Счет N : (3)256346 [18:39:21]line ИНН: 02508201610067 [18:39:21]line Контрольно-Кассовый Чек [18:39:21]line ПРОДАЖА [18:39:21]line Товар: 46231529 [18:39:21]line Mentos ПФ Арбуз 6*100*2 [18:39:21]line 1.000 * 10.00 [18:39:21]line = 10.00 [18:39:21]line НДС 12% НСП 1% [18:39:21]line > о реализуемом товаре [18:39:21]line ИТОГО: 10.00 [18:39:21]line НСП 1% : 0.09 [18:39:21]line НДС 12% : 1.06 [18:39:21]line Наличными: 10.00 [18:39:21]line Безнал.: 0.00 [18:39:21]line Место: АЗС № 76 "Партнер Нефть" [18:39:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:39:21]line СНО: Общий режим [18:39:21]line Чек 96 13.07.2024 18:39 [18:39:21]line Смена: 24 ФФД: 1.0 [18:39:21]line ЗНМ: 0300000124 [18:39:21]line РНМ: 0000000000177495 [18:39:21]line Версия ККМ: 001 [18:39:21]line ФМ: 0000000002098592 [18:39:21]line ФД: 1927 [18:39:21]line ФПД: 227470183813883 [18:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183922&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1927&fm=227470183813883&tin=02508201610067®Number=0000000000177495&sum=1000 [18:39:21]line 0 [18:39:21]OFD Sender: Processing packet 1927 [packets to send 1, broken 0] [18:39:21]ProducePacketName [18:39:21]name=ofd_packets/00001927 [18:39:21]OFD Sender: To server: pG, [18:39:21]CommunicateWithHost lk.salyk.kg:30040 [18:39:21]ConnectInit lk.salyk.kg [18:39:21]written 0, free lines is 4095 [18:39:21]Connected sock=10 [18:39:21]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 1F 01 00 00 85 89 17 01 3E 71 5A 03 01 00 03 00 0B 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 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 60 00 00 00 F4 03 04 00 DA C9 92 66 0E 04 04 00 18 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 87 07 00 00 35 04 06 00 CE E2 07 80 D2 FB 94 B8 CC B2 C4 29 8C 79 [18:39: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 0E 60 47 00 F0 AB 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 87 07 00 00 F4 03 04 00 0F 75 92 66 B6 04 01 00 00 DA AF D7 8E C5 C2 03 9B [18:39:21]CommunicateWithHost err = 0 [18:39:21]CheckOFDResponse [18:39:21]1017 (14) - 77093643461234 [18:39:21]1041 (16) - 0000000002098592 [18:39:21]1040 (4) - 1927 [18:39:21]1012 (4) - 13.07.2024 12:37 [18:39:21]1206 (1) - 0 [18:39:21]OFD Sender: Remove packet 1927 [18:39:21]ProducePacketName [18:39:21]name=ofd_packets/00001927 [18:39:21]NVStorageDeleteData [18:39:22]Write to MH i2c: 01 00 00 ED 14 01 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 07 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 07 00 ED 14 00 00 00 00 00 0D 0D 22 [18:39:22]RasterBufferAndPrint [18:39:22]line [18:39:22]line [18:39:22]line [18:39:22]line [18:39:22]line [18:39:22]written 0, free lines is 3347 [18:39:22]MH_Cut [18:39:22]Write to MH i2c: D1 01 00 F4 14 01 DA [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: D1 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: D1 01 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: D1 01 00 F4 14 00 D9 [18:39:22]Write to MH i2c: 01 00 00 F5 14 09 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]OFD Sender: No OFD packet to send [18:39:22]*** Cut start [18:39:22]*** Partial cut [18:39:22]*** CUTSNS_PIN = 1 [18:39:22]*** CUTSNS_PIN = 0 [18:39:23]*** Brake cut motor [18:39:23]Read from MH i2c: 01 [18:39:23]MH_I2C_Read... [18:39:23]*** Stop cut motor [18:39:23]*** Cut end [18:39:23]Read from MH i2c: 01 07 00 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 FF 0F 1E [18:39:23]process_action close_receipt done [18:39:23]requested_data is exist [18:39:23]produce_requested_data [18:39:23]requested_item fm.sn is exist - process it [18:39:23]wFMCommunicate request_size=4 [18:39:23]MH_SAM_APDU [18:39:23]CAPDU: 80 11 00 00 [18:39:23]Write to MH i2c: E2 08 00 F6 14 80 11 00 00 00 00 00 00 84 [18:39:23]Write i2c OK [18:39:23]MH_I2C_Read... [18:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:23]Read from MH i2c: E2 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 17 00 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 17 00 F6 14 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:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:39:23]wFMCommunicate OK [18:39:23]requested_item fd.num is exist - process it [18:39:23]SAM_PROTO_GetFieldsCounters [18:39:23]wFMCommunicate request_size=4 [18:39:23]MH_SAM_APDU [18:39:23]CAPDU: 80 13 00 00 [18:39:23]Write to MH i2c: E2 08 00 F7 14 80 13 00 00 00 00 00 00 87 [18:39:23]Write i2c OK [18:39:23]MH_I2C_Read... [18:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:23]Read from MH i2c: E2 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 62 00 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 62 00 F7 14 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 87 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [18:39:23]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 87 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:23]wFMCommunicate OK [18:39:23]SAM_PROTO_GetFieldsCounters done [18:39:23]requested_item shift.num is exist - process it [18:39:23]requested_item shift.opened is exist - process it [18:39:23]req_shift_opened [18:39:23]FM_GetShiftState [18:39:23]SAM_PROTO_GetShiftState [18:39:23]wFMCommunicate request_size=4 [18:39:23]MH_SAM_APDU [18:39:23]CAPDU: 80 13 01 00 [18:39:23]Write to MH i2c: E2 08 00 F8 14 80 13 01 00 00 00 00 00 89 [18:39:23]Write i2c OK [18:39:23]MH_I2C_Read... [18:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:23]Read from MH i2c: E2 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 0E 00 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 0E 00 F8 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 14 [18:39:23]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:39:23]wFMCommunicate OK [18:39:23]SAM_PROTO_GetShiftState done [18:39:23]FM_GetShiftState done [18:39:23]req_shift_opened done [18:39:23]requested_item shift.open_date is exist - process it [18:39:23]req_shift_open_date [18:39:23]req_shift_open_date done [18:39:23]produce_requested_data done [18:39:23]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1927,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [18:39:23]process_action_free close_receipt [18:39:23]json_value_free [18:39:23]json_value_free done [18:39:23]process_json_proto returns [18:39:23]Send response to host [18:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1927,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [18:39:23]free response buf [18:39:23]execute_script done [18:39:23]execute_script returns [18:39:23]free content buf [18:39:23]Sock 8.Close socket [18:39:23]Sock 8.Thread stoped [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]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:48]accept exits with 9 [18:50:48]New connection [18:50:48]New thread 3066977636 created [18:50:48]Thread 3066834276 joined [18:50:48]Waiting for new connection... [18:50:48] Sock 9.Parse request [18:50:48]Sock 9.Check first char [18:50:48]Sock 9.First char is OK [18:50:48]request: POST /json_proto HTTP/1.0 [18:50:48]Method: POST [18:50:48]URL: /json_proto [18:50:48]Method is POST - this is cgi request [18:50:48]url: /json_proto [18:50:48]query_string will be loaded in cgi processing [18:50:48]execute_cgi json_proto POST (null) [18:50:48]execute_cgi path=json_proto method=POST [18:50:48]POST find Content-Length [18:50:48]Host: 172.17.35.133:8080 [18:50:48]Content-Length: 633 [18:50:48]Content-Type: application/json [18:50:48] [18:50:48]POST finish read [18:50:48]Found Content-Length = 633 [18:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256347", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:48]execute_script... [18:50: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)256347", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:48]POST & json_proto [18:50:48]process_json_proto [18:50:48]json parsed OK: [18:50:48]protocol is kg_v1.0 [18:50:48]action value=close_receipt [18:50:48]process_action close_receipt [18:50:48]cmd_close_receipt [18:50:48]MH_GetDate [18:50:48]Write to MH i2c: F0 00 00 F9 14 FC [18:50:48]Write i2c OK [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: F0 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: F0 09 00 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: F0 09 00 F9 14 00 8B CC 92 66 1B 28 2A 66 27 [18:50:48]GetLastDocTimeStamp 1720895962 [18:50:48]current date 1720896651 [18:50:48]FM_GetShiftState [18:50:48]SAM_PROTO_GetShiftState [18:50:48]wFMCommunicate request_size=4 [18:50:48]MH_SAM_APDU [18:50:48]CAPDU: 80 13 01 00 [18:50:48]Write to MH i2c: E2 08 00 FA 14 80 13 01 00 00 00 00 00 8B [18:50:48]Write i2c OK [18:50:48]MH_I2C_Read... [18:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:48]Read from MH i2c: E2 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: E2 0E 00 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: E2 0E 00 FA 14 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 16 [18:50:48]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:50:48]wFMCommunicate OK [18:50:48]SAM_PROTO_GetShiftState done [18:50:48]FM_GetShiftState done [18:50:48]opened in 1720829379 [18:50:48]opened+sec_in_day 1720915779 [18:50:48]quantity*price = 7500 [18:50:48]sum+1 = 7501 [18:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 97 13.07.2024 18:50 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1928 ФПД: 42271686368054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185051&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1928&fm=42271686368054&tin=02508201610067®Number=0000000000177495&sum=7500 0 [18:50:49]StoreToDocumentArchive [18:50:49]shift 24 fd 1928 [18:50:49]save to /storage/0024/doc_00001928 [18:50:49]save last doc name /storage/0024/doc_00001928 to /storage/kkm_last_doc_name [18:50:49]save OK [18:50:49]Clear old archive folders... [18:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [18:50:49]tlvbuf is B6DAE8F0 [18:50:49]SAM_PROTO_ClearQueue [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 09 00 00 [18:50:49]Write to MH i2c: E2 08 00 07 15 80 09 00 00 00 00 00 00 8E [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 07 15 00 90 00 90 [18:50:49]RAPDU: 90 00 [18:50:49]wFMCommunicate OK [18:50:49]SAM_PROTO_ClearQueue done [18:50:49]KKMCreateOFDPacket [18:50:49]OFDProtocolAddRootSTLVToBuf [18:50:49]FM_MakeSignedData [18:50:49]FM_MakeSignedData [18:50:49]SAM_PROTO_SignData [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 0D 01 02 [18:50:49]Write to MH i2c: E2 08 00 08 15 80 0D 01 02 00 00 00 00 96 [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 08 15 00 90 00 91 [18:50:49]RAPDU: 90 00 [18:50:49]wFMCommunicate OK [18:50:49]wFMCommunicate request_size=255 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8B CC 92 66 0E 04 04 00 18 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 [18:50:49]Write to MH i2c: E2 02 01 09 15 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8B CC 92 66 0E 04 04 00 18 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 00 00 BD [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 09 15 00 90 00 92 [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=27 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 02 02 16 38 35 39 32 10 04 04 00 88 07 00 00 35 04 06 00 26 72 24 D9 9B 36 [18:50:50]Write to MH i2c: E2 1E 00 0A 15 80 0D 02 02 16 00 38 35 39 32 10 04 04 00 88 07 00 00 35 04 06 00 26 72 24 D9 9B 36 00 00 E9 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 03 02 [18:50:50]Write to MH i2c: E2 08 00 0B 15 80 0D 03 02 00 00 00 00 9B [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 0B 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 0B 00 0B 15 00 20 01 DB 2C 27 D4 47 F6 90 00 FC [18:50:50]RAPDU: 20 01 DB 2C 27 D4 47 F6 90 00 [18:50:50]wFMCommunicate OK [18:50:50]SAM_PROTO_SignData done [18:50:50]FM_MakeSignedData done [18:50:50]CreateOFDProtocolMessage [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 11 00 00 [18:50:50]Write to MH i2c: E2 08 00 0C 15 80 11 00 00 00 00 00 00 9B [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 17 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 17 00 0C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F1 [18:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [18:50:50]wFMCommunicate OK [18:50:50]CreateOFDProtocolMessage done [18:50:50]OFDSenderStorePacket 1928 [18:50:50]StoreOFDPacket docnum=1928 [18:50: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 20 01 00 00 28 3C 18 01 31 E3 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8B CC 92 66 0E 04 04 00 18 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 88 07 00 00 35 04 06 00 26 72 24 D9 9B 36 20 01 DB 2C 27 D4 47 F6 [18:50:50]CheckFolder [18:50:50]dirname=/storage/ofd_packets [18:50:50]CheckFolder done [18:50:50]ProducePacketName [18:50:50]name=ofd_packets/00001928 [18:50:50]NVStorageSaveData ofd_packets/00001928 [18:50:50]File name is /storage/ofd_packets/00001928 [18:50:50]Write 318 bytes [18:50:50]NVStorageSaveData done [18:50:50]OFDSenderStorePacket done [18:50:50]KKMCreateOFDPacket done [18:50:50]NVStorageSaveData kkm_last_timestamp [18:50:50]File name is /storage/kkm_last_timestamp [18:50:50]Write 4 bytes [18:50:50]NVStorageSaveData done [18:50:50]ExternCall_PrintAddStr [18:50:50]wPrintStart [18:50:50]Write to MH i2c: 01 00 00 0D 15 22 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 07 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 FF 0F 37 [18:50:50]RasterBufferAndPrint [18:50:50]line Счет N : (3)256347 [18:50:50]line ИНН: 02508201610067 [18:50:50]line Контрольно-Кассовый Чек [18:50:50]line ПРОДАЖА [18:50:50]line Товар: 40822938 [18:50:50]line Напиток Фанта 0,5л [18:50:50]line 1.000 * 75.00 [18:50:50]line = 75.00 [18:50:50]line НДС 12% НСП 1% [18:50:50]line > о реализуемом товаре [18:50:50]line ИТОГО: 75.00 [18:50:50]line НСП 1% : 0.66 [18:50:50]line НДС 12% : 7.96 [18:50:50]line Наличными: 75.00 [18:50:50]line Безнал.: 0.00 [18:50:50]line Место: АЗС № 76 "Партнер Нефть" [18:50:50]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:50:50]line СНО: Общий режим [18:50:50]line Чек 97 13.07.2024 18:50 [18:50:50]line Смена: 24 ФФД: 1.0 [18:50:50]line ЗНМ: 0300000124 [18:50:50]line РНМ: 0000000000177495 [18:50:50]line Версия ККМ: 001 [18:50:50]line ФМ: 0000000002098592 [18:50:50]line ФД: 1928 [18:50:50]line ФПД: 42271686368054 [18:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185051&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1928&fm=42271686368054&tin=02508201610067®Number=0000000000177495&sum=7500 [18:50:50]line 0 [18:50:50]OFD Sender: Processing packet 1928 [packets to send 1, broken 0] [18:50:50]ProducePacketName [18:50:50]name=ofd_packets/00001928 [18:50:50]OFD Sender: To server: pG, [18:50:50]CommunicateWithHost lk.salyk.kg:30040 [18:50:50]ConnectInit lk.salyk.kg [18:50:50]written 0, free lines is 4095 [18:50:50]Connected sock=10 [18:50:50]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 20 01 00 00 28 3C 18 01 31 E3 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8B CC 92 66 0E 04 04 00 18 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 88 07 00 00 35 04 06 00 26 72 24 D9 9B 36 20 01 DB 2C 27 D4 47 F6 [18:50: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 12 EA 47 00 03 5B 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 88 07 00 00 F4 03 04 00 C0 77 92 66 B6 04 01 00 00 16 E7 80 EA E3 92 4F 8D [18:50:50]CommunicateWithHost err = 0 [18:50:50]CheckOFDResponse [18:50:50]1017 (14) - 77093643461234 [18:50:50]1041 (16) - 0000000002098592 [18:50:50]1040 (4) - 1928 [18:50:50]1012 (4) - 13.07.2024 12:49 [18:50:50]1206 (1) - 0 [18:50:50]OFD Sender: Remove packet 1928 [18:50:50]ProducePacketName [18:50:50]name=ofd_packets/00001928 [18:50:50]NVStorageDeleteData [18:50:51]Write to MH i2c: 01 00 00 35 15 4A [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 07 00 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0C 5C [18:50:51]RasterBufferAndPrint [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]written 0, free lines is 3333 [18:50:51]MH_Cut [18:50:51]Write to MH i2c: D1 01 00 3C 15 01 23 [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 01 00 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 01 00 3C 15 00 22 [18:50:51]Write to MH i2c: 01 00 00 3D 15 52 [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]OFD Sender: No OFD packet to send [18:50:51]*** Cut start [18:50:51]*** Partial cut [18:50:51]*** CUTSNS_PIN = 1 [18:50:51]*** CUTSNS_PIN = 0 [18:50:52]*** Brake cut motor [18:50:52]Read from MH i2c: 01 [18:50:52]MH_I2C_Read... [18:50:52]*** Stop cut motor [18:50:52]*** Cut end [18:50:52]Read from MH i2c: 01 07 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [18:50:52]process_action close_receipt done [18:50:52]requested_data is exist [18:50:52]produce_requested_data [18:50:52]requested_item fm.sn is exist - process it [18:50:52]wFMCommunicate request_size=4 [18:50:52]MH_SAM_APDU [18:50:52]CAPDU: 80 11 00 00 [18:50:52]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [18:50:52]Write i2c OK [18:50:52]MH_I2C_Read... [18:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:52]Read from MH i2c: E2 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 17 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 17 00 3E 15 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: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 [18:50:52]wFMCommunicate OK [18:50:52]requested_item fd.num is exist - process it [18:50:52]SAM_PROTO_GetFieldsCounters [18:50:52]wFMCommunicate request_size=4 [18:50:52]MH_SAM_APDU [18:50:52]CAPDU: 80 13 00 00 [18:50:52]Write to MH i2c: E2 08 00 3F 15 80 13 00 00 00 00 00 00 D0 [18:50:52]Write i2c OK [18:50:52]MH_I2C_Read... [18:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:52]Read from MH i2c: E2 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 62 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 62 00 3F 15 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 88 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [18:50: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 88 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:52]wFMCommunicate OK [18:50:52]SAM_PROTO_GetFieldsCounters done [18:50:52]requested_item shift.num is exist - process it [18:50:52]requested_item shift.opened is exist - process it [18:50:52]req_shift_opened [18:50:52]FM_GetShiftState [18:50:52]SAM_PROTO_GetShiftState [18:50:52]wFMCommunicate request_size=4 [18:50:52]MH_SAM_APDU [18:50:52]CAPDU: 80 13 01 00 [18:50:52]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [18:50:52]Write i2c OK [18:50:52]MH_I2C_Read... [18:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:52]Read from MH i2c: E2 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 0E 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 5D [18:50:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:50:52]wFMCommunicate OK [18:50:52]SAM_PROTO_GetShiftState done [18:50:52]FM_GetShiftState done [18:50:52]req_shift_opened done [18:50:52]requested_item shift.open_date is exist - process it [18:50:52]req_shift_open_date [18:50:52]req_shift_open_date done [18:50:52]produce_requested_data done [18:50:52]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1928,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [18:50:52]process_action_free close_receipt [18:50:52]json_value_free [18:50:52]json_value_free done [18:50:52]process_json_proto returns [18:50:52]Send response to host [18:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1928,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [18:50:52]free response buf [18:50:52]execute_script done [18:50:52]execute_script returns [18:50:52]free content buf [18:50:52]Sock 9.Close socket [18:50:52]Sock 9.Thread stoped [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:18]accept exits with 8 [18:59:18]New connection [18:59:18]New thread 3066834276 created [18:59:18]Thread 3066977636 joined [18:59:18]Waiting for new connection... [18:59:18] Sock 8.Parse request [18:59:18]Sock 8.Check first char [18:59:18]Sock 8.First char is OK [18:59:18]request: POST /json_proto HTTP/1.0 [18:59:18]Method: POST [18:59:18]URL: /json_proto [18:59:18]Method is POST - this is cgi request [18:59:18]url: /json_proto [18:59:18]query_string will be loaded in cgi processing [18:59:18]execute_cgi json_proto POST (null) [18:59:18]execute_cgi path=json_proto method=POST [18:59:18]POST find Content-Length [18:59:18]Host: 172.17.35.133:8080 [18:59:18]Content-Length: 1234 [18:59:18]Content-Type: application/json [18:59:18] [18:59:18]POST finish read [18:59:18]Found Content-Length = 1234 [18:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256348", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 148.00, "quantity" : 2.000, "sum" : 296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 411.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:18]execute_script... [18:59:18]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)256348", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 148.00, "quantity" : 2.000, "sum" : 296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 411.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:18]POST & json_proto [18:59:18]process_json_proto [18:59:18]json parsed OK: [18:59:18]protocol is kg_v1.0 [18:59:18]action value=close_receipt [18:59:18]process_action close_receipt [18:59:18]cmd_close_receipt [18:59:18]MH_GetDate [18:59:18]Write to MH i2c: F0 00 00 41 15 45 [18:59:18]Write i2c OK [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: F0 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: F0 09 00 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: F0 09 00 41 15 00 88 CE 92 66 1B 28 2A 66 6F [18:59:18]GetLastDocTimeStamp 1720896651 [18:59:18]current date 1720897160 [18:59:18]FM_GetShiftState [18:59:18]SAM_PROTO_GetShiftState [18:59:18]wFMCommunicate request_size=4 [18:59:18]MH_SAM_APDU [18:59:18]CAPDU: 80 13 01 00 [18:59:18]Write to MH i2c: E2 08 00 42 15 80 13 01 00 00 00 00 00 D4 [18:59:18]Write i2c OK [18:59:18]MH_I2C_Read... [18:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:18]Read from MH i2c: E2 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 0E 00 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 0E 00 42 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 5F [18:59:18]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:59:18]wFMCommunicate OK [18:59:18]SAM_PROTO_GetShiftState done [18:59:18]FM_GetShiftState done [18:59:18]opened in 1720829379 [18:59:18]opened+sec_in_day 1720915779 [18:59:18]quantity*price = 29600 [18:59:18]sum+1 = 29601 [18:59:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 411.00 НСП 1% : 3.63 НДС 12% : 43.64 Наличными: 411.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 98 13.07.2024 18:59 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1929 ФПД: 78286315330602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185921&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1929&fm=78286315330602&tin=02508201610067®Number=0000000000177495&sum=41100 0 [18:59:19]StoreToDocumentArchive [18:59:19]shift 24 fd 1929 [18:59:19]save to /storage/0024/doc_00001929 [18:59:19]save last doc name /storage/0024/doc_00001929 to /storage/kkm_last_doc_name [18:59:19]save OK [18:59:19]Clear old archive folders... [18:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=522 [18:59:19]tlvbuf is 00FD3770 [18:59:19]SAM_PROTO_ClearQueue [18:59:19]wFMCommunicate request_size=4 [18:59:19]MH_SAM_APDU [18:59:19]CAPDU: 80 09 00 00 [18:59:19]Write to MH i2c: E2 08 00 4F 15 80 09 00 00 00 00 00 00 D6 [18:59:19]Write i2c OK [18:59:19]MH_I2C_Read... [18:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:19]Read from MH i2c: E2 [18:59:19]MH_I2C_Read... [18:59:19]Read from MH i2c: E2 03 00 [18:59:19]MH_I2C_Read... [18:59:19]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [18:59:19]RAPDU: 90 00 [18:59:19]wFMCommunicate OK [18:59:19]SAM_PROTO_ClearQueue done [18:59:19]KKMCreateOFDPacket [18:59:19]OFDProtocolAddRootSTLVToBuf [18:59:19]FM_MakeSignedData [18:59:19]FM_MakeSignedData [18:59:19]SAM_PROTO_SignData [18:59:19]wFMCommunicate request_size=4 [18:59:19]MH_SAM_APDU [18:59:19]CAPDU: 80 0D 01 02 [18:59:19]Write to MH i2c: E2 08 00 50 15 80 0D 01 02 00 00 00 00 DE [18:59:19]Write i2c OK [18:59:19]MH_I2C_Read... [18:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:19]Read from MH i2c: E2 [18:59:19]MH_I2C_Read... [18:59:19]Read from MH i2c: E2 03 00 [18:59:19]MH_I2C_Read... [18:59:19]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [18:59:19]RAPDU: 90 00 [18:59:19]wFMCommunicate OK [18:59:19]wFMCommunicate request_size=255 [18:59:19]MH_SAM_APDU [18:59:19]CAPDU: 80 0D 02 02 FA 03 00 0A 02 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 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 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 [18:59:19]Write to MH i2c: E2 02 01 51 15 80 0D 02 02 FA 00 03 00 0A 02 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 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 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 00 00 64 [18:59:19]Write i2c OK [18:59:19]MH_I2C_Read... [18:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:19]Read from MH i2c: E2 [18:59:19]MH_I2C_Read... [18:59:19]Read from MH i2c: E2 03 00 [18:59:19]MH_I2C_Read... [18:59:19]Read from MH i2c: E2 03 00 51 15 00 90 00 DA [18:59:19]RAPDU: 90 00 [18:59:19]wFMCommunicate OK [18:59:19]wFMCommunicate request_size=255 [18:59:19]MH_SAM_APDU [18:59:19]CAPDU: 80 0D 02 02 FA 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 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 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 CE 92 66 0E 04 04 00 18 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:59:19]Write to MH i2c: E2 02 01 52 15 80 0D 02 02 FA 00 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 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 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 CE 92 66 0E 04 04 00 18 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 A1 [18:59:19]Write i2c OK [18:59:19]MH_I2C_Read... [18:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:20]Read from MH i2c: E2 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 03 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 03 00 52 15 00 90 00 DB [18:59:20]RAPDU: 90 00 [18:59:20]wFMCommunicate OK [18:59:20]wFMCommunicate request_size=31 [18:59:20]MH_SAM_APDU [18:59:20]CAPDU: 80 0D 02 02 1A 30 32 30 39 38 35 39 32 10 04 04 00 89 07 00 00 35 04 06 00 47 33 74 04 1C 2A [18:59:20]Write to MH i2c: E2 22 00 53 15 80 0D 02 02 1A 00 30 32 30 39 38 35 39 32 10 04 04 00 89 07 00 00 35 04 06 00 47 33 74 04 1C 2A 00 00 D8 [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:20]Read from MH i2c: E2 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 03 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 03 00 53 15 00 90 00 DC [18:59:20]RAPDU: 90 00 [18:59:20]wFMCommunicate OK [18:59:20]wFMCommunicate request_size=4 [18:59:20]MH_SAM_APDU [18:59:20]CAPDU: 80 0D 03 02 [18:59:20]Write to MH i2c: E2 08 00 54 15 80 0D 03 02 00 00 00 00 E4 [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:20]Read from MH i2c: E2 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 0B 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 0B 00 54 15 00 44 40 D4 6F 81 B5 C1 DF 90 00 82 [18:59:20]RAPDU: 44 40 D4 6F 81 B5 C1 DF 90 00 [18:59:20]wFMCommunicate OK [18:59:20]SAM_PROTO_SignData done [18:59:20]FM_MakeSignedData done [18:59:20]CreateOFDProtocolMessage [18:59:20]wFMCommunicate request_size=4 [18:59:20]MH_SAM_APDU [18:59:20]CAPDU: 80 11 00 00 [18:59:20]Write to MH i2c: E2 08 00 55 15 80 11 00 00 00 00 00 00 E4 [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:20]Read from MH i2c: E2 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 17 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: E2 17 00 55 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3A [18:59:20]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:20]wFMCommunicate OK [18:59:20]CreateOFDProtocolMessage done [18:59:20]OFDSenderStorePacket 1929 [18:59:20]StoreOFDPacket docnum=1929 [18:59: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 1E 02 00 00 D2 8F 16 02 CD 6B 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 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 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 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 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 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 CE 92 66 0E 04 04 00 18 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 89 07 00 00 35 04 06 00 47 33 74 04 1C 2A 44 40 D4 6F 81 B5 C1 DF [18:59:20]CheckFolder [18:59:20]dirname=/storage/ofd_packets [18:59:20]CheckFolder done [18:59:20]ProducePacketName [18:59:20]name=ofd_packets/00001929 [18:59:20]NVStorageSaveData ofd_packets/00001929 [18:59:20]File name is /storage/ofd_packets/00001929 [18:59:20]Write 572 bytes [18:59:20]NVStorageSaveData done [18:59:20]OFDSenderStorePacket done [18:59:20]KKMCreateOFDPacket done [18:59:20]NVStorageSaveData kkm_last_timestamp [18:59:20]File name is /storage/kkm_last_timestamp [18:59:20]Write 4 bytes [18:59:20]NVStorageSaveData done [18:59:20]ExternCall_PrintAddStr [18:59:20]wPrintStart [18:59:20]Write to MH i2c: 01 00 00 56 15 6B [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: 01 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: 01 07 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: 01 07 00 56 15 00 00 00 00 00 FF 0F 80 [18:59:20]RasterBufferAndPrint [18:59:20]line Счет N : (3)256348 [18:59:20]line ИНН: 02508201610067 [18:59:20]line Контрольно-Кассовый Чек [18:59:20]line ПРОДАЖА [18:59:20]line Товар: 90456060 [18:59:20]line Напиток энерг Red Bull Sugarfree 0.25л ж [18:59:20]line 2.000 * 148.00 [18:59:20]line = 296.00 [18:59:20]line НДС 12% НСП 1% [18:59:20]line > о реализуемом товаре [18:59:20]line Товар: 5449000189349 [18:59:20]line Холодный чай Fuse манго ананас 0,5л [18:59:20]line 1.000 * 75.00 [18:59:20]line = 75.00 [18:59:20]line НДС 12% НСП 1% [18:59:20]line > о реализуемом товаре [18:59:20]line Товар: 4700000160211 [18:59:20]line Вода Легенда 0,5л [18:59:20]line 1.000 * 40.00 [18:59:20]line = 40.00 [18:59:20]line НДС 12% НСП 1% [18:59:20]line > о реализуемом товаре [18:59:20]line ИТОГО: 411.00 [18:59:20]line НСП 1% : 3.63 [18:59:20]line НДС 12% : 43.64 [18:59:20]line Наличными: 411.00 [18:59:20]line Безнал.: 0.00 [18:59:20]line Место: АЗС № 76 "Партнер Нефть" [18:59:20]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [18:59:20]line СНО: Общий режим [18:59:20]line Чек 98 13.07.2024 18:59 [18:59:20]line Смена: 24 ФФД: 1.0 [18:59:20]line ЗНМ: 0300000124 [18:59:20]line РНМ: 0000000000177495 [18:59:20]line Версия ККМ: 001 [18:59:20]line ФМ: 0000000002098592 [18:59:20]line ФД: 1929 [18:59:20]line ФПД: 78286315330602 [18:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185921&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1929&fm=78286315330602&tin=02508201610067®Number=0000000000177495&sum=41100 [18:59:20]OFD Sender: Processing packet 1929 [packets to send 1, broken 0] [18:59:20]ProducePacketName [18:59:20]name=ofd_packets/00001929 [18:59:20]OFD Sender: To server: pG, [18:59:20]CommunicateWithHost lk.salyk.kg:30040 [18:59:20]ConnectInit lk.salyk.kg [18:59:20]line 0 [18:59:20]written 0, free lines is 4095 [18:59:20]Connected sock=10 [18:59: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 1E 02 00 00 D2 8F 16 02 CD 6B 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 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 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 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 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 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 CE 92 66 0E 04 04 00 18 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 89 07 00 00 35 04 06 00 47 33 74 04 1C 2A 44 40 D4 6F 81 B5 C1 DF [18:59:20]Write to MH i2c: 01 00 00 8C 15 A1 [18:59:20]Write i2c OK [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: 01 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: 01 07 00 [18:59:20]MH_I2C_Read... [18:59:20]Read from MH i2c: 01 07 00 8C 15 00 00 00 00 00 2D 0C E1 [18:59:20]RasterBufferAndPrint [18:59:20]line [18:59:20]line [18:59:20]line [18:59:20]line [18:59:20]line [18:59:20]written 0, free lines is 3124 [18:59:21]MH_Cut [18:59:21]Write to MH i2c: D1 01 00 93 15 01 7A [18:59:21]Write i2c OK [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: D1 [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: D1 01 00 [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: D1 01 00 93 15 00 79 [18:59:21]Write to MH i2c: 01 00 00 94 15 A9 [18:59: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 4A 1D 47 00 99 57 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 89 07 00 00 F4 03 04 00 BE 79 92 66 B6 04 01 00 00 EC 0D 4C 5F AB EB 78 C0 [18:59:21]CommunicateWithHost err = 0 [18:59:21]CheckOFDResponse [18:59:21]1017 (14) - 77093643461234 [18:59:21]1041 (16) - 0000000002098592 [18:59:21]1040 (4) - 1929 [18:59:21]1012 (4) - 13.07.2024 12:57 [18:59:21]1206 (1) - 0 [18:59:21]OFD Sender: Remove packet 1929 [18:59:21]ProducePacketName [18:59:21]name=ofd_packets/00001929 [18:59:21]NVStorageDeleteData [18:59:21]Write i2c OK [18:59:21]MH_I2C_Read... [18:59:21]OFD Sender: No OFD packet to send [18:59:21]*** Cut start [18:59:21]*** Partial cut [18:59:21]*** CUTSNS_PIN = 1 [18:59:21]*** CUTSNS_PIN = 0 [18:59:22]*** Brake cut motor [18:59:22]Read from MH i2c: 01 [18:59:22]MH_I2C_Read... [18:59:22]*** Stop cut motor [18:59:22]*** Cut end [18:59:22]Read from MH i2c: 01 07 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 FF 0F BE [18:59:22]process_action close_receipt done [18:59:22]requested_data is exist [18:59:22]produce_requested_data [18:59:22]requested_item fm.sn is exist - process it [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 11 00 00 [18:59:22]Write to MH i2c: E2 08 00 95 15 80 11 00 00 00 00 00 00 24 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 95 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7A [18:59:22]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:22]wFMCommunicate OK [18:59:22]requested_item fd.num is exist - process it [18:59:22]SAM_PROTO_GetFieldsCounters [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 13 00 00 [18:59:22]Write to MH i2c: E2 08 00 96 15 80 13 00 00 00 00 00 00 27 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 62 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 62 00 96 15 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 89 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:59: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 89 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_GetFieldsCounters done [18:59:22]requested_item shift.num is exist - process it [18:59:22]requested_item shift.opened is exist - process it [18:59:22]req_shift_opened [18:59:22]FM_GetShiftState [18:59:22]SAM_PROTO_GetShiftState [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 13 01 00 [18:59:22]Write to MH i2c: E2 08 00 97 15 80 13 01 00 00 00 00 00 29 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0E 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0E 00 97 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B4 [18:59:22]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_GetShiftState done [18:59:22]FM_GetShiftState done [18:59:22]req_shift_opened done [18:59:22]requested_item shift.open_date is exist - process it [18:59:22]req_shift_open_date [18:59:22]req_shift_open_date done [18:59:22]produce_requested_data done [18:59:22]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1929,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [18:59:22]process_action_free close_receipt [18:59:22]json_value_free [18:59:22]json_value_free done [18:59:22]process_json_proto returns [18:59:22]Send response to host [18:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1929,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [18:59:22]free response buf [18:59:22]execute_script done [18:59:22]execute_script returns [18:59:22]free content buf [18:59:22]Sock 8.Close socket [18:59:22]Sock 8.Thread stoped [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [19:03:30]New connection [19:03:30]New thread 3066977636 created [19:03:30]Thread 3066834276 joined [19:03:30]Waiting for new connection... [19:03:30] Sock 9.Parse request [19:03:30]Sock 9.Check first char [19:03:30]Sock 9.First char is OK [19:03:30]request: POST /json_proto HTTP/1.0 [19:03:30]Method: POST [19:03:30]URL: /json_proto [19:03:30]Method is POST - this is cgi request [19:03:30]url: /json_proto [19:03:30]query_string will be loaded in cgi processing [19:03:30]execute_cgi json_proto POST (null) [19:03:30]execute_cgi path=json_proto method=POST [19:03:30]POST find Content-Length [19:03:30]Host: 172.17.35.133:8080 [19:03:30]Content-Length: 624 [19:03:30]Content-Type: application/json [19:03:30] [19:03:30]POST finish read [19:03:30]Found Content-Length = 624 [19:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256349", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:30]execute_script... [19:03:30]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)256349", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:30]POST & json_proto [19:03:30]process_json_proto [19:03:30]json parsed OK: [19:03:30]protocol is kg_v1.0 [19:03:30]action value=close_receipt [19:03:30]process_action close_receipt [19:03:30]cmd_close_receipt [19:03:30]MH_GetDate [19:03:30]Write to MH i2c: F0 00 00 98 15 9C [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: F0 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: F0 09 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: F0 09 00 98 15 00 85 CF 92 66 1B 28 2A 66 C4 [19:03:30]GetLastDocTimeStamp 1720897161 [19:03:30]current date 1720897413 [19:03:30]FM_GetShiftState [19:03:30]SAM_PROTO_GetShiftState [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 13 01 00 [19:03:30]Write to MH i2c: E2 08 00 99 15 80 13 01 00 00 00 00 00 2B [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 0E 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 0E 00 99 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B6 [19:03:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:03:30]wFMCommunicate OK [19:03:30]SAM_PROTO_GetShiftState done [19:03:30]FM_GetShiftState done [19:03:30]opened in 1720829379 [19:03:30]opened+sec_in_day 1720915779 [19:03:30]quantity*price = 15100 [19:03:30]sum+1 = 15101 [19:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 99 13.07.2024 19:03 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1930 ФПД: 188425325229065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190333&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1930&fm=188425325229065&tin=02508201610067®Number=0000000000177495&sum=15100 0 [19:03:31]StoreToDocumentArchive [19:03:31]shift 24 fd 1930 [19:03:31]save to /storage/0024/doc_00001930 [19:03:31]save last doc name /storage/0024/doc_00001930 to /storage/kkm_last_doc_name [19:03:31]save OK [19:03:31]Clear old archive folders... [19:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:03:31]tlvbuf is B6EC79E0 [19:03:31]SAM_PROTO_ClearQueue [19:03:31]wFMCommunicate request_size=4 [19:03:31]MH_SAM_APDU [19:03:31]CAPDU: 80 09 00 00 [19:03:31]Write to MH i2c: E2 08 00 A6 15 80 09 00 00 00 00 00 00 2D [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:31]Read from MH i2c: E2 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 03 00 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [19:03:31]RAPDU: 90 00 [19:03:31]wFMCommunicate OK [19:03:31]SAM_PROTO_ClearQueue done [19:03:31]KKMCreateOFDPacket [19:03:31]OFDProtocolAddRootSTLVToBuf [19:03:31]FM_MakeSignedData [19:03:31]FM_MakeSignedData [19:03:31]SAM_PROTO_SignData [19:03:31]wFMCommunicate request_size=4 [19:03:31]MH_SAM_APDU [19:03:31]CAPDU: 80 0D 01 02 [19:03:31]Write to MH i2c: E2 08 00 A7 15 80 0D 01 02 00 00 00 00 35 [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:31]Read from MH i2c: E2 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 03 00 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [19:03:31]RAPDU: 90 00 [19:03:31]wFMCommunicate OK [19:03:31]wFMCommunicate request_size=255 [19:03:31]MH_SAM_APDU [19:03:31]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 63 00 00 00 F4 03 04 00 85 CF 92 66 0E 04 04 00 18 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 [19:03:31]Write to MH i2c: E2 02 01 A8 15 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 63 00 00 00 F4 03 04 00 85 CF 92 66 0E 04 04 00 18 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 56 [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:32]Read from MH i2c: E2 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 03 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 03 00 A8 15 00 90 00 31 [19:03:32]RAPDU: 90 00 [19:03:32]wFMCommunicate OK [19:03:32]wFMCommunicate request_size=35 [19:03:32]MH_SAM_APDU [19:03:32]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 8A 07 00 00 35 04 06 00 AB 5F 30 93 B4 09 [19:03:32]Write to MH i2c: E2 26 00 A9 15 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 8A 07 00 00 35 04 06 00 AB 5F 30 93 B4 09 00 00 49 [19:03:32]Write i2c OK [19:03:32]MH_I2C_Read... [19:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:32]Read from MH i2c: E2 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 03 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 03 00 A9 15 00 90 00 32 [19:03:32]RAPDU: 90 00 [19:03:32]wFMCommunicate OK [19:03:32]wFMCommunicate request_size=4 [19:03:32]MH_SAM_APDU [19:03:32]CAPDU: 80 0D 03 02 [19:03:32]Write to MH i2c: E2 08 00 AA 15 80 0D 03 02 00 00 00 00 3A [19:03:32]Write i2c OK [19:03:32]MH_I2C_Read... [19:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:32]Read from MH i2c: E2 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 0B 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 0B 00 AA 15 00 9F 30 20 EA 85 FE 63 CE 90 00 C8 [19:03:32]RAPDU: 9F 30 20 EA 85 FE 63 CE 90 00 [19:03:32]wFMCommunicate OK [19:03:32]SAM_PROTO_SignData done [19:03:32]FM_MakeSignedData done [19:03:32]CreateOFDProtocolMessage [19:03:32]wFMCommunicate request_size=4 [19:03:32]MH_SAM_APDU [19:03:32]CAPDU: 80 11 00 00 [19:03:32]Write to MH i2c: E2 08 00 AB 15 80 11 00 00 00 00 00 00 3A [19:03:32]Write i2c OK [19:03:32]MH_I2C_Read... [19:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:32]Read from MH i2c: E2 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 17 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 17 00 AB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 90 [19:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:03:32]wFMCommunicate OK [19:03:32]CreateOFDProtocolMessage done [19:03:32]OFDSenderStorePacket 1930 [19:03:32]StoreOFDPacket docnum=1930 [19:03: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 28 01 00 00 A0 C2 20 01 DD 49 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 63 00 00 00 F4 03 04 00 85 CF 92 66 0E 04 04 00 18 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 8A 07 00 00 35 04 06 00 AB 5F 30 93 B4 09 9F 30 20 EA 85 FE 63 CE [19:03:32]CheckFolder [19:03:32]dirname=/storage/ofd_packets [19:03:32]CheckFolder done [19:03:32]ProducePacketName [19:03:32]name=ofd_packets/00001930 [19:03:32]NVStorageSaveData ofd_packets/00001930 [19:03:32]File name is /storage/ofd_packets/00001930 [19:03:32]Write 326 bytes [19:03:32]NVStorageSaveData done [19:03:32]OFDSenderStorePacket done [19:03:32]KKMCreateOFDPacket done [19:03:32]NVStorageSaveData kkm_last_timestamp [19:03:32]File name is /storage/kkm_last_timestamp [19:03:32]Write 4 bytes [19:03:32]NVStorageSaveData done [19:03:32]ExternCall_PrintAddStr [19:03:32]wPrintStart [19:03:32]Write to MH i2c: 01 00 00 AC 15 C1 [19:03:32]Write i2c OK [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: 01 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: 01 07 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: 01 07 00 AC 15 00 00 00 00 00 FF 0F D6 [19:03:32]RasterBufferAndPrint [19:03:32]line Счет N : (3)256349 [19:03:32]line ИНН: 02508201610067 [19:03:32]line Контрольно-Кассовый Чек [19:03:32]line ПРОДАЖА [19:03:32]line Товар: 48742245 [19:03:32]line Сигареты Parliament Silver Blue [19:03:32]line 1.000 * 151.00 [19:03:32]line = 151.00 [19:03:32]line НДС 12% НСП 1% [19:03:32]line > о реализуемом товаре [19:03:32]line ИТОГО: 151.00 [19:03:32]line НСП 1% : 1.34 [19:03:32]line НДС 12% : 16.03 [19:03:32]line Наличными: 151.00 [19:03:32]line Безнал.: 0.00 [19:03:32]line Место: АЗС № 76 "Партнер Нефть" [19:03:32]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:03:32]line СНО: Общий режим [19:03:32]line Чек 99 13.07.2024 19:03 [19:03:32]line Смена: 24 ФФД: 1.0 [19:03:32]line ЗНМ: 0300000124 [19:03:32]line РНМ: 0000000000177495 [19:03:32]line Версия ККМ: 001 [19:03:32]line ФМ: 0000000002098592 [19:03:32]line ФД: 1930 [19:03:32]line ФПД: 188425325229065 [19:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190333&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1930&fm=188425325229065&tin=02508201610067®Number=0000000000177495&sum=15100 [19:03:32]line 0 [19:03:32]OFD Sender: Processing packet 1930 [packets to send 1, broken 0] [19:03:32]ProducePacketName [19:03:32]name=ofd_packets/00001930 [19:03:32]OFD Sender: To server: pG, [19:03:32]CommunicateWithHost lk.salyk.kg:30040 [19:03:32]ConnectInit lk.salyk.kg [19:03:32]written 0, free lines is 4095 [19:03:32]Connected sock=10 [19:03: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 28 01 00 00 A0 C2 20 01 DD 49 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 63 00 00 00 F4 03 04 00 85 CF 92 66 0E 04 04 00 18 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 8A 07 00 00 35 04 06 00 AB 5F 30 93 B4 09 9F 30 20 EA 85 FE 63 CE [19:03: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 40 D4 47 00 B1 59 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 8A 07 00 00 F4 03 04 00 BA 7A 92 66 B6 04 01 00 00 A0 12 89 C8 96 93 5A 05 [19:03:32]CommunicateWithHost err = 0 [19:03:32]CheckOFDResponse [19:03:32]1017 (14) - 77093643461234 [19:03:32]1041 (16) - 0000000002098592 [19:03:32]1040 (4) - 1930 [19:03:32]1012 (4) - 13.07.2024 13:01 [19:03:32]1206 (1) - 0 [19:03:32]OFD Sender: Remove packet 1930 [19:03:32]ProducePacketName [19:03:32]name=ofd_packets/00001930 [19:03:32]NVStorageDeleteData [19:03:33]Write to MH i2c: 01 00 00 D5 15 EA [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: 01 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: 01 07 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 ED 0C EA [19:03:33]RasterBufferAndPrint [19:03:33]line [19:03:33]line [19:03:33]line [19:03:33]line [19:03:33]line [19:03:33]written 0, free lines is 3318 [19:03:33]MH_Cut [19:03:33]Write to MH i2c: D1 01 00 DC 15 01 C3 [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: D1 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: D1 01 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: D1 01 00 DC 15 00 C2 [19:03:33]Write to MH i2c: 01 00 00 DD 15 F2 [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]OFD Sender: No OFD packet to send [19:03:33]*** Cut start [19:03:33]*** Partial cut [19:03:33]*** CUTSNS_PIN = 1 [19:03:33]*** CUTSNS_PIN = 0 [19:03:34]*** Brake cut motor [19:03:34]Read from MH i2c: 01 [19:03:34]MH_I2C_Read... [19:03:34]*** Stop cut motor [19:03:34]*** Cut end [19:03:34]Read from MH i2c: 01 07 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 FF 0F 07 [19:03:34]process_action close_receipt done [19:03:34]requested_data is exist [19:03:34]produce_requested_data [19:03:34]requested_item fm.sn is exist - process it [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 11 00 00 [19:03:34]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 17 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C3 [19:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:03:34]wFMCommunicate OK [19:03:34]requested_item fd.num is exist - process it [19:03:34]SAM_PROTO_GetFieldsCounters [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 13 00 00 [19:03:34]Write to MH i2c: E2 08 00 DF 15 80 13 00 00 00 00 00 00 70 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 62 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 62 00 DF 15 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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:03: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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:34]wFMCommunicate OK [19:03:34]SAM_PROTO_GetFieldsCounters done [19:03:34]requested_item shift.num is exist - process it [19:03:34]requested_item shift.opened is exist - process it [19:03:34]req_shift_opened [19:03:34]FM_GetShiftState [19:03:34]SAM_PROTO_GetShiftState [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 13 01 00 [19:03:34]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 0E 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 FD [19:03:34]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:03:34]wFMCommunicate OK [19:03:34]SAM_PROTO_GetShiftState done [19:03:34]FM_GetShiftState done [19:03:34]req_shift_opened done [19:03:34]requested_item shift.open_date is exist - process it [19:03:34]req_shift_open_date [19:03:34]req_shift_open_date done [19:03:34]produce_requested_data done [19:03:34]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:03:34]process_action_free close_receipt [19:03:34]json_value_free [19:03:34]json_value_free done [19:03:34]process_json_proto returns [19:03:34]Send response to host [19:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:03:34]free response buf [19:03:34]execute_script done [19:03:34]execute_script returns [19:03:34]free content buf [19:03:34]Sock 9.Close socket [19:03:34]Sock 9.Thread stoped [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]accept exits with 8 [19:05:18]New connection [19:05:18]New thread 3066834276 created [19:05:18]Thread 3066977636 joined [19:05:18]Waiting for new connection... [19:05:18] Sock 8.Parse request [19:05:18]Sock 8.Check first char [19:05:18]Sock 8.First char is OK [19:05:18]request: POST /json_proto HTTP/1.0 [19:05:18]Method: POST [19:05:18]URL: /json_proto [19:05:18]Method is POST - this is cgi request [19:05:18]url: /json_proto [19:05:18]query_string will be loaded in cgi processing [19:05:18]execute_cgi json_proto POST (null) [19:05:18]execute_cgi path=json_proto method=POST [19:05:18]POST find Content-Length [19:05:18]Host: 172.17.35.133:8080 [19:05:18]Content-Length: 215 [19:05:18]Content-Type: application/json [19:05:18] [19:05:18]POST finish read [19:05:18]Found Content-Length = 215 [19:05:18]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" ] } } [19:05:18]execute_script... [19:05:18]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" ] } } [19:05:18]POST & json_proto [19:05:18]process_json_proto [19:05:18]json parsed OK: [19:05:18]protocol is kg_v1.0 [19:05:18]action value=get_value [19:05:18]process_action get_value [19:05:18]cmd_get_value [19:05:18]process_action get_value done [19:05:18]requested_data is exist [19:05:18]produce_requested_data [19:05:18]requested_item kkm.sn is exist - process it [19:05:18]requested_item kkm.ver is exist - process it [19:05:18]requested_item fm.sn is exist - process it [19:05:18]wFMCommunicate request_size=4 [19:05:18]MH_SAM_APDU [19:05:18]CAPDU: 80 11 00 00 [19:05:18]Write to MH i2c: E2 08 00 E1 15 80 11 00 00 00 00 00 00 70 [19:05:18]Write i2c OK [19:05:18]MH_I2C_Read... [19:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:18]Read from MH i2c: E2 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 17 00 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 17 00 E1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C6 [19:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:05:18]wFMCommunicate OK [19:05:18]requested_item fd.num is exist - process it [19:05:18]SAM_PROTO_GetFieldsCounters [19:05:18]wFMCommunicate request_size=4 [19:05:18]MH_SAM_APDU [19:05:18]CAPDU: 80 13 00 00 [19:05:18]Write to MH i2c: E2 08 00 E2 15 80 13 00 00 00 00 00 00 73 [19:05:18]Write i2c OK [19:05:18]MH_I2C_Read... [19:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:18]Read from MH i2c: E2 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 62 00 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 62 00 E2 15 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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [19:05: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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:18]wFMCommunicate OK [19:05:18]SAM_PROTO_GetFieldsCounters done [19:05:18]requested_item shift.num is exist - process it [19:05:18]requested_item shift.opened is exist - process it [19:05:18]req_shift_opened [19:05:18]FM_GetShiftState [19:05:18]SAM_PROTO_GetShiftState [19:05:18]wFMCommunicate request_size=4 [19:05:18]MH_SAM_APDU [19:05:18]CAPDU: 80 13 01 00 [19:05:18]Write to MH i2c: E2 08 00 E3 15 80 13 01 00 00 00 00 00 75 [19:05:18]Write i2c OK [19:05:18]MH_I2C_Read... [19:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:18]Read from MH i2c: E2 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 0E 00 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 0E 00 E3 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 00 [19:05:18]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:05:18]wFMCommunicate OK [19:05:18]SAM_PROTO_GetShiftState done [19:05:18]FM_GetShiftState done [19:05:18]req_shift_opened done [19:05:18]requested_item shift.open_date is exist - process it [19:05:18]req_shift_open_date [19:05:18]req_shift_open_date done [19:05:18]produce_requested_data done [19:05:18]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:05:18]process_action_free get_value [19:05:18]json_value_free [19:05:18]json_value_free done [19:05:18]process_json_proto returns [19:05:18]Send response to host [19:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:05:18]free response buf [19:05:18]execute_script done [19:05:18]execute_script returns [19:05:18]free content buf [19:05:18]Sock 8.Close socket [19:05:18]Sock 8.Thread stoped [19:05:18]accept exits with 9 [19:05:18]New connection [19:05:18]New thread 3066977636 created [19:05:18]Thread 3066834276 joined [19:05:18]Waiting for new connection... [19:05:18] Sock 9.Parse request [19:05:18]Sock 9.Check first char [19:05:18]Sock 9.First char is OK [19:05:18]request: POST /json_proto HTTP/1.0 [19:05:18]Method: POST [19:05:18]URL: /json_proto [19:05:18]Method is POST - this is cgi request [19:05:18]url: /json_proto [19:05:18]query_string will be loaded in cgi processing [19:05:18]execute_cgi json_proto POST (null) [19:05:18]execute_cgi path=json_proto method=POST [19:05:18]POST find Content-Length [19:05:18]Host: 172.17.35.133:8080 [19:05:18]Content-Length: 331 [19:05:18]Content-Type: application/json [19:05:18] [19:05:18]POST finish read [19:05:18]Found Content-Length = 331 [19:05:18]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" ] } } [19:05:18]execute_script... [19:05:18]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" ] } } [19:05:18]POST & json_proto [19:05:18]process_json_proto [19:05:18]json parsed OK: [19:05:18]protocol is kg_v1.0 [19:05:18]action value=get_value [19:05:18]process_action get_value [19:05:18]cmd_get_value [19:05:18]process_action get_value done [19:05:18]requested_data is exist [19:05:18]produce_requested_data [19:05:18]requested_item fm.sale.total is exist - process it [19:05:18]SAM_PROTO_GetFMData [19:05:18]wFMCommunicate request_size=4 [19:05:18]MH_SAM_APDU [19:05:18]CAPDU: 80 13 03 00 [19:05:18]Write to MH i2c: E2 08 00 E4 15 80 13 03 00 00 00 00 00 78 [19:05:18]OFD Sender: No OFD packet to send [19:05:18]Write i2c OK [19:05:18]MH_I2C_Read... [19:05:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:05:19]Read from MH i2c: E2 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: E2 FD 00 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: E2 FD 00 E4 15 00 BA 04 85 04 B6 04 6E 04 04 00 5A 07 00 00 69 04 9F 00 6F 04 04 00 58 07 00 00 B1 04 04 00 5E 94 CB 04 70 04 04 00 E0 4A F4 03 72 04 03 00 7E 49 D7 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 D2 5D 82 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 03 DC 0A 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 F8 [19:05:19]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 5A 07 00 00 69 04 9F 00 6F 04 04 00 58 07 00 00 B1 04 04 00 5E 94 CB 04 70 04 04 00 E0 4A F4 03 72 04 03 00 7E 49 D7 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 D2 5D 82 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 03 DC 0A 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 [19:05:19]wFMCommunicate OK [19:05:19]wFMCommunicate request_size=4 [19:05:19]MH_SAM_APDU [19:05:19]CAPDU: 80 17 00 00 [19:05:19]Write to MH i2c: E2 08 00 E5 15 80 17 00 00 00 00 00 00 7A [19:05:19]Write i2c OK [19:05:19]MH_I2C_Read... [19:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:05:19]Read from MH i2c: E2 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: E2 FD 00 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: E2 FD 00 E5 15 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 77 [19:05:19]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 [19:05:19]wFMCommunicate OK [19:05:19]wFMCommunicate request_size=4 [19:05:19]MH_SAM_APDU [19:05:19]CAPDU: 80 17 00 00 [19:05:19]Write to MH i2c: E2 08 00 E6 15 80 17 00 00 00 00 00 00 7B [19:05:19]Write i2c OK [19:05:19]MH_I2C_Read... [19:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:05:19]Read from MH i2c: E2 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: E2 FD 00 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: E2 FD 00 E6 15 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 A7 [19:05:19]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 [19:05:19]wFMCommunicate OK [19:05:19]wFMCommunicate request_size=4 [19:05:19]MH_SAM_APDU [19:05:19]CAPDU: 80 17 00 00 [19:05:19]Write to MH i2c: E2 08 00 E7 15 80 17 00 00 00 00 00 00 7C [19:05:19]Write i2c OK [19:05:19]MH_I2C_Read... [19:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:05:20]Read from MH i2c: E2 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 FD 00 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 FD 00 E7 15 00 00 EF 03 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 F4 [19:05:20]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 [19:05:20]wFMCommunicate OK [19:05:20]wFMCommunicate request_size=4 [19:05:20]MH_SAM_APDU [19:05:20]CAPDU: 80 17 00 00 [19:05:20]Write to MH i2c: E2 08 00 E8 15 80 17 00 00 00 00 00 00 7D [19:05:20]Write i2c OK [19:05:20]MH_I2C_Read... [19:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:05:20]Read from MH i2c: E2 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 D7 00 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 D7 00 E8 15 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 60 [19:05:20]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 [19:05:20]wFMCommunicate OK [19:05:20]SAM_PROTO_GetFMData done [19:05:20]requested_item fm.sale_refund.total is exist - process it [19:05:20]requested_item fm.buy.total is exist - process it [19:05:20]requested_item shift.sale.total is exist - process it [19:05:20]SAM_PROTO_GetShiftData [19:05:20]wFMCommunicate request_size=4 [19:05:20]MH_SAM_APDU [19:05:20]CAPDU: 80 13 02 00 [19:05:20]Write to MH i2c: E2 08 00 E9 15 80 13 02 00 00 00 00 00 7C [19:05:20]Write i2c OK [19:05:20]MH_I2C_Read... [19:05:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:05:20]Read from MH i2c: E2 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 FD 00 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 FD 00 E9 15 00 AF 04 AA 04 AB 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 63 00 00 00 B1 04 03 00 C5 B3 7B 70 04 03 00 20 53 5F 72 04 03 00 A5 60 1C 00 04 7B 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 6A 23 0D 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 3F 18 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [19:05:20]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 63 00 00 00 B1 04 03 00 C5 B3 7B 70 04 03 00 20 53 5F 72 04 03 00 A5 60 1C 00 04 7B 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 6A 23 0D 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 3F 18 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:05:20]wFMCommunicate OK [19:05:20]wFMCommunicate request_size=4 [19:05:20]MH_SAM_APDU [19:05:20]CAPDU: 80 17 00 00 [19:05:20]Write to MH i2c: E2 08 00 EA 15 80 17 00 00 00 00 00 00 7F [19:05:20]Write i2c OK [19:05:20]MH_I2C_Read... [19:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:05:20]Read from MH i2c: E2 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 FD 00 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 FD 00 EA 15 00 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 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 90 00 98 [19:05:21]RAPDU: 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 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 90 00 [19:05:21]wFMCommunicate OK [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 17 00 00 [19:05:21]Write to MH i2c: E2 08 00 EB 15 80 17 00 00 00 00 00 00 80 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 FD 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 FD 00 EB 15 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 34 [19:05:21]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:05:21]wFMCommunicate OK [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 17 00 00 [19:05:21]Write to MH i2c: E2 08 00 EC 15 80 17 00 00 00 00 00 00 81 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 FD 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 FD 00 EC 15 00 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 90 00 FF [19:05:21]RAPDU: 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 90 00 [19:05:21]wFMCommunicate OK [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 17 00 00 [19:05:21]Write to MH i2c: E2 08 00 ED 15 80 17 00 00 00 00 00 00 82 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 CC 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 CC 00 ED 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 63 [19:05:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:05:21]wFMCommunicate OK [19:05:21]SAM_PROTO_GetShiftData done [19:05:21]requested_item shift.sale.total_cash is exist - process it [19:05:21]requested_item shift.sale_refund.total is exist - process it [19:05:21]requested_item shift.sale_refund.total_cash is exist - process it [19:05:21]requested_item shift.buy.total is exist - process it [19:05:21]requested_item shift.buy.total_cash is exist - process it [19:05:21]produce_requested_data done [19:05:21]produce_requested_data return {"fm.sale.total":804506.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":81069.49,"shift.sale.total_cash":62472.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} [19:05:21]process_action_free get_value [19:05:21]json_value_free [19:05:21]json_value_free done [19:05:21]process_json_proto returns [19:05:21]Send response to host [19:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":804506.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":81069.49,"shift.sale.total_cash":62472.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}}} [19:05:21]free response buf [19:05:21]execute_script done [19:05:21]execute_script returns [19:05:21]free content buf [19:05:21]Sock 9.Close socket [19:05:21]Sock 9.Thread stoped [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:53]accept exits with 8 [19:10:53]New connection [19:10:53]New thread 3066834276 created [19:10:53]Thread 3066977636 joined [19:10:53]Waiting for new connection... [19:10:53] Sock 8.Parse request [19:10:53]Sock 8.Check first char [19:10:53]Sock 8.First char is OK [19:10:53]request: POST /json_proto HTTP/1.0 [19:10:53]Method: POST [19:10:53]URL: /json_proto [19:10:53]Method is POST - this is cgi request [19:10:53]url: /json_proto [19:10:53]query_string will be loaded in cgi processing [19:10:53]execute_cgi json_proto POST (null) [19:10:53]execute_cgi path=json_proto method=POST [19:10:53]POST find Content-Length [19:10:53]Host: 172.17.35.133:8080 [19:10:53]Content-Length: 215 [19:10:53]Content-Type: application/json [19:10:53] [19:10:53]POST finish read [19:10:53]Found Content-Length = 215 [19:10: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" ] } } [19:10:53]execute_script... [19:10: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" ] } } [19:10:53]POST & json_proto [19:10:53]process_json_proto [19:10:53]json parsed OK: [19:10:53]protocol is kg_v1.0 [19:10:53]action value=get_value [19:10:53]process_action get_value [19:10:53]cmd_get_value [19:10:53]process_action get_value done [19:10:53]requested_data is exist [19:10:53]produce_requested_data [19:10:53]requested_item kkm.sn is exist - process it [19:10:53]requested_item kkm.ver is exist - process it [19:10:53]requested_item fm.sn is exist - process it [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 11 00 00 [19:10:53]Write to MH i2c: E2 08 00 EE 15 80 11 00 00 00 00 00 00 7D [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 17 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 17 00 EE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D3 [19:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:10:53]wFMCommunicate OK [19:10:53]requested_item fd.num is exist - process it [19:10:53]SAM_PROTO_GetFieldsCounters [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 13 00 00 [19:10:53]Write to MH i2c: E2 08 00 EF 15 80 13 00 00 00 00 00 00 80 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 62 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 62 00 EF 15 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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [19:10:54]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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_GetFieldsCounters done [19:10:54]requested_item shift.num is exist - process it [19:10:54]requested_item shift.opened is exist - process it [19:10:54]req_shift_opened [19:10:54]FM_GetShiftState [19:10:54]SAM_PROTO_GetShiftState [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 01 00 [19:10:54]Write to MH i2c: E2 08 00 F0 15 80 13 01 00 00 00 00 00 82 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 F0 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0D [19:10:54]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_GetShiftState done [19:10:54]FM_GetShiftState done [19:10:54]req_shift_opened done [19:10:54]requested_item shift.open_date is exist - process it [19:10:54]req_shift_open_date [19:10:54]req_shift_open_date done [19:10:54]produce_requested_data done [19:10:54]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:10:54]process_action_free get_value [19:10:54]json_value_free [19:10:54]json_value_free done [19:10:54]process_json_proto returns [19:10:54]Send response to host [19:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:10:54]free response buf [19:10:54]execute_script done [19:10:54]execute_script returns [19:10:54]free content buf [19:10:54]Sock 8.Close socket [19:10:54]Sock 8.Thread stoped [19:10:54]accept exits with 9 [19:10:54]New connection [19:10:54]New thread 3066977636 created [19:10:54]Thread 3066834276 joined [19:10:54]Waiting for new connection... [19:10:54] Sock 9.Parse request [19:10:54]Sock 9.Check first char [19:10:54]Sock 9.First char is OK [19:10:54]request: POST /json_proto HTTP/1.0 [19:10:54]Method: POST [19:10:54]URL: /json_proto [19:10:54]Method is POST - this is cgi request [19:10:54]url: /json_proto [19:10:54]query_string will be loaded in cgi processing [19:10:54]execute_cgi json_proto POST (null) [19:10:54]execute_cgi path=json_proto method=POST [19:10:54]POST find Content-Length [19:10:54]Host: 172.17.35.133:8080 [19:10:54]Content-Length: 331 [19:10:54]Content-Type: application/json [19:10:54] [19:10:54]POST finish read [19:10:54]Found Content-Length = 331 [19:10:54]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" ] } } [19:10:54]execute_script... [19:10:54]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" ] } } [19:10:54]POST & json_proto [19:10:54]process_json_proto [19:10:54]json parsed OK: [19:10:54]protocol is kg_v1.0 [19:10:54]action value=get_value [19:10:54]process_action get_value [19:10:54]cmd_get_value [19:10:54]process_action get_value done [19:10:54]requested_data is exist [19:10:54]produce_requested_data [19:10:54]requested_item fm.sale.total is exist - process it [19:10:54]SAM_PROTO_GetFMData [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 03 00 [19:10:54]Write to MH i2c: E2 08 00 F1 15 80 13 03 00 00 00 00 00 85 [19:10:54]OFD Sender: No OFD packet to send [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 FD 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 FD 00 F1 15 00 BA 04 85 04 B6 04 6E 04 04 00 5A 07 00 00 69 04 9F 00 6F 04 04 00 58 07 00 00 B1 04 04 00 5E 94 CB 04 70 04 04 00 E0 4A F4 03 72 04 03 00 7E 49 D7 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 D2 5D 82 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 03 DC 0A 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 05 [19:10:54]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 5A 07 00 00 69 04 9F 00 6F 04 04 00 58 07 00 00 B1 04 04 00 5E 94 CB 04 70 04 04 00 E0 4A F4 03 72 04 03 00 7E 49 D7 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 D2 5D 82 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 03 DC 0A 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 [19:10:54]wFMCommunicate OK [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 17 00 00 [19:10:54]Write to MH i2c: E2 08 00 F2 15 80 17 00 00 00 00 00 00 87 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 FD 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 FD 00 F2 15 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 84 [19:10:55]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 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 17 00 00 [19:10:55]Write to MH i2c: E2 08 00 F3 15 80 17 00 00 00 00 00 00 88 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 FD 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 FD 00 F3 15 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 B4 [19:10:55]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 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 17 00 00 [19:10:55]Write to MH i2c: E2 08 00 F4 15 80 17 00 00 00 00 00 00 89 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 FD 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 FD 00 F4 15 00 00 EF 03 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 01 [19:10:55]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 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 17 00 00 [19:10:55]Write to MH i2c: E2 08 00 F5 15 80 17 00 00 00 00 00 00 8A [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 D7 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 D7 00 F5 15 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 6D [19:10: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 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_GetFMData done [19:10:55]requested_item fm.sale_refund.total is exist - process it [19:10:55]requested_item fm.buy.total is exist - process it [19:10:55]requested_item shift.sale.total is exist - process it [19:10:55]SAM_PROTO_GetShiftData [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 13 02 00 [19:10:55]Write to MH i2c: E2 08 00 F6 15 80 13 02 00 00 00 00 00 89 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 FD 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 FD 00 F6 15 00 AF 04 AA 04 AB 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 63 00 00 00 B1 04 03 00 C5 B3 7B 70 04 03 00 20 53 5F 72 04 03 00 A5 60 1C 00 04 7B 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 6A 23 0D 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 3F 18 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [19:10:56]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 63 00 00 00 B1 04 03 00 C5 B3 7B 70 04 03 00 20 53 5F 72 04 03 00 A5 60 1C 00 04 7B 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 6A 23 0D 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 3F 18 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 17 00 00 [19:10:56]Write to MH i2c: E2 08 00 F7 15 80 17 00 00 00 00 00 00 8C [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 FD 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 FD 00 F7 15 00 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 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 90 00 A5 [19:10:56]RAPDU: 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 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 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 17 00 00 [19:10:56]Write to MH i2c: E2 08 00 F8 15 80 17 00 00 00 00 00 00 8D [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 FD 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 FD 00 F8 15 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 41 [19:10:56]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 17 00 00 [19:10:56]Write to MH i2c: E2 08 00 F9 15 80 17 00 00 00 00 00 00 8E [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 FD 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 FD 00 F9 15 00 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 90 00 0C [19:10:57]RAPDU: 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 90 00 [19:10:57]wFMCommunicate OK [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 17 00 00 [19:10:57]Write to MH i2c: E2 08 00 FA 15 80 17 00 00 00 00 00 00 8F [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 CC 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 CC 00 FA 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [19:10:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:10:57]wFMCommunicate OK [19:10:57]SAM_PROTO_GetShiftData done [19:10:57]requested_item shift.sale.total_cash is exist - process it [19:10:57]requested_item shift.sale_refund.total is exist - process it [19:10:57]requested_item shift.sale_refund.total_cash is exist - process it [19:10:57]requested_item shift.buy.total is exist - process it [19:10:57]requested_item shift.buy.total_cash is exist - process it [19:10:57]produce_requested_data done [19:10:57]produce_requested_data return {"fm.sale.total":804506.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":81069.49,"shift.sale.total_cash":62472.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} [19:10:57]process_action_free get_value [19:10:57]json_value_free [19:10:57]json_value_free done [19:10:57]process_json_proto returns [19:10:57]Send response to host [19:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":804506.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":81069.49,"shift.sale.total_cash":62472.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}}} [19:10:57]free response buf [19:10:57]execute_script done [19:10:57]execute_script returns [19:10:57]free content buf [19:10:57]Sock 9.Close socket [19:10:57]Sock 9.Thread stoped [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:38]accept exits with 8 [19:11:38]New connection [19:11:38]New thread 3066834276 created [19:11:38]Thread 3066977636 joined [19:11:38]Waiting for new connection... [19:11:38] Sock 8.Parse request [19:11:38]Sock 8.Check first char [19:11:38]Sock 8.First char is OK [19:11:38]request: POST /json_proto HTTP/1.0 [19:11:38]Method: POST [19:11:38]URL: /json_proto [19:11:38]Method is POST - this is cgi request [19:11:38]url: /json_proto [19:11:38]query_string will be loaded in cgi processing [19:11:38]execute_cgi json_proto POST (null) [19:11:38]execute_cgi path=json_proto method=POST [19:11:38]POST find Content-Length [19:11:38]Host: 172.17.35.133:8080 [19:11:38]Content-Length: 215 [19:11:38]Content-Type: application/json [19:11:38] [19:11:38]POST finish read [19:11:38]Found Content-Length = 215 [19:11:38]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" ] } } [19:11:38]execute_script... [19:11:38]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" ] } } [19:11:38]POST & json_proto [19:11:38]process_json_proto [19:11:38]json parsed OK: [19:11:38]protocol is kg_v1.0 [19:11:38]action value=get_value [19:11:38]process_action get_value [19:11:38]cmd_get_value [19:11:38]process_action get_value done [19:11:38]requested_data is exist [19:11:38]produce_requested_data [19:11:38]requested_item kkm.sn is exist - process it [19:11:38]requested_item kkm.ver is exist - process it [19:11:38]requested_item fm.sn is exist - process it [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 11 00 00 [19:11:38]Write to MH i2c: E2 08 00 FB 15 80 11 00 00 00 00 00 00 8A [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 17 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 17 00 FB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E0 [19:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:11:38]wFMCommunicate OK [19:11:38]requested_item fd.num is exist - process it [19:11:38]SAM_PROTO_GetFieldsCounters [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 13 00 00 [19:11:38]Write to MH i2c: E2 08 00 FC 15 80 13 00 00 00 00 00 00 8D [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 62 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 62 00 FC 15 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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [19:11:38]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 8A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:38]wFMCommunicate OK [19:11:38]SAM_PROTO_GetFieldsCounters done [19:11:38]requested_item shift.num is exist - process it [19:11:38]requested_item shift.opened is exist - process it [19:11:38]req_shift_opened [19:11:38]FM_GetShiftState [19:11:38]SAM_PROTO_GetShiftState [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 13 01 00 [19:11:38]Write to MH i2c: E2 08 00 FD 15 80 13 01 00 00 00 00 00 8F [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:38]Read from MH i2c: E2 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 0E 00 [19:11:38]MH_I2C_Read... [19:11:38]Read from MH i2c: E2 0E 00 FD 15 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1A [19:11:38]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:11:38]wFMCommunicate OK [19:11:38]SAM_PROTO_GetShiftState done [19:11:38]FM_GetShiftState done [19:11:38]req_shift_opened done [19:11:38]requested_item shift.open_date is exist - process it [19:11:38]req_shift_open_date [19:11:38]req_shift_open_date done [19:11:38]produce_requested_data done [19:11:38]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:11:38]process_action_free get_value [19:11:38]json_value_free [19:11:38]json_value_free done [19:11:38]process_json_proto returns [19:11:38]Send response to host [19:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1930,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:11:38]free response buf [19:11:38]execute_script done [19:11:38]execute_script returns [19:11:38]free content buf [19:11:38]Sock 8.Close socket [19:11:38]Sock 8.Thread stoped [19:11:38]accept exits with 9 [19:11:38]New connection [19:11:38]New thread 3066977636 created [19:11:38]Thread 3066834276 joined [19:11:38]Waiting for new connection... [19:11:38] Sock 9.Parse request [19:11:38]Sock 9.Check first char [19:11:38]Sock 9.First char is OK [19:11:38]request: POST /json_proto HTTP/1.0 [19:11:38]Method: POST [19:11:38]URL: /json_proto [19:11:38]Method is POST - this is cgi request [19:11:38]url: /json_proto [19:11:38]query_string will be loaded in cgi processing [19:11:38]execute_cgi json_proto POST (null) [19:11:38]execute_cgi path=json_proto method=POST [19:11:38]POST find Content-Length [19:11:38]Host: 172.17.35.133:8080 [19:11:38]Content-Length: 331 [19:11:38]Content-Type: application/json [19:11:38] [19:11:38]POST finish read [19:11:38]Found Content-Length = 331 [19:11:38]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" ] } } [19:11:38]execute_script... [19:11:38]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" ] } } [19:11:38]POST & json_proto [19:11:38]process_json_proto [19:11:38]json parsed OK: [19:11:38]protocol is kg_v1.0 [19:11:38]action value=get_value [19:11:38]process_action get_value [19:11:38]cmd_get_value [19:11:38]process_action get_value done [19:11:38]requested_data is exist [19:11:38]produce_requested_data [19:11:38]requested_item fm.sale.total is exist - process it [19:11:38]SAM_PROTO_GetFMData [19:11:38]wFMCommunicate request_size=4 [19:11:38]MH_SAM_APDU [19:11:38]CAPDU: 80 13 03 00 [19:11:38]Write to MH i2c: E2 08 00 FE 15 80 13 03 00 00 00 00 00 92 [19:11:38]Write i2c OK [19:11:38]MH_I2C_Read... [19:11:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:11:39]Read from MH i2c: E2 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 FE 15 00 BA 04 85 04 B6 04 6E 04 04 00 5A 07 00 00 69 04 9F 00 6F 04 04 00 58 07 00 00 B1 04 04 00 5E 94 CB 04 70 04 04 00 E0 4A F4 03 72 04 03 00 7E 49 D7 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 D2 5D 82 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 03 DC 0A 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 12 [19:11:39]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 5A 07 00 00 69 04 9F 00 6F 04 04 00 58 07 00 00 B1 04 04 00 5E 94 CB 04 70 04 04 00 E0 4A F4 03 72 04 03 00 7E 49 D7 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 D2 5D 82 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 03 DC 0A 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 [19:11:39]wFMCommunicate OK [19:11:39]wFMCommunicate request_size=4 [19:11:39]MH_SAM_APDU [19:11:39]CAPDU: 80 17 00 00 [19:11:39]Write to MH i2c: E2 08 00 FF 15 80 17 00 00 00 00 00 00 94 [19:11:39]Write i2c OK [19:11:39]MH_I2C_Read... [19:11:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:39]Read from MH i2c: E2 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 FF 15 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 [19:11:39]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 [19:11:39]wFMCommunicate OK [19:11:39]wFMCommunicate request_size=4 [19:11:39]MH_SAM_APDU [19:11:39]CAPDU: 80 17 00 00 [19:11:39]Write to MH i2c: E2 08 00 00 16 80 17 00 00 00 00 00 00 96 [19:11:39]Write i2c OK [19:11:39]MH_I2C_Read... [19:11:39]OFD Sender: No OFD packet to send [19:11:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:39]Read from MH i2c: E2 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 00 16 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 C2 [19:11:39]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 [19:11:39]wFMCommunicate OK [19:11:39]wFMCommunicate request_size=4 [19:11:39]MH_SAM_APDU [19:11:39]CAPDU: 80 17 00 00 [19:11:39]Write to MH i2c: E2 08 00 01 16 80 17 00 00 00 00 00 00 97 [19:11:39]Write i2c OK [19:11:39]MH_I2C_Read... [19:11:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:39]Read from MH i2c: E2 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 FD 00 01 16 00 00 EF 03 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 0F [19:11:39]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 [19:11:39]wFMCommunicate OK [19:11:39]wFMCommunicate request_size=4 [19:11:39]MH_SAM_APDU [19:11:39]CAPDU: 80 17 00 00 [19:11:39]Write to MH i2c: E2 08 00 02 16 80 17 00 00 00 00 00 00 98 [19:11:39]Write i2c OK [19:11:39]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 D7 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 D7 00 02 16 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 7B [19:11:40]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 [19:11:40]wFMCommunicate OK [19:11:40]SAM_PROTO_GetFMData done [19:11:40]requested_item fm.sale_refund.total is exist - process it [19:11:40]requested_item fm.buy.total is exist - process it [19:11:40]requested_item shift.sale.total is exist - process it [19:11:40]SAM_PROTO_GetShiftData [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 13 02 00 [19:11:40]Write to MH i2c: E2 08 00 03 16 80 13 02 00 00 00 00 00 97 [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 FD 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 FD 00 03 16 00 AF 04 AA 04 AB 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 63 00 00 00 B1 04 03 00 C5 B3 7B 70 04 03 00 20 53 5F 72 04 03 00 A5 60 1C 00 04 7B 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 6A 23 0D 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 3F 18 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [19:11:40]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 63 00 00 00 B1 04 03 00 C5 B3 7B 70 04 03 00 20 53 5F 72 04 03 00 A5 60 1C 00 04 7B 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 6A 23 0D 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 3F 18 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:11:40]wFMCommunicate OK [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 17 00 00 [19:11:40]Write to MH i2c: E2 08 00 04 16 80 17 00 00 00 00 00 00 9A [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 FD 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 FD 00 04 16 00 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 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 90 00 B3 [19:11:40]RAPDU: 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 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 90 00 [19:11:40]wFMCommunicate OK [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 17 00 00 [19:11:40]Write to MH i2c: E2 08 00 05 16 80 17 00 00 00 00 00 00 9B [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 FD 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 FD 00 05 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 4F [19:11:41]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:11:41]wFMCommunicate OK [19:11:41]wFMCommunicate request_size=4 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 17 00 00 [19:11:41]Write to MH i2c: E2 08 00 06 16 80 17 00 00 00 00 00 00 9C [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 FD 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 FD 00 06 16 00 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 90 00 1A [19:11:41]RAPDU: 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 90 00 [19:11:41]wFMCommunicate OK [19:11:41]wFMCommunicate request_size=4 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 17 00 00 [19:11:41]Write to MH i2c: E2 08 00 07 16 80 17 00 00 00 00 00 00 9D [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 CC 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 CC 00 07 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [19:11:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:11:41]wFMCommunicate OK [19:11:41]SAM_PROTO_GetShiftData done [19:11:41]requested_item shift.sale.total_cash is exist - process it [19:11:41]requested_item shift.sale_refund.total is exist - process it [19:11:41]requested_item shift.sale_refund.total_cash is exist - process it [19:11:41]requested_item shift.buy.total is exist - process it [19:11:41]requested_item shift.buy.total_cash is exist - process it [19:11:41]produce_requested_data done [19:11:41]produce_requested_data return {"fm.sale.total":804506.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":81069.49,"shift.sale.total_cash":62472.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} [19:11:41]process_action_free get_value [19:11:41]json_value_free [19:11:41]json_value_free done [19:11:41]process_json_proto returns [19:11:41]Send response to host [19:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":804506.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":81069.49,"shift.sale.total_cash":62472.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}}} [19:11:41]free response buf [19:11:41]execute_script done [19:11:41]execute_script returns [19:11:41]free content buf [19:11:41]Sock 9.Close socket [19:11:41]Sock 9.Thread stoped [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:05]accept exits with 8 [19:12:05]New connection [19:12:05]New thread 3066834276 created [19:12:05]Thread 3066977636 joined [19:12:05]Waiting for new connection... [19:12:05] Sock 8.Parse request [19:12:05]Sock 8.Check first char [19:12:05]Sock 8.First char is OK [19:12:05]request: POST /json_proto HTTP/1.0 [19:12:05]Method: POST [19:12:05]URL: /json_proto [19:12:05]Method is POST - this is cgi request [19:12:05]url: /json_proto [19:12:05]query_string will be loaded in cgi processing [19:12:05]execute_cgi json_proto POST (null) [19:12:05]execute_cgi path=json_proto method=POST [19:12:05]POST find Content-Length [19:12:05]Host: 172.17.35.133:8080 [19:12:05]Content-Length: 683 [19:12:05]Content-Type: application/json [19:12:05] [19:12:05]POST finish read [19:12:05]Found Content-Length = 683 [19:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 37.140, "sum" : 2763.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2763.00, "payments": [ { "type": 0, "sum" : 2763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:05]execute_script... [19:12: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 : (1)1619124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 37.140, "sum" : 2763.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2763.00, "payments": [ { "type": 0, "sum" : 2763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:05]POST & json_proto [19:12:05]process_json_proto [19:12:05]json parsed OK: [19:12:05]protocol is kg_v1.0 [19:12:05]action value=close_receipt [19:12:05]process_action close_receipt [19:12:05]cmd_close_receipt [19:12:05]MH_GetDate [19:12:05]Write to MH i2c: F0 00 00 08 16 0D [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: F0 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: F0 09 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: F0 09 00 08 16 00 88 D1 92 66 1B 28 2A 66 3A [19:12:05]GetLastDocTimeStamp 1720897413 [19:12:05]current date 1720897928 [19:12:05]FM_GetShiftState [19:12:05]SAM_PROTO_GetShiftState [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 13 01 00 [19:12:05]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 0E 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 27 [19:12:05]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:12:05]wFMCommunicate OK [19:12:05]SAM_PROTO_GetShiftState done [19:12:05]FM_GetShiftState done [19:12:05]opened in 1720829379 [19:12:05]opened+sec_in_day 1720915779 [19:12:05]quantity*price = 276321 [19:12:05]sum+1 = 276323 [19:12:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2763.00 Внесено: 5000.00 СДАЧА: 2237.00 НСП 1% : 24.45 НДС 12% : 293.44 Наличными: 2763.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 100 13.07.2024 19:12 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1931 ФПД: 53848979986600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191208&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1931&fm=53848979986600&tin=02508201610067®Number=0000000000177495&sum=276300 [19:12:06]StoreToDocumentArchive [19:12:06]shift 24 fd 1931 [19:12:06]save to /storage/0024/doc_00001931 [19:12:06]save last doc name /storage/0024/doc_00001931 to /storage/kkm_last_doc_name [19:12:06]save OK [19:12:06]Clear old archive folders... [19:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:06]tlvbuf is 00FE5DC0 [19:12:06]SAM_PROTO_ClearQueue [19:12:06]wFMCommunicate request_size=4 [19:12:06]MH_SAM_APDU [19:12:06]CAPDU: 80 09 00 00 [19:12:06]Write to MH i2c: E2 08 00 16 16 80 09 00 00 00 00 00 00 9E [19:12:06]Write i2c OK [19:12:06]MH_I2C_Read... [19:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:06]Read from MH i2c: E2 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 03 00 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [19:12:06]RAPDU: 90 00 [19:12:06]wFMCommunicate OK [19:12:06]SAM_PROTO_ClearQueue done [19:12:06]KKMCreateOFDPacket [19:12:06]OFDProtocolAddRootSTLVToBuf [19:12:06]FM_MakeSignedData [19:12:06]FM_MakeSignedData [19:12:06]SAM_PROTO_SignData [19:12:06]wFMCommunicate request_size=4 [19:12:06]MH_SAM_APDU [19:12:06]CAPDU: 80 0D 01 02 [19:12:06]Write to MH i2c: E2 08 00 17 16 80 0D 01 02 00 00 00 00 A6 [19:12:06]Write i2c OK [19:12:06]MH_I2C_Read... [19:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:06]Read from MH i2c: E2 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 03 00 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [19:12:06]RAPDU: 90 00 [19:12:06]wFMCommunicate OK [19:12:06]wFMCommunicate request_size=255 [19:12:06]MH_SAM_APDU [19:12:06]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 91 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 62 37 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 37 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 72 00 00 00 00 07 04 06 00 4C 37 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 D1 92 66 0E 04 04 00 18 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 8B 07 00 00 35 04 06 00 30 [19:12:06]Write to MH i2c: E2 02 01 18 16 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 91 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 62 37 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 37 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 72 00 00 00 00 07 04 06 00 4C 37 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 D1 92 66 0E 04 04 00 18 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 8B 07 00 00 35 04 06 00 30 00 00 73 [19:12:06]Write i2c OK [19:12:06]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 03 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [19:12:07]RAPDU: 90 00 [19:12:07]wFMCommunicate OK [19:12:07]wFMCommunicate request_size=10 [19:12:07]MH_SAM_APDU [19:12:07]CAPDU: 80 0D 02 02 05 F9 B1 52 D8 A8 [19:12:07]Write to MH i2c: E2 0D 00 19 16 80 0D 02 02 05 00 F9 B1 52 D8 A8 00 00 2F [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 03 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [19:12:07]RAPDU: 90 00 [19:12:07]wFMCommunicate OK [19:12:07]wFMCommunicate request_size=4 [19:12:07]MH_SAM_APDU [19:12:07]CAPDU: 80 0D 03 02 [19:12:07]Write to MH i2c: E2 08 00 1A 16 80 0D 03 02 00 00 00 00 AB [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 0B 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 0B 00 1A 16 00 5A 9F E3 C1 E4 28 E5 BC 90 00 F6 [19:12:07]RAPDU: 5A 9F E3 C1 E4 28 E5 BC 90 00 [19:12:07]wFMCommunicate OK [19:12:07]SAM_PROTO_SignData done [19:12:07]FM_MakeSignedData done [19:12:07]CreateOFDProtocolMessage [19:12:07]wFMCommunicate request_size=4 [19:12:07]MH_SAM_APDU [19:12:07]CAPDU: 80 11 00 00 [19:12:07]Write to MH i2c: E2 08 00 1B 16 80 11 00 00 00 00 00 00 AB [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 17 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 17 00 1B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 01 [19:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:12:07]wFMCommunicate OK [19:12:07]CreateOFDProtocolMessage done [19:12:07]OFDSenderStorePacket 1931 [19:12:07]StoreOFDPacket docnum=1931 [19:12:07]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 24 C7 07 01 3C C1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 91 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 62 37 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 37 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 72 00 00 00 00 07 04 06 00 4C 37 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 D1 92 66 0E 04 04 00 18 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 8B 07 00 00 35 04 06 00 30 F9 B1 52 D8 A8 5A 9F E3 C1 E4 28 E5 BC [19:12:07]CheckFolder [19:12:07]dirname=/storage/ofd_packets [19:12:07]CheckFolder done [19:12:07]ProducePacketName [19:12:07]name=ofd_packets/00001931 [19:12:07]NVStorageSaveData ofd_packets/00001931 [19:12:07]File name is /storage/ofd_packets/00001931 [19:12:07]Write 301 bytes [19:12:07]NVStorageSaveData done [19:12:07]OFDSenderStorePacket done [19:12:07]KKMCreateOFDPacket done [19:12:07]NVStorageSaveData kkm_last_timestamp [19:12:07]File name is /storage/kkm_last_timestamp [19:12:07]Write 4 bytes [19:12:07]NVStorageSaveData done [19:12:07]ExternCall_PrintAddStr [19:12:07]wPrintStart [19:12:07]Write to MH i2c: 01 00 00 1C 16 32 [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: 01 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: 01 07 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: 01 07 00 1C 16 00 00 00 00 00 FF 0F 47 [19:12:07]RasterBufferAndPrint [19:12:07]line Счет N : (1)1619124 [19:12:07]line ИНН: 02508201610067 [19:12:07]line Контрольно-Кассовый Чек [19:12:07]line ПРОДАЖА [19:12:07]line ТРК (МРК, ГНК) : 42 [19:12:07]line Товар: 2710124500 [19:12:07]line Аи-95-К-5 [19:12:07]line 37.140 * 74.40 [19:12:07]line = 2763.22 [19:12:07]line НДС 12% НСП 1% [19:12:07]line > о реализуемом товаре [19:12:07]line ОКРУГЛЕНИЕ: -0.22 [19:12:07]line ИТОГО: 2763.00 [19:12:07]line Внесено: 5000.00 [19:12:07]line СДАЧА: 2237.00 [19:12:07]line НСП 1% : 24.45 [19:12:07]line НДС 12% : 293.44 [19:12:07]line Наличными: 2763.00 [19:12:07]line Безнал.: 0.00 [19:12:07]line Место: АЗС № 76 "Партнер Нефть" [19:12:07]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:12:07]line СНО: Общий режим [19:12:07]line Чек 100 13.07.2024 19:12 [19:12:07]line Смена: 24 ФФД: 1.0 [19:12:07]line ЗНМ: 0300000124 [19:12:07]line РНМ: 0000000000177495 [19:12:07]line Версия ККМ: 001 [19:12:07]line ФМ: 0000000002098592 [19:12:07]line ФД: 1931 [19:12:07]line ФПД: 53848979986600 [19:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191208&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1931&fm=53848979986600&tin=02508201610067®Number=0000000000177495&sum=276300 [19:12:07]OFD Sender: Processing packet 1931 [packets to send 1, broken 0] [19:12:07]ProducePacketName [19:12:07]name=ofd_packets/00001931 [19:12:07]OFD Sender: To server: pG, [19:12:07]CommunicateWithHost lk.salyk.kg:30040 [19:12:07]ConnectInit lk.salyk.kg [19:12:07]written 0, free lines is 4095 [19:12:07]Connected sock=10 [19:12: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 0F 01 00 00 24 C7 07 01 3C C1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 91 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 62 37 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 37 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 72 00 00 00 00 07 04 06 00 4C 37 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 D1 92 66 0E 04 04 00 18 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 8B 07 00 00 35 04 06 00 30 F9 B1 52 D8 A8 5A 9F E3 C1 E4 28 E5 BC [19:12: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 87 76 47 00 4B 53 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 8B 07 00 00 F4 03 04 00 BD 7C 92 66 B6 04 01 00 00 1D 7D F8 80 AF 58 CE B1 [19:12:07]CommunicateWithHost err = 0 [19:12:07]CheckOFDResponse [19:12:07]1017 (14) - 77093643461234 [19:12:07]1041 (16) - 0000000002098592 [19:12:07]1040 (4) - 1931 [19:12:07]1012 (4) - 13.07.2024 13:10 [19:12:07]1206 (1) - 0 [19:12:07]OFD Sender: Remove packet 1931 [19:12:07]ProducePacketName [19:12:07]name=ofd_packets/00001931 [19:12:07]NVStorageDeleteData [19:12:08]Write to MH i2c: 01 00 00 47 16 5D [19:12:08]Write i2c OK [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: 01 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: 01 07 00 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: 01 07 00 47 16 00 00 00 00 00 FA 0C 6A [19:12:08]RasterBufferAndPrint [19:12:08]line [19:12:08]line [19:12:08]line [19:12:08]line [19:12:08]line [19:12:08]written 0, free lines is 3328 [19:12:08]MH_Cut [19:12:08]Write to MH i2c: D1 01 00 4E 16 01 36 [19:12:08]Write i2c OK [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: D1 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: D1 01 00 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: D1 01 00 4E 16 00 35 [19:12:08]Write to MH i2c: 01 00 00 4F 16 65 [19:12:08]Write i2c OK [19:12:08]MH_I2C_Read... [19:12:08]OFD Sender: No OFD packet to send [19:12:08]*** Cut start [19:12:08]*** Partial cut [19:12:08]*** CUTSNS_PIN = 1 [19:12:08]*** CUTSNS_PIN = 0 [19:12:09]*** Brake cut motor [19:12:09]Read from MH i2c: 01 [19:12:09]MH_I2C_Read... [19:12:09]*** Stop cut motor [19:12:09]*** Cut end [19:12:09]Read from MH i2c: 01 07 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: 01 07 00 4F 16 00 00 00 00 00 FF 0F 7A [19:12:09]process_action close_receipt done [19:12:09]requested_data is exist [19:12:09]produce_requested_data [19:12:09]requested_item fm.sn is exist - process it [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 11 00 00 [19:12:09]Write to MH i2c: E2 08 00 50 16 80 11 00 00 00 00 00 00 E0 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 17 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 17 00 50 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 36 [19:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:12:09]wFMCommunicate OK [19:12:09]requested_item fd.num is exist - process it [19:12:09]SAM_PROTO_GetFieldsCounters [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 13 00 00 [19:12:09]Write to MH i2c: E2 08 00 51 16 80 13 00 00 00 00 00 00 E3 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 62 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 62 00 51 16 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 8B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [19:12: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 8B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:09]wFMCommunicate OK [19:12:09]SAM_PROTO_GetFieldsCounters done [19:12:09]requested_item shift.num is exist - process it [19:12:09]requested_item shift.opened is exist - process it [19:12:09]req_shift_opened [19:12:09]FM_GetShiftState [19:12:09]SAM_PROTO_GetShiftState [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 13 01 00 [19:12:09]Write to MH i2c: E2 08 00 52 16 80 13 01 00 00 00 00 00 E5 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 52 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 70 [19:12:09]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:12:09]wFMCommunicate OK [19:12:09]SAM_PROTO_GetShiftState done [19:12:09]FM_GetShiftState done [19:12:09]req_shift_opened done [19:12:09]requested_item shift.open_date is exist - process it [19:12:09]req_shift_open_date [19:12:09]req_shift_open_date done [19:12:09]produce_requested_data done [19:12:09]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1931,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:12:09]process_action_free close_receipt [19:12:09]json_value_free [19:12:09]json_value_free done [19:12:09]process_json_proto returns [19:12:09]Send response to host [19:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1931,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:12:09]free response buf [19:12:09]execute_script done [19:12:09]execute_script returns [19:12:09]free content buf [19:12:09]Sock 8.Close socket [19:12:09]Sock 8.Thread stoped [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:20]accept exits with 9 [19:13:20]New connection [19:13:20]New thread 3066977636 created [19:13:20]Thread 3066834276 joined [19:13:20]Waiting for new connection... [19:13:20] Sock 9.Parse request [19:13:20]Sock 9.Check first char [19:13:20]Sock 9.First char is OK [19:13:20]request: POST /json_proto HTTP/1.0 [19:13:20]Method: POST [19:13:20]URL: /json_proto [19:13:20]Method is POST - this is cgi request [19:13:20]url: /json_proto [19:13:20]query_string will be loaded in cgi processing [19:13:20]execute_cgi json_proto POST (null) [19:13:20]execute_cgi path=json_proto method=POST [19:13:20]POST find Content-Length [19:13:20]Host: 172.17.35.133:8080 [19:13:20]Content-Length: 215 [19:13:20]Content-Type: application/json [19:13:20] [19:13:20]POST finish read [19:13:20]Found Content-Length = 215 [19:13:20]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" ] } } [19:13:20]execute_script... [19:13:20]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" ] } } [19:13:20]POST & json_proto [19:13:20]process_json_proto [19:13:20]json parsed OK: [19:13:20]protocol is kg_v1.0 [19:13:20]action value=get_value [19:13:20]process_action get_value [19:13:20]cmd_get_value [19:13:20]process_action get_value done [19:13:20]requested_data is exist [19:13:20]produce_requested_data [19:13:20]requested_item kkm.sn is exist - process it [19:13:20]requested_item kkm.ver is exist - process it [19:13:20]requested_item fm.sn is exist - process it [19:13:20]wFMCommunicate request_size=4 [19:13:20]MH_SAM_APDU [19:13:20]CAPDU: 80 11 00 00 [19:13:20]Write to MH i2c: E2 08 00 53 16 80 11 00 00 00 00 00 00 E3 [19:13:20]Write i2c OK [19:13:20]MH_I2C_Read... [19:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:20]Read from MH i2c: E2 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: E2 17 00 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: E2 17 00 53 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 39 [19:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:13:20]wFMCommunicate OK [19:13:20]requested_item fd.num is exist - process it [19:13:20]SAM_PROTO_GetFieldsCounters [19:13:20]wFMCommunicate request_size=4 [19:13:20]MH_SAM_APDU [19:13:20]CAPDU: 80 13 00 00 [19:13:20]Write to MH i2c: E2 08 00 54 16 80 13 00 00 00 00 00 00 E6 [19:13:20]Write i2c OK [19:13:20]MH_I2C_Read... [19:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:20]Read from MH i2c: E2 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: E2 62 00 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: E2 62 00 54 16 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 8B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:13:20]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 8B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:20]wFMCommunicate OK [19:13:20]SAM_PROTO_GetFieldsCounters done [19:13:20]requested_item shift.num is exist - process it [19:13:20]requested_item shift.opened is exist - process it [19:13:20]req_shift_opened [19:13:20]FM_GetShiftState [19:13:20]SAM_PROTO_GetShiftState [19:13:20]wFMCommunicate request_size=4 [19:13:20]MH_SAM_APDU [19:13:20]CAPDU: 80 13 01 00 [19:13:20]Write to MH i2c: E2 08 00 55 16 80 13 01 00 00 00 00 00 E8 [19:13:20]Write i2c OK [19:13:20]MH_I2C_Read... [19:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:20]Read from MH i2c: E2 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: E2 0E 00 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: E2 0E 00 55 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 73 [19:13:20]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:13:20]wFMCommunicate OK [19:13:20]SAM_PROTO_GetShiftState done [19:13:20]FM_GetShiftState done [19:13:20]req_shift_opened done [19:13:20]requested_item shift.open_date is exist - process it [19:13:20]req_shift_open_date [19:13:20]req_shift_open_date done [19:13:20]produce_requested_data done [19:13:20]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1931,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:13:20]process_action_free get_value [19:13:20]json_value_free [19:13:20]json_value_free done [19:13:20]process_json_proto returns [19:13:20]Send response to host [19:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1931,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:13:20]free response buf [19:13:20]execute_script done [19:13:20]execute_script returns [19:13:20]free content buf [19:13:20]Sock 9.Close socket [19:13:20]Sock 9.Thread stoped [19:13:20]accept exits with 8 [19:13:20]New connection [19:13:20]New thread 3066834276 created [19:13:20]Thread 3066977636 joined [19:13:20]Waiting for new connection... [19:13:20] Sock 8.Parse request [19:13:20]Sock 8.Check first char [19:13:20]Sock 8.First char is OK [19:13:20]request: POST /json_proto HTTP/1.0 [19:13:20]Method: POST [19:13:20]URL: /json_proto [19:13:20]Method is POST - this is cgi request [19:13:20]url: /json_proto [19:13:20]query_string will be loaded in cgi processing [19:13:20]execute_cgi json_proto POST (null) [19:13:20]execute_cgi path=json_proto method=POST [19:13:20]POST find Content-Length [19:13:20]Host: 172.17.35.133:8080 [19:13:20]Content-Length: 331 [19:13:20]Content-Type: application/json [19:13:20] [19:13:20]POST finish read [19:13:20]Found Content-Length = 331 [19:13:20]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" ] } } [19:13:20]execute_script... [19:13:21]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" ] } } [19:13:21]POST & json_proto [19:13:21]process_json_proto [19:13:21]json parsed OK: [19:13:21]protocol is kg_v1.0 [19:13:21]action value=get_value [19:13:21]process_action get_value [19:13:21]cmd_get_value [19:13:21]process_action get_value done [19:13:21]requested_data is exist [19:13:21]produce_requested_data [19:13:21]requested_item fm.sale.total is exist - process it [19:13:21]SAM_PROTO_GetFMData [19:13:21]wFMCommunicate request_size=4 [19:13:21]MH_SAM_APDU [19:13:21]CAPDU: 80 13 03 00 [19:13:21]Write to MH i2c: E2 08 00 56 16 80 13 03 00 00 00 00 00 EB [19:13:21]Write i2c OK [19:13:21]MH_I2C_Read... [19:13:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:13:21]Read from MH i2c: E2 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 FD 00 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 FD 00 56 16 00 BA 04 85 04 B6 04 6E 04 04 00 5B 07 00 00 69 04 9F 00 6F 04 04 00 59 07 00 00 B1 04 04 00 AA CB CF 04 70 04 04 00 2C 82 F8 03 72 04 03 00 7E 49 D7 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 72 D0 82 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 90 E5 0A 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 25 [19:13:21]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 5B 07 00 00 69 04 9F 00 6F 04 04 00 59 07 00 00 B1 04 04 00 AA CB CF 04 70 04 04 00 2C 82 F8 03 72 04 03 00 7E 49 D7 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 72 D0 82 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 90 E5 0A 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 [19:13:21]wFMCommunicate OK [19:13:21]wFMCommunicate request_size=4 [19:13:21]MH_SAM_APDU [19:13:21]CAPDU: 80 17 00 00 [19:13:21]Write to MH i2c: E2 08 00 57 16 80 17 00 00 00 00 00 00 ED [19:13:21]Write i2c OK [19:13:21]MH_I2C_Read... [19:13:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:13:21]Read from MH i2c: E2 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 FD 00 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 FD 00 57 16 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 EA [19:13:21]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 [19:13:21]wFMCommunicate OK [19:13:21]wFMCommunicate request_size=4 [19:13:21]MH_SAM_APDU [19:13:21]CAPDU: 80 17 00 00 [19:13:21]Write to MH i2c: E2 08 00 58 16 80 17 00 00 00 00 00 00 EE [19:13:21]Write i2c OK [19:13:21]MH_I2C_Read... [19:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:13:22]Read from MH i2c: E2 [19:13:22]MH_I2C_Read... [19:13:22]Read from MH i2c: E2 FD 00 [19:13:22]MH_I2C_Read... [19:13:22]Read from MH i2c: E2 FD 00 58 16 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 1A [19:13:22]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 [19:13:22]wFMCommunicate OK [19:13:22]wFMCommunicate request_size=4 [19:13:22]MH_SAM_APDU [19:13:22]CAPDU: 80 17 00 00 [19:13:22]Write to MH i2c: E2 08 00 59 16 80 17 00 00 00 00 00 00 EF [19:13:22]Write i2c OK [19:13:22]MH_I2C_Read... [19:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:13:22]Read from MH i2c: E2 [19:13:22]MH_I2C_Read... [19:13:22]Read from MH i2c: E2 FD 00 [19:13:22]MH_I2C_Read... [19:13:22]Read from MH i2c: E2 FD 00 59 16 00 00 EF 03 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 67 [19:13:22]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 [19:13:22]wFMCommunicate OK [19:13:22]wFMCommunicate request_size=4 [19:13:22]MH_SAM_APDU [19:13:22]CAPDU: 80 17 00 00 [19:13:22]Write to MH i2c: E2 08 00 5A 16 80 17 00 00 00 00 00 00 F0 [19:13:22]Write i2c OK [19:13:22]MH_I2C_Read... [19:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:13:22]Read from MH i2c: E2 [19:13:22]MH_I2C_Read... [19:13:22]Read from MH i2c: E2 D7 00 [19:13:22]MH_I2C_Read... [19:13:22]Read from MH i2c: E2 D7 00 5A 16 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 D3 [19:13:22]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 [19:13:22]wFMCommunicate OK [19:13:22]SAM_PROTO_GetFMData done [19:13:22]requested_item fm.sale_refund.total is exist - process it [19:13:22]requested_item fm.buy.total is exist - process it [19:13:22]requested_item shift.sale.total is exist - process it [19:13:22]SAM_PROTO_GetShiftData [19:13:22]wFMCommunicate request_size=4 [19:13:22]MH_SAM_APDU [19:13:22]CAPDU: 80 13 02 00 [19:13:22]Write to MH i2c: E2 08 00 5B 16 80 13 02 00 00 00 00 00 EF [19:13:22]Write i2c OK [19:13:22]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 [19:13:23]MH_I2C_Read... [19:13:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:13:23]Read from MH i2c: E2 FD 00 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 5B 16 00 AF 04 AA 04 AB 04 6E 04 04 00 64 00 00 00 69 04 9C 00 6F 04 04 00 64 00 00 00 B1 04 03 00 11 EB 7F 70 04 03 00 6C 8A 63 72 04 03 00 A5 60 1C 00 04 7B 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 0A 96 0D 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 CC 21 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [19:13:23]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 64 00 00 00 69 04 9C 00 6F 04 04 00 64 00 00 00 B1 04 03 00 11 EB 7F 70 04 03 00 6C 8A 63 72 04 03 00 A5 60 1C 00 04 7B 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 0A 96 0D 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 CC 21 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:13:23]wFMCommunicate OK [19:13:23]wFMCommunicate request_size=4 [19:13:23]MH_SAM_APDU [19:13:23]CAPDU: 80 17 00 00 [19:13:23]Write to MH i2c: E2 08 00 5C 16 80 17 00 00 00 00 00 00 F2 [19:13:23]Write i2c OK [19:13:23]MH_I2C_Read... [19:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:13:23]Read from MH i2c: E2 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 5C 16 00 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 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 90 00 0B [19:13:23]RAPDU: 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 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 90 00 [19:13:23]wFMCommunicate OK [19:13:23]wFMCommunicate request_size=4 [19:13:23]MH_SAM_APDU [19:13:23]CAPDU: 80 17 00 00 [19:13:23]Write to MH i2c: E2 08 00 5D 16 80 17 00 00 00 00 00 00 F3 [19:13:23]Write i2c OK [19:13:23]MH_I2C_Read... [19:13:23]OFD Sender: No OFD packet to send [19:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:13:23]Read from MH i2c: E2 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 5D 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 A7 [19:13:23]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:13:23]wFMCommunicate OK [19:13:23]wFMCommunicate request_size=4 [19:13:23]MH_SAM_APDU [19:13:23]CAPDU: 80 17 00 00 [19:13:23]Write to MH i2c: E2 08 00 5E 16 80 17 00 00 00 00 00 00 F4 [19:13:23]Write i2c OK [19:13:23]MH_I2C_Read... [19:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:13:23]Read from MH i2c: E2 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 FD 00 5E 16 00 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 90 00 72 [19:13:24]RAPDU: 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 90 00 [19:13:24]wFMCommunicate OK [19:13:24]wFMCommunicate request_size=4 [19:13:24]MH_SAM_APDU [19:13:24]CAPDU: 80 17 00 00 [19:13:24]Write to MH i2c: E2 08 00 5F 16 80 17 00 00 00 00 00 00 F5 [19:13:24]Write i2c OK [19:13:24]MH_I2C_Read... [19:13:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:13:24]Read from MH i2c: E2 [19:13:24]MH_I2C_Read... [19:13:24]Read from MH i2c: E2 CC 00 [19:13:24]MH_I2C_Read... [19:13:24]Read from MH i2c: E2 CC 00 5F 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [19:13:24]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:13:24]wFMCommunicate OK [19:13:24]SAM_PROTO_GetShiftData done [19:13:24]requested_item shift.sale.total_cash is exist - process it [19:13:24]requested_item shift.sale_refund.total is exist - process it [19:13:24]requested_item shift.sale_refund.total_cash is exist - process it [19:13:24]requested_item shift.buy.total is exist - process it [19:13:24]requested_item shift.buy.total_cash is exist - process it [19:13:24]produce_requested_data done [19:13:24]produce_requested_data return {"fm.sale.total":807269.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":83832.49,"shift.sale.total_cash":65235.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} [19:13:24]process_action_free get_value [19:13:24]json_value_free [19:13:24]json_value_free done [19:13:24]process_json_proto returns [19:13:24]Send response to host [19:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":807269.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":83832.49,"shift.sale.total_cash":65235.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}}} [19:13:24]free response buf [19:13:24]execute_script done [19:13:24]execute_script returns [19:13:24]free content buf [19:13:24]Sock 8.Close socket [19:13:24]Sock 8.Thread stoped [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:33]accept exits with 9 [19:14:33]New connection [19:14:33]New thread 3066977636 created [19:14:33]Thread 3066834276 joined [19:14:33]Waiting for new connection... [19:14:33] Sock 9.Parse request [19:14:33]Sock 9.Check first char [19:14:33]Sock 9.First char is OK [19:14:33]request: POST /json_proto HTTP/1.0 [19:14:33]Method: POST [19:14:33]URL: /json_proto [19:14:33]Method is POST - this is cgi request [19:14:33]url: /json_proto [19:14:33]query_string will be loaded in cgi processing [19:14:33]execute_cgi json_proto POST (null) [19:14:33]execute_cgi path=json_proto method=POST [19:14:33]POST find Content-Length [19:14:33]Host: 172.17.35.133:8080 [19:14:33]Content-Length: 747 [19:14:33]Content-Type: application/json [19:14:33] [19:14:33]POST finish read [19:14:33]Found Content-Length = 747 [19:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256350", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:33]execute_script... [19:14:33]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)256350", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:33]POST & json_proto [19:14:33]process_json_proto [19:14:33]json parsed OK: [19:14:33]protocol is kg_v1.0 [19:14:33]action value=close_receipt [19:14:33]process_action close_receipt [19:14:33]cmd_close_receipt [19:14:33]MH_GetDate [19:14:33]Write to MH i2c: F0 00 00 60 16 65 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: F0 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: F0 09 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: F0 09 00 60 16 00 1C D2 92 66 1B 28 2A 66 27 [19:14:33]GetLastDocTimeStamp 1720897928 [19:14:33]current date 1720898076 [19:14:33]FM_GetShiftState [19:14:33]SAM_PROTO_GetShiftState [19:14:33]wFMCommunicate request_size=4 [19:14:33]MH_SAM_APDU [19:14:33]CAPDU: 80 13 01 00 [19:14:33]Write to MH i2c: E2 08 00 61 16 80 13 01 00 00 00 00 00 F4 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:33]Read from MH i2c: E2 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 0E 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 0E 00 61 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 7F [19:14:33]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:14:33]wFMCommunicate OK [19:14:33]SAM_PROTO_GetShiftState done [19:14:33]FM_GetShiftState done [19:14:33]opened in 1720829379 [19:14:33]opened+sec_in_day 1720915779 [19:14:33]quantity*price = 59000 [19:14:33]sum+1 = 59001 [19:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 101 13.07.2024 19:14 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1932 ФПД: 5440407644410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191436&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1932&fm=5440407644410&tin=02508201610067®Number=0000000000177495&sum=59000 0 [19:14:34]StoreToDocumentArchive [19:14:34]shift 24 fd 1932 [19:14:34]save to /storage/0024/doc_00001932 [19:14:34]save last doc name /storage/0024/doc_00001932 to /storage/kkm_last_doc_name [19:14:34]save OK [19:14:34]Clear old archive folders... [19:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=307 [19:14:34]tlvbuf is B6DAE770 [19:14:34]SAM_PROTO_ClearQueue [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 09 00 00 [19:14:34]Write to MH i2c: E2 08 00 6E 16 80 09 00 00 00 00 00 00 F6 [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 03 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 03 00 6E 16 00 90 00 F8 [19:14:34]RAPDU: 90 00 [19:14:34]wFMCommunicate OK [19:14:34]SAM_PROTO_ClearQueue done [19:14:34]KKMCreateOFDPacket [19:14:34]OFDProtocolAddRootSTLVToBuf [19:14:34]FM_MakeSignedData [19:14:34]FM_MakeSignedData [19:14:34]SAM_PROTO_SignData [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 0D 01 02 [19:14:34]Write to MH i2c: E2 08 00 6F 16 80 0D 01 02 00 00 00 00 FE [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 03 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [19:14:34]RAPDU: 90 00 [19:14:34]wFMCommunicate OK [19:14:34]wFMCommunicate request_size=255 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1C D2 92 66 0E 04 04 00 18 00 00 00 B9 04 [19:14:34]Write to MH i2c: E2 02 01 70 16 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1C D2 92 66 0E 04 04 00 18 00 00 00 B9 04 00 00 E8 [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:35]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 03 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [19:14:35]RAPDU: 90 00 [19:14:35]wFMCommunicate OK [19:14:35]wFMCommunicate request_size=66 [19:14:35]MH_SAM_APDU [19:14:35]CAPDU: 80 0D 02 02 3D 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 8C 07 00 00 35 04 06 00 04 F2 B1 90 A8 FA [19:14:35]Write to MH i2c: E2 45 00 71 16 80 0D 02 02 3D 00 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 8C 07 00 00 35 04 06 00 04 F2 B1 90 A8 FA 00 00 CA [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:35]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 03 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [19:14:35]RAPDU: 90 00 [19:14:35]wFMCommunicate OK [19:14:35]wFMCommunicate request_size=4 [19:14:35]MH_SAM_APDU [19:14:35]CAPDU: 80 0D 03 02 [19:14:35]Write to MH i2c: E2 08 00 72 16 80 0D 03 02 00 00 00 00 03 [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:35]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 0B 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 0B 00 72 16 00 DB BF 29 BA 0F 18 20 2C 90 00 F4 [19:14:35]RAPDU: DB BF 29 BA 0F 18 20 2C 90 00 [19:14:35]wFMCommunicate OK [19:14:35]SAM_PROTO_SignData done [19:14:35]FM_MakeSignedData done [19:14:35]CreateOFDProtocolMessage [19:14:35]wFMCommunicate request_size=4 [19:14:35]MH_SAM_APDU [19:14:35]CAPDU: 80 11 00 00 [19:14:35]Write to MH i2c: E2 08 00 73 16 80 11 00 00 00 00 00 00 03 [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:35]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 17 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 17 00 73 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 59 [19:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:14:35]wFMCommunicate OK [19:14:35]CreateOFDProtocolMessage done [19:14:35]OFDSenderStorePacket 1932 [19:14:35]StoreOFDPacket docnum=1932 [19:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 47 01 00 00 2C E4 3F 01 3C 8B 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1C D2 92 66 0E 04 04 00 18 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 8C 07 00 00 35 04 06 00 04 F2 B1 90 A8 FA DB BF 29 BA 0F 18 20 2C [19:14:35]CheckFolder [19:14:35]dirname=/storage/ofd_packets [19:14:35]CheckFolder done [19:14:35]ProducePacketName [19:14:35]name=ofd_packets/00001932 [19:14:35]NVStorageSaveData ofd_packets/00001932 [19:14:35]File name is /storage/ofd_packets/00001932 [19:14:35]Write 357 bytes [19:14:35]NVStorageSaveData done [19:14:35]OFDSenderStorePacket done [19:14:35]KKMCreateOFDPacket done [19:14:35]NVStorageSaveData kkm_last_timestamp [19:14:35]File name is /storage/kkm_last_timestamp [19:14:35]Write 4 bytes [19:14:35]NVStorageSaveData done [19:14:35]ExternCall_PrintAddStr [19:14:35]wPrintStart [19:14:35]Write to MH i2c: 01 00 00 74 16 8A [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: 01 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: 01 07 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: 01 07 00 74 16 00 00 00 00 00 FF 0F 9F [19:14:35]RasterBufferAndPrint [19:14:35]line Счет N : (3)256350 [19:14:35]line ИНН: 02508201610067 [19:14:35]line Контрольно-Кассовый Чек [19:14:35]line ПРОДАЖА [19:14:35]line Товар: 2000029770012 [19:14:35]line Очки солнцезащитные в ассортименте [19:14:35]line 1.000 * 590.00 [19:14:35]line = 590.00 [19:14:35]line НДС 12% НСП 1% [19:14:35]line > о реализуемом товаре [19:14:35]line ИТОГО: 590.00 [19:14:35]line НСП 1% : 5.22 [19:14:35]line НДС 12% : 62.65 [19:14:35]line Наличными: 590.00 [19:14:35]line Безнал.: 0.00 [19:14:35]line Место: АЗС № 76 "Партнер Нефть" [19:14:35]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:14:35]line СНО: Общий режим [19:14:35]line Чек 101 13.07.2024 19:14 [19:14:35]line Смена: 24 ФФД: 1.0 [19:14:35]line ЗНМ: 0300000124 [19:14:35]line РНМ: 0000000000177495 [19:14:35]line Версия ККМ: 001 [19:14:35]line ФМ: 0000000002098592 [19:14:35]line ФД: 1932 [19:14:35]line ФПД: 5440407644410 [19:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191436&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1932&fm=5440407644410&tin=02508201610067®Number=0000000000177495&sum=59000 [19:14:35]line 0 [19:14:35]OFD Sender: Processing packet 1932 [packets to send 1, broken 0] [19:14:35]ProducePacketName [19:14:35]name=ofd_packets/00001932 [19:14:35]OFD Sender: To server: pG, [19:14:35]CommunicateWithHost lk.salyk.kg:30040 [19:14:35]ConnectInit lk.salyk.kg [19:14:35]written 0, free lines is 4095 [19:14:35]Connected sock=10 [19:14: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 47 01 00 00 2C E4 3F 01 3C 8B 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1C D2 92 66 0E 04 04 00 18 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 8C 07 00 00 35 04 06 00 04 F2 B1 90 A8 FA DB BF 29 BA 0F 18 20 2C [19:14: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 07 1B 47 00 97 14 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 8C 07 00 00 F4 03 04 00 52 7D 92 66 B6 04 01 00 00 3A 7A 11 BD 3C 75 FC 06 [19:14:36]CommunicateWithHost err = 0 [19:14:36]CheckOFDResponse [19:14:36]1017 (14) - 77093643461234 [19:14:36]1041 (16) - 0000000002098592 [19:14:36]1040 (4) - 1932 [19:14:36]1012 (4) - 13.07.2024 13:12 [19:14:36]1206 (1) - 0 [19:14:36]OFD Sender: Remove packet 1932 [19:14:36]ProducePacketName [19:14:36]name=ofd_packets/00001932 [19:14:36]NVStorageDeleteData [19:14:36]Write to MH i2c: 01 00 00 9D 16 B3 [19:14:36]Write i2c OK [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: 01 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: 01 07 00 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: 01 07 00 9D 16 00 00 00 00 00 FD 0C C3 [19:14:36]RasterBufferAndPrint [19:14:36]line [19:14:36]line [19:14:36]line [19:14:36]line [19:14:36]line [19:14:36]written 0, free lines is 3331 [19:14:36]MH_Cut [19:14:36]Write to MH i2c: D1 01 00 A4 16 01 8C [19:14:36]Write i2c OK [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: D1 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: D1 01 00 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: D1 01 00 A4 16 00 8B [19:14:36]Write to MH i2c: 01 00 00 A5 16 BB [19:14:36]Write i2c OK [19:14:36]MH_I2C_Read... [19:14:36]OFD Sender: No OFD packet to send [19:14:36]*** Cut start [19:14:36]*** Partial cut [19:14:36]*** CUTSNS_PIN = 1 [19:14:36]*** CUTSNS_PIN = 0 [19:14:37]*** Brake cut motor [19:14:37]Read from MH i2c: 01 [19:14:37]MH_I2C_Read... [19:14:37]*** Stop cut motor [19:14:37]*** Cut end [19:14:37]Read from MH i2c: 01 07 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: 01 07 00 A5 16 00 00 00 00 00 FF 0F D0 [19:14:37]process_action close_receipt done [19:14:37]requested_data is exist [19:14:37]produce_requested_data [19:14:37]requested_item fm.sn is exist - process it [19:14:37]wFMCommunicate request_size=4 [19:14:37]MH_SAM_APDU [19:14:37]CAPDU: 80 11 00 00 [19:14:37]Write to MH i2c: E2 08 00 A6 16 80 11 00 00 00 00 00 00 36 [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:37]Read from MH i2c: E2 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 17 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 17 00 A6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 8C [19:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:14:37]wFMCommunicate OK [19:14:37]requested_item fd.num is exist - process it [19:14:37]SAM_PROTO_GetFieldsCounters [19:14:37]wFMCommunicate request_size=4 [19:14:37]MH_SAM_APDU [19:14:37]CAPDU: 80 13 00 00 [19:14:37]Write to MH i2c: E2 08 00 A7 16 80 13 00 00 00 00 00 00 39 [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:37]Read from MH i2c: E2 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 62 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 62 00 A7 16 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 8C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:14: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 8C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:37]wFMCommunicate OK [19:14:37]SAM_PROTO_GetFieldsCounters done [19:14:37]requested_item shift.num is exist - process it [19:14:37]requested_item shift.opened is exist - process it [19:14:37]req_shift_opened [19:14:37]FM_GetShiftState [19:14:37]SAM_PROTO_GetShiftState [19:14:37]wFMCommunicate request_size=4 [19:14:37]MH_SAM_APDU [19:14:37]CAPDU: 80 13 01 00 [19:14:37]Write to MH i2c: E2 08 00 A8 16 80 13 01 00 00 00 00 00 3B [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:37]Read from MH i2c: E2 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 0E 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 0E 00 A8 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C6 [19:14:37]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:14:37]wFMCommunicate OK [19:14:37]SAM_PROTO_GetShiftState done [19:14:37]FM_GetShiftState done [19:14:37]req_shift_opened done [19:14:37]requested_item shift.open_date is exist - process it [19:14:37]req_shift_open_date [19:14:37]req_shift_open_date done [19:14:37]produce_requested_data done [19:14:37]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1932,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:14:37]process_action_free close_receipt [19:14:37]json_value_free [19:14:37]json_value_free done [19:14:37]process_json_proto returns [19:14:37]Send response to host [19:14:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1932,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:14:37]free response buf [19:14:37]execute_script done [19:14:37]execute_script returns [19:14:37]free content buf [19:14:37]Sock 9.Close socket [19:14:37]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:39]accept exits with 8 [19:15:39]New connection [19:15:39]New thread 3066834276 created [19:15:39]Thread 3066977636 joined [19:15:39]Waiting for new connection... [19:15:39] Sock 8.Parse request [19:15:39]Sock 8.Check first char [19:15:39]Sock 8.First char is OK [19:15:39]request: POST /json_proto HTTP/1.0 [19:15:39]Method: POST [19:15:39]URL: /json_proto [19:15:39]Method is POST - this is cgi request [19:15:39]url: /json_proto [19:15:39]query_string will be loaded in cgi processing [19:15:39]execute_cgi json_proto POST (null) [19:15:39]execute_cgi path=json_proto method=POST [19:15:39]POST find Content-Length [19:15:39]Host: 172.17.35.133:8080 [19:15:39]Content-Length: 215 [19:15:39]Content-Type: application/json [19:15:39] [19:15:39]POST finish read [19:15:39]Found Content-Length = 215 [19:15:39]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" ] } } [19:15:39]execute_script... [19:15:39]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" ] } } [19:15:39]POST & json_proto [19:15:39]process_json_proto [19:15:39]json parsed OK: [19:15:39]protocol is kg_v1.0 [19:15:39]action value=get_value [19:15:39]process_action get_value [19:15:39]cmd_get_value [19:15:39]process_action get_value done [19:15:39]requested_data is exist [19:15:39]produce_requested_data [19:15:39]requested_item kkm.sn is exist - process it [19:15:39]requested_item kkm.ver is exist - process it [19:15:39]requested_item fm.sn is exist - process it [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 11 00 00 [19:15:39]Write to MH i2c: E2 08 00 A9 16 80 11 00 00 00 00 00 00 39 [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 17 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 17 00 A9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 8F [19:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:15:39]wFMCommunicate OK [19:15:39]requested_item fd.num is exist - process it [19:15:39]SAM_PROTO_GetFieldsCounters [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 00 00 [19:15:39]Write to MH i2c: E2 08 00 AA 16 80 13 00 00 00 00 00 00 3C [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 62 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 62 00 AA 16 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 8C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [19:15: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 8C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetFieldsCounters done [19:15:39]requested_item shift.num is exist - process it [19:15:39]requested_item shift.opened is exist - process it [19:15:39]req_shift_opened [19:15:39]FM_GetShiftState [19:15:39]SAM_PROTO_GetShiftState [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 01 00 [19:15:39]Write to MH i2c: E2 08 00 AB 16 80 13 01 00 00 00 00 00 3E [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 AB 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C9 [19:15:39]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetShiftState done [19:15:39]FM_GetShiftState done [19:15:39]req_shift_opened done [19:15:39]requested_item shift.open_date is exist - process it [19:15:39]req_shift_open_date [19:15:39]req_shift_open_date done [19:15:39]produce_requested_data done [19:15:39]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1932,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:15:39]process_action_free get_value [19:15:39]json_value_free [19:15:39]json_value_free done [19:15:39]process_json_proto returns [19:15:39]Send response to host [19:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1932,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:15:39]free response buf [19:15:39]execute_script done [19:15:39]execute_script returns [19:15:39]free content buf [19:15:39]Sock 8.Close socket [19:15:39]Sock 8.Thread stoped [19:15:39]accept exits with 9 [19:15:39]New connection [19:15:39]New thread 3066977636 created [19:15:39]Thread 3066834276 joined [19:15:39]Waiting for new connection... [19:15:39] Sock 9.Parse request [19:15:39]Sock 9.Check first char [19:15:39]Sock 9.First char is OK [19:15:39]request: POST /json_proto HTTP/1.0 [19:15:39]Method: POST [19:15:39]URL: /json_proto [19:15:39]Method is POST - this is cgi request [19:15:39]url: /json_proto [19:15:39]query_string will be loaded in cgi processing [19:15:39]execute_cgi json_proto POST (null) [19:15:39]execute_cgi path=json_proto method=POST [19:15:39]POST find Content-Length [19:15:39]Host: 172.17.35.133:8080 [19:15:39]Content-Length: 331 [19:15:39]Content-Type: application/json [19:15:39] [19:15:39]POST finish read [19:15:39]Found Content-Length = 331 [19:15:39]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" ] } } [19:15:39]execute_script... [19:15:39]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" ] } } [19:15:39]POST & json_proto [19:15:39]process_json_proto [19:15:39]json parsed OK: [19:15:39]protocol is kg_v1.0 [19:15:39]action value=get_value [19:15:39]process_action get_value [19:15:39]cmd_get_value [19:15:39]process_action get_value done [19:15:39]requested_data is exist [19:15:39]produce_requested_data [19:15:39]requested_item fm.sale.total is exist - process it [19:15:39]SAM_PROTO_GetFMData [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 03 00 [19:15:39]Write to MH i2c: E2 08 00 AC 16 80 13 03 00 00 00 00 00 41 [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 AC 16 00 BA 04 85 04 B6 04 6E 04 04 00 5C 07 00 00 69 04 9F 00 6F 04 04 00 5A 07 00 00 B1 04 04 00 22 B2 D0 04 70 04 04 00 A4 68 F9 03 72 04 03 00 7E 49 D7 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 EB E8 82 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 9A E7 0A 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 [19:15:40]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 5C 07 00 00 69 04 9F 00 6F 04 04 00 5A 07 00 00 B1 04 04 00 22 B2 D0 04 70 04 04 00 A4 68 F9 03 72 04 03 00 7E 49 D7 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 EB E8 82 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 9A E7 0A 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 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 17 00 00 [19:15:40]Write to MH i2c: E2 08 00 AD 16 80 17 00 00 00 00 00 00 43 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 AD 16 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 40 [19:15:40]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 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 17 00 00 [19:15:40]Write to MH i2c: E2 08 00 AE 16 80 17 00 00 00 00 00 00 44 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 AE 16 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 70 [19:15:40]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 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 17 00 00 [19:15:40]Write to MH i2c: E2 08 00 AF 16 80 17 00 00 00 00 00 00 45 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 FD 00 AF 16 00 00 EF 03 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 BD [19:15:40]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 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 17 00 00 [19:15:40]Write to MH i2c: E2 08 00 B0 16 80 17 00 00 00 00 00 00 46 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:15:41]Read from MH i2c: E2 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 D7 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 D7 00 B0 16 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 29 [19:15:41]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 [19:15:41]wFMCommunicate OK [19:15:41]SAM_PROTO_GetFMData done [19:15:41]requested_item fm.sale_refund.total is exist - process it [19:15:41]requested_item fm.buy.total is exist - process it [19:15:41]requested_item shift.sale.total is exist - process it [19:15:41]SAM_PROTO_GetShiftData [19:15:41]wFMCommunicate request_size=4 [19:15:41]MH_SAM_APDU [19:15:41]CAPDU: 80 13 02 00 [19:15:41]Write to MH i2c: E2 08 00 B1 16 80 13 02 00 00 00 00 00 45 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:15:41]Read from MH i2c: E2 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 FD 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 FD 00 B1 16 00 AF 04 AA 04 AB 04 6E 04 04 00 65 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 89 D1 80 70 04 03 00 E4 70 64 72 04 03 00 A5 60 1C 00 04 7B 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 83 AE 0D 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 D6 23 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [19:15:41]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 65 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 89 D1 80 70 04 03 00 E4 70 64 72 04 03 00 A5 60 1C 00 04 7B 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 83 AE 0D 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 D6 23 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:15:41]wFMCommunicate OK [19:15:41]wFMCommunicate request_size=4 [19:15:41]MH_SAM_APDU [19:15:41]CAPDU: 80 17 00 00 [19:15:41]Write to MH i2c: E2 08 00 B2 16 80 17 00 00 00 00 00 00 48 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]OFD Sender: No OFD packet to send [19:15:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:41]Read from MH i2c: E2 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 FD 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 FD 00 B2 16 00 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 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 90 00 61 [19:15:41]RAPDU: 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 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 90 00 [19:15:41]wFMCommunicate OK [19:15:41]wFMCommunicate request_size=4 [19:15:41]MH_SAM_APDU [19:15:41]CAPDU: 80 17 00 00 [19:15:41]Write to MH i2c: E2 08 00 B3 16 80 17 00 00 00 00 00 00 49 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 FD 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 FD 00 B3 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 FD [19:15:42]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:15:42]wFMCommunicate OK [19:15:42]wFMCommunicate request_size=4 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 17 00 00 [19:15:42]Write to MH i2c: E2 08 00 B4 16 80 17 00 00 00 00 00 00 4A [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 FD 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 FD 00 B4 16 00 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 90 00 C8 [19:15:42]RAPDU: 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 90 00 [19:15:42]wFMCommunicate OK [19:15:42]wFMCommunicate request_size=4 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 17 00 00 [19:15:42]Write to MH i2c: E2 08 00 B5 16 80 17 00 00 00 00 00 00 4B [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 CC 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 CC 00 B5 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [19:15:42]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:15:42]wFMCommunicate OK [19:15:42]SAM_PROTO_GetShiftData done [19:15:42]requested_item shift.sale.total_cash is exist - process it [19:15:42]requested_item shift.sale_refund.total is exist - process it [19:15:42]requested_item shift.sale_refund.total_cash is exist - process it [19:15:42]requested_item shift.buy.total is exist - process it [19:15:42]requested_item shift.buy.total_cash is exist - process it [19:15:42]produce_requested_data done [19:15:42]produce_requested_data return {"fm.sale.total":807859.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":84422.49,"shift.sale.total_cash":65825.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} [19:15:42]process_action_free get_value [19:15:42]json_value_free [19:15:42]json_value_free done [19:15:42]process_json_proto returns [19:15:42]Send response to host [19:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":807859.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":84422.49,"shift.sale.total_cash":65825.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}}} [19:15:42]free response buf [19:15:42]execute_script done [19:15:42]execute_script returns [19:15:42]free content buf [19:15:42]Sock 9.Close socket [19:15:42]Sock 9.Thread stoped [19:15:46]OFD Sender: No OFD packet to send [19:15:49]accept exits with 8 [19:15:49]New connection [19:15:49]New thread 3066834276 created [19:15:49]Thread 3066977636 joined [19:15:49]Waiting for new connection... [19:15:49] Sock 8.Parse request [19:15:49]Sock 8.Check first char [19:15:49]Sock 8.First char is OK [19:15:49]request: POST /json_proto HTTP/1.0 [19:15:49]Method: POST [19:15:49]URL: /json_proto [19:15:49]Method is POST - this is cgi request [19:15:49]url: /json_proto [19:15:49]query_string will be loaded in cgi processing [19:15:49]execute_cgi json_proto POST (null) [19:15:49]execute_cgi path=json_proto method=POST [19:15:49]POST find Content-Length [19:15:49]Host: 172.17.35.133:8080 [19:15:49]Content-Length: 683 [19:15:49]Content-Type: application/json [19:15:49] [19:15:49]POST finish read [19:15:49]Found Content-Length = 683 [19:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619125", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:49]execute_script... [19:15:49]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)1619125", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:49]POST & json_proto [19:15:49]process_json_proto [19:15:49]json parsed OK: [19:15:49]protocol is kg_v1.0 [19:15:49]action value=close_receipt [19:15:49]process_action close_receipt [19:15:49]cmd_close_receipt [19:15:49]MH_GetDate [19:15:49]Write to MH i2c: F0 00 00 B6 16 BB [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: F0 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: F0 09 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: F0 09 00 B6 16 00 68 D2 92 66 1B 28 2A 66 C9 [19:15:49]GetLastDocTimeStamp 1720898076 [19:15:49]current date 1720898152 [19:15:49]FM_GetShiftState [19:15:49]SAM_PROTO_GetShiftState [19:15:49]wFMCommunicate request_size=4 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 13 01 00 [19:15:49]Write to MH i2c: E2 08 00 B7 16 80 13 01 00 00 00 00 00 4A [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 0E 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 0E 00 B7 16 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D5 [19:15:49]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:15:49]wFMCommunicate OK [19:15:49]SAM_PROTO_GetShiftState done [19:15:49]FM_GetShiftState done [19:15:49]opened in 1720829379 [19:15:49]opened+sec_in_day 1720915779 [19:15:49]quantity*price = 100046 [19:15:49]sum+1 = 100048 [19:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 102 13.07.2024 19:15 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1933 ФПД: 102821614347091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191552&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1933&fm=102821614347091&tin=02508201610067®Number=0000000000177495&sum=100000 [19:15:51]StoreToDocumentArchive [19:15:51]shift 24 fd 1933 [19:15:51]save to /storage/0024/doc_00001933 [19:15:51]save last doc name /storage/0024/doc_00001933 to /storage/kkm_last_doc_name [19:15:51]save OK [19:15:51]Clear old archive folders... [19:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:51]tlvbuf is 00FD3360 [19:15:51]SAM_PROTO_ClearQueue [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 09 00 00 [19:15:51]Write to MH i2c: E2 08 00 C4 16 80 09 00 00 00 00 00 00 4C [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 C4 16 00 90 00 4E [19:15:51]RAPDU: 90 00 [19:15:51]wFMCommunicate OK [19:15:51]SAM_PROTO_ClearQueue done [19:15:51]KKMCreateOFDPacket [19:15:51]OFDProtocolAddRootSTLVToBuf [19:15:51]FM_MakeSignedData [19:15:51]FM_MakeSignedData [19:15:51]SAM_PROTO_SignData [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 0D 01 02 [19:15:51]Write to MH i2c: E2 08 00 C5 16 80 0D 01 02 00 00 00 00 54 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 C5 16 00 90 00 4F [19:15:51]RAPDU: 90 00 [19:15:51]wFMCommunicate OK [19:15:51]wFMCommunicate request_size=255 [19:15:51]MH_SAM_APDU [19:15:51]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 68 D2 92 66 0E 04 04 00 18 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 8D 07 00 00 35 04 06 00 5D [19:15:51]Write to MH i2c: E2 02 01 C6 16 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 68 D2 92 66 0E 04 04 00 18 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 8D 07 00 00 35 04 06 00 5D 00 00 FA [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 C6 16 00 90 00 50 [19:15:51]RAPDU: 90 00 [19:15:51]wFMCommunicate OK [19:15:51]wFMCommunicate request_size=10 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 0D 02 02 05 84 05 CC 63 53 [19:15:51]Write to MH i2c: E2 0D 00 C7 16 80 0D 02 02 05 00 84 05 CC 63 53 00 00 6C [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 C7 16 00 90 00 51 [19:15:51]RAPDU: 90 00 [19:15:51]wFMCommunicate OK [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 0D 03 02 [19:15:51]Write to MH i2c: E2 08 00 C8 16 80 0D 03 02 00 00 00 00 59 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 0B 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 0B 00 C8 16 00 3B E1 D3 D2 5B 9F B7 B2 90 00 7E [19:15:51]RAPDU: 3B E1 D3 D2 5B 9F B7 B2 90 00 [19:15:51]wFMCommunicate OK [19:15:51]SAM_PROTO_SignData done [19:15:51]FM_MakeSignedData done [19:15:51]CreateOFDProtocolMessage [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 11 00 00 [19:15:51]Write to MH i2c: E2 08 00 C9 16 80 11 00 00 00 00 00 00 59 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 17 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 17 00 C9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AF [19:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:15:51]wFMCommunicate OK [19:15:51]CreateOFDProtocolMessage done [19:15:51]OFDSenderStorePacket 1933 [19:15:51]StoreOFDPacket docnum=1933 [19:15:51]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 D9 C9 07 01 A1 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 68 D2 92 66 0E 04 04 00 18 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 8D 07 00 00 35 04 06 00 5D 84 05 CC 63 53 3B E1 D3 D2 5B 9F B7 B2 [19:15:51]CheckFolder [19:15:51]dirname=/storage/ofd_packets [19:15:51]CheckFolder done [19:15:51]ProducePacketName [19:15:51]name=ofd_packets/00001933 [19:15:51]NVStorageSaveData ofd_packets/00001933 [19:15:51]File name is /storage/ofd_packets/00001933 [19:15:51]Write 301 bytes [19:15:51]NVStorageSaveData done [19:15:51]OFDSenderStorePacket done [19:15:51]KKMCreateOFDPacket done [19:15:51]NVStorageSaveData kkm_last_timestamp [19:15:51]File name is /storage/kkm_last_timestamp [19:15:51]OFD Sender: Processing packet 1933 [packets to send 1, broken 0] [19:15:51]ProducePacketName [19:15:51]name=ofd_packets/00001933 [19:15:51]OFD Sender: To server: pG, [19:15:51]CommunicateWithHost lk.salyk.kg:30040 [19:15:51]ConnectInit lk.salyk.kg [19:15:51]Write 4 bytes [19:15:51]NVStorageSaveData done [19:15:51]ExternCall_PrintAddStr [19:15:51]wPrintStart [19:15:51]Write to MH i2c: 01 00 00 CA 16 E0 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: 01 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: 01 07 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: 01 07 00 CA 16 00 00 00 00 00 FF 0F F5 [19:15:51]RasterBufferAndPrint [19:15:51]line Счет N : (1)1619125 [19:15:51]line ИНН: 02508201610067 [19:15:51]line Контрольно-Кассовый Чек [19:15:51]line ПРОДАЖА [19:15:51]line ТРК (МРК, ГНК) : 63 [19:15:51]line Товар: 2710124130 [19:15:51]line Аи-92-К-5 [19:15:51]line 15.090 * 66.30 [19:15:51]line = 1000.47 [19:15:51]line НДС 12% НСП 1% [19:15:51]line > о реализуемом товаре [19:15:51]line ОКРУГЛЕНИЕ: -0.47 [19:15:51]line ИТОГО: 1000.00 [19:15:51]line Внесено: 1000.00 [19:15:51]line СДАЧА: 0.00 [19:15:51]line НСП 1% : 8.85 [19:15:51]line НДС 12% : 106.24 [19:15:51]line Наличными: 1000.00 [19:15:51]line Безнал.: 0.00 [19:15:51]line Место: АЗС № 76 "Партнер Нефть" [19:15:51]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:15:51]line СНО: Общий режим [19:15:51]line Чек 102 13.07.2024 19:15 [19:15:51]line Смена: 24 ФФД: 1.0 [19:15:51]line ЗНМ: 0300000124 [19:15:51]line РНМ: 0000000000177495 [19:15:51]line Версия ККМ: 001 [19:15:51]line ФМ: 0000000002098592 [19:15:51]line ФД: 1933 [19:15:51]line ФПД: 102821614347091 [19:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191552&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1933&fm=102821614347091&tin=02508201610067®Number=0000000000177495&sum=100000 [19:15:51]written 0, free lines is 4095 [19:15:51]Connected sock=11 [19:15: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 0F 01 00 00 D9 C9 07 01 A1 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 68 D2 92 66 0E 04 04 00 18 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 8D 07 00 00 35 04 06 00 5D 84 05 CC 63 53 3B E1 D3 D2 5B 9F B7 B2 [19:15: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 1C 00 47 00 3B 26 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 8D 07 00 00 F4 03 04 00 9D 7D 92 66 B6 04 01 00 00 06 5A 61 EF BF 53 FA F7 [19:15:51]CommunicateWithHost err = 0 [19:15:51]CheckOFDResponse [19:15:51]1017 (14) - 77093643461234 [19:15:51]1041 (16) - 0000000002098592 [19:15:51]1040 (4) - 1933 [19:15:51]1012 (4) - 13.07.2024 13:14 [19:15:51]1206 (1) - 0 [19:15:51]OFD Sender: Remove packet 1933 [19:15:51]ProducePacketName [19:15:51]name=ofd_packets/00001933 [19:15:51]NVStorageDeleteData [19:15:52]Write to MH i2c: 01 00 00 F5 16 0B [19:15:52]Write i2c OK [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: 01 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: 01 07 00 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: 01 07 00 F5 16 00 00 00 00 00 F8 0C 16 [19:15:52]RasterBufferAndPrint [19:15:52]line [19:15:52]line [19:15:52]line [19:15:52]line [19:15:52]line [19:15:52]written 0, free lines is 3327 [19:15:52]MH_Cut [19:15:52]Write to MH i2c: D1 01 00 FC 16 01 E4 [19:15:52]Write i2c OK [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: D1 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: D1 01 00 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: D1 01 00 FC 16 00 E3 [19:15:52]Write to MH i2c: 01 00 00 FD 16 13 [19:15:52]Write i2c OK [19:15:52]MH_I2C_Read... [19:15:52]OFD Sender: No OFD packet to send [19:15:52]*** Cut start [19:15:52]*** Partial cut [19:15:52]*** CUTSNS_PIN = 1 [19:15:52]*** CUTSNS_PIN = 0 [19:15:53]*** Brake cut motor [19:15:53]Read from MH i2c: 01 [19:15:53]MH_I2C_Read... [19:15:53]*** Stop cut motor [19:15:53]*** Cut end [19:15:53]Read from MH i2c: 01 07 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: 01 07 00 FD 16 00 00 00 00 00 FF 0F 28 [19:15:53]process_action close_receipt done [19:15:53]requested_data is exist [19:15:53]produce_requested_data [19:15:53]requested_item fm.sn is exist - process it [19:15:53]wFMCommunicate request_size=4 [19:15:53]MH_SAM_APDU [19:15:53]CAPDU: 80 11 00 00 [19:15:53]Write to MH i2c: E2 08 00 FE 16 80 11 00 00 00 00 00 00 8E [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:53]Read from MH i2c: E2 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 17 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 17 00 FE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E4 [19:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:15:53]wFMCommunicate OK [19:15:53]requested_item fd.num is exist - process it [19:15:53]SAM_PROTO_GetFieldsCounters [19:15:53]wFMCommunicate request_size=4 [19:15:53]MH_SAM_APDU [19:15:53]CAPDU: 80 13 00 00 [19:15:53]Write to MH i2c: E2 08 00 FF 16 80 13 00 00 00 00 00 00 91 [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:53]Read from MH i2c: E2 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 62 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 62 00 FF 16 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 8D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [19:15: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 8D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:53]wFMCommunicate OK [19:15:53]SAM_PROTO_GetFieldsCounters done [19:15:53]requested_item shift.num is exist - process it [19:15:53]requested_item shift.opened is exist - process it [19:15:53]req_shift_opened [19:15:53]FM_GetShiftState [19:15:53]SAM_PROTO_GetShiftState [19:15:53]wFMCommunicate request_size=4 [19:15:53]MH_SAM_APDU [19:15:53]CAPDU: 80 13 01 00 [19:15:53]Write to MH i2c: E2 08 00 00 17 80 13 01 00 00 00 00 00 94 [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:53]Read from MH i2c: E2 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 0E 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 0E 00 00 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1F [19:15:53]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:15:53]wFMCommunicate OK [19:15:53]SAM_PROTO_GetShiftState done [19:15:53]FM_GetShiftState done [19:15:53]req_shift_opened done [19:15:53]requested_item shift.open_date is exist - process it [19:15:53]req_shift_open_date [19:15:53]req_shift_open_date done [19:15:53]produce_requested_data done [19:15:53]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1933,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:15:53]process_action_free close_receipt [19:15:53]json_value_free [19:15:53]json_value_free done [19:15:53]process_json_proto returns [19:15:53]Send response to host [19:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1933,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:15:53]free response buf [19:15:53]execute_script done [19:15:53]execute_script returns [19:15:53]free content buf [19:15:53]Sock 8.Close socket [19:15:53]Sock 8.Thread stoped [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:46]accept exits with 9 [19:18:46]New connection [19:18:46]New thread 3066977636 created [19:18:46]Thread 3066834276 joined [19:18:46]Waiting for new connection... [19:18:46] Sock 9.Parse request [19:18:46]Sock 9.Check first char [19:18:46]Sock 9.First char is OK [19:18:46]request: POST /json_proto HTTP/1.0 [19:18:46]Method: POST [19:18:46]URL: /json_proto [19:18:46]Method is POST - this is cgi request [19:18:46]url: /json_proto [19:18:46]query_string will be loaded in cgi processing [19:18:46]execute_cgi json_proto POST (null) [19:18:46]execute_cgi path=json_proto method=POST [19:18:46]POST find Content-Length [19:18:46]Host: 172.17.35.133:8080 [19:18:46]Content-Length: 684 [19:18:46]Content-Type: application/json [19:18:46] [19:18:46]POST finish read [19:18:46]Found Content-Length = 684 [19:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 10.340, "sum" : 750.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:46]execute_script... [19:18: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 : (1)1619126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 10.340, "sum" : 750.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:46]POST & json_proto [19:18:46]process_json_proto [19:18:46]json parsed OK: [19:18:46]protocol is kg_v1.0 [19:18:46]action value=close_receipt [19:18:46]process_action close_receipt [19:18:46]cmd_close_receipt [19:18:46]MH_GetDate [19:18:46]Write to MH i2c: F0 00 00 01 17 07 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: F0 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: F0 09 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: F0 09 00 01 17 00 19 D3 92 66 1B 28 2A 66 C7 [19:18:46]GetLastDocTimeStamp 1720898152 [19:18:46]current date 1720898329 [19:18:46]FM_GetShiftState [19:18:46]SAM_PROTO_GetShiftState [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 13 01 00 [19:18:46]Write to MH i2c: E2 08 00 02 17 80 13 01 00 00 00 00 00 96 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 0E 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 0E 00 02 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 21 [19:18:46]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:18:46]wFMCommunicate OK [19:18:46]SAM_PROTO_GetShiftState done [19:18:46]FM_GetShiftState done [19:18:46]opened in 1720829379 [19:18:46]opened+sec_in_day 1720915779 [19:18:46]quantity*price = 75068 [19:18:46]sum+1 = 75069 [19:18:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.72 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 103 13.07.2024 19:18 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1934 ФПД: 71675312029508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191849&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1934&fm=71675312029508&tin=02508201610067®Number=0000000000177495&sum=75000 [19:18:47]StoreToDocumentArchive [19:18:47]shift 24 fd 1934 [19:18:47]save to /storage/0024/doc_00001934 [19:18:47]save last doc name /storage/0024/doc_00001934 to /storage/kkm_last_doc_name [19:18:47]save OK [19:18:47]Clear old archive folders... [19:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:18:47]tlvbuf is B6EAEB70 [19:18:47]SAM_PROTO_ClearQueue [19:18:47]wFMCommunicate request_size=4 [19:18:47]MH_SAM_APDU [19:18:47]CAPDU: 80 09 00 00 [19:18:47]Write to MH i2c: E2 08 00 0F 17 80 09 00 00 00 00 00 00 98 [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:47]Read from MH i2c: E2 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 03 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 03 00 0F 17 00 90 00 9A [19:18:47]RAPDU: 90 00 [19:18:47]wFMCommunicate OK [19:18:47]SAM_PROTO_ClearQueue done [19:18:47]KKMCreateOFDPacket [19:18:47]OFDProtocolAddRootSTLVToBuf [19:18:47]FM_MakeSignedData [19:18:47]FM_MakeSignedData [19:18:47]SAM_PROTO_SignData [19:18:47]wFMCommunicate request_size=4 [19:18:47]MH_SAM_APDU [19:18:47]CAPDU: 80 0D 01 02 [19:18:47]Write to MH i2c: E2 08 00 10 17 80 0D 01 02 00 00 00 00 A0 [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:47]Read from MH i2c: E2 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 03 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 03 00 10 17 00 90 00 9B [19:18:47]RAPDU: 90 00 [19:18:47]wFMCommunicate OK [19:18:47]wFMCommunicate request_size=255 [19:18:47]MH_SAM_APDU [19:18:47]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 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 D3 92 66 0E 04 04 00 18 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 8E 07 00 00 35 04 06 00 [19:18:47]Write to MH i2c: E2 02 01 11 17 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 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 D3 92 66 0E 04 04 00 18 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 8E 07 00 00 35 04 06 00 00 00 64 [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 03 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 03 00 11 17 00 90 00 9C [19:18:48]RAPDU: 90 00 [19:18:48]wFMCommunicate OK [19:18:48]wFMCommunicate request_size=11 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 0D 02 02 06 41 30 35 83 3F 44 [19:18:48]Write to MH i2c: E2 0E 00 12 17 80 0D 02 02 06 00 41 30 35 83 3F 44 00 00 5B [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 03 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [19:18:48]RAPDU: 90 00 [19:18:48]wFMCommunicate OK [19:18:48]wFMCommunicate request_size=4 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 0D 03 02 [19:18:48]Write to MH i2c: E2 08 00 13 17 80 0D 03 02 00 00 00 00 A5 [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 0B 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 0B 00 13 17 00 4C 69 BC AF 49 72 CC F9 90 00 46 [19:18:48]RAPDU: 4C 69 BC AF 49 72 CC F9 90 00 [19:18:48]wFMCommunicate OK [19:18:48]SAM_PROTO_SignData done [19:18:48]FM_MakeSignedData done [19:18:48]CreateOFDProtocolMessage [19:18:48]wFMCommunicate request_size=4 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 11 00 00 [19:18:48]Write to MH i2c: E2 08 00 14 17 80 11 00 00 00 00 00 00 A5 [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 17 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 17 00 14 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FB [19:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:18:48]wFMCommunicate OK [19:18:48]CreateOFDProtocolMessage done [19:18:48]OFDSenderStorePacket 1934 [19:18:48]StoreOFDPacket docnum=1934 [19:18: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 10 01 00 00 DA 91 08 01 A3 AE 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 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 D3 92 66 0E 04 04 00 18 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 8E 07 00 00 35 04 06 00 41 30 35 83 3F 44 4C 69 BC AF 49 72 CC F9 [19:18:48]CheckFolder [19:18:48]dirname=/storage/ofd_packets [19:18:48]CheckFolder done [19:18:48]ProducePacketName [19:18:48]name=ofd_packets/00001934 [19:18:48]NVStorageSaveData ofd_packets/00001934 [19:18:48]File name is /storage/ofd_packets/00001934 [19:18:48]Write 302 bytes [19:18:48]NVStorageSaveData done [19:18:48]OFDSenderStorePacket done [19:18:48]KKMCreateOFDPacket done [19:18:48]NVStorageSaveData kkm_last_timestamp [19:18:48]File name is /storage/kkm_last_timestamp [19:18:48]Write 4 bytes [19:18:48]NVStorageSaveData done [19:18:48]ExternCall_PrintAddStr [19:18:48]wPrintStart [19:18:48]Write to MH i2c: 01 00 00 15 17 2C [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: 01 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: 01 07 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: 01 07 00 15 17 00 00 00 00 00 FF 0F 41 [19:18:48]RasterBufferAndPrint [19:18:48]line Счет N : (1)1619126 [19:18:48]line ИНН: 02508201610067 [19:18:48]line Контрольно-Кассовый Чек [19:18:48]line ПРОДАЖА [19:18:48]line ТРК (МРК, ГНК) : 22 [19:18:48]line Товар: 2710194210 [19:18:48]line ДТ(л)-К-4 [19:18:48]line 10.340 * 72.60 [19:18:48]line = 750.68 [19:18:48]line НДС 12% НСП 1% [19:18:48]line > о реализуемом товаре [19:18:48]line ОКРУГЛЕНИЕ: -0.68 [19:18:48]line ИТОГО: 750.00 [19:18:48]line Внесено: 750.00 [19:18:48]line СДАЧА: 0.00 [19:18:48]line НСП 1% : 6.64 [19:18:48]line НДС 12% : 79.72 [19:18:48]line Наличными: 750.00 [19:18:48]line Безнал.: 0.00 [19:18:48]line Место: АЗС № 76 "Партнер Нефть" [19:18:48]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:18:48]line СНО: Общий режим [19:18:48]line Чек 103 13.07.2024 19:18 [19:18:48]line Смена: 24 ФФД: 1.0 [19:18:48]line ЗНМ: 0300000124 [19:18:48]line РНМ: 0000000000177495 [19:18:48]line Версия ККМ: 001 [19:18:48]line ФМ: 0000000002098592 [19:18:48]line ФД: 1934 [19:18:48]line ФПД: 71675312029508 [19:18:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191849&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1934&fm=71675312029508&tin=02508201610067®Number=0000000000177495&sum=75000 [19:18:48]OFD Sender: Processing packet 1934 [packets to send 1, broken 0] [19:18:48]ProducePacketName [19:18:48]name=ofd_packets/00001934 [19:18:48]OFD Sender: To server: pG, [19:18:48]CommunicateWithHost lk.salyk.kg:30040 [19:18:48]ConnectInit lk.salyk.kg [19:18:48]written 0, free lines is 4095 [19:18:48]Connected sock=10 [19:18:48]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 DA 91 08 01 A3 AE 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 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 D3 92 66 0E 04 04 00 18 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 8E 07 00 00 35 04 06 00 41 30 35 83 3F 44 4C 69 BC AF 49 72 CC F9 [19:18: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 82 5B 47 00 C2 63 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 8E 07 00 00 F4 03 04 00 4E 7E 92 66 B6 04 01 00 00 C6 F8 83 26 96 62 9E F7 [19:18:49]CommunicateWithHost err = 0 [19:18:49]CheckOFDResponse [19:18:49]1017 (14) - 77093643461234 [19:18:49]1041 (16) - 0000000002098592 [19:18:49]1040 (4) - 1934 [19:18:49]1012 (4) - 13.07.2024 13:17 [19:18:49]1206 (1) - 0 [19:18:49]OFD Sender: Remove packet 1934 [19:18:49]ProducePacketName [19:18:49]name=ofd_packets/00001934 [19:18:49]NVStorageDeleteData [19:18:49]Write to MH i2c: 01 00 00 40 17 57 [19:18:49]Write i2c OK [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: 01 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: 01 07 00 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: 01 07 00 40 17 00 00 00 00 00 E9 0C 53 [19:18:49]RasterBufferAndPrint [19:18:49]line [19:18:49]line [19:18:49]line [19:18:49]line [19:18:49]line [19:18:49]written 0, free lines is 3314 [19:18:49]MH_Cut [19:18:49]Write to MH i2c: D1 01 00 47 17 01 30 [19:18:49]Write i2c OK [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: D1 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: D1 01 00 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: D1 01 00 47 17 00 2F [19:18:49]Write to MH i2c: 01 00 00 48 17 5F [19:18:49]Write i2c OK [19:18:49]MH_I2C_Read... [19:18:49]OFD Sender: No OFD packet to send [19:18:49]*** Cut start [19:18:49]*** Partial cut [19:18:49]*** CUTSNS_PIN = 1 [19:18:49]*** CUTSNS_PIN = 0 [19:18:50]*** Brake cut motor [19:18:50]Read from MH i2c: 01 [19:18:50]MH_I2C_Read... [19:18:50]*** Stop cut motor [19:18:50]*** Cut end [19:18:50]Read from MH i2c: 01 07 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: 01 07 00 48 17 00 00 00 00 00 FF 0F 74 [19:18:50]process_action close_receipt done [19:18:50]requested_data is exist [19:18:50]produce_requested_data [19:18:50]requested_item fm.sn is exist - process it [19:18:50]wFMCommunicate request_size=4 [19:18:50]MH_SAM_APDU [19:18:50]CAPDU: 80 11 00 00 [19:18:50]Write to MH i2c: E2 08 00 49 17 80 11 00 00 00 00 00 00 DA [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:50]Read from MH i2c: E2 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 17 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 17 00 49 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 30 [19:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:18:50]wFMCommunicate OK [19:18:50]requested_item fd.num is exist - process it [19:18:50]SAM_PROTO_GetFieldsCounters [19:18:50]wFMCommunicate request_size=4 [19:18:50]MH_SAM_APDU [19:18:50]CAPDU: 80 13 00 00 [19:18:50]Write to MH i2c: E2 08 00 4A 17 80 13 00 00 00 00 00 00 DD [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:50]Read from MH i2c: E2 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 62 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 62 00 4A 17 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 8E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [19:18:50]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 8E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:50]wFMCommunicate OK [19:18:50]SAM_PROTO_GetFieldsCounters done [19:18:50]requested_item shift.num is exist - process it [19:18:50]requested_item shift.opened is exist - process it [19:18:50]req_shift_opened [19:18:50]FM_GetShiftState [19:18:50]SAM_PROTO_GetShiftState [19:18:50]wFMCommunicate request_size=4 [19:18:50]MH_SAM_APDU [19:18:50]CAPDU: 80 13 01 00 [19:18:50]Write to MH i2c: E2 08 00 4B 17 80 13 01 00 00 00 00 00 DF [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:50]Read from MH i2c: E2 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 0E 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 0E 00 4B 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6A [19:18:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:18:50]wFMCommunicate OK [19:18:50]SAM_PROTO_GetShiftState done [19:18:50]FM_GetShiftState done [19:18:50]req_shift_opened done [19:18:50]requested_item shift.open_date is exist - process it [19:18:50]req_shift_open_date [19:18:50]req_shift_open_date done [19:18:50]produce_requested_data done [19:18:50]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1934,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:18:50]process_action_free close_receipt [19:18:50]json_value_free [19:18:50]json_value_free done [19:18:50]process_json_proto returns [19:18:50]Send response to host [19:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1934,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:18:50]free response buf [19:18:50]execute_script done [19:18:50]execute_script returns [19:18:50]free content buf [19:18:50]Sock 9.Close socket [19:18:50]Sock 9.Thread stoped [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:10]accept exits with 8 [19:21:10]New connection [19:21:10]New thread 3066834276 created [19:21:10]Thread 3066977636 joined [19:21:10]Waiting for new connection... [19:21:10] Sock 8.Parse request [19:21:10]Sock 8.Check first char [19:21:10]Sock 8.First char is OK [19:21:10]request: POST /json_proto HTTP/1.0 [19:21:10]Method: POST [19:21:10]URL: /json_proto [19:21:10]Method is POST - this is cgi request [19:21:10]url: /json_proto [19:21:10]query_string will be loaded in cgi processing [19:21:10]execute_cgi json_proto POST (null) [19:21:10]execute_cgi path=json_proto method=POST [19:21:10]POST find Content-Length [19:21:10]Host: 172.17.35.133:8080 [19:21:10]Content-Length: 829 [19:21:10]Content-Type: application/json [19:21:10] [19:21:10]POST finish read [19:21:10]Found Content-Length = 829 [19:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256351", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:10]execute_script... [19:21: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)256351", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:10]POST & json_proto [19:21:10]process_json_proto [19:21:10]json parsed OK: [19:21:10]protocol is kg_v1.0 [19:21:10]action value=close_receipt [19:21:10]process_action close_receipt [19:21:10]cmd_close_receipt [19:21:10]MH_GetDate [19:21:10]Write to MH i2c: F0 00 00 4C 17 52 [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: F0 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: F0 09 00 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: F0 09 00 4C 17 00 A9 D3 92 66 1B 28 2A 66 A2 [19:21:10]GetLastDocTimeStamp 1720898329 [19:21:10]current date 1720898473 [19:21:10]FM_GetShiftState [19:21:10]SAM_PROTO_GetShiftState [19:21:10]wFMCommunicate request_size=4 [19:21:10]MH_SAM_APDU [19:21:10]CAPDU: 80 13 01 00 [19:21:10]Write to MH i2c: E2 08 00 4D 17 80 13 01 00 00 00 00 00 E1 [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:10]Read from MH i2c: E2 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: E2 0E 00 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: E2 0E 00 4D 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6C [19:21:10]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:21:10]wFMCommunicate OK [19:21:10]SAM_PROTO_GetShiftState done [19:21:10]FM_GetShiftState done [19:21:10]opened in 1720829379 [19:21:10]opened+sec_in_day 1720915779 [19:21:10]quantity*price = 13000 [19:21:10]sum+1 = 13001 [19:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 104 13.07.2024 19:21 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1935 ФПД: 76257513615528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192113&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1935&fm=76257513615528&tin=02508201610067®Number=0000000000177495&sum=13000 0 [19:21:11]StoreToDocumentArchive [19:21:11]shift 24 fd 1935 [19:21:11]save to /storage/0024/doc_00001935 [19:21:11]save last doc name /storage/0024/doc_00001935 to /storage/kkm_last_doc_name [19:21:11]save OK [19:21:11]Clear old archive folders... [19:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:21:11]tlvbuf is 00FE63B0 [19:21:11]SAM_PROTO_ClearQueue [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 09 00 00 [19:21:11]Write to MH i2c: E2 08 00 5A 17 80 09 00 00 00 00 00 00 E3 [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 03 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 03 00 5A 17 00 90 00 E5 [19:21:11]RAPDU: 90 00 [19:21:11]wFMCommunicate OK [19:21:11]SAM_PROTO_ClearQueue done [19:21:11]KKMCreateOFDPacket [19:21:11]OFDProtocolAddRootSTLVToBuf [19:21:11]FM_MakeSignedData [19:21:11]FM_MakeSignedData [19:21:11]SAM_PROTO_SignData [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 0D 01 02 [19:21:11]Write to MH i2c: E2 08 00 5B 17 80 0D 01 02 00 00 00 00 EB [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 03 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [19:21:11]RAPDU: 90 00 [19:21:11]wFMCommunicate OK [19:21:11]wFMCommunicate request_size=255 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A9 D3 92 66 0E 04 04 00 18 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 [19:21:12]Write to MH i2c: E2 02 01 5C 17 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A9 D3 92 66 0E 04 04 00 18 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 02 [19:21:12]Write i2c OK [19:21:12]MH_I2C_Read... [19:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:12]Read from MH i2c: E2 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 03 00 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 03 00 5C 17 00 90 00 E7 [19:21:12]RAPDU: 90 00 [19:21:12]wFMCommunicate OK [19:21:12]wFMCommunicate request_size=35 [19:21:12]MH_SAM_APDU [19:21:12]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 8F 07 00 00 35 04 06 00 45 5B 16 02 B0 A8 [19:21:12]Write to MH i2c: E2 26 00 5D 17 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 8F 07 00 00 35 04 06 00 45 5B 16 02 B0 A8 00 00 8A [19:21:12]Write i2c OK [19:21:12]MH_I2C_Read... [19:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:12]Read from MH i2c: E2 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 03 00 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 03 00 5D 17 00 90 00 E8 [19:21:12]RAPDU: 90 00 [19:21:12]wFMCommunicate OK [19:21:12]wFMCommunicate request_size=4 [19:21:12]MH_SAM_APDU [19:21:12]CAPDU: 80 0D 03 02 [19:21:12]Write to MH i2c: E2 08 00 5E 17 80 0D 03 02 00 00 00 00 F0 [19:21:12]Write i2c OK [19:21:12]MH_I2C_Read... [19:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:12]Read from MH i2c: E2 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 0B 00 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 0B 00 5E 17 00 56 8F F9 5A 68 05 01 0A 90 00 A1 [19:21:12]RAPDU: 56 8F F9 5A 68 05 01 0A 90 00 [19:21:12]wFMCommunicate OK [19:21:12]SAM_PROTO_SignData done [19:21:12]FM_MakeSignedData done [19:21:12]CreateOFDProtocolMessage [19:21:12]wFMCommunicate request_size=4 [19:21:12]MH_SAM_APDU [19:21:12]CAPDU: 80 11 00 00 [19:21:12]Write to MH i2c: E2 08 00 5F 17 80 11 00 00 00 00 00 00 F0 [19:21:12]Write i2c OK [19:21:12]MH_I2C_Read... [19:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:12]Read from MH i2c: E2 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 17 00 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: E2 17 00 5F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 46 [19:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:21:12]wFMCommunicate OK [19:21:12]CreateOFDProtocolMessage done [19:21:12]OFDSenderStorePacket 1935 [19:21:12]StoreOFDPacket docnum=1935 [19:21:12]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 E1 A2 20 01 B2 DE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A9 D3 92 66 0E 04 04 00 18 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 8F 07 00 00 35 04 06 00 45 5B 16 02 B0 A8 56 8F F9 5A 68 05 01 0A [19:21:12]CheckFolder [19:21:12]dirname=/storage/ofd_packets [19:21:12]CheckFolder done [19:21:12]ProducePacketName [19:21:12]name=ofd_packets/00001935 [19:21:12]NVStorageSaveData ofd_packets/00001935 [19:21:12]File name is /storage/ofd_packets/00001935 [19:21:12]Write 326 bytes [19:21:12]NVStorageSaveData done [19:21:12]OFDSenderStorePacket done [19:21:12]KKMCreateOFDPacket done [19:21:12]NVStorageSaveData kkm_last_timestamp [19:21:12]File name is /storage/kkm_last_timestamp [19:21:12]Write 4 bytes [19:21:12]NVStorageSaveData done [19:21:12]ExternCall_PrintAddStr [19:21:12]wPrintStart [19:21:12]Write to MH i2c: 01 00 00 60 17 77 [19:21:12]Write i2c OK [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: 01 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: 01 07 00 [19:21:12]MH_I2C_Read... [19:21:12]Read from MH i2c: 01 07 00 60 17 00 00 00 00 00 FF 0F 8C [19:21:12]RasterBufferAndPrint [19:21:12]line Счет N : (3)256351 [19:21:12]line ИНН: 02508201610067 [19:21:12]line Контрольно-Кассовый Чек [19:21:12]line ПРОДАЖА [19:21:12]line Товар: 2000036230011 [19:21:12]line Кофе Латте XL(GABB TRADE) [19:21:12]line 1.000 * 130.00 [19:21:12]line = 130.00 [19:21:12]line НДС 12% НСП 1% [19:21:12]line > о реализуемом товаре [19:21:12]line ИТОГО: 130.00 [19:21:12]line НСП 1% : 1.15 [19:21:12]line НДС 12% : 13.80 [19:21:12]line Наличными: 0.00 [19:21:12]line Безнал.: 130.00 [19:21:12]line Место: АЗС № 76 "Партнер Нефть" [19:21:12]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:21:12]line СНО: Общий режим [19:21:12]line Чек 104 13.07.2024 19:21 [19:21:12]line Смена: 24 ФФД: 1.0 [19:21:12]line ЗНМ: 0300000124 [19:21:12]line РНМ: 0000000000177495 [19:21:12]line Версия ККМ: 001 [19:21:12]line Платежная система: АКБ Кыргызстан [19:21:12]line ФМ: 0000000002098592 [19:21:12]line ФД: 1935 [19:21:12]line ФПД: 76257513615528 [19:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192113&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1935&fm=76257513615528&tin=02508201610067®Number=0000000000177495&sum=13000 [19:21:12]line 0 [19:21:12]OFD Sender: Processing packet 1935 [packets to send 1, broken 0] [19:21:12]ProducePacketName [19:21:12]name=ofd_packets/00001935 [19:21:12]OFD Sender: To server: pG, [19:21:12]CommunicateWithHost lk.salyk.kg:30040 [19:21:12]ConnectInit lk.salyk.kg [19:21:12]written 0, free lines is 4095 [19:21:12]Connected sock=10 [19:21: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 28 01 00 00 E1 A2 20 01 B2 DE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A9 D3 92 66 0E 04 04 00 18 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 8F 07 00 00 35 04 06 00 45 5B 16 02 B0 A8 56 8F F9 5A 68 05 01 0A [19:21: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 37 69 47 00 D4 F8 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 8F 07 00 00 F4 03 04 00 DF 7E 92 66 B6 04 01 00 00 EE 4D 86 DF F5 B2 E3 EA [19:21:13]CommunicateWithHost err = 0 [19:21:13]CheckOFDResponse [19:21:13]1017 (14) - 77093643461234 [19:21:13]1041 (16) - 0000000002098592 [19:21:13]1040 (4) - 1935 [19:21:13]1012 (4) - 13.07.2024 13:19 [19:21:13]1206 (1) - 0 [19:21:13]OFD Sender: Remove packet 1935 [19:21:13]ProducePacketName [19:21:13]name=ofd_packets/00001935 [19:21:13]NVStorageDeleteData [19:21:13]Write to MH i2c: 01 00 00 8A 17 A1 [19:21:13]Write i2c OK [19:21:13]MH_I2C_Read... [19:21:13]Read from MH i2c: 01 [19:21:13]MH_I2C_Read... [19:21:13]Read from MH i2c: 01 07 00 [19:21:13]MH_I2C_Read... [19:21:13]Read from MH i2c: 01 07 00 8A 17 00 00 00 00 00 04 0D B9 [19:21:13]RasterBufferAndPrint [19:21:13]line [19:21:13]line [19:21:13]line [19:21:13]line [19:21:13]line [19:21:13]written 0, free lines is 3337 [19:21:13]MH_Cut [19:21:13]Write to MH i2c: D1 01 00 91 17 01 7A [19:21:13]Write i2c OK [19:21:13]MH_I2C_Read... [19:21:13]Read from MH i2c: D1 [19:21:13]MH_I2C_Read... [19:21:13]Read from MH i2c: D1 01 00 [19:21:13]MH_I2C_Read... [19:21:13]Read from MH i2c: D1 01 00 91 17 00 79 [19:21:13]Write to MH i2c: 01 00 00 92 17 A9 [19:21:13]Write i2c OK [19:21:13]MH_I2C_Read... [19:21:13]OFD Sender: No OFD packet to send [19:21:13]*** Cut start [19:21:13]*** Partial cut [19:21:13]*** CUTSNS_PIN = 1 [19:21:14]*** CUTSNS_PIN = 0 [19:21:14]*** Brake cut motor [19:21:14]Read from MH i2c: 01 [19:21:14]MH_I2C_Read... [19:21:14]*** Stop cut motor [19:21:14]*** Cut end [19:21:14]Read from MH i2c: 01 07 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: 01 07 00 92 17 00 00 00 00 00 FF 0F BE [19:21:14]process_action close_receipt done [19:21:14]requested_data is exist [19:21:14]produce_requested_data [19:21:14]requested_item fm.sn is exist - process it [19:21:14]wFMCommunicate request_size=4 [19:21:14]MH_SAM_APDU [19:21:14]CAPDU: 80 11 00 00 [19:21:14]Write to MH i2c: E2 08 00 93 17 80 11 00 00 00 00 00 00 24 [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:14]Read from MH i2c: E2 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 17 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 17 00 93 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7A [19:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:21:14]wFMCommunicate OK [19:21:14]requested_item fd.num is exist - process it [19:21:14]SAM_PROTO_GetFieldsCounters [19:21:14]wFMCommunicate request_size=4 [19:21:14]MH_SAM_APDU [19:21:14]CAPDU: 80 13 00 00 [19:21:14]Write to MH i2c: E2 08 00 94 17 80 13 00 00 00 00 00 00 27 [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:14]Read from MH i2c: E2 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 62 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 62 00 94 17 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 8F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [19:21:14]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 8F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:14]wFMCommunicate OK [19:21:14]SAM_PROTO_GetFieldsCounters done [19:21:14]requested_item shift.num is exist - process it [19:21:14]requested_item shift.opened is exist - process it [19:21:14]req_shift_opened [19:21:14]FM_GetShiftState [19:21:14]SAM_PROTO_GetShiftState [19:21:14]wFMCommunicate request_size=4 [19:21:14]MH_SAM_APDU [19:21:14]CAPDU: 80 13 01 00 [19:21:14]Write to MH i2c: E2 08 00 95 17 80 13 01 00 00 00 00 00 29 [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:14]Read from MH i2c: E2 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 0E 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 0E 00 95 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B4 [19:21:14]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:21:14]wFMCommunicate OK [19:21:14]SAM_PROTO_GetShiftState done [19:21:14]FM_GetShiftState done [19:21:14]req_shift_opened done [19:21:14]requested_item shift.open_date is exist - process it [19:21:14]req_shift_open_date [19:21:14]req_shift_open_date done [19:21:14]produce_requested_data done [19:21:14]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1935,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:21:14]process_action_free close_receipt [19:21:14]json_value_free [19:21:14]json_value_free done [19:21:14]process_json_proto returns [19:21:14]Send response to host [19:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1935,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:21:14]free response buf [19:21:14]execute_script done [19:21:14]execute_script returns [19:21:14]free content buf [19:21:14]Sock 8.Close socket [19:21:14]Sock 8.Thread stoped [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:31]accept exits with 9 [19:21:31]New connection [19:21:31]New thread 3066977636 created [19:21:31]Thread 3066834276 joined [19:21:31]Waiting for new connection... [19:21:31] Sock 9.Parse request [19:21:31]Sock 9.Check first char [19:21:31]Sock 9.First char is OK [19:21:31]request: POST /json_proto HTTP/1.0 [19:21:31]Method: POST [19:21:31]URL: /json_proto [19:21:31]Method is POST - this is cgi request [19:21:31]url: /json_proto [19:21:31]query_string will be loaded in cgi processing [19:21:31]execute_cgi json_proto POST (null) [19:21:31]execute_cgi path=json_proto method=POST [19:21:31]POST find Content-Length [19:21:31]Host: 172.17.35.133:8080 [19:21:31]Content-Length: 628 [19:21:31]Content-Type: application/json [19:21:31] [19:21:31]POST finish read [19:21:31]Found Content-Length = 628 [19:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256352", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [19:21:31]execute_script... [19:21: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)256352", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [19:21:31]POST & json_proto [19:21:31]process_json_proto [19:21:31]json parsed OK: [19:21:31]protocol is kg_v1.0 [19:21:31]action value=close_receipt [19:21:31]process_action close_receipt [19:21:31]cmd_close_receipt [19:21:31]MH_GetDate [19:21:31]Write to MH i2c: F0 00 00 96 17 9C [19:21:31]Write i2c OK [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: F0 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: F0 09 00 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: F0 09 00 96 17 00 BE D3 92 66 1B 28 2A 66 01 [19:21:31]GetLastDocTimeStamp 1720898473 [19:21:31]current date 1720898494 [19:21:31]FM_GetShiftState [19:21:31]SAM_PROTO_GetShiftState [19:21:31]wFMCommunicate request_size=4 [19:21:31]MH_SAM_APDU [19:21:31]CAPDU: 80 13 01 00 [19:21:31]Write to MH i2c: E2 08 00 97 17 80 13 01 00 00 00 00 00 2B [19:21:31]Write i2c OK [19:21:31]MH_I2C_Read... [19:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:31]Read from MH i2c: E2 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 0E 00 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 0E 00 97 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B6 [19:21:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:21:31]wFMCommunicate OK [19:21:31]SAM_PROTO_GetShiftState done [19:21:31]FM_GetShiftState done [19:21:31]opened in 1720829379 [19:21:31]opened+sec_in_day 1720915779 [19:21:31]quantity*price = 13000 [19:21:31]sum+1 = 13001 [19:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 105 13.07.2024 19:21 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1936 ФПД: 140341331962909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192134&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1936&fm=140341331962909&tin=02508201610067®Number=0000000000177495&sum=13000 0 [19:21:32]StoreToDocumentArchive [19:21:32]shift 24 fd 1936 [19:21:32]save to /storage/0024/doc_00001936 [19:21:32]save last doc name /storage/0024/doc_00001936 to /storage/kkm_last_doc_name [19:21:32]save OK [19:21:32]Clear old archive folders... [19:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:21:32]tlvbuf is 00FE5880 [19:21:32]SAM_PROTO_ClearQueue [19:21:32]wFMCommunicate request_size=4 [19:21:32]MH_SAM_APDU [19:21:32]CAPDU: 80 09 00 00 [19:21:32]Write to MH i2c: E2 08 00 A4 17 80 09 00 00 00 00 00 00 2D [19:21:32]Write i2c OK [19:21:32]MH_I2C_Read... [19:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:32]Read from MH i2c: E2 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [19:21:32]RAPDU: 90 00 [19:21:32]wFMCommunicate OK [19:21:32]SAM_PROTO_ClearQueue done [19:21:32]KKMCreateOFDPacket [19:21:32]OFDProtocolAddRootSTLVToBuf [19:21:32]FM_MakeSignedData [19:21:32]FM_MakeSignedData [19:21:32]SAM_PROTO_SignData [19:21:32]wFMCommunicate request_size=4 [19:21:32]MH_SAM_APDU [19:21:32]CAPDU: 80 0D 01 02 [19:21:32]Write to MH i2c: E2 08 00 A5 17 80 0D 01 02 00 00 00 00 35 [19:21:32]Write i2c OK [19:21:32]MH_I2C_Read... [19:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:32]Read from MH i2c: E2 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 A5 17 00 90 00 30 [19:21:32]RAPDU: 90 00 [19:21:32]wFMCommunicate OK [19:21:32]wFMCommunicate request_size=255 [19:21:32]MH_SAM_APDU [19:21:32]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 69 00 00 00 F4 03 04 00 BE D3 92 66 0E 04 04 00 18 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 [19:21:32]Write to MH i2c: E2 02 01 A6 17 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 69 00 00 00 F4 03 04 00 BE D3 92 66 0E 04 04 00 18 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 62 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 A6 17 00 90 00 31 [19:21:33]RAPDU: 90 00 [19:21:33]wFMCommunicate OK [19:21:33]wFMCommunicate request_size=35 [19:21:33]MH_SAM_APDU [19:21:33]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 90 07 00 00 35 04 06 00 7F A3 C3 3D 2C 1D [19:21:33]Write to MH i2c: E2 26 00 A7 17 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 90 07 00 00 35 04 06 00 7F A3 C3 3D 2C 1D 00 00 30 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 A7 17 00 90 00 32 [19:21:33]RAPDU: 90 00 [19:21:33]wFMCommunicate OK [19:21:33]wFMCommunicate request_size=4 [19:21:33]MH_SAM_APDU [19:21:33]CAPDU: 80 0D 03 02 [19:21:33]Write to MH i2c: E2 08 00 A8 17 80 0D 03 02 00 00 00 00 3A [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 0B 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 0B 00 A8 17 00 89 69 A8 86 16 31 F4 6E 90 00 04 [19:21:33]RAPDU: 89 69 A8 86 16 31 F4 6E 90 00 [19:21:33]wFMCommunicate OK [19:21:33]SAM_PROTO_SignData done [19:21:33]FM_MakeSignedData done [19:21:33]CreateOFDProtocolMessage [19:21:33]wFMCommunicate request_size=4 [19:21:33]MH_SAM_APDU [19:21:33]CAPDU: 80 11 00 00 [19:21:33]Write to MH i2c: E2 08 00 A9 17 80 11 00 00 00 00 00 00 3A [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 17 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 17 00 A9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 90 [19:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:21:33]wFMCommunicate OK [19:21:33]CreateOFDProtocolMessage done [19:21:33]OFDSenderStorePacket 1936 [19:21:33]StoreOFDPacket docnum=1936 [19:21: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 28 01 00 00 64 CC 20 01 80 93 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 69 00 00 00 F4 03 04 00 BE D3 92 66 0E 04 04 00 18 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 90 07 00 00 35 04 06 00 7F A3 C3 3D 2C 1D 89 69 A8 86 16 31 F4 6E [19:21:33]CheckFolder [19:21:33]dirname=/storage/ofd_packets [19:21:33]CheckFolder done [19:21:33]ProducePacketName [19:21:33]name=ofd_packets/00001936 [19:21:33]NVStorageSaveData ofd_packets/00001936 [19:21:33]File name is /storage/ofd_packets/00001936 [19:21:33]Write 326 bytes [19:21:33]NVStorageSaveData done [19:21:33]OFDSenderStorePacket done [19:21:33]KKMCreateOFDPacket done [19:21:33]NVStorageSaveData kkm_last_timestamp [19:21:33]File name is /storage/kkm_last_timestamp [19:21:33]Write 4 bytes [19:21:33]NVStorageSaveData done [19:21:33]ExternCall_PrintAddStr [19:21:33]wPrintStart [19:21:33]Write to MH i2c: 01 00 00 AA 17 C1 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 07 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [19:21:33]RasterBufferAndPrint [19:21:33]line Счет N : (3)256352 [19:21:33]line ИНН: 02508201610067 [19:21:33]line Контрольно-Кассовый Чек [19:21:33]line ПРОДАЖА [19:21:33]line Товар: 2000036230011 [19:21:33]line Кофе Латте XL(GABB TRADE) [19:21:33]line 1.000 * 130.00 [19:21:33]line = 130.00 [19:21:33]line НДС 12% НСП 1% [19:21:33]line > о реализуемом товаре [19:21:33]line ИТОГО: 130.00 [19:21:33]line НСП 1% : 1.15 [19:21:33]line НДС 12% : 13.80 [19:21:33]line Наличными: 130.00 [19:21:33]line Безнал.: 0.00 [19:21:33]line Место: АЗС № 76 "Партнер Нефть" [19:21:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:21:33]line СНО: Общий режим [19:21:33]line Чек 105 13.07.2024 19:21 [19:21:33]line Смена: 24 ФФД: 1.0 [19:21:33]line ЗНМ: 0300000124 [19:21:33]line РНМ: 0000000000177495 [19:21:33]line Версия ККМ: 001 [19:21:33]line ФМ: 0000000002098592 [19:21:33]line ФД: 1936 [19:21:33]line ФПД: 140341331962909 [19:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192134&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1936&fm=140341331962909&tin=02508201610067®Number=0000000000177495&sum=13000 [19:21:33]line 0 [19:21:33]OFD Sender: Processing packet 1936 [packets to send 1, broken 0] [19:21:33]ProducePacketName [19:21:33]name=ofd_packets/00001936 [19:21:33]OFD Sender: To server: pG, [19:21:33]CommunicateWithHost lk.salyk.kg:30040 [19:21:33]ConnectInit lk.salyk.kg [19:21:33]written 0, free lines is 4095 [19:21:33]Connected sock=10 [19:21:33]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 64 CC 20 01 80 93 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 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 C8 32 00 00 00 00 13 04 06 00 C8 32 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 64 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 69 00 00 00 F4 03 04 00 BE D3 92 66 0E 04 04 00 18 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 90 07 00 00 35 04 06 00 7F A3 C3 3D 2C 1D 89 69 A8 86 16 31 F4 6E [19:21: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 E3 50 47 00 9F E1 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 90 07 00 00 F4 03 04 00 F4 7E 92 66 B6 04 01 00 00 1D 3A 99 C8 6D 05 FD E5 [19:21:34]CommunicateWithHost err = 0 [19:21:34]CheckOFDResponse [19:21:34]1017 (14) - 77093643461234 [19:21:34]1041 (16) - 0000000002098592 [19:21:34]1040 (4) - 1936 [19:21:34]1012 (4) - 13.07.2024 13:19 [19:21:34]1206 (1) - 0 [19:21:34]OFD Sender: Remove packet 1936 [19:21:34]ProducePacketName [19:21:34]name=ofd_packets/00001936 [19:21:34]NVStorageDeleteData [19:21:34]Write to MH i2c: 01 00 00 D2 17 E9 [19:21:34]Write i2c OK [19:21:34]MH_I2C_Read... [19:21:34]Read from MH i2c: 01 [19:21:34]MH_I2C_Read... [19:21:34]Read from MH i2c: 01 07 00 [19:21:34]MH_I2C_Read... [19:21:34]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 33 0D 30 [19:21:34]RasterBufferAndPrint [19:21:34]line [19:21:34]line [19:21:34]line [19:21:34]line [19:21:34]line [19:21:34]written 0, free lines is 3389 [19:21:34]MH_Cut [19:21:34]Write to MH i2c: D1 01 00 D9 17 01 C2 [19:21:34]Write i2c OK [19:21:34]MH_I2C_Read... [19:21:34]Read from MH i2c: D1 [19:21:34]MH_I2C_Read... [19:21:34]Read from MH i2c: D1 01 00 [19:21:34]MH_I2C_Read... [19:21:34]Read from MH i2c: D1 01 00 D9 17 00 C1 [19:21:34]Write to MH i2c: 01 00 00 DA 17 F1 [19:21:34]Write i2c OK [19:21:34]MH_I2C_Read... [19:21:34]OFD Sender: No OFD packet to send [19:21:34]*** Cut start [19:21:34]*** Partial cut [19:21:34]*** CUTSNS_PIN = 1 [19:21:34]*** CUTSNS_PIN = 0 [19:21:35]*** Brake cut motor [19:21:35]Read from MH i2c: 01 [19:21:35]MH_I2C_Read... [19:21:35]*** Stop cut motor [19:21:35]*** Cut end [19:21:35]Read from MH i2c: 01 07 00 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 FF 0F 06 [19:21:35]process_action close_receipt done [19:21:35]requested_data is exist [19:21:35]produce_requested_data [19:21:35]requested_item fm.sn is exist - process it [19:21:35]wFMCommunicate request_size=4 [19:21:35]MH_SAM_APDU [19:21:35]CAPDU: 80 11 00 00 [19:21:35]Write to MH i2c: E2 08 00 DB 17 80 11 00 00 00 00 00 00 6C [19:21:35]Write i2c OK [19:21:35]MH_I2C_Read... [19:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:35]Read from MH i2c: E2 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 17 00 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 17 00 DB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C2 [19:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:21:35]wFMCommunicate OK [19:21:35]requested_item fd.num is exist - process it [19:21:35]SAM_PROTO_GetFieldsCounters [19:21:35]wFMCommunicate request_size=4 [19:21:35]MH_SAM_APDU [19:21:35]CAPDU: 80 13 00 00 [19:21:35]Write to MH i2c: E2 08 00 DC 17 80 13 00 00 00 00 00 00 6F [19:21:35]Write i2c OK [19:21:35]MH_I2C_Read... [19:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:35]Read from MH i2c: E2 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 62 00 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 62 00 DC 17 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 90 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [19:21: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 90 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:35]wFMCommunicate OK [19:21:35]SAM_PROTO_GetFieldsCounters done [19:21:35]requested_item shift.num is exist - process it [19:21:35]requested_item shift.opened is exist - process it [19:21:35]req_shift_opened [19:21:35]FM_GetShiftState [19:21:35]SAM_PROTO_GetShiftState [19:21:35]wFMCommunicate request_size=4 [19:21:35]MH_SAM_APDU [19:21:35]CAPDU: 80 13 01 00 [19:21:35]Write to MH i2c: E2 08 00 DD 17 80 13 01 00 00 00 00 00 71 [19:21:35]Write i2c OK [19:21:35]MH_I2C_Read... [19:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:35]Read from MH i2c: E2 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 0E 00 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 0E 00 DD 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 FC [19:21:35]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:21:35]wFMCommunicate OK [19:21:35]SAM_PROTO_GetShiftState done [19:21:35]FM_GetShiftState done [19:21:35]req_shift_opened done [19:21:35]requested_item shift.open_date is exist - process it [19:21:35]req_shift_open_date [19:21:35]req_shift_open_date done [19:21:35]produce_requested_data done [19:21:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1936,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:21:35]process_action_free close_receipt [19:21:35]json_value_free [19:21:35]json_value_free done [19:21:35]process_json_proto returns [19:21:35]Send response to host [19:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1936,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:21:35]free response buf [19:21:35]execute_script done [19:21:35]execute_script returns [19:21:35]free content buf [19:21:35]Sock 9.Close socket [19:21:35]Sock 9.Thread stoped [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:31]accept exits with 8 [19:24:31]New connection [19:24:31]New thread 3066834276 created [19:24:31]Thread 3066977636 joined [19:24:31]Waiting for new connection... [19:24:31] Sock 8.Parse request [19:24:31]Sock 8.Check first char [19:24:31]Sock 8.First char is OK [19:24:31]request: POST /json_proto HTTP/1.0 [19:24:31]Method: POST [19:24:31]URL: /json_proto [19:24:31]Method is POST - this is cgi request [19:24:31]url: /json_proto [19:24:31]query_string will be loaded in cgi processing [19:24:31]execute_cgi json_proto POST (null) [19:24:31]execute_cgi path=json_proto method=POST [19:24:31]POST find Content-Length [19:24:31]Host: 172.17.35.133:8080 [19:24:31]Content-Length: 215 [19:24:31]Content-Type: application/json [19:24:31] [19:24:31]POST finish read [19:24:31]Found Content-Length = 215 [19:24: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" ] } } [19:24:31]execute_script... [19:24: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" ] } } [19:24:31]POST & json_proto [19:24:31]process_json_proto [19:24:31]json parsed OK: [19:24:31]protocol is kg_v1.0 [19:24:31]action value=get_value [19:24:31]process_action get_value [19:24:31]cmd_get_value [19:24:31]process_action get_value done [19:24:31]requested_data is exist [19:24:31]produce_requested_data [19:24:31]requested_item kkm.sn is exist - process it [19:24:31]requested_item kkm.ver is exist - process it [19:24:31]requested_item fm.sn is exist - process it [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 11 00 00 [19:24:31]Write to MH i2c: E2 08 00 DE 17 80 11 00 00 00 00 00 00 6F [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 17 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 17 00 DE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C5 [19:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:24:31]wFMCommunicate OK [19:24:31]requested_item fd.num is exist - process it [19:24:31]SAM_PROTO_GetFieldsCounters [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 13 00 00 [19:24:31]Write to MH i2c: E2 08 00 DF 17 80 13 00 00 00 00 00 00 72 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 62 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 62 00 DF 17 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 90 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:24: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 90 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:31]wFMCommunicate OK [19:24:31]SAM_PROTO_GetFieldsCounters done [19:24:31]requested_item shift.num is exist - process it [19:24:31]requested_item shift.opened is exist - process it [19:24:31]req_shift_opened [19:24:31]FM_GetShiftState [19:24:31]SAM_PROTO_GetShiftState [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 13 01 00 [19:24:31]Write to MH i2c: E2 08 00 E0 17 80 13 01 00 00 00 00 00 74 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 0E 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 0E 00 E0 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 FF [19:24:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:24:31]wFMCommunicate OK [19:24:31]SAM_PROTO_GetShiftState done [19:24:31]FM_GetShiftState done [19:24:31]req_shift_opened done [19:24:31]requested_item shift.open_date is exist - process it [19:24:31]req_shift_open_date [19:24:31]req_shift_open_date done [19:24:31]produce_requested_data done [19:24:31]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1936,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:24:31]process_action_free get_value [19:24:31]json_value_free [19:24:31]json_value_free done [19:24:31]process_json_proto returns [19:24:31]Send response to host [19:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1936,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:24:31]free response buf [19:24:31]execute_script done [19:24:31]execute_script returns [19:24:31]free content buf [19:24:31]Sock 8.Close socket [19:24:31]Sock 8.Thread stoped [19:24:31]accept exits with 9 [19:24:31]New connection [19:24:31]New thread 3066977636 created [19:24:31]Thread 3066834276 joined [19:24:31]Waiting for new connection... [19:24:31] Sock 9.Parse request [19:24:31]Sock 9.Check first char [19:24:31]Sock 9.First char is OK [19:24:31]request: POST /json_proto HTTP/1.0 [19:24:31]Method: POST [19:24:31]URL: /json_proto [19:24:31]Method is POST - this is cgi request [19:24:31]url: /json_proto [19:24:31]query_string will be loaded in cgi processing [19:24:31]execute_cgi json_proto POST (null) [19:24:31]execute_cgi path=json_proto method=POST [19:24:31]POST find Content-Length [19:24:31]Host: 172.17.35.133:8080 [19:24:31]Content-Length: 331 [19:24:31]Content-Type: application/json [19:24:31] [19:24:31]POST finish read [19:24:31]Found Content-Length = 331 [19:24: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" ] } } [19:24:31]execute_script... [19:24: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" ] } } [19:24:31]POST & json_proto [19:24:31]process_json_proto [19:24:31]json parsed OK: [19:24:31]protocol is kg_v1.0 [19:24:31]action value=get_value [19:24:31]process_action get_value [19:24:31]cmd_get_value [19:24:31]process_action get_value done [19:24:31]requested_data is exist [19:24:31]produce_requested_data [19:24:31]requested_item fm.sale.total is exist - process it [19:24:31]SAM_PROTO_GetFMData [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 13 03 00 [19:24:31]Write to MH i2c: E2 08 00 E1 17 80 13 03 00 00 00 00 00 77 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:24:32]Read from MH i2c: E2 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: E2 FD 00 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: E2 FD 00 E1 17 00 BA 04 85 04 B6 04 6E 04 04 00 60 07 00 00 69 04 9F 00 6F 04 04 00 5E 07 00 00 B1 04 04 00 4A C3 D3 04 70 04 04 00 04 47 FC 03 72 04 03 00 46 7C D7 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 57 3C 83 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 8D EE 0A 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 4B [19:24:32]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 60 07 00 00 69 04 9F 00 6F 04 04 00 5E 07 00 00 B1 04 04 00 4A C3 D3 04 70 04 04 00 04 47 FC 03 72 04 03 00 46 7C D7 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 57 3C 83 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 8D EE 0A 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 [19:24:32]wFMCommunicate OK [19:24:32]wFMCommunicate request_size=4 [19:24:32]MH_SAM_APDU [19:24:32]CAPDU: 80 17 00 00 [19:24:32]Write to MH i2c: E2 08 00 E2 17 80 17 00 00 00 00 00 00 79 [19:24:32]Write i2c OK [19:24:32]MH_I2C_Read... [19:24:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:32]Read from MH i2c: E2 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: E2 FD 00 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: E2 FD 00 E2 17 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 76 [19:24: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 [19:24:32]wFMCommunicate OK [19:24:32]wFMCommunicate request_size=4 [19:24:32]MH_SAM_APDU [19:24:32]CAPDU: 80 17 00 00 [19:24:32]Write to MH i2c: E2 08 00 E3 17 80 17 00 00 00 00 00 00 7A [19:24:32]Write i2c OK [19:24:32]MH_I2C_Read... [19:24:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:32]Read from MH i2c: E2 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: E2 FD 00 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: E2 FD 00 E3 17 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 A6 [19:24:32]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 [19:24:32]wFMCommunicate OK [19:24:32]wFMCommunicate request_size=4 [19:24:32]MH_SAM_APDU [19:24:32]CAPDU: 80 17 00 00 [19:24:32]Write to MH i2c: E2 08 00 E4 17 80 17 00 00 00 00 00 00 7B [19:24:32]Write i2c OK [19:24:32]MH_I2C_Read... [19:24:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:33]Read from MH i2c: E2 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 FD 00 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 FD 00 E4 17 00 00 EF 03 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 F3 [19:24: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 [19:24:33]wFMCommunicate OK [19:24:33]wFMCommunicate request_size=4 [19:24:33]MH_SAM_APDU [19:24:33]CAPDU: 80 17 00 00 [19:24:33]Write to MH i2c: E2 08 00 E5 17 80 17 00 00 00 00 00 00 7C [19:24:33]Write i2c OK [19:24:33]MH_I2C_Read... [19:24:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:24:33]Read from MH i2c: E2 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 D7 00 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 D7 00 E5 17 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 5F [19:24: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 [19:24:33]wFMCommunicate OK [19:24:33]SAM_PROTO_GetFMData done [19:24:33]requested_item fm.sale_refund.total is exist - process it [19:24:33]requested_item fm.buy.total is exist - process it [19:24:33]requested_item shift.sale.total is exist - process it [19:24:33]SAM_PROTO_GetShiftData [19:24:33]wFMCommunicate request_size=4 [19:24:33]MH_SAM_APDU [19:24:33]CAPDU: 80 13 02 00 [19:24:33]Write to MH i2c: E2 08 00 E6 17 80 13 02 00 00 00 00 00 7B [19:24:33]Write i2c OK [19:24:33]MH_I2C_Read... [19:24:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:24:33]Read from MH i2c: E2 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 FD 00 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 FD 00 E6 17 00 AF 04 AA 04 AB 04 6E 04 04 00 69 00 00 00 69 04 9C 00 6F 04 04 00 69 00 00 00 B1 04 03 00 B1 E2 83 70 04 03 00 44 4F 67 72 04 03 00 6D 93 1C 00 04 7B 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 EF 01 0E 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 C9 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [19:24:33]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 69 00 00 00 69 04 9C 00 6F 04 04 00 69 00 00 00 B1 04 03 00 B1 E2 83 70 04 03 00 44 4F 67 72 04 03 00 6D 93 1C 00 04 7B 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 EF 01 0E 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 C9 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:24:33]wFMCommunicate OK [19:24:33]wFMCommunicate request_size=4 [19:24:33]MH_SAM_APDU [19:24:33]CAPDU: 80 17 00 00 [19:24:33]Write to MH i2c: E2 08 00 E7 17 80 17 00 00 00 00 00 00 7E [19:24:33]Write i2c OK [19:24:33]MH_I2C_Read... [19:24:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:34]Read from MH i2c: E2 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 FD 00 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 FD 00 E7 17 00 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 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 90 00 97 [19:24:34]RAPDU: 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 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 90 00 [19:24:34]wFMCommunicate OK [19:24:34]wFMCommunicate request_size=4 [19:24:34]MH_SAM_APDU [19:24:34]CAPDU: 80 17 00 00 [19:24:34]Write to MH i2c: E2 08 00 E8 17 80 17 00 00 00 00 00 00 7F [19:24:34]Write i2c OK [19:24:34]MH_I2C_Read... [19:24:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:34]Read from MH i2c: E2 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 FD 00 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 FD 00 E8 17 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 33 [19:24:34]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:24:34]wFMCommunicate OK [19:24:34]wFMCommunicate request_size=4 [19:24:34]MH_SAM_APDU [19:24:34]CAPDU: 80 17 00 00 [19:24:34]Write to MH i2c: E2 08 00 E9 17 80 17 00 00 00 00 00 00 80 [19:24:34]Write i2c OK [19:24:34]MH_I2C_Read... [19:24:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:34]Read from MH i2c: E2 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 FD 00 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 FD 00 E9 17 00 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 90 00 FE [19:24:34]RAPDU: 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 90 00 [19:24:34]wFMCommunicate OK [19:24:34]wFMCommunicate request_size=4 [19:24:34]MH_SAM_APDU [19:24:34]CAPDU: 80 17 00 00 [19:24:34]Write to MH i2c: E2 08 00 EA 17 80 17 00 00 00 00 00 00 81 [19:24:34]Write i2c OK [19:24:34]MH_I2C_Read... [19:24:34]OFD Sender: No OFD packet to send [19:24:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:24:34]Read from MH i2c: E2 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 CC 00 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 CC 00 EA 17 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:24:34]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:24:34]wFMCommunicate OK [19:24:34]SAM_PROTO_GetShiftData done [19:24:34]requested_item shift.sale.total_cash is exist - process it [19:24:34]requested_item shift.sale_refund.total is exist - process it [19:24:34]requested_item shift.sale_refund.total_cash is exist - process it [19:24:34]requested_item shift.buy.total is exist - process it [19:24:34]requested_item shift.buy.total_cash is exist - process it [19:24:34]produce_requested_data done [19:24:34]produce_requested_data return {"fm.sale.total":809869.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":86432.49,"shift.sale.total_cash":67705.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} [19:24:34]process_action_free get_value [19:24:34]json_value_free [19:24:34]json_value_free done [19:24:34]process_json_proto returns [19:24:34]Send response to host [19:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":809869.54,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":86432.49,"shift.sale.total_cash":67705.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}}} [19:24:34]free response buf [19:24:34]execute_script done [19:24:34]execute_script returns [19:24:34]free content buf [19:24:34]Sock 9.Close socket [19:24:34]Sock 9.Thread stoped [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:45]accept exits with 8 [19:27:45]New connection [19:27:45]New thread 3066834276 created [19:27:45]Thread 3066977636 joined [19:27:45]Waiting for new connection... [19:27:45] Sock 8.Parse request [19:27:45]Sock 8.Check first char [19:27:45]Sock 8.First char is OK [19:27:45]request: POST /json_proto HTTP/1.0 [19:27:45]Method: POST [19:27:45]URL: /json_proto [19:27:45]Method is POST - this is cgi request [19:27:45]url: /json_proto [19:27:45]query_string will be loaded in cgi processing [19:27:45]execute_cgi json_proto POST (null) [19:27:45]execute_cgi path=json_proto method=POST [19:27:45]POST find Content-Length [19:27:45]Host: 172.17.35.133:8080 [19:27:45]Content-Length: 641 [19:27:45]Content-Type: application/json [19:27:45] [19:27:45]POST finish read [19:27:45]Found Content-Length = 641 [19:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619129", "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" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:45]execute_script... [19:27: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 : (1)1619129", "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" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:45]POST & json_proto [19:27:45]process_json_proto [19:27:45]json parsed OK: [19:27:45]protocol is kg_v1.0 [19:27:45]action value=close_receipt [19:27:45]process_action close_receipt [19:27:45]cmd_close_receipt [19:27:45]MH_GetDate [19:27:45]Write to MH i2c: F0 00 00 EB 17 F1 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: F0 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: F0 09 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: F0 09 00 EB 17 00 34 D5 92 66 1B 28 2A 66 CE [19:27:45]GetLastDocTimeStamp 1720898494 [19:27:45]current date 1720898868 [19:27:45]FM_GetShiftState [19:27:45]SAM_PROTO_GetShiftState [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 13 01 00 [19:27:45]Write to MH i2c: E2 08 00 EC 17 80 13 01 00 00 00 00 00 80 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0E 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0E 00 EC 17 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0B [19:27:45]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_GetShiftState done [19:27:45]FM_GetShiftState done [19:27:45]opened in 1720829379 [19:27:45]opened+sec_in_day 1720915779 [19:27:45]quantity*price = 66300 [19:27:45]sum+1 = 66301 [19:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 106 13.07.2024 19:27 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1937 ФПД: 194330406461914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192748&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1937&fm=194330406461914&tin=02508201610067®Number=0000000000177495&sum=66300 [19:27:46]StoreToDocumentArchive [19:27:46]shift 24 fd 1937 [19:27:46]save to /storage/0024/doc_00001937 [19:27:46]save last doc name /storage/0024/doc_00001937 to /storage/kkm_last_doc_name [19:27:46]save OK [19:27:46]Clear old archive folders... [19:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:46]tlvbuf is B6EAE090 [19:27:46]SAM_PROTO_ClearQueue [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 09 00 00 [19:27:46]Write to MH i2c: E2 08 00 F9 17 80 09 00 00 00 00 00 00 82 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_ClearQueue done [19:27:46]KKMCreateOFDPacket [19:27:46]OFDProtocolAddRootSTLVToBuf [19:27:46]FM_MakeSignedData [19:27:46]FM_MakeSignedData [19:27:46]SAM_PROTO_SignData [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 01 02 [19:27:46]Write to MH i2c: E2 08 00 FA 17 80 0D 01 02 00 00 00 00 8A [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=255 [19:27:46]MH_SAM_APDU [19:27: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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 34 D5 92 66 0E 04 04 00 18 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 91 07 00 00 35 04 06 00 B0 [19:27:46]Write to MH i2c: E2 02 01 FB 17 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 34 D5 92 66 0E 04 04 00 18 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 91 07 00 00 35 04 06 00 B0 00 00 86 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=10 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 02 02 05 BE 12 D8 A1 DA [19:27:46]Write to MH i2c: E2 0D 00 FC 17 80 0D 02 02 05 00 BE 12 D8 A1 DA 00 00 BA [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 03 02 [19:27:46]Write to MH i2c: E2 08 00 FD 17 80 0D 03 02 00 00 00 00 8F [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0B 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0B 00 FD 17 00 CB E8 19 06 13 60 3A 4B 90 00 5A [19:27:46]RAPDU: CB E8 19 06 13 60 3A 4B 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_SignData done [19:27:46]FM_MakeSignedData done [19:27:46]CreateOFDProtocolMessage [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 11 00 00 [19:27:46]Write to MH i2c: E2 08 00 FE 17 80 11 00 00 00 00 00 00 8F [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 FE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E5 [19:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:27:46]wFMCommunicate OK [19:27:46]CreateOFDProtocolMessage done [19:27:46]OFDSenderStorePacket 1937 [19:27:46]StoreOFDPacket docnum=1937 [19:27: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 97 8D 07 01 02 F2 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 34 D5 92 66 0E 04 04 00 18 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 91 07 00 00 35 04 06 00 B0 BE 12 D8 A1 DA CB E8 19 06 13 60 3A 4B [19:27:46]CheckFolder [19:27:46]dirname=/storage/ofd_packets [19:27:46]CheckFolder done [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00001937 [19:27:46]NVStorageSaveData ofd_packets/00001937 [19:27:46]File name is /storage/ofd_packets/00001937 [19:27:46]Write 301 bytes [19:27:46]NVStorageSaveData done [19:27:46]OFDSenderStorePacket done [19:27:46]KKMCreateOFDPacket done [19:27:46]NVStorageSaveData kkm_last_timestamp [19:27:46]File name is /storage/kkm_last_timestamp [19:27:46]Write 4 bytes [19:27:46]NVStorageSaveData done [19:27:46]OFD Sender: Processing packet 1937 [packets to send 1, broken 0] [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00001937 [19:27:46]OFD Sender: To server: pG, [19:27:46]CommunicateWithHost lk.salyk.kg:30040 [19:27:46]ConnectInit lk.salyk.kg [19:27:46]ExternCall_PrintAddStr [19:27:46]wPrintStart [19:27:46]Write to MH i2c: 01 00 00 FF 17 16 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 FF 17 00 00 00 00 00 FF 0F 2B [19:27:46]RasterBufferAndPrint [19:27:46]line Счет N : (1)1619129 [19:27:46]line ИНН: 02508201610067 [19:27:46]line Контрольно-Кассовый Чек [19:27:46]line ПРОДАЖА [19:27:46]line ТРК (МРК, ГНК) : 43 [19:27:46]line Товар: 2710124130 [19:27:46]line Аи-92-К-5 [19:27:46]line 10.000 * 66.30 [19:27:46]line = 663.00 [19:27:46]line НДС 12% НСП 1% [19:27:46]line > о реализуемом товаре [19:27:46]line ИТОГО: 663.00 [19:27:46]line НСП 1% : 5.87 [19:27:46]line НДС 12% : 70.41 [19:27:46]line Наличными: 663.00 [19:27:46]line Безнал.: 0.00 [19:27:46]line Место: АЗС № 76 "Партнер Нефть" [19:27:46]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:27:46]line СНО: Общий режим [19:27:46]line Чек 106 13.07.2024 19:27 [19:27:46]line Смена: 24 ФФД: 1.0 [19:27:46]line ЗНМ: 0300000124 [19:27:46]line РНМ: 0000000000177495 [19:27:46]line Версия ККМ: 001 [19:27:46]line ФМ: 0000000002098592 [19:27:46]line ФД: 1937 [19:27:46]line ФПД: 194330406461914 [19:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192748&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1937&fm=194330406461914&tin=02508201610067®Number=0000000000177495&sum=66300 [19:27:47]Connected sock=11 [19:27:47]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 97 8D 07 01 02 F2 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 34 D5 92 66 0E 04 04 00 18 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 91 07 00 00 35 04 06 00 B0 BE 12 D8 A1 DA CB E8 19 06 13 60 3A 4B [19:27:47]written 0, free lines is 4095 [19:27: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 8A B8 47 00 D0 1F 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 91 07 00 00 F4 03 04 00 69 80 92 66 B6 04 01 00 00 BA CD C4 E9 60 B1 36 31 [19:27:47]CommunicateWithHost err = 0 [19:27:47]CheckOFDResponse [19:27:47]1017 (14) - 77093643461234 [19:27:47]1041 (16) - 0000000002098592 [19:27:47]1040 (4) - 1937 [19:27:47]1012 (4) - 13.07.2024 13:26 [19:27:47]1206 (1) - 0 [19:27:47]OFD Sender: Remove packet 1937 [19:27:47]ProducePacketName [19:27:47]name=ofd_packets/00001937 [19:27:47]NVStorageDeleteData [19:27:47]Write to MH i2c: 01 00 00 27 18 3F [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 07 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 07 00 27 18 00 00 00 00 00 19 0D 6C [19:27:47]RasterBufferAndPrint [19:27:47]line [19:27:47]line [19:27:47]line [19:27:47]line [19:27:47]line [19:27:47]written 0, free lines is 3359 [19:27:47]MH_Cut [19:27:47]Write to MH i2c: D1 01 00 2E 18 01 18 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: D1 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: D1 01 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: D1 01 00 2E 18 00 17 [19:27:47]Write to MH i2c: 01 00 00 2F 18 47 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]OFD Sender: No OFD packet to send [19:27:48]*** Cut start [19:27:48]*** Partial cut [19:27:48]*** CUTSNS_PIN = 1 [19:27:48]*** CUTSNS_PIN = 0 [19:27:48]*** Brake cut motor [19:27:48]Read from MH i2c: 01 [19:27:48]MH_I2C_Read... [19:27:48]*** Stop cut motor [19:27:48]*** Cut end [19:27:48]Read from MH i2c: 01 07 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 2F 18 00 00 00 00 00 FF 0F 5C [19:27:48]process_action close_receipt done [19:27:48]requested_data is exist [19:27:48]produce_requested_data [19:27:48]requested_item fm.sn is exist - process it [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 11 00 00 [19:27:48]Write to MH i2c: E2 08 00 30 18 80 11 00 00 00 00 00 00 C2 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:49]Read from MH i2c: E2 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 17 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 17 00 30 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 18 [19:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:27:49]wFMCommunicate OK [19:27:49]requested_item fd.num is exist - process it [19:27:49]SAM_PROTO_GetFieldsCounters [19:27:49]wFMCommunicate request_size=4 [19:27:49]MH_SAM_APDU [19:27:49]CAPDU: 80 13 00 00 [19:27:49]Write to MH i2c: E2 08 00 31 18 80 13 00 00 00 00 00 00 C5 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:49]Read from MH i2c: E2 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 62 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 62 00 31 18 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 91 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [19:27: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 91 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:49]wFMCommunicate OK [19:27:49]SAM_PROTO_GetFieldsCounters done [19:27:49]requested_item shift.num is exist - process it [19:27:49]requested_item shift.opened is exist - process it [19:27:49]req_shift_opened [19:27:49]FM_GetShiftState [19:27:49]SAM_PROTO_GetShiftState [19:27:49]wFMCommunicate request_size=4 [19:27:49]MH_SAM_APDU [19:27:49]CAPDU: 80 13 01 00 [19:27:49]Write to MH i2c: E2 08 00 32 18 80 13 01 00 00 00 00 00 C7 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:49]Read from MH i2c: E2 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 0E 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 0E 00 32 18 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 52 [19:27:49]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:27:49]wFMCommunicate OK [19:27:49]SAM_PROTO_GetShiftState done [19:27:49]FM_GetShiftState done [19:27:49]req_shift_opened done [19:27:49]requested_item shift.open_date is exist - process it [19:27:49]req_shift_open_date [19:27:49]req_shift_open_date done [19:27:49]produce_requested_data done [19:27:49]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1937,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:27:49]process_action_free close_receipt [19:27:49]json_value_free [19:27:49]json_value_free done [19:27:49]process_json_proto returns [19:27:49]Send response to host [19:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1937,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:27:49]free response buf [19:27:49]execute_script done [19:27:49]execute_script returns [19:27:49]free content buf [19:27:49]Sock 8.Close socket [19:27:49]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:37]accept exits with 9 [19:37:37]New connection [19:37:37]New thread 3066977636 created [19:37:37]Thread 3066834276 joined [19:37:37]Waiting for new connection... [19:37:37] Sock 9.Parse request [19:37:37]Sock 9.Check first char [19:37:37]Sock 9.First char is OK [19:37:37]request: POST /json_proto HTTP/1.0 [19:37:37]Method: POST [19:37:37]URL: /json_proto [19:37:37]Method is POST - this is cgi request [19:37:37]url: /json_proto [19:37:37]query_string will be loaded in cgi processing [19:37:37]execute_cgi json_proto POST (null) [19:37:37]execute_cgi path=json_proto method=POST [19:37:37]POST find Content-Length [19:37:37]Host: 172.17.35.133:8080 [19:37:37]Content-Length: 688 [19:37:37]Content-Type: application/json [19:37:37] [19:37:37]POST finish read [19:37:37]Found Content-Length = 688 [19:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:37]execute_script... [19:37:37]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)1619131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:37]POST & json_proto [19:37:37]process_json_proto [19:37:37]json parsed OK: [19:37:37]protocol is kg_v1.0 [19:37:37]action value=close_receipt [19:37:37]process_action close_receipt [19:37:37]cmd_close_receipt [19:37:37]MH_GetDate [19:37:37]Write to MH i2c: F0 00 00 33 18 3A [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: F0 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: F0 09 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: F0 09 00 33 18 00 84 D7 92 66 1B 28 2A 66 69 [19:37:37]GetLastDocTimeStamp 1720898868 [19:37:37]current date 1720899460 [19:37:37]FM_GetShiftState [19:37:37]SAM_PROTO_GetShiftState [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 01 00 [19:37:37]Write to MH i2c: E2 08 00 34 18 80 13 01 00 00 00 00 00 C9 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 34 18 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 54 [19:37:37]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetShiftState done [19:37:37]FM_GetShiftState done [19:37:37]opened in 1720829379 [19:37:37]opened+sec_in_day 1720915779 [19:37:37]quantity*price = 100042 [19:37:37]sum+1 = 100044 [19:37:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 107 13.07.2024 19:37 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1938 ФПД: 159285015055206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193740&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1938&fm=159285015055206&tin=02508201610067®Number=0000000000177495&sum=100000 [19:37:38]StoreToDocumentArchive [19:37:38]shift 24 fd 1938 [19:37:38]save to /storage/0024/doc_00001938 [19:37:38]save last doc name /storage/0024/doc_00001938 to /storage/kkm_last_doc_name [19:37:38]save OK [19:37:38]Clear old archive folders... [19:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:37:38]tlvbuf is B6DAE010 [19:37:38]SAM_PROTO_ClearQueue [19:37:38]wFMCommunicate request_size=4 [19:37:38]MH_SAM_APDU [19:37:38]CAPDU: 80 09 00 00 [19:37:38]Write to MH i2c: E2 08 00 41 18 80 09 00 00 00 00 00 00 CB [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:38]Read from MH i2c: E2 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 03 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [19:37:38]RAPDU: 90 00 [19:37:38]wFMCommunicate OK [19:37:38]SAM_PROTO_ClearQueue done [19:37:38]KKMCreateOFDPacket [19:37:38]OFDProtocolAddRootSTLVToBuf [19:37:38]FM_MakeSignedData [19:37:38]FM_MakeSignedData [19:37:38]SAM_PROTO_SignData [19:37:38]wFMCommunicate request_size=4 [19:37:38]MH_SAM_APDU [19:37:38]CAPDU: 80 0D 01 02 [19:37:38]Write to MH i2c: E2 08 00 42 18 80 0D 01 02 00 00 00 00 D3 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]wFMCommunicate request_size=255 [19:37:39]MH_SAM_APDU [19:37:39]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 D7 92 66 0E 04 04 00 18 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 92 07 00 00 35 04 06 00 [19:37:39]Write to MH i2c: E2 02 01 43 18 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 D7 92 66 0E 04 04 00 18 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 92 07 00 00 35 04 06 00 00 00 D3 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]wFMCommunicate request_size=11 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 0D 02 02 06 90 DE 6E BD 8B 66 [19:37:39]Write to MH i2c: E2 0E 00 44 18 80 0D 02 02 06 00 90 DE 6E BD 8B 66 00 00 6C [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 0D 03 02 [19:37:39]Write to MH i2c: E2 08 00 45 18 80 0D 03 02 00 00 00 00 D8 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 0B 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 0B 00 45 18 00 A0 D1 D9 D3 8D 5F 3B 9E 90 00 BB [19:37:39]RAPDU: A0 D1 D9 D3 8D 5F 3B 9E 90 00 [19:37:39]wFMCommunicate OK [19:37:39]SAM_PROTO_SignData done [19:37:39]FM_MakeSignedData done [19:37:39]CreateOFDProtocolMessage [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 11 00 00 [19:37:39]Write to MH i2c: E2 08 00 46 18 80 11 00 00 00 00 00 00 D8 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 46 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 2E [19:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:37:39]wFMCommunicate OK [19:37:39]CreateOFDProtocolMessage done [19:37:39]OFDSenderStorePacket 1938 [19:37:39]StoreOFDPacket docnum=1938 [19:37: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 10 01 00 00 24 77 08 01 96 02 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 D7 92 66 0E 04 04 00 18 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 92 07 00 00 35 04 06 00 90 DE 6E BD 8B 66 A0 D1 D9 D3 8D 5F 3B 9E [19:37:39]CheckFolder [19:37:39]dirname=/storage/ofd_packets [19:37:39]CheckFolder done [19:37:39]ProducePacketName [19:37:39]name=ofd_packets/00001938 [19:37:39]NVStorageSaveData ofd_packets/00001938 [19:37:39]File name is /storage/ofd_packets/00001938 [19:37:39]Write 302 bytes [19:37:39]NVStorageSaveData done [19:37:39]OFDSenderStorePacket done [19:37:39]KKMCreateOFDPacket done [19:37:39]NVStorageSaveData kkm_last_timestamp [19:37:39]File name is /storage/kkm_last_timestamp [19:37:39]Write 4 bytes [19:37:39]NVStorageSaveData done [19:37:39]ExternCall_PrintAddStr [19:37:39]wPrintStart [19:37:39]Write to MH i2c: 01 00 00 47 18 5F [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 07 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 FF 0F 74 [19:37:39]RasterBufferAndPrint [19:37:39]line Счет N : (1)1619131 [19:37:39]line ИНН: 02508201610067 [19:37:39]line Контрольно-Кассовый Чек [19:37:39]line ПРОДАЖА [19:37:39]line ТРК (МРК, ГНК) : 51 [19:37:39]line Товар: 2710194210 [19:37:39]line ДТ(л)-К-4 [19:37:39]line 13.780 * 72.60 [19:37:39]line = 1000.43 [19:37:39]line НДС 12% НСП 1% [19:37:39]line > о реализуемом товаре [19:37:39]line ОКРУГЛЕНИЕ: -0.43 [19:37:39]line ИТОГО: 1000.00 [19:37:39]line Внесено: 1000.00 [19:37:39]line СДАЧА: 0.00 [19:37:39]line НСП 1% : 8.85 [19:37:39]line НДС 12% : 106.24 [19:37:39]line Наличными: 1000.00 [19:37:39]line Безнал.: 0.00 [19:37:39]line Место: АЗС № 76 "Партнер Нефть" [19:37:39]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:37:39]line СНО: Общий режим [19:37:39]line Чек 107 13.07.2024 19:37 [19:37:39]line Смена: 24 ФФД: 1.0 [19:37:39]line ЗНМ: 0300000124 [19:37:39]line РНМ: 0000000000177495 [19:37:39]line Версия ККМ: 001 [19:37:39]line ФМ: 0000000002098592 [19:37:39]line ФД: 1938 [19:37:39]line ФПД: 159285015055206 [19:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193740&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1938&fm=159285015055206&tin=02508201610067®Number=0000000000177495&sum=100000 [19:37:39]OFD Sender: Processing packet 1938 [packets to send 1, broken 0] [19:37:39]ProducePacketName [19:37:39]name=ofd_packets/00001938 [19:37:39]OFD Sender: To server: pG, [19:37:39]CommunicateWithHost lk.salyk.kg:30040 [19:37:39]ConnectInit lk.salyk.kg [19:37:39]written 0, free lines is 4095 [19:37:39]Connected sock=11 [19:37: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 10 01 00 00 24 77 08 01 96 02 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 D7 92 66 0E 04 04 00 18 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 92 07 00 00 35 04 06 00 90 DE 6E BD 8B 66 A0 D1 D9 D3 8D 5F 3B 9E [19:37: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 DE 01 47 00 F7 3B 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 92 07 00 00 F4 03 04 00 BA 82 92 66 B6 04 01 00 00 05 F3 10 78 1E 70 4E 61 [19:37:40]CommunicateWithHost err = 0 [19:37:40]CheckOFDResponse [19:37:40]1017 (14) - 77093643461234 [19:37:40]1041 (16) - 0000000002098592 [19:37:40]1040 (4) - 1938 [19:37:40]1012 (4) - 13.07.2024 13:35 [19:37:40]1206 (1) - 0 [19:37:40]OFD Sender: Remove packet 1938 [19:37:40]ProducePacketName [19:37:40]name=ofd_packets/00001938 [19:37:40]NVStorageDeleteData [19:37:40]Write to MH i2c: 01 00 00 72 18 8A [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 07 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 E9 0C 86 [19:37:40]RasterBufferAndPrint [19:37:40]line [19:37:40]line [19:37:40]line [19:37:40]line [19:37:40]line [19:37:40]written 0, free lines is 3311 [19:37:40]MH_Cut [19:37:40]Write to MH i2c: D1 01 00 79 18 01 63 [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: D1 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: D1 01 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: D1 01 00 79 18 00 62 [19:37:40]Write to MH i2c: 01 00 00 7A 18 92 [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]OFD Sender: No OFD packet to send [19:37:40]*** Cut start [19:37:40]*** Partial cut [19:37:40]*** CUTSNS_PIN = 1 [19:37:41]*** CUTSNS_PIN = 0 [19:37:41]*** Brake cut motor [19:37:41]Read from MH i2c: 01 [19:37:41]MH_I2C_Read... [19:37:41]*** Stop cut motor [19:37:41]*** Cut end [19:37:41]Read from MH i2c: 01 07 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 FF 0F A7 [19:37:41]process_action close_receipt done [19:37:41]requested_data is exist [19:37:41]produce_requested_data [19:37:41]requested_item fm.sn is exist - process it [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 11 00 00 [19:37:41]Write to MH i2c: E2 08 00 7B 18 80 11 00 00 00 00 00 00 0D [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 17 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 17 00 7B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 63 [19:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:37:41]wFMCommunicate OK [19:37:41]requested_item fd.num is exist - process it [19:37:41]SAM_PROTO_GetFieldsCounters [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 13 00 00 [19:37:41]Write to MH i2c: E2 08 00 7C 18 80 13 00 00 00 00 00 00 10 [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 62 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 62 00 7C 18 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 92 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [19:37: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 92 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:41]wFMCommunicate OK [19:37:41]SAM_PROTO_GetFieldsCounters done [19:37:41]requested_item shift.num is exist - process it [19:37:41]requested_item shift.opened is exist - process it [19:37:41]req_shift_opened [19:37:41]FM_GetShiftState [19:37:41]SAM_PROTO_GetShiftState [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 13 01 00 [19:37:41]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 0E 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 9D [19:37:41]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:37:41]wFMCommunicate OK [19:37:41]SAM_PROTO_GetShiftState done [19:37:41]FM_GetShiftState done [19:37:41]req_shift_opened done [19:37:41]requested_item shift.open_date is exist - process it [19:37:41]req_shift_open_date [19:37:41]req_shift_open_date done [19:37:41]produce_requested_data done [19:37:41]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1938,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:37:41]process_action_free close_receipt [19:37:41]json_value_free [19:37:41]json_value_free done [19:37:41]process_json_proto returns [19:37:41]Send response to host [19:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1938,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:37:41]free response buf [19:37:41]execute_script done [19:37:41]execute_script returns [19:37:41]free content buf [19:37:41]Sock 9.Close socket [19:37:41]Sock 9.Thread stoped [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:31]accept exits with 8 [19:38:31]New connection [19:38:31]New thread 3066834276 created [19:38:31]Thread 3066977636 joined [19:38:31]Waiting for new connection... [19:38:31] Sock 8.Parse request [19:38:31]Sock 8.Check first char [19:38:31]Sock 8.First char is OK [19:38:31]request: POST /json_proto HTTP/1.0 [19:38:31]Method: POST [19:38:31]URL: /json_proto [19:38:31]Method is POST - this is cgi request [19:38:31]url: /json_proto [19:38:31]query_string will be loaded in cgi processing [19:38:31]execute_cgi json_proto POST (null) [19:38:31]execute_cgi path=json_proto method=POST [19:38:31]POST find Content-Length [19:38:31]Host: 172.17.35.133:8080 [19:38:31]Content-Length: 768 [19:38:31]Content-Type: application/json [19:38:31] [19:38:31]POST finish read [19:38:31]Found Content-Length = 768 [19:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619132", "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" : 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" ] } } [19:38:31]execute_script... [19:38: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 : (1)1619132", "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" : 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" ] } } [19:38:31]POST & json_proto [19:38:31]process_json_proto [19:38:31]json parsed OK: [19:38:31]protocol is kg_v1.0 [19:38:31]action value=close_receipt [19:38:31]process_action close_receipt [19:38:31]cmd_close_receipt [19:38:31]MH_GetDate [19:38:31]Write to MH i2c: F0 00 00 7E 18 85 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: F0 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: F0 09 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: F0 09 00 7E 18 00 BA D7 92 66 1B 28 2A 66 EA [19:38:31]GetLastDocTimeStamp 1720899460 [19:38:31]current date 1720899514 [19:38:31]FM_GetShiftState [19:38:31]SAM_PROTO_GetShiftState [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 13 01 00 [19:38:31]Write to MH i2c: E2 08 00 7F 18 80 13 01 00 00 00 00 00 14 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0E 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0E 00 7F 18 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 9F [19:38:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_GetShiftState done [19:38:31]FM_GetShiftState done [19:38:31]opened in 1720829379 [19:38:31]opened+sec_in_day 1720915779 [19:38:31]quantity*price = 50056 [19:38:31]sum+1 = 50058 [19:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.57 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.57 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 108 13.07.2024 19:38 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000002098592 ФД: 1939 ФПД: 250543131253460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193834&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1939&fm=250543131253460&tin=02508201610067®Number=0000000000177495&sum=50057 [19:38:32]StoreToDocumentArchive [19:38:32]shift 24 fd 1939 [19:38:32]save to /storage/0024/doc_00001939 [19:38:32]save last doc name /storage/0024/doc_00001939 to /storage/kkm_last_doc_name [19:38:32]save OK [19:38:32]Clear old archive folders... [19:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:32]tlvbuf is 0103DBB0 [19:38:32]SAM_PROTO_ClearQueue [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 09 00 00 [19:38:32]Write to MH i2c: E2 08 00 8C 18 80 09 00 00 00 00 00 00 16 [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 03 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [19:38:32]RAPDU: 90 00 [19:38:32]wFMCommunicate OK [19:38:32]SAM_PROTO_ClearQueue done [19:38:32]KKMCreateOFDPacket [19:38:32]OFDProtocolAddRootSTLVToBuf [19:38:32]FM_MakeSignedData [19:38:32]FM_MakeSignedData [19:38:32]SAM_PROTO_SignData [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 0D 01 02 [19:38:32]Write to MH i2c: E2 08 00 8D 18 80 0D 01 02 00 00 00 00 1E [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 03 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 03 00 8D 18 00 90 00 19 [19:38:32]RAPDU: 90 00 [19:38:32]wFMCommunicate OK [19:38:32]wFMCommunicate request_size=255 [19:38:32]MH_SAM_APDU [19:38:32]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 6C 00 00 00 F4 03 04 00 BA D7 92 66 0E 04 04 00 18 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 93 07 00 00 35 04 06 00 E3 [19:38:32]Write to MH i2c: E2 02 01 8E 18 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 6C 00 00 00 F4 03 04 00 BA D7 92 66 0E 04 04 00 18 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 93 07 00 00 35 04 06 00 E3 00 00 CF [19:38:32]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 03 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 03 00 8E 18 00 90 00 1A [19:38:33]RAPDU: 90 00 [19:38:33]wFMCommunicate OK [19:38:33]wFMCommunicate request_size=10 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 0D 02 02 05 DE 1E 56 DA D4 [19:38:33]Write to MH i2c: E2 0D 00 8F 18 80 0D 02 02 05 00 DE 1E 56 DA D4 00 00 2B [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 03 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 03 00 8F 18 00 90 00 1B [19:38:33]RAPDU: 90 00 [19:38:33]wFMCommunicate OK [19:38:33]wFMCommunicate request_size=4 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 0D 03 02 [19:38:33]Write to MH i2c: E2 08 00 90 18 80 0D 03 02 00 00 00 00 23 [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 0B 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 0B 00 90 18 00 4C B6 CF 3A C1 DE 06 67 90 00 3B [19:38:33]RAPDU: 4C B6 CF 3A C1 DE 06 67 90 00 [19:38:33]wFMCommunicate OK [19:38:33]SAM_PROTO_SignData done [19:38:33]FM_MakeSignedData done [19:38:33]CreateOFDProtocolMessage [19:38:33]wFMCommunicate request_size=4 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 11 00 00 [19:38:33]Write to MH i2c: E2 08 00 91 18 80 11 00 00 00 00 00 00 23 [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 17 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 17 00 91 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 79 [19:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:38:33]wFMCommunicate OK [19:38:33]CreateOFDProtocolMessage done [19:38:33]OFDSenderStorePacket 1939 [19:38:33]StoreOFDPacket docnum=1939 [19:38: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 0F 01 00 00 A3 4C 07 01 C8 41 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 6C 00 00 00 F4 03 04 00 BA D7 92 66 0E 04 04 00 18 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 93 07 00 00 35 04 06 00 E3 DE 1E 56 DA D4 4C B6 CF 3A C1 DE 06 67 [19:38:33]CheckFolder [19:38:33]dirname=/storage/ofd_packets [19:38:33]CheckFolder done [19:38:33]ProducePacketName [19:38:33]name=ofd_packets/00001939 [19:38:33]NVStorageSaveData ofd_packets/00001939 [19:38:33]File name is /storage/ofd_packets/00001939 [19:38:33]Write 301 bytes [19:38:33]NVStorageSaveData done [19:38:33]OFDSenderStorePacket done [19:38:33]KKMCreateOFDPacket done [19:38:33]NVStorageSaveData kkm_last_timestamp [19:38:33]File name is /storage/kkm_last_timestamp [19:38:33]Write 4 bytes [19:38:33]NVStorageSaveData done [19:38:33]ExternCall_PrintAddStr [19:38:33]wPrintStart [19:38:33]Write to MH i2c: 01 00 00 92 18 AA [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: 01 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: 01 07 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: 01 07 00 92 18 00 00 00 00 00 FF 0F BF [19:38:33]RasterBufferAndPrint [19:38:33]line Счет N : (1)1619132 [19:38:33]line ИНН: 02508201610067 [19:38:33]line Контрольно-Кассовый Чек [19:38:33]line ПРОДАЖА [19:38:33]line ТРК (МРК, ГНК) : 53 [19:38:33]line Товар: 2710124130 [19:38:33]line Аи-92-К-5 [19:38:33]line 7.550 * 66.30 [19:38:33]line = 500.57 [19:38:33]line НДС 12% НСП 1% [19:38:33]line > о реализуемом товаре [19:38:33]line ИТОГО: 500.57 [19:38:33]line НСП 1% : 4.43 [19:38:33]line НДС 12% : 53.16 [19:38:33]line Наличными: 0.00 [19:38:33]line Безнал.: 500.57 [19:38:33]line Место: АЗС № 76 "Партнер Нефть" [19:38:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:38:33]line СНО: Общий режим [19:38:33]line Чек 108 13.07.2024 19:38 [19:38:33]line Смена: 24 ФФД: 1.0 [19:38:33]line ЗНМ: 0300000124 [19:38:33]line РНМ: 0000000000177495 [19:38:33]line Версия ККМ: 001 [19:38:33]line Платежная система: cash2u [19:38:33]line ФМ: 0000000002098592 [19:38:33]line ФД: 1939 [19:38:33]line ФПД: 250543131253460 [19:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193834&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1939&fm=250543131253460&tin=02508201610067®Number=0000000000177495&sum=50057 [19:38:33]OFD Sender: Processing packet 1939 [packets to send 1, broken 0] [19:38:33]ProducePacketName [19:38:33]name=ofd_packets/00001939 [19:38:33]OFD Sender: To server: pG, [19:38:33]CommunicateWithHost lk.salyk.kg:30040 [19:38:33]ConnectInit lk.salyk.kg [19:38:33]written 0, free lines is 4095 [19:38:33]Connected sock=10 [19:38:33]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 A3 4C 07 01 C8 41 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 6C 00 00 00 F4 03 04 00 BA D7 92 66 0E 04 04 00 18 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 93 07 00 00 35 04 06 00 E3 DE 1E 56 DA D4 4C B6 CF 3A C1 DE 06 67 [19:38: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 62 4B 47 00 17 38 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 93 07 00 00 F4 03 04 00 F0 82 92 66 B6 04 01 00 00 77 97 80 33 7E 0E 7A 48 [19:38:34]CommunicateWithHost err = 0 [19:38:34]CheckOFDResponse [19:38:34]1017 (14) - 77093643461234 [19:38:34]1041 (16) - 0000000002098592 [19:38:34]1040 (4) - 1939 [19:38:34]1012 (4) - 13.07.2024 13:36 [19:38:34]1206 (1) - 0 [19:38:34]OFD Sender: Remove packet 1939 [19:38:34]ProducePacketName [19:38:34]name=ofd_packets/00001939 [19:38:34]NVStorageDeleteData [19:38:34]Write to MH i2c: 01 00 00 BB 18 D3 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 07 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 10 0D F7 [19:38:34]RasterBufferAndPrint [19:38:34]line [19:38:34]line [19:38:34]line [19:38:34]line [19:38:34]line [19:38:34]written 0, free lines is 3349 [19:38:34]MH_Cut [19:38:34]Write to MH i2c: D1 01 00 C2 18 01 AC [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: D1 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: D1 01 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: D1 01 00 C2 18 00 AB [19:38:34]Write to MH i2c: 01 00 00 C3 18 DB [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]OFD Sender: No OFD packet to send [19:38:34]*** Cut start [19:38:34]*** Partial cut [19:38:34]*** CUTSNS_PIN = 1 [19:38:34]*** CUTSNS_PIN = 0 [19:38:35]*** Brake cut motor [19:38:35]Read from MH i2c: 01 [19:38:35]MH_I2C_Read... [19:38:35]*** Stop cut motor [19:38:35]*** Cut end [19:38:35]Read from MH i2c: 01 07 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 FF 0F F0 [19:38:35]process_action close_receipt done [19:38:35]requested_data is exist [19:38:35]produce_requested_data [19:38:35]requested_item fm.sn is exist - process it [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 11 00 00 [19:38:35]Write to MH i2c: E2 08 00 C4 18 80 11 00 00 00 00 00 00 56 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 C4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AC [19:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:38:35]wFMCommunicate OK [19:38:35]requested_item fd.num is exist - process it [19:38:35]SAM_PROTO_GetFieldsCounters [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 13 00 00 [19:38:35]Write to MH i2c: E2 08 00 C5 18 80 13 00 00 00 00 00 00 59 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 62 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 62 00 C5 18 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 93 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:38: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 93 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_GetFieldsCounters done [19:38:35]requested_item shift.num is exist - process it [19:38:35]requested_item shift.opened is exist - process it [19:38:35]req_shift_opened [19:38:35]FM_GetShiftState [19:38:35]SAM_PROTO_GetShiftState [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 13 01 00 [19:38:35]Write to MH i2c: E2 08 00 C6 18 80 13 01 00 00 00 00 00 5B [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0E 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0E 00 C6 18 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E6 [19:38:35]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_GetShiftState done [19:38:35]FM_GetShiftState done [19:38:35]req_shift_opened done [19:38:35]requested_item shift.open_date is exist - process it [19:38:35]req_shift_open_date [19:38:35]req_shift_open_date done [19:38:35]produce_requested_data done [19:38:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1939,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:38:35]process_action_free close_receipt [19:38:35]json_value_free [19:38:35]json_value_free done [19:38:35]process_json_proto returns [19:38:35]Send response to host [19:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1939,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:38:35]free response buf [19:38:35]execute_script done [19:38:35]execute_script returns [19:38:35]free content buf [19:38:35]Sock 8.Close socket [19:38:35]Sock 8.Thread stoped [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:04]accept exits with 9 [19:39:04]New connection [19:39:04]New thread 3066977636 created [19:39:04]Thread 3066834276 joined [19:39:04]Waiting for new connection... [19:39:04] Sock 9.Parse request [19:39:04]Sock 9.Check first char [19:39:04]Sock 9.First char is OK [19:39:04]request: POST /json_proto HTTP/1.0 [19:39:04]Method: POST [19:39:04]URL: /json_proto [19:39:04]Method is POST - this is cgi request [19:39:04]url: /json_proto [19:39:04]query_string will be loaded in cgi processing [19:39:04]execute_cgi json_proto POST (null) [19:39:04]execute_cgi path=json_proto method=POST [19:39:04]POST find Content-Length [19:39:04]Host: 172.17.35.133:8080 [19:39:04]Content-Length: 849 [19:39:04]Content-Type: application/json [19:39:04] [19:39:04]POST finish read [19:39:04]Found Content-Length = 849 [19:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 90.000, "sum" : 6534.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" : 6534.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:04]execute_script... [19:39: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 : (1)1619130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 90.000, "sum" : 6534.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" : 6534.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:04]POST & json_proto [19:39:04]process_json_proto [19:39:04]json parsed OK: [19:39:04]protocol is kg_v1.0 [19:39:04]action value=close_receipt [19:39:04]process_action close_receipt [19:39:04]cmd_close_receipt [19:39:04]MH_GetDate [19:39:04]Write to MH i2c: F0 00 00 C7 18 CE [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: F0 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: F0 09 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: F0 09 00 C7 18 00 DB D7 92 66 1B 28 2A 66 54 [19:39:04]GetLastDocTimeStamp 1720899514 [19:39:04]current date 1720899547 [19:39:04]FM_GetShiftState [19:39:04]SAM_PROTO_GetShiftState [19:39:04]wFMCommunicate request_size=4 [19:39:04]MH_SAM_APDU [19:39:04]CAPDU: 80 13 01 00 [19:39:04]Write to MH i2c: E2 08 00 C8 18 80 13 01 00 00 00 00 00 5D [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:04]Read from MH i2c: E2 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 0E 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 0E 00 C8 18 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E8 [19:39:04]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:39:04]wFMCommunicate OK [19:39:04]SAM_PROTO_GetShiftState done [19:39:04]FM_GetShiftState done [19:39:04]opened in 1720829379 [19:39:04]opened+sec_in_day 1720915779 [19:39:04]quantity*price = 653400 [19:39:04]sum+1 = 653401 [19:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6534.00 НСП 1% : 57.82 НДС 12% : 693.88 Наличными: 0.00 Безнал.: 6534.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 109 13.07.2024 19:39 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1940 ФПД: 252214502002154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193907&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1940&fm=252214502002154&tin=02508201610067®Number=0000000000177495&sum=653400 [19:39:05]StoreToDocumentArchive [19:39:05]shift 24 fd 1940 [19:39:05]save to /storage/0024/doc_00001940 [19:39:05]save last doc name /storage/0024/doc_00001940 to /storage/kkm_last_doc_name [19:39:05]save OK [19:39:05]Clear old archive folders... [19:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:39:05]tlvbuf is B6EAE610 [19:39:05]SAM_PROTO_ClearQueue [19:39:05]wFMCommunicate request_size=4 [19:39:05]MH_SAM_APDU [19:39:05]CAPDU: 80 09 00 00 [19:39:05]Write to MH i2c: E2 08 00 D5 18 80 09 00 00 00 00 00 00 5F [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:05]Read from MH i2c: E2 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [19:39:05]RAPDU: 90 00 [19:39:05]wFMCommunicate OK [19:39:05]SAM_PROTO_ClearQueue done [19:39:05]KKMCreateOFDPacket [19:39:05]OFDProtocolAddRootSTLVToBuf [19:39:05]FM_MakeSignedData [19:39:05]FM_MakeSignedData [19:39:05]SAM_PROTO_SignData [19:39:05]wFMCommunicate request_size=4 [19:39:05]MH_SAM_APDU [19:39:05]CAPDU: 80 0D 01 02 [19:39:05]Write to MH i2c: E2 08 00 D6 18 80 0D 01 02 00 00 00 00 67 [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:05]Read from MH i2c: E2 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [19:39:05]RAPDU: 90 00 [19:39:05]wFMCommunicate OK [19:39:05]wFMCommunicate request_size=255 [19:39:05]MH_SAM_APDU [19:39:05]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 90 5F 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 58 F8 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F8 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F8 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DB D7 92 66 0E 04 04 00 18 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 94 07 00 00 35 04 06 00 [19:39:05]Write to MH i2c: E2 02 01 D7 18 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 90 5F 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 58 F8 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F8 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F8 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DB D7 92 66 0E 04 04 00 18 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 94 07 00 00 35 04 06 00 00 00 BB [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=11 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 02 02 06 E5 63 43 CC 8D EA [19:39:06]Write to MH i2c: E2 0E 00 D8 18 80 0D 02 02 06 00 E5 63 43 CC 8D EA 00 00 44 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 D8 18 00 90 00 64 [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 03 02 [19:39:06]Write to MH i2c: E2 08 00 D9 18 80 0D 03 02 00 00 00 00 6C [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0B 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0B 00 D9 18 00 C3 FF 91 DE 34 4A 14 2B 90 00 5B [19:39:06]RAPDU: C3 FF 91 DE 34 4A 14 2B 90 00 [19:39:06]wFMCommunicate OK [19:39:06]SAM_PROTO_SignData done [19:39:06]FM_MakeSignedData done [19:39:06]CreateOFDProtocolMessage [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 11 00 00 [19:39:06]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 17 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C2 [19:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:39:06]wFMCommunicate OK [19:39:06]CreateOFDProtocolMessage done [19:39:06]OFDSenderStorePacket 1940 [19:39:06]StoreOFDPacket docnum=1940 [19:39: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 10 01 00 00 01 49 08 01 B5 09 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 90 5F 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 58 F8 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F8 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F8 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DB D7 92 66 0E 04 04 00 18 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 94 07 00 00 35 04 06 00 E5 63 43 CC 8D EA C3 FF 91 DE 34 4A 14 2B [19:39:06]CheckFolder [19:39:06]dirname=/storage/ofd_packets [19:39:06]CheckFolder done [19:39:06]ProducePacketName [19:39:06]name=ofd_packets/00001940 [19:39:06]NVStorageSaveData ofd_packets/00001940 [19:39:06]File name is /storage/ofd_packets/00001940 [19:39:06]Write 302 bytes [19:39:06]NVStorageSaveData done [19:39:06]OFDSenderStorePacket done [19:39:06]KKMCreateOFDPacket done [19:39:06]NVStorageSaveData kkm_last_timestamp [19:39:06]File name is /storage/kkm_last_timestamp [19:39:06]Write 4 bytes [19:39:06]NVStorageSaveData done [19:39:06]ExternCall_PrintAddStr [19:39:06]wPrintStart [19:39:06]Write to MH i2c: 01 00 00 DB 18 F3 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 07 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 07 00 DB 18 00 00 00 00 00 FF 0F 08 [19:39:06]RasterBufferAndPrint [19:39:06]line Счет N : (1)1619130 [19:39:06]line ИНН: 02508201610067 [19:39:06]line Контрольно-Кассовый Чек [19:39:06]line ПРОДАЖА [19:39:06]line ТРК (МРК, ГНК) : 22 [19:39:06]line Товар: 2710194210 [19:39:06]line ДТ(л)-К-4 [19:39:06]line 90.000 * 72.60 [19:39:06]line = 6534.00 [19:39:06]line НДС 12% НСП 1% [19:39:06]line > о реализуемом товаре [19:39:06]line ИТОГО: 6534.00 [19:39:06]line НСП 1% : 57.82 [19:39:06]line НДС 12% : 693.88 [19:39:06]line Наличными: 0.00 [19:39:06]line Безнал.: 6534.00 [19:39:06]line Место: АЗС № 76 "Партнер Нефть" [19:39:06]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:39:06]line СНО: Общий режим [19:39:06]line Чек 109 13.07.2024 19:39 [19:39:06]line Смена: 24 ФФД: 1.0 [19:39:06]line ЗНМ: 0300000124 [19:39:06]line РНМ: 0000000000177495 [19:39:06]line Версия ККМ: 001 [19:39:06]line Платежная система: АКБ Кыргызстан [19:39:06]line ФМ: 0000000002098592 [19:39:06]line ФД: 1940 [19:39:06]line ФПД: 252214502002154 [19:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193907&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1940&fm=252214502002154&tin=02508201610067®Number=0000000000177495&sum=653400 [19:39:06]OFD Sender: Processing packet 1940 [packets to send 1, broken 0] [19:39:06]ProducePacketName [19:39:06]name=ofd_packets/00001940 [19:39:06]OFD Sender: To server: pG, [19:39:06]CommunicateWithHost lk.salyk.kg:30040 [19:39:06]ConnectInit lk.salyk.kg [19:39:06]written 0, free lines is 4095 [19:39:06]Connected sock=10 [19:39: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 10 01 00 00 01 49 08 01 B5 09 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 90 5F 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 58 F8 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F8 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F8 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DB D7 92 66 0E 04 04 00 18 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 94 07 00 00 35 04 06 00 E5 63 43 CC 8D EA C3 FF 91 DE 34 4A 14 2B [19:39: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 87 9B 47 00 9E AE 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 94 07 00 00 F4 03 04 00 11 83 92 66 B6 04 01 00 00 60 64 5F EB E2 C1 D5 EB [19:39:07]CommunicateWithHost err = 0 [19:39:07]CheckOFDResponse [19:39:07]1017 (14) - 77093643461234 [19:39:07]1041 (16) - 0000000002098592 [19:39:07]1040 (4) - 1940 [19:39:07]1012 (4) - 13.07.2024 13:37 [19:39:07]1206 (1) - 0 [19:39:07]OFD Sender: Remove packet 1940 [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00001940 [19:39:07]NVStorageDeleteData [19:39:07]Write to MH i2c: 01 00 00 05 19 1E [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 13 0D 45 [19:39:07]RasterBufferAndPrint [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]written 0, free lines is 3356 [19:39:07]MH_Cut [19:39:07]Write to MH i2c: D1 01 00 0C 19 01 F7 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 01 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 01 00 0C 19 00 F6 [19:39:07]Write to MH i2c: 01 00 00 0D 19 26 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]OFD Sender: No OFD packet to send [19:39:07]*** Cut start [19:39:07]*** Partial cut [19:39:07]*** CUTSNS_PIN = 1 [19:39:07]*** CUTSNS_PIN = 0 [19:39:08]*** Brake cut motor [19:39:08]Read from MH i2c: 01 [19:39:08]MH_I2C_Read... [19:39:08]*** Stop cut motor [19:39:08]*** Cut end [19:39:08]Read from MH i2c: 01 07 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 0D 19 00 00 00 00 00 FF 0F 3B [19:39:08]process_action close_receipt done [19:39:08]requested_data is exist [19:39:08]produce_requested_data [19:39:08]requested_item fm.sn is exist - process it [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 11 00 00 [19:39:08]Write to MH i2c: E2 08 00 0E 19 80 11 00 00 00 00 00 00 A1 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 17 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 17 00 0E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F7 [19:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:39:08]wFMCommunicate OK [19:39:08]requested_item fd.num is exist - process it [19:39:08]SAM_PROTO_GetFieldsCounters [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 13 00 00 [19:39:08]Write to MH i2c: E2 08 00 0F 19 80 13 00 00 00 00 00 00 A4 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 62 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 62 00 0F 19 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 94 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [19:39: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 94 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:08]wFMCommunicate OK [19:39:08]SAM_PROTO_GetFieldsCounters done [19:39:08]requested_item shift.num is exist - process it [19:39:08]requested_item shift.opened is exist - process it [19:39:08]req_shift_opened [19:39:08]FM_GetShiftState [19:39:08]SAM_PROTO_GetShiftState [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 13 01 00 [19:39:08]Write to MH i2c: E2 08 00 10 19 80 13 01 00 00 00 00 00 A6 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 0E 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 0E 00 10 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 31 [19:39:08]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:39:08]wFMCommunicate OK [19:39:08]SAM_PROTO_GetShiftState done [19:39:08]FM_GetShiftState done [19:39:08]req_shift_opened done [19:39:08]requested_item shift.open_date is exist - process it [19:39:08]req_shift_open_date [19:39:08]req_shift_open_date done [19:39:08]produce_requested_data done [19:39:08]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1940,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:39:08]process_action_free close_receipt [19:39:08]json_value_free [19:39:08]json_value_free done [19:39:08]process_json_proto returns [19:39:08]Send response to host [19:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1940,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:39:08]free response buf [19:39:08]execute_script done [19:39:08]execute_script returns [19:39:08]free content buf [19:39:08]Sock 9.Close socket [19:39:08]Sock 9.Thread stoped [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]accept exits with 8 [19:42:52]New connection [19:42:52]New thread 3066834276 created [19:42:52]Thread 3066977636 joined [19:42:52]Waiting for new connection... [19:42:52] Sock 8.Parse request [19:42:52]Sock 8.Check first char [19:42:52]Sock 8.First char is OK [19:42:52]request: POST /json_proto HTTP/1.0 [19:42:52]Method: POST [19:42:52]URL: /json_proto [19:42:52]Method is POST - this is cgi request [19:42:52]url: /json_proto [19:42:52]query_string will be loaded in cgi processing [19:42:52]execute_cgi json_proto POST (null) [19:42:52]execute_cgi path=json_proto method=POST [19:42:52]POST find Content-Length [19:42:52]Host: 172.17.35.133:8080 [19:42:52]Content-Length: 215 [19:42:52]Content-Type: application/json [19:42:52] [19:42:52]POST finish read [19:42:52]Found Content-Length = 215 [19:42:52]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" ] } } [19:42:52]execute_script... [19:42:52]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" ] } } [19:42:52]POST & json_proto [19:42:52]process_json_proto [19:42:52]json parsed OK: [19:42:52]protocol is kg_v1.0 [19:42:52]action value=get_value [19:42:52]process_action get_value [19:42:52]cmd_get_value [19:42:52]process_action get_value done [19:42:52]requested_data is exist [19:42:52]produce_requested_data [19:42:52]requested_item kkm.sn is exist - process it [19:42:52]requested_item kkm.ver is exist - process it [19:42:52]requested_item fm.sn is exist - process it [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 11 00 00 [19:42:52]Write to MH i2c: E2 08 00 11 19 80 11 00 00 00 00 00 00 A4 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 17 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 17 00 11 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FA [19:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:42:52]wFMCommunicate OK [19:42:52]requested_item fd.num is exist - process it [19:42:52]SAM_PROTO_GetFieldsCounters [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 13 00 00 [19:42:52]Write to MH i2c: E2 08 00 12 19 80 13 00 00 00 00 00 00 A7 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 62 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 62 00 12 19 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 94 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:42: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 94 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:52]wFMCommunicate OK [19:42:52]SAM_PROTO_GetFieldsCounters done [19:42:52]requested_item shift.num is exist - process it [19:42:52]requested_item shift.opened is exist - process it [19:42:52]req_shift_opened [19:42:52]FM_GetShiftState [19:42:52]SAM_PROTO_GetShiftState [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 13 01 00 [19:42:52]Write to MH i2c: E2 08 00 13 19 80 13 01 00 00 00 00 00 A9 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 0E 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 0E 00 13 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 34 [19:42:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:42:52]wFMCommunicate OK [19:42:52]SAM_PROTO_GetShiftState done [19:42:52]FM_GetShiftState done [19:42:52]req_shift_opened done [19:42:52]requested_item shift.open_date is exist - process it [19:42:52]req_shift_open_date [19:42:52]req_shift_open_date done [19:42:52]produce_requested_data done [19:42:52]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1940,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:42:52]process_action_free get_value [19:42:52]json_value_free [19:42:52]json_value_free done [19:42:52]process_json_proto returns [19:42:52]Send response to host [19:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1940,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:42:52]free response buf [19:42:52]execute_script done [19:42:52]execute_script returns [19:42:52]free content buf [19:42:52]Sock 8.Close socket [19:42:52]Sock 8.Thread stoped [19:42:52]accept exits with 9 [19:42:52]New connection [19:42:52]New thread 3066977636 created [19:42:52]Thread 3066834276 joined [19:42:52]Waiting for new connection... [19:42:52] Sock 9.Parse request [19:42:52]Sock 9.Check first char [19:42:52]Sock 9.First char is OK [19:42:52]request: POST /json_proto HTTP/1.0 [19:42:52]Method: POST [19:42:52]URL: /json_proto [19:42:52]Method is POST - this is cgi request [19:42:52]url: /json_proto [19:42:52]query_string will be loaded in cgi processing [19:42:52]execute_cgi json_proto POST (null) [19:42:52]execute_cgi path=json_proto method=POST [19:42:52]POST find Content-Length [19:42:52]Host: 172.17.35.133:8080 [19:42:52]Content-Length: 331 [19:42:52]Content-Type: application/json [19:42:52] [19:42:52]POST finish read [19:42:52]Found Content-Length = 331 [19:42:52]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" ] } } [19:42:52]execute_script... [19:42:52]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" ] } } [19:42:52]POST & json_proto [19:42:52]process_json_proto [19:42:52]json parsed OK: [19:42:52]protocol is kg_v1.0 [19:42:52]action value=get_value [19:42:52]process_action get_value [19:42:52]cmd_get_value [19:42:52]process_action get_value done [19:42:52]requested_data is exist [19:42:52]produce_requested_data [19:42:52]requested_item fm.sale.total is exist - process it [19:42:52]SAM_PROTO_GetFMData [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 13 03 00 [19:42:52]Write to MH i2c: E2 08 00 14 19 80 13 03 00 00 00 00 00 AC [19:42:52]OFD Sender: No OFD packet to send [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:42:53]Read from MH i2c: E2 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 FD 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 FD 00 14 19 00 BA 04 85 04 B6 04 6E 04 04 00 64 07 00 00 69 04 9F 00 6F 04 04 00 62 07 00 00 B1 04 04 00 C7 08 E1 04 70 04 04 00 A0 D0 FE 03 72 04 03 00 27 38 E2 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 28 A5 84 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 9E 0C 0B 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 92 [19:42:53]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 64 07 00 00 69 04 9F 00 6F 04 04 00 62 07 00 00 B1 04 04 00 C7 08 E1 04 70 04 04 00 A0 D0 FE 03 72 04 03 00 27 38 E2 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 28 A5 84 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 9E 0C 0B 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 [19:42:53]wFMCommunicate OK [19:42:53]wFMCommunicate request_size=4 [19:42:53]MH_SAM_APDU [19:42:53]CAPDU: 80 17 00 00 [19:42:53]Write to MH i2c: E2 08 00 15 19 80 17 00 00 00 00 00 00 AE [19:42:53]Write i2c OK [19:42:53]MH_I2C_Read... [19:42:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:42:53]Read from MH i2c: E2 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 FD 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 FD 00 15 19 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 AB [19:42: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 [19:42:53]wFMCommunicate OK [19:42:53]wFMCommunicate request_size=4 [19:42:53]MH_SAM_APDU [19:42:53]CAPDU: 80 17 00 00 [19:42:53]Write to MH i2c: E2 08 00 16 19 80 17 00 00 00 00 00 00 AF [19:42:53]Write i2c OK [19:42:53]MH_I2C_Read... [19:42:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:42:53]Read from MH i2c: E2 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 FD 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 FD 00 16 19 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 DB [19:42:53]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 [19:42:53]wFMCommunicate OK [19:42:53]wFMCommunicate request_size=4 [19:42:53]MH_SAM_APDU [19:42:53]CAPDU: 80 17 00 00 [19:42:53]Write to MH i2c: E2 08 00 17 19 80 17 00 00 00 00 00 00 B0 [19:42:53]Write i2c OK [19:42:53]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 FD 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 FD 00 17 19 00 00 EF 03 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 28 [19:42: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 [19:42:54]wFMCommunicate OK [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 17 00 00 [19:42:54]Write to MH i2c: E2 08 00 18 19 80 17 00 00 00 00 00 00 B1 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 D7 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 D7 00 18 19 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 94 [19:42:54]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 [19:42:54]wFMCommunicate OK [19:42:54]SAM_PROTO_GetFMData done [19:42:54]requested_item fm.sale_refund.total is exist - process it [19:42:54]requested_item fm.buy.total is exist - process it [19:42:54]requested_item shift.sale.total is exist - process it [19:42:54]SAM_PROTO_GetShiftData [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 13 02 00 [19:42:54]Write to MH i2c: E2 08 00 19 19 80 13 02 00 00 00 00 00 B0 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 FD 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 FD 00 19 19 00 AF 04 AA 04 AB 04 6E 04 04 00 6D 00 00 00 69 04 9C 00 6F 04 04 00 6D 00 00 00 B1 04 03 00 2E 28 91 70 04 03 00 E0 D8 69 72 04 03 00 4E 4F 27 00 04 7B 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 C0 6A 0F 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 DA 48 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [19:42:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6D 00 00 00 69 04 9C 00 6F 04 04 00 6D 00 00 00 B1 04 03 00 2E 28 91 70 04 03 00 E0 D8 69 72 04 03 00 4E 4F 27 00 04 7B 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 C0 6A 0F 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 DA 48 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:42:54]wFMCommunicate OK [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 17 00 00 [19:42:54]Write to MH i2c: E2 08 00 1A 19 80 17 00 00 00 00 00 00 B3 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:42:55]Read from MH i2c: E2 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 FD 00 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 FD 00 1A 19 00 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 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 90 00 CC [19:42:55]RAPDU: 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 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 90 00 [19:42:55]wFMCommunicate OK [19:42:55]wFMCommunicate request_size=4 [19:42:55]MH_SAM_APDU [19:42:55]CAPDU: 80 17 00 00 [19:42:55]Write to MH i2c: E2 08 00 1B 19 80 17 00 00 00 00 00 00 B4 [19:42:55]Write i2c OK [19:42:55]MH_I2C_Read... [19:42:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:42:55]Read from MH i2c: E2 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 FD 00 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 FD 00 1B 19 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 68 [19:42:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [19:42:55]wFMCommunicate OK [19:42:55]wFMCommunicate request_size=4 [19:42:55]MH_SAM_APDU [19:42:55]CAPDU: 80 17 00 00 [19:42:55]Write to MH i2c: E2 08 00 1C 19 80 17 00 00 00 00 00 00 B5 [19:42:55]Write i2c OK [19:42:55]MH_I2C_Read... [19:42:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:42:55]Read from MH i2c: E2 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 FD 00 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 FD 00 1C 19 00 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 90 00 33 [19:42:55]RAPDU: 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 90 00 [19:42:55]wFMCommunicate OK [19:42:55]wFMCommunicate request_size=4 [19:42:55]MH_SAM_APDU [19:42:55]CAPDU: 80 17 00 00 [19:42:55]Write to MH i2c: E2 08 00 1D 19 80 17 00 00 00 00 00 00 B6 [19:42:55]Write i2c OK [19:42:55]MH_I2C_Read... [19:42:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:42:55]Read from MH i2c: E2 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 CC 00 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 CC 00 1D 19 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [19:42:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:42:55]wFMCommunicate OK [19:42:55]SAM_PROTO_GetShiftData done [19:42:55]requested_item shift.sale.total_cash is exist - process it [19:42:55]requested_item shift.sale_refund.total is exist - process it [19:42:55]requested_item shift.sale_refund.total_cash is exist - process it [19:42:55]requested_item shift.buy.total is exist - process it [19:42:55]requested_item shift.buy.total_cash is exist - process it [19:42:55]produce_requested_data done [19:42:55]produce_requested_data return {"fm.sale.total":818567.11,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":95130.06,"shift.sale.total_cash":69368.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} [19:42:55]process_action_free get_value [19:42:55]json_value_free [19:42:55]json_value_free done [19:42:55]process_json_proto returns [19:42:55]Send response to host [19:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":818567.11,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":95130.06,"shift.sale.total_cash":69368.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}}} [19:42:56]free response buf [19:42:56]execute_script done [19:42:56]execute_script returns [19:42:56]free content buf [19:42:56]Sock 9.Close socket [19:42:56]Sock 9.Thread stoped [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:52]accept exits with 8 [19:48:52]New connection [19:48:52]New thread 3066834276 created [19:48:52]Thread 3066977636 joined [19:48:52]Waiting for new connection... [19:48:52] Sock 8.Parse request [19:48:52]Sock 8.Check first char [19:48:52]Sock 8.First char is OK [19:48:52]request: POST /json_proto HTTP/1.0 [19:48:52]Method: POST [19:48:52]URL: /json_proto [19:48:52]Method is POST - this is cgi request [19:48:52]url: /json_proto [19:48:52]query_string will be loaded in cgi processing [19:48:52]execute_cgi json_proto POST (null) [19:48:52]execute_cgi path=json_proto method=POST [19:48:52]POST find Content-Length [19:48:52]Host: 172.17.35.133:8080 [19:48:52]Content-Length: 683 [19:48:52]Content-Type: application/json [19:48:52] [19:48:52]POST finish read [19:48:52]Found Content-Length = 683 [19:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:52]execute_script... [19:48: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 : (1)1619133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:52]POST & json_proto [19:48:52]process_json_proto [19:48:52]json parsed OK: [19:48:52]protocol is kg_v1.0 [19:48:52]action value=close_receipt [19:48:52]process_action close_receipt [19:48:52]cmd_close_receipt [19:48:52]MH_GetDate [19:48:52]Write to MH i2c: F0 00 00 1E 19 26 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 09 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 09 00 1E 19 00 27 DA 92 66 1B 28 2A 66 FB [19:48:52]GetLastDocTimeStamp 1720899547 [19:48:52]current date 1720900135 [19:48:52]FM_GetShiftState [19:48:52]SAM_PROTO_GetShiftState [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 13 01 00 [19:48:52]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 40 [19:48:52]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_GetShiftState done [19:48:52]FM_GetShiftState done [19:48:52]opened in 1720829379 [19:48:52]opened+sec_in_day 1720915779 [19:48:52]quantity*price = 40002 [19:48:52]sum+1 = 40004 [19:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 110 13.07.2024 19:48 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1941 ФПД: 36953096933317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194855&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1941&fm=36953096933317&tin=02508201610067®Number=0000000000177495&sum=40000 [19:48:53]StoreToDocumentArchive [19:48:53]shift 24 fd 1941 [19:48:53]save to /storage/0024/doc_00001941 [19:48:53]save last doc name /storage/0024/doc_00001941 to /storage/kkm_last_doc_name [19:48:53]save OK [19:48:53]Clear old archive folders... [19:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:48:53]tlvbuf is 00FB9F10 [19:48:53]SAM_PROTO_ClearQueue [19:48:53]wFMCommunicate request_size=4 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 09 00 00 [19:48:53]Write to MH i2c: E2 08 00 2C 19 80 09 00 00 00 00 00 00 B7 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [19:48:53]RAPDU: 90 00 [19:48:53]wFMCommunicate OK [19:48:53]SAM_PROTO_ClearQueue done [19:48:53]KKMCreateOFDPacket [19:48:53]OFDProtocolAddRootSTLVToBuf [19:48:53]FM_MakeSignedData [19:48:53]FM_MakeSignedData [19:48:53]SAM_PROTO_SignData [19:48:53]wFMCommunicate request_size=4 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 0D 01 02 [19:48:53]Write to MH i2c: E2 08 00 2D 19 80 0D 01 02 00 00 00 00 BF [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [19:48:53]RAPDU: 90 00 [19:48:53]wFMCommunicate OK [19:48:53]wFMCommunicate request_size=255 [19:48:53]MH_SAM_APDU [19:48:53]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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 DA 92 66 0E 04 04 00 18 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 95 07 00 00 35 04 06 00 [19:48:53]Write to MH i2c: E2 02 01 2E 19 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 DA 92 66 0E 04 04 00 18 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 95 07 00 00 35 04 06 00 00 00 DE [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=11 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 02 02 06 21 9B D0 37 4F C5 [19:48:54]Write to MH i2c: E2 0E 00 2F 19 80 0D 02 02 06 00 21 9B D0 37 4F C5 00 00 A5 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 03 02 [19:48:54]Write to MH i2c: E2 08 00 30 19 80 0D 03 02 00 00 00 00 C4 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0B 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0B 00 30 19 00 9B 05 05 B9 9B 93 6D 26 90 00 E4 [19:48:54]RAPDU: 9B 05 05 B9 9B 93 6D 26 90 00 [19:48:54]wFMCommunicate OK [19:48:54]SAM_PROTO_SignData done [19:48:54]FM_MakeSignedData done [19:48:54]CreateOFDProtocolMessage [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 11 00 00 [19:48:54]Write to MH i2c: E2 08 00 31 19 80 11 00 00 00 00 00 00 C4 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 31 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1A [19:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:48:54]wFMCommunicate OK [19:48:54]CreateOFDProtocolMessage done [19:48:54]OFDSenderStorePacket 1941 [19:48:54]StoreOFDPacket docnum=1941 [19:48:54]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 7D EB 08 01 51 BA 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 DA 92 66 0E 04 04 00 18 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 95 07 00 00 35 04 06 00 21 9B D0 37 4F C5 9B 05 05 B9 9B 93 6D 26 [19:48:54]CheckFolder [19:48:54]dirname=/storage/ofd_packets [19:48:54]CheckFolder done [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00001941 [19:48:54]NVStorageSaveData ofd_packets/00001941 [19:48:54]File name is /storage/ofd_packets/00001941 [19:48:54]Write 302 bytes [19:48:54]NVStorageSaveData done [19:48:54]OFDSenderStorePacket done [19:48:54]KKMCreateOFDPacket done [19:48:54]NVStorageSaveData kkm_last_timestamp [19:48:54]File name is /storage/kkm_last_timestamp [19:48:54]Write 4 bytes [19:48:54]NVStorageSaveData done [19:48:54]ExternCall_PrintAddStr [19:48:54]wPrintStart [19:48:54]Write to MH i2c: 01 00 00 32 19 4B [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 32 19 00 00 00 00 00 FF 0F 60 [19:48:54]RasterBufferAndPrint [19:48:54]line Счет N : (1)1619133 [19:48:54]line ИНН: 02508201610067 [19:48:54]line Контрольно-Кассовый Чек [19:48:54]line ПРОДАЖА [19:48:54]line ТРК (МРК, ГНК) : 31 [19:48:54]line Товар: 2710194210 [19:48:54]line ДТ(л)-К-4 [19:48:54]line 5.510 * 72.60 [19:48:54]line = 400.03 [19:48:54]line НДС 12% НСП 1% [19:48:54]line > о реализуемом товаре [19:48:54]line ОКРУГЛЕНИЕ: -0.03 [19:48:54]line ИТОГО: 400.00 [19:48:54]line Внесено: 400.00 [19:48:54]line СДАЧА: 0.00 [19:48:54]line НСП 1% : 3.54 [19:48:54]line НДС 12% : 42.48 [19:48:54]line Наличными: 400.00 [19:48:54]line Безнал.: 0.00 [19:48:54]line Место: АЗС № 76 "Партнер Нефть" [19:48:54]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:48:54]line СНО: Общий режим [19:48:54]line Чек 110 13.07.2024 19:48 [19:48:54]line Смена: 24 ФФД: 1.0 [19:48:54]line ЗНМ: 0300000124 [19:48:54]line РНМ: 0000000000177495 [19:48:54]line Версия ККМ: 001 [19:48:54]line ФМ: 0000000002098592 [19:48:54]line ФД: 1941 [19:48:54]line ФПД: 36953096933317 [19:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194855&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1941&fm=36953096933317&tin=02508201610067®Number=0000000000177495&sum=40000 [19:48:54]OFD Sender: Processing packet 1941 [packets to send 1, broken 0] [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00001941 [19:48:54]OFD Sender: To server: pG, [19:48:54]CommunicateWithHost lk.salyk.kg:30040 [19:48:54]ConnectInit lk.salyk.kg [19:48:54]written 0, free lines is 4095 [19:48:54]Connected sock=11 [19:48: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 10 01 00 00 7D EB 08 01 51 BA 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 DA 92 66 0E 04 04 00 18 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 95 07 00 00 35 04 06 00 21 9B D0 37 4F C5 9B 05 05 B9 9B 93 6D 26 [19:48:54]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 9F 7A 47 00 DC B0 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 95 07 00 00 F4 03 04 00 5C 85 92 66 B6 04 01 00 00 CD 67 5B 44 2F 36 97 6D [19:48:54]CommunicateWithHost err = 0 [19:48:54]CheckOFDResponse [19:48:54]1017 (14) - 77093643461234 [19:48:54]1041 (16) - 0000000002098592 [19:48:54]1040 (4) - 1941 [19:48:54]1012 (4) - 13.07.2024 13:47 [19:48:54]1206 (1) - 0 [19:48:54]OFD Sender: Remove packet 1941 [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00001941 [19:48:54]NVStorageDeleteData [19:48:55]Write to MH i2c: 01 00 00 5D 19 76 [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 5D 19 00 00 00 00 00 E9 0C 72 [19:48:55]RasterBufferAndPrint [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]written 0, free lines is 3311 [19:48:55]MH_Cut [19:48:55]Write to MH i2c: D1 01 00 64 19 01 4F [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 01 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 01 00 64 19 00 4E [19:48:55]Write to MH i2c: 01 00 00 65 19 7E [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]OFD Sender: No OFD packet to send [19:48:55]*** Cut start [19:48:55]*** Partial cut [19:48:55]*** CUTSNS_PIN = 1 [19:48:55]*** CUTSNS_PIN = 0 [19:48:56]*** Brake cut motor [19:48:56]Read from MH i2c: 01 [19:48:56]MH_I2C_Read... [19:48:56]*** Stop cut motor [19:48:56]*** Cut end [19:48:56]Read from MH i2c: 01 07 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: 01 07 00 65 19 00 00 00 00 00 FF 0F 93 [19:48:56]process_action close_receipt done [19:48:56]requested_data is exist [19:48:56]produce_requested_data [19:48:56]requested_item fm.sn is exist - process it [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 11 00 00 [19:48:56]Write to MH i2c: E2 08 00 66 19 80 11 00 00 00 00 00 00 F9 [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 17 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 17 00 66 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4F [19:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:48:56]wFMCommunicate OK [19:48:56]requested_item fd.num is exist - process it [19:48:56]SAM_PROTO_GetFieldsCounters [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 13 00 00 [19:48:56]Write to MH i2c: E2 08 00 67 19 80 13 00 00 00 00 00 00 FC [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 62 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 62 00 67 19 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 95 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [19:48: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 95 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:56]wFMCommunicate OK [19:48:56]SAM_PROTO_GetFieldsCounters done [19:48:56]requested_item shift.num is exist - process it [19:48:56]requested_item shift.opened is exist - process it [19:48:56]req_shift_opened [19:48:56]FM_GetShiftState [19:48:56]SAM_PROTO_GetShiftState [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 13 01 00 [19:48:56]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 0E 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 89 [19:48:56]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:48:56]wFMCommunicate OK [19:48:56]SAM_PROTO_GetShiftState done [19:48:56]FM_GetShiftState done [19:48:56]req_shift_opened done [19:48:56]requested_item shift.open_date is exist - process it [19:48:56]req_shift_open_date [19:48:56]req_shift_open_date done [19:48:56]produce_requested_data done [19:48:56]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1941,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:48:56]process_action_free close_receipt [19:48:56]json_value_free [19:48:56]json_value_free done [19:48:56]process_json_proto returns [19:48:56]Send response to host [19:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1941,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:48:56]free response buf [19:48:56]execute_script done [19:48:56]execute_script returns [19:48:56]free content buf [19:48:56]Sock 8.Close socket [19:48:56]Sock 8.Thread stoped [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:09]accept exits with 9 [19:49:09]New connection [19:49:09]New thread 3066977636 created [19:49:09]Thread 3066834276 joined [19:49:09]Waiting for new connection... [19:49:09] Sock 9.Parse request [19:49:09]Sock 9.Check first char [19:49:09]Sock 9.First char is OK [19:49:09]request: POST /json_proto HTTP/1.0 [19:49:09]Method: POST [19:49:09]URL: /json_proto [19:49:09]Method is POST - this is cgi request [19:49:09]url: /json_proto [19:49:09]query_string will be loaded in cgi processing [19:49:09]execute_cgi json_proto POST (null) [19:49:09]execute_cgi path=json_proto method=POST [19:49:09]POST find Content-Length [19:49:09]Host: 172.17.35.133:8080 [19:49:09]Content-Length: 623 [19:49:09]Content-Type: application/json [19:49:09] [19:49:09]POST finish read [19:49:09]Found Content-Length = 623 [19:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256353", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:09]execute_script... [19:49: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)256353", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:09]POST & json_proto [19:49:09]process_json_proto [19:49:09]json parsed OK: [19:49:09]protocol is kg_v1.0 [19:49:09]action value=close_receipt [19:49:09]process_action close_receipt [19:49:09]cmd_close_receipt [19:49:09]MH_GetDate [19:49:09]Write to MH i2c: F0 00 00 69 19 71 [19:49:09]Write i2c OK [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: F0 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: F0 09 00 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: F0 09 00 69 19 00 38 DA 92 66 1B 28 2A 66 57 [19:49:09]GetLastDocTimeStamp 1720900135 [19:49:09]current date 1720900152 [19:49:09]FM_GetShiftState [19:49:09]SAM_PROTO_GetShiftState [19:49:09]wFMCommunicate request_size=4 [19:49:09]MH_SAM_APDU [19:49:09]CAPDU: 80 13 01 00 [19:49:09]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [19:49:09]Write i2c OK [19:49:09]MH_I2C_Read... [19:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:09]Read from MH i2c: E2 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: E2 0E 00 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8B [19:49:09]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:49:09]wFMCommunicate OK [19:49:09]SAM_PROTO_GetShiftState done [19:49:09]FM_GetShiftState done [19:49:09]opened in 1720829379 [19:49:09]opened+sec_in_day 1720915779 [19:49:09]quantity*price = 14000 [19:49:09]sum+1 = 14001 [19:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 111 13.07.2024 19:49 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1942 ФПД: 69480212352537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194912&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1942&fm=69480212352537&tin=02508201610067®Number=0000000000177495&sum=14000 0 [19:49:10]StoreToDocumentArchive [19:49:10]shift 24 fd 1942 [19:49:10]save to /storage/0024/doc_00001942 [19:49:10]save last doc name /storage/0024/doc_00001942 to /storage/kkm_last_doc_name [19:49:10]save OK [19:49:10]Clear old archive folders... [19:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:49:10]tlvbuf is 01047A10 [19:49:10]SAM_PROTO_ClearQueue [19:49:10]wFMCommunicate request_size=4 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 09 00 00 [19:49:10]Write to MH i2c: E2 08 00 77 19 80 09 00 00 00 00 00 00 02 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:10]Read from MH i2c: E2 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 03 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [19:49:10]RAPDU: 90 00 [19:49:10]wFMCommunicate OK [19:49:10]SAM_PROTO_ClearQueue done [19:49:10]KKMCreateOFDPacket [19:49:10]OFDProtocolAddRootSTLVToBuf [19:49:10]FM_MakeSignedData [19:49:10]FM_MakeSignedData [19:49:10]SAM_PROTO_SignData [19:49:10]wFMCommunicate request_size=4 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 0D 01 02 [19:49:10]Write to MH i2c: E2 08 00 78 19 80 0D 01 02 00 00 00 00 0A [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:10]Read from MH i2c: E2 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 03 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [19:49:10]RAPDU: 90 00 [19:49:10]wFMCommunicate OK [19:49:10]wFMCommunicate request_size=255 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 0D 02 02 FA 03 00 13 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 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 6F 00 00 00 F4 03 04 00 38 DA 92 66 0E 04 04 00 18 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 [19:49:10]Write to MH i2c: E2 02 01 79 19 80 0D 02 02 FA 00 03 00 13 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 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 6F 00 00 00 F4 03 04 00 38 DA 92 66 0E 04 04 00 18 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 00 00 33 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:11]Read from MH i2c: E2 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 03 00 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 03 00 79 19 00 90 00 06 [19:49:11]RAPDU: 90 00 [19:49:11]wFMCommunicate OK [19:49:11]wFMCommunicate request_size=34 [19:49:11]MH_SAM_APDU [19:49:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 96 07 00 00 35 04 06 00 3F 31 1F 60 4E 19 [19:49:11]Write to MH i2c: E2 25 00 7A 19 80 0D 02 02 1D 00 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 96 07 00 00 35 04 06 00 3F 31 1F 60 4E 19 00 00 C4 [19:49:11]Write i2c OK [19:49:11]MH_I2C_Read... [19:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:11]Read from MH i2c: E2 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 03 00 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [19:49:11]RAPDU: 90 00 [19:49:11]wFMCommunicate OK [19:49:11]wFMCommunicate request_size=4 [19:49:11]MH_SAM_APDU [19:49:11]CAPDU: 80 0D 03 02 [19:49:11]Write to MH i2c: E2 08 00 7B 19 80 0D 03 02 00 00 00 00 0F [19:49:11]Write i2c OK [19:49:11]MH_I2C_Read... [19:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:11]Read from MH i2c: E2 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 0B 00 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 0B 00 7B 19 00 BB 58 00 F8 7F BA 7C 63 90 00 33 [19:49:11]RAPDU: BB 58 00 F8 7F BA 7C 63 90 00 [19:49:11]wFMCommunicate OK [19:49:11]SAM_PROTO_SignData done [19:49:11]FM_MakeSignedData done [19:49:11]CreateOFDProtocolMessage [19:49:11]wFMCommunicate request_size=4 [19:49:11]MH_SAM_APDU [19:49:11]CAPDU: 80 11 00 00 [19:49:11]Write to MH i2c: E2 08 00 7C 19 80 11 00 00 00 00 00 00 0F [19:49:11]Write i2c OK [19:49:11]MH_I2C_Read... [19:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:11]Read from MH i2c: E2 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 17 00 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: E2 17 00 7C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 65 [19:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:49:11]wFMCommunicate OK [19:49:11]CreateOFDProtocolMessage done [19:49:11]OFDSenderStorePacket 1942 [19:49:11]StoreOFDPacket docnum=1942 [19:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 27 01 00 00 F7 35 1F 01 B8 FC 5A 03 01 00 03 00 13 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 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 6F 00 00 00 F4 03 04 00 38 DA 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 3F 31 1F 60 4E 19 BB 58 00 F8 7F BA 7C 63 [19:49:11]CheckFolder [19:49:11]dirname=/storage/ofd_packets [19:49:11]CheckFolder done [19:49:11]ProducePacketName [19:49:11]name=ofd_packets/00001942 [19:49:11]NVStorageSaveData ofd_packets/00001942 [19:49:11]File name is /storage/ofd_packets/00001942 [19:49:11]Write 325 bytes [19:49:11]NVStorageSaveData done [19:49:11]OFDSenderStorePacket done [19:49:11]KKMCreateOFDPacket done [19:49:11]NVStorageSaveData kkm_last_timestamp [19:49:11]File name is /storage/kkm_last_timestamp [19:49:11]Write 4 bytes [19:49:11]NVStorageSaveData done [19:49:11]ExternCall_PrintAddStr [19:49:11]wPrintStart [19:49:11]Write to MH i2c: 01 00 00 7D 19 96 [19:49:11]Write i2c OK [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: 01 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: 01 07 00 [19:49:11]MH_I2C_Read... [19:49:11]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 FF 0F AB [19:49:11]RasterBufferAndPrint [19:49:11]line Счет N : (3)256353 [19:49:11]line ИНН: 02508201610067 [19:49:11]line Контрольно-Кассовый Чек [19:49:11]line ПРОДАЖА [19:49:11]line Товар: 48743587 [19:49:11]line Сигареты Winston XStyle Silver [19:49:11]line 1.000 * 140.00 [19:49:11]line = 140.00 [19:49:11]line НДС 12% НСП 1% [19:49:11]line > о реализуемом товаре [19:49:11]line ИТОГО: 140.00 [19:49:11]line НСП 1% : 1.24 [19:49:11]line НДС 12% : 14.87 [19:49:11]line Наличными: 140.00 [19:49:11]line Безнал.: 0.00 [19:49:11]line Место: АЗС № 76 "Партнер Нефть" [19:49:11]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:49:11]line СНО: Общий режим [19:49:11]line Чек 111 13.07.2024 19:49 [19:49:11]line Смена: 24 ФФД: 1.0 [19:49:11]line ЗНМ: 0300000124 [19:49:11]line РНМ: 0000000000177495 [19:49:11]line Версия ККМ: 001 [19:49:11]line ФМ: 0000000002098592 [19:49:11]line ФД: 1942 [19:49:11]line ФПД: 69480212352537 [19:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194912&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1942&fm=69480212352537&tin=02508201610067®Number=0000000000177495&sum=14000 [19:49:11]line 0 [19:49:11]OFD Sender: Processing packet 1942 [packets to send 1, broken 0] [19:49:11]ProducePacketName [19:49:11]name=ofd_packets/00001942 [19:49:11]OFD Sender: To server: pG, [19:49:11]CommunicateWithHost lk.salyk.kg:30040 [19:49:11]ConnectInit lk.salyk.kg [19:49:11]written 0, free lines is 4095 [19:49:11]Connected sock=10 [19:49: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 27 01 00 00 F7 35 1F 01 B8 FC 5A 03 01 00 03 00 13 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 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 6F 00 00 00 F4 03 04 00 38 DA 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 3F 31 1F 60 4E 19 BB 58 00 F8 7F BA 7C 63 [19:49: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 1A EB 47 00 6D 90 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 07 00 00 F4 03 04 00 6E 85 92 66 B6 04 01 00 00 F9 2B E9 40 9A 79 E9 47 [19:49:11]CommunicateWithHost err = 0 [19:49:11]CheckOFDResponse [19:49:11]1017 (14) - 77093643461234 [19:49:11]1041 (16) - 0000000002098592 [19:49:11]1040 (4) - 1942 [19:49:11]1012 (4) - 13.07.2024 13:47 [19:49:11]1206 (1) - 0 [19:49:11]OFD Sender: Remove packet 1942 [19:49:11]ProducePacketName [19:49:11]name=ofd_packets/00001942 [19:49:11]NVStorageDeleteData [19:49:12]Write to MH i2c: 01 00 00 A6 19 BF [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: 01 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: 01 07 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: 01 07 00 A6 19 00 00 00 00 00 FC 0C CE [19:49:12]RasterBufferAndPrint [19:49:12]line [19:49:12]line [19:49:12]line [19:49:12]line [19:49:12]line [19:49:12]written 0, free lines is 3329 [19:49:12]MH_Cut [19:49:12]Write to MH i2c: D1 01 00 AD 19 01 98 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: D1 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: D1 01 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: D1 01 00 AD 19 00 97 [19:49:12]Write to MH i2c: 01 00 00 AE 19 C7 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]OFD Sender: No OFD packet to send [19:49:12]*** Cut start [19:49:12]*** Partial cut [19:49:12]*** CUTSNS_PIN = 1 [19:49:12]*** CUTSNS_PIN = 0 [19:49:13]*** Brake cut motor [19:49:13]Read from MH i2c: 01 [19:49:13]MH_I2C_Read... [19:49:13]*** Stop cut motor [19:49:13]*** Cut end [19:49:13]Read from MH i2c: 01 07 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 07 00 AE 19 00 00 00 00 00 FF 0F DC [19:49:13]process_action close_receipt done [19:49:13]requested_data is exist [19:49:13]produce_requested_data [19:49:13]requested_item fm.sn is exist - process it [19:49:13]wFMCommunicate request_size=4 [19:49:13]MH_SAM_APDU [19:49:13]CAPDU: 80 11 00 00 [19:49:13]Write to MH i2c: E2 08 00 AF 19 80 11 00 00 00 00 00 00 42 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:13]Read from MH i2c: E2 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 17 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 17 00 AF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 98 [19:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:49:13]wFMCommunicate OK [19:49:13]requested_item fd.num is exist - process it [19:49:13]SAM_PROTO_GetFieldsCounters [19:49:13]wFMCommunicate request_size=4 [19:49:13]MH_SAM_APDU [19:49:13]CAPDU: 80 13 00 00 [19:49:13]Write to MH i2c: E2 08 00 B0 19 80 13 00 00 00 00 00 00 45 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:13]Read from MH i2c: E2 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 62 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 62 00 B0 19 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 96 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:49:13]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 96 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:13]wFMCommunicate OK [19:49:13]SAM_PROTO_GetFieldsCounters done [19:49:13]requested_item shift.num is exist - process it [19:49:13]requested_item shift.opened is exist - process it [19:49:13]req_shift_opened [19:49:13]FM_GetShiftState [19:49:13]SAM_PROTO_GetShiftState [19:49:13]wFMCommunicate request_size=4 [19:49:13]MH_SAM_APDU [19:49:13]CAPDU: 80 13 01 00 [19:49:13]Write to MH i2c: E2 08 00 B1 19 80 13 01 00 00 00 00 00 47 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:13]Read from MH i2c: E2 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 0E 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 0E 00 B1 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D2 [19:49:13]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:49:13]wFMCommunicate OK [19:49:13]SAM_PROTO_GetShiftState done [19:49:13]FM_GetShiftState done [19:49:13]req_shift_opened done [19:49:13]requested_item shift.open_date is exist - process it [19:49:13]req_shift_open_date [19:49:13]req_shift_open_date done [19:49:13]produce_requested_data done [19:49:13]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1942,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:49:13]process_action_free close_receipt [19:49:13]json_value_free [19:49:13]json_value_free done [19:49:13]process_json_proto returns [19:49:13]Send response to host [19:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1942,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:49:13]free response buf [19:49:13]execute_script done [19:49:13]execute_script returns [19:49:13]free content buf [19:49:13]Sock 9.Close socket [19:49:13]Sock 9.Thread stoped [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:18]accept exits with 8 [19:56:18]New connection [19:56:18]New thread 3066834276 created [19:56:18]Thread 3066977636 joined [19:56:18]Waiting for new connection... [19:56:18] Sock 8.Parse request [19:56:18]Sock 8.Check first char [19:56:18]Sock 8.First char is OK [19:56:18]request: POST /json_proto HTTP/1.0 [19:56:18]Method: POST [19:56:18]URL: /json_proto [19:56:18]Method is POST - this is cgi request [19:56:18]url: /json_proto [19:56:18]query_string will be loaded in cgi processing [19:56:18]execute_cgi json_proto POST (null) [19:56:18]execute_cgi path=json_proto method=POST [19:56:18]POST find Content-Length [19:56:18]Host: 172.17.35.133:8080 [19:56:18]Content-Length: 988 [19:56:18]Content-Type: application/json [19:56:18] [19:56:18]POST finish read [19:56:18]Found Content-Length = 988 [19:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 137.780, "sum" : 9865.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 137.78 \u0441\u043E\u043C", "deposit" : 9865.00, "total" : 9865.00, "payments": [ { "type": 0, "sum" : 9865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:18]execute_script... [19:56:18]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)1619134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 71.60, "quantity" : 137.780, "sum" : 9865.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 76\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 137.78 \u0441\u043E\u043C", "deposit" : 9865.00, "total" : 9865.00, "payments": [ { "type": 0, "sum" : 9865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:18]POST & json_proto [19:56:18]process_json_proto [19:56:18]json parsed OK: [19:56:18]protocol is kg_v1.0 [19:56:18]action value=close_receipt [19:56:18]process_action close_receipt [19:56:18]cmd_close_receipt [19:56:18]MH_GetDate [19:56:18]Write to MH i2c: F0 00 00 B2 19 BA [19:56:18]Write i2c OK [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: F0 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: F0 09 00 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: F0 09 00 B2 19 00 E5 DB 92 66 1B 28 2A 66 4E [19:56:18]GetLastDocTimeStamp 1720900152 [19:56:18]current date 1720900581 [19:56:18]FM_GetShiftState [19:56:18]SAM_PROTO_GetShiftState [19:56:18]wFMCommunicate request_size=4 [19:56:18]MH_SAM_APDU [19:56:18]CAPDU: 80 13 01 00 [19:56:18]Write to MH i2c: E2 08 00 B3 19 80 13 01 00 00 00 00 00 49 [19:56:18]Write i2c OK [19:56:18]MH_I2C_Read... [19:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:18]Read from MH i2c: E2 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 0E 00 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 0E 00 B3 19 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D4 [19:56:18]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:56:18]wFMCommunicate OK [19:56:18]SAM_PROTO_GetShiftState done [19:56:18]FM_GetShiftState done [19:56:18]opened in 1720829379 [19:56:18]opened+sec_in_day 1720915779 [19:56:18]quantity*price = 986504 [19:56:18]sum+1 = 986506 [19:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 9865.00 Внесено: 9865.00 СДАЧА: 0.00 НСП 1% : 87.30 НДС 12% : 1047.62 Наличными: 9865.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 112 13.07.2024 19:56 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Дисконтная программа ДТ номер 76 сэкономлено 137.78 сом ФМ: 0000000002098592 ФД: 1943 ФПД: 30499286229978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195621&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1943&fm=30499286229978&tin=02508201610067®Number=0000000000177495&sum=986500 [19:56:20]StoreToDocumentArchive [19:56:20]shift 24 fd 1943 [19:56:20]save to /storage/0024/doc_00001943 [19:56:20]save last doc name /storage/0024/doc_00001943 to /storage/kkm_last_doc_name [19:56:20]save OK [19:56:20]Clear old archive folders... [19:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:56:20]tlvbuf is 01047570 [19:56:20]SAM_PROTO_ClearQueue [19:56:20]wFMCommunicate request_size=4 [19:56:20]MH_SAM_APDU [19:56:20]CAPDU: 80 09 00 00 [19:56:20]Write to MH i2c: E2 08 00 C0 19 80 09 00 00 00 00 00 00 4B [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:20]Read from MH i2c: E2 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 C0 19 00 90 00 4D [19:56:20]RAPDU: 90 00 [19:56:20]wFMCommunicate OK [19:56:20]SAM_PROTO_ClearQueue done [19:56:20]KKMCreateOFDPacket [19:56:20]OFDProtocolAddRootSTLVToBuf [19:56:20]FM_MakeSignedData [19:56:20]FM_MakeSignedData [19:56:20]SAM_PROTO_SignData [19:56:20]wFMCommunicate request_size=4 [19:56:20]MH_SAM_APDU [19:56:20]CAPDU: 80 0D 01 02 [19:56:20]Write to MH i2c: E2 08 00 C1 19 80 0D 01 02 00 00 00 00 53 [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:20]Read from MH i2c: E2 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 C1 19 00 90 00 4E [19:56:20]RAPDU: 90 00 [19:56:20]wFMCommunicate OK [19:56:20]wFMCommunicate request_size=255 [19:56:20]MH_SAM_APDU [19:56:20]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 34 1A 02 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 89 0D 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 0D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 99 01 00 00 00 07 04 06 00 84 0D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 DB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [19:56:20]Write to MH i2c: E2 02 01 C2 19 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 34 1A 02 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 89 0D 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 0D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 99 01 00 00 00 07 04 06 00 84 0D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 DB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 D8 [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:20]Read from MH i2c: E2 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 C2 19 00 90 00 4F [19:56:20]RAPDU: 90 00 [19:56:20]wFMCommunicate OK [19:56:20]wFMCommunicate request_size=11 [19:56:20]MH_SAM_APDU [19:56:20]CAPDU: 80 0D 02 02 06 1B BD 2B 1F 23 DA [19:56:20]Write to MH i2c: E2 0E 00 C3 19 80 0D 02 02 06 00 1B BD 2B 1F 23 DA 00 00 81 [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:20]Read from MH i2c: E2 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [19:56:20]RAPDU: 90 00 [19:56:20]wFMCommunicate OK [19:56:20]wFMCommunicate request_size=4 [19:56:20]MH_SAM_APDU [19:56:20]CAPDU: 80 0D 03 02 [19:56:20]Write to MH i2c: E2 08 00 C4 19 80 0D 03 02 00 00 00 00 58 [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:20]Read from MH i2c: E2 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 0B 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 0B 00 C4 19 00 53 1E 45 4A 28 74 E6 C3 90 00 9E [19:56:20]RAPDU: 53 1E 45 4A 28 74 E6 C3 90 00 [19:56:20]wFMCommunicate OK [19:56:20]SAM_PROTO_SignData done [19:56:20]FM_MakeSignedData done [19:56:20]CreateOFDProtocolMessage [19:56:20]wFMCommunicate request_size=4 [19:56:20]MH_SAM_APDU [19:56:20]CAPDU: 80 11 00 00 [19:56:20]Write to MH i2c: E2 08 00 C5 19 80 11 00 00 00 00 00 00 58 [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:20]Read from MH i2c: E2 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 17 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: E2 17 00 C5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AE [19:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:56:20]wFMCommunicate OK [19:56:20]CreateOFDProtocolMessage done [19:56:20]OFDSenderStorePacket 1943 [19:56:20]StoreOFDPacket docnum=1943 [19:56: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 10 01 00 00 96 5A 08 01 E8 6A 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 34 1A 02 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 89 0D 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 0D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 99 01 00 00 00 07 04 06 00 84 0D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 DB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 1B BD 2B 1F 23 DA 53 1E 45 4A 28 74 E6 C3 [19:56:20]CheckFolder [19:56:20]dirname=/storage/ofd_packets [19:56:20]CheckFolder done [19:56:20]ProducePacketName [19:56:20]name=ofd_packets/00001943 [19:56:20]NVStorageSaveData ofd_packets/00001943 [19:56:20]File name is /storage/ofd_packets/00001943 [19:56:20]Write 302 bytes [19:56:20]NVStorageSaveData done [19:56:20]OFDSenderStorePacket done [19:56:20]KKMCreateOFDPacket done [19:56:20]NVStorageSaveData kkm_last_timestamp [19:56:20]File name is /storage/kkm_last_timestamp [19:56:20]Write 4 bytes [19:56:20]NVStorageSaveData done [19:56:20]ExternCall_PrintAddStr [19:56:20]wPrintStart [19:56:20]Write to MH i2c: 01 00 00 C6 19 DF [19:56:20]Write i2c OK [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: 01 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: 01 07 00 [19:56:20]MH_I2C_Read... [19:56:20]Read from MH i2c: 01 07 00 C6 19 00 00 00 00 00 FF 0F F4 [19:56:20]RasterBufferAndPrint [19:56:20]line Счет N : (1)1619134 [19:56:20]line ИНН: 02508201610067 [19:56:20]line Контрольно-Кассовый Чек [19:56:20]line ПРОДАЖА [19:56:20]line ТРК (МРК, ГНК) : 12 [19:56:20]line Товар: 2710194210 [19:56:20]line ДТ(л)-К-4 [19:56:20]line 137.780 * 71.60 [19:56:20]line = 9865.05 [19:56:20]line НДС 12% НСП 1% [19:56:20]line > о реализуемом товаре [19:56:20]line ОКРУГЛЕНИЕ: -0.05 [19:56:20]line ИТОГО: 9865.00 [19:56:20]line Внесено: 9865.00 [19:56:20]line СДАЧА: 0.00 [19:56:20]line НСП 1% : 87.30 [19:56:20]line НДС 12% : 1047.62 [19:56:20]line Наличными: 9865.00 [19:56:20]line Безнал.: 0.00 [19:56:20]line Место: АЗС № 76 "Партнер Нефть" [19:56:20]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:56:20]line СНО: Общий режим [19:56:20]line Чек 112 13.07.2024 19:56 [19:56:20]line Смена: 24 ФФД: 1.0 [19:56:20]line ЗНМ: 0300000124 [19:56:20]line РНМ: 0000000000177495 [19:56:20]line Версия ККМ: 001 [19:56:20]line [19:56:20]line Дисконтная программа [19:56:20]line ДТ [19:56:20]line номер 76 [19:56:20]line сэкономлено 137.78 сом [19:56:20]line ФМ: 0000000002098592 [19:56:20]line ФД: 1943 [19:56:20]line ФПД: 30499286229978 [19:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195621&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1943&fm=30499286229978&tin=02508201610067®Number=0000000000177495&sum=986500 [19:56:20]written 0, free lines is 4095 [19:56:20]OFD Sender: Processing packet 1943 [packets to send 1, broken 0] [19:56:20]ProducePacketName [19:56:20]name=ofd_packets/00001943 [19:56:20]OFD Sender: To server: pG, [19:56:20]CommunicateWithHost lk.salyk.kg:30040 [19:56:20]ConnectInit lk.salyk.kg [19:56:20]Connected sock=10 [19:56: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 10 01 00 00 96 5A 08 01 E8 6A 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 34 1A 02 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 89 0D 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 0D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 99 01 00 00 00 07 04 06 00 84 0D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 DB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 1B BD 2B 1F 23 DA 53 1E 45 4A 28 74 E6 C3 [19:56:20]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 90 FD 47 00 72 D3 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 07 00 00 F4 03 04 00 1A 87 92 66 B6 04 01 00 00 0A 1E F7 F5 69 7A 9C 78 [19:56:20]CommunicateWithHost err = 0 [19:56:20]CheckOFDResponse [19:56:20]1017 (14) - 77093643461234 [19:56:20]1041 (16) - 0000000002098592 [19:56:20]1040 (4) - 1943 [19:56:20]1012 (4) - 13.07.2024 13:54 [19:56:20]1206 (1) - 0 [19:56:20]OFD Sender: Remove packet 1943 [19:56:20]ProducePacketName [19:56:20]name=ofd_packets/00001943 [19:56:20]NVStorageDeleteData [19:56:21]Write to MH i2c: 01 00 00 F6 19 0F [19:56:21]Write i2c OK [19:56:21]MH_I2C_Read... [19:56:21]Read from MH i2c: 01 [19:56:21]MH_I2C_Read... [19:56:21]Read from MH i2c: 01 07 00 [19:56:21]MH_I2C_Read... [19:56:21]Read from MH i2c: 01 07 00 F6 19 00 00 00 00 00 A7 0C C9 [19:56:21]RasterBufferAndPrint [19:56:21]line [19:56:21]line [19:56:21]line [19:56:21]line [19:56:21]line [19:56:21]written 0, free lines is 3244 [19:56:21]MH_Cut [19:56:21]Write to MH i2c: D1 01 00 FD 19 01 E8 [19:56:21]Write i2c OK [19:56:21]MH_I2C_Read... [19:56:21]Read from MH i2c: D1 [19:56:21]MH_I2C_Read... [19:56:21]Read from MH i2c: D1 01 00 [19:56:21]MH_I2C_Read... [19:56:21]Read from MH i2c: D1 01 00 FD 19 00 E7 [19:56:21]Write to MH i2c: 01 00 00 FE 19 17 [19:56:21]Write i2c OK [19:56:21]MH_I2C_Read... [19:56:21]OFD Sender: No OFD packet to send [19:56:21]*** Cut start [19:56:21]*** Partial cut [19:56:21]*** CUTSNS_PIN = 1 [19:56:21]*** CUTSNS_PIN = 0 [19:56:22]*** Brake cut motor [19:56:22]Read from MH i2c: 01 [19:56:22]MH_I2C_Read... [19:56:22]*** Stop cut motor [19:56:22]*** Cut end [19:56:22]Read from MH i2c: 01 07 00 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [19:56:22]process_action close_receipt done [19:56:22]requested_data is exist [19:56:22]produce_requested_data [19:56:22]requested_item fm.sn is exist - process it [19:56:22]wFMCommunicate request_size=4 [19:56:22]MH_SAM_APDU [19:56:22]CAPDU: 80 11 00 00 [19:56:22]Write to MH i2c: E2 08 00 FF 19 80 11 00 00 00 00 00 00 92 [19:56:22]Write i2c OK [19:56:22]MH_I2C_Read... [19:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:22]Read from MH i2c: E2 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: E2 17 00 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: E2 17 00 FF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E8 [19:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [19:56:22]wFMCommunicate OK [19:56:22]requested_item fd.num is exist - process it [19:56:22]SAM_PROTO_GetFieldsCounters [19:56:22]wFMCommunicate request_size=4 [19:56:22]MH_SAM_APDU [19:56:22]CAPDU: 80 13 00 00 [19:56:22]Write to MH i2c: E2 08 00 00 1A 80 13 00 00 00 00 00 00 96 [19:56:22]Write i2c OK [19:56:22]MH_I2C_Read... [19:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:22]Read from MH i2c: E2 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: E2 62 00 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: E2 62 00 00 1A 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 97 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [19:56: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 97 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:22]wFMCommunicate OK [19:56:22]SAM_PROTO_GetFieldsCounters done [19:56:22]requested_item shift.num is exist - process it [19:56:22]requested_item shift.opened is exist - process it [19:56:22]req_shift_opened [19:56:22]FM_GetShiftState [19:56:22]SAM_PROTO_GetShiftState [19:56:22]wFMCommunicate request_size=4 [19:56:22]MH_SAM_APDU [19:56:22]CAPDU: 80 13 01 00 [19:56:22]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [19:56:22]Write i2c OK [19:56:22]MH_I2C_Read... [19:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:22]Read from MH i2c: E2 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: E2 0E 00 [19:56:22]MH_I2C_Read... [19:56:22]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 23 [19:56:22]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:56:22]wFMCommunicate OK [19:56:22]SAM_PROTO_GetShiftState done [19:56:22]FM_GetShiftState done [19:56:22]req_shift_opened done [19:56:22]requested_item shift.open_date is exist - process it [19:56:22]req_shift_open_date [19:56:22]req_shift_open_date done [19:56:22]produce_requested_data done [19:56:22]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1943,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [19:56:22]process_action_free close_receipt [19:56:22]json_value_free [19:56:22]json_value_free done [19:56:22]process_json_proto returns [19:56:22]Send response to host [19:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1943,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [19:56:22]free response buf [19:56:22]execute_script done [19:56:22]execute_script returns [19:56:22]free content buf [19:56:22]Sock 8.Close socket [19:56:22]Sock 8.Thread stoped [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]accept exits with 9 [19:59:56]New connection [19:59:56]New thread 3066977636 created [19:59:56]Thread 3066834276 joined [19:59:56]Waiting for new connection... [19:59:56] Sock 9.Parse request [19:59:56]Sock 9.Check first char [19:59:56]Sock 9.First char is OK [19:59:56]request: POST /json_proto HTTP/1.0 [19:59:56]Method: POST [19:59:56]URL: /json_proto [19:59:56]Method is POST - this is cgi request [19:59:56]url: /json_proto [19:59:56]query_string will be loaded in cgi processing [19:59:56]execute_cgi json_proto POST (null) [19:59:56]execute_cgi path=json_proto method=POST [19:59:56]POST find Content-Length [19:59:56]Host: 172.17.35.133:8080 [19:59:56]Content-Length: 678 [19:59:56]Content-Type: application/json [19:59:56] [19:59:56]POST finish read [19:59:56]Found Content-Length = 678 [19:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619136", "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" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:56]execute_script... [19:59:56]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)1619136", "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" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:56]POST & json_proto [19:59:56]process_json_proto [19:59:56]json parsed OK: [19:59:56]protocol is kg_v1.0 [19:59:56]action value=close_receipt [19:59:56]process_action close_receipt [19:59:56]cmd_close_receipt [19:59:56]MH_GetDate [19:59:56]Write to MH i2c: F0 00 00 02 1A 0B [19:59:56]Write i2c OK [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: F0 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: F0 09 00 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: F0 09 00 02 1A 00 BF DC 92 66 1B 28 2A 66 7A [19:59:56]GetLastDocTimeStamp 1720900581 [19:59:56]current date 1720900799 [19:59:56]FM_GetShiftState [19:59:56]SAM_PROTO_GetShiftState [19:59:56]wFMCommunicate request_size=4 [19:59:56]MH_SAM_APDU [19:59:56]CAPDU: 80 13 01 00 [19:59:56]Write to MH i2c: E2 08 00 03 1A 80 13 01 00 00 00 00 00 9A [19:59:56]Write i2c OK [19:59:56]MH_I2C_Read... [19:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:56]Read from MH i2c: E2 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 0E 00 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 0E 00 03 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 25 [19:59:56]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [19:59:56]wFMCommunicate OK [19:59:56]SAM_PROTO_GetShiftState done [19:59:56]FM_GetShiftState done [19:59:56]opened in 1720829379 [19:59:56]opened+sec_in_day 1720915779 [19:59:56]quantity*price = 60001 [19:59:56]sum+1 = 60003 [19:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 113 13.07.2024 19:59 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1944 ФПД: 135059564493776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195959&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1944&fm=135059564493776&tin=02508201610067®Number=0000000000177495&sum=60000 [19:59:57]StoreToDocumentArchive [19:59:57]shift 24 fd 1944 [19:59:57]save to /storage/0024/doc_00001944 [19:59:57]save last doc name /storage/0024/doc_00001944 to /storage/kkm_last_doc_name [19:59:57]save OK [19:59:57]Clear old archive folders... [19:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:57]tlvbuf is 01044EA0 [19:59:57]SAM_PROTO_ClearQueue [19:59:57]wFMCommunicate request_size=4 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 09 00 00 [19:59:57]Write to MH i2c: E2 08 00 10 1A 80 09 00 00 00 00 00 00 9C [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [19:59:57]RAPDU: 90 00 [19:59:57]wFMCommunicate OK [19:59:57]SAM_PROTO_ClearQueue done [19:59:57]KKMCreateOFDPacket [19:59:57]OFDProtocolAddRootSTLVToBuf [19:59:57]FM_MakeSignedData [19:59:57]FM_MakeSignedData [19:59:57]SAM_PROTO_SignData [19:59:57]wFMCommunicate request_size=4 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 0D 01 02 [19:59:57]Write to MH i2c: E2 08 00 11 1A 80 0D 01 02 00 00 00 00 A4 [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [19:59:57]RAPDU: 90 00 [19:59:57]wFMCommunicate OK [19:59:57]wFMCommunicate request_size=255 [19:59:57]MH_SAM_APDU [19:59:57]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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BF DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 7A [19:59:57]Write to MH i2c: E2 02 01 12 1A 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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BF DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 7A 00 00 5B [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [19:59:57]RAPDU: 90 00 [19:59:57]wFMCommunicate OK [19:59:57]wFMCommunicate request_size=10 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 0D 02 02 05 D6 01 5D 7B D0 [19:59:57]Write to MH i2c: E2 0D 00 13 1A 80 0D 02 02 05 00 D6 01 5D 7B D0 00 00 30 [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [19:59:57]RAPDU: 90 00 [19:59:57]wFMCommunicate OK [19:59:57]wFMCommunicate request_size=4 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 0D 03 02 [19:59:57]Write to MH i2c: E2 08 00 14 1A 80 0D 03 02 00 00 00 00 A9 [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 0B 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 0B 00 14 1A 00 C7 E1 FC 1D 50 DA F8 A6 90 00 33 [19:59:57]RAPDU: C7 E1 FC 1D 50 DA F8 A6 90 00 [19:59:57]wFMCommunicate OK [19:59:57]SAM_PROTO_SignData done [19:59:57]FM_MakeSignedData done [19:59:57]CreateOFDProtocolMessage [19:59:57]wFMCommunicate request_size=4 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 11 00 00 [19:59:57]Write to MH i2c: E2 08 00 15 1A 80 11 00 00 00 00 00 00 A9 [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 17 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 17 00 15 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FF [19: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 [19:59:57]wFMCommunicate OK [19:59:57]CreateOFDProtocolMessage done [19:59:57]OFDSenderStorePacket 1944 [19:59:57]StoreOFDPacket docnum=1944 [19:59: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 0F 01 00 00 1F C6 07 01 41 DC 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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BF DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 7A D6 01 5D 7B D0 C7 E1 FC 1D 50 DA F8 A6 [19:59:57]CheckFolder [19:59:57]dirname=/storage/ofd_packets [19:59:57]CheckFolder done [19:59:57]ProducePacketName [19:59:57]name=ofd_packets/00001944 [19:59:57]NVStorageSaveData ofd_packets/00001944 [19:59:57]File name is /storage/ofd_packets/00001944 [19:59:57]Write 301 bytes [19:59:57]NVStorageSaveData done [19:59:57]OFDSenderStorePacket done [19:59:57]KKMCreateOFDPacket done [19:59:57]NVStorageSaveData kkm_last_timestamp [19:59:57]File name is /storage/kkm_last_timestamp [19:59:57]Write 4 bytes [19:59:57]NVStorageSaveData done [19:59:57]ExternCall_PrintAddStr [19:59:57]wPrintStart [19:59:57]Write to MH i2c: 01 00 00 16 1A 30 [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: 01 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: 01 07 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 FF 0F 45 [19:59:57]RasterBufferAndPrint [19:59:57]line Счет N : (1)1619136 [19:59:57]line ИНН: 02508201610067 [19:59:57]line Контрольно-Кассовый Чек [19:59:57]line ПРОДАЖА [19:59:57]line ТРК (МРК, ГНК) : 63 [19:59:57]line Товар: 2710124130 [19:59:57]line Аи-92-К-5 [19:59:57]line 9.050 * 66.30 [19:59:57]line = 600.02 [19:59:57]line НДС 12% НСП 1% [19:59:57]line > о реализуемом товаре [19:59:57]line ОКРУГЛЕНИЕ: -0.02 [19:59:57]line ИТОГО: 600.00 [19:59:57]line Внесено: 600.00 [19:59:57]line СДАЧА: 0.00 [19:59:57]line НСП 1% : 5.31 [19:59:57]line НДС 12% : 63.72 [19:59:57]line Наличными: 600.00 [19:59:57]line Безнал.: 0.00 [19:59:57]line Место: АЗС № 76 "Партнер Нефть" [19:59:57]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [19:59:57]line СНО: Общий режим [19:59:57]line Чек 113 13.07.2024 19:59 [19:59:57]line Смена: 24 ФФД: 1.0 [19:59:57]line ЗНМ: 0300000124 [19:59:57]line РНМ: 0000000000177495 [19:59:57]line Версия ККМ: 001 [19:59:57]line ФМ: 0000000002098592 [19:59:57]line ФД: 1944 [19:59:57]line ФПД: 135059564493776 [19:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195959&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1944&fm=135059564493776&tin=02508201610067®Number=0000000000177495&sum=60000 [19:59:58]OFD Sender: Processing packet 1944 [packets to send 1, broken 0] [19:59:58]ProducePacketName [19:59:58]name=ofd_packets/00001944 [19:59:58]OFD Sender: To server: pG, [19:59:58]CommunicateWithHost lk.salyk.kg:30040 [19:59:58]ConnectInit lk.salyk.kg [19:59:58]written 0, free lines is 4095 [19:59:58]Connected sock=10 [19:59: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 0F 01 00 00 1F C6 07 01 41 DC 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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BF DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 7A D6 01 5D 7B D0 C7 E1 FC 1D 50 DA F8 A6 [19:59: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 00 7F 47 00 08 76 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 07 00 00 F4 03 04 00 F4 87 92 66 B6 04 01 00 00 38 4C 2C 61 60 9C 3B 8B [19:59:58]CommunicateWithHost err = 0 [19:59:58]CheckOFDResponse [19:59:58]1017 (14) - 77093643461234 [19:59:58]1041 (16) - 0000000002098592 [19:59:58]1040 (4) - 1944 [19:59:58]1012 (4) - 13.07.2024 13:58 [19:59:58]1206 (1) - 0 [19:59:58]OFD Sender: Remove packet 1944 [19:59:58]ProducePacketName [19:59:58]name=ofd_packets/00001944 [19:59:58]NVStorageDeleteData [19:59:58]Write to MH i2c: 01 00 00 41 1A 5B [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: 01 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: 01 07 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: 01 07 00 41 1A 00 00 00 00 00 EC 0C 5A [19:59:58]RasterBufferAndPrint [19:59:58]line [19:59:58]line [19:59:58]line [19:59:58]line [19:59:58]line [19:59:58]written 0, free lines is 3317 [19:59:58]MH_Cut [19:59:58]Write to MH i2c: D1 01 00 48 1A 01 34 [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: D1 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: D1 01 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: D1 01 00 48 1A 00 33 [19:59:58]Write to MH i2c: 01 00 00 49 1A 63 [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:59]OFD Sender: No OFD packet to send [19:59:59]*** Cut start [19:59:59]*** Partial cut [19:59:59]*** CUTSNS_PIN = 1 [19:59:59]*** CUTSNS_PIN = 0 [19:59:59]*** Brake cut motor [20:00:00]Read from MH i2c: 01 [20:00:00]MH_I2C_Read... [20:00:00]*** Stop cut motor [20:00:00]*** Cut end [20:00:00]Read from MH i2c: 01 07 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [20:00:00]process_action close_receipt done [20:00:00]requested_data is exist [20:00:00]produce_requested_data [20:00:00]requested_item fm.sn is exist - process it [20:00:00]wFMCommunicate request_size=4 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 11 00 00 [20:00:00]Write to MH i2c: E2 08 00 4A 1A 80 11 00 00 00 00 00 00 DE [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:00]Read from MH i2c: E2 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 17 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 17 00 4A 1A 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:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:00:00]wFMCommunicate OK [20:00:00]requested_item fd.num is exist - process it [20:00:00]SAM_PROTO_GetFieldsCounters [20:00:00]wFMCommunicate request_size=4 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 13 00 00 [20:00:00]Write to MH i2c: E2 08 00 4B 1A 80 13 00 00 00 00 00 00 E1 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:00]Read from MH i2c: E2 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 62 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 62 00 4B 1A 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 98 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [20:00: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 98 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:00]wFMCommunicate OK [20:00:00]SAM_PROTO_GetFieldsCounters done [20:00:00]requested_item shift.num is exist - process it [20:00:00]requested_item shift.opened is exist - process it [20:00:00]req_shift_opened [20:00:00]FM_GetShiftState [20:00:00]SAM_PROTO_GetShiftState [20:00:00]wFMCommunicate request_size=4 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 13 01 00 [20:00:00]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:00]Read from MH i2c: E2 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 0E 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6E [20:00:00]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:00:00]wFMCommunicate OK [20:00:00]SAM_PROTO_GetShiftState done [20:00:00]FM_GetShiftState done [20:00:00]req_shift_opened done [20:00:00]requested_item shift.open_date is exist - process it [20:00:00]req_shift_open_date [20:00:00]req_shift_open_date done [20:00:00]produce_requested_data done [20:00:00]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1944,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:00:00]process_action_free close_receipt [20:00:00]json_value_free [20:00:00]json_value_free done [20:00:00]process_json_proto returns [20:00:00]Send response to host [20:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1944,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:00:00]free response buf [20:00:00]execute_script done [20:00:00]execute_script returns [20:00:00]free content buf [20:00:00]Sock 9.Close socket [20:00:00]Sock 9.Thread stoped [20:00:00]accept exits with 8 [20:00:00]New connection [20:00:00]New thread 3066834276 created [20:00:00]Thread 3066977636 joined [20:00:00]Waiting for new connection... [20:00:00] Sock 8.Parse request [20:00:00]Sock 8.Check first char [20:00:00]Sock 8.First char is OK [20:00:00]request: POST /json_proto HTTP/1.0 [20:00:00]Method: POST [20:00:00]URL: /json_proto [20:00:00]Method is POST - this is cgi request [20:00:00]url: /json_proto [20:00:00]query_string will be loaded in cgi processing [20:00:00]execute_cgi json_proto POST (null) [20:00:00]execute_cgi path=json_proto method=POST [20:00:00]POST find Content-Length [20:00:00]Host: 172.17.35.133:8080 [20:00:00]Content-Length: 688 [20:00:00]Content-Type: application/json [20:00:00] [20:00:00]POST finish read [20:00:00]Found Content-Length = 688 [20:00:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619135", "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" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:00]execute_script... [20:00: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 : (1)1619135", "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" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:00]POST & json_proto [20:00:00]process_json_proto [20:00:00]json parsed OK: [20:00:00]protocol is kg_v1.0 [20:00:00]action value=close_receipt [20:00:00]process_action close_receipt [20:00:00]cmd_close_receipt [20:00:00]MH_GetDate [20:00:00]Write to MH i2c: F0 00 00 4D 1A 56 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: F0 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: F0 09 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: F0 09 00 4D 1A 00 C3 DC 92 66 1B 28 2A 66 C9 [20:00:00]GetLastDocTimeStamp 1720900799 [20:00:00]current date 1720900803 [20:00:00]FM_GetShiftState [20:00:00]SAM_PROTO_GetShiftState [20:00:00]wFMCommunicate request_size=4 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 13 01 00 [20:00:00]Write to MH i2c: E2 08 00 4E 1A 80 13 01 00 00 00 00 00 E5 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 [20:00:00]MH_I2C_Read... [20:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:00]Read from MH i2c: E2 0E 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 0E 00 4E 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 70 [20:00:00]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:00:00]wFMCommunicate OK [20:00:00]SAM_PROTO_GetShiftState done [20:00:00]FM_GetShiftState done [20:00:00]opened in 1720829379 [20:00:00]opened+sec_in_day 1720915779 [20:00:00]quantity*price = 150064 [20:00:00]sum+1 = 150065 [20:00:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 114 13.07.2024 20:00 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1945 ФПД: 86528802794592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200003&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1945&fm=86528802794592&tin=02508201610067®Number=0000000000177495&sum=150000 [20:00:02]StoreToDocumentArchive [20:00:02]shift 24 fd 1945 [20:00:02]save to /storage/0024/doc_00001945 [20:00:02]save last doc name /storage/0024/doc_00001945 to /storage/kkm_last_doc_name [20:00:02]save OK [20:00:02]Clear old archive folders... [20:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:00:02]tlvbuf is 01060A20 [20:00:02]SAM_PROTO_ClearQueue [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 09 00 00 [20:00:02]Write to MH i2c: E2 08 00 5B 1A 80 09 00 00 00 00 00 00 E7 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [20:00:02]RAPDU: 90 00 [20:00:02]wFMCommunicate OK [20:00:02]SAM_PROTO_ClearQueue done [20:00:02]KKMCreateOFDPacket [20:00:02]OFDProtocolAddRootSTLVToBuf [20:00:02]FM_MakeSignedData [20:00:02]FM_MakeSignedData [20:00:02]SAM_PROTO_SignData [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 0D 01 02 [20:00:02]Write to MH i2c: E2 08 00 5C 1A 80 0D 01 02 00 00 00 00 EF [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [20:00:02]RAPDU: 90 00 [20:00:02]wFMCommunicate OK [20:00:02]wFMCommunicate request_size=255 [20:00:02]MH_SAM_APDU [20:00:02]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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C3 DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [20:00:02]Write to MH i2c: E2 02 01 5D 1A 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C3 DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 2A [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [20:00:02]RAPDU: 90 00 [20:00:02]wFMCommunicate OK [20:00:02]wFMCommunicate request_size=11 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 0D 02 02 06 4E B2 8E 8D AC 60 [20:00:02]Write to MH i2c: E2 0E 00 5E 1A 80 0D 02 02 06 00 4E B2 8E 8D AC 60 00 00 25 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [20:00:02]RAPDU: 90 00 [20:00:02]wFMCommunicate OK [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 0D 03 02 [20:00:02]Write to MH i2c: E2 08 00 5F 1A 80 0D 03 02 00 00 00 00 F4 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0B 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0B 00 5F 1A 00 45 A4 A0 8D 32 02 E9 47 90 00 6F [20:00:02]RAPDU: 45 A4 A0 8D 32 02 E9 47 90 00 [20:00:02]wFMCommunicate OK [20:00:02]SAM_PROTO_SignData done [20:00:02]FM_MakeSignedData done [20:00:02]CreateOFDProtocolMessage [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 11 00 00 [20:00:02]Write to MH i2c: E2 08 00 60 1A 80 11 00 00 00 00 00 00 F4 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 17 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 17 00 60 1A 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: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 [20:00:02]wFMCommunicate OK [20:00:02]CreateOFDProtocolMessage done [20:00:02]OFDSenderStorePacket 1945 [20:00:02]StoreOFDPacket docnum=1945 [20: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 10 01 00 00 C4 01 08 01 2B E1 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C3 DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 4E B2 8E 8D AC 60 45 A4 A0 8D 32 02 E9 47 [20:00:02]CheckFolder [20:00:02]dirname=/storage/ofd_packets [20:00:02]CheckFolder done [20:00:02]ProducePacketName [20:00:02]name=ofd_packets/00001945 [20:00:02]NVStorageSaveData ofd_packets/00001945 [20:00:02]File name is /storage/ofd_packets/00001945 [20:00:02]Write 302 bytes [20:00:02]NVStorageSaveData done [20:00:02]OFDSenderStorePacket done [20:00:02]KKMCreateOFDPacket done [20:00:02]NVStorageSaveData kkm_last_timestamp [20:00:02]File name is /storage/kkm_last_timestamp [20:00:02]Write 4 bytes [20:00:02]NVStorageSaveData done [20:00:02]ExternCall_PrintAddStr [20:00:02]wPrintStart [20:00:02]Write to MH i2c: 01 00 00 61 1A 7B [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: 01 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: 01 07 00 [20:00:02]MH_I2C_Read... [20:00:02]OFD Sender: Processing packet 1945 [packets to send 1, broken 0] [20:00:02]ProducePacketName [20:00:02]name=ofd_packets/00001945 [20:00:02]Read from MH i2c: 01 07 00 61 1A 00 00 00 00 00 FF 0F 90 [20:00:02]RasterBufferAndPrint [20:00:02]line Счет N : (1)1619135 [20:00:02]line ИНН: 02508201610067 [20:00:02]line Контрольно-Кассовый Чек [20:00:02]line ПРОДАЖА [20:00:02]line ТРК (МРК, ГНК) : 41 [20:00:02]line Товар: 2710194210 [20:00:02]line ДТ(л)-К-4 [20:00:02]line 20.670 * 72.60 [20:00:02]line = 1500.64 [20:00:02]line НДС 12% НСП 1% [20:00:02]line > о реализуемом товаре [20:00:02]line ОКРУГЛЕНИЕ: -0.64 [20:00:02]line ИТОГО: 1500.00 [20:00:02]line Внесено: 1500.00 [20:00:02]line СДАЧА: 0.00 [20:00:02]line НСП 1% : 13.28 [20:00:02]line НДС 12% : 159.36 [20:00:02]line Наличными: 1500.00 [20:00:02]line Безнал.: 0.00 [20:00:02]line Место: АЗС № 76 "Партнер Нефть" [20:00:02]OFD Sender: To server: pG, [20:00:02]CommunicateWithHost lk.salyk.kg:30040 [20:00:02]ConnectInit lk.salyk.kg [20:00:02]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:00:02]line СНО: Общий режим [20:00:02]line Чек 114 13.07.2024 20:00 [20:00:02]line Смена: 24 ФФД: 1.0 [20:00:02]line ЗНМ: 0300000124 [20:00:02]line РНМ: 0000000000177495 [20:00:02]line Версия ККМ: 001 [20:00:02]line ФМ: 0000000002098592 [20:00:02]line ФД: 1945 [20:00:02]line ФПД: 86528802794592 [20:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200003&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1945&fm=86528802794592&tin=02508201610067®Number=0000000000177495&sum=150000 [20:00:03]Connected sock=10 [20:00: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 10 01 00 00 C4 01 08 01 2B E1 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C3 DC 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 4E B2 8E 8D AC 60 45 A4 A0 8D 32 02 E9 47 [20:00:03]written 0, free lines is 4095 [20: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 62 82 47 00 C5 4F 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 07 00 00 F4 03 04 00 F9 87 92 66 B6 04 01 00 00 4D CA F0 E9 7C 85 77 A8 [20:00:03]CommunicateWithHost err = 0 [20:00:03]CheckOFDResponse [20:00:03]1017 (14) - 77093643461234 [20:00:03]1041 (16) - 0000000002098592 [20:00:03]1040 (4) - 1945 [20:00:03]1012 (4) - 13.07.2024 13:58 [20:00:03]1206 (1) - 0 [20:00:03]OFD Sender: Remove packet 1945 [20:00:03]ProducePacketName [20:00:03]name=ofd_packets/00001945 [20:00:03]NVStorageDeleteData [20:00:03]Write to MH i2c: 01 00 00 8C 1A A6 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 07 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 F8 0C B1 [20:00:03]RasterBufferAndPrint [20:00:03]line [20:00:03]line [20:00:03]line [20:00:03]line [20:00:03]line [20:00:03]written 0, free lines is 3335 [20:00:03]MH_Cut [20:00:03]Write to MH i2c: D1 01 00 93 1A 01 7F [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: D1 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: D1 01 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: D1 01 00 93 1A 00 7E [20:00:03]Write to MH i2c: 01 00 00 94 1A AE [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]OFD Sender: No OFD packet to send [20:00:04]*** Cut start [20:00:04]*** Partial cut [20:00:04]*** CUTSNS_PIN = 1 [20:00:04]*** CUTSNS_PIN = 0 [20:00:04]*** Brake cut motor [20:00:04]Read from MH i2c: 01 [20:00:05]MH_I2C_Read... [20:00:05]*** Stop cut motor [20:00:05]*** Cut end [20:00:05]Read from MH i2c: 01 07 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [20:00:05]process_action close_receipt done [20:00:05]requested_data is exist [20:00:05]produce_requested_data [20:00:05]requested_item fm.sn is exist - process it [20:00:05]wFMCommunicate request_size=4 [20:00:05]MH_SAM_APDU [20:00:05]CAPDU: 80 11 00 00 [20:00:05]Write to MH i2c: E2 08 00 95 1A 80 11 00 00 00 00 00 00 29 [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:05]Read from MH i2c: E2 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 17 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 17 00 95 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7F [20:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:00:05]wFMCommunicate OK [20:00:05]requested_item fd.num is exist - process it [20:00:05]SAM_PROTO_GetFieldsCounters [20:00:05]wFMCommunicate request_size=4 [20:00:05]MH_SAM_APDU [20:00:05]CAPDU: 80 13 00 00 [20:00:05]Write to MH i2c: E2 08 00 96 1A 80 13 00 00 00 00 00 00 2C [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:05]Read from MH i2c: E2 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 62 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 62 00 96 1A 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 99 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [20:00: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 99 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:05]wFMCommunicate OK [20:00:05]SAM_PROTO_GetFieldsCounters done [20:00:05]requested_item shift.num is exist - process it [20:00:05]requested_item shift.opened is exist - process it [20:00:05]req_shift_opened [20:00:05]FM_GetShiftState [20:00:05]SAM_PROTO_GetShiftState [20:00:05]wFMCommunicate request_size=4 [20:00:05]MH_SAM_APDU [20:00:05]CAPDU: 80 13 01 00 [20:00:05]Write to MH i2c: E2 08 00 97 1A 80 13 01 00 00 00 00 00 2E [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:05]Read from MH i2c: E2 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 0E 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 0E 00 97 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B9 [20:00:05]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:00:05]wFMCommunicate OK [20:00:05]SAM_PROTO_GetShiftState done [20:00:05]FM_GetShiftState done [20:00:05]req_shift_opened done [20:00:05]requested_item shift.open_date is exist - process it [20:00:05]req_shift_open_date [20:00:05]req_shift_open_date done [20:00:05]produce_requested_data done [20:00:05]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1945,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:00:05]process_action_free close_receipt [20:00:05]json_value_free [20:00:05]json_value_free done [20:00:05]process_json_proto returns [20:00:05]Send response to host [20:00:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1945,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:00:05]free response buf [20:00:05]execute_script done [20:00:05]execute_script returns [20:00:05]free content buf [20:00:05]Sock 8.Close socket [20:00:05]Sock 8.Thread stoped [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:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]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]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:30]accept exits with 9 [20:05:30]New connection [20:05:30]New thread 3066977636 created [20:05:30]Thread 3066834276 joined [20:05:30]Waiting for new connection... [20:05:30] Sock 9.Parse request [20:05:30]Sock 9.Check first char [20:05:30]Sock 9.First char is OK [20:05:30]request: POST /json_proto HTTP/1.0 [20:05:30]Method: POST [20:05:30]URL: /json_proto [20:05:30]Method is POST - this is cgi request [20:05:30]url: /json_proto [20:05:30]query_string will be loaded in cgi processing [20:05:30]execute_cgi json_proto POST (null) [20:05:30]execute_cgi path=json_proto method=POST [20:05:30]POST find Content-Length [20:05:30]Host: 172.17.35.133:8080 [20:05:30]Content-Length: 688 [20:05:30]Content-Type: application/json [20:05:30] [20:05:30]POST finish read [20:05:30]Found Content-Length = 688 [20:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:30]execute_script... [20:05:30]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)1619137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:30]POST & json_proto [20:05:30]process_json_proto [20:05:30]json parsed OK: [20:05:30]protocol is kg_v1.0 [20:05:30]action value=close_receipt [20:05:30]process_action close_receipt [20:05:30]cmd_close_receipt [20:05:30]MH_GetDate [20:05:30]Write to MH i2c: F0 00 00 98 1A A1 [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: F0 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: F0 09 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: F0 09 00 98 1A 00 0D DE 92 66 1B 28 2A 66 60 [20:05:30]GetLastDocTimeStamp 1720900803 [20:05:30]current date 1720901133 [20:05:30]FM_GetShiftState [20:05:30]SAM_PROTO_GetShiftState [20:05:30]wFMCommunicate request_size=4 [20:05:30]MH_SAM_APDU [20:05:30]CAPDU: 80 13 01 00 [20:05:30]Write to MH i2c: E2 08 00 99 1A 80 13 01 00 00 00 00 00 30 [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 0E 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 0E 00 99 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 BB [20:05:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:05:30]wFMCommunicate OK [20:05:30]SAM_PROTO_GetShiftState done [20:05:30]FM_GetShiftState done [20:05:30]opened in 1720829379 [20:05:30]opened+sec_in_day 1720915779 [20:05:30]quantity*price = 100042 [20:05:30]sum+1 = 100044 [20:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 115 13.07.2024 20:05 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1946 ФПД: 28551849961436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200533&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1946&fm=28551849961436&tin=02508201610067®Number=0000000000177495&sum=100000 [20:05:31]StoreToDocumentArchive [20:05:31]shift 24 fd 1946 [20:05:31]save to /storage/0024/doc_00001946 [20:05:31]save last doc name /storage/0024/doc_00001946 to /storage/kkm_last_doc_name [20:05:31]save OK [20:05:31]Clear old archive folders... [20:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:05:31]tlvbuf is 00FE8890 [20:05:31]SAM_PROTO_ClearQueue [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 09 00 00 [20:05:31]Write to MH i2c: E2 08 00 A6 1A 80 09 00 00 00 00 00 00 32 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [20:05:31]RAPDU: 90 00 [20:05:31]wFMCommunicate OK [20:05:31]SAM_PROTO_ClearQueue done [20:05:31]KKMCreateOFDPacket [20:05:31]OFDProtocolAddRootSTLVToBuf [20:05:31]FM_MakeSignedData [20:05:31]FM_MakeSignedData [20:05:31]SAM_PROTO_SignData [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 0D 01 02 [20:05:31]Write to MH i2c: E2 08 00 A7 1A 80 0D 01 02 00 00 00 00 3A [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [20:05:31]RAPDU: 90 00 [20:05:31]wFMCommunicate OK [20:05:31]wFMCommunicate request_size=255 [20:05:31]MH_SAM_APDU [20:05:31]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0D DE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [20:05:31]Write to MH i2c: E2 02 01 A8 1A 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0D DE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 DA [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 A8 1A 00 90 00 36 [20:05:31]RAPDU: 90 00 [20:05:31]wFMCommunicate OK [20:05:31]wFMCommunicate request_size=11 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 0D 02 02 06 19 F7 BE DF E7 DC [20:05:31]Write to MH i2c: E2 0E 00 A9 1A 80 0D 02 02 06 00 19 F7 BE DF E7 DC 00 00 B9 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 03 00 A9 1A 00 90 00 37 [20:05:31]RAPDU: 90 00 [20:05:31]wFMCommunicate OK [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 0D 03 02 [20:05:31]Write to MH i2c: E2 08 00 AA 1A 80 0D 03 02 00 00 00 00 3F [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0B 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0B 00 AA 1A 00 81 11 A3 1E 9A 33 03 64 90 00 C7 [20:05:31]RAPDU: 81 11 A3 1E 9A 33 03 64 90 00 [20:05:31]wFMCommunicate OK [20:05:31]SAM_PROTO_SignData done [20:05:31]FM_MakeSignedData done [20:05:31]CreateOFDProtocolMessage [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 11 00 00 [20:05:31]Write to MH i2c: E2 08 00 AB 1A 80 11 00 00 00 00 00 00 3F [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 17 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 17 00 AB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 95 [20:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:05:31]wFMCommunicate OK [20:05:31]CreateOFDProtocolMessage done [20:05:31]OFDSenderStorePacket 1946 [20:05:31]StoreOFDPacket docnum=1946 [20:05: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 10 01 00 00 A2 CB 08 01 29 F5 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0D DE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 19 F7 BE DF E7 DC 81 11 A3 1E 9A 33 03 64 [20:05:31]CheckFolder [20:05:31]dirname=/storage/ofd_packets [20:05:31]CheckFolder done [20:05:31]ProducePacketName [20:05:31]name=ofd_packets/00001946 [20:05:31]NVStorageSaveData ofd_packets/00001946 [20:05:31]File name is /storage/ofd_packets/00001946 [20:05:31]Write 302 bytes [20:05:31]NVStorageSaveData done [20:05:31]OFDSenderStorePacket done [20:05:31]KKMCreateOFDPacket done [20:05:31]NVStorageSaveData kkm_last_timestamp [20:05:31]File name is /storage/kkm_last_timestamp [20:05:31]Write 4 bytes [20:05:31]NVStorageSaveData done [20:05:31]ExternCall_PrintAddStr [20:05:31]wPrintStart [20:05:31]Write to MH i2c: 01 00 00 AC 1A C6 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 07 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 FF 0F DB [20:05:31]RasterBufferAndPrint [20:05:31]line Счет N : (1)1619137 [20:05:31]line ИНН: 02508201610067 [20:05:31]line Контрольно-Кассовый Чек [20:05:31]line ПРОДАЖА [20:05:31]line ТРК (МРК, ГНК) : 31 [20:05:31]line Товар: 2710194210 [20:05:31]line ДТ(л)-К-4 [20:05:31]line 13.780 * 72.60 [20:05:31]line = 1000.43 [20:05:31]line НДС 12% НСП 1% [20:05:31]line > о реализуемом товаре [20:05:31]line ОКРУГЛЕНИЕ: -0.43 [20:05:31]line ИТОГО: 1000.00 [20:05:31]line Внесено: 1000.00 [20:05:31]line СДАЧА: 0.00 [20:05:31]line НСП 1% : 8.85 [20:05:31]line НДС 12% : 106.24 [20:05:31]line Наличными: 1000.00 [20:05:31]line Безнал.: 0.00 [20:05:31]line Место: АЗС № 76 "Партнер Нефть" [20:05:31]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:05:31]line СНО: Общий режим [20:05:31]line Чек 115 13.07.2024 20:05 [20:05:31]line Смена: 24 ФФД: 1.0 [20:05:31]line ЗНМ: 0300000124 [20:05:31]line РНМ: 0000000000177495 [20:05:31]line Версия ККМ: 001 [20:05:31]line ФМ: 0000000002098592 [20:05:31]line ФД: 1946 [20:05:31]line ФПД: 28551849961436 [20:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200533&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1946&fm=28551849961436&tin=02508201610067®Number=0000000000177495&sum=100000 [20:05:32]OFD Sender: Processing packet 1946 [packets to send 1, broken 0] [20:05:32]ProducePacketName [20:05:32]name=ofd_packets/00001946 [20:05:32]OFD Sender: To server: pG, [20:05:32]CommunicateWithHost lk.salyk.kg:30040 [20:05:32]ConnectInit lk.salyk.kg [20:05:32]written 0, free lines is 4095 [20:05:32]Connected sock=10 [20:05: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 10 01 00 00 A2 CB 08 01 29 F5 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 0D DE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 19 F7 BE DF E7 DC 81 11 A3 1E 9A 33 03 64 [20:05: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 5B 55 47 00 C9 86 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 07 00 00 F4 03 04 00 42 89 92 66 B6 04 01 00 00 DC 16 C5 D9 96 17 5C 14 [20:05:32]CommunicateWithHost err = 0 [20:05:32]CheckOFDResponse [20:05:32]1017 (14) - 77093643461234 [20:05:32]1041 (16) - 0000000002098592 [20:05:32]1040 (4) - 1946 [20:05:32]1012 (4) - 13.07.2024 14:03 [20:05:32]1206 (1) - 0 [20:05:32]OFD Sender: Remove packet 1946 [20:05:32]ProducePacketName [20:05:32]name=ofd_packets/00001946 [20:05:32]NVStorageDeleteData [20:05:32]Write to MH i2c: 01 00 00 D7 1A F1 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: 01 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: 01 07 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: 01 07 00 D7 1A 00 00 00 00 00 E2 0C E6 [20:05:32]RasterBufferAndPrint [20:05:32]line [20:05:32]line [20:05:32]line [20:05:32]line [20:05:32]line [20:05:32]written 0, free lines is 3304 [20:05:32]MH_Cut [20:05:32]Write to MH i2c: D1 01 00 DE 1A 01 CA [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: D1 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: D1 01 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: D1 01 00 DE 1A 00 C9 [20:05:32]Write to MH i2c: 01 00 00 DF 1A F9 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:33]OFD Sender: No OFD packet to send [20:05:33]*** Cut start [20:05:33]*** Partial cut [20:05:33]*** CUTSNS_PIN = 1 [20:05:33]*** CUTSNS_PIN = 0 [20:05:33]*** Brake cut motor [20:05:34]Read from MH i2c: 01 [20:05:34]MH_I2C_Read... [20:05:34]*** Stop cut motor [20:05:34]*** Cut end [20:05:34]Read from MH i2c: 01 07 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [20:05:34]process_action close_receipt done [20:05:34]requested_data is exist [20:05:34]produce_requested_data [20:05:34]requested_item fm.sn is exist - process it [20:05:34]wFMCommunicate request_size=4 [20:05:34]MH_SAM_APDU [20:05:34]CAPDU: 80 11 00 00 [20:05:34]Write to MH i2c: E2 08 00 E0 1A 80 11 00 00 00 00 00 00 74 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:34]Read from MH i2c: E2 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 17 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 17 00 E0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 CA [20:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:05:34]wFMCommunicate OK [20:05:34]requested_item fd.num is exist - process it [20:05:34]SAM_PROTO_GetFieldsCounters [20:05:34]wFMCommunicate request_size=4 [20:05:34]MH_SAM_APDU [20:05:34]CAPDU: 80 13 00 00 [20:05:34]Write to MH i2c: E2 08 00 E1 1A 80 13 00 00 00 00 00 00 77 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:34]Read from MH i2c: E2 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 62 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 62 00 E1 1A 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 9A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [20:05: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 9A 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:34]wFMCommunicate OK [20:05:34]SAM_PROTO_GetFieldsCounters done [20:05:34]requested_item shift.num is exist - process it [20:05:34]requested_item shift.opened is exist - process it [20:05:34]req_shift_opened [20:05:34]FM_GetShiftState [20:05:34]SAM_PROTO_GetShiftState [20:05:34]wFMCommunicate request_size=4 [20:05:34]MH_SAM_APDU [20:05:34]CAPDU: 80 13 01 00 [20:05:34]Write to MH i2c: E2 08 00 E2 1A 80 13 01 00 00 00 00 00 79 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:34]Read from MH i2c: E2 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 0E 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 0E 00 E2 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 04 [20:05:34]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:05:34]wFMCommunicate OK [20:05:34]SAM_PROTO_GetShiftState done [20:05:34]FM_GetShiftState done [20:05:34]req_shift_opened done [20:05:34]requested_item shift.open_date is exist - process it [20:05:34]req_shift_open_date [20:05:34]req_shift_open_date done [20:05:34]produce_requested_data done [20:05:34]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1946,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:05:34]process_action_free close_receipt [20:05:34]json_value_free [20:05:34]json_value_free done [20:05:34]process_json_proto returns [20:05:34]Send response to host [20:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1946,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:05:34]free response buf [20:05:34]execute_script done [20:05:34]execute_script returns [20:05:34]free content buf [20:05:34]Sock 9.Close socket [20:05:34]Sock 9.Thread stoped [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:20]accept exits with 8 [20:09:20]New connection [20:09:20]New thread 3066834276 created [20:09:20]Thread 3066977636 joined [20:09:20]Waiting for new connection... [20:09:20] Sock 8.Parse request [20:09:20]Sock 8.Check first char [20:09:20]Sock 8.First char is OK [20:09:20]request: POST /json_proto HTTP/1.0 [20:09:20]Method: POST [20:09:20]URL: /json_proto [20:09:20]Method is POST - this is cgi request [20:09:20]url: /json_proto [20:09:20]query_string will be loaded in cgi processing [20:09:20]execute_cgi json_proto POST (null) [20:09:20]execute_cgi path=json_proto method=POST [20:09:20]POST find Content-Length [20:09:20]Host: 172.17.35.133:8080 [20:09:20]Content-Length: 649 [20:09:20]Content-Type: application/json [20:09:20] [20:09:20]POST finish read [20:09:20]Found Content-Length = 649 [20:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256354", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:20]execute_script... [20:09: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)256354", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:20]POST & json_proto [20:09:20]process_json_proto [20:09:20]json parsed OK: [20:09:20]protocol is kg_v1.0 [20:09:20]action value=close_receipt [20:09:20]process_action close_receipt [20:09:20]cmd_close_receipt [20:09:20]MH_GetDate [20:09:20]Write to MH i2c: F0 00 00 E3 1A EC [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: F0 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: F0 09 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: F0 09 00 E3 1A 00 F3 DE 92 66 1B 28 2A 66 91 [20:09:20]GetLastDocTimeStamp 1720901133 [20:09:20]current date 1720901363 [20:09:20]FM_GetShiftState [20:09:20]SAM_PROTO_GetShiftState [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 13 01 00 [20:09:20]Write to MH i2c: E2 08 00 E4 1A 80 13 01 00 00 00 00 00 7B [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 0E 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 0E 00 E4 1A 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 06 [20:09:20]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:09:20]wFMCommunicate OK [20:09:20]SAM_PROTO_GetShiftState done [20:09:20]FM_GetShiftState done [20:09:20]opened in 1720829379 [20:09:20]opened+sec_in_day 1720915779 [20:09:20]quantity*price = 17000 [20:09:20]sum+1 = 17001 [20:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 116 13.07.2024 20:09 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1947 ФПД: 45350706205213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200923&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1947&fm=45350706205213&tin=02508201610067®Number=0000000000177495&sum=17000 0 [20:09:21]StoreToDocumentArchive [20:09:21]shift 24 fd 1947 [20:09:21]save to /storage/0024/doc_00001947 [20:09:21]save last doc name /storage/0024/doc_00001947 to /storage/kkm_last_doc_name [20:09:21]save OK [20:09:21]Clear old archive folders... [20:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:09:21]tlvbuf is B6EC73B0 [20:09:21]SAM_PROTO_ClearQueue [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 09 00 00 [20:09:21]Write to MH i2c: E2 08 00 F1 1A 80 09 00 00 00 00 00 00 7D [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 03 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [20:09:21]RAPDU: 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_ClearQueue done [20:09:21]KKMCreateOFDPacket [20:09:21]OFDProtocolAddRootSTLVToBuf [20:09:21]FM_MakeSignedData [20:09:21]FM_MakeSignedData [20:09:21]SAM_PROTO_SignData [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 0D 01 02 [20:09:21]Write to MH i2c: E2 08 00 F2 1A 80 0D 01 02 00 00 00 00 85 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 03 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 03 00 F2 1A 00 90 00 80 [20:09:21]RAPDU: 90 00 [20:09:21]wFMCommunicate OK [20:09:21]wFMCommunicate request_size=255 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F3 DE 92 66 0E 04 04 00 18 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 [20:09:21]Write to MH i2c: E2 02 01 F3 1A 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F3 DE 92 66 0E 04 04 00 18 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 11 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 F3 1A 00 90 00 81 [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]wFMCommunicate request_size=36 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9B 07 00 00 35 04 06 00 29 3F 08 BB D2 1D [20:09:22]Write to MH i2c: E2 27 00 F4 1A 80 0D 02 02 1F 00 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 9B 07 00 00 35 04 06 00 29 3F 08 BB D2 1D 00 00 6C [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 F4 1A 00 90 00 82 [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 0D 03 02 [20:09:22]Write to MH i2c: E2 08 00 F5 1A 80 0D 03 02 00 00 00 00 8A [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 0B 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 0B 00 F5 1A 00 39 00 CA 92 B6 9C 06 68 90 00 E0 [20:09:22]RAPDU: 39 00 CA 92 B6 9C 06 68 90 00 [20:09:22]wFMCommunicate OK [20:09:22]SAM_PROTO_SignData done [20:09:22]FM_MakeSignedData done [20:09:22]CreateOFDProtocolMessage [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 11 00 00 [20:09:22]Write to MH i2c: E2 08 00 F6 1A 80 11 00 00 00 00 00 00 8A [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 17 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 17 00 F6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E0 [20:09:22]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:22]wFMCommunicate OK [20:09:22]CreateOFDProtocolMessage done [20:09:22]OFDSenderStorePacket 1947 [20:09:22]StoreOFDPacket docnum=1947 [20:09:22]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 7E 2B 21 01 25 F6 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F3 DE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 29 3F 08 BB D2 1D 39 00 CA 92 B6 9C 06 68 [20:09:22]CheckFolder [20:09:22]dirname=/storage/ofd_packets [20:09:22]CheckFolder done [20:09:22]ProducePacketName [20:09:22]name=ofd_packets/00001947 [20:09:22]NVStorageSaveData ofd_packets/00001947 [20:09:22]File name is /storage/ofd_packets/00001947 [20:09:22]Write 327 bytes [20:09:22]NVStorageSaveData done [20:09:22]OFDSenderStorePacket done [20:09:22]KKMCreateOFDPacket done [20:09:22]NVStorageSaveData kkm_last_timestamp [20:09:22]File name is /storage/kkm_last_timestamp [20:09:22]Write 4 bytes [20:09:22]NVStorageSaveData done [20:09:22]ExternCall_PrintAddStr [20:09:22]wPrintStart [20:09:22]Write to MH i2c: 01 00 00 F7 1A 11 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 07 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 FF 0F 26 [20:09:22]RasterBufferAndPrint [20:09:22]line Счет N : (3)256354 [20:09:22]line ИНН: 02508201610067 [20:09:22]line Контрольно-Кассовый Чек [20:09:22]line ПРОДАЖА [20:09:22]line Товар: 8901086040008 [20:09:22]line Жид/ст ПН летняя 4,5л [20:09:22]line 1.000 * 170.00 [20:09:22]line = 170.00 [20:09:22]line НДС 12% НСП 1% [20:09:22]line > о реализуемом товаре [20:09:22]line ИТОГО: 170.00 [20:09:22]line НСП 1% : 1.50 [20:09:22]line НДС 12% : 18.05 [20:09:22]line Наличными: 170.00 [20:09:22]line Безнал.: 0.00 [20:09:22]line Место: АЗС № 76 "Партнер Нефть" [20:09:22]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:09:22]line СНО: Общий режим [20:09:22]line Чек 116 13.07.2024 20:09 [20:09:22]line Смена: 24 ФФД: 1.0 [20:09:22]line ЗНМ: 0300000124 [20:09:22]line РНМ: 0000000000177495 [20:09:22]line Версия ККМ: 001 [20:09:22]line ФМ: 0000000002098592 [20:09:22]line ФД: 1947 [20:09:22]line ФПД: 45350706205213 [20:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200923&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1947&fm=45350706205213&tin=02508201610067®Number=0000000000177495&sum=17000 [20:09:22]line 0 [20:09:22]OFD Sender: Processing packet 1947 [packets to send 1, broken 0] [20:09:22]ProducePacketName [20:09:22]name=ofd_packets/00001947 [20:09:22]OFD Sender: To server: pG, [20:09:22]CommunicateWithHost lk.salyk.kg:30040 [20:09:22]ConnectInit lk.salyk.kg [20:09:22]written 0, free lines is 4095 [20:09:22]Connected sock=10 [20:09: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 29 01 00 00 7E 2B 21 01 25 F6 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F3 DE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 29 3F 08 BB D2 1D 39 00 CA 92 B6 9C 06 68 [20:09: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 E2 D3 47 00 28 A2 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 07 00 00 F4 03 04 00 29 8A 92 66 B6 04 01 00 00 EE FD 38 C3 7E 41 93 A7 [20:09:22]CommunicateWithHost err = 0 [20:09:22]CheckOFDResponse [20:09:22]1017 (14) - 77093643461234 [20:09:22]1041 (16) - 0000000002098592 [20:09:22]1040 (4) - 1947 [20:09:22]1012 (4) - 13.07.2024 14:07 [20:09:22]1206 (1) - 0 [20:09:22]OFD Sender: Remove packet 1947 [20:09:22]ProducePacketName [20:09:22]name=ofd_packets/00001947 [20:09:22]NVStorageDeleteData [20:09:23]Write to MH i2c: 01 00 00 1F 1B 3A [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 07 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 07 00 1F 1B 00 00 00 00 00 0B 0D 59 [20:09:23]RasterBufferAndPrint [20:09:23]line [20:09:23]line [20:09:23]line [20:09:23]line [20:09:23]line [20:09:23]written 0, free lines is 3346 [20:09:23]MH_Cut [20:09:23]Write to MH i2c: D1 01 00 26 1B 01 13 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: D1 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: D1 01 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: D1 01 00 26 1B 00 12 [20:09:23]Write to MH i2c: 01 00 00 27 1B 42 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]OFD Sender: No OFD packet to send [20:09:23]*** Cut start [20:09:23]*** Partial cut [20:09:23]*** CUTSNS_PIN = 1 [20:09:23]*** CUTSNS_PIN = 0 [20:09:24]*** Brake cut motor [20:09:24]Read from MH i2c: 01 [20:09:24]MH_I2C_Read... [20:09:24]*** Stop cut motor [20:09:24]*** Cut end [20:09:24]Read from MH i2c: 01 07 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: 01 07 00 27 1B 00 00 00 00 00 FF 0F 57 [20:09:24]process_action close_receipt done [20:09:24]requested_data is exist [20:09:24]produce_requested_data [20:09:24]requested_item fm.sn is exist - process it [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 11 00 00 [20:09:24]Write to MH i2c: E2 08 00 28 1B 80 11 00 00 00 00 00 00 BD [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 17 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 17 00 28 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 13 [20:09:24]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:24]wFMCommunicate OK [20:09:24]requested_item fd.num is exist - process it [20:09:24]SAM_PROTO_GetFieldsCounters [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 13 00 00 [20:09:24]Write to MH i2c: E2 08 00 29 1B 80 13 00 00 00 00 00 00 C0 [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 62 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 62 00 29 1B 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 9B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [20:09: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 9B 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:24]wFMCommunicate OK [20:09:24]SAM_PROTO_GetFieldsCounters done [20:09:24]requested_item shift.num is exist - process it [20:09:24]requested_item shift.opened is exist - process it [20:09:24]req_shift_opened [20:09:24]FM_GetShiftState [20:09:24]SAM_PROTO_GetShiftState [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 13 01 00 [20:09:24]Write to MH i2c: E2 08 00 2A 1B 80 13 01 00 00 00 00 00 C2 [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 2A 1B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4D [20:09:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:09:24]wFMCommunicate OK [20:09:24]SAM_PROTO_GetShiftState done [20:09:24]FM_GetShiftState done [20:09:24]req_shift_opened done [20:09:24]requested_item shift.open_date is exist - process it [20:09:24]req_shift_open_date [20:09:24]req_shift_open_date done [20:09:24]produce_requested_data done [20:09:24]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1947,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:09:24]process_action_free close_receipt [20:09:24]json_value_free [20:09:24]json_value_free done [20:09:24]process_json_proto returns [20:09:24]Send response to host [20:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1947,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:09:24]free response buf [20:09:24]execute_script done [20:09:24]execute_script returns [20:09:24]free content buf [20:09:24]Sock 8.Close socket [20:09:24]Sock 8.Thread stoped [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:12]accept exits with 9 [20:10:12]New connection [20:10:12]New thread 3066977636 created [20:10:12]Thread 3066834276 joined [20:10:12]Waiting for new connection... [20:10:12] Sock 9.Parse request [20:10:12]Sock 9.Check first char [20:10:12]Sock 9.First char is OK [20:10:12]request: POST /json_proto HTTP/1.0 [20:10:12]Method: POST [20:10:12]URL: /json_proto [20:10:12]Method is POST - this is cgi request [20:10:12]url: /json_proto [20:10:12]query_string will be loaded in cgi processing [20:10:12]execute_cgi json_proto POST (null) [20:10:12]execute_cgi path=json_proto method=POST [20:10:12]POST find Content-Length [20:10:12]Host: 172.17.35.133:8080 [20:10:12]Content-Length: 679 [20:10:12]Content-Type: application/json [20:10:12] [20:10:12]POST finish read [20:10:12]Found Content-Length = 679 [20:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619138", "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" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:12]execute_script... [20:10:12]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)1619138", "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" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:12]POST & json_proto [20:10:12]process_json_proto [20:10:12]json parsed OK: [20:10:12]protocol is kg_v1.0 [20:10:12]action value=close_receipt [20:10:12]process_action close_receipt [20:10:12]cmd_close_receipt [20:10:12]MH_GetDate [20:10:12]Write to MH i2c: F0 00 00 2B 1B 35 [20:10:12]Write i2c OK [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: F0 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: F0 09 00 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: F0 09 00 2B 1B 00 27 DF 92 66 1B 28 2A 66 0F [20:10:12]GetLastDocTimeStamp 1720901363 [20:10:12]current date 1720901415 [20:10:12]FM_GetShiftState [20:10:12]SAM_PROTO_GetShiftState [20:10:12]wFMCommunicate request_size=4 [20:10:12]MH_SAM_APDU [20:10:12]CAPDU: 80 13 01 00 [20:10:12]Write to MH i2c: E2 08 00 2C 1B 80 13 01 00 00 00 00 00 C4 [20:10:12]Write i2c OK [20:10:12]MH_I2C_Read... [20:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:12]Read from MH i2c: E2 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: E2 0E 00 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: E2 0E 00 2C 1B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4F [20:10:12]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:10:12]wFMCommunicate OK [20:10:12]SAM_PROTO_GetShiftState done [20:10:12]FM_GetShiftState done [20:10:12]opened in 1720829379 [20:10:12]opened+sec_in_day 1720915779 [20:10:12]quantity*price = 70012 [20:10:12]sum+1 = 70014 [20:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 117 13.07.2024 20:10 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1948 ФПД: 88447274877063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T201015&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1948&fm=88447274877063&tin=02508201610067®Number=0000000000177495&sum=70000 [20:10:13]StoreToDocumentArchive [20:10:13]shift 24 fd 1948 [20:10:13]save to /storage/0024/doc_00001948 [20:10:13]save last doc name /storage/0024/doc_00001948 to /storage/kkm_last_doc_name [20:10:13]save OK [20:10:13]Clear old archive folders... [20:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:13]tlvbuf is 00FCAF60 [20:10:13]SAM_PROTO_ClearQueue [20:10:13]wFMCommunicate request_size=4 [20:10:13]MH_SAM_APDU [20:10:13]CAPDU: 80 09 00 00 [20:10:13]Write to MH i2c: E2 08 00 39 1B 80 09 00 00 00 00 00 00 C6 [20:10:13]Write i2c OK [20:10:13]MH_I2C_Read... [20:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:13]Read from MH i2c: E2 [20:10:13]MH_I2C_Read... [20:10:13]Read from MH i2c: E2 03 00 [20:10:13]MH_I2C_Read... [20:10:13]Read from MH i2c: E2 03 00 39 1B 00 90 00 C8 [20:10:13]RAPDU: 90 00 [20:10:13]wFMCommunicate OK [20:10:13]SAM_PROTO_ClearQueue done [20:10:13]KKMCreateOFDPacket [20:10:13]OFDProtocolAddRootSTLVToBuf [20:10:13]FM_MakeSignedData [20:10:13]FM_MakeSignedData [20:10:13]SAM_PROTO_SignData [20:10:13]wFMCommunicate request_size=4 [20:10:13]MH_SAM_APDU [20:10:13]CAPDU: 80 0D 01 02 [20:10:13]Write to MH i2c: E2 08 00 3A 1B 80 0D 01 02 00 00 00 00 CE [20:10:13]Write i2c OK [20:10:13]MH_I2C_Read... [20:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:13]Read from MH i2c: E2 [20:10:13]MH_I2C_Read... [20:10:13]Read from MH i2c: E2 03 00 [20:10:13]MH_I2C_Read... [20:10:13]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [20:10:13]RAPDU: 90 00 [20:10:13]wFMCommunicate OK [20:10:13]wFMCommunicate request_size=255 [20:10:13]MH_SAM_APDU [20:10:13]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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 27 DF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 50 [20:10:13]Write to MH i2c: E2 02 01 3B 1B 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 27 DF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 50 00 00 F2 [20:10:13]Write i2c OK [20:10:13]MH_I2C_Read... [20:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:14]Read from MH i2c: E2 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 03 00 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 03 00 3B 1B 00 90 00 CA [20:10:14]RAPDU: 90 00 [20:10:14]wFMCommunicate OK [20:10:14]wFMCommunicate request_size=10 [20:10:14]MH_SAM_APDU [20:10:14]CAPDU: 80 0D 02 02 05 71 3C 66 80 87 [20:10:14]Write to MH i2c: E2 0D 00 3C 1B 80 0D 02 02 05 00 71 3C 66 80 87 00 00 F5 [20:10:14]Write i2c OK [20:10:14]MH_I2C_Read... [20:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:14]Read from MH i2c: E2 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 03 00 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [20:10:14]RAPDU: 90 00 [20:10:14]wFMCommunicate OK [20:10:14]wFMCommunicate request_size=4 [20:10:14]MH_SAM_APDU [20:10:14]CAPDU: 80 0D 03 02 [20:10:14]Write to MH i2c: E2 08 00 3D 1B 80 0D 03 02 00 00 00 00 D3 [20:10:14]Write i2c OK [20:10:14]MH_I2C_Read... [20:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:14]Read from MH i2c: E2 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 0B 00 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 0B 00 3D 1B 00 59 00 DB E0 AE 15 C4 1E 90 00 8D [20:10:14]RAPDU: 59 00 DB E0 AE 15 C4 1E 90 00 [20:10:14]wFMCommunicate OK [20:10:14]SAM_PROTO_SignData done [20:10:14]FM_MakeSignedData done [20:10:14]CreateOFDProtocolMessage [20:10:14]wFMCommunicate request_size=4 [20:10:14]MH_SAM_APDU [20:10:14]CAPDU: 80 11 00 00 [20:10:14]Write to MH i2c: E2 08 00 3E 1B 80 11 00 00 00 00 00 00 D3 [20:10:14]Write i2c OK [20:10:14]MH_I2C_Read... [20:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:14]Read from MH i2c: E2 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 17 00 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: E2 17 00 3E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 29 [20:10:14]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:14]wFMCommunicate OK [20:10:14]CreateOFDProtocolMessage done [20:10:14]OFDSenderStorePacket 1948 [20:10:14]StoreOFDPacket docnum=1948 [20:10:14]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 74 20 07 01 F1 84 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 27 DF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 50 71 3C 66 80 87 59 00 DB E0 AE 15 C4 1E [20:10:14]CheckFolder [20:10:14]dirname=/storage/ofd_packets [20:10:14]CheckFolder done [20:10:14]ProducePacketName [20:10:14]name=ofd_packets/00001948 [20:10:14]NVStorageSaveData ofd_packets/00001948 [20:10:14]File name is /storage/ofd_packets/00001948 [20:10:14]Write 301 bytes [20:10:14]NVStorageSaveData done [20:10:14]OFDSenderStorePacket done [20:10:14]KKMCreateOFDPacket done [20:10:14]NVStorageSaveData kkm_last_timestamp [20:10:14]File name is /storage/kkm_last_timestamp [20:10:14]Write 4 bytes [20:10:14]NVStorageSaveData done [20:10:14]ExternCall_PrintAddStr [20:10:14]wPrintStart [20:10:14]Write to MH i2c: 01 00 00 3F 1B 5A [20:10:14]Write i2c OK [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: 01 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: 01 07 00 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: 01 07 00 3F 1B 00 00 00 00 00 FF 0F 6F [20:10:14]RasterBufferAndPrint [20:10:14]line Счет N : (1)1619138 [20:10:14]line ИНН: 02508201610067 [20:10:14]line Контрольно-Кассовый Чек [20:10:14]line ПРОДАЖА [20:10:14]line ТРК (МРК, ГНК) : 33 [20:10:14]line Товар: 2710124130 [20:10:14]line Аи-92-К-5 [20:10:14]line 10.560 * 66.30 [20:10:14]line = 700.13 [20:10:14]line НДС 12% НСП 1% [20:10:14]line > о реализуемом товаре [20:10:14]line ОКРУГЛЕНИЕ: -0.13 [20:10:14]line ИТОГО: 700.00 [20:10:14]line Внесено: 700.00 [20:10:14]line СДАЧА: 0.00 [20:10:14]line НСП 1% : 6.20 [20:10:14]line НДС 12% : 74.35 [20:10:14]line Наличными: 700.00 [20:10:14]line Безнал.: 0.00 [20:10:14]line Место: АЗС № 76 "Партнер Нефть" [20:10:14]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:10:14]line СНО: Общий режим [20:10:14]line Чек 117 13.07.2024 20:10 [20:10:14]line Смена: 24 ФФД: 1.0 [20:10:14]line ЗНМ: 0300000124 [20:10:14]line РНМ: 0000000000177495 [20:10:14]line Версия ККМ: 001 [20:10:14]line ФМ: 0000000002098592 [20:10:14]line ФД: 1948 [20:10:14]line ФПД: 88447274877063 [20:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T201015&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1948&fm=88447274877063&tin=02508201610067®Number=0000000000177495&sum=70000 [20:10:14]OFD Sender: Processing packet 1948 [packets to send 1, broken 0] [20:10:14]ProducePacketName [20:10:14]name=ofd_packets/00001948 [20:10:14]OFD Sender: To server: pG, [20:10:14]CommunicateWithHost lk.salyk.kg:30040 [20:10:14]ConnectInit lk.salyk.kg [20:10:14]written 0, free lines is 4095 [20:10:14]Connected sock=10 [20:10: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 0F 01 00 00 74 20 07 01 F1 84 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 27 DF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 50 71 3C 66 80 87 59 00 DB E0 AE 15 C4 1E [20:10: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 54 5F 47 00 0F 1F 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 07 00 00 F4 03 04 00 5C 8A 92 66 B6 04 01 00 00 40 33 74 E1 32 DE 68 9F [20:10:14]CommunicateWithHost err = 0 [20:10:14]CheckOFDResponse [20:10:14]1017 (14) - 77093643461234 [20:10:14]1041 (16) - 0000000002098592 [20:10:14]1040 (4) - 1948 [20:10:14]1012 (4) - 13.07.2024 14:08 [20:10:14]1206 (1) - 0 [20:10:14]OFD Sender: Remove packet 1948 [20:10:14]ProducePacketName [20:10:14]name=ofd_packets/00001948 [20:10:14]NVStorageDeleteData [20:10:14]Write to MH i2c: 01 00 00 6A 1B 85 [20:10:14]Write i2c OK [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: 01 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: 01 07 00 [20:10:14]MH_I2C_Read... [20:10:14]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 E2 0C 7A [20:10:14]RasterBufferAndPrint [20:10:14]line [20:10:14]line [20:10:14]line [20:10:14]line [20:10:14]line [20:10:14]written 0, free lines is 3307 [20:10:15]MH_Cut [20:10:15]Write to MH i2c: D1 01 00 71 1B 01 5E [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: D1 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: D1 01 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: D1 01 00 71 1B 00 5D [20:10:15]Write to MH i2c: 01 00 00 72 1B 8D [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]OFD Sender: No OFD packet to send [20:10:15]*** Cut start [20:10:15]*** Partial cut [20:10:15]*** CUTSNS_PIN = 1 [20:10:15]*** CUTSNS_PIN = 0 [20:10:15]*** Brake cut motor [20:10:16]Read from MH i2c: 01 [20:10:16]MH_I2C_Read... [20:10:16]*** Stop cut motor [20:10:16]*** Cut end [20:10:16]Read from MH i2c: 01 07 00 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 FF 0F A2 [20:10:16]process_action close_receipt done [20:10:16]requested_data is exist [20:10:16]produce_requested_data [20:10:16]requested_item fm.sn is exist - process it [20:10:16]wFMCommunicate request_size=4 [20:10:16]MH_SAM_APDU [20:10:16]CAPDU: 80 11 00 00 [20:10:16]Write to MH i2c: E2 08 00 73 1B 80 11 00 00 00 00 00 00 08 [20:10:16]Write i2c OK [20:10:16]MH_I2C_Read... [20:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:16]Read from MH i2c: E2 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 17 00 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 17 00 73 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5E [20:10:16]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:16]wFMCommunicate OK [20:10:16]requested_item fd.num is exist - process it [20:10:16]SAM_PROTO_GetFieldsCounters [20:10:16]wFMCommunicate request_size=4 [20:10:16]MH_SAM_APDU [20:10:16]CAPDU: 80 13 00 00 [20:10:16]Write to MH i2c: E2 08 00 74 1B 80 13 00 00 00 00 00 00 0B [20:10:16]Write i2c OK [20:10:16]MH_I2C_Read... [20:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:16]Read from MH i2c: E2 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 62 00 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 62 00 74 1B 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 9C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [20:10: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 9C 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:16]wFMCommunicate OK [20:10:16]SAM_PROTO_GetFieldsCounters done [20:10:16]requested_item shift.num is exist - process it [20:10:16]requested_item shift.opened is exist - process it [20:10:16]req_shift_opened [20:10:16]FM_GetShiftState [20:10:16]SAM_PROTO_GetShiftState [20:10:16]wFMCommunicate request_size=4 [20:10:16]MH_SAM_APDU [20:10:16]CAPDU: 80 13 01 00 [20:10:16]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [20:10:16]Write i2c OK [20:10:16]MH_I2C_Read... [20:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:16]Read from MH i2c: E2 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 0E 00 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 98 [20:10:16]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:10:16]wFMCommunicate OK [20:10:16]SAM_PROTO_GetShiftState done [20:10:16]FM_GetShiftState done [20:10:16]req_shift_opened done [20:10:16]requested_item shift.open_date is exist - process it [20:10:16]req_shift_open_date [20:10:16]req_shift_open_date done [20:10:16]produce_requested_data done [20:10:16]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1948,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:10:16]process_action_free close_receipt [20:10:16]json_value_free [20:10:16]json_value_free done [20:10:16]process_json_proto returns [20:10:16]Send response to host [20:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1948,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:10:16]free response buf [20:10:16]execute_script done [20:10:16]execute_script returns [20:10:16]free content buf [20:10:16]Sock 9.Close socket [20:10:16]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:14]accept exits with 8 [20:27:14]New connection [20:27:14]New thread 3066834276 created [20:27:14]Thread 3066977636 joined [20:27:14]Waiting for new connection... [20:27:14] Sock 8.Parse request [20:27:14]Sock 8.Check first char [20:27:14]Sock 8.First char is OK [20:27:14]request: POST /json_proto HTTP/1.0 [20:27:14]Method: POST [20:27:14]URL: /json_proto [20:27:14]Method is POST - this is cgi request [20:27:14]url: /json_proto [20:27:14]query_string will be loaded in cgi processing [20:27:14]execute_cgi json_proto POST (null) [20:27:14]execute_cgi path=json_proto method=POST [20:27:14]POST find Content-Length [20:27:14]Host: 172.17.35.133:8080 [20:27:14]Content-Length: 676 [20:27:14]Content-Type: application/json [20:27:14] [20:27:14]POST finish read [20:27:14]Found Content-Length = 676 [20:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256355", "tax_sys" : 0, "items" : [ { "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:14]execute_script... [20:27:14]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)256355", "tax_sys" : 0, "items" : [ { "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:14]POST & json_proto [20:27:14]process_json_proto [20:27:14]json parsed OK: [20:27:14]protocol is kg_v1.0 [20:27:14]action value=close_receipt [20:27:14]process_action close_receipt [20:27:14]cmd_close_receipt [20:27:14]MH_GetDate [20:27:14]Write to MH i2c: F0 00 00 76 1B 80 [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: F0 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: F0 09 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: F0 09 00 76 1B 00 25 E3 92 66 1B 28 2A 66 5C [20:27:14]GetLastDocTimeStamp 1720901415 [20:27:14]current date 1720902437 [20:27:14]FM_GetShiftState [20:27:14]SAM_PROTO_GetShiftState [20:27:14]wFMCommunicate request_size=4 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 13 01 00 [20:27:14]Write to MH i2c: E2 08 00 77 1B 80 13 01 00 00 00 00 00 0F [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 0E 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 0E 00 77 1B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 9A [20:27:14]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:27:14]wFMCommunicate OK [20:27:14]SAM_PROTO_GetShiftState done [20:27:14]FM_GetShiftState done [20:27:14]opened in 1720829379 [20:27:14]opened+sec_in_day 1720915779 [20:27:14]quantity*price = 6000 [20:27:14]sum+1 = 6001 [20:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 118 13.07.2024 20:27 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1949 ФПД: 62977954471668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202717&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1949&fm=62977954471668&tin=02508201610067®Number=0000000000177495&sum=6000 0 [20:27:15]StoreToDocumentArchive [20:27:15]shift 24 fd 1949 [20:27:15]save to /storage/0024/doc_00001949 [20:27:15]save last doc name /storage/0024/doc_00001949 to /storage/kkm_last_doc_name [20:27:15]save OK [20:27:15]Clear old archive folders... [20:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:27:15]tlvbuf is 00FCAA60 [20:27:15]SAM_PROTO_ClearQueue [20:27:15]wFMCommunicate request_size=4 [20:27:15]MH_SAM_APDU [20:27:15]CAPDU: 80 09 00 00 [20:27:15]Write to MH i2c: E2 08 00 84 1B 80 09 00 00 00 00 00 00 11 [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:15]Read from MH i2c: E2 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: E2 03 00 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [20:27:15]RAPDU: 90 00 [20:27:15]wFMCommunicate OK [20:27:15]SAM_PROTO_ClearQueue done [20:27:15]KKMCreateOFDPacket [20:27:15]OFDProtocolAddRootSTLVToBuf [20:27:15]FM_MakeSignedData [20:27:15]FM_MakeSignedData [20:27:15]SAM_PROTO_SignData [20:27:15]wFMCommunicate request_size=4 [20:27:15]MH_SAM_APDU [20:27:15]CAPDU: 80 0D 01 02 [20:27:15]Write to MH i2c: E2 08 00 85 1B 80 0D 01 02 00 00 00 00 19 [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:15]Read from MH i2c: E2 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: E2 03 00 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [20:27:15]RAPDU: 90 00 [20:27:15]wFMCommunicate OK [20:27:15]wFMCommunicate request_size=255 [20:27:15]MH_SAM_APDU [20:27:15]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 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 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 76 00 00 00 F4 03 04 00 25 E3 92 66 0E 04 04 00 18 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 [20:27:15]Write to MH i2c: E2 02 01 86 1B 80 0D 02 02 FA 00 03 00 1F 01 1E 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 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 76 00 00 00 F4 03 04 00 25 E3 92 66 0E 04 04 00 18 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 73 [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:16]OFD Sender: No OFD packet to send [20:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 86 1B 00 90 00 15 [20:27:16]RAPDU: 90 00 [20:27:16]wFMCommunicate OK [20:27:16]wFMCommunicate request_size=46 [20:27:16]MH_SAM_APDU [20:27: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 9D 07 00 00 35 04 06 00 39 47 32 9A DE F4 [20:27:16]Write to MH i2c: E2 31 00 87 1B 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 9D 07 00 00 35 04 06 00 39 47 32 9A DE F4 00 00 71 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 87 1B 00 90 00 16 [20:27:16]RAPDU: 90 00 [20:27:16]wFMCommunicate OK [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 0D 03 02 [20:27:16]Write to MH i2c: E2 08 00 88 1B 80 0D 03 02 00 00 00 00 1E [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 0B 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 0B 00 88 1B 00 E4 E8 09 BD 98 07 59 09 90 00 B2 [20:27:16]RAPDU: E4 E8 09 BD 98 07 59 09 90 00 [20:27:16]wFMCommunicate OK [20:27:16]SAM_PROTO_SignData done [20:27:16]FM_MakeSignedData done [20:27:16]CreateOFDProtocolMessage [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 11 00 00 [20:27:16]Write to MH i2c: E2 08 00 89 1B 80 11 00 00 00 00 00 00 1E [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 17 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 17 00 89 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 74 [20:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:27:16]wFMCommunicate OK [20:27:16]CreateOFDProtocolMessage done [20:27:16]OFDSenderStorePacket 1949 [20:27:16]StoreOFDPacket docnum=1949 [20:27: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 15 D1 2B 01 B9 A8 5A 03 01 00 03 00 1F 01 1E 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 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 76 00 00 00 F4 03 04 00 25 E3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 39 47 32 9A DE F4 E4 E8 09 BD 98 07 59 09 [20:27:16]CheckFolder [20:27:16]dirname=/storage/ofd_packets [20:27:16]CheckFolder done [20:27:16]ProducePacketName [20:27:16]name=ofd_packets/00001949 [20:27:16]NVStorageSaveData ofd_packets/00001949 [20:27:16]File name is /storage/ofd_packets/00001949 [20:27:16]Write 337 bytes [20:27:16]NVStorageSaveData done [20:27:16]OFDSenderStorePacket done [20:27:16]KKMCreateOFDPacket done [20:27:16]NVStorageSaveData kkm_last_timestamp [20:27:16]File name is /storage/kkm_last_timestamp [20:27:16]Write 4 bytes [20:27:16]NVStorageSaveData done [20:27:16]ExternCall_PrintAddStr [20:27:16]wPrintStart [20:27:16]Write to MH i2c: 01 00 00 8A 1B A5 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 FF 0F BA [20:27:16]RasterBufferAndPrint [20:27:16]line Счет N : (3)256355 [20:27:16]line ИНН: 02508201610067 [20:27:16]line Контрольно-Кассовый Чек [20:27:16]line ПРОДАЖА [20:27:16]line Товар: 4870209744595 [20:27:16]line Сухарики Флинт Краб 100 гр [20:27:16]line 1.000 * 60.00 [20:27:16]line = 60.00 [20:27:16]line НДС 12% НСП 1% [20:27:16]line > о реализуемом товаре [20:27:16]line ИТОГО: 60.00 [20:27:16]line НСП 1% : 0.53 [20:27:16]line НДС 12% : 6.37 [20:27:16]line Наличными: 60.00 [20:27:16]line Безнал.: 0.00 [20:27:16]line Место: АЗС № 76 "Партнер Нефть" [20:27:16]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:27:16]line СНО: Общий режим [20:27:16]line Чек 118 13.07.2024 20:27 [20:27:16]line Смена: 24 ФФД: 1.0 [20:27:16]line ЗНМ: 0300000124 [20:27:16]line РНМ: 0000000000177495 [20:27:16]line Версия ККМ: 001 [20:27:16]line ФМ: 0000000002098592 [20:27:16]line ФД: 1949 [20:27:16]line ФПД: 62977954471668 [20:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202717&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1949&fm=62977954471668&tin=02508201610067®Number=0000000000177495&sum=6000 [20:27:16]line 0 [20:27:16]OFD Sender: Processing packet 1949 [packets to send 1, broken 0] [20:27:16]ProducePacketName [20:27:16]name=ofd_packets/00001949 [20:27:16]OFD Sender: To server: pG, [20:27:16]CommunicateWithHost lk.salyk.kg:30040 [20:27:16]ConnectInit lk.salyk.kg [20:27:16]written 0, free lines is 4095 [20:27:16]Connected sock=10 [20:27:16]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 15 D1 2B 01 B9 A8 5A 03 01 00 03 00 1F 01 1E 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 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 76 00 00 00 F4 03 04 00 25 E3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 39 47 32 9A DE F4 E4 E8 09 BD 98 07 59 09 [20:27: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 A7 B8 47 00 8B BA 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 07 00 00 F4 03 04 00 5B 8E 92 66 B6 04 01 00 00 45 0A DD 5C 27 D8 17 86 [20:27:17]CommunicateWithHost err = 0 [20:27:17]CheckOFDResponse [20:27:17]1017 (14) - 77093643461234 [20:27:17]1041 (16) - 0000000002098592 [20:27:17]1040 (4) - 1949 [20:27:17]1012 (4) - 13.07.2024 14:25 [20:27:17]1206 (1) - 0 [20:27:17]OFD Sender: Remove packet 1949 [20:27:17]ProducePacketName [20:27:17]name=ofd_packets/00001949 [20:27:17]NVStorageDeleteData [20:27:17]Write to MH i2c: 01 00 00 B2 1B CD [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 07 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 07 00 B2 1B 00 00 00 00 00 15 0D F6 [20:27:17]RasterBufferAndPrint [20:27:17]line [20:27:17]line [20:27:17]line [20:27:17]line [20:27:17]line [20:27:17]written 0, free lines is 3357 [20:27:17]MH_Cut [20:27:17]Write to MH i2c: D1 01 00 B9 1B 01 A6 [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: D1 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: D1 01 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: D1 01 00 B9 1B 00 A5 [20:27:17]Write to MH i2c: 01 00 00 BA 1B D5 [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]OFD Sender: No OFD packet to send [20:27:17]*** Cut start [20:27:17]*** Partial cut [20:27:17]*** CUTSNS_PIN = 1 [20:27:17]*** CUTSNS_PIN = 0 [20:27:18]*** Brake cut motor [20:27:18]Read from MH i2c: 01 [20:27:18]MH_I2C_Read... [20:27:18]*** Stop cut motor [20:27:18]*** Cut end [20:27:18]Read from MH i2c: 01 07 00 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: 01 07 00 BA 1B 00 00 00 00 00 FF 0F EA [20:27:18]process_action close_receipt done [20:27:18]requested_data is exist [20:27:18]produce_requested_data [20:27:18]requested_item fm.sn is exist - process it [20:27:18]wFMCommunicate request_size=4 [20:27:18]MH_SAM_APDU [20:27:18]CAPDU: 80 11 00 00 [20:27:18]Write to MH i2c: E2 08 00 BB 1B 80 11 00 00 00 00 00 00 50 [20:27:18]Write i2c OK [20:27:18]MH_I2C_Read... [20:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:18]Read from MH i2c: E2 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: E2 17 00 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: E2 17 00 BB 1B 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:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:27:18]wFMCommunicate OK [20:27:18]requested_item fd.num is exist - process it [20:27:18]SAM_PROTO_GetFieldsCounters [20:27:18]wFMCommunicate request_size=4 [20:27:18]MH_SAM_APDU [20:27:18]CAPDU: 80 13 00 00 [20:27:18]Write to MH i2c: E2 08 00 BC 1B 80 13 00 00 00 00 00 00 53 [20:27:18]Write i2c OK [20:27:18]MH_I2C_Read... [20:27:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:18]Read from MH i2c: E2 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: E2 62 00 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: E2 62 00 BC 1B 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 9D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [20:27: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 9D 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:18]wFMCommunicate OK [20:27:18]SAM_PROTO_GetFieldsCounters done [20:27:18]requested_item shift.num is exist - process it [20:27:18]requested_item shift.opened is exist - process it [20:27:18]req_shift_opened [20:27:18]FM_GetShiftState [20:27:18]SAM_PROTO_GetShiftState [20:27:18]wFMCommunicate request_size=4 [20:27:18]MH_SAM_APDU [20:27:18]CAPDU: 80 13 01 00 [20:27:18]Write to MH i2c: E2 08 00 BD 1B 80 13 01 00 00 00 00 00 55 [20:27:18]Write i2c OK [20:27:18]MH_I2C_Read... [20:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:18]Read from MH i2c: E2 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: E2 0E 00 [20:27:18]MH_I2C_Read... [20:27:18]Read from MH i2c: E2 0E 00 BD 1B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E0 [20:27:18]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:27:18]wFMCommunicate OK [20:27:18]SAM_PROTO_GetShiftState done [20:27:18]FM_GetShiftState done [20:27:18]req_shift_opened done [20:27:18]requested_item shift.open_date is exist - process it [20:27:18]req_shift_open_date [20:27:18]req_shift_open_date done [20:27:18]produce_requested_data done [20:27:18]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1949,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:27:18]process_action_free close_receipt [20:27:18]json_value_free [20:27:18]json_value_free done [20:27:18]process_json_proto returns [20:27:18]Send response to host [20:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1949,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:27:18]free response buf [20:27:18]execute_script done [20:27:18]execute_script returns [20:27:18]free content buf [20:27:18]Sock 8.Close socket [20:27:18]Sock 8.Thread stoped [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]accept exits with 9 [20:27:57]New connection [20:27:57]New thread 3066977636 created [20:27:57]Thread 3066834276 joined [20:27:57]Waiting for new connection... [20:27:57] Sock 9.Parse request [20:27:57]Sock 9.Check first char [20:27:57]Sock 9.First char is OK [20:27:57]request: POST /json_proto HTTP/1.0 [20:27:57]Method: POST [20:27:57]URL: /json_proto [20:27:57]Method is POST - this is cgi request [20:27:57]url: /json_proto [20:27:57]query_string will be loaded in cgi processing [20:27:57]execute_cgi json_proto POST (null) [20:27:57]execute_cgi path=json_proto method=POST [20:27:57]POST find Content-Length [20:27:57]Host: 172.17.35.133:8080 [20:27:57]Content-Length: 1327 [20:27:57]Content-Type: application/json [20:27:57] [20:27:57]POST finish read [20:27:57]Found Content-Length = 1327 [20:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256356", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:57]execute_script... [20:27: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)256356", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:57]POST & json_proto [20:27:57]process_json_proto [20:27:57]json parsed OK: [20:27:57]protocol is kg_v1.0 [20:27:57]action value=close_receipt [20:27:57]process_action close_receipt [20:27:57]cmd_close_receipt [20:27:57]MH_GetDate [20:27:57]Write to MH i2c: F0 00 00 BE 1B C8 [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: F0 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: F0 09 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: F0 09 00 BE 1B 00 50 E3 92 66 1B 28 2A 66 CF [20:27:57]GetLastDocTimeStamp 1720902437 [20:27:57]current date 1720902480 [20:27:57]FM_GetShiftState [20:27:57]SAM_PROTO_GetShiftState [20:27:57]wFMCommunicate request_size=4 [20:27:57]MH_SAM_APDU [20:27:57]CAPDU: 80 13 01 00 [20:27:57]Write to MH i2c: E2 08 00 BF 1B 80 13 01 00 00 00 00 00 57 [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:57]Read from MH i2c: E2 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 0E 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 0E 00 BF 1B 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E2 [20:27:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:27:57]wFMCommunicate OK [20:27:57]SAM_PROTO_GetShiftState done [20:27:57]FM_GetShiftState done [20:27:57]opened in 1720829379 [20:27:57]opened+sec_in_day 1720915779 [20:27:57]quantity*price = 9000 [20:27:57]sum+1 = 9001 [20:27:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007110066 Сэндвич с майонезом Талас Даамы 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209744502 Сухарики Флинт Сыр 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 119 13.07.2024 20:28 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1950 ФПД: 243470158713020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202800&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1950&fm=243470158713020&tin=02508201610067®Number=0000000000177495&sum=22000 0 [20:27:58]StoreToDocumentArchive [20:27:58]shift 24 fd 1950 [20:27:58]save to /storage/0024/doc_00001950 [20:27:58]save last doc name /storage/0024/doc_00001950 to /storage/kkm_last_doc_name [20:27:58]save OK [20:27:58]Clear old archive folders... [20:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=545 [20:27:58]tlvbuf is 00FE6050 [20:27:58]SAM_PROTO_ClearQueue [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 09 00 00 [20:27:58]Write to MH i2c: E2 08 00 CC 1B 80 09 00 00 00 00 00 00 59 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 CC 1B 00 90 00 5B [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]SAM_PROTO_ClearQueue done [20:27:58]KKMCreateOFDPacket [20:27:58]OFDProtocolAddRootSTLVToBuf [20:27:58]FM_MakeSignedData [20:27:58]FM_MakeSignedData [20:27:58]SAM_PROTO_SignData [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 01 02 [20:27:58]Write to MH i2c: E2 08 00 CD 1B 80 0D 01 02 00 00 00 00 61 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 CD 1B 00 90 00 5C [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]wFMCommunicate request_size=255 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 [20:27:58]Write to MH i2c: E2 02 01 CE 1B 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 E4 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 03 00 CE 1B 00 90 00 5D [20:27:58]RAPDU: 90 00 [20:27:58]wFMCommunicate OK [20:27:58]wFMCommunicate request_size=255 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 0D 02 02 FA 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 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 50 E3 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [20:27:58]Write to MH i2c: E2 02 01 CF 1B 80 0D 02 02 FA 00 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 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 50 E3 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 CC [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [20:27:59]RAPDU: 90 00 [20:27:59]wFMCommunicate OK [20:27:59]wFMCommunicate request_size=54 [20:27:59]MH_SAM_APDU [20:27:59]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 9E 07 00 00 35 04 06 00 DD 6F 50 52 D0 BC [20:27:59]Write to MH i2c: E2 39 00 D0 1B 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 9E 07 00 00 35 04 06 00 DD 6F 50 52 D0 BC 00 00 B6 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [20:27:59]RAPDU: 90 00 [20:27:59]wFMCommunicate OK [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 0D 03 02 [20:27:59]Write to MH i2c: E2 08 00 D1 1B 80 0D 03 02 00 00 00 00 67 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 0B 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 0B 00 D1 1B 00 F0 11 66 FA E3 FF 4C 7C 90 00 73 [20:27:59]RAPDU: F0 11 66 FA E3 FF 4C 7C 90 00 [20:27:59]wFMCommunicate OK [20:27:59]SAM_PROTO_SignData done [20:27:59]FM_MakeSignedData done [20:27:59]CreateOFDProtocolMessage [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 11 00 00 [20:27:59]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 17 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BD [20:27: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:27:59]wFMCommunicate OK [20:27:59]CreateOFDProtocolMessage done [20:27:59]OFDSenderStorePacket 1950 [20:27:59]StoreOFDPacket docnum=1950 [20:27: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 35 02 00 00 C5 3E 2D 02 9E 55 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 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 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 50 E3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 DD 6F 50 52 D0 BC F0 11 66 FA E3 FF 4C 7C [20:27:59]CheckFolder [20:27:59]dirname=/storage/ofd_packets [20:27:59]CheckFolder done [20:27:59]ProducePacketName [20:27:59]name=ofd_packets/00001950 [20:27:59]NVStorageSaveData ofd_packets/00001950 [20:27:59]File name is /storage/ofd_packets/00001950 [20:27:59]Write 595 bytes [20:27:59]NVStorageSaveData done [20:27:59]OFDSenderStorePacket done [20:27:59]KKMCreateOFDPacket done [20:27:59]NVStorageSaveData kkm_last_timestamp [20:27:59]File name is /storage/kkm_last_timestamp [20:27:59]Write 4 bytes [20:27:59]NVStorageSaveData done [20:27:59]ExternCall_PrintAddStr [20:27:59]wPrintStart [20:27:59]Write to MH i2c: 01 00 00 D3 1B EE [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [20:27:59]RasterBufferAndPrint [20:27:59]line Счет N : (3)256356 [20:27:59]line ИНН: 02508201610067 [20:27:59]line Контрольно-Кассовый Чек [20:27:59]line ПРОДАЖА [20:27:59]line Товар: 4870235681079 [20:27:59]line Grizzly волнистые Сладкий чили 55 гр [20:27:59]line 1.000 * 90.00 [20:27:59]line = 90.00 [20:27:59]line НДС 12% НСП 1% [20:27:59]line > о реализуемом товаре [20:27:59]line Товар: 4700007110066 [20:27:59]line Сэндвич с майонезом Талас Даамы [20:27:59]line 1.000 * 70.00 [20:27:59]line = 70.00 [20:27:59]line НДС 12% НСП 1% [20:27:59]line > о реализуемом товаре [20:27:59]line Товар: 4870209744502 [20:27:59]line Сухарики Флинт Сыр 100 гр [20:27:59]line 1.000 * 60.00 [20:27:59]line = 60.00 [20:27:59]line НДС 12% НСП 1% [20:27:59]line > о реализуемом товаре [20:27:59]line ИТОГО: 220.00 [20:27:59]line НСП 1% : 1.95 [20:27:59]line НДС 12% : 23.36 [20:27:59]line Наличными: 220.00 [20:27:59]line Безнал.: 0.00 [20:27:59]line Место: АЗС № 76 "Партнер Нефть" [20:27:59]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:27:59]line СНО: Общий режим [20:27:59]line Чек 119 13.07.2024 20:28 [20:27:59]line Смена: 24 ФФД: 1.0 [20:27:59]line ЗНМ: 0300000124 [20:27:59]line РНМ: 0000000000177495 [20:27:59]line Версия ККМ: 001 [20:27:59]line ФМ: 0000000002098592 [20:27:59]line ФД: 1950 [20:27:59]line ФПД: 243470158713020 [20:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202800&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1950&fm=243470158713020&tin=02508201610067®Number=0000000000177495&sum=22000 [20:27:59]line 0 [20:27:59]OFD Sender: Processing packet 1950 [packets to send 1, broken 0] [20:27:59]ProducePacketName [20:27:59]name=ofd_packets/00001950 [20:27:59]OFD Sender: To server: pG, [20:27:59]CommunicateWithHost lk.salyk.kg:30040 [20:27:59]ConnectInit lk.salyk.kg [20:27:59]written 0, free lines is 4095 [20:27:59]Connected sock=10 [20:27: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 35 02 00 00 C5 3E 2D 02 9E 55 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 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 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 50 E3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 DD 6F 50 52 D0 BC F0 11 66 FA E3 FF 4C 7C [20:28: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 CA E9 47 00 46 20 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 07 00 00 F4 03 04 00 86 8E 92 66 B6 04 01 00 00 74 D6 F8 B8 13 74 AB 26 [20:28:00]CommunicateWithHost err = 0 [20:28:00]CheckOFDResponse [20:28:00]1017 (14) - 77093643461234 [20:28:00]1041 (16) - 0000000002098592 [20:28:00]1040 (4) - 1950 [20:28:00]1012 (4) - 13.07.2024 14:26 [20:28:00]1206 (1) - 0 [20:28:00]OFD Sender: Remove packet 1950 [20:28:00]ProducePacketName [20:28:00]name=ofd_packets/00001950 [20:28:00]NVStorageDeleteData [20:28:00]Write to MH i2c: 01 00 00 09 1C 25 [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 07 00 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 07 00 09 1C 00 00 00 00 00 3D 0C 75 [20:28:00]RasterBufferAndPrint [20:28:00]line [20:28:00]line [20:28:00]line [20:28:00]line [20:28:00]line [20:28:00]written 0, free lines is 3143 [20:28:00]MH_Cut [20:28:00]Write to MH i2c: D1 01 00 10 1C 01 FE [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: D1 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: D1 01 00 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: D1 01 00 10 1C 00 FD [20:28:00]Write to MH i2c: 01 00 00 11 1C 2D [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:00]OFD Sender: No OFD packet to send [20:28:01]*** Cut start [20:28:01]*** Partial cut [20:28:01]*** CUTSNS_PIN = 1 [20:28:01]*** CUTSNS_PIN = 0 [20:28:01]*** Brake cut motor [20:28:01]Read from MH i2c: 01 [20:28:01]MH_I2C_Read... [20:28:01]*** Stop cut motor [20:28:01]*** Cut end [20:28:01]Read from MH i2c: 01 07 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: 01 07 00 11 1C 00 00 00 00 00 FF 0F 42 [20:28:01]process_action close_receipt done [20:28:01]requested_data is exist [20:28:01]produce_requested_data [20:28:01]requested_item fm.sn is exist - process it [20:28:01]wFMCommunicate request_size=4 [20:28:01]MH_SAM_APDU [20:28:01]CAPDU: 80 11 00 00 [20:28:01]Write to MH i2c: E2 08 00 12 1C 80 11 00 00 00 00 00 00 A8 [20:28:01]Write i2c OK [20:28:01]MH_I2C_Read... [20:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:01]Read from MH i2c: E2 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 17 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: E2 17 00 12 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FE [20:28: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:28:01]wFMCommunicate OK [20:28:01]requested_item fd.num is exist - process it [20:28:01]SAM_PROTO_GetFieldsCounters [20:28:01]wFMCommunicate request_size=4 [20:28:01]MH_SAM_APDU [20:28:01]CAPDU: 80 13 00 00 [20:28:01]Write to MH i2c: E2 08 00 13 1C 80 13 00 00 00 00 00 00 AB [20:28:01]Write i2c OK [20:28:01]MH_I2C_Read... [20:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:02]Read from MH i2c: E2 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 62 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 62 00 13 1C 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [20:28: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 9E 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:02]wFMCommunicate OK [20:28:02]SAM_PROTO_GetFieldsCounters done [20:28:02]requested_item shift.num is exist - process it [20:28:02]requested_item shift.opened is exist - process it [20:28:02]req_shift_opened [20:28:02]FM_GetShiftState [20:28:02]SAM_PROTO_GetShiftState [20:28:02]wFMCommunicate request_size=4 [20:28:02]MH_SAM_APDU [20:28:02]CAPDU: 80 13 01 00 [20:28:02]Write to MH i2c: E2 08 00 14 1C 80 13 01 00 00 00 00 00 AD [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:02]Read from MH i2c: E2 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 0E 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 0E 00 14 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 38 [20:28:02]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:28:02]wFMCommunicate OK [20:28:02]SAM_PROTO_GetShiftState done [20:28:02]FM_GetShiftState done [20:28:02]req_shift_opened done [20:28:02]requested_item shift.open_date is exist - process it [20:28:02]req_shift_open_date [20:28:02]req_shift_open_date done [20:28:02]produce_requested_data done [20:28:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1950,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:28:02]process_action_free close_receipt [20:28:02]json_value_free [20:28:02]json_value_free done [20:28:02]process_json_proto returns [20:28:02]Send response to host [20:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1950,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:28:02]free response buf [20:28:02]execute_script done [20:28:02]execute_script returns [20:28:02]free content buf [20:28:02]Sock 9.Close socket [20:28:02]Sock 9.Thread stoped [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]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:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]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:12]accept exits with 8 [20:42:12]New connection [20:42:12]New thread 3066834276 created [20:42:12]Thread 3066977636 joined [20:42:12]Waiting for new connection... [20:42:12] Sock 8.Parse request [20:42:12]Sock 8.Check first char [20:42:12]Sock 8.First char is OK [20:42:12]request: POST /json_proto HTTP/1.0 [20:42:12]Method: POST [20:42:12]URL: /json_proto [20:42:12]Method is POST - this is cgi request [20:42:12]url: /json_proto [20:42:12]query_string will be loaded in cgi processing [20:42:12]execute_cgi json_proto POST (null) [20:42:12]execute_cgi path=json_proto method=POST [20:42:12]POST find Content-Length [20:42:12]Host: 172.17.35.133:8080 [20:42:12]Content-Length: 679 [20:42:12]Content-Type: application/json [20:42:12] [20:42:12]POST finish read [20:42:12]Found Content-Length = 679 [20:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619143", "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" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:12]execute_script... [20:42:12]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)1619143", "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" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:12]POST & json_proto [20:42:12]process_json_proto [20:42:12]json parsed OK: [20:42:12]protocol is kg_v1.0 [20:42:12]action value=close_receipt [20:42:12]process_action close_receipt [20:42:12]cmd_close_receipt [20:42:12]MH_GetDate [20:42:12]Write to MH i2c: F0 00 00 15 1C 20 [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: F0 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: F0 09 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: F0 09 00 15 1C 00 A7 E6 92 66 1B 28 2A 66 81 [20:42:12]GetLastDocTimeStamp 1720902480 [20:42:12]current date 1720903335 [20:42:12]FM_GetShiftState [20:42:12]SAM_PROTO_GetShiftState [20:42:12]wFMCommunicate request_size=4 [20:42:12]MH_SAM_APDU [20:42:12]CAPDU: 80 13 01 00 [20:42:12]Write to MH i2c: E2 08 00 16 1C 80 13 01 00 00 00 00 00 AF [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:12]Read from MH i2c: E2 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 0E 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 0E 00 16 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 3A [20:42:12]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:42:12]wFMCommunicate OK [20:42:12]SAM_PROTO_GetShiftState done [20:42:12]FM_GetShiftState done [20:42:12]opened in 1720829379 [20:42:12]opened+sec_in_day 1720915779 [20:42:12]quantity*price = 70012 [20:42:12]sum+1 = 70014 [20:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 120 13.07.2024 20:42 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1951 ФПД: 124258494987915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204215&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1951&fm=124258494987915&tin=02508201610067®Number=0000000000177495&sum=70000 [20:42:13]StoreToDocumentArchive [20:42:13]shift 24 fd 1951 [20:42:13]save to /storage/0024/doc_00001951 [20:42:13]save last doc name /storage/0024/doc_00001951 to /storage/kkm_last_doc_name [20:42:13]save OK [20:42:13]Clear old archive folders... [20:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:13]tlvbuf is 01077400 [20:42:13]SAM_PROTO_ClearQueue [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 09 00 00 [20:42:13]Write to MH i2c: E2 08 00 23 1C 80 09 00 00 00 00 00 00 B1 [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]SAM_PROTO_ClearQueue done [20:42:13]KKMCreateOFDPacket [20:42:13]OFDProtocolAddRootSTLVToBuf [20:42:13]FM_MakeSignedData [20:42:13]FM_MakeSignedData [20:42:13]SAM_PROTO_SignData [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 0D 01 02 [20:42:13]Write to MH i2c: E2 08 00 24 1C 80 0D 01 02 00 00 00 00 B9 [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 24 1C 00 90 00 B4 [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]wFMCommunicate request_size=255 [20:42:13]MH_SAM_APDU [20:42:13]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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A7 E6 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 71 [20:42:13]Write to MH i2c: E2 02 01 25 1C 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A7 E6 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 71 00 00 8B [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]wFMCommunicate request_size=10 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 0D 02 02 05 03 2F 74 3E 8B [20:42:13]Write to MH i2c: E2 0D 00 26 1C 80 0D 02 02 05 00 03 2F 74 3E 8B 00 00 35 [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 26 1C 00 90 00 B6 [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 0D 03 02 [20:42:13]Write to MH i2c: E2 08 00 27 1C 80 0D 03 02 00 00 00 00 BE [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 0B 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 0B 00 27 1C 00 C7 3B 40 BF 68 FD 55 F5 90 00 6F [20:42:13]RAPDU: C7 3B 40 BF 68 FD 55 F5 90 00 [20:42:13]wFMCommunicate OK [20:42:13]SAM_PROTO_SignData done [20:42:13]FM_MakeSignedData done [20:42:13]CreateOFDProtocolMessage [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 11 00 00 [20:42:13]Write to MH i2c: E2 08 00 28 1C 80 11 00 00 00 00 00 00 BE [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 17 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 17 00 28 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 14 [20:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:42:13]wFMCommunicate OK [20:42:13]CreateOFDProtocolMessage done [20:42:13]OFDSenderStorePacket 1951 [20:42:13]StoreOFDPacket docnum=1951 [20:42: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 0F 01 00 00 8F D4 07 01 3C 93 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A7 E6 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 71 03 2F 74 3E 8B C7 3B 40 BF 68 FD 55 F5 [20:42:13]CheckFolder [20:42:13]dirname=/storage/ofd_packets [20:42:13]CheckFolder done [20:42:13]ProducePacketName [20:42:13]name=ofd_packets/00001951 [20:42:13]NVStorageSaveData ofd_packets/00001951 [20:42:13]File name is /storage/ofd_packets/00001951 [20:42:13]Write 301 bytes [20:42:13]NVStorageSaveData done [20:42:13]OFDSenderStorePacket done [20:42:13]KKMCreateOFDPacket done [20:42:13]NVStorageSaveData kkm_last_timestamp [20:42:13]File name is /storage/kkm_last_timestamp [20:42:13]Write 4 bytes [20:42:13]NVStorageSaveData done [20:42:13]ExternCall_PrintAddStr [20:42:13]wPrintStart [20:42:13]Write to MH i2c: 01 00 00 29 1C 45 [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: 01 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: 01 07 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: 01 07 00 29 1C 00 00 00 00 00 FF 0F 5A [20:42:13]RasterBufferAndPrint [20:42:13]line Счет N : (1)1619143 [20:42:13]line ИНН: 02508201610067 [20:42:13]line Контрольно-Кассовый Чек [20:42:13]line ПРОДАЖА [20:42:13]line ТРК (МРК, ГНК) : 33 [20:42:13]line Товар: 2710124130 [20:42:13]line Аи-92-К-5 [20:42:13]line 10.560 * 66.30 [20:42:13]line = 700.13 [20:42:13]line НДС 12% НСП 1% [20:42:13]line > о реализуемом товаре [20:42:13]line ОКРУГЛЕНИЕ: -0.13 [20:42:13]line ИТОГО: 700.00 [20:42:13]line Внесено: 700.00 [20:42:13]line СДАЧА: 0.00 [20:42:13]line НСП 1% : 6.20 [20:42:13]line НДС 12% : 74.35 [20:42:13]line Наличными: 700.00 [20:42:13]line Безнал.: 0.00 [20:42:13]line Место: АЗС № 76 "Партнер Нефть" [20:42:13]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:42:13]line СНО: Общий режим [20:42:13]line Чек 120 13.07.2024 20:42 [20:42:13]line Смена: 24 ФФД: 1.0 [20:42:13]line ЗНМ: 0300000124 [20:42:13]line РНМ: 0000000000177495 [20:42:13]line Версия ККМ: 001 [20:42:13]line ФМ: 0000000002098592 [20:42:13]line ФД: 1951 [20:42:13]line ФПД: 124258494987915 [20:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204215&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1951&fm=124258494987915&tin=02508201610067®Number=0000000000177495&sum=70000 [20:42:14]OFD Sender: Processing packet 1951 [packets to send 1, broken 0] [20:42:14]ProducePacketName [20:42:14]name=ofd_packets/00001951 [20:42:14]OFD Sender: To server: pG, [20:42:14]CommunicateWithHost lk.salyk.kg:30040 [20:42:14]ConnectInit lk.salyk.kg [20:42:14]written 0, free lines is 4095 [20:42:14]Connected sock=10 [20:42: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 0F 01 00 00 8F D4 07 01 3C 93 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A7 E6 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 71 03 2F 74 3E 8B C7 3B 40 BF 68 FD 55 F5 [20:42: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 EC 3A 47 00 C7 02 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 07 00 00 F4 03 04 00 DC 91 92 66 B6 04 01 00 00 0E 7A 9D 85 EA 09 73 AE [20:42:14]CommunicateWithHost err = 0 [20:42:14]CheckOFDResponse [20:42:14]1017 (14) - 77093643461234 [20:42:14]1041 (16) - 0000000002098592 [20:42:14]1040 (4) - 1951 [20:42:14]1012 (4) - 13.07.2024 14:40 [20:42:14]1206 (1) - 0 [20:42:14]OFD Sender: Remove packet 1951 [20:42:14]ProducePacketName [20:42:14]name=ofd_packets/00001951 [20:42:14]NVStorageDeleteData [20:42:14]Write to MH i2c: 01 00 00 54 1C 70 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: 01 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: 01 07 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: 01 07 00 54 1C 00 00 00 00 00 F0 0C 73 [20:42:14]RasterBufferAndPrint [20:42:14]line [20:42:14]line [20:42:14]line [20:42:14]line [20:42:14]line [20:42:14]written 0, free lines is 3319 [20:42:14]MH_Cut [20:42:14]Write to MH i2c: D1 01 00 5B 1C 01 49 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: D1 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: D1 01 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: D1 01 00 5B 1C 00 48 [20:42:14]Write to MH i2c: 01 00 00 5C 1C 78 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]OFD Sender: No OFD packet to send [20:42:15]*** Cut start [20:42:15]*** Partial cut [20:42:15]*** CUTSNS_PIN = 1 [20:42:15]*** CUTSNS_PIN = 0 [20:42:15]*** Brake cut motor [20:42:16]Read from MH i2c: 01 [20:42:16]MH_I2C_Read... [20:42:16]*** Stop cut motor [20:42:16]*** Cut end [20:42:16]Read from MH i2c: 01 07 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 5C 1C 00 00 00 00 00 FF 0F 8D [20:42:16]process_action close_receipt done [20:42:16]requested_data is exist [20:42:16]produce_requested_data [20:42:16]requested_item fm.sn is exist - process it [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 11 00 00 [20:42:16]Write to MH i2c: E2 08 00 5D 1C 80 11 00 00 00 00 00 00 F3 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 17 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 17 00 5D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 49 [20:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:42:16]wFMCommunicate OK [20:42:16]requested_item fd.num is exist - process it [20:42:16]SAM_PROTO_GetFieldsCounters [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 13 00 00 [20:42:16]Write to MH i2c: E2 08 00 5E 1C 80 13 00 00 00 00 00 00 F6 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 62 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 62 00 5E 1C 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [20:42: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 9F 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:16]wFMCommunicate OK [20:42:16]SAM_PROTO_GetFieldsCounters done [20:42:16]requested_item shift.num is exist - process it [20:42:16]requested_item shift.opened is exist - process it [20:42:16]req_shift_opened [20:42:16]FM_GetShiftState [20:42:16]SAM_PROTO_GetShiftState [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 13 01 00 [20:42:16]Write to MH i2c: E2 08 00 5F 1C 80 13 01 00 00 00 00 00 F8 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 0E 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 0E 00 5F 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 83 [20:42:16]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:42:16]wFMCommunicate OK [20:42:16]SAM_PROTO_GetShiftState done [20:42:16]FM_GetShiftState done [20:42:16]req_shift_opened done [20:42:16]requested_item shift.open_date is exist - process it [20:42:16]req_shift_open_date [20:42:16]req_shift_open_date done [20:42:16]produce_requested_data done [20:42:16]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1951,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:42:16]process_action_free close_receipt [20:42:16]json_value_free [20:42:16]json_value_free done [20:42:16]process_json_proto returns [20:42:16]Send response to host [20:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1951,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:42:16]free response buf [20:42:16]execute_script done [20:42:16]execute_script returns [20:42:16]free content buf [20:42:16]Sock 8.Close socket [20:42:16]Sock 8.Thread stoped [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:50]accept exits with 9 [20:46:50]New connection [20:46:50]New thread 3066977636 created [20:46:50]Thread 3066834276 joined [20:46:50]Waiting for new connection... [20:46:50] Sock 9.Parse request [20:46:50]Sock 9.Check first char [20:46:50]Sock 9.First char is OK [20:46:50]request: POST /json_proto HTTP/1.0 [20:46:50]Method: POST [20:46:50]URL: /json_proto [20:46:50]Method is POST - this is cgi request [20:46:50]url: /json_proto [20:46:50]query_string will be loaded in cgi processing [20:46:50]execute_cgi json_proto POST (null) [20:46:50]execute_cgi path=json_proto method=POST [20:46:50]POST find Content-Length [20:46:50]Host: 172.17.35.133:8080 [20:46:50]Content-Length: 847 [20:46:50]Content-Type: application/json [20:46:50] [20:46:50]POST finish read [20:46:50]Found Content-Length = 847 [20:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256357", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:50]execute_script... [20:46: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)256357", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:50]POST & json_proto [20:46:50]process_json_proto [20:46:50]json parsed OK: [20:46:50]protocol is kg_v1.0 [20:46:50]action value=close_receipt [20:46:50]process_action close_receipt [20:46:50]cmd_close_receipt [20:46:50]MH_GetDate [20:46:50]Write to MH i2c: F0 00 00 60 1C 6B [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: F0 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: F0 09 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: F0 09 00 60 1C 00 BD E7 92 66 1B 28 2A 66 E3 [20:46:50]GetLastDocTimeStamp 1720903335 [20:46:50]current date 1720903613 [20:46:50]FM_GetShiftState [20:46:50]SAM_PROTO_GetShiftState [20:46:50]wFMCommunicate request_size=4 [20:46:50]MH_SAM_APDU [20:46:50]CAPDU: 80 13 01 00 [20:46:50]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:50]Read from MH i2c: E2 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 0E 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 85 [20:46:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:46:50]wFMCommunicate OK [20:46:50]SAM_PROTO_GetShiftState done [20:46:50]FM_GetShiftState done [20:46:50]opened in 1720829379 [20:46:50]opened+sec_in_day 1720915779 [20:46:50]quantity*price = 26000 [20:46:50]sum+1 = 26001 [20:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 121 13.07.2024 20:46 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1952 ФПД: 176138597352456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204653&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1952&fm=176138597352456&tin=02508201610067®Number=0000000000177495&sum=26000 0 [20:46:51]StoreToDocumentArchive [20:46:51]shift 24 fd 1952 [20:46:51]save to /storage/0024/doc_00001952 [20:46:51]save last doc name /storage/0024/doc_00001952 to /storage/kkm_last_doc_name [20:46:51]save OK [20:46:51]Clear old archive folders... [20:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:46:51]tlvbuf is B6DAE440 [20:46:51]SAM_PROTO_ClearQueue [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 09 00 00 [20:46:51]Write to MH i2c: E2 08 00 6E 1C 80 09 00 00 00 00 00 00 FC [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [20:46:51]RAPDU: 90 00 [20:46:51]wFMCommunicate OK [20:46:51]SAM_PROTO_ClearQueue done [20:46:51]KKMCreateOFDPacket [20:46:51]OFDProtocolAddRootSTLVToBuf [20:46:51]FM_MakeSignedData [20:46:51]FM_MakeSignedData [20:46:51]SAM_PROTO_SignData [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 0D 01 02 [20:46:51]Write to MH i2c: E2 08 00 6F 1C 80 0D 01 02 00 00 00 00 04 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [20:46:51]RAPDU: 90 00 [20:46:51]wFMCommunicate OK [20:46:51]wFMCommunicate request_size=255 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 BD E7 92 66 0E 04 04 00 18 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 [20:46:51]Write to MH i2c: E2 02 01 70 1C 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 BD E7 92 66 0E 04 04 00 18 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 00 00 02 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]wFMCommunicate request_size=41 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 07 00 00 35 04 06 00 A0 32 76 86 C4 08 [20:46:52]Write to MH i2c: E2 2C 00 71 1C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 A0 07 00 00 35 04 06 00 A0 32 76 86 C4 08 00 00 1A [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 0D 03 02 [20:46:52]Write to MH i2c: E2 08 00 72 1C 80 0D 03 02 00 00 00 00 09 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 0B 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 0B 00 72 1C 00 B0 CB F5 13 49 6A 77 26 90 00 DD [20:46:52]RAPDU: B0 CB F5 13 49 6A 77 26 90 00 [20:46:52]wFMCommunicate OK [20:46:52]SAM_PROTO_SignData done [20:46:52]FM_MakeSignedData done [20:46:52]CreateOFDProtocolMessage [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 11 00 00 [20:46:52]Write to MH i2c: E2 08 00 73 1C 80 11 00 00 00 00 00 00 09 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 17 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 17 00 73 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5F [20:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:46:52]wFMCommunicate OK [20:46:52]CreateOFDProtocolMessage done [20:46:52]OFDSenderStorePacket 1952 [20:46:52]StoreOFDPacket docnum=1952 [20:46: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 2E 01 00 00 FE 0A 26 01 4F A3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 BD E7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 A0 32 76 86 C4 08 B0 CB F5 13 49 6A 77 26 [20:46:52]CheckFolder [20:46:52]dirname=/storage/ofd_packets [20:46:52]CheckFolder done [20:46:52]ProducePacketName [20:46:52]name=ofd_packets/00001952 [20:46:52]NVStorageSaveData ofd_packets/00001952 [20:46:52]File name is /storage/ofd_packets/00001952 [20:46:52]Write 332 bytes [20:46:52]NVStorageSaveData done [20:46:52]OFDSenderStorePacket done [20:46:52]KKMCreateOFDPacket done [20:46:52]NVStorageSaveData kkm_last_timestamp [20:46:52]File name is /storage/kkm_last_timestamp [20:46:52]Write 4 bytes [20:46:52]NVStorageSaveData done [20:46:52]ExternCall_PrintAddStr [20:46:52]wPrintStart [20:46:52]Write to MH i2c: 01 00 00 74 1C 90 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 74 1C 00 00 00 00 00 FF 0F A5 [20:46:52]RasterBufferAndPrint [20:46:52]line Счет N : (3)256357 [20:46:52]line ИНН: 02508201610067 [20:46:52]line Контрольно-Кассовый Чек [20:46:52]line ПРОДАЖА [20:46:52]line Товар: 2000036220012 [20:46:52]line Кофе Капучино XL(GABB TRADE) [20:46:52]line 2.000 * 130.00 [20:46:52]line = 260.00 [20:46:52]line НДС 12% НСП 1% [20:46:52]line > о реализуемом товаре [20:46:52]line ИТОГО: 260.00 [20:46:52]line НСП 1% : 2.30 [20:46:52]line НДС 12% : 27.61 [20:46:52]line Наличными: 0.00 [20:46:52]line Безнал.: 260.00 [20:46:52]line Место: АЗС № 76 "Партнер Нефть" [20:46:52]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:46:52]line СНО: Общий режим [20:46:52]line Чек 121 13.07.2024 20:46 [20:46:52]line Смена: 24 ФФД: 1.0 [20:46:52]line ЗНМ: 0300000124 [20:46:52]line РНМ: 0000000000177495 [20:46:52]line Версия ККМ: 001 [20:46:52]line Платежная система: АКБ Кыргызстан [20:46:52]line ФМ: 0000000002098592 [20:46:52]line ФД: 1952 [20:46:52]line ФПД: 176138597352456 [20:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204653&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1952&fm=176138597352456&tin=02508201610067®Number=0000000000177495&sum=26000 [20:46:52]line 0 [20:46:52]OFD Sender: Processing packet 1952 [packets to send 1, broken 0] [20:46:52]ProducePacketName [20:46:52]name=ofd_packets/00001952 [20:46:52]OFD Sender: To server: pG, [20:46:52]CommunicateWithHost lk.salyk.kg:30040 [20:46:52]ConnectInit lk.salyk.kg [20:46:52]written 0, free lines is 4095 [20:46:52]Connected sock=10 [20:46: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 2E 01 00 00 FE 0A 26 01 4F A3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 BD E7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 A0 32 76 86 C4 08 B0 CB F5 13 49 6A 77 26 [20:46:52]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 0A D9 47 00 17 48 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 07 00 00 F4 03 04 00 F3 92 92 66 B6 04 01 00 00 D8 FE CD C1 BA DB D9 F8 [20:46:52]CommunicateWithHost err = 0 [20:46:52]CheckOFDResponse [20:46:52]1017 (14) - 77093643461234 [20:46:52]1041 (16) - 0000000002098592 [20:46:52]1040 (4) - 1952 [20:46:52]1012 (4) - 13.07.2024 14:45 [20:46:52]1206 (1) - 0 [20:46:52]OFD Sender: Remove packet 1952 [20:46:52]ProducePacketName [20:46:52]name=ofd_packets/00001952 [20:46:52]NVStorageDeleteData [20:46:53]Write to MH i2c: 01 00 00 9F 1C BB [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 9F 1C 00 00 00 00 00 EE 0C BC [20:46:53]RasterBufferAndPrint [20:46:53]line [20:46:53]line [20:46:53]line [20:46:53]line [20:46:53]line [20:46:53]written 0, free lines is 3317 [20:46:53]MH_Cut [20:46:53]Write to MH i2c: D1 01 00 A6 1C 01 94 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: D1 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: D1 01 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: D1 01 00 A6 1C 00 93 [20:46:53]Write to MH i2c: 01 00 00 A7 1C C3 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]OFD Sender: No OFD packet to send [20:46:53]*** Cut start [20:46:53]*** Partial cut [20:46:53]*** CUTSNS_PIN = 1 [20:46:53]*** CUTSNS_PIN = 0 [20:46:54]*** Brake cut motor [20:46:54]Read from MH i2c: 01 [20:46:54]MH_I2C_Read... [20:46:54]*** Stop cut motor [20:46:54]*** Cut end [20:46:54]Read from MH i2c: 01 07 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 FF 0F D8 [20:46:54]process_action close_receipt done [20:46:54]requested_data is exist [20:46:54]produce_requested_data [20:46:54]requested_item fm.sn is exist - process it [20:46:54]wFMCommunicate request_size=4 [20:46:54]MH_SAM_APDU [20:46:54]CAPDU: 80 11 00 00 [20:46:54]Write to MH i2c: E2 08 00 A8 1C 80 11 00 00 00 00 00 00 3E [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:54]Read from MH i2c: E2 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 17 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 17 00 A8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 94 [20:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:46:54]wFMCommunicate OK [20:46:54]requested_item fd.num is exist - process it [20:46:54]SAM_PROTO_GetFieldsCounters [20:46:54]wFMCommunicate request_size=4 [20:46:54]MH_SAM_APDU [20:46:54]CAPDU: 80 13 00 00 [20:46:54]Write to MH i2c: E2 08 00 A9 1C 80 13 00 00 00 00 00 00 41 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:54]Read from MH i2c: E2 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 62 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 62 00 A9 1C 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [20:46:54]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:54]wFMCommunicate OK [20:46:54]SAM_PROTO_GetFieldsCounters done [20:46:54]requested_item shift.num is exist - process it [20:46:54]requested_item shift.opened is exist - process it [20:46:54]req_shift_opened [20:46:54]FM_GetShiftState [20:46:54]SAM_PROTO_GetShiftState [20:46:54]wFMCommunicate request_size=4 [20:46:54]MH_SAM_APDU [20:46:54]CAPDU: 80 13 01 00 [20:46:54]Write to MH i2c: E2 08 00 AA 1C 80 13 01 00 00 00 00 00 43 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:54]Read from MH i2c: E2 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 0E 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 0E 00 AA 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 CE [20:46:54]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:46:54]wFMCommunicate OK [20:46:54]SAM_PROTO_GetShiftState done [20:46:54]FM_GetShiftState done [20:46:54]req_shift_opened done [20:46:54]requested_item shift.open_date is exist - process it [20:46:54]req_shift_open_date [20:46:54]req_shift_open_date done [20:46:54]produce_requested_data done [20:46:54]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1952,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:46:54]process_action_free close_receipt [20:46:54]json_value_free [20:46:54]json_value_free done [20:46:54]process_json_proto returns [20:46:54]Send response to host [20:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1952,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:46:54]free response buf [20:46:54]execute_script done [20:46:54]execute_script returns [20:46:54]free content buf [20:46:54]Sock 9.Close socket [20:46:54]Sock 9.Thread stoped [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:04]accept exits with 8 [20:47:04]New connection [20:47:04]New thread 3066834276 created [20:47:04]Thread 3066977636 joined [20:47:04]Waiting for new connection... [20:47:04] Sock 8.Parse request [20:47:04]Sock 8.Check first char [20:47:04]Sock 8.First char is OK [20:47:04]request: POST /json_proto HTTP/1.0 [20:47:04]Method: POST [20:47:04]URL: /json_proto [20:47:04]Method is POST - this is cgi request [20:47:04]url: /json_proto [20:47:04]query_string will be loaded in cgi processing [20:47:04]execute_cgi json_proto POST (null) [20:47:04]execute_cgi path=json_proto method=POST [20:47:04]POST find Content-Length [20:47:04]Host: 172.17.35.133:8080 [20:47:04]Content-Length: 844 [20:47:04]Content-Type: application/json [20:47:04] [20:47:04]POST finish read [20:47:04]Found Content-Length = 844 [20:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619144", "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" : 30.170, "sum" : 2000.27, "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" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:04]execute_script... [20:47: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 : (1)1619144", "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" : 30.170, "sum" : 2000.27, "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" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:04]POST & json_proto [20:47:04]process_json_proto [20:47:04]json parsed OK: [20:47:04]protocol is kg_v1.0 [20:47:04]action value=close_receipt [20:47:04]process_action close_receipt [20:47:04]cmd_close_receipt [20:47:04]MH_GetDate [20:47:04]Write to MH i2c: F0 00 00 AB 1C B6 [20:47:04]Write i2c OK [20:47:04]MH_I2C_Read... [20:47:04]Read from MH i2c: F0 [20:47:04]MH_I2C_Read... [20:47:04]Read from MH i2c: F0 09 00 [20:47:04]MH_I2C_Read... [20:47:04]Read from MH i2c: F0 09 00 AB 1C 00 CB E7 92 66 1B 28 2A 66 3C [20:47:04]GetLastDocTimeStamp 1720903613 [20:47:04]current date 1720903627 [20:47:04]FM_GetShiftState [20:47:04]SAM_PROTO_GetShiftState [20:47:04]wFMCommunicate request_size=4 [20:47:04]MH_SAM_APDU [20:47:04]CAPDU: 80 13 01 00 [20:47:04]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [20:47:04]Write i2c OK [20:47:04]MH_I2C_Read... [20:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:04]Read from MH i2c: E2 [20:47:04]MH_I2C_Read... [20:47:04]Read from MH i2c: E2 0E 00 [20:47:04]MH_I2C_Read... [20:47:04]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D0 [20:47:04]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:47:04]wFMCommunicate OK [20:47:04]SAM_PROTO_GetShiftState done [20:47:04]FM_GetShiftState done [20:47:04]opened in 1720829379 [20:47:04]opened+sec_in_day 1720915779 [20:47:04]quantity*price = 200027 [20:47:04]sum+1 = 200028 [20:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.27 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.27 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 122 13.07.2024 20:47 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1953 ФПД: 7916921706660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204707&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1953&fm=7916921706660&tin=02508201610067®Number=0000000000177495&sum=200027 [20:47:05]StoreToDocumentArchive [20:47:05]shift 24 fd 1953 [20:47:05]save to /storage/0024/doc_00001953 [20:47:05]save last doc name /storage/0024/doc_00001953 to /storage/kkm_last_doc_name [20:47:05]save OK [20:47:05]Clear old archive folders... [20:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:05]tlvbuf is B6F5B730 [20:47:05]SAM_PROTO_ClearQueue [20:47:05]wFMCommunicate request_size=4 [20:47:05]MH_SAM_APDU [20:47:05]CAPDU: 80 09 00 00 [20:47:05]Write to MH i2c: E2 08 00 B9 1C 80 09 00 00 00 00 00 00 47 [20:47:05]Write i2c OK [20:47:05]MH_I2C_Read... [20:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:05]Read from MH i2c: E2 [20:47:05]MH_I2C_Read... [20:47:05]Read from MH i2c: E2 03 00 [20:47:05]MH_I2C_Read... [20:47:05]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [20:47:05]RAPDU: 90 00 [20:47:05]wFMCommunicate OK [20:47:05]SAM_PROTO_ClearQueue done [20:47:05]KKMCreateOFDPacket [20:47:05]OFDProtocolAddRootSTLVToBuf [20:47:05]FM_MakeSignedData [20:47:05]FM_MakeSignedData [20:47:05]SAM_PROTO_SignData [20:47:05]wFMCommunicate request_size=4 [20:47:05]MH_SAM_APDU [20:47:05]CAPDU: 80 0D 01 02 [20:47:05]Write to MH i2c: E2 08 00 BA 1C 80 0D 01 02 00 00 00 00 4F [20:47:05]Write i2c OK [20:47:05]MH_I2C_Read... [20:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:05]Read from MH i2c: E2 [20:47:05]MH_I2C_Read... [20:47:05]Read from MH i2c: E2 03 00 [20:47:05]MH_I2C_Read... [20:47:05]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [20:47:05]RAPDU: 90 00 [20:47:05]wFMCommunicate OK [20:47:05]wFMCommunicate request_size=255 [20:47:05]MH_SAM_APDU [20:47:05]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 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CB E7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 07 [20:47:05]Write to MH i2c: E2 02 01 BB 1C 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 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CB E7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 07 00 00 1A [20:47:05]Write i2c OK [20:47:05]MH_I2C_Read... [20:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:06]Read from MH i2c: E2 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 03 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [20:47:06]RAPDU: 90 00 [20:47:06]wFMCommunicate OK [20:47:06]wFMCommunicate request_size=10 [20:47:06]MH_SAM_APDU [20:47:06]CAPDU: 80 0D 02 02 05 33 4D 4E 58 A4 [20:47:06]Write to MH i2c: E2 0D 00 BC 1C 80 0D 02 02 05 00 33 4D 4E 58 A4 00 00 26 [20:47:06]Write i2c OK [20:47:06]MH_I2C_Read... [20:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:06]Read from MH i2c: E2 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 03 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [20:47:06]RAPDU: 90 00 [20:47:06]wFMCommunicate OK [20:47:06]wFMCommunicate request_size=4 [20:47:06]MH_SAM_APDU [20:47:06]CAPDU: 80 0D 03 02 [20:47:06]Write to MH i2c: E2 08 00 BD 1C 80 0D 03 02 00 00 00 00 54 [20:47:06]Write i2c OK [20:47:06]MH_I2C_Read... [20:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:06]Read from MH i2c: E2 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 0B 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 0B 00 BD 1C 00 05 54 E1 4A DB 78 E1 A2 90 00 AF [20:47:06]RAPDU: 05 54 E1 4A DB 78 E1 A2 90 00 [20:47:06]wFMCommunicate OK [20:47:06]SAM_PROTO_SignData done [20:47:06]FM_MakeSignedData done [20:47:06]CreateOFDProtocolMessage [20:47:06]wFMCommunicate request_size=4 [20:47:06]MH_SAM_APDU [20:47:06]CAPDU: 80 11 00 00 [20:47:06]Write to MH i2c: E2 08 00 BE 1C 80 11 00 00 00 00 00 00 54 [20:47:06]Write i2c OK [20:47:06]MH_I2C_Read... [20:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:06]Read from MH i2c: E2 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 17 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 17 00 BE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AA [20:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:47:06]wFMCommunicate OK [20:47:06]CreateOFDProtocolMessage done [20:47:06]OFDSenderStorePacket 1953 [20:47:06]StoreOFDPacket docnum=1953 [20:47: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 0F 01 00 00 F2 05 07 01 0F 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 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CB E7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 07 33 4D 4E 58 A4 05 54 E1 4A DB 78 E1 A2 [20:47:06]CheckFolder [20:47:06]dirname=/storage/ofd_packets [20:47:06]CheckFolder done [20:47:06]ProducePacketName [20:47:06]name=ofd_packets/00001953 [20:47:06]NVStorageSaveData ofd_packets/00001953 [20:47:06]File name is /storage/ofd_packets/00001953 [20:47:06]Write 301 bytes [20:47:06]NVStorageSaveData done [20:47:06]OFDSenderStorePacket done [20:47:06]KKMCreateOFDPacket done [20:47:06]NVStorageSaveData kkm_last_timestamp [20:47:06]File name is /storage/kkm_last_timestamp [20:47:06]Write 4 bytes [20:47:06]NVStorageSaveData done [20:47:06]ExternCall_PrintAddStr [20:47:06]wPrintStart [20:47:06]Write to MH i2c: 01 00 00 BF 1C DB [20:47:06]Write i2c OK [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: 01 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: 01 07 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: 01 07 00 BF 1C 00 00 00 00 00 FF 0F F0 [20:47:06]RasterBufferAndPrint [20:47:06]line Счет N : (1)1619144 [20:47:06]line ИНН: 02508201610067 [20:47:06]line Контрольно-Кассовый Чек [20:47:06]line ПРОДАЖА [20:47:06]line ТРК (МРК, ГНК) : 43 [20:47:06]line Товар: 2710124130 [20:47:06]line Аи-92-К-5 [20:47:06]line 30.170 * 66.30 [20:47:06]line = 2000.27 [20:47:06]line НДС 12% НСП 1% [20:47:06]line > о реализуемом товаре [20:47:06]line ИТОГО: 2000.27 [20:47:06]line НСП 1% : 17.70 [20:47:06]line НДС 12% : 212.42 [20:47:06]line Наличными: 0.00 [20:47:06]line Безнал.: 2000.27 [20:47:06]line Место: АЗС № 76 "Партнер Нефть" [20:47:06]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:47:06]line СНО: Общий режим [20:47:06]line Чек 122 13.07.2024 20:47 [20:47:06]line Смена: 24 ФФД: 1.0 [20:47:06]line ЗНМ: 0300000124 [20:47:06]line РНМ: 0000000000177495 [20:47:06]line Версия ККМ: 001 [20:47:06]line Платежная система: АКБ Кыргызстан [20:47:06]line ФМ: 0000000002098592 [20:47:06]line ФД: 1953 [20:47:06]line ФПД: 7916921706660 [20:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204707&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1953&fm=7916921706660&tin=02508201610067®Number=0000000000177495&sum=200027 [20:47:06]OFD Sender: Processing packet 1953 [packets to send 1, broken 0] [20:47:06]ProducePacketName [20:47:06]name=ofd_packets/00001953 [20:47:06]OFD Sender: To server: pG, [20:47:06]CommunicateWithHost lk.salyk.kg:30040 [20:47:06]ConnectInit lk.salyk.kg [20:47:06]written 0, free lines is 4095 [20:47:06]Connected sock=10 [20:47: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 0F 01 00 00 F2 05 07 01 0F 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 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CB E7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 07 33 4D 4E 58 A4 05 54 E1 4A DB 78 E1 A2 [20:47: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 D1 85 47 00 C8 7F 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 07 00 00 F4 03 04 00 01 93 92 66 B6 04 01 00 00 C3 AC 73 3A D4 14 23 D3 [20:47:07]CommunicateWithHost err = 0 [20:47:07]CheckOFDResponse [20:47:07]1017 (14) - 77093643461234 [20:47:07]1041 (16) - 0000000002098592 [20:47:07]1040 (4) - 1953 [20:47:07]1012 (4) - 13.07.2024 14:45 [20:47:07]1206 (1) - 0 [20:47:07]OFD Sender: Remove packet 1953 [20:47:07]ProducePacketName [20:47:07]name=ofd_packets/00001953 [20:47:07]NVStorageDeleteData [20:47:07]Write to MH i2c: 01 00 00 E9 1C 05 [20:47:07]Write i2c OK [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: 01 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: 01 07 00 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: 01 07 00 E9 1C 00 00 00 00 00 01 0D 1A [20:47:07]RasterBufferAndPrint [20:47:07]line [20:47:07]line [20:47:07]line [20:47:07]line [20:47:07]line [20:47:07]written 0, free lines is 3335 [20:47:07]MH_Cut [20:47:07]Write to MH i2c: D1 01 00 F0 1C 01 DE [20:47:07]Write i2c OK [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: D1 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: D1 01 00 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: D1 01 00 F0 1C 00 DD [20:47:07]Write to MH i2c: 01 00 00 F1 1C 0D [20:47:07]Write i2c OK [20:47:07]MH_I2C_Read... [20:47:07]OFD Sender: No OFD packet to send [20:47:07]*** Cut start [20:47:07]*** Partial cut [20:47:07]*** CUTSNS_PIN = 1 [20:47:07]*** CUTSNS_PIN = 0 [20:47:08]*** Brake cut motor [20:47:08]Read from MH i2c: 01 [20:47:08]MH_I2C_Read... [20:47:08]*** Stop cut motor [20:47:08]*** Cut end [20:47:08]Read from MH i2c: 01 07 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 FF 0F 22 [20:47:08]process_action close_receipt done [20:47:08]requested_data is exist [20:47:08]produce_requested_data [20:47:08]requested_item fm.sn is exist - process it [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 11 00 00 [20:47:08]Write to MH i2c: E2 08 00 F2 1C 80 11 00 00 00 00 00 00 88 [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 17 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 17 00 F2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 DE [20:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:47:08]wFMCommunicate OK [20:47:08]requested_item fd.num is exist - process it [20:47:08]SAM_PROTO_GetFieldsCounters [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 13 00 00 [20:47:08]Write to MH i2c: E2 08 00 F3 1C 80 13 00 00 00 00 00 00 8B [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 62 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 62 00 F3 1C 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [20:47: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 A1 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:08]wFMCommunicate OK [20:47:08]SAM_PROTO_GetFieldsCounters done [20:47:08]requested_item shift.num is exist - process it [20:47:08]requested_item shift.opened is exist - process it [20:47:08]req_shift_opened [20:47:08]FM_GetShiftState [20:47:08]SAM_PROTO_GetShiftState [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 13 01 00 [20:47:08]Write to MH i2c: E2 08 00 F4 1C 80 13 01 00 00 00 00 00 8D [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 0E 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 0E 00 F4 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 18 [20:47:08]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:47:08]wFMCommunicate OK [20:47:08]SAM_PROTO_GetShiftState done [20:47:08]FM_GetShiftState done [20:47:08]req_shift_opened done [20:47:08]requested_item shift.open_date is exist - process it [20:47:08]req_shift_open_date [20:47:08]req_shift_open_date done [20:47:08]produce_requested_data done [20:47:08]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1953,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:47:08]process_action_free close_receipt [20:47:08]json_value_free [20:47:08]json_value_free done [20:47:08]process_json_proto returns [20:47:08]Send response to host [20:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1953,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:47:08]free response buf [20:47:08]execute_script done [20:47:08]execute_script returns [20:47:08]free content buf [20:47:08]Sock 8.Close socket [20:47:08]Sock 8.Thread stoped [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]accept exits with 9 [20:48:47]New connection [20:48:47]New thread 3066977636 created [20:48:47]Thread 3066834276 joined [20:48:47]Waiting for new connection... [20:48:47] Sock 9.Parse request [20:48:47]Sock 9.Check first char [20:48:47]Sock 9.First char is OK [20:48:47]request: POST /json_proto HTTP/1.0 [20:48:47]Method: POST [20:48:47]URL: /json_proto [20:48:47]Method is POST - this is cgi request [20:48:47]url: /json_proto [20:48:47]query_string will be loaded in cgi processing [20:48:47]execute_cgi json_proto POST (null) [20:48:47]execute_cgi path=json_proto method=POST [20:48:47]POST find Content-Length [20:48:47]Host: 172.17.35.133:8080 [20:48:47]Content-Length: 637 [20:48:47]Content-Type: application/json [20:48:47] [20:48:47]POST finish read [20:48:47]Found Content-Length = 637 [20:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256358", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\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" ] } } [20:48:47]execute_script... [20:48:47]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)256358", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\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" ] } } [20:48:47]POST & json_proto [20:48:47]process_json_proto [20:48:47]json parsed OK: [20:48:47]protocol is kg_v1.0 [20:48:47]action value=close_receipt [20:48:47]process_action close_receipt [20:48:47]cmd_close_receipt [20:48:47]MH_GetDate [20:48:47]Write to MH i2c: F0 00 00 F5 1C 00 [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: F0 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: F0 09 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: F0 09 00 F5 1C 00 32 E8 92 66 1B 28 2A 66 EE [20:48:47]GetLastDocTimeStamp 1720903627 [20:48:47]current date 1720903730 [20:48:47]FM_GetShiftState [20:48:47]SAM_PROTO_GetShiftState [20:48:47]wFMCommunicate request_size=4 [20:48:47]MH_SAM_APDU [20:48:47]CAPDU: 80 13 01 00 [20:48:47]Write to MH i2c: E2 08 00 F6 1C 80 13 01 00 00 00 00 00 8F [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:47]Read from MH i2c: E2 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 0E 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 0E 00 F6 1C 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 1A [20:48:47]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:48:47]wFMCommunicate OK [20:48:47]SAM_PROTO_GetShiftState done [20:48:47]FM_GetShiftState done [20:48:47]opened in 1720829379 [20:48:47]opened+sec_in_day 1720915779 [20:48:47]quantity*price = 5000 [20:48:47]sum+1 = 5001 [20:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 123 13.07.2024 20:48 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1954 ФПД: 109304163350431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204850&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1954&fm=109304163350431&tin=02508201610067®Number=0000000000177495&sum=5000 0 [20:48:48]StoreToDocumentArchive [20:48:48]shift 24 fd 1954 [20:48:48]save to /storage/0024/doc_00001954 [20:48:48]save last doc name /storage/0024/doc_00001954 to /storage/kkm_last_doc_name [20:48:48]save OK [20:48:48]Clear old archive folders... [20:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:48:48]tlvbuf is 01014C30 [20:48:48]SAM_PROTO_ClearQueue [20:48:48]wFMCommunicate request_size=4 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 09 00 00 [20:48:48]Write to MH i2c: E2 08 00 03 1D 80 09 00 00 00 00 00 00 92 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [20:48:48]RAPDU: 90 00 [20:48:48]wFMCommunicate OK [20:48:48]SAM_PROTO_ClearQueue done [20:48:48]KKMCreateOFDPacket [20:48:48]OFDProtocolAddRootSTLVToBuf [20:48:48]FM_MakeSignedData [20:48:48]FM_MakeSignedData [20:48:48]SAM_PROTO_SignData [20:48:48]wFMCommunicate request_size=4 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 0D 01 02 [20:48:48]Write to MH i2c: E2 08 00 04 1D 80 0D 01 02 00 00 00 00 9A [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [20:48:48]RAPDU: 90 00 [20:48:48]wFMCommunicate OK [20:48:48]wFMCommunicate request_size=255 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 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 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 7B 00 00 00 F4 03 04 00 32 E8 92 66 0E 04 04 00 18 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 [20:48:48]Write to MH i2c: E2 02 01 05 1D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 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 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 7B 00 00 00 F4 03 04 00 32 E8 92 66 0E 04 04 00 18 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 94 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 03 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [20:48:49]RAPDU: 90 00 [20:48:49]wFMCommunicate OK [20:48:49]wFMCommunicate request_size=31 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 0D 02 02 1A 30 32 30 39 38 35 39 32 10 04 04 00 A2 07 00 00 35 04 06 00 63 69 5B D4 37 9F [20:48:49]Write to MH i2c: E2 22 00 06 1D 80 0D 02 02 1A 00 30 32 30 39 38 35 39 32 10 04 04 00 A2 07 00 00 35 04 06 00 63 69 5B D4 37 9F 00 00 45 [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 03 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [20:48:49]RAPDU: 90 00 [20:48:49]wFMCommunicate OK [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 0D 03 02 [20:48:49]Write to MH i2c: E2 08 00 07 1D 80 0D 03 02 00 00 00 00 9F [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0B 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0B 00 07 1D 00 AF 73 2F F8 99 EA 5D A2 90 00 6B [20:48:49]RAPDU: AF 73 2F F8 99 EA 5D A2 90 00 [20:48:49]wFMCommunicate OK [20:48:49]SAM_PROTO_SignData done [20:48:49]FM_MakeSignedData done [20:48:49]CreateOFDProtocolMessage [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 11 00 00 [20:48:49]Write to MH i2c: E2 08 00 08 1D 80 11 00 00 00 00 00 00 9F [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 17 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 17 00 08 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F5 [20:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:48:49]wFMCommunicate OK [20:48:49]CreateOFDProtocolMessage done [20:48:49]OFDSenderStorePacket 1954 [20:48:49]StoreOFDPacket docnum=1954 [20:48: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 24 01 00 00 3B 42 1C 01 03 65 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 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 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 7B 00 00 00 F4 03 04 00 32 E8 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 63 69 5B D4 37 9F AF 73 2F F8 99 EA 5D A2 [20:48:49]CheckFolder [20:48:49]dirname=/storage/ofd_packets [20:48:49]CheckFolder done [20:48:49]ProducePacketName [20:48:49]name=ofd_packets/00001954 [20:48:49]NVStorageSaveData ofd_packets/00001954 [20:48:49]File name is /storage/ofd_packets/00001954 [20:48:49]Write 322 bytes [20:48:49]NVStorageSaveData done [20:48:49]OFDSenderStorePacket done [20:48:49]KKMCreateOFDPacket done [20:48:49]NVStorageSaveData kkm_last_timestamp [20:48:49]File name is /storage/kkm_last_timestamp [20:48:49]Write 4 bytes [20:48:49]NVStorageSaveData done [20:48:49]ExternCall_PrintAddStr [20:48:49]wPrintStart [20:48:49]Write to MH i2c: 01 00 00 09 1D 26 [20:48:49]OFD Sender: Processing packet 1954 [packets to send 1, broken 0] [20:48:49]ProducePacketName [20:48:49]name=ofd_packets/00001954 [20:48:49]OFD Sender: To server: pG, [20:48:49]CommunicateWithHost lk.salyk.kg:30040 [20:48:49]ConnectInit lk.salyk.kg [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 07 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 07 00 09 1D 00 00 00 00 00 FF 0F 3B [20:48:49]RasterBufferAndPrint [20:48:49]line Счет N : (3)256358 [20:48:49]line ИНН: 02508201610067 [20:48:49]line Контрольно-Кассовый Чек [20:48:49]line ПРОДАЖА [20:48:49]line Товар: 4700000160051 [20:48:49]line Вода Ыссык Ата 1л [20:48:49]line 1.000 * 50.00 [20:48:49]line = 50.00 [20:48:49]line НДС 12% НСП 1% [20:48:49]line > о реализуемом товаре [20:48:49]line ИТОГО: 50.00 [20:48:49]line НСП 1% : 0.44 [20:48:49]line НДС 12% : 5.31 [20:48:49]line Наличными: 50.00 [20:48:49]line Безнал.: 0.00 [20:48:49]line Место: АЗС № 76 "Партнер Нефть" [20:48:49]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:48:49]line СНО: Общий режим [20:48:49]line Чек 123 13.07.2024 20:48 [20:48:49]line Смена: 24 ФФД: 1.0 [20:48:49]line ЗНМ: 0300000124 [20:48:49]line РНМ: 0000000000177495 [20:48:49]line Версия ККМ: 001 [20:48:49]line ФМ: 0000000002098592 [20:48:49]line ФД: 1954 [20:48:49]line ФПД: 109304163350431 [20:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T204850&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1954&fm=109304163350431&tin=02508201610067®Number=0000000000177495&sum=5000 [20:48:49]line 0 [20:48:49]Connected sock=10 [20:48: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 24 01 00 00 3B 42 1C 01 03 65 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 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 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 7B 00 00 00 F4 03 04 00 32 E8 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 63 69 5B D4 37 9F AF 73 2F F8 99 EA 5D A2 [20:48:49]written 0, free lines is 4095 [20:48: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 C8 1D 47 00 31 4F 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 07 00 00 F4 03 04 00 67 93 92 66 B6 04 01 00 00 98 28 D4 7D 85 D6 C4 C1 [20:48:49]CommunicateWithHost err = 0 [20:48:49]CheckOFDResponse [20:48:49]1017 (14) - 77093643461234 [20:48:49]1041 (16) - 0000000002098592 [20:48:49]1040 (4) - 1954 [20:48:49]1012 (4) - 13.07.2024 14:47 [20:48:49]1206 (1) - 0 [20:48:49]OFD Sender: Remove packet 1954 [20:48:49]ProducePacketName [20:48:49]name=ofd_packets/00001954 [20:48:49]NVStorageDeleteData [20:48:50]Write to MH i2c: 01 00 00 31 1D 4E [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 07 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 07 00 31 1D 00 00 00 00 00 06 0D 68 [20:48:50]RasterBufferAndPrint [20:48:50]line [20:48:50]line [20:48:50]line [20:48:50]line [20:48:50]line [20:48:50]written 0, free lines is 3341 [20:48:50]MH_Cut [20:48:50]Write to MH i2c: D1 01 00 38 1D 01 27 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: D1 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: D1 01 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: D1 01 00 38 1D 00 26 [20:48:50]Write to MH i2c: 01 00 00 39 1D 56 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]OFD Sender: No OFD packet to send [20:48:50]*** Cut start [20:48:50]*** Partial cut [20:48:50]*** CUTSNS_PIN = 1 [20:48:50]*** CUTSNS_PIN = 0 [20:48:51]*** Brake cut motor [20:48:51]Read from MH i2c: 01 [20:48:51]MH_I2C_Read... [20:48:51]*** Stop cut motor [20:48:51]*** Cut end [20:48:51]Read from MH i2c: 01 07 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 39 1D 00 00 00 00 00 FF 0F 6B [20:48:51]process_action close_receipt done [20:48:51]requested_data is exist [20:48:51]produce_requested_data [20:48:51]requested_item fm.sn is exist - process it [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 11 00 00 [20:48:51]Write to MH i2c: E2 08 00 3A 1D 80 11 00 00 00 00 00 00 D1 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 17 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 17 00 3A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 27 [20:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:48:51]wFMCommunicate OK [20:48:51]requested_item fd.num is exist - process it [20:48:51]SAM_PROTO_GetFieldsCounters [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 13 00 00 [20:48:51]Write to MH i2c: E2 08 00 3B 1D 80 13 00 00 00 00 00 00 D4 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 62 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 62 00 3B 1D 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [20:48: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 A2 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_GetFieldsCounters done [20:48:51]requested_item shift.num is exist - process it [20:48:51]requested_item shift.opened is exist - process it [20:48:51]req_shift_opened [20:48:51]FM_GetShiftState [20:48:51]SAM_PROTO_GetShiftState [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 13 01 00 [20:48:51]Write to MH i2c: E2 08 00 3C 1D 80 13 01 00 00 00 00 00 D6 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0E 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0E 00 3C 1D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 61 [20:48:51]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_GetShiftState done [20:48:51]FM_GetShiftState done [20:48:51]req_shift_opened done [20:48:51]requested_item shift.open_date is exist - process it [20:48:51]req_shift_open_date [20:48:51]req_shift_open_date done [20:48:51]produce_requested_data done [20:48:51]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1954,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:48:51]process_action_free close_receipt [20:48:51]json_value_free [20:48:51]json_value_free done [20:48:51]process_json_proto returns [20:48:51]Send response to host [20:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1954,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:48:51]free response buf [20:48:51]execute_script done [20:48:51]execute_script returns [20:48:51]free content buf [20:48:51]Sock 9.Close socket [20:48:51]Sock 9.Thread stoped [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:46]accept exits with 8 [20:56:46]New connection [20:56:46]New thread 3066834276 created [20:56:46]Thread 3066977636 joined [20:56:46]Waiting for new connection... [20:56:46] Sock 8.Parse request [20:56:46]Sock 8.Check first char [20:56:46]Sock 8.First char is OK [20:56:46]request: POST /json_proto HTTP/1.0 [20:56:46]Method: POST [20:56:46]URL: /json_proto [20:56:46]Method is POST - this is cgi request [20:56:46]url: /json_proto [20:56:46]query_string will be loaded in cgi processing [20:56:46]execute_cgi json_proto POST (null) [20:56:46]execute_cgi path=json_proto method=POST [20:56:46]POST find Content-Length [20:56:46]Host: 172.17.35.133:8080 [20:56:46]Content-Length: 683 [20:56:46]Content-Type: application/json [20:56:46] [20:56:46]POST finish read [20:56:46]Found Content-Length = 683 [20:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619145", "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" : 18.100, "sum" : 1200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:46]execute_script... [20:56: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 : (1)1619145", "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" : 18.100, "sum" : 1200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:46]POST & json_proto [20:56:46]process_json_proto [20:56:46]json parsed OK: [20:56:46]protocol is kg_v1.0 [20:56:46]action value=close_receipt [20:56:46]process_action close_receipt [20:56:46]cmd_close_receipt [20:56:46]MH_GetDate [20:56:46]Write to MH i2c: F0 00 00 3D 1D 49 [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: F0 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: F0 09 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: F0 09 00 3D 1D 00 11 EA 92 66 1B 28 2A 66 18 [20:56:46]GetLastDocTimeStamp 1720903730 [20:56:46]current date 1720904209 [20:56:46]FM_GetShiftState [20:56:46]SAM_PROTO_GetShiftState [20:56:46]wFMCommunicate request_size=4 [20:56:46]MH_SAM_APDU [20:56:46]CAPDU: 80 13 01 00 [20:56:46]Write to MH i2c: E2 08 00 3E 1D 80 13 01 00 00 00 00 00 D8 [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 0E 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 0E 00 3E 1D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 63 [20:56:46]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:56:46]wFMCommunicate OK [20:56:46]SAM_PROTO_GetShiftState done [20:56:46]FM_GetShiftState done [20:56:46]opened in 1720829379 [20:56:46]opened+sec_in_day 1720915779 [20:56:46]quantity*price = 120003 [20:56:46]sum+1 = 120004 [20:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 124 13.07.2024 20:56 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1955 ФПД: 212333342909117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205649&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1955&fm=212333342909117&tin=02508201610067®Number=0000000000177495&sum=120000 [20:56:47]StoreToDocumentArchive [20:56:47]shift 24 fd 1955 [20:56:47]save to /storage/0024/doc_00001955 [20:56:47]save last doc name /storage/0024/doc_00001955 to /storage/kkm_last_doc_name [20:56:47]save OK [20:56:47]Clear old archive folders... [20:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:47]tlvbuf is 01007290 [20:56:47]SAM_PROTO_ClearQueue [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 09 00 00 [20:56:47]Write to MH i2c: E2 08 00 4B 1D 80 09 00 00 00 00 00 00 DA [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [20:56:47]RAPDU: 90 00 [20:56:47]wFMCommunicate OK [20:56:47]SAM_PROTO_ClearQueue done [20:56:47]KKMCreateOFDPacket [20:56:47]OFDProtocolAddRootSTLVToBuf [20:56:47]FM_MakeSignedData [20:56:47]FM_MakeSignedData [20:56:47]SAM_PROTO_SignData [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 0D 01 02 [20:56:47]Write to MH i2c: E2 08 00 4C 1D 80 0D 01 02 00 00 00 00 E2 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 4C 1D 00 90 00 DD [20:56:47]RAPDU: 90 00 [20:56:47]wFMCommunicate OK [20:56:47]wFMCommunicate request_size=255 [20:56:47]MH_SAM_APDU [20:56:47]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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 11 EA 92 66 0E 04 04 00 18 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 A3 07 00 00 35 04 06 00 C1 [20:56:47]Write to MH i2c: E2 02 01 4D 1D 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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 11 EA 92 66 0E 04 04 00 18 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 A3 07 00 00 35 04 06 00 C1 00 00 C7 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 4D 1D 00 90 00 DE [20:56:47]RAPDU: 90 00 [20:56:47]wFMCommunicate OK [20:56:47]wFMCommunicate request_size=10 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 0D 02 02 05 1D B5 7A 62 BD [20:56:47]Write to MH i2c: E2 0D 00 4E 1D 80 0D 02 02 05 00 1D B5 7A 62 BD 00 00 5A [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [20:56:47]RAPDU: 90 00 [20:56:47]wFMCommunicate OK [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 0D 03 02 [20:56:47]Write to MH i2c: E2 08 00 4F 1D 80 0D 03 02 00 00 00 00 E7 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 0B 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 0B 00 4F 1D 00 A9 BC 51 E5 88 2F A9 A2 90 00 85 [20:56:47]RAPDU: A9 BC 51 E5 88 2F A9 A2 90 00 [20:56:47]wFMCommunicate OK [20:56:47]SAM_PROTO_SignData done [20:56:47]FM_MakeSignedData done [20:56:47]CreateOFDProtocolMessage [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 11 00 00 [20:56:47]Write to MH i2c: E2 08 00 50 1D 80 11 00 00 00 00 00 00 E7 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 17 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 17 00 50 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3D [20:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:56:47]wFMCommunicate OK [20:56:47]CreateOFDProtocolMessage done [20:56:47]OFDSenderStorePacket 1955 [20:56:47]StoreOFDPacket docnum=1955 [20:56:47]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 43 FF 07 01 54 64 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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 11 EA 92 66 0E 04 04 00 18 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 A3 07 00 00 35 04 06 00 C1 1D B5 7A 62 BD A9 BC 51 E5 88 2F A9 A2 [20:56:47]CheckFolder [20:56:47]dirname=/storage/ofd_packets [20:56:47]CheckFolder done [20:56:47]ProducePacketName [20:56:47]name=ofd_packets/00001955 [20:56:47]NVStorageSaveData ofd_packets/00001955 [20:56:47]File name is /storage/ofd_packets/00001955 [20:56:47]Write 301 bytes [20:56:47]NVStorageSaveData done [20:56:47]OFDSenderStorePacket done [20:56:47]KKMCreateOFDPacket done [20:56:47]NVStorageSaveData kkm_last_timestamp [20:56:47]File name is /storage/kkm_last_timestamp [20:56:47]Write 4 bytes [20:56:47]NVStorageSaveData done [20:56:47]ExternCall_PrintAddStr [20:56:47]wPrintStart [20:56:47]Write to MH i2c: 01 00 00 51 1D 6E [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: 01 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: 01 07 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: 01 07 00 51 1D 00 00 00 00 00 FF 0F 83 [20:56:47]RasterBufferAndPrint [20:56:47]line Счет N : (1)1619145 [20:56:47]line ИНН: 02508201610067 [20:56:47]line Контрольно-Кассовый Чек [20:56:47]line ПРОДАЖА [20:56:47]line ТРК (МРК, ГНК) : 53 [20:56:47]line Товар: 2710124130 [20:56:47]line Аи-92-К-5 [20:56:47]line 18.100 * 66.30 [20:56:47]line = 1200.03 [20:56:47]line НДС 12% НСП 1% [20:56:47]line > о реализуемом товаре [20:56:47]line ОКРУГЛЕНИЕ: -0.03 [20:56:47]line ИТОГО: 1200.00 [20:56:47]line Внесено: 1200.00 [20:56:47]line СДАЧА: 0.00 [20:56:47]line НСП 1% : 10.62 [20:56:47]line НДС 12% : 127.44 [20:56:47]line Наличными: 1200.00 [20:56:47]line Безнал.: 0.00 [20:56:47]line Место: АЗС № 76 "Партнер Нефть" [20:56:47]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [20:56:47]line СНО: Общий режим [20:56:47]line Чек 124 13.07.2024 20:56 [20:56:47]line Смена: 24 ФФД: 1.0 [20:56:47]line ЗНМ: 0300000124 [20:56:47]line РНМ: 0000000000177495 [20:56:47]line Версия ККМ: 001 [20:56:47]line ФМ: 0000000002098592 [20:56:47]line ФД: 1955 [20:56:47]line ФПД: 212333342909117 [20:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205649&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1955&fm=212333342909117&tin=02508201610067®Number=0000000000177495&sum=120000 [20:56:48]OFD Sender: Processing packet 1955 [packets to send 1, broken 0] [20:56:48]ProducePacketName [20:56:48]name=ofd_packets/00001955 [20:56:48]OFD Sender: To server: pG, [20:56:48]CommunicateWithHost lk.salyk.kg:30040 [20:56:48]ConnectInit lk.salyk.kg [20:56:48]written 0, free lines is 4095 [20:56:48]Connected sock=10 [20:56:48]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 43 FF 07 01 54 64 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 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 11 EA 92 66 0E 04 04 00 18 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 A3 07 00 00 35 04 06 00 C1 1D B5 7A 62 BD A9 BC 51 E5 88 2F A9 A2 [20:56:48]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 C9 47 00 EC 36 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 A3 07 00 00 F4 03 04 00 46 95 92 66 B6 04 01 00 00 40 DD EE CE 62 BA 8B 46 [20:56:48]CommunicateWithHost err = 0 [20:56:48]CheckOFDResponse [20:56:48]1017 (14) - 77093643461234 [20:56:48]1041 (16) - 0000000002098592 [20:56:48]1040 (4) - 1955 [20:56:48]1012 (4) - 13.07.2024 14:55 [20:56:48]1206 (1) - 0 [20:56:48]OFD Sender: Remove packet 1955 [20:56:48]ProducePacketName [20:56:48]name=ofd_packets/00001955 [20:56:48]NVStorageDeleteData [20:56:48]Write to MH i2c: 01 00 00 7C 1D 99 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 E8 0C 94 [20:56:48]RasterBufferAndPrint [20:56:48]line [20:56:48]line [20:56:48]line [20:56:48]line [20:56:48]line [20:56:48]written 0, free lines is 3313 [20:56:48]MH_Cut [20:56:48]Write to MH i2c: D1 01 00 83 1D 01 72 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: D1 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: D1 01 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: D1 01 00 83 1D 00 71 [20:56:48]Write to MH i2c: 01 00 00 84 1D A1 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]OFD Sender: No OFD packet to send [20:56:49]*** Cut start [20:56:49]*** Partial cut [20:56:49]*** CUTSNS_PIN = 1 [20:56:49]*** CUTSNS_PIN = 0 [20:56:49]*** Brake cut motor [20:56:49]Read from MH i2c: 01 [20:56:49]MH_I2C_Read... [20:56:49]*** Stop cut motor [20:56:49]*** Cut end [20:56:49]Read from MH i2c: 01 07 00 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 FF 0F B6 [20:56:49]process_action close_receipt done [20:56:49]requested_data is exist [20:56:49]produce_requested_data [20:56:49]requested_item fm.sn is exist - process it [20:56:49]wFMCommunicate request_size=4 [20:56:49]MH_SAM_APDU [20:56:49]CAPDU: 80 11 00 00 [20:56:49]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:50]Read from MH i2c: E2 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 17 00 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 72 [20:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [20:56:50]wFMCommunicate OK [20:56:50]requested_item fd.num is exist - process it [20:56:50]SAM_PROTO_GetFieldsCounters [20:56:50]wFMCommunicate request_size=4 [20:56:50]MH_SAM_APDU [20:56:50]CAPDU: 80 13 00 00 [20:56:50]Write to MH i2c: E2 08 00 86 1D 80 13 00 00 00 00 00 00 1F [20:56:50]Write i2c OK [20:56:50]MH_I2C_Read... [20:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:50]Read from MH i2c: E2 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 62 00 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 62 00 86 1D 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 A3 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [20:56:50]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 A3 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:50]wFMCommunicate OK [20:56:50]SAM_PROTO_GetFieldsCounters done [20:56:50]requested_item shift.num is exist - process it [20:56:50]requested_item shift.opened is exist - process it [20:56:50]req_shift_opened [20:56:50]FM_GetShiftState [20:56:50]SAM_PROTO_GetShiftState [20:56:50]wFMCommunicate request_size=4 [20:56:50]MH_SAM_APDU [20:56:50]CAPDU: 80 13 01 00 [20:56:50]Write to MH i2c: E2 08 00 87 1D 80 13 01 00 00 00 00 00 21 [20:56:50]Write i2c OK [20:56:50]MH_I2C_Read... [20:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:50]Read from MH i2c: E2 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 0E 00 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 0E 00 87 1D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 AC [20:56:50]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [20:56:50]wFMCommunicate OK [20:56:50]SAM_PROTO_GetShiftState done [20:56:50]FM_GetShiftState done [20:56:50]req_shift_opened done [20:56:50]requested_item shift.open_date is exist - process it [20:56:50]req_shift_open_date [20:56:50]req_shift_open_date done [20:56:50]produce_requested_data done [20:56:50]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1955,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [20:56:50]process_action_free close_receipt [20:56:50]json_value_free [20:56:50]json_value_free done [20:56:50]process_json_proto returns [20:56:50]Send response to host [20:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1955,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [20:56:50]free response buf [20:56:50]execute_script done [20:56:50]execute_script returns [20:56:50]free content buf [20:56:50]Sock 8.Close socket [20:56:50]Sock 8.Thread stoped [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:41]accept exits with 9 [21:04:41]New connection [21:04:41]New thread 3066977636 created [21:04:41]Thread 3066834276 joined [21:04:41]Waiting for new connection... [21:04:41] Sock 9.Parse request [21:04:41]Sock 9.Check first char [21:04:41]Sock 9.First char is OK [21:04:41]request: POST /json_proto HTTP/1.0 [21:04:41]Method: POST [21:04:41]URL: /json_proto [21:04:41]Method is POST - this is cgi request [21:04:41]url: /json_proto [21:04:41]query_string will be loaded in cgi processing [21:04:41]execute_cgi json_proto POST (null) [21:04:41]execute_cgi path=json_proto method=POST [21:04:41]POST find Content-Length [21:04:41]Host: 172.17.35.133:8080 [21:04:41]Content-Length: 678 [21:04:41]Content-Type: application/json [21:04:41] [21:04:41]POST finish read [21:04:41]Found Content-Length = 678 [21:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619146", "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" : 6.790, "sum" : 450.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:41]execute_script... [21:04: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 : (1)1619146", "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" : 6.790, "sum" : 450.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:41]POST & json_proto [21:04:41]process_json_proto [21:04:41]json parsed OK: [21:04:41]protocol is kg_v1.0 [21:04:41]action value=close_receipt [21:04:41]process_action close_receipt [21:04:41]cmd_close_receipt [21:04:41]MH_GetDate [21:04:41]Write to MH i2c: F0 00 00 88 1D 94 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: F0 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: F0 09 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: F0 09 00 88 1D 00 EC EB 92 66 1B 28 2A 66 3F [21:04:41]GetLastDocTimeStamp 1720904209 [21:04:41]current date 1720904684 [21:04:41]FM_GetShiftState [21:04:41]SAM_PROTO_GetShiftState [21:04:41]wFMCommunicate request_size=4 [21:04:41]MH_SAM_APDU [21:04:41]CAPDU: 80 13 01 00 [21:04:41]Write to MH i2c: E2 08 00 89 1D 80 13 01 00 00 00 00 00 23 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0E 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0E 00 89 1D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 AE [21:04:41]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:04:41]wFMCommunicate OK [21:04:41]SAM_PROTO_GetShiftState done [21:04:41]FM_GetShiftState done [21:04:41]opened in 1720829379 [21:04:41]opened+sec_in_day 1720915779 [21:04:41]quantity*price = 45017 [21:04:41]sum+1 = 45019 [21:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 125 13.07.2024 21:04 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1956 ФПД: 81793986147673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210444&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1956&fm=81793986147673&tin=02508201610067®Number=0000000000177495&sum=45000 [21:04:42]StoreToDocumentArchive [21:04:42]shift 24 fd 1956 [21:04:42]save to /storage/0024/doc_00001956 [21:04:42]save last doc name /storage/0024/doc_00001956 to /storage/kkm_last_doc_name [21:04:42]save OK [21:04:42]Clear old archive folders... [21:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:42]tlvbuf is 00FE6090 [21:04:42]SAM_PROTO_ClearQueue [21:04:42]wFMCommunicate request_size=4 [21:04:42]MH_SAM_APDU [21:04:42]CAPDU: 80 09 00 00 [21:04:42]Write to MH i2c: E2 08 00 96 1D 80 09 00 00 00 00 00 00 25 [21:04:42]Write i2c OK [21:04:42]MH_I2C_Read... [21:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:42]Read from MH i2c: E2 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: E2 03 00 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [21:04:42]RAPDU: 90 00 [21:04:42]wFMCommunicate OK [21:04:42]SAM_PROTO_ClearQueue done [21:04:42]KKMCreateOFDPacket [21:04:42]OFDProtocolAddRootSTLVToBuf [21:04:42]FM_MakeSignedData [21:04:42]FM_MakeSignedData [21:04:42]SAM_PROTO_SignData [21:04:42]wFMCommunicate request_size=4 [21:04:42]MH_SAM_APDU [21:04:42]CAPDU: 80 0D 01 02 [21:04:42]Write to MH i2c: E2 08 00 97 1D 80 0D 01 02 00 00 00 00 2D [21:04:42]Write i2c OK [21:04:42]MH_I2C_Read... [21:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:42]Read from MH i2c: E2 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: E2 03 00 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: E2 03 00 97 1D 00 90 00 28 [21:04:42]RAPDU: 90 00 [21:04:42]wFMCommunicate OK [21:04:42]wFMCommunicate request_size=255 [21:04:42]MH_SAM_APDU [21:04:42]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 86 1A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EC EB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 4A [21:04:42]Write to MH i2c: E2 02 01 98 1D 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 86 1A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EC EB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 4A 00 00 FF [21:04:42]Write i2c OK [21:04:42]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 03 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 03 00 98 1D 00 90 00 29 [21:04:43]RAPDU: 90 00 [21:04:43]wFMCommunicate OK [21:04:43]wFMCommunicate request_size=10 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 0D 02 02 05 64 25 7D 35 59 [21:04:43]Write to MH i2c: E2 0D 00 99 1D 80 0D 02 02 05 00 64 25 7D 35 59 00 00 CE [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 03 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [21:04:43]RAPDU: 90 00 [21:04:43]wFMCommunicate OK [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 0D 03 02 [21:04:43]Write to MH i2c: E2 08 00 9A 1D 80 0D 03 02 00 00 00 00 32 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0B 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0B 00 9A 1D 00 40 81 BE 29 3B 73 7F CD 90 00 D5 [21:04:43]RAPDU: 40 81 BE 29 3B 73 7F CD 90 00 [21:04:43]wFMCommunicate OK [21:04:43]SAM_PROTO_SignData done [21:04:43]FM_MakeSignedData done [21:04:43]CreateOFDProtocolMessage [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 11 00 00 [21:04:43]Write to MH i2c: E2 08 00 9B 1D 80 11 00 00 00 00 00 00 32 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 17 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 17 00 9B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 88 [21:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:04:43]wFMCommunicate OK [21:04:43]CreateOFDProtocolMessage done [21:04:43]OFDSenderStorePacket 1956 [21:04:43]StoreOFDPacket docnum=1956 [21:04: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 0F 01 00 00 FE 44 07 01 12 AE 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 86 1A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EC EB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 4A 64 25 7D 35 59 40 81 BE 29 3B 73 7F CD [21:04:43]CheckFolder [21:04:43]dirname=/storage/ofd_packets [21:04:43]CheckFolder done [21:04:43]ProducePacketName [21:04:43]name=ofd_packets/00001956 [21:04:43]NVStorageSaveData ofd_packets/00001956 [21:04:43]File name is /storage/ofd_packets/00001956 [21:04:43]Write 301 bytes [21:04:43]NVStorageSaveData done [21:04:43]OFDSenderStorePacket done [21:04:43]KKMCreateOFDPacket done [21:04:43]NVStorageSaveData kkm_last_timestamp [21:04:43]File name is /storage/kkm_last_timestamp [21:04:43]Write 4 bytes [21:04:43]NVStorageSaveData done [21:04:43]ExternCall_PrintAddStr [21:04:43]wPrintStart [21:04:43]Write to MH i2c: 01 00 00 9C 1D B9 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 07 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 07 00 9C 1D 00 00 00 00 00 FF 0F CE [21:04:43]RasterBufferAndPrint [21:04:43]line Счет N : (1)1619146 [21:04:43]line ИНН: 02508201610067 [21:04:43]line Контрольно-Кассовый Чек [21:04:43]line ПРОДАЖА [21:04:43]line ТРК (МРК, ГНК) : 33 [21:04:43]line Товар: 2710124130 [21:04:43]line Аи-92-К-5 [21:04:43]line 6.790 * 66.30 [21:04:43]line = 450.18 [21:04:43]line НДС 12% НСП 1% [21:04:43]line > о реализуемом товаре [21:04:43]line ОКРУГЛЕНИЕ: -0.18 [21:04:43]line ИТОГО: 450.00 [21:04:43]line Внесено: 450.00 [21:04:43]line СДАЧА: 0.00 [21:04:43]line НСП 1% : 3.98 [21:04:43]line НДС 12% : 47.81 [21:04:43]line Наличными: 450.00 [21:04:43]line Безнал.: 0.00 [21:04:43]line Место: АЗС № 76 "Партнер Нефть" [21:04:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:04:43]line СНО: Общий режим [21:04:43]line Чек 125 13.07.2024 21:04 [21:04:43]line Смена: 24 ФФД: 1.0 [21:04:43]line ЗНМ: 0300000124 [21:04:43]line РНМ: 0000000000177495 [21:04:43]line Версия ККМ: 001 [21:04:43]line ФМ: 0000000002098592 [21:04:43]line ФД: 1956 [21:04:43]line ФПД: 81793986147673 [21:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210444&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1956&fm=81793986147673&tin=02508201610067®Number=0000000000177495&sum=45000 [21:04:43]OFD Sender: Processing packet 1956 [packets to send 1, broken 0] [21:04:43]ProducePacketName [21:04:43]name=ofd_packets/00001956 [21:04:43]OFD Sender: To server: pG, [21:04:43]CommunicateWithHost lk.salyk.kg:30040 [21:04:43]ConnectInit lk.salyk.kg [21:04:43]written 0, free lines is 4095 [21:04:43]Connected sock=10 [21:04: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 0F 01 00 00 FE 44 07 01 12 AE 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 86 1A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EC EB 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 4A 64 25 7D 35 59 40 81 BE 29 3B 73 7F CD [21:04: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 8A 35 47 00 FE 1F 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 07 00 00 F4 03 04 00 21 97 92 66 B6 04 01 00 00 6B B7 05 B1 1B CF A7 92 [21:04:43]CommunicateWithHost err = 0 [21:04:43]CheckOFDResponse [21:04:43]1017 (14) - 77093643461234 [21:04:43]1041 (16) - 0000000002098592 [21:04:43]1040 (4) - 1956 [21:04:43]1012 (4) - 13.07.2024 15:02 [21:04:43]1206 (1) - 0 [21:04:43]OFD Sender: Remove packet 1956 [21:04:43]ProducePacketName [21:04:43]name=ofd_packets/00001956 [21:04:43]NVStorageDeleteData [21:04:44]Write to MH i2c: 01 00 00 C7 1D E4 [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: 01 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: 01 07 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: 01 07 00 C7 1D 00 00 00 00 00 DF 0C D6 [21:04:44]RasterBufferAndPrint [21:04:44]line [21:04:44]line [21:04:44]line [21:04:44]line [21:04:44]line [21:04:44]written 0, free lines is 3304 [21:04:44]MH_Cut [21:04:44]Write to MH i2c: D1 01 00 CE 1D 01 BD [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: D1 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: D1 01 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: D1 01 00 CE 1D 00 BC [21:04:44]Write to MH i2c: 01 00 00 CF 1D EC [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]OFD Sender: No OFD packet to send [21:04:44]*** Cut start [21:04:44]*** Partial cut [21:04:44]*** CUTSNS_PIN = 1 [21:04:44]*** CUTSNS_PIN = 0 [21:04:45]*** Brake cut motor [21:04:45]Read from MH i2c: 01 [21:04:45]MH_I2C_Read... [21:04:45]*** Stop cut motor [21:04:45]*** Cut end [21:04:45]Read from MH i2c: 01 07 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 FF 0F 01 [21:04:45]process_action close_receipt done [21:04:45]requested_data is exist [21:04:45]produce_requested_data [21:04:45]requested_item fm.sn is exist - process it [21:04:45]wFMCommunicate request_size=4 [21:04:45]MH_SAM_APDU [21:04:45]CAPDU: 80 11 00 00 [21:04:45]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:45]Read from MH i2c: E2 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 17 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BD [21:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:04:45]wFMCommunicate OK [21:04:45]requested_item fd.num is exist - process it [21:04:45]SAM_PROTO_GetFieldsCounters [21:04:45]wFMCommunicate request_size=4 [21:04:45]MH_SAM_APDU [21:04:45]CAPDU: 80 13 00 00 [21:04:45]Write to MH i2c: E2 08 00 D1 1D 80 13 00 00 00 00 00 00 6A [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:45]Read from MH i2c: E2 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 62 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 62 00 D1 1D 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [21:04: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 A4 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:45]wFMCommunicate OK [21:04:45]SAM_PROTO_GetFieldsCounters done [21:04:45]requested_item shift.num is exist - process it [21:04:45]requested_item shift.opened is exist - process it [21:04:45]req_shift_opened [21:04:45]FM_GetShiftState [21:04:45]SAM_PROTO_GetShiftState [21:04:45]wFMCommunicate request_size=4 [21:04:45]MH_SAM_APDU [21:04:45]CAPDU: 80 13 01 00 [21:04:45]Write to MH i2c: E2 08 00 D2 1D 80 13 01 00 00 00 00 00 6C [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:45]Read from MH i2c: E2 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 0E 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 0E 00 D2 1D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 F7 [21:04:45]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:04:45]wFMCommunicate OK [21:04:45]SAM_PROTO_GetShiftState done [21:04:45]FM_GetShiftState done [21:04:45]req_shift_opened done [21:04:45]requested_item shift.open_date is exist - process it [21:04:45]req_shift_open_date [21:04:45]req_shift_open_date done [21:04:45]produce_requested_data done [21:04:45]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1956,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:04:45]process_action_free close_receipt [21:04:45]json_value_free [21:04:45]json_value_free done [21:04:45]process_json_proto returns [21:04:45]Send response to host [21:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1956,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:04:45]free response buf [21:04:45]execute_script done [21:04:45]execute_script returns [21:04:45]free content buf [21:04:45]Sock 9.Close socket [21:04:45]Sock 9.Thread stoped [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]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:31]accept exits with 8 [21:10:31]New connection [21:10:31]New thread 3066834276 created [21:10:31]Thread 3066977636 joined [21:10:31]Waiting for new connection... [21:10:31] Sock 8.Parse request [21:10:31]Sock 8.Check first char [21:10:31]Sock 8.First char is OK [21:10:31]request: POST /json_proto HTTP/1.0 [21:10:31]Method: POST [21:10:31]URL: /json_proto [21:10:31]Method is POST - this is cgi request [21:10:31]url: /json_proto [21:10:31]query_string will be loaded in cgi processing [21:10:31]execute_cgi json_proto POST (null) [21:10:31]execute_cgi path=json_proto method=POST [21:10:31]POST find Content-Length [21:10:31]Host: 172.17.35.133:8080 [21:10:31]Content-Length: 679 [21:10:31]Content-Type: application/json [21:10:31] [21:10:31]POST finish read [21:10:31]Found Content-Length = 679 [21:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619147", "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" : 12.070, "sum" : 800.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:31]execute_script... [21:10: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 : (1)1619147", "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" : 12.070, "sum" : 800.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:31]POST & json_proto [21:10:31]process_json_proto [21:10:31]json parsed OK: [21:10:31]protocol is kg_v1.0 [21:10:31]action value=close_receipt [21:10:31]process_action close_receipt [21:10:31]cmd_close_receipt [21:10:31]MH_GetDate [21:10:31]Write to MH i2c: F0 00 00 D3 1D DF [21:10:31]Write i2c OK [21:10:31]MH_I2C_Read... [21:10:31]Read from MH i2c: F0 [21:10:31]MH_I2C_Read... [21:10:31]Read from MH i2c: F0 09 00 [21:10:31]MH_I2C_Read... [21:10:31]Read from MH i2c: F0 09 00 D3 1D 00 4B ED 92 66 1B 28 2A 66 EB [21:10:31]GetLastDocTimeStamp 1720904684 [21:10:31]current date 1720905035 [21:10:31]FM_GetShiftState [21:10:31]SAM_PROTO_GetShiftState [21:10:31]wFMCommunicate request_size=4 [21:10:31]MH_SAM_APDU [21:10:31]CAPDU: 80 13 01 00 [21:10:31]Write to MH i2c: E2 08 00 D4 1D 80 13 01 00 00 00 00 00 6E [21:10:31]Write i2c OK [21:10:31]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 0E 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 0E 00 D4 1D 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 F9 [21:10:32]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:10:32]wFMCommunicate OK [21:10:32]SAM_PROTO_GetShiftState done [21:10:32]FM_GetShiftState done [21:10:32]opened in 1720829379 [21:10:32]opened+sec_in_day 1720915779 [21:10:32]quantity*price = 80024 [21:10:32]sum+1 = 80025 [21:10:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 126 13.07.2024 21:10 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1957 ФПД: 15222151996363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211035&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1957&fm=15222151996363&tin=02508201610067®Number=0000000000177495&sum=80000 [21:10:33]StoreToDocumentArchive [21:10:33]shift 24 fd 1957 [21:10:33]save to /storage/0024/doc_00001957 [21:10:33]save last doc name /storage/0024/doc_00001957 to /storage/kkm_last_doc_name [21:10:33]save OK [21:10:33]Clear old archive folders... [21:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:33]tlvbuf is B6F5EB10 [21:10:33]SAM_PROTO_ClearQueue [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 09 00 00 [21:10:33]Write to MH i2c: E2 08 00 E1 1D 80 09 00 00 00 00 00 00 70 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]SAM_PROTO_ClearQueue done [21:10:33]KKMCreateOFDPacket [21:10:33]OFDProtocolAddRootSTLVToBuf [21:10:33]FM_MakeSignedData [21:10:33]FM_MakeSignedData [21:10:33]SAM_PROTO_SignData [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 01 02 [21:10:33]Write to MH i2c: E2 08 00 E2 1D 80 0D 01 02 00 00 00 00 78 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 E2 1D 00 90 00 73 [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]wFMCommunicate request_size=255 [21:10:33]MH_SAM_APDU [21:10:33]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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4B ED 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 0D [21:10:33]Write to MH i2c: E2 02 01 E3 1D 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4B ED 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 0D 00 00 BC [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 E3 1D 00 90 00 74 [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]wFMCommunicate request_size=10 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 02 02 05 D8 2E F6 63 CB [21:10:33]Write to MH i2c: E2 0D 00 E4 1D 80 0D 02 02 05 00 D8 2E F6 63 CB 00 00 AF [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 E4 1D 00 90 00 75 [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 03 02 [21:10:33]Write to MH i2c: E2 08 00 E5 1D 80 0D 03 02 00 00 00 00 7D [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 0B 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 0B 00 E5 1D 00 53 10 8D C3 15 B9 A6 E8 90 00 8D [21:10:33]RAPDU: 53 10 8D C3 15 B9 A6 E8 90 00 [21:10:33]wFMCommunicate OK [21:10:33]SAM_PROTO_SignData done [21:10:33]FM_MakeSignedData done [21:10:33]CreateOFDProtocolMessage [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 11 00 00 [21:10:33]Write to MH i2c: E2 08 00 E6 1D 80 11 00 00 00 00 00 00 7D [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 17 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 17 00 E6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D3 [21:10: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:10:33]wFMCommunicate OK [21:10:33]CreateOFDProtocolMessage done [21:10:33]OFDSenderStorePacket 1957 [21:10:33]StoreOFDPacket docnum=1957 [21:10: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 0F 01 00 00 2F FC 07 01 1A 19 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4B ED 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 0D D8 2E F6 63 CB 53 10 8D C3 15 B9 A6 E8 [21:10:33]CheckFolder [21:10:33]dirname=/storage/ofd_packets [21:10:33]CheckFolder done [21:10:33]ProducePacketName [21:10:33]name=ofd_packets/00001957 [21:10:33]NVStorageSaveData ofd_packets/00001957 [21:10:33]File name is /storage/ofd_packets/00001957 [21:10:33]Write 301 bytes [21:10:33]NVStorageSaveData done [21:10:33]OFDSenderStorePacket done [21:10:33]KKMCreateOFDPacket done [21:10:33]NVStorageSaveData kkm_last_timestamp [21:10:33]File name is /storage/kkm_last_timestamp [21:10:33]Write 4 bytes [21:10:33]NVStorageSaveData done [21:10:33]ExternCall_PrintAddStr [21:10:33]wPrintStart [21:10:33]Write to MH i2c: 01 00 00 E7 1D 04 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 07 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 07 00 E7 1D 00 00 00 00 00 FF 0F 19 [21:10:33]RasterBufferAndPrint [21:10:33]line Счет N : (1)1619147 [21:10:33]line ИНН: 02508201610067 [21:10:33]line Контрольно-Кассовый Чек [21:10:33]line ПРОДАЖА [21:10:33]line ТРК (МРК, ГНК) : 43 [21:10:33]line Товар: 2710124130 [21:10:33]line Аи-92-К-5 [21:10:33]line 12.070 * 66.30 [21:10:33]line = 800.24 [21:10:33]line НДС 12% НСП 1% [21:10:33]line > о реализуемом товаре [21:10:33]line ОКРУГЛЕНИЕ: -0.24 [21:10:33]line ИТОГО: 800.00 [21:10:33]line Внесено: 800.00 [21:10:33]line СДАЧА: 0.00 [21:10:33]line НСП 1% : 7.08 [21:10:33]line НДС 12% : 84.98 [21:10:33]line Наличными: 800.00 [21:10:33]line Безнал.: 0.00 [21:10:33]line Место: АЗС № 76 "Партнер Нефть" [21:10:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:10:33]line СНО: Общий режим [21:10:33]line Чек 126 13.07.2024 21:10 [21:10:33]line Смена: 24 ФФД: 1.0 [21:10:33]line ЗНМ: 0300000124 [21:10:33]line РНМ: 0000000000177495 [21:10:33]line Версия ККМ: 001 [21:10:33]line ФМ: 0000000002098592 [21:10:33]line ФД: 1957 [21:10:33]line ФПД: 15222151996363 [21:10:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211035&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1957&fm=15222151996363&tin=02508201610067®Number=0000000000177495&sum=80000 [21:10:34]OFD Sender: Processing packet 1957 [packets to send 1, broken 0] [21:10:34]ProducePacketName [21:10:34]name=ofd_packets/00001957 [21:10:34]OFD Sender: To server: pG, [21:10:34]CommunicateWithHost lk.salyk.kg:30040 [21:10:34]ConnectInit lk.salyk.kg [21:10:34]written 0, free lines is 4095 [21:10:34]Connected sock=10 [21:10: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 0F 01 00 00 2F FC 07 01 1A 19 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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4B ED 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 0D D8 2E F6 63 CB 53 10 8D C3 15 B9 A6 E8 [21:10: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 65 86 47 00 A1 D0 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 07 00 00 F4 03 04 00 80 98 92 66 B6 04 01 00 00 1F 4C C2 BA 4A 44 8B BE [21:10:34]CommunicateWithHost err = 0 [21:10:34]CheckOFDResponse [21:10:34]1017 (14) - 77093643461234 [21:10:34]1041 (16) - 0000000002098592 [21:10:34]1040 (4) - 1957 [21:10:34]1012 (4) - 13.07.2024 15:08 [21:10:34]1206 (1) - 0 [21:10:34]OFD Sender: Remove packet 1957 [21:10:34]ProducePacketName [21:10:34]name=ofd_packets/00001957 [21:10:34]NVStorageDeleteData [21:10:34]Write to MH i2c: 01 00 00 12 1E 30 [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 07 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 E8 0C 2B [21:10:34]RasterBufferAndPrint [21:10:34]line [21:10:34]line [21:10:34]line [21:10:34]line [21:10:34]line [21:10:34]written 0, free lines is 3310 [21:10:34]MH_Cut [21:10:34]Write to MH i2c: D1 01 00 19 1E 01 09 [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: D1 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: D1 01 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: D1 01 00 19 1E 00 08 [21:10:34]Write to MH i2c: 01 00 00 1A 1E 38 [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]OFD Sender: No OFD packet to send [21:10:35]*** Cut start [21:10:35]*** Partial cut [21:10:35]*** CUTSNS_PIN = 1 [21:10:35]*** CUTSNS_PIN = 0 [21:10:35]*** Brake cut motor [21:10:35]Read from MH i2c: 01 [21:10:35]MH_I2C_Read... [21:10:35]*** Stop cut motor [21:10:35]*** Cut end [21:10:35]Read from MH i2c: 01 07 00 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [21:10:35]process_action close_receipt done [21:10:35]requested_data is exist [21:10:35]produce_requested_data [21:10:35]requested_item fm.sn is exist - process it [21:10:35]wFMCommunicate request_size=4 [21:10:35]MH_SAM_APDU [21:10:35]CAPDU: 80 11 00 00 [21:10:35]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [21:10:35]Write i2c OK [21:10:35]MH_I2C_Read... [21:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:35]Read from MH i2c: E2 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: E2 17 00 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: E2 17 00 1B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 09 [21:10: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:10:35]wFMCommunicate OK [21:10:35]requested_item fd.num is exist - process it [21:10:35]SAM_PROTO_GetFieldsCounters [21:10:35]wFMCommunicate request_size=4 [21:10:35]MH_SAM_APDU [21:10:35]CAPDU: 80 13 00 00 [21:10:35]Write to MH i2c: E2 08 00 1C 1E 80 13 00 00 00 00 00 00 B6 [21:10:35]Write i2c OK [21:10:35]MH_I2C_Read... [21:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:36]Read from MH i2c: E2 [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: E2 62 00 [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: E2 62 00 1C 1E 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:10: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 A5 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:36]wFMCommunicate OK [21:10:36]SAM_PROTO_GetFieldsCounters done [21:10:36]requested_item shift.num is exist - process it [21:10:36]requested_item shift.opened is exist - process it [21:10:36]req_shift_opened [21:10:36]FM_GetShiftState [21:10:36]SAM_PROTO_GetShiftState [21:10:36]wFMCommunicate request_size=4 [21:10:36]MH_SAM_APDU [21:10:36]CAPDU: 80 13 01 00 [21:10:36]Write to MH i2c: E2 08 00 1D 1E 80 13 01 00 00 00 00 00 B8 [21:10:36]Write i2c OK [21:10:36]MH_I2C_Read... [21:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:36]Read from MH i2c: E2 [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: E2 0E 00 [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: E2 0E 00 1D 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 43 [21:10:36]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:10:36]wFMCommunicate OK [21:10:36]SAM_PROTO_GetShiftState done [21:10:36]FM_GetShiftState done [21:10:36]req_shift_opened done [21:10:36]requested_item shift.open_date is exist - process it [21:10:36]req_shift_open_date [21:10:36]req_shift_open_date done [21:10:36]produce_requested_data done [21:10:36]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1957,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:10:36]process_action_free close_receipt [21:10:36]json_value_free [21:10:36]json_value_free done [21:10:36]process_json_proto returns [21:10:36]Send response to host [21:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1957,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:10:36]free response buf [21:10:36]execute_script done [21:10:36]execute_script returns [21:10:36]free content buf [21:10:36]Sock 8.Close socket [21:10:36]Sock 8.Thread stoped [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:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:53]accept exits with 9 [21:21:53]New connection [21:21:53]New thread 3066977636 created [21:21:53]Thread 3066834276 joined [21:21:53]Waiting for new connection... [21:21:53] Sock 9.Parse request [21:21:53]Sock 9.Check first char [21:21:53]Sock 9.First char is OK [21:21:53]request: POST /json_proto HTTP/1.0 [21:21:53]Method: POST [21:21:53]URL: /json_proto [21:21:53]Method is POST - this is cgi request [21:21:53]url: /json_proto [21:21:53]query_string will be loaded in cgi processing [21:21:53]execute_cgi json_proto POST (null) [21:21:53]execute_cgi path=json_proto method=POST [21:21:53]POST find Content-Length [21:21:53]Host: 172.17.35.133:8080 [21:21:53]Content-Length: 844 [21:21:53]Content-Type: application/json [21:21:53] [21:21:53]POST finish read [21:21:53]Found Content-Length = 844 [21:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619148", "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" : 15.090, "sum" : 1000.47, "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" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:53]execute_script... [21:21: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 : (1)1619148", "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" : 15.090, "sum" : 1000.47, "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" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:53]POST & json_proto [21:21:53]process_json_proto [21:21:53]json parsed OK: [21:21:53]protocol is kg_v1.0 [21:21:53]action value=close_receipt [21:21:53]process_action close_receipt [21:21:53]cmd_close_receipt [21:21:53]MH_GetDate [21:21:53]Write to MH i2c: F0 00 00 1E 1E 2B [21:21:53]Write i2c OK [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: F0 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: F0 09 00 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: F0 09 00 1E 1E 00 F4 EF 92 66 1B 28 2A 66 E2 [21:21:53]GetLastDocTimeStamp 1720905035 [21:21:53]current date 1720905716 [21:21:53]FM_GetShiftState [21:21:53]SAM_PROTO_GetShiftState [21:21:53]wFMCommunicate request_size=4 [21:21:53]MH_SAM_APDU [21:21:53]CAPDU: 80 13 01 00 [21:21:53]Write to MH i2c: E2 08 00 1F 1E 80 13 01 00 00 00 00 00 BA [21:21:53]Write i2c OK [21:21:53]MH_I2C_Read... [21:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:53]Read from MH i2c: E2 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: E2 0E 00 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: E2 0E 00 1F 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 45 [21:21:53]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:21:53]wFMCommunicate OK [21:21:53]SAM_PROTO_GetShiftState done [21:21:53]FM_GetShiftState done [21:21:53]opened in 1720829379 [21:21:53]opened+sec_in_day 1720915779 [21:21:53]quantity*price = 100046 [21:21:53]sum+1 = 100048 [21:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 127 13.07.2024 21:21 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1958 ФПД: 192470083977963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212156&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1958&fm=192470083977963&tin=02508201610067®Number=0000000000177495&sum=100047 [21:21:54]StoreToDocumentArchive [21:21:54]shift 24 fd 1958 [21:21:54]save to /storage/0024/doc_00001958 [21:21:54]save last doc name /storage/0024/doc_00001958 to /storage/kkm_last_doc_name [21:21:54]save OK [21:21:54]Clear old archive folders... [21:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:54]tlvbuf is 01007AB0 [21:21:54]SAM_PROTO_ClearQueue [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 09 00 00 [21:21:54]Write to MH i2c: E2 08 00 2C 1E 80 09 00 00 00 00 00 00 BC [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:54]Read from MH i2c: E2 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 03 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [21:21:54]RAPDU: 90 00 [21:21:54]wFMCommunicate OK [21:21:54]SAM_PROTO_ClearQueue done [21:21:54]KKMCreateOFDPacket [21:21:54]OFDProtocolAddRootSTLVToBuf [21:21:54]FM_MakeSignedData [21:21:54]FM_MakeSignedData [21:21:54]SAM_PROTO_SignData [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 0D 01 02 [21:21:54]Write to MH i2c: E2 08 00 2D 1E 80 0D 01 02 00 00 00 00 C4 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:54]Read from MH i2c: E2 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 03 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [21:21:54]RAPDU: 90 00 [21:21:54]wFMCommunicate OK [21:21:54]wFMCommunicate request_size=255 [21:21:54]MH_SAM_APDU [21:21:54]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F4 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 AF [21:21:54]Write to MH i2c: E2 02 01 2E 1E 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F4 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 AF 00 00 F5 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [21:21:55]RAPDU: 90 00 [21:21:55]wFMCommunicate OK [21:21:55]wFMCommunicate request_size=10 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 0D 02 02 05 0C EE FC 42 EB [21:21:55]Write to MH i2c: E2 0D 00 2F 1E 80 0D 02 02 05 00 0C EE FC 42 EB 00 00 F4 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [21:21:55]RAPDU: 90 00 [21:21:55]wFMCommunicate OK [21:21:55]wFMCommunicate request_size=4 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 0D 03 02 [21:21:55]Write to MH i2c: E2 08 00 30 1E 80 0D 03 02 00 00 00 00 C9 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 0B 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 0B 00 30 1E 00 D0 52 5D 05 D5 D3 2F EF 90 00 14 [21:21:55]RAPDU: D0 52 5D 05 D5 D3 2F EF 90 00 [21:21:55]wFMCommunicate OK [21:21:55]SAM_PROTO_SignData done [21:21:55]FM_MakeSignedData done [21:21:55]CreateOFDProtocolMessage [21:21:55]wFMCommunicate request_size=4 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 11 00 00 [21:21:55]Write to MH i2c: E2 08 00 31 1E 80 11 00 00 00 00 00 00 C9 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 17 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 17 00 31 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1F [21:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:21:55]wFMCommunicate OK [21:21:55]CreateOFDProtocolMessage done [21:21:55]OFDSenderStorePacket 1958 [21:21:55]StoreOFDPacket docnum=1958 [21:21: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 0F 01 00 00 5F 85 07 01 66 32 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F4 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 AF 0C EE FC 42 EB D0 52 5D 05 D5 D3 2F EF [21:21:55]CheckFolder [21:21:55]dirname=/storage/ofd_packets [21:21:55]CheckFolder done [21:21:55]ProducePacketName [21:21:55]name=ofd_packets/00001958 [21:21:55]NVStorageSaveData ofd_packets/00001958 [21:21:55]File name is /storage/ofd_packets/00001958 [21:21:55]Write 301 bytes [21:21:55]NVStorageSaveData done [21:21:55]OFDSenderStorePacket done [21:21:55]KKMCreateOFDPacket done [21:21:55]NVStorageSaveData kkm_last_timestamp [21:21:55]File name is /storage/kkm_last_timestamp [21:21:55]Write 4 bytes [21:21:55]NVStorageSaveData done [21:21:55]ExternCall_PrintAddStr [21:21:55]wPrintStart [21:21:55]Write to MH i2c: 01 00 00 32 1E 50 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: 01 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: 01 07 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [21:21:55]RasterBufferAndPrint [21:21:55]line Счет N : (1)1619148 [21:21:55]line ИНН: 02508201610067 [21:21:55]line Контрольно-Кассовый Чек [21:21:55]line ПРОДАЖА [21:21:55]line ТРК (МРК, ГНК) : 43 [21:21:55]line Товар: 2710124130 [21:21:55]line Аи-92-К-5 [21:21:55]line 15.090 * 66.30 [21:21:55]line = 1000.47 [21:21:55]line НДС 12% НСП 1% [21:21:55]line > о реализуемом товаре [21:21:55]line ИТОГО: 1000.47 [21:21:55]line НСП 1% : 8.85 [21:21:55]line НДС 12% : 106.24 [21:21:55]line Наличными: 0.00 [21:21:55]line Безнал.: 1000.47 [21:21:55]line Место: АЗС № 76 "Партнер Нефть" [21:21:55]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:21:55]line СНО: Общий режим [21:21:55]line Чек 127 13.07.2024 21:21 [21:21:55]line Смена: 24 ФФД: 1.0 [21:21:55]line ЗНМ: 0300000124 [21:21:55]line РНМ: 0000000000177495 [21:21:55]line Версия ККМ: 001 [21:21:55]line Платежная система: АКБ Кыргызстан [21:21:55]line ФМ: 0000000002098592 [21:21:55]line ФД: 1958 [21:21:55]line ФПД: 192470083977963 [21:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212156&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1958&fm=192470083977963&tin=02508201610067®Number=0000000000177495&sum=100047 [21:21:55]OFD Sender: Processing packet 1958 [packets to send 1, broken 0] [21:21:55]ProducePacketName [21:21:55]name=ofd_packets/00001958 [21:21:55]OFD Sender: To server: pG, [21:21:55]CommunicateWithHost lk.salyk.kg:30040 [21:21:55]ConnectInit lk.salyk.kg [21:21:55]written 0, free lines is 4095 [21:21:55]Connected sock=10 [21:21: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 0F 01 00 00 5F 85 07 01 66 32 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F4 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 AF 0C EE FC 42 EB D0 52 5D 05 D5 D3 2F EF [21:21: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 2F D8 47 00 47 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 A6 07 00 00 F4 03 04 00 2A 9B 92 66 B6 04 01 00 00 B8 0D 58 62 26 03 32 CD [21:21:55]CommunicateWithHost err = 0 [21:21:55]CheckOFDResponse [21:21:55]1017 (14) - 77093643461234 [21:21:55]1041 (16) - 0000000002098592 [21:21:55]1040 (4) - 1958 [21:21:55]1012 (4) - 13.07.2024 15:20 [21:21:55]1206 (1) - 0 [21:21:55]OFD Sender: Remove packet 1958 [21:21:55]ProducePacketName [21:21:55]name=ofd_packets/00001958 [21:21:55]NVStorageDeleteData [21:21:56]Write to MH i2c: 01 00 00 5C 1E 7A [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 07 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 0F 0D 9D [21:21:56]RasterBufferAndPrint [21:21:56]line [21:21:56]line [21:21:56]line [21:21:56]line [21:21:56]line [21:21:56]written 0, free lines is 3349 [21:21:56]MH_Cut [21:21:56]Write to MH i2c: D1 01 00 63 1E 01 53 [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: D1 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: D1 01 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: D1 01 00 63 1E 00 52 [21:21:56]Write to MH i2c: 01 00 00 64 1E 82 [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]OFD Sender: No OFD packet to send [21:21:56]*** Cut start [21:21:56]*** Partial cut [21:21:56]*** CUTSNS_PIN = 1 [21:21:56]*** CUTSNS_PIN = 0 [21:21:57]*** Brake cut motor [21:21:57]Read from MH i2c: 01 [21:21:57]MH_I2C_Read... [21:21:57]*** Stop cut motor [21:21:57]*** Cut end [21:21:57]Read from MH i2c: 01 07 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: 01 07 00 64 1E 00 00 00 00 00 FF 0F 97 [21:21:57]process_action close_receipt done [21:21:57]requested_data is exist [21:21:57]produce_requested_data [21:21:57]requested_item fm.sn is exist - process it [21:21:57]wFMCommunicate request_size=4 [21:21:57]MH_SAM_APDU [21:21:57]CAPDU: 80 11 00 00 [21:21:57]Write to MH i2c: E2 08 00 65 1E 80 11 00 00 00 00 00 00 FD [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:57]Read from MH i2c: E2 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: E2 17 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: E2 17 00 65 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 53 [21:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:21:57]wFMCommunicate OK [21:21:57]requested_item fd.num is exist - process it [21:21:57]SAM_PROTO_GetFieldsCounters [21:21:57]wFMCommunicate request_size=4 [21:21:57]MH_SAM_APDU [21:21:57]CAPDU: 80 13 00 00 [21:21:57]Write to MH i2c: E2 08 00 66 1E 80 13 00 00 00 00 00 00 00 [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:57]Read from MH i2c: E2 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: E2 62 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: E2 62 00 66 1E 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [21:21: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 A6 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:57]wFMCommunicate OK [21:21:57]SAM_PROTO_GetFieldsCounters done [21:21:57]requested_item shift.num is exist - process it [21:21:57]requested_item shift.opened is exist - process it [21:21:57]req_shift_opened [21:21:57]FM_GetShiftState [21:21:57]SAM_PROTO_GetShiftState [21:21:57]wFMCommunicate request_size=4 [21:21:57]MH_SAM_APDU [21:21:57]CAPDU: 80 13 01 00 [21:21:57]Write to MH i2c: E2 08 00 67 1E 80 13 01 00 00 00 00 00 02 [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:57]Read from MH i2c: E2 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: E2 0E 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: E2 0E 00 67 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8D [21:21:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:21:57]wFMCommunicate OK [21:21:57]SAM_PROTO_GetShiftState done [21:21:57]FM_GetShiftState done [21:21:57]req_shift_opened done [21:21:57]requested_item shift.open_date is exist - process it [21:21:57]req_shift_open_date [21:21:57]req_shift_open_date done [21:21:57]produce_requested_data done [21:21:57]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1958,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:21:57]process_action_free close_receipt [21:21:57]json_value_free [21:21:57]json_value_free done [21:21:57]process_json_proto returns [21:21:57]Send response to host [21:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1958,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:21:57]free response buf [21:21:57]execute_script done [21:21:57]execute_script returns [21:21:57]free content buf [21:21:57]Sock 9.Close socket [21:21:57]Sock 9.Thread stoped [21:21:57]accept exits with 8 [21:21:57]New connection [21:21:57]New thread 3066834276 created [21:21:57]Thread 3066977636 joined [21:21:57]Waiting for new connection... [21:21:57] Sock 8.Parse request [21:21:57]Sock 8.Check first char [21:21:57]Sock 8.First char is OK [21:21:57]request: POST /json_proto HTTP/1.0 [21:21:57]Method: POST [21:21:57]URL: /json_proto [21:21:57]Method is POST - this is cgi request [21:21:57]url: /json_proto [21:21:57]query_string will be loaded in cgi processing [21:21:57]execute_cgi json_proto POST (null) [21:21:57]execute_cgi path=json_proto method=POST [21:21:57]POST find Content-Length [21:21:57]Host: 172.17.35.133:8080 [21:21:57]Content-Length: 678 [21:21:57]Content-Type: application/json [21:21:57] [21:21:57]POST finish read [21:21:57]Found Content-Length = 678 [21:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619149", "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" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:57]execute_script... [21:21: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 : (1)1619149", "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" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:57]POST & json_proto [21:21:57]process_json_proto [21:21:57]json parsed OK: [21:21:57]protocol is kg_v1.0 [21:21:57]action value=close_receipt [21:21:57]process_action close_receipt [21:21:57]cmd_close_receipt [21:21:57]MH_GetDate [21:21:57]Write to MH i2c: F0 00 00 68 1E 75 [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: F0 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: F0 09 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: F0 09 00 68 1E 00 F9 EF 92 66 1B 28 2A 66 31 [21:21:57]GetLastDocTimeStamp 1720905716 [21:21:57]current date 1720905721 [21:21:57]FM_GetShiftState [21:21:57]SAM_PROTO_GetShiftState [21:21:57]wFMCommunicate request_size=4 [21:21:57]MH_SAM_APDU [21:21:57]CAPDU: 80 13 01 00 [21:21:57]Write to MH i2c: E2 08 00 69 1E 80 13 01 00 00 00 00 00 04 [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:58]Read from MH i2c: E2 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 0E 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 0E 00 69 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 8F [21:21:58]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:21:58]wFMCommunicate OK [21:21:58]SAM_PROTO_GetShiftState done [21:21:58]FM_GetShiftState done [21:21:58]opened in 1720829379 [21:21:58]opened+sec_in_day 1720915779 [21:21:58]quantity*price = 40045 [21:21:58]sum+1 = 40046 [21:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 128 13.07.2024 21:22 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1959 ФПД: 38128173706230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212201&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1959&fm=38128173706230&tin=02508201610067®Number=0000000000177495&sum=40000 [21:21:58]StoreToDocumentArchive [21:21:58]shift 24 fd 1959 [21:21:58]save to /storage/0024/doc_00001959 [21:21:58]save last doc name /storage/0024/doc_00001959 to /storage/kkm_last_doc_name [21:21:58]save OK [21:21:58]Clear old archive folders... [21:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:58]tlvbuf is 01084610 [21:21:58]SAM_PROTO_ClearQueue [21:21:58]wFMCommunicate request_size=4 [21:21:58]MH_SAM_APDU [21:21:58]CAPDU: 80 09 00 00 [21:21:58]Write to MH i2c: E2 08 00 76 1E 80 09 00 00 00 00 00 00 06 [21:21:58]Write i2c OK [21:21:58]MH_I2C_Read... [21:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:58]Read from MH i2c: E2 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 03 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 03 00 76 1E 00 90 00 08 [21:21:58]RAPDU: 90 00 [21:21:58]wFMCommunicate OK [21:21:58]SAM_PROTO_ClearQueue done [21:21:58]KKMCreateOFDPacket [21:21:58]OFDProtocolAddRootSTLVToBuf [21:21:58]FM_MakeSignedData [21:21:58]FM_MakeSignedData [21:21:58]SAM_PROTO_SignData [21:21:58]wFMCommunicate request_size=4 [21:21:58]MH_SAM_APDU [21:21:58]CAPDU: 80 0D 01 02 [21:21:58]Write to MH i2c: E2 08 00 77 1E 80 0D 01 02 00 00 00 00 0E [21:21:58]Write i2c OK [21:21:58]MH_I2C_Read... [21:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:58]Read from MH i2c: E2 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 03 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [21:21:58]RAPDU: 90 00 [21:21:58]wFMCommunicate OK [21:21:58]wFMCommunicate request_size=255 [21:21:58]MH_SAM_APDU [21:21:58]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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F9 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 22 [21:21:59]Write to MH i2c: E2 02 01 78 1E 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F9 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 22 00 00 EA [21:21:59]Write i2c OK [21:21:59]MH_I2C_Read... [21:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:59]Read from MH i2c: E2 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: E2 03 00 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [21:21:59]RAPDU: 90 00 [21:21:59]wFMCommunicate OK [21:21:59]wFMCommunicate request_size=10 [21:21:59]MH_SAM_APDU [21:21:59]CAPDU: 80 0D 02 02 05 AD 68 3F EB F6 [21:21:59]Write to MH i2c: E2 0D 00 79 1E 80 0D 02 02 05 00 AD 68 3F EB F6 00 00 50 [21:21:59]Write i2c OK [21:21:59]MH_I2C_Read... [21:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:59]Read from MH i2c: E2 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: E2 03 00 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [21:21:59]RAPDU: 90 00 [21:21:59]wFMCommunicate OK [21:21:59]wFMCommunicate request_size=4 [21:21:59]MH_SAM_APDU [21:21:59]CAPDU: 80 0D 03 02 [21:21:59]Write to MH i2c: E2 08 00 7A 1E 80 0D 03 02 00 00 00 00 13 [21:21:59]Write i2c OK [21:21:59]MH_I2C_Read... [21:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:00]Read from MH i2c: E2 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 0B 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 0B 00 7A 1E 00 4D 5A 03 08 52 1D C2 B7 90 00 AE [21:22:00]RAPDU: 4D 5A 03 08 52 1D C2 B7 90 00 [21:22:00]wFMCommunicate OK [21:22:00]SAM_PROTO_SignData done [21:22:00]FM_MakeSignedData done [21:22:00]CreateOFDProtocolMessage [21:22:00]wFMCommunicate request_size=4 [21:22:00]MH_SAM_APDU [21:22:00]CAPDU: 80 11 00 00 [21:22:00]Write to MH i2c: E2 08 00 7B 1E 80 11 00 00 00 00 00 00 13 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:00]Read from MH i2c: E2 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 17 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 17 00 7B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 69 [21:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:22:00]wFMCommunicate OK [21:22:00]CreateOFDProtocolMessage done [21:22:00]OFDSenderStorePacket 1959 [21:22:00]StoreOFDPacket docnum=1959 [21:22: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 0F 01 00 00 12 A1 07 01 F6 25 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F9 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 22 AD 68 3F EB F6 4D 5A 03 08 52 1D C2 B7 [21:22:00]CheckFolder [21:22:00]dirname=/storage/ofd_packets [21:22:00]CheckFolder done [21:22:00]ProducePacketName [21:22:00]name=ofd_packets/00001959 [21:22:00]NVStorageSaveData ofd_packets/00001959 [21:22:00]File name is /storage/ofd_packets/00001959 [21:22:00]Write 301 bytes [21:22:00]NVStorageSaveData done [21:22:00]OFDSenderStorePacket done [21:22:00]KKMCreateOFDPacket done [21:22:00]NVStorageSaveData kkm_last_timestamp [21:22:00]File name is /storage/kkm_last_timestamp [21:22:00]Write 4 bytes [21:22:00]NVStorageSaveData done [21:22:00]ExternCall_PrintAddStr [21:22:00]wPrintStart [21:22:00]Write to MH i2c: 01 00 00 7C 1E 9A [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: 01 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: 01 07 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: 01 07 00 7C 1E 00 00 00 00 00 FF 0F AF [21:22:00]RasterBufferAndPrint [21:22:00]line Счет N : (1)1619149 [21:22:00]line ИНН: 02508201610067 [21:22:00]line Контрольно-Кассовый Чек [21:22:00]line ПРОДАЖА [21:22:00]line ТРК (МРК, ГНК) : 33 [21:22:00]line Товар: 2710124130 [21:22:00]line Аи-92-К-5 [21:22:00]line 6.040 * 66.30 [21:22:00]line = 400.45 [21:22:00]line НДС 12% НСП 1% [21:22:00]line > о реализуемом товаре [21:22:00]line ОКРУГЛЕНИЕ: -0.45 [21:22:00]line ИТОГО: 400.00 [21:22:00]line Внесено: 400.00 [21:22:00]line СДАЧА: 0.00 [21:22:00]line НСП 1% : 3.54 [21:22:00]line НДС 12% : 42.53 [21:22:00]line Наличными: 400.00 [21:22:00]line Безнал.: 0.00 [21:22:00]line Место: АЗС № 76 "Партнер Нефть" [21:22:00]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:22:00]line СНО: Общий режим [21:22:00]line Чек 128 13.07.2024 21:22 [21:22:00]line Смена: 24 ФФД: 1.0 [21:22:00]line ЗНМ: 0300000124 [21:22:00]line РНМ: 0000000000177495 [21:22:00]line Версия ККМ: 001 [21:22:00]line ФМ: 0000000002098592 [21:22:00]line ФД: 1959 [21:22:00]line ФПД: 38128173706230 [21:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212201&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1959&fm=38128173706230&tin=02508201610067®Number=0000000000177495&sum=40000 [21:22:00]OFD Sender: Processing packet 1959 [packets to send 1, broken 0] [21:22:00]ProducePacketName [21:22:00]name=ofd_packets/00001959 [21:22:00]written 0, free lines is 4095 [21:22:00]OFD Sender: To server: pG, [21:22:00]CommunicateWithHost lk.salyk.kg:30040 [21:22:00]ConnectInit lk.salyk.kg [21:22:00]Connected sock=10 [21:22: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 0F 01 00 00 12 A1 07 01 F6 25 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F9 EF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 22 AD 68 3F EB F6 4D 5A 03 08 52 1D C2 B7 [21:22: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 A2 8D 47 00 72 50 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 07 00 00 F4 03 04 00 2E 9B 92 66 B6 04 01 00 00 EB E2 99 53 21 82 DD F8 [21:22:00]CommunicateWithHost err = 0 [21:22:00]CheckOFDResponse [21:22:00]1017 (14) - 77093643461234 [21:22:00]1041 (16) - 0000000002098592 [21:22:00]1040 (4) - 1959 [21:22:00]1012 (4) - 13.07.2024 15:20 [21:22:00]1206 (1) - 0 [21:22:00]OFD Sender: Remove packet 1959 [21:22:00]ProducePacketName [21:22:00]name=ofd_packets/00001959 [21:22:00]NVStorageDeleteData [21:22:00]Write to MH i2c: 01 00 00 A7 1E C5 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: 01 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: 01 07 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 E3 0C BB [21:22:00]RasterBufferAndPrint [21:22:00]line [21:22:00]line [21:22:00]line [21:22:00]line [21:22:00]line [21:22:00]written 0, free lines is 3311 [21:22:00]MH_Cut [21:22:00]Write to MH i2c: D1 01 00 AE 1E 01 9E [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: D1 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: D1 01 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: D1 01 00 AE 1E 00 9D [21:22:00]Write to MH i2c: 01 00 00 AF 1E CD [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:01]OFD Sender: No OFD packet to send [21:22:01]*** Cut start [21:22:01]*** Partial cut [21:22:01]*** CUTSNS_PIN = 1 [21:22:01]*** CUTSNS_PIN = 0 [21:22:01]*** Brake cut motor [21:22:02]Read from MH i2c: 01 [21:22:02]MH_I2C_Read... [21:22:02]*** Stop cut motor [21:22:02]*** Cut end [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [21:22:02]process_action close_receipt done [21:22:02]requested_data is exist [21:22:02]produce_requested_data [21:22:02]requested_item fm.sn is exist - process it [21:22:02]wFMCommunicate request_size=4 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 11 00 00 [21:22:02]Write to MH i2c: E2 08 00 B0 1E 80 11 00 00 00 00 00 00 48 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 17 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 17 00 B0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9E [21:22: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:22:02]wFMCommunicate OK [21:22:02]requested_item fd.num is exist - process it [21:22:02]SAM_PROTO_GetFieldsCounters [21:22:02]wFMCommunicate request_size=4 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 13 00 00 [21:22:02]Write to MH i2c: E2 08 00 B1 1E 80 13 00 00 00 00 00 00 4B [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 62 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 62 00 B1 1E 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [21:22: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 A7 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:02]wFMCommunicate OK [21:22:02]SAM_PROTO_GetFieldsCounters done [21:22:02]requested_item shift.num is exist - process it [21:22:02]requested_item shift.opened is exist - process it [21:22:02]req_shift_opened [21:22:02]FM_GetShiftState [21:22:02]SAM_PROTO_GetShiftState [21:22:02]wFMCommunicate request_size=4 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 13 01 00 [21:22:02]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 0E 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 0E 00 B2 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 D8 [21:22:02]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:22:02]wFMCommunicate OK [21:22:02]SAM_PROTO_GetShiftState done [21:22:02]FM_GetShiftState done [21:22:02]req_shift_opened done [21:22:02]requested_item shift.open_date is exist - process it [21:22:02]req_shift_open_date [21:22:02]req_shift_open_date done [21:22:02]produce_requested_data done [21:22:02]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1959,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:22:02]process_action_free close_receipt [21:22:02]json_value_free [21:22:02]json_value_free done [21:22:02]process_json_proto returns [21:22:02]Send response to host [21:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1959,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:22:02]free response buf [21:22:02]execute_script done [21:22:02]execute_script returns [21:22:02]free content buf [21:22:02]Sock 8.Close socket [21:22:02]Sock 8.Thread stoped [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:20]accept exits with 9 [21:25:20]New connection [21:25:20]New thread 3066977636 created [21:25:20]Thread 3066834276 joined [21:25:20]Waiting for new connection... [21:25:20] Sock 9.Parse request [21:25:20]Sock 9.Check first char [21:25:20]Sock 9.First char is OK [21:25:20]request: POST /json_proto HTTP/1.0 [21:25:20]Method: POST [21:25:20]URL: /json_proto [21:25:20]Method is POST - this is cgi request [21:25:20]url: /json_proto [21:25:20]query_string will be loaded in cgi processing [21:25:20]execute_cgi json_proto POST (null) [21:25:20]execute_cgi path=json_proto method=POST [21:25:20]POST find Content-Length [21:25:20]Host: 172.17.35.133:8080 [21:25:20]Content-Length: 678 [21:25:20]Content-Type: application/json [21:25:20] [21:25:20]POST finish read [21:25:20]Found Content-Length = 678 [21:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619150", "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" : 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" ] } } [21:25:20]execute_script... [21:25: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 : (1)1619150", "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" : 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" ] } } [21:25:20]POST & json_proto [21:25:20]process_json_proto [21:25:20]json parsed OK: [21:25:20]protocol is kg_v1.0 [21:25:20]action value=close_receipt [21:25:20]process_action close_receipt [21:25:20]cmd_close_receipt [21:25:20]MH_GetDate [21:25:20]Write to MH i2c: F0 00 00 B3 1E C0 [21:25:20]Write i2c OK [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: F0 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: F0 09 00 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: F0 09 00 B3 1E 00 C4 F0 92 66 1B 28 2A 66 48 [21:25:20]GetLastDocTimeStamp 1720905721 [21:25:20]current date 1720905924 [21:25:20]FM_GetShiftState [21:25:20]SAM_PROTO_GetShiftState [21:25:20]wFMCommunicate request_size=4 [21:25:20]MH_SAM_APDU [21:25:20]CAPDU: 80 13 01 00 [21:25:20]Write to MH i2c: E2 08 00 B4 1E 80 13 01 00 00 00 00 00 4F [21:25:20]Write i2c OK [21:25:20]MH_I2C_Read... [21:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:20]Read from MH i2c: E2 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: E2 0E 00 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: E2 0E 00 B4 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 DA [21:25:20]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:25:20]wFMCommunicate OK [21:25:20]SAM_PROTO_GetShiftState done [21:25:20]FM_GetShiftState done [21:25:20]opened in 1720829379 [21:25:20]opened+sec_in_day 1720915779 [21:25:20]quantity*price = 50056 [21:25:20]sum+1 = 50058 [21:25:20]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 СНО: Общий режим Чек 129 13.07.2024 21:25 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1960 ФПД: 127570161501296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212524&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1960&fm=127570161501296&tin=02508201610067®Number=0000000000177495&sum=50000 [21:25:21]StoreToDocumentArchive [21:25:21]shift 24 fd 1960 [21:25:21]save to /storage/0024/doc_00001960 [21:25:21]save last doc name /storage/0024/doc_00001960 to /storage/kkm_last_doc_name [21:25:21]save OK [21:25:21]Clear old archive folders... [21:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:21]tlvbuf is 010077A0 [21:25:21]SAM_PROTO_ClearQueue [21:25:21]wFMCommunicate request_size=4 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 09 00 00 [21:25:21]Write to MH i2c: E2 08 00 C1 1E 80 09 00 00 00 00 00 00 51 [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:22]Read from MH i2c: E2 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [21:25:22]RAPDU: 90 00 [21:25:22]wFMCommunicate OK [21:25:22]SAM_PROTO_ClearQueue done [21:25:22]KKMCreateOFDPacket [21:25:22]OFDProtocolAddRootSTLVToBuf [21:25:22]FM_MakeSignedData [21:25:22]FM_MakeSignedData [21:25:22]SAM_PROTO_SignData [21:25:22]wFMCommunicate request_size=4 [21:25:22]MH_SAM_APDU [21:25:22]CAPDU: 80 0D 01 02 [21:25:22]Write to MH i2c: E2 08 00 C2 1E 80 0D 01 02 00 00 00 00 59 [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:22]Read from MH i2c: E2 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [21:25:22]RAPDU: 90 00 [21:25:22]wFMCommunicate OK [21:25:22]wFMCommunicate request_size=255 [21:25:22]MH_SAM_APDU [21:25:22]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 81 00 00 00 F4 03 04 00 C4 F0 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 74 [21:25:22]Write to MH i2c: E2 02 01 C3 1E 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 81 00 00 00 F4 03 04 00 C4 F0 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 74 00 00 76 [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:22]Read from MH i2c: E2 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [21:25:22]RAPDU: 90 00 [21:25:22]wFMCommunicate OK [21:25:22]wFMCommunicate request_size=10 [21:25:22]MH_SAM_APDU [21:25:22]CAPDU: 80 0D 02 02 05 06 3E 29 04 70 [21:25:22]Write to MH i2c: E2 0D 00 C4 1E 80 0D 02 02 05 00 06 3E 29 04 70 00 00 47 [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:22]Read from MH i2c: E2 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [21:25:22]RAPDU: 90 00 [21:25:22]wFMCommunicate OK [21:25:22]wFMCommunicate request_size=4 [21:25:22]MH_SAM_APDU [21:25:22]CAPDU: 80 0D 03 02 [21:25:22]Write to MH i2c: E2 08 00 C5 1E 80 0D 03 02 00 00 00 00 5E [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:22]Read from MH i2c: E2 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 0B 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 0B 00 C5 1E 00 13 27 FF 01 20 59 96 FB 90 00 A3 [21:25:22]RAPDU: 13 27 FF 01 20 59 96 FB 90 00 [21:25:22]wFMCommunicate OK [21:25:22]SAM_PROTO_SignData done [21:25:22]FM_MakeSignedData done [21:25:22]CreateOFDProtocolMessage [21:25:22]wFMCommunicate request_size=4 [21:25:22]MH_SAM_APDU [21:25:22]CAPDU: 80 11 00 00 [21:25:22]Write to MH i2c: E2 08 00 C6 1E 80 11 00 00 00 00 00 00 5E [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:22]Read from MH i2c: E2 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 17 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: E2 17 00 C6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B4 [21:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:25:22]wFMCommunicate OK [21:25:22]CreateOFDProtocolMessage done [21:25:22]OFDSenderStorePacket 1960 [21:25:22]StoreOFDPacket docnum=1960 [21:25:22]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 97 A6 07 01 C6 E7 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 81 00 00 00 F4 03 04 00 C4 F0 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 74 06 3E 29 04 70 13 27 FF 01 20 59 96 FB [21:25:22]CheckFolder [21:25:22]dirname=/storage/ofd_packets [21:25:22]CheckFolder done [21:25:22]ProducePacketName [21:25:22]name=ofd_packets/00001960 [21:25:22]NVStorageSaveData ofd_packets/00001960 [21:25:22]File name is /storage/ofd_packets/00001960 [21:25:22]Write 301 bytes [21:25:22]NVStorageSaveData done [21:25:22]OFDSenderStorePacket done [21:25:22]KKMCreateOFDPacket done [21:25:22]NVStorageSaveData kkm_last_timestamp [21:25:22]File name is /storage/kkm_last_timestamp [21:25:22]Write 4 bytes [21:25:22]NVStorageSaveData done [21:25:22]ExternCall_PrintAddStr [21:25:22]wPrintStart [21:25:22]Write to MH i2c: 01 00 00 C7 1E E5 [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: 01 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: 01 07 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 FF 0F FA [21:25:22]RasterBufferAndPrint [21:25:22]line Счет N : (1)1619150 [21:25:22]line ИНН: 02508201610067 [21:25:22]line Контрольно-Кассовый Чек [21:25:22]line ПРОДАЖА [21:25:22]line ТРК (МРК, ГНК) : 53 [21:25:22]line Товар: 2710124130 [21:25:22]line Аи-92-К-5 [21:25:22]line 7.550 * 66.30 [21:25:22]line = 500.57 [21:25:22]line НДС 12% НСП 1% [21:25:22]line > о реализуемом товаре [21:25:22]line ОКРУГЛЕНИЕ: -0.57 [21:25:22]line ИТОГО: 500.00 [21:25:22]line Внесено: 500.00 [21:25:22]line СДАЧА: 0.00 [21:25:22]line НСП 1% : 4.43 [21:25:22]line НДС 12% : 53.16 [21:25:22]line Наличными: 500.00 [21:25:22]line Безнал.: 0.00 [21:25:22]line Место: АЗС № 76 "Партнер Нефть" [21:25:22]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:25:22]line СНО: Общий режим [21:25:22]line Чек 129 13.07.2024 21:25 [21:25:22]line Смена: 24 ФФД: 1.0 [21:25:22]line ЗНМ: 0300000124 [21:25:22]line РНМ: 0000000000177495 [21:25:22]line Версия ККМ: 001 [21:25:22]line ФМ: 0000000002098592 [21:25:22]line ФД: 1960 [21:25:22]line ФПД: 127570161501296 [21:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212524&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1960&fm=127570161501296&tin=02508201610067®Number=0000000000177495&sum=50000 [21:25:22]OFD Sender: Processing packet 1960 [packets to send 1, broken 0] [21:25:22]ProducePacketName [21:25:22]name=ofd_packets/00001960 [21:25:22]OFD Sender: To server: pG, [21:25:22]CommunicateWithHost lk.salyk.kg:30040 [21:25:22]ConnectInit lk.salyk.kg [21:25:22]written 0, free lines is 4095 [21:25:22]Connected sock=10 [21:25: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 0F 01 00 00 97 A6 07 01 C6 E7 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 81 00 00 00 F4 03 04 00 C4 F0 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 74 06 3E 29 04 70 13 27 FF 01 20 59 96 FB [21:25:23]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 69 5E 47 00 B6 82 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 07 00 00 F4 03 04 00 F9 9B 92 66 B6 04 01 00 00 01 58 24 99 17 3C D4 C3 [21:25:23]CommunicateWithHost err = 0 [21:25:23]CheckOFDResponse [21:25:23]1017 (14) - 77093643461234 [21:25:23]1041 (16) - 0000000002098592 [21:25:23]1040 (4) - 1960 [21:25:23]1012 (4) - 13.07.2024 15:23 [21:25:23]1206 (1) - 0 [21:25:23]OFD Sender: Remove packet 1960 [21:25:23]ProducePacketName [21:25:23]name=ofd_packets/00001960 [21:25:23]NVStorageDeleteData [21:25:23]Write to MH i2c: 01 00 00 F2 1E 10 [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: 01 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: 01 07 00 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 EE 0C 11 [21:25:23]RasterBufferAndPrint [21:25:23]line [21:25:23]line [21:25:23]line [21:25:23]line [21:25:23]line [21:25:23]written 0, free lines is 3319 [21:25:23]MH_Cut [21:25:23]Write to MH i2c: D1 01 00 F9 1E 01 E9 [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: D1 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: D1 01 00 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: D1 01 00 F9 1E 00 E8 [21:25:23]Write to MH i2c: 01 00 00 FA 1E 18 [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]OFD Sender: No OFD packet to send [21:25:24]*** Cut start [21:25:24]*** Partial cut [21:25:24]*** CUTSNS_PIN = 1 [21:25:24]*** CUTSNS_PIN = 0 [21:25:24]*** Brake cut motor [21:25:24]Read from MH i2c: 01 [21:25:24]MH_I2C_Read... [21:25:24]*** Stop cut motor [21:25:24]*** Cut end [21:25:24]Read from MH i2c: 01 07 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 FF 0F 2D [21:25:24]process_action close_receipt done [21:25:24]requested_data is exist [21:25:24]produce_requested_data [21:25:24]requested_item fm.sn is exist - process it [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 11 00 00 [21:25:24]Write to MH i2c: E2 08 00 FB 1E 80 11 00 00 00 00 00 00 93 [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:24]Read from MH i2c: E2 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 17 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 17 00 FB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E9 [21:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:25:24]wFMCommunicate OK [21:25:24]requested_item fd.num is exist - process it [21:25:24]SAM_PROTO_GetFieldsCounters [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 13 00 00 [21:25:24]Write to MH i2c: E2 08 00 FC 1E 80 13 00 00 00 00 00 00 96 [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:24]Read from MH i2c: E2 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 62 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 62 00 FC 1E 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [21:25: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 A8 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:24]wFMCommunicate OK [21:25:24]SAM_PROTO_GetFieldsCounters done [21:25:24]requested_item shift.num is exist - process it [21:25:24]requested_item shift.opened is exist - process it [21:25:24]req_shift_opened [21:25:24]FM_GetShiftState [21:25:24]SAM_PROTO_GetShiftState [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 13 01 00 [21:25:24]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:24]Read from MH i2c: E2 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 0E 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 23 [21:25:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:25:24]wFMCommunicate OK [21:25:24]SAM_PROTO_GetShiftState done [21:25:24]FM_GetShiftState done [21:25:24]req_shift_opened done [21:25:24]requested_item shift.open_date is exist - process it [21:25:24]req_shift_open_date [21:25:24]req_shift_open_date done [21:25:24]produce_requested_data done [21:25:24]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1960,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:25:24]process_action_free close_receipt [21:25:24]json_value_free [21:25:24]json_value_free done [21:25:24]process_json_proto returns [21:25:24]Send response to host [21:25:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1960,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:25:24]free response buf [21:25:24]execute_script done [21:25:24]execute_script returns [21:25:24]free content buf [21:25:24]Sock 9.Close socket [21:25:24]Sock 9.Thread stoped [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]accept exits with 8 [21:29:08]New connection [21:29:08]New thread 3066834276 created [21:29:08]Thread 3066977636 joined [21:29:08]Waiting for new connection... [21:29:08] Sock 8.Parse request [21:29:08]Sock 8.Check first char [21:29:08]Sock 8.First char is OK [21:29:08]request: POST /json_proto HTTP/1.0 [21:29:08]Method: POST [21:29:08]URL: /json_proto [21:29:08]Method is POST - this is cgi request [21:29:08]url: /json_proto [21:29:08]query_string will be loaded in cgi processing [21:29:08]execute_cgi json_proto POST (null) [21:29:08]execute_cgi path=json_proto method=POST [21:29:08]POST find Content-Length [21:29:08]Host: 172.17.35.133:8080 [21:29:08]Content-Length: 842 [21:29:08]Content-Type: application/json [21:29:08] [21:29:08]POST finish read [21:29:08]Found Content-Length = 842 [21:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619151", "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" : 10.000, "sum" : 663.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" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:08]execute_script... [21:29:08]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)1619151", "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" : 10.000, "sum" : 663.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" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:08]POST & json_proto [21:29:08]process_json_proto [21:29:08]json parsed OK: [21:29:08]protocol is kg_v1.0 [21:29:08]action value=close_receipt [21:29:08]process_action close_receipt [21:29:08]cmd_close_receipt [21:29:08]MH_GetDate [21:29:08]Write to MH i2c: F0 00 00 FE 1E 0B [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: F0 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: F0 09 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: F0 09 00 FE 1E 00 A7 F1 92 66 1B 28 2A 66 77 [21:29:08]GetLastDocTimeStamp 1720905924 [21:29:08]current date 1720906151 [21:29:08]FM_GetShiftState [21:29:08]SAM_PROTO_GetShiftState [21:29:08]wFMCommunicate request_size=4 [21:29:08]MH_SAM_APDU [21:29:08]CAPDU: 80 13 01 00 [21:29:08]Write to MH i2c: E2 08 00 FF 1E 80 13 01 00 00 00 00 00 9A [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:08]Read from MH i2c: E2 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: E2 0E 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: E2 0E 00 FF 1E 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 25 [21:29:08]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:29:08]wFMCommunicate OK [21:29:08]SAM_PROTO_GetShiftState done [21:29:08]FM_GetShiftState done [21:29:08]opened in 1720829379 [21:29:08]opened+sec_in_day 1720915779 [21:29:08]quantity*price = 66300 [21:29:08]sum+1 = 66301 [21:29:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 130 13.07.2024 21:29 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1961 ФПД: 26614800593062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212911&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1961&fm=26614800593062&tin=02508201610067®Number=0000000000177495&sum=66300 [21:29:09]StoreToDocumentArchive [21:29:09]shift 24 fd 1961 [21:29:09]save to /storage/0024/doc_00001961 [21:29:09]save last doc name /storage/0024/doc_00001961 to /storage/kkm_last_doc_name [21:29:09]save OK [21:29:09]Clear old archive folders... [21:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:09]tlvbuf is 0106CA30 [21:29:09]SAM_PROTO_ClearQueue [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 09 00 00 [21:29:09]Write to MH i2c: E2 08 00 0C 1F 80 09 00 00 00 00 00 00 9D [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_ClearQueue done [21:29:09]KKMCreateOFDPacket [21:29:09]OFDProtocolAddRootSTLVToBuf [21:29:09]FM_MakeSignedData [21:29:09]FM_MakeSignedData [21:29:09]SAM_PROTO_SignData [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 01 02 [21:29:09]Write to MH i2c: E2 08 00 0D 1F 80 0D 01 02 00 00 00 00 A5 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=255 [21:29:09]MH_SAM_APDU [21:29:09]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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A7 F1 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 18 [21:29:09]Write to MH i2c: E2 02 01 0E 1F 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A7 F1 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 18 00 00 C8 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=10 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 02 02 05 34 BD BC 30 A6 [21:29:09]Write to MH i2c: E2 0D 00 0F 1F 80 0D 02 02 05 00 34 BD BC 30 A6 00 00 35 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 0F 1F 00 90 00 A2 [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 03 02 [21:29:09]Write to MH i2c: E2 08 00 10 1F 80 0D 03 02 00 00 00 00 AA [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0B 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0B 00 10 1F 00 6B F8 A3 3A 67 D0 39 3C 90 00 97 [21:29:09]RAPDU: 6B F8 A3 3A 67 D0 39 3C 90 00 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_SignData done [21:29:09]FM_MakeSignedData done [21:29:09]CreateOFDProtocolMessage [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 11 00 00 [21:29:09]Write to MH i2c: E2 08 00 11 1F 80 11 00 00 00 00 00 00 AA [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 11 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 00 [21:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:29:09]wFMCommunicate OK [21:29:09]CreateOFDProtocolMessage done [21:29:09]OFDSenderStorePacket 1961 [21:29:09]StoreOFDPacket docnum=1961 [21:29: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 0F 01 00 00 AC 7C 07 01 BF 8D 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A7 F1 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 18 34 BD BC 30 A6 6B F8 A3 3A 67 D0 39 3C [21:29:09]CheckFolder [21:29:09]dirname=/storage/ofd_packets [21:29:09]CheckFolder done [21:29:09]ProducePacketName [21:29:09]name=ofd_packets/00001961 [21:29:09]NVStorageSaveData ofd_packets/00001961 [21:29:09]File name is /storage/ofd_packets/00001961 [21:29:09]Write 301 bytes [21:29:09]NVStorageSaveData done [21:29:09]OFDSenderStorePacket done [21:29:09]KKMCreateOFDPacket done [21:29:09]NVStorageSaveData kkm_last_timestamp [21:29:09]File name is /storage/kkm_last_timestamp [21:29:09]Write 4 bytes [21:29:09]NVStorageSaveData done [21:29:09]ExternCall_PrintAddStr [21:29:09]wPrintStart [21:29:09]Write to MH i2c: 01 00 00 12 1F 31 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 FF 0F 46 [21:29:09]RasterBufferAndPrint [21:29:09]line Счет N : (1)1619151 [21:29:09]line ИНН: 02508201610067 [21:29:09]line Контрольно-Кассовый Чек [21:29:09]line ПРОДАЖА [21:29:09]line ТРК (МРК, ГНК) : 43 [21:29:09]line Товар: 2710124130 [21:29:09]line Аи-92-К-5 [21:29:09]line 10.000 * 66.30 [21:29:09]line = 663.00 [21:29:09]line НДС 12% НСП 1% [21:29:09]line > о реализуемом товаре [21:29:09]line ИТОГО: 663.00 [21:29:09]line НСП 1% : 5.87 [21:29:09]line НДС 12% : 70.41 [21:29:09]line Наличными: 0.00 [21:29:09]line Безнал.: 663.00 [21:29:09]line Место: АЗС № 76 "Партнер Нефть" [21:29:09]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:29:09]line СНО: Общий режим [21:29:09]line Чек 130 13.07.2024 21:29 [21:29:09]line Смена: 24 ФФД: 1.0 [21:29:09]line ЗНМ: 0300000124 [21:29:09]line РНМ: 0000000000177495 [21:29:09]line Версия ККМ: 001 [21:29:09]line Платежная система: АКБ Кыргызстан [21:29:09]line ФМ: 0000000002098592 [21:29:09]line ФД: 1961 [21:29:09]line ФПД: 26614800593062 [21:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212911&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1961&fm=26614800593062&tin=02508201610067®Number=0000000000177495&sum=66300 [21:29:10]OFD Sender: Processing packet 1961 [packets to send 1, broken 0] [21:29:10]ProducePacketName [21:29:10]name=ofd_packets/00001961 [21:29:10]OFD Sender: To server: pG, [21:29:10]CommunicateWithHost lk.salyk.kg:30040 [21:29:10]ConnectInit lk.salyk.kg [21:29:10]written 0, free lines is 4095 [21:29:10]Connected sock=10 [21:29: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 0F 01 00 00 AC 7C 07 01 BF 8D 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A7 F1 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 18 34 BD BC 30 A6 6B F8 A3 3A 67 D0 39 3C [21:29: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 BE 2C 47 00 4A E7 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 07 00 00 F4 03 04 00 DC 9C 92 66 B6 04 01 00 00 12 86 4A 5F D5 F0 A6 55 [21:29:10]CommunicateWithHost err = 0 [21:29:10]CheckOFDResponse [21:29:10]1017 (14) - 77093643461234 [21:29:10]1041 (16) - 0000000002098592 [21:29:10]1040 (4) - 1961 [21:29:10]1012 (4) - 13.07.2024 15:27 [21:29:10]1206 (1) - 0 [21:29:10]OFD Sender: Remove packet 1961 [21:29:10]ProducePacketName [21:29:10]name=ofd_packets/00001961 [21:29:10]NVStorageDeleteData [21:29:10]Write to MH i2c: 01 00 00 3C 1F 5B [21:29:10]Write i2c OK [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: 01 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: 01 07 00 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: 01 07 00 3C 1F 00 00 00 00 00 03 0D 72 [21:29:10]RasterBufferAndPrint [21:29:10]line [21:29:10]line [21:29:10]line [21:29:10]line [21:29:10]line [21:29:10]written 0, free lines is 3338 [21:29:10]MH_Cut [21:29:10]Write to MH i2c: D1 01 00 43 1F 01 34 [21:29:10]Write i2c OK [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: D1 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: D1 01 00 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: D1 01 00 43 1F 00 33 [21:29:10]Write to MH i2c: 01 00 00 44 1F 63 [21:29:10]Write i2c OK [21:29:10]MH_I2C_Read... [21:29:10]OFD Sender: No OFD packet to send [21:29:11]*** Cut start [21:29:11]*** Partial cut [21:29:11]*** CUTSNS_PIN = 1 [21:29:11]*** CUTSNS_PIN = 0 [21:29:11]*** Brake cut motor [21:29:11]Read from MH i2c: 01 [21:29:11]MH_I2C_Read... [21:29:11]*** Stop cut motor [21:29:11]*** Cut end [21:29:11]Read from MH i2c: 01 07 00 [21:29:11]MH_I2C_Read... [21:29:11]Read from MH i2c: 01 07 00 44 1F 00 00 00 00 00 FF 0F 78 [21:29:11]process_action close_receipt done [21:29:11]requested_data is exist [21:29:11]produce_requested_data [21:29:11]requested_item fm.sn is exist - process it [21:29:11]wFMCommunicate request_size=4 [21:29:11]MH_SAM_APDU [21:29:11]CAPDU: 80 11 00 00 [21:29:11]Write to MH i2c: E2 08 00 45 1F 80 11 00 00 00 00 00 00 DE [21:29:11]Write i2c OK [21:29:11]MH_I2C_Read... [21:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:11]Read from MH i2c: E2 [21:29:11]MH_I2C_Read... [21:29:11]Read from MH i2c: E2 17 00 [21:29:11]MH_I2C_Read... [21:29:11]Read from MH i2c: E2 17 00 45 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 34 [21:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:29:11]wFMCommunicate OK [21:29:11]requested_item fd.num is exist - process it [21:29:11]SAM_PROTO_GetFieldsCounters [21:29:11]wFMCommunicate request_size=4 [21:29:11]MH_SAM_APDU [21:29:11]CAPDU: 80 13 00 00 [21:29:11]Write to MH i2c: E2 08 00 46 1F 80 13 00 00 00 00 00 00 E1 [21:29:11]Write i2c OK [21:29:11]MH_I2C_Read... [21:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:12]Read from MH i2c: E2 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 62 00 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 62 00 46 1F 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [21:29:12]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:12]wFMCommunicate OK [21:29:12]SAM_PROTO_GetFieldsCounters done [21:29:12]requested_item shift.num is exist - process it [21:29:12]requested_item shift.opened is exist - process it [21:29:12]req_shift_opened [21:29:12]FM_GetShiftState [21:29:12]SAM_PROTO_GetShiftState [21:29:12]wFMCommunicate request_size=4 [21:29:12]MH_SAM_APDU [21:29:12]CAPDU: 80 13 01 00 [21:29:12]Write to MH i2c: E2 08 00 47 1F 80 13 01 00 00 00 00 00 E3 [21:29:12]Write i2c OK [21:29:12]MH_I2C_Read... [21:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:12]Read from MH i2c: E2 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 0E 00 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 0E 00 47 1F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 6E [21:29:12]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:29:12]wFMCommunicate OK [21:29:12]SAM_PROTO_GetShiftState done [21:29:12]FM_GetShiftState done [21:29:12]req_shift_opened done [21:29:12]requested_item shift.open_date is exist - process it [21:29:12]req_shift_open_date [21:29:12]req_shift_open_date done [21:29:12]produce_requested_data done [21:29:12]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1961,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:29:12]process_action_free close_receipt [21:29:12]json_value_free [21:29:12]json_value_free done [21:29:12]process_json_proto returns [21:29:12]Send response to host [21:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1961,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:29:12]free response buf [21:29:12]execute_script done [21:29:12]execute_script returns [21:29:12]free content buf [21:29:12]Sock 8.Close socket [21:29:12]Sock 8.Thread stoped [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:38]ConnectInit Can't connect to host [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:26]accept exits with 9 [21:36:26]New connection [21:36:26]New thread 3066977636 created [21:36:26]Thread 3066834276 joined [21:36:26]Waiting for new connection... [21:36:26] Sock 9.Parse request [21:36:26]Sock 9.Check first char [21:36:26]Sock 9.First char is OK [21:36:26]request: POST /json_proto HTTP/1.0 [21:36:26]Method: POST [21:36:26]URL: /json_proto [21:36:26]Method is POST - this is cgi request [21:36:26]url: /json_proto [21:36:26]query_string will be loaded in cgi processing [21:36:26]execute_cgi json_proto POST (null) [21:36:26]execute_cgi path=json_proto method=POST [21:36:26]POST find Content-Length [21:36:26]Host: 172.17.35.133:8080 [21:36:26]Content-Length: 683 [21:36:26]Content-Type: application/json [21:36:26] [21:36:26]POST finish read [21:36:26]Found Content-Length = 683 [21:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:26]execute_script... [21:36:26]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)1619153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:26]POST & json_proto [21:36:26]process_json_proto [21:36:26]json parsed OK: [21:36:26]protocol is kg_v1.0 [21:36:26]action value=close_receipt [21:36:26]process_action close_receipt [21:36:26]cmd_close_receipt [21:36:26]MH_GetDate [21:36:26]Write to MH i2c: F0 00 00 48 1F 56 [21:36:26]Write i2c OK [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: F0 [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: F0 09 00 [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: F0 09 00 48 1F 00 5E F3 92 66 1B 28 2A 66 7B [21:36:26]GetLastDocTimeStamp 1720906151 [21:36:26]current date 1720906590 [21:36:26]FM_GetShiftState [21:36:26]SAM_PROTO_GetShiftState [21:36:26]wFMCommunicate request_size=4 [21:36:26]MH_SAM_APDU [21:36:26]CAPDU: 80 13 01 00 [21:36:26]Write to MH i2c: E2 08 00 49 1F 80 13 01 00 00 00 00 00 E5 [21:36:26]Write i2c OK [21:36:26]MH_I2C_Read... [21:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:26]Read from MH i2c: E2 [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: E2 0E 00 [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: E2 0E 00 49 1F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 70 [21:36:26]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:36:26]wFMCommunicate OK [21:36:26]SAM_PROTO_GetShiftState done [21:36:26]FM_GetShiftState done [21:36:26]opened in 1720829379 [21:36:26]opened+sec_in_day 1720915779 [21:36:26]quantity*price = 100068 [21:36:26]sum+1 = 100069 [21:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 131 13.07.2024 21:36 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1962 ФПД: 143089024787477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213630&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1962&fm=143089024787477&tin=02508201610067®Number=0000000000177495&sum=100000 [21:36:28]StoreToDocumentArchive [21:36:28]shift 24 fd 1962 [21:36:28]save to /storage/0024/doc_00001962 [21:36:28]save last doc name /storage/0024/doc_00001962 to /storage/kkm_last_doc_name [21:36:28]save OK [21:36:28]Clear old archive folders... [21:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:28]tlvbuf is 0106C9D0 [21:36:28]SAM_PROTO_ClearQueue [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 09 00 00 [21:36:28]Write to MH i2c: E2 08 00 56 1F 80 09 00 00 00 00 00 00 E7 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [21:36:28]RAPDU: 90 00 [21:36:28]wFMCommunicate OK [21:36:28]SAM_PROTO_ClearQueue done [21:36:28]KKMCreateOFDPacket [21:36:28]OFDProtocolAddRootSTLVToBuf [21:36:28]FM_MakeSignedData [21:36:28]FM_MakeSignedData [21:36:28]SAM_PROTO_SignData [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 0D 01 02 [21:36:28]Write to MH i2c: E2 08 00 57 1F 80 0D 01 02 00 00 00 00 EF [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [21:36:28]RAPDU: 90 00 [21:36:28]wFMCommunicate OK [21:36:28]wFMCommunicate request_size=255 [21:36:28]MH_SAM_APDU [21:36:28]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5E F3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 82 [21:36:28]Write to MH i2c: E2 02 01 58 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5E F3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 82 00 00 E8 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [21:36:28]RAPDU: 90 00 [21:36:28]wFMCommunicate OK [21:36:28]wFMCommunicate request_size=10 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 0D 02 02 05 23 82 7E 64 15 [21:36:28]Write to MH i2c: E2 0D 00 59 1F 80 0D 02 02 05 00 23 82 7E 64 15 00 00 98 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [21:36:28]RAPDU: 90 00 [21:36:28]wFMCommunicate OK [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 0D 03 02 [21:36:28]Write to MH i2c: E2 08 00 5A 1F 80 0D 03 02 00 00 00 00 F4 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 0B 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 0B 00 5A 1F 00 FC 83 86 06 7A 13 CF 3C 90 00 98 [21:36:28]RAPDU: FC 83 86 06 7A 13 CF 3C 90 00 [21:36:28]wFMCommunicate OK [21:36:28]SAM_PROTO_SignData done [21:36:28]FM_MakeSignedData done [21:36:28]CreateOFDProtocolMessage [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 11 00 00 [21:36:28]Write to MH i2c: E2 08 00 5B 1F 80 11 00 00 00 00 00 00 F4 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 17 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 17 00 5B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 4A [21:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:36:28]wFMCommunicate OK [21:36:28]CreateOFDProtocolMessage done [21:36:28]OFDSenderStorePacket 1962 [21:36:28]StoreOFDPacket docnum=1962 [21:36:28]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 74 31 07 01 A8 E5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5E F3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 82 23 82 7E 64 15 FC 83 86 06 7A 13 CF 3C [21:36:28]CheckFolder [21:36:28]dirname=/storage/ofd_packets [21:36:28]CheckFolder done [21:36:28]ProducePacketName [21:36:28]name=ofd_packets/00001962 [21:36:28]NVStorageSaveData ofd_packets/00001962 [21:36:28]File name is /storage/ofd_packets/00001962 [21:36:28]Write 301 bytes [21:36:28]NVStorageSaveData done [21:36:28]OFDSenderStorePacket done [21:36:28]KKMCreateOFDPacket done [21:36:28]NVStorageSaveData kkm_last_timestamp [21:36:28]File name is /storage/kkm_last_timestamp [21:36:28]Write 4 bytes [21:36:28]NVStorageSaveData done [21:36:28]ExternCall_PrintAddStr [21:36:28]wPrintStart [21:36:28]Write to MH i2c: 01 00 00 5C 1F 7B [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: 01 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: 01 07 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: 01 07 00 5C 1F 00 00 00 00 00 FF 0F 90 [21:36:28]RasterBufferAndPrint [21:36:28]line Счет N : (1)1619153 [21:36:28]line ИНН: 02508201610067 [21:36:28]line Контрольно-Кассовый Чек [21:36:28]line ПРОДАЖА [21:36:28]line ТРК (МРК, ГНК) : 42 [21:36:28]line Товар: 2710124500 [21:36:28]line Аи-95-К-5 [21:36:28]line 13.450 * 74.40 [21:36:28]line = 1000.68 [21:36:28]line НДС 12% НСП 1% [21:36:28]line > о реализуемом товаре [21:36:28]line ОКРУГЛЕНИЕ: -0.68 [21:36:28]line ИТОГО: 1000.00 [21:36:28]line Внесено: 1000.00 [21:36:28]line СДАЧА: 0.00 [21:36:28]line НСП 1% : 8.86 [21:36:28]line НДС 12% : 106.27 [21:36:28]line Наличными: 1000.00 [21:36:28]line Безнал.: 0.00 [21:36:28]line Место: АЗС № 76 "Партнер Нефть" [21:36:28]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:36:28]line СНО: Общий режим [21:36:28]line Чек 131 13.07.2024 21:36 [21:36:28]line Смена: 24 ФФД: 1.0 [21:36:28]line ЗНМ: 0300000124 [21:36:28]line РНМ: 0000000000177495 [21:36:28]line Версия ККМ: 001 [21:36:28]line ФМ: 0000000002098592 [21:36:28]line ФД: 1962 [21:36:28]line ФПД: 143089024787477 [21:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213630&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1962&fm=143089024787477&tin=02508201610067®Number=0000000000177495&sum=100000 [21:36:28]OFD Sender: Processing packet 1962 [packets to send 1, broken 0] [21:36:28]ProducePacketName [21:36:28]name=ofd_packets/00001962 [21:36:28]OFD Sender: To server: pG, [21:36:28]CommunicateWithHost lk.salyk.kg:30040 [21:36:28]ConnectInit lk.salyk.kg [21:36:28]written 0, free lines is 4095 [21:36:28]Connected sock=10 [21:36:28]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 74 31 07 01 A8 E5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5E F3 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 82 23 82 7E 64 15 FC 83 86 06 7A 13 CF 3C [21:36:29]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 7A 47 00 F5 03 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 07 00 00 F4 03 04 00 93 9E 92 66 B6 04 01 00 00 2F B7 C4 71 41 93 D7 DB [21:36:29]CommunicateWithHost err = 0 [21:36:29]CheckOFDResponse [21:36:29]1017 (14) - 77093643461234 [21:36:29]1041 (16) - 0000000002098592 [21:36:29]1040 (4) - 1962 [21:36:29]1012 (4) - 13.07.2024 15:34 [21:36:29]1206 (1) - 0 [21:36:29]OFD Sender: Remove packet 1962 [21:36:29]ProducePacketName [21:36:29]name=ofd_packets/00001962 [21:36:29]NVStorageDeleteData [21:36:29]Write to MH i2c: 01 00 00 87 1F A6 [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: 01 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: 01 07 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: 01 07 00 87 1F 00 00 00 00 00 E3 0C 9C [21:36:29]RasterBufferAndPrint [21:36:29]line [21:36:29]line [21:36:29]line [21:36:29]line [21:36:29]line [21:36:29]written 0, free lines is 3307 [21:36:29]MH_Cut [21:36:29]Write to MH i2c: D1 01 00 8E 1F 01 7F [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: D1 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: D1 01 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: D1 01 00 8E 1F 00 7E [21:36:29]Write to MH i2c: 01 00 00 8F 1F AE [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]OFD Sender: No OFD packet to send [21:36:30]*** Cut start [21:36:30]*** Partial cut [21:36:30]*** CUTSNS_PIN = 1 [21:36:30]*** CUTSNS_PIN = 0 [21:36:30]*** Brake cut motor [21:36:30]Read from MH i2c: 01 [21:36:30]MH_I2C_Read... [21:36:30]*** Stop cut motor [21:36:30]*** Cut end [21:36:30]Read from MH i2c: 01 07 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: 01 07 00 8F 1F 00 00 00 00 00 FF 0F C3 [21:36:30]process_action close_receipt done [21:36:30]requested_data is exist [21:36:30]produce_requested_data [21:36:30]requested_item fm.sn is exist - process it [21:36:30]wFMCommunicate request_size=4 [21:36:30]MH_SAM_APDU [21:36:30]CAPDU: 80 11 00 00 [21:36:30]Write to MH i2c: E2 08 00 90 1F 80 11 00 00 00 00 00 00 29 [21:36:30]Write i2c OK [21:36:30]MH_I2C_Read... [21:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:30]Read from MH i2c: E2 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 17 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 17 00 90 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7F [21:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:36:30]wFMCommunicate OK [21:36:30]requested_item fd.num is exist - process it [21:36:30]SAM_PROTO_GetFieldsCounters [21:36:30]wFMCommunicate request_size=4 [21:36:30]MH_SAM_APDU [21:36:30]CAPDU: 80 13 00 00 [21:36:30]Write to MH i2c: E2 08 00 91 1F 80 13 00 00 00 00 00 00 2C [21:36:30]Write i2c OK [21:36:30]MH_I2C_Read... [21:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:30]Read from MH i2c: E2 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 62 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 62 00 91 1F 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [21:36:30]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:30]wFMCommunicate OK [21:36:30]SAM_PROTO_GetFieldsCounters done [21:36:30]requested_item shift.num is exist - process it [21:36:30]requested_item shift.opened is exist - process it [21:36:30]req_shift_opened [21:36:30]FM_GetShiftState [21:36:30]SAM_PROTO_GetShiftState [21:36:30]wFMCommunicate request_size=4 [21:36:30]MH_SAM_APDU [21:36:30]CAPDU: 80 13 01 00 [21:36:30]Write to MH i2c: E2 08 00 92 1F 80 13 01 00 00 00 00 00 2E [21:36:30]Write i2c OK [21:36:30]MH_I2C_Read... [21:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:30]Read from MH i2c: E2 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 0E 00 [21:36:30]MH_I2C_Read... [21:36:30]Read from MH i2c: E2 0E 00 92 1F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B9 [21:36:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:36:30]wFMCommunicate OK [21:36:30]SAM_PROTO_GetShiftState done [21:36:30]FM_GetShiftState done [21:36:30]req_shift_opened done [21:36:30]requested_item shift.open_date is exist - process it [21:36:30]req_shift_open_date [21:36:30]req_shift_open_date done [21:36:30]produce_requested_data done [21:36:30]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1962,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:36:30]process_action_free close_receipt [21:36:30]json_value_free [21:36:30]json_value_free done [21:36:30]process_json_proto returns [21:36:30]Send response to host [21:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1962,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:36:30]free response buf [21:36:30]execute_script done [21:36:30]execute_script returns [21:36:30]free content buf [21:36:30]Sock 9.Close socket [21:36:30]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:47]accept exits with 8 [21:39:47]New connection [21:39:47]New thread 3066834276 created [21:39:47]Thread 3066977636 joined [21:39:47]Waiting for new connection... [21:39:47] Sock 8.Parse request [21:39:47]Sock 8.Check first char [21:39:47]Sock 8.First char is OK [21:39:47]request: POST /json_proto HTTP/1.0 [21:39:47]Method: POST [21:39:47]URL: /json_proto [21:39:47]Method is POST - this is cgi request [21:39:47]url: /json_proto [21:39:47]query_string will be loaded in cgi processing [21:39:47]execute_cgi json_proto POST (null) [21:39:47]execute_cgi path=json_proto method=POST [21:39:47]POST find Content-Length [21:39:47]Host: 172.17.35.133:8080 [21:39:47]Content-Length: 683 [21:39:47]Content-Type: application/json [21:39:47] [21:39:47]POST finish read [21:39:47]Found Content-Length = 683 [21:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:47]execute_script... [21:39:47]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)1619154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:47]POST & json_proto [21:39:47]process_json_proto [21:39:47]json parsed OK: [21:39:47]protocol is kg_v1.0 [21:39:47]action value=close_receipt [21:39:47]process_action close_receipt [21:39:47]cmd_close_receipt [21:39:47]MH_GetDate [21:39:47]Write to MH i2c: F0 00 00 93 1F A1 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: F0 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: F0 09 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: F0 09 00 93 1F 00 27 F4 92 66 1B 28 2A 66 90 [21:39:47]GetLastDocTimeStamp 1720906590 [21:39:47]current date 1720906791 [21:39:47]FM_GetShiftState [21:39:47]SAM_PROTO_GetShiftState [21:39:47]wFMCommunicate request_size=4 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 13 01 00 [21:39:47]Write to MH i2c: E2 08 00 94 1F 80 13 01 00 00 00 00 00 30 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 0E 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 0E 00 94 1F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 BB [21:39:47]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:39:47]wFMCommunicate OK [21:39:47]SAM_PROTO_GetShiftState done [21:39:47]FM_GetShiftState done [21:39:47]opened in 1720829379 [21:39:47]opened+sec_in_day 1720915779 [21:39:47]quantity*price = 70059 [21:39:47]sum+1 = 70060 [21:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 132 13.07.2024 21:39 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1963 ФПД: 230462288655911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213951&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1963&fm=230462288655911&tin=02508201610067®Number=0000000000177495&sum=70000 [21:39:48]StoreToDocumentArchive [21:39:48]shift 24 fd 1963 [21:39:48]save to /storage/0024/doc_00001963 [21:39:48]save last doc name /storage/0024/doc_00001963 to /storage/kkm_last_doc_name [21:39:48]save OK [21:39:48]Clear old archive folders... [21:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:39:48]tlvbuf is B6F5BCC0 [21:39:48]SAM_PROTO_ClearQueue [21:39:48]wFMCommunicate request_size=4 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 09 00 00 [21:39:48]Write to MH i2c: E2 08 00 A1 1F 80 09 00 00 00 00 00 00 32 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [21:39:49]RAPDU: 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_ClearQueue done [21:39:49]KKMCreateOFDPacket [21:39:49]OFDProtocolAddRootSTLVToBuf [21:39:49]FM_MakeSignedData [21:39:49]FM_MakeSignedData [21:39:49]SAM_PROTO_SignData [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 0D 01 02 [21:39:49]Write to MH i2c: E2 08 00 A2 1F 80 0D 01 02 00 00 00 00 3A [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [21:39:49]RAPDU: 90 00 [21:39:49]wFMCommunicate OK [21:39:49]wFMCommunicate request_size=255 [21:39:49]MH_SAM_APDU [21:39:49]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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [21:39:49]Write to MH i2c: E2 02 01 A3 1F 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 95 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [21:39:49]RAPDU: 90 00 [21:39:49]wFMCommunicate OK [21:39:49]wFMCommunicate request_size=11 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 0D 02 02 06 D1 9A AE D9 76 27 [21:39:49]Write to MH i2c: E2 0E 00 A4 1F 80 0D 02 02 06 00 D1 9A AE D9 76 27 00 00 D8 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 A4 1F 00 90 00 37 [21:39:49]RAPDU: 90 00 [21:39:49]wFMCommunicate OK [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 0D 03 02 [21:39:49]Write to MH i2c: E2 08 00 A5 1F 80 0D 03 02 00 00 00 00 3F [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 0B 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 0B 00 A5 1F 00 DC 81 8F C9 2A A8 37 1F 90 00 1D [21:39:49]RAPDU: DC 81 8F C9 2A A8 37 1F 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_SignData done [21:39:49]FM_MakeSignedData done [21:39:49]CreateOFDProtocolMessage [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 11 00 00 [21:39:49]Write to MH i2c: E2 08 00 A6 1F 80 11 00 00 00 00 00 00 3F [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 17 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 17 00 A6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 95 [21:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:39:49]wFMCommunicate OK [21:39:49]CreateOFDProtocolMessage done [21:39:49]OFDSenderStorePacket 1963 [21:39:49]StoreOFDPacket docnum=1963 [21:39: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 10 01 00 00 37 9E 08 01 5B AD 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 D1 9A AE D9 76 27 DC 81 8F C9 2A A8 37 1F [21:39:49]CheckFolder [21:39:49]dirname=/storage/ofd_packets [21:39:49]CheckFolder done [21:39:49]ProducePacketName [21:39:49]name=ofd_packets/00001963 [21:39:49]NVStorageSaveData ofd_packets/00001963 [21:39:49]File name is /storage/ofd_packets/00001963 [21:39:49]Write 302 bytes [21:39:49]NVStorageSaveData done [21:39:49]OFDSenderStorePacket done [21:39:49]KKMCreateOFDPacket done [21:39:49]NVStorageSaveData kkm_last_timestamp [21:39:49]File name is /storage/kkm_last_timestamp [21:39:49]Write 4 bytes [21:39:49]NVStorageSaveData done [21:39:49]ExternCall_PrintAddStr [21:39:49]wPrintStart [21:39:49]Write to MH i2c: 01 00 00 A7 1F C6 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 07 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 07 00 A7 1F 00 00 00 00 00 FF 0F DB [21:39:49]RasterBufferAndPrint [21:39:49]line Счет N : (1)1619154 [21:39:49]line ИНН: 02508201610067 [21:39:49]line Контрольно-Кассовый Чек [21:39:49]line ПРОДАЖА [21:39:49]line ТРК (МРК, ГНК) : 31 [21:39:49]line Товар: 2710194210 [21:39:49]line ДТ(л)-К-4 [21:39:49]line 9.650 * 72.60 [21:39:49]line = 700.59 [21:39:49]line НДС 12% НСП 1% [21:39:49]line > о реализуемом товаре [21:39:49]line ОКРУГЛЕНИЕ: -0.59 [21:39:49]line ИТОГО: 700.00 [21:39:49]line Внесено: 700.00 [21:39:49]line СДАЧА: 0.00 [21:39:49]line НСП 1% : 6.20 [21:39:49]line НДС 12% : 74.40 [21:39:49]line Наличными: 700.00 [21:39:49]line Безнал.: 0.00 [21:39:49]line Место: АЗС № 76 "Партнер Нефть" [21:39:49]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:39:49]line СНО: Общий режим [21:39:49]line Чек 132 13.07.2024 21:39 [21:39:49]line Смена: 24 ФФД: 1.0 [21:39:49]line ЗНМ: 0300000124 [21:39:49]line РНМ: 0000000000177495 [21:39:49]line Версия ККМ: 001 [21:39:49]line ФМ: 0000000002098592 [21:39:49]line ФД: 1963 [21:39:49]line ФПД: 230462288655911 [21:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213951&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1963&fm=230462288655911&tin=02508201610067®Number=0000000000177495&sum=70000 [21:39:49]OFD Sender: Processing packet 1963 [packets to send 1, broken 0] [21:39:49]ProducePacketName [21:39:49]name=ofd_packets/00001963 [21:39:49]OFD Sender: To server: pG, [21:39:49]CommunicateWithHost lk.salyk.kg:30040 [21:39:49]ConnectInit lk.salyk.kg [21:39:49]written 0, free lines is 4095 [21:39:49]Connected sock=10 [21:39: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 10 01 00 00 37 9E 08 01 5B AD 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 D1 9A AE D9 76 27 DC 81 8F C9 2A A8 37 1F [21:39: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 B8 0E 47 00 ED 5B 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 07 00 00 F4 03 04 00 5C 9F 92 66 B6 04 01 00 00 E0 85 B8 AC 04 50 5A 0C [21:39:50]CommunicateWithHost err = 0 [21:39:50]CheckOFDResponse [21:39:50]1017 (14) - 77093643461234 [21:39:50]1041 (16) - 0000000002098592 [21:39:50]1040 (4) - 1963 [21:39:50]1012 (4) - 13.07.2024 15:38 [21:39:50]1206 (1) - 0 [21:39:50]OFD Sender: Remove packet 1963 [21:39:50]ProducePacketName [21:39:50]name=ofd_packets/00001963 [21:39:50]NVStorageDeleteData [21:39:50]Write to MH i2c: 01 00 00 D2 1F F1 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 07 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 07 00 D2 1F 00 00 00 00 00 F4 0C F8 [21:39:50]RasterBufferAndPrint [21:39:50]line [21:39:50]line [21:39:50]line [21:39:50]line [21:39:50]line [21:39:50]written 0, free lines is 3323 [21:39:50]MH_Cut [21:39:50]Write to MH i2c: D1 01 00 D9 1F 01 CA [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: D1 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: D1 01 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: D1 01 00 D9 1F 00 C9 [21:39:50]Write to MH i2c: 01 00 00 DA 1F F9 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]OFD Sender: No OFD packet to send [21:39:51]*** Cut start [21:39:51]*** Partial cut [21:39:51]*** CUTSNS_PIN = 1 [21:39:51]*** CUTSNS_PIN = 0 [21:39:51]*** Brake cut motor [21:39:51]Read from MH i2c: 01 [21:39:51]MH_I2C_Read... [21:39:51]*** Stop cut motor [21:39:51]*** Cut end [21:39:51]Read from MH i2c: 01 07 00 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: 01 07 00 DA 1F 00 00 00 00 00 FF 0F 0E [21:39:51]process_action close_receipt done [21:39:51]requested_data is exist [21:39:51]produce_requested_data [21:39:51]requested_item fm.sn is exist - process it [21:39:51]wFMCommunicate request_size=4 [21:39:51]MH_SAM_APDU [21:39:51]CAPDU: 80 11 00 00 [21:39:51]Write to MH i2c: E2 08 00 DB 1F 80 11 00 00 00 00 00 00 74 [21:39:51]Write i2c OK [21:39:51]MH_I2C_Read... [21:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:51]Read from MH i2c: E2 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: E2 17 00 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: E2 17 00 DB 1F 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:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:39:51]wFMCommunicate OK [21:39:51]requested_item fd.num is exist - process it [21:39:51]SAM_PROTO_GetFieldsCounters [21:39:51]wFMCommunicate request_size=4 [21:39:51]MH_SAM_APDU [21:39:51]CAPDU: 80 13 00 00 [21:39:51]Write to MH i2c: E2 08 00 DC 1F 80 13 00 00 00 00 00 00 77 [21:39:51]Write i2c OK [21:39:51]MH_I2C_Read... [21:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:51]Read from MH i2c: E2 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: E2 62 00 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: E2 62 00 DC 1F 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [21:39: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 AB 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:51]wFMCommunicate OK [21:39:51]SAM_PROTO_GetFieldsCounters done [21:39:51]requested_item shift.num is exist - process it [21:39:51]requested_item shift.opened is exist - process it [21:39:51]req_shift_opened [21:39:51]FM_GetShiftState [21:39:51]SAM_PROTO_GetShiftState [21:39:51]wFMCommunicate request_size=4 [21:39:51]MH_SAM_APDU [21:39:51]CAPDU: 80 13 01 00 [21:39:51]Write to MH i2c: E2 08 00 DD 1F 80 13 01 00 00 00 00 00 79 [21:39:51]Write i2c OK [21:39:51]MH_I2C_Read... [21:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:51]Read from MH i2c: E2 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: E2 0E 00 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: E2 0E 00 DD 1F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 04 [21:39:51]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:39:51]wFMCommunicate OK [21:39:51]SAM_PROTO_GetShiftState done [21:39:51]FM_GetShiftState done [21:39:51]req_shift_opened done [21:39:51]requested_item shift.open_date is exist - process it [21:39:51]req_shift_open_date [21:39:51]req_shift_open_date done [21:39:51]produce_requested_data done [21:39:51]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1963,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:39:51]process_action_free close_receipt [21:39:51]json_value_free [21:39:51]json_value_free done [21:39:51]process_json_proto returns [21:39:51]Send response to host [21:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1963,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:39:51]free response buf [21:39:51]execute_script done [21:39:51]execute_script returns [21:39:51]free content buf [21:39:51]Sock 8.Close socket [21:39:51]Sock 8.Thread stoped [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:31]accept exits with 9 [21:40:31]New connection [21:40:31]New thread 3066977636 created [21:40:31]Thread 3066834276 joined [21:40:31]Waiting for new connection... [21:40:31] Sock 9.Parse request [21:40:31]Sock 9.Check first char [21:40:31]Sock 9.First char is OK [21:40:31]request: POST /json_proto HTTP/1.0 [21:40:31]Method: POST [21:40:31]URL: /json_proto [21:40:31]Method is POST - this is cgi request [21:40:31]url: /json_proto [21:40:31]query_string will be loaded in cgi processing [21:40:31]execute_cgi json_proto POST (null) [21:40:31]execute_cgi path=json_proto method=POST [21:40:31]POST find Content-Length [21:40:31]Host: 172.17.35.133:8080 [21:40:31]Content-Length: 623 [21:40:31]Content-Type: application/json [21:40:31] [21:40:31]POST finish read [21:40:31]Found Content-Length = 623 [21:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256359", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:31]execute_script... [21:40: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)256359", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:31]POST & json_proto [21:40:31]process_json_proto [21:40:31]json parsed OK: [21:40:31]protocol is kg_v1.0 [21:40:31]action value=close_receipt [21:40:31]process_action close_receipt [21:40:31]cmd_close_receipt [21:40:31]MH_GetDate [21:40:31]Write to MH i2c: F0 00 00 DE 1F EC [21:40:31]Write i2c OK [21:40:31]MH_I2C_Read... [21:40:31]Read from MH i2c: F0 [21:40:31]MH_I2C_Read... [21:40:31]Read from MH i2c: F0 09 00 [21:40:31]MH_I2C_Read... [21:40:31]Read from MH i2c: F0 09 00 DE 1F 00 52 F4 92 66 1B 28 2A 66 06 [21:40:31]GetLastDocTimeStamp 1720906791 [21:40:31]current date 1720906834 [21:40:31]FM_GetShiftState [21:40:31]SAM_PROTO_GetShiftState [21:40:31]wFMCommunicate request_size=4 [21:40:31]MH_SAM_APDU [21:40:31]CAPDU: 80 13 01 00 [21:40:31]Write to MH i2c: E2 08 00 DF 1F 80 13 01 00 00 00 00 00 7B [21:40:31]Write i2c OK [21:40:31]MH_I2C_Read... [21:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:31]Read from MH i2c: E2 [21:40:31]MH_I2C_Read... [21:40:31]Read from MH i2c: E2 0E 00 [21:40:31]MH_I2C_Read... [21:40:31]Read from MH i2c: E2 0E 00 DF 1F 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 06 [21:40:31]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:40:31]wFMCommunicate OK [21:40:31]SAM_PROTO_GetShiftState done [21:40:31]FM_GetShiftState done [21:40:31]opened in 1720829379 [21:40:31]opened+sec_in_day 1720915779 [21:40:31]quantity*price = 14000 [21:40:31]sum+1 = 14001 [21:40:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 133 13.07.2024 21:40 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1964 ФПД: 12271869673441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214034&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1964&fm=12271869673441&tin=02508201610067®Number=0000000000177495&sum=14000 0 [21:40:32]StoreToDocumentArchive [21:40:32]shift 24 fd 1964 [21:40:32]save to /storage/0024/doc_00001964 [21:40:32]save last doc name /storage/0024/doc_00001964 to /storage/kkm_last_doc_name [21:40:32]save OK [21:40:32]Clear old archive folders... [21:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:40:32]tlvbuf is 00FDF440 [21:40:32]SAM_PROTO_ClearQueue [21:40:32]wFMCommunicate request_size=4 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 09 00 00 [21:40:32]Write to MH i2c: E2 08 00 EC 1F 80 09 00 00 00 00 00 00 7D [21:40:32]Write i2c OK [21:40:32]MH_I2C_Read... [21:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:32]Read from MH i2c: E2 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 03 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [21:40:32]RAPDU: 90 00 [21:40:32]wFMCommunicate OK [21:40:32]SAM_PROTO_ClearQueue done [21:40:32]KKMCreateOFDPacket [21:40:32]OFDProtocolAddRootSTLVToBuf [21:40:32]FM_MakeSignedData [21:40:32]FM_MakeSignedData [21:40:32]SAM_PROTO_SignData [21:40:32]wFMCommunicate request_size=4 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 0D 01 02 [21:40:32]Write to MH i2c: E2 08 00 ED 1F 80 0D 01 02 00 00 00 00 85 [21:40:32]Write i2c OK [21:40:32]MH_I2C_Read... [21:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:32]Read from MH i2c: E2 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 03 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [21:40:32]RAPDU: 90 00 [21:40:32]wFMCommunicate OK [21:40:32]wFMCommunicate request_size=255 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 0D 02 02 FA 03 00 13 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 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 85 00 00 00 F4 03 04 00 52 F4 92 66 0E 04 04 00 18 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 [21:40:32]Write to MH i2c: E2 02 01 EE 1F 80 0D 02 02 FA 00 03 00 13 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 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 85 00 00 00 F4 03 04 00 52 F4 92 66 0E 04 04 00 18 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 00 00 F8 [21:40:32]Write i2c OK [21:40:32]MH_I2C_Read... [21:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:32]Read from MH i2c: E2 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 03 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [21:40:32]RAPDU: 90 00 [21:40:32]wFMCommunicate OK [21:40:32]wFMCommunicate request_size=34 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 07 00 00 35 04 06 00 0B 29 44 6E BF E1 [21:40:32]Write to MH i2c: E2 25 00 EF 1F 80 0D 02 02 1D 00 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 AC 07 00 00 35 04 06 00 0B 29 44 6E BF E1 00 00 85 [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:33]Read from MH i2c: E2 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: E2 03 00 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [21:40:33]RAPDU: 90 00 [21:40:33]wFMCommunicate OK [21:40:33]wFMCommunicate request_size=4 [21:40:33]MH_SAM_APDU [21:40:33]CAPDU: 80 0D 03 02 [21:40:33]Write to MH i2c: E2 08 00 F0 1F 80 0D 03 02 00 00 00 00 8A [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:33]Read from MH i2c: E2 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: E2 0B 00 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: E2 0B 00 F0 1F 00 20 07 E8 78 FC 91 E7 9D 90 00 23 [21:40:33]RAPDU: 20 07 E8 78 FC 91 E7 9D 90 00 [21:40:33]wFMCommunicate OK [21:40:33]SAM_PROTO_SignData done [21:40:33]FM_MakeSignedData done [21:40:33]CreateOFDProtocolMessage [21:40:33]wFMCommunicate request_size=4 [21:40:33]MH_SAM_APDU [21:40:33]CAPDU: 80 11 00 00 [21:40:33]Write to MH i2c: E2 08 00 F1 1F 80 11 00 00 00 00 00 00 8A [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:33]Read from MH i2c: E2 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: E2 17 00 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: E2 17 00 F1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E0 [21:40: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:40:33]wFMCommunicate OK [21:40:33]CreateOFDProtocolMessage done [21:40:33]OFDSenderStorePacket 1964 [21:40:33]StoreOFDPacket docnum=1964 [21:40: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 27 01 00 00 B8 CE 1F 01 45 66 5A 03 01 00 03 00 13 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 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 85 00 00 00 F4 03 04 00 52 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 0B 29 44 6E BF E1 20 07 E8 78 FC 91 E7 9D [21:40:33]CheckFolder [21:40:33]dirname=/storage/ofd_packets [21:40:33]CheckFolder done [21:40:33]ProducePacketName [21:40:33]name=ofd_packets/00001964 [21:40:33]NVStorageSaveData ofd_packets/00001964 [21:40:33]File name is /storage/ofd_packets/00001964 [21:40:33]Write 325 bytes [21:40:33]NVStorageSaveData done [21:40:33]OFDSenderStorePacket done [21:40:33]KKMCreateOFDPacket done [21:40:33]NVStorageSaveData kkm_last_timestamp [21:40:33]File name is /storage/kkm_last_timestamp [21:40:33]Write 4 bytes [21:40:33]NVStorageSaveData done [21:40:33]ExternCall_PrintAddStr [21:40:33]wPrintStart [21:40:33]Write to MH i2c: 01 00 00 F2 1F 11 [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: 01 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: 01 07 00 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: 01 07 00 F2 1F 00 00 00 00 00 FF 0F 26 [21:40:33]RasterBufferAndPrint [21:40:33]line Счет N : (3)256359 [21:40:33]line ИНН: 02508201610067 [21:40:33]line Контрольно-Кассовый Чек [21:40:33]line ПРОДАЖА [21:40:33]line Товар: 48743587 [21:40:33]line Сигареты Winston XStyle Silver [21:40:33]line 1.000 * 140.00 [21:40:33]line = 140.00 [21:40:33]line НДС 12% НСП 1% [21:40:33]line > о реализуемом товаре [21:40:33]line ИТОГО: 140.00 [21:40:33]line НСП 1% : 1.24 [21:40:33]line НДС 12% : 14.87 [21:40:33]line Наличными: 140.00 [21:40:33]line Безнал.: 0.00 [21:40:33]line Место: АЗС № 76 "Партнер Нефть" [21:40:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:40:33]line СНО: Общий режим [21:40:33]line Чек 133 13.07.2024 21:40 [21:40:33]line Смена: 24 ФФД: 1.0 [21:40:33]line ЗНМ: 0300000124 [21:40:33]line РНМ: 0000000000177495 [21:40:33]line Версия ККМ: 001 [21:40:33]line ФМ: 0000000002098592 [21:40:33]line ФД: 1964 [21:40:33]line ФПД: 12271869673441 [21:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214034&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1964&fm=12271869673441&tin=02508201610067®Number=0000000000177495&sum=14000 [21:40:33]line 0 [21:40:33]OFD Sender: Processing packet 1964 [packets to send 1, broken 0] [21:40:33]ProducePacketName [21:40:33]name=ofd_packets/00001964 [21:40:33]OFD Sender: To server: pG, [21:40:33]CommunicateWithHost lk.salyk.kg:30040 [21:40:33]ConnectInit lk.salyk.kg [21:40:33]written 0, free lines is 4095 [21:40:33]Connected sock=10 [21:40:33]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 27 01 00 00 B8 CE 1F 01 45 66 5A 03 01 00 03 00 13 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 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 85 00 00 00 F4 03 04 00 52 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 0B 29 44 6E BF E1 20 07 E8 78 FC 91 E7 9D [21:40:33]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 71 47 00 6C DA 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 07 00 00 F4 03 04 00 87 9F 92 66 B6 04 01 00 00 26 DE 0A 7B 3F 2E D2 85 [21:40:33]CommunicateWithHost err = 0 [21:40:33]CheckOFDResponse [21:40:33]1017 (14) - 77093643461234 [21:40:33]1041 (16) - 0000000002098592 [21:40:33]1040 (4) - 1964 [21:40:33]1012 (4) - 13.07.2024 15:38 [21:40:33]1206 (1) - 0 [21:40:33]OFD Sender: Remove packet 1964 [21:40:33]ProducePacketName [21:40:33]name=ofd_packets/00001964 [21:40:33]NVStorageDeleteData [21:40:33]Write to MH i2c: 01 00 00 1B 20 3B [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: 01 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: 01 07 00 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: 01 07 00 1B 20 00 00 00 00 00 06 0D 55 [21:40:33]RasterBufferAndPrint [21:40:33]line [21:40:33]line [21:40:33]line [21:40:33]line [21:40:33]line [21:40:33]written 0, free lines is 3340 [21:40:33]MH_Cut [21:40:33]Write to MH i2c: D1 01 00 22 20 01 14 [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: D1 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: D1 01 00 [21:40:33]MH_I2C_Read... [21:40:33]Read from MH i2c: D1 01 00 22 20 00 13 [21:40:33]Write to MH i2c: 01 00 00 23 20 43 [21:40:33]Write i2c OK [21:40:33]MH_I2C_Read... [21:40:34]OFD Sender: No OFD packet to send [21:40:34]*** Cut start [21:40:34]*** Partial cut [21:40:34]*** CUTSNS_PIN = 1 [21:40:34]*** CUTSNS_PIN = 0 [21:40:34]*** Brake cut motor [21:40:35]Read from MH i2c: 01 [21:40:35]MH_I2C_Read... [21:40:35]*** Stop cut motor [21:40:35]*** Cut end [21:40:35]Read from MH i2c: 01 07 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: 01 07 00 23 20 00 00 00 00 00 FF 0F 58 [21:40:35]process_action close_receipt done [21:40:35]requested_data is exist [21:40:35]produce_requested_data [21:40:35]requested_item fm.sn is exist - process it [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 11 00 00 [21:40:35]Write to MH i2c: E2 08 00 24 20 80 11 00 00 00 00 00 00 BE [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 17 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 17 00 24 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 14 [21:40: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:40:35]wFMCommunicate OK [21:40:35]requested_item fd.num is exist - process it [21:40:35]SAM_PROTO_GetFieldsCounters [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 13 00 00 [21:40:35]Write to MH i2c: E2 08 00 25 20 80 13 00 00 00 00 00 00 C1 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 62 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 62 00 25 20 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [21:40: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 AC 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:35]wFMCommunicate OK [21:40:35]SAM_PROTO_GetFieldsCounters done [21:40:35]requested_item shift.num is exist - process it [21:40:35]requested_item shift.opened is exist - process it [21:40:35]req_shift_opened [21:40:35]FM_GetShiftState [21:40:35]SAM_PROTO_GetShiftState [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 13 01 00 [21:40:35]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 0E 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4E [21:40:35]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:40:35]wFMCommunicate OK [21:40:35]SAM_PROTO_GetShiftState done [21:40:35]FM_GetShiftState done [21:40:35]req_shift_opened done [21:40:35]requested_item shift.open_date is exist - process it [21:40:35]req_shift_open_date [21:40:35]req_shift_open_date done [21:40:35]produce_requested_data done [21:40:35]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1964,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:40:35]process_action_free close_receipt [21:40:35]json_value_free [21:40:35]json_value_free done [21:40:35]process_json_proto returns [21:40:35]Send response to host [21:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1964,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:40:35]free response buf [21:40:35]execute_script done [21:40:35]execute_script returns [21:40:35]free content buf [21:40:35]Sock 9.Close socket [21:40:35]Sock 9.Thread stoped [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:57]accept exits with 8 [21:41:57]New connection [21:41:57]New thread 3066834276 created [21:41:57]Thread 3066977636 joined [21:41:57]Waiting for new connection... [21:41:57] Sock 8.Parse request [21:41:57]Sock 8.Check first char [21:41:57]Sock 8.First char is OK [21:41:57]request: POST /json_proto HTTP/1.0 [21:41:57]Method: POST [21:41:57]URL: /json_proto [21:41:57]Method is POST - this is cgi request [21:41:57]url: /json_proto [21:41:57]query_string will be loaded in cgi processing [21:41:57]execute_cgi json_proto POST (null) [21:41:57]execute_cgi path=json_proto method=POST [21:41:57]POST find Content-Length [21:41:57]Host: 172.17.35.133:8080 [21:41:57]Content-Length: 688 [21:41:57]Content-Type: application/json [21:41:57] [21:41:57]POST finish read [21:41:57]Found Content-Length = 688 [21:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619157", "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" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:57]execute_script... [21:41: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 : (1)1619157", "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" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:57]POST & json_proto [21:41:57]process_json_proto [21:41:57]json parsed OK: [21:41:57]protocol is kg_v1.0 [21:41:57]action value=close_receipt [21:41:57]process_action close_receipt [21:41:57]cmd_close_receipt [21:41:57]MH_GetDate [21:41:57]Write to MH i2c: F0 00 00 27 20 36 [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: F0 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: F0 09 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: F0 09 00 27 20 00 A8 F4 92 66 1B 28 2A 66 A6 [21:41:57]GetLastDocTimeStamp 1720906834 [21:41:57]current date 1720906920 [21:41:57]FM_GetShiftState [21:41:57]SAM_PROTO_GetShiftState [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 13 01 00 [21:41:57]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 0E 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 50 [21:41:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:41:57]wFMCommunicate OK [21:41:57]SAM_PROTO_GetShiftState done [21:41:57]FM_GetShiftState done [21:41:57]opened in 1720829379 [21:41:57]opened+sec_in_day 1720915779 [21:41:57]quantity*price = 100042 [21:41:57]sum+1 = 100044 [21:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 134 13.07.2024 21:42 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1965 ФПД: 73600508540434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214200&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1965&fm=73600508540434&tin=02508201610067®Number=0000000000177495&sum=100000 [21:41:58]StoreToDocumentArchive [21:41:58]shift 24 fd 1965 [21:41:58]save to /storage/0024/doc_00001965 [21:41:58]save last doc name /storage/0024/doc_00001965 to /storage/kkm_last_doc_name [21:41:58]save OK [21:41:58]Clear old archive folders... [21:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:41:58]tlvbuf is 00FDF150 [21:41:58]SAM_PROTO_ClearQueue [21:41:58]wFMCommunicate request_size=4 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 09 00 00 [21:41:58]Write to MH i2c: E2 08 00 35 20 80 09 00 00 00 00 00 00 C7 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [21:41:58]RAPDU: 90 00 [21:41:58]wFMCommunicate OK [21:41:58]SAM_PROTO_ClearQueue done [21:41:58]KKMCreateOFDPacket [21:41:58]OFDProtocolAddRootSTLVToBuf [21:41:58]FM_MakeSignedData [21:41:58]FM_MakeSignedData [21:41:58]SAM_PROTO_SignData [21:41:58]wFMCommunicate request_size=4 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 0D 01 02 [21:41:58]Write to MH i2c: E2 08 00 36 20 80 0D 01 02 00 00 00 00 CF [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [21:41:58]RAPDU: 90 00 [21:41:58]wFMCommunicate OK [21:41:58]wFMCommunicate request_size=255 [21:41:58]MH_SAM_APDU [21:41:58]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A8 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [21:41:58]Write to MH i2c: E2 02 01 37 20 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A8 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 46 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [21:41:59]RAPDU: 90 00 [21:41:59]wFMCommunicate OK [21:41:59]wFMCommunicate request_size=11 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 0D 02 02 06 42 F0 74 2A B6 12 [21:41:59]Write to MH i2c: E2 0E 00 38 20 80 0D 02 02 06 00 42 F0 74 2A B6 12 00 00 76 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [21:41:59]RAPDU: 90 00 [21:41:59]wFMCommunicate OK [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 0D 03 02 [21:41:59]Write to MH i2c: E2 08 00 39 20 80 0D 03 02 00 00 00 00 D4 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 0B 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 0B 00 39 20 00 06 65 0F 27 0C A9 A5 99 90 00 69 [21:41:59]RAPDU: 06 65 0F 27 0C A9 A5 99 90 00 [21:41:59]wFMCommunicate OK [21:41:59]SAM_PROTO_SignData done [21:41:59]FM_MakeSignedData done [21:41:59]CreateOFDProtocolMessage [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 11 00 00 [21:41:59]Write to MH i2c: E2 08 00 3A 20 80 11 00 00 00 00 00 00 D4 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 17 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 17 00 3A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 2A [21:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:41:59]wFMCommunicate OK [21:41:59]CreateOFDProtocolMessage done [21:41:59]OFDSenderStorePacket 1965 [21:41:59]StoreOFDPacket docnum=1965 [21:41: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 02 C7 08 01 36 59 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A8 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 42 F0 74 2A B6 12 06 65 0F 27 0C A9 A5 99 [21:41:59]CheckFolder [21:41:59]dirname=/storage/ofd_packets [21:41:59]CheckFolder done [21:41:59]ProducePacketName [21:41:59]name=ofd_packets/00001965 [21:41:59]NVStorageSaveData ofd_packets/00001965 [21:41:59]File name is /storage/ofd_packets/00001965 [21:41:59]Write 302 bytes [21:41:59]NVStorageSaveData done [21:41:59]OFDSenderStorePacket done [21:41:59]KKMCreateOFDPacket done [21:41:59]NVStorageSaveData kkm_last_timestamp [21:41:59]File name is /storage/kkm_last_timestamp [21:41:59]Write 4 bytes [21:41:59]NVStorageSaveData done [21:41:59]ExternCall_PrintAddStr [21:41:59]wPrintStart [21:41:59]Write to MH i2c: 01 00 00 3B 20 5B [21:41:59]OFD Sender: Processing packet 1965 [packets to send 1, broken 0] [21:41:59]ProducePacketName [21:41:59]name=ofd_packets/00001965 [21:41:59]OFD Sender: To server: pG, [21:41:59]CommunicateWithHost lk.salyk.kg:30040 [21:41:59]ConnectInit lk.salyk.kg [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 07 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 FF 0F 70 [21:41:59]RasterBufferAndPrint [21:41:59]line Счет N : (1)1619157 [21:41:59]line ИНН: 02508201610067 [21:41:59]line Контрольно-Кассовый Чек [21:41:59]line ПРОДАЖА [21:41:59]line ТРК (МРК, ГНК) : 41 [21:41:59]line Товар: 2710194210 [21:41:59]line ДТ(л)-К-4 [21:41:59]line 13.780 * 72.60 [21:41:59]line = 1000.43 [21:41:59]line НДС 12% НСП 1% [21:41:59]line > о реализуемом товаре [21:41:59]line ОКРУГЛЕНИЕ: -0.43 [21:41:59]line ИТОГО: 1000.00 [21:41:59]line Внесено: 1000.00 [21:41:59]line СДАЧА: 0.00 [21:41:59]line НСП 1% : 8.85 [21:41:59]line НДС 12% : 106.24 [21:41:59]line Наличными: 1000.00 [21:41:59]line Безнал.: 0.00 [21:41:59]line Место: АЗС № 76 "Партнер Нефть" [21:41:59]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:41:59]line СНО: Общий режим [21:41:59]line Чек 134 13.07.2024 21:42 [21:41:59]line Смена: 24 ФФД: 1.0 [21:41:59]line ЗНМ: 0300000124 [21:41:59]line РНМ: 0000000000177495 [21:41:59]line Версия ККМ: 001 [21:41:59]line ФМ: 0000000002098592 [21:41:59]line ФД: 1965 [21:41:59]line ФПД: 73600508540434 [21:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214200&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1965&fm=73600508540434&tin=02508201610067®Number=0000000000177495&sum=100000 [21:41:59]Connected sock=10 [21:41: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 10 01 00 00 02 C7 08 01 36 59 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A8 F4 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 42 F0 74 2A B6 12 06 65 0F 27 0C A9 A5 99 [21:41:59]written 0, free lines is 4095 [21:41: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 05 3D 47 00 B6 76 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 07 00 00 F4 03 04 00 DE 9F 92 66 B6 04 01 00 00 6A 7B 8F C7 D9 26 13 F7 [21:41:59]CommunicateWithHost err = 0 [21:41:59]CheckOFDResponse [21:41:59]1017 (14) - 77093643461234 [21:41:59]1041 (16) - 0000000002098592 [21:41:59]1040 (4) - 1965 [21:41:59]1012 (4) - 13.07.2024 15:40 [21:41:59]1206 (1) - 0 [21:41:59]OFD Sender: Remove packet 1965 [21:41:59]ProducePacketName [21:41:59]name=ofd_packets/00001965 [21:41:59]NVStorageDeleteData [21:42:00]Write to MH i2c: 01 00 00 66 20 86 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 66 20 00 00 00 00 00 E9 0C 82 [21:42:00]RasterBufferAndPrint [21:42:00]line [21:42:00]line [21:42:00]line [21:42:00]line [21:42:00]line [21:42:00]written 0, free lines is 3314 [21:42:00]MH_Cut [21:42:00]Write to MH i2c: D1 01 00 6D 20 01 5F [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: D1 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: D1 01 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: D1 01 00 6D 20 00 5E [21:42:00]Write to MH i2c: 01 00 00 6E 20 8E [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]OFD Sender: No OFD packet to send [21:42:00]*** Cut start [21:42:00]*** Partial cut [21:42:00]*** CUTSNS_PIN = 1 [21:42:00]*** CUTSNS_PIN = 0 [21:42:01]*** Brake cut motor [21:42:01]Read from MH i2c: 01 [21:42:01]MH_I2C_Read... [21:42:01]*** Stop cut motor [21:42:01]*** Cut end [21:42:01]Read from MH i2c: 01 07 00 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [21:42:01]process_action close_receipt done [21:42:01]requested_data is exist [21:42:01]produce_requested_data [21:42:01]requested_item fm.sn is exist - process it [21:42:01]wFMCommunicate request_size=4 [21:42:01]MH_SAM_APDU [21:42:01]CAPDU: 80 11 00 00 [21:42:01]Write to MH i2c: E2 08 00 6F 20 80 11 00 00 00 00 00 00 09 [21:42:01]Write i2c OK [21:42:01]MH_I2C_Read... [21:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:01]Read from MH i2c: E2 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: E2 17 00 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: E2 17 00 6F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 5F [21:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:42:01]wFMCommunicate OK [21:42:01]requested_item fd.num is exist - process it [21:42:01]SAM_PROTO_GetFieldsCounters [21:42:01]wFMCommunicate request_size=4 [21:42:01]MH_SAM_APDU [21:42:01]CAPDU: 80 13 00 00 [21:42:01]Write to MH i2c: E2 08 00 70 20 80 13 00 00 00 00 00 00 0C [21:42:01]Write i2c OK [21:42:01]MH_I2C_Read... [21:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:01]Read from MH i2c: E2 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: E2 62 00 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: E2 62 00 70 20 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [21:42: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 AD 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:01]wFMCommunicate OK [21:42:01]SAM_PROTO_GetFieldsCounters done [21:42:01]requested_item shift.num is exist - process it [21:42:01]requested_item shift.opened is exist - process it [21:42:01]req_shift_opened [21:42:01]FM_GetShiftState [21:42:01]SAM_PROTO_GetShiftState [21:42:01]wFMCommunicate request_size=4 [21:42:01]MH_SAM_APDU [21:42:01]CAPDU: 80 13 01 00 [21:42:01]Write to MH i2c: E2 08 00 71 20 80 13 01 00 00 00 00 00 0E [21:42:01]Write i2c OK [21:42:01]MH_I2C_Read... [21:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:01]Read from MH i2c: E2 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: E2 0E 00 [21:42:01]MH_I2C_Read... [21:42:01]Read from MH i2c: E2 0E 00 71 20 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 99 [21:42:01]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:42:01]wFMCommunicate OK [21:42:01]SAM_PROTO_GetShiftState done [21:42:01]FM_GetShiftState done [21:42:01]req_shift_opened done [21:42:01]requested_item shift.open_date is exist - process it [21:42:01]req_shift_open_date [21:42:01]req_shift_open_date done [21:42:01]produce_requested_data done [21:42:01]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1965,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:42:01]process_action_free close_receipt [21:42:01]json_value_free [21:42:01]json_value_free done [21:42:01]process_json_proto returns [21:42:01]Send response to host [21:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1965,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:42:01]free response buf [21:42:01]execute_script done [21:42:01]execute_script returns [21:42:01]free content buf [21:42:01]Sock 8.Close socket [21:42:01]Sock 8.Thread stoped [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:26]accept exits with 9 [21:45:26]New connection [21:45:26]New thread 3066977636 created [21:45:26]Thread 3066834276 joined [21:45:26]Waiting for new connection... [21:45:26] Sock 9.Parse request [21:45:26]Sock 9.Check first char [21:45:26]Sock 9.First char is OK [21:45:26]request: POST /json_proto HTTP/1.0 [21:45:26]Method: POST [21:45:26]URL: /json_proto [21:45:26]Method is POST - this is cgi request [21:45:26]url: /json_proto [21:45:26]query_string will be loaded in cgi processing [21:45:26]execute_cgi json_proto POST (null) [21:45:26]execute_cgi path=json_proto method=POST [21:45:26]POST find Content-Length [21:45:26]Host: 172.17.35.133:8080 [21:45:26]Content-Length: 723 [21:45:26]Content-Type: application/json [21:45:26] [21:45:26]POST finish read [21:45:26]Found Content-Length = 723 [21:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256360", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.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" ] } } [21:45:26]execute_script... [21:45:26]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)256360", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.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" ] } } [21:45:26]POST & json_proto [21:45:26]process_json_proto [21:45:26]json parsed OK: [21:45:26]protocol is kg_v1.0 [21:45:26]action value=close_receipt [21:45:26]process_action close_receipt [21:45:26]cmd_close_receipt [21:45:26]MH_GetDate [21:45:26]Write to MH i2c: F0 00 00 72 20 81 [21:45:26]Write i2c OK [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: F0 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: F0 09 00 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: F0 09 00 72 20 00 79 F5 92 66 1B 28 2A 66 C3 [21:45:26]GetLastDocTimeStamp 1720906920 [21:45:26]current date 1720907129 [21:45:26]FM_GetShiftState [21:45:26]SAM_PROTO_GetShiftState [21:45:26]wFMCommunicate request_size=4 [21:45:26]MH_SAM_APDU [21:45:26]CAPDU: 80 13 01 00 [21:45:26]Write to MH i2c: E2 08 00 73 20 80 13 01 00 00 00 00 00 10 [21:45:26]Write i2c OK [21:45:26]MH_I2C_Read... [21:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:26]Read from MH i2c: E2 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: E2 0E 00 [21:45:26]MH_I2C_Read... [21:45:26]Read from MH i2c: E2 0E 00 73 20 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 9B [21:45:26]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:45:26]wFMCommunicate OK [21:45:26]SAM_PROTO_GetShiftState done [21:45:26]FM_GetShiftState done [21:45:26]opened in 1720829379 [21:45:26]opened+sec_in_day 1720915779 [21:45:26]quantity*price = 14000 [21:45:26]sum+1 = 14001 [21:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 135 13.07.2024 21:45 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1966 ФПД: 39684564134667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214529&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1966&fm=39684564134667&tin=02508201610067®Number=0000000000177495&sum=14000 0 [21:45:27]StoreToDocumentArchive [21:45:27]shift 24 fd 1966 [21:45:27]save to /storage/0024/doc_00001966 [21:45:27]save last doc name /storage/0024/doc_00001966 to /storage/kkm_last_doc_name [21:45:27]save OK [21:45:27]Clear old archive folders... [21:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=300 [21:45:27]tlvbuf is 010339F0 [21:45:27]SAM_PROTO_ClearQueue [21:45:27]wFMCommunicate request_size=4 [21:45:27]MH_SAM_APDU [21:45:27]CAPDU: 80 09 00 00 [21:45:27]Write to MH i2c: E2 08 00 80 20 80 09 00 00 00 00 00 00 12 [21:45:27]Write i2c OK [21:45:27]MH_I2C_Read... [21:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:27]Read from MH i2c: E2 [21:45:27]MH_I2C_Read... [21:45:27]Read from MH i2c: E2 03 00 [21:45:27]MH_I2C_Read... [21:45:27]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [21:45:27]RAPDU: 90 00 [21:45:27]wFMCommunicate OK [21:45:27]SAM_PROTO_ClearQueue done [21:45:27]KKMCreateOFDPacket [21:45:27]OFDProtocolAddRootSTLVToBuf [21:45:27]FM_MakeSignedData [21:45:27]FM_MakeSignedData [21:45:27]SAM_PROTO_SignData [21:45:27]wFMCommunicate request_size=4 [21:45:27]MH_SAM_APDU [21:45:27]CAPDU: 80 0D 01 02 [21:45:27]Write to MH i2c: E2 08 00 81 20 80 0D 01 02 00 00 00 00 1A [21:45:27]Write i2c OK [21:45:27]MH_I2C_Read... [21:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:27]Read from MH i2c: E2 [21:45:27]MH_I2C_Read... [21:45:27]Read from MH i2c: E2 03 00 [21:45:27]MH_I2C_Read... [21:45:27]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [21:45:27]RAPDU: 90 00 [21:45:27]wFMCommunicate OK [21:45:27]wFMCommunicate request_size=255 [21:45:27]MH_SAM_APDU [21:45:27]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 87 00 00 00 F4 03 04 00 79 F5 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 [21:45:27]Write to MH i2c: E2 02 01 82 20 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 87 00 00 00 F4 03 04 00 79 F5 92 66 0E 04 04 00 18 00 00 00 B9 04 01 00 01 0D 04 10 00 00 00 FB [21:45:27]Write i2c OK [21:45:27]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [21:45:28]RAPDU: 90 00 [21:45:28]wFMCommunicate OK [21:45:28]wFMCommunicate request_size=59 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 0D 02 02 36 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 07 00 00 35 04 06 00 24 17 C8 59 2B 0B [21:45:28]Write to MH i2c: E2 3E 00 83 20 80 0D 02 02 36 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 07 00 00 35 04 06 00 24 17 C8 59 2B 0B 00 00 90 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [21:45:28]RAPDU: 90 00 [21:45:28]wFMCommunicate OK [21:45:28]wFMCommunicate request_size=4 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 0D 03 02 [21:45:28]Write to MH i2c: E2 08 00 84 20 80 0D 03 02 00 00 00 00 1F [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 0B 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 0B 00 84 20 00 11 52 44 F6 AC D3 94 E2 90 00 B2 [21:45:28]RAPDU: 11 52 44 F6 AC D3 94 E2 90 00 [21:45:28]wFMCommunicate OK [21:45:28]SAM_PROTO_SignData done [21:45:28]FM_MakeSignedData done [21:45:28]CreateOFDProtocolMessage [21:45:28]wFMCommunicate request_size=4 [21:45:28]MH_SAM_APDU [21:45:28]CAPDU: 80 11 00 00 [21:45:28]Write to MH i2c: E2 08 00 85 20 80 11 00 00 00 00 00 00 1F [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:28]Read from MH i2c: E2 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 17 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: E2 17 00 85 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 75 [21:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:45:28]wFMCommunicate OK [21:45:28]CreateOFDProtocolMessage done [21:45:28]OFDSenderStorePacket 1966 [21:45:28]StoreOFDPacket docnum=1966 [21:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 40 01 00 00 6E BF 38 01 38 CB 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 87 00 00 00 F4 03 04 00 79 F5 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 24 17 C8 59 2B 0B 11 52 44 F6 AC D3 94 E2 [21:45:28]CheckFolder [21:45:28]dirname=/storage/ofd_packets [21:45:28]CheckFolder done [21:45:28]ProducePacketName [21:45:28]name=ofd_packets/00001966 [21:45:28]NVStorageSaveData ofd_packets/00001966 [21:45:28]File name is /storage/ofd_packets/00001966 [21:45:28]Write 350 bytes [21:45:28]NVStorageSaveData done [21:45:28]OFDSenderStorePacket done [21:45:28]KKMCreateOFDPacket done [21:45:28]NVStorageSaveData kkm_last_timestamp [21:45:28]File name is /storage/kkm_last_timestamp [21:45:28]Write 4 bytes [21:45:28]NVStorageSaveData done [21:45:28]ExternCall_PrintAddStr [21:45:28]wPrintStart [21:45:28]Write to MH i2c: 01 00 00 86 20 A6 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 07 00 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [21:45:28]RasterBufferAndPrint [21:45:28]line Счет N : (3)256360 [21:45:28]line ИНН: 02508201610067 [21:45:28]line Контрольно-Кассовый Чек [21:45:28]line ПРОДАЖА [21:45:28]line Товар: 4700007110066 [21:45:28]line Сэндвич с майонезом Талас Даамы [21:45:28]line 2.000 * 70.00 [21:45:28]line = 140.00 [21:45:28]line НДС 12% НСП 1% [21:45:28]line > о реализуемом товаре [21:45:28]line ИТОГО: 140.00 [21:45:28]line НСП 1% : 1.24 [21:45:28]line НДС 12% : 14.87 [21:45:28]line Наличными: 140.00 [21:45:28]line Безнал.: 0.00 [21:45:28]line Место: АЗС № 76 "Партнер Нефть" [21:45:28]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:45:28]line СНО: Общий режим [21:45:28]line Чек 135 13.07.2024 21:45 [21:45:28]line Смена: 24 ФФД: 1.0 [21:45:28]line ЗНМ: 0300000124 [21:45:28]line РНМ: 0000000000177495 [21:45:28]line Версия ККМ: 001 [21:45:28]line ФМ: 0000000002098592 [21:45:28]line ФД: 1966 [21:45:28]line ФПД: 39684564134667 [21:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214529&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1966&fm=39684564134667&tin=02508201610067®Number=0000000000177495&sum=14000 [21:45:28]line 0 [21:45:28]OFD Sender: Processing packet 1966 [packets to send 1, broken 0] [21:45:28]ProducePacketName [21:45:28]name=ofd_packets/00001966 [21:45:28]OFD Sender: To server: pG, [21:45:28]CommunicateWithHost lk.salyk.kg:30040 [21:45:28]ConnectInit lk.salyk.kg [21:45:28]written 0, free lines is 4095 [21:45:28]Connected sock=10 [21:45:28]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 40 01 00 00 6E BF 38 01 38 CB 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 87 00 00 00 F4 03 04 00 79 F5 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 24 17 C8 59 2B 0B 11 52 44 F6 AC D3 94 E2 [21:45:28]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 66 C1 47 00 68 3B 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 AE 07 00 00 F4 03 04 00 AF A0 92 66 B6 04 01 00 00 09 3B CD 5A 2B 0D 9A 80 [21:45:28]CommunicateWithHost err = 0 [21:45:28]CheckOFDResponse [21:45:28]1017 (14) - 77093643461234 [21:45:28]1041 (16) - 0000000002098592 [21:45:28]1040 (4) - 1966 [21:45:28]1012 (4) - 13.07.2024 15:43 [21:45:28]1206 (1) - 0 [21:45:28]OFD Sender: Remove packet 1966 [21:45:28]ProducePacketName [21:45:28]name=ofd_packets/00001966 [21:45:28]NVStorageDeleteData [21:45:29]Write to MH i2c: 01 00 00 AF 20 CF [21:45:29]Write i2c OK [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: 01 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: 01 07 00 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: 01 07 00 AF 20 00 00 00 00 00 F6 0C D8 [21:45:29]RasterBufferAndPrint [21:45:29]line [21:45:29]line [21:45:29]line [21:45:29]line [21:45:29]line [21:45:29]written 0, free lines is 3324 [21:45:29]MH_Cut [21:45:29]Write to MH i2c: D1 01 00 B6 20 01 A8 [21:45:29]Write i2c OK [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: D1 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: D1 01 00 [21:45:29]MH_I2C_Read... [21:45:29]Read from MH i2c: D1 01 00 B6 20 00 A7 [21:45:29]Write to MH i2c: 01 00 00 B7 20 D7 [21:45:29]Write i2c OK [21:45:29]MH_I2C_Read... [21:45:29]OFD Sender: No OFD packet to send [21:45:29]*** Cut start [21:45:29]*** Partial cut [21:45:29]*** CUTSNS_PIN = 1 [21:45:29]*** CUTSNS_PIN = 0 [21:45:30]*** Brake cut motor [21:45:30]Read from MH i2c: 01 [21:45:30]MH_I2C_Read... [21:45:30]*** Stop cut motor [21:45:30]*** Cut end [21:45:30]Read from MH i2c: 01 07 00 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 FF 0F EC [21:45:30]process_action close_receipt done [21:45:30]requested_data is exist [21:45:30]produce_requested_data [21:45:30]requested_item fm.sn is exist - process it [21:45:30]wFMCommunicate request_size=4 [21:45:30]MH_SAM_APDU [21:45:30]CAPDU: 80 11 00 00 [21:45:30]Write to MH i2c: E2 08 00 B8 20 80 11 00 00 00 00 00 00 52 [21:45:30]Write i2c OK [21:45:30]MH_I2C_Read... [21:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:30]Read from MH i2c: E2 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: E2 17 00 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: E2 17 00 B8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 A8 [21:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:45:30]wFMCommunicate OK [21:45:30]requested_item fd.num is exist - process it [21:45:30]SAM_PROTO_GetFieldsCounters [21:45:30]wFMCommunicate request_size=4 [21:45:30]MH_SAM_APDU [21:45:30]CAPDU: 80 13 00 00 [21:45:30]Write to MH i2c: E2 08 00 B9 20 80 13 00 00 00 00 00 00 55 [21:45:30]Write i2c OK [21:45:30]MH_I2C_Read... [21:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:30]Read from MH i2c: E2 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: E2 62 00 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: E2 62 00 B9 20 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [21:45:30]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:30]wFMCommunicate OK [21:45:30]SAM_PROTO_GetFieldsCounters done [21:45:30]requested_item shift.num is exist - process it [21:45:30]requested_item shift.opened is exist - process it [21:45:30]req_shift_opened [21:45:30]FM_GetShiftState [21:45:30]SAM_PROTO_GetShiftState [21:45:30]wFMCommunicate request_size=4 [21:45:30]MH_SAM_APDU [21:45:30]CAPDU: 80 13 01 00 [21:45:30]Write to MH i2c: E2 08 00 BA 20 80 13 01 00 00 00 00 00 57 [21:45:30]Write i2c OK [21:45:30]MH_I2C_Read... [21:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:30]Read from MH i2c: E2 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: E2 0E 00 [21:45:30]MH_I2C_Read... [21:45:30]Read from MH i2c: E2 0E 00 BA 20 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E2 [21:45:30]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:45:30]wFMCommunicate OK [21:45:30]SAM_PROTO_GetShiftState done [21:45:30]FM_GetShiftState done [21:45:30]req_shift_opened done [21:45:30]requested_item shift.open_date is exist - process it [21:45:30]req_shift_open_date [21:45:30]req_shift_open_date done [21:45:30]produce_requested_data done [21:45:30]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1966,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:45:30]process_action_free close_receipt [21:45:30]json_value_free [21:45:30]json_value_free done [21:45:30]process_json_proto returns [21:45:30]Send response to host [21:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1966,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:45:30]free response buf [21:45:30]execute_script done [21:45:30]execute_script returns [21:45:30]free content buf [21:45:30]Sock 9.Close socket [21:45:30]Sock 9.Thread stoped [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]accept exits with 8 [21:52:34]New connection [21:52:34]New thread 3066834276 created [21:52:34]Thread 3066977636 joined [21:52:34]Waiting for new connection... [21:52:34] Sock 8.Parse request [21:52:34]Sock 8.Check first char [21:52:34]Sock 8.First char is OK [21:52:34]request: POST /json_proto HTTP/1.0 [21:52:34]Method: POST [21:52:34]URL: /json_proto [21:52:34]Method is POST - this is cgi request [21:52:34]url: /json_proto [21:52:34]query_string will be loaded in cgi processing [21:52:34]execute_cgi json_proto POST (null) [21:52:34]execute_cgi path=json_proto method=POST [21:52:34]POST find Content-Length [21:52:34]Host: 172.17.35.133:8080 [21:52:34]Content-Length: 822 [21:52:34]Content-Type: application/json [21:52:34] [21:52:34]POST finish read [21:52:34]Found Content-Length = 822 [21:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256361", "tax_sys" : 0, "items" : [ { "code": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:34]execute_script... [21:52: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)256361", "tax_sys" : 0, "items" : [ { "code": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:34]POST & json_proto [21:52:34]process_json_proto [21:52:34]json parsed OK: [21:52:34]protocol is kg_v1.0 [21:52:34]action value=close_receipt [21:52:34]process_action close_receipt [21:52:34]cmd_close_receipt [21:52:34]MH_GetDate [21:52:34]Write to MH i2c: F0 00 00 BB 20 CA [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: F0 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: F0 09 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: F0 09 00 BB 20 00 25 F7 92 66 1B 28 2A 66 BA [21:52:34]GetLastDocTimeStamp 1720907129 [21:52:34]current date 1720907557 [21:52:34]FM_GetShiftState [21:52:34]SAM_PROTO_GetShiftState [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 13 01 00 [21:52:34]Write to MH i2c: E2 08 00 BC 20 80 13 01 00 00 00 00 00 59 [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 0E 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 0E 00 BC 20 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E4 [21:52:34]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:52:34]wFMCommunicate OK [21:52:34]SAM_PROTO_GetShiftState done [21:52:34]FM_GetShiftState done [21:52:34]opened in 1720829379 [21:52:34]opened+sec_in_day 1720915779 [21:52:34]quantity*price = 26000 [21:52:34]sum+1 = 26001 [21:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 136 13.07.2024 21:52 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1967 ФПД: 72629060751186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215237&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1967&fm=72629060751186&tin=02508201610067®Number=0000000000177495&sum=26000 0 [21:52:35]StoreToDocumentArchive [21:52:35]shift 24 fd 1967 [21:52:35]save to /storage/0024/doc_00001967 [21:52:35]save last doc name /storage/0024/doc_00001967 to /storage/kkm_last_doc_name [21:52:35]save OK [21:52:35]Clear old archive folders... [21:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:52:35]tlvbuf is 0106C9D0 [21:52:35]SAM_PROTO_ClearQueue [21:52:35]wFMCommunicate request_size=4 [21:52:35]MH_SAM_APDU [21:52:35]CAPDU: 80 09 00 00 [21:52:35]Write to MH i2c: E2 08 00 C9 20 80 09 00 00 00 00 00 00 5B [21:52:35]Write i2c OK [21:52:35]MH_I2C_Read... [21:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:35]Read from MH i2c: E2 [21:52:35]MH_I2C_Read... [21:52:35]Read from MH i2c: E2 03 00 [21:52:35]MH_I2C_Read... [21:52:35]Read from MH i2c: E2 03 00 C9 20 00 90 00 5D [21:52:35]RAPDU: 90 00 [21:52:35]wFMCommunicate OK [21:52:35]SAM_PROTO_ClearQueue done [21:52:35]KKMCreateOFDPacket [21:52:35]OFDProtocolAddRootSTLVToBuf [21:52:35]FM_MakeSignedData [21:52:35]FM_MakeSignedData [21:52:35]SAM_PROTO_SignData [21:52:35]wFMCommunicate request_size=4 [21:52:35]MH_SAM_APDU [21:52:35]CAPDU: 80 0D 01 02 [21:52:35]Write to MH i2c: E2 08 00 CA 20 80 0D 01 02 00 00 00 00 63 [21:52:35]Write i2c OK [21:52:35]MH_I2C_Read... [21:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:35]Read from MH i2c: E2 [21:52:35]MH_I2C_Read... [21:52:35]Read from MH i2c: E2 03 00 [21:52:35]MH_I2C_Read... [21:52:35]Read from MH i2c: E2 03 00 CA 20 00 90 00 5E [21:52:35]RAPDU: 90 00 [21:52:35]wFMCommunicate OK [21:52:35]wFMCommunicate request_size=255 [21:52:35]MH_SAM_APDU [21:52:35]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 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 25 F7 92 66 0E 04 04 00 18 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 [21:52:35]Write to MH i2c: E2 02 01 CB 20 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 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 25 F7 92 66 0E 04 04 00 18 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 1E [21:52:35]Write i2c OK [21:52:35]MH_I2C_Read... [21:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:36]Read from MH i2c: E2 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 03 00 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [21:52:36]RAPDU: 90 00 [21:52:36]wFMCommunicate OK [21:52:36]wFMCommunicate request_size=32 [21:52:36]MH_SAM_APDU [21:52:36]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 07 00 00 35 04 06 00 42 0E 45 5D CF 52 [21:52:36]Write to MH i2c: E2 23 00 CC 20 80 0D 02 02 1B 00 30 30 32 30 39 38 35 39 32 10 04 04 00 AF 07 00 00 35 04 06 00 42 0E 45 5D CF 52 00 00 8F [21:52:36]Write i2c OK [21:52:36]MH_I2C_Read... [21:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:36]Read from MH i2c: E2 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 03 00 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [21:52:36]RAPDU: 90 00 [21:52:36]wFMCommunicate OK [21:52:36]wFMCommunicate request_size=4 [21:52:36]MH_SAM_APDU [21:52:36]CAPDU: 80 0D 03 02 [21:52:36]Write to MH i2c: E2 08 00 CD 20 80 0D 03 02 00 00 00 00 68 [21:52:36]Write i2c OK [21:52:36]MH_I2C_Read... [21:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:36]Read from MH i2c: E2 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 0B 00 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 0B 00 CD 20 00 00 96 7D 7A 8F A9 DF 3B 90 00 48 [21:52:36]RAPDU: 00 96 7D 7A 8F A9 DF 3B 90 00 [21:52:36]wFMCommunicate OK [21:52:36]SAM_PROTO_SignData done [21:52:36]FM_MakeSignedData done [21:52:36]CreateOFDProtocolMessage [21:52:36]wFMCommunicate request_size=4 [21:52:36]MH_SAM_APDU [21:52:36]CAPDU: 80 11 00 00 [21:52:36]Write to MH i2c: E2 08 00 CE 20 80 11 00 00 00 00 00 00 68 [21:52:36]Write i2c OK [21:52:36]MH_I2C_Read... [21:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:36]Read from MH i2c: E2 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 17 00 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: E2 17 00 CE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 BE [21:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:52:36]wFMCommunicate OK [21:52:36]CreateOFDProtocolMessage done [21:52:36]OFDSenderStorePacket 1967 [21:52:36]StoreOFDPacket docnum=1967 [21:52: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 25 01 00 00 68 9D 1D 01 F4 4D 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 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 25 F7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 42 0E 45 5D CF 52 00 96 7D 7A 8F A9 DF 3B [21:52:36]CheckFolder [21:52:36]dirname=/storage/ofd_packets [21:52:36]CheckFolder done [21:52:36]ProducePacketName [21:52:36]name=ofd_packets/00001967 [21:52:36]NVStorageSaveData ofd_packets/00001967 [21:52:36]File name is /storage/ofd_packets/00001967 [21:52:36]Write 323 bytes [21:52:36]NVStorageSaveData done [21:52:36]OFDSenderStorePacket done [21:52:36]KKMCreateOFDPacket done [21:52:36]NVStorageSaveData kkm_last_timestamp [21:52:36]File name is /storage/kkm_last_timestamp [21:52:36]Write 4 bytes [21:52:36]OFD Sender: Processing packet 1967 [packets to send 1, broken 0] [21:52:36]ProducePacketName [21:52:36]name=ofd_packets/00001967 [21:52:36]OFD Sender: To server: pG, [21:52:36]CommunicateWithHost lk.salyk.kg:30040 [21:52:36]ConnectInit lk.salyk.kg [21:52:36]NVStorageSaveData done [21:52:36]ExternCall_PrintAddStr [21:52:36]wPrintStart [21:52:36]Write to MH i2c: 01 00 00 CF 20 EF [21:52:36]Write i2c OK [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: 01 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: 01 07 00 [21:52:36]MH_I2C_Read... [21:52:36]Read from MH i2c: 01 07 00 CF 20 00 00 00 00 00 FF 0F 04 [21:52:36]RasterBufferAndPrint [21:52:36]line Счет N : (3)256361 [21:52:36]line ИНН: 02508201610067 [21:52:36]line Контрольно-Кассовый Чек [21:52:36]line ПРОДАЖА [21:52:36]line Товар: 48742344 [21:52:36]line Сигареты LD Super Slims Pink [21:52:36]line 2.000 * 130.00 [21:52:36]line = 260.00 [21:52:36]line НДС 12% НСП 1% [21:52:36]line > о реализуемом товаре [21:52:36]line ИТОГО: 260.00 [21:52:36]line НСП 1% : 2.30 [21:52:36]line НДС 12% : 27.61 [21:52:36]line Наличными: 0.00 [21:52:36]line Безнал.: 260.00 [21:52:36]line Место: АЗС № 76 "Партнер Нефть" [21:52:36]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [21:52:36]line СНО: Общий режим [21:52:36]line Чек 136 13.07.2024 21:52 [21:52:36]line Смена: 24 ФФД: 1.0 [21:52:36]line ЗНМ: 0300000124 [21:52:36]line РНМ: 0000000000177495 [21:52:36]line Версия ККМ: 001 [21:52:36]line Платежная система: АКБ Кыргызстан [21:52:36]line ФМ: 0000000002098592 [21:52:36]line ФД: 1967 [21:52:36]line ФПД: 72629060751186 [21:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215237&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1967&fm=72629060751186&tin=02508201610067®Number=0000000000177495&sum=26000 [21:52:36]line 0 [21:52:36]Connected sock=9 [21:52:36]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 68 9D 1D 01 F4 4D 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 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 25 F7 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 42 0E 45 5D CF 52 00 96 7D 7A 8F A9 DF 3B [21:52:36]written 0, free lines is 4095 [21:52: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 01 39 47 00 30 A8 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 07 00 00 F4 03 04 00 5A A2 92 66 B6 04 01 00 00 B7 1F 75 C3 D5 06 61 FE [21:52:36]CommunicateWithHost err = 0 [21:52:36]CheckOFDResponse [21:52:36]1017 (14) - 77093643461234 [21:52:36]1041 (16) - 0000000002098592 [21:52:36]1040 (4) - 1967 [21:52:36]1012 (4) - 13.07.2024 15:50 [21:52:36]1206 (1) - 0 [21:52:36]OFD Sender: Remove packet 1967 [21:52:36]ProducePacketName [21:52:36]name=ofd_packets/00001967 [21:52:36]NVStorageDeleteData [21:52:37]Write to MH i2c: 01 00 00 F9 20 19 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 F9 20 00 00 00 00 00 FE 0C 2A [21:52:37]RasterBufferAndPrint [21:52:37]line [21:52:37]line [21:52:37]line [21:52:37]line [21:52:37]line [21:52:37]written 0, free lines is 3332 [21:52:37]MH_Cut [21:52:37]Write to MH i2c: D1 01 00 00 21 01 F3 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D1 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D1 01 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D1 01 00 00 21 00 F2 [21:52:37]Write to MH i2c: 01 00 00 01 21 22 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]OFD Sender: No OFD packet to send [21:52:37]*** Cut start [21:52:37]*** Partial cut [21:52:37]*** CUTSNS_PIN = 1 [21:52:37]*** CUTSNS_PIN = 0 [21:52:38]*** Brake cut motor [21:52:38]Read from MH i2c: 01 [21:52:38]MH_I2C_Read... [21:52:38]*** Stop cut motor [21:52:38]*** Cut end [21:52:38]Read from MH i2c: 01 07 00 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: 01 07 00 01 21 00 00 00 00 00 FF 0F 37 [21:52:38]process_action close_receipt done [21:52:38]requested_data is exist [21:52:38]produce_requested_data [21:52:38]requested_item fm.sn is exist - process it [21:52:38]wFMCommunicate request_size=4 [21:52:38]MH_SAM_APDU [21:52:38]CAPDU: 80 11 00 00 [21:52:38]Write to MH i2c: E2 08 00 02 21 80 11 00 00 00 00 00 00 9D [21:52:38]Write i2c OK [21:52:38]MH_I2C_Read... [21:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:38]Read from MH i2c: E2 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 17 00 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 17 00 02 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F3 [21:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [21:52:38]wFMCommunicate OK [21:52:38]requested_item fd.num is exist - process it [21:52:38]SAM_PROTO_GetFieldsCounters [21:52:38]wFMCommunicate request_size=4 [21:52:38]MH_SAM_APDU [21:52:38]CAPDU: 80 13 00 00 [21:52:38]Write to MH i2c: E2 08 00 03 21 80 13 00 00 00 00 00 00 A0 [21:52:38]Write i2c OK [21:52:38]MH_I2C_Read... [21:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:38]Read from MH i2c: E2 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 62 00 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 62 00 03 21 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:52:38]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:38]wFMCommunicate OK [21:52:38]SAM_PROTO_GetFieldsCounters done [21:52:38]requested_item shift.num is exist - process it [21:52:38]requested_item shift.opened is exist - process it [21:52:38]req_shift_opened [21:52:38]FM_GetShiftState [21:52:38]SAM_PROTO_GetShiftState [21:52:38]wFMCommunicate request_size=4 [21:52:38]MH_SAM_APDU [21:52:38]CAPDU: 80 13 01 00 [21:52:38]Write to MH i2c: E2 08 00 04 21 80 13 01 00 00 00 00 00 A2 [21:52:38]Write i2c OK [21:52:38]MH_I2C_Read... [21:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:38]Read from MH i2c: E2 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 0E 00 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 0E 00 04 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 2D [21:52:38]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [21:52:38]wFMCommunicate OK [21:52:38]SAM_PROTO_GetShiftState done [21:52:38]FM_GetShiftState done [21:52:38]req_shift_opened done [21:52:38]requested_item shift.open_date is exist - process it [21:52:38]req_shift_open_date [21:52:38]req_shift_open_date done [21:52:38]produce_requested_data done [21:52:38]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1967,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [21:52:38]process_action_free close_receipt [21:52:38]json_value_free [21:52:38]json_value_free done [21:52:38]process_json_proto returns [21:52:38]Send response to host [21:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1967,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [21:52:38]free response buf [21:52:38]execute_script done [21:52:38]execute_script returns [21:52:38]free content buf [21:52:38]Sock 8.Close socket [21:52:38]Sock 8.Thread stoped [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:56]accept exits with 10 [22:21:56]New connection [22:21:56]New thread 3066977636 created [22:21:56]Thread 3066834276 joined [22:21:56]Waiting for new connection... [22:21:56] Sock 10.Parse request [22:21:56]Sock 10.Check first char [22:21:56]Sock 10.First char is OK [22:21:56]request: POST /json_proto HTTP/1.0 [22:21:56]Method: POST [22:21:56]URL: /json_proto [22:21:56]Method is POST - this is cgi request [22:21:56]url: /json_proto [22:21:56]query_string will be loaded in cgi processing [22:21:56]execute_cgi json_proto POST (null) [22:21:56]execute_cgi path=json_proto method=POST [22:21:56]POST find Content-Length [22:21:56]Host: 172.17.35.133:8080 [22:21:56]Content-Length: 647 [22:21:56]Content-Type: application/json [22:21:56] [22:21:56]POST finish read [22:21:56]Found Content-Length = 647 [22:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256362", "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" : 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" ] } } [22:21:56]execute_script... [22:21:56]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)256362", "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" : 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" ] } } [22:21:56]POST & json_proto [22:21:56]process_json_proto [22:21:56]json parsed OK: [22:21:56]protocol is kg_v1.0 [22:21:56]action value=close_receipt [22:21:56]process_action close_receipt [22:21:56]cmd_close_receipt [22:21:56]MH_GetDate [22:21:56]Write to MH i2c: F0 00 00 05 21 15 [22:21:56]Write i2c OK [22:21:56]MH_I2C_Read... [22:21:56]Read from MH i2c: F0 [22:21:56]MH_I2C_Read... [22:21:56]Read from MH i2c: F0 09 00 [22:21:56]MH_I2C_Read... [22:21:56]Read from MH i2c: F0 09 00 05 21 00 07 FE 92 66 1B 28 2A 66 EE [22:21:56]GetLastDocTimeStamp 1720907557 [22:21:56]current date 1720909319 [22:21:56]FM_GetShiftState [22:21:56]SAM_PROTO_GetShiftState [22:21:56]wFMCommunicate request_size=4 [22:21:56]MH_SAM_APDU [22:21:56]CAPDU: 80 13 01 00 [22:21:56]Write to MH i2c: E2 08 00 06 21 80 13 01 00 00 00 00 00 A4 [22:21:56]Write i2c OK [22:21:56]MH_I2C_Read... [22:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:56]Read from MH i2c: E2 [22:21:56]MH_I2C_Read... [22:21:56]Read from MH i2c: E2 0E 00 [22:21:56]MH_I2C_Read... [22:21:56]Read from MH i2c: E2 0E 00 06 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 2F [22:21:56]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:21:56]wFMCommunicate OK [22:21:56]SAM_PROTO_GetShiftState done [22:21:56]FM_GetShiftState done [22:21:56]opened in 1720829379 [22:21:56]opened+sec_in_day 1720915779 [22:21:56]quantity*price = 12000 [22:21:56]sum+1 = 12001 [22:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 137 13.07.2024 22:21 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1968 ФПД: 78588032407062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222159&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1968&fm=78588032407062&tin=02508201610067®Number=0000000000177495&sum=12000 0 [22:21:57]StoreToDocumentArchive [22:21:57]shift 24 fd 1968 [22:21:57]save to /storage/0024/doc_00001968 [22:21:57]save last doc name /storage/0024/doc_00001968 to /storage/kkm_last_doc_name [22:21:57]save OK [22:21:57]Clear old archive folders... [22:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:21:57]tlvbuf is 00FBA510 [22:21:57]SAM_PROTO_ClearQueue [22:21:57]wFMCommunicate request_size=4 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 09 00 00 [22:21:57]Write to MH i2c: E2 08 00 13 21 80 09 00 00 00 00 00 00 A6 [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 13 21 00 90 00 A8 [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]SAM_PROTO_ClearQueue done [22:21:57]KKMCreateOFDPacket [22:21:57]OFDProtocolAddRootSTLVToBuf [22:21:57]FM_MakeSignedData [22:21:57]FM_MakeSignedData [22:21:57]SAM_PROTO_SignData [22:21:57]wFMCommunicate request_size=4 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 0D 01 02 [22:21:57]Write to MH i2c: E2 08 00 14 21 80 0D 01 02 00 00 00 00 AE [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 14 21 00 90 00 A9 [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]wFMCommunicate request_size=255 [22:21:57]MH_SAM_APDU [22:21:57]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 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 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 89 00 00 00 F4 03 04 00 07 FE 92 66 0E 04 04 00 18 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 [22:21:57]Write to MH i2c: E2 02 01 15 21 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 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 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 89 00 00 00 F4 03 04 00 07 FE 92 66 0E 04 04 00 18 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 C4 [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]wFMCommunicate request_size=35 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B0 07 00 00 35 04 06 00 47 79 B3 C1 56 16 [22:21:58]Write to MH i2c: E2 26 00 16 21 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B0 07 00 00 35 04 06 00 47 79 B3 C1 56 16 00 00 FE [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:58]Read from MH i2c: E2 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: E2 03 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [22:21:58]RAPDU: 90 00 [22:21:58]wFMCommunicate OK [22:21:58]wFMCommunicate request_size=4 [22:21:58]MH_SAM_APDU [22:21:58]CAPDU: 80 0D 03 02 [22:21:58]Write to MH i2c: E2 08 00 17 21 80 0D 03 02 00 00 00 00 B3 [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:58]Read from MH i2c: E2 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: E2 0B 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: E2 0B 00 17 21 00 9B 03 A5 6E 09 1A 57 BF 90 00 9E [22:21:58]RAPDU: 9B 03 A5 6E 09 1A 57 BF 90 00 [22:21:58]wFMCommunicate OK [22:21:58]SAM_PROTO_SignData done [22:21:58]FM_MakeSignedData done [22:21:58]CreateOFDProtocolMessage [22:21:58]wFMCommunicate request_size=4 [22:21:58]MH_SAM_APDU [22:21:58]CAPDU: 80 11 00 00 [22:21:58]Write to MH i2c: E2 08 00 18 21 80 11 00 00 00 00 00 00 B3 [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:58]Read from MH i2c: E2 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: E2 17 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: E2 17 00 18 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 09 [22:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:21:58]wFMCommunicate OK [22:21:58]CreateOFDProtocolMessage done [22:21:58]OFDSenderStorePacket 1968 [22:21:58]StoreOFDPacket docnum=1968 [22:21: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 28 01 00 00 4C 6C 20 01 3F 48 5A 03 01 00 03 00 14 01 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 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 89 00 00 00 F4 03 04 00 07 FE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 47 79 B3 C1 56 16 9B 03 A5 6E 09 1A 57 BF [22:21:58]CheckFolder [22:21:58]dirname=/storage/ofd_packets [22:21:58]CheckFolder done [22:21:58]ProducePacketName [22:21:58]name=ofd_packets/00001968 [22:21:58]NVStorageSaveData ofd_packets/00001968 [22:21:58]File name is /storage/ofd_packets/00001968 [22:21:58]Write 326 bytes [22:21:58]NVStorageSaveData done [22:21:58]OFDSenderStorePacket done [22:21:58]KKMCreateOFDPacket done [22:21:58]NVStorageSaveData kkm_last_timestamp [22:21:58]File name is /storage/kkm_last_timestamp [22:21:58]Write 4 bytes [22:21:58]NVStorageSaveData done [22:21:58]ExternCall_PrintAddStr [22:21:58]wPrintStart [22:21:58]Write to MH i2c: 01 00 00 19 21 3A [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 07 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 07 00 19 21 00 00 00 00 00 FF 0F 4F [22:21:58]RasterBufferAndPrint [22:21:58]line Счет N : (3)256362 [22:21:58]line ИНН: 02508201610067 [22:21:58]line Контрольно-Кассовый Чек [22:21:58]line ПРОДАЖА [22:21:58]line Товар: 4700000310043 [22:21:58]line Вода Жалалабат 27 1л [22:21:58]line 2.000 * 60.00 [22:21:58]line = 120.00 [22:21:58]line НДС 12% НСП 1% [22:21:58]line > о реализуемом товаре [22:21:58]line ИТОГО: 120.00 [22:21:58]line НСП 1% : 1.06 [22:21:58]line НДС 12% : 12.74 [22:21:58]line Наличными: 120.00 [22:21:58]line Безнал.: 0.00 [22:21:58]line Место: АЗС № 76 "Партнер Нефть" [22:21:58]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [22:21:58]line СНО: Общий режим [22:21:58]line Чек 137 13.07.2024 22:21 [22:21:58]line Смена: 24 ФФД: 1.0 [22:21:58]line ЗНМ: 0300000124 [22:21:58]line РНМ: 0000000000177495 [22:21:58]line Версия ККМ: 001 [22:21:58]line ФМ: 0000000002098592 [22:21:58]line ФД: 1968 [22:21:58]line ФПД: 78588032407062 [22:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222159&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1968&fm=78588032407062&tin=02508201610067®Number=0000000000177495&sum=12000 [22:21:58]line 0 [22:21:58]OFD Sender: Processing packet 1968 [packets to send 1, broken 0] [22:21:58]ProducePacketName [22:21:58]name=ofd_packets/00001968 [22:21:58]OFD Sender: To server: pG, [22:21:58]CommunicateWithHost lk.salyk.kg:30040 [22:21:58]ConnectInit lk.salyk.kg [22:21:58]written 0, free lines is 4095 [22:21:58]Connected sock=9 [22:21: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 28 01 00 00 4C 6C 20 01 3F 48 5A 03 01 00 03 00 14 01 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 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 89 00 00 00 F4 03 04 00 07 FE 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 47 79 B3 C1 56 16 9B 03 A5 6E 09 1A 57 BF [22:21: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 0A 9E 47 00 59 65 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 07 00 00 F4 03 04 00 3D A9 92 66 B6 04 01 00 00 D1 94 FE 31 B6 3E A9 17 [22:21:58]CommunicateWithHost err = 0 [22:21:58]CheckOFDResponse [22:21:58]1017 (14) - 77093643461234 [22:21:58]1041 (16) - 0000000002098592 [22:21:58]1040 (4) - 1968 [22:21:58]1012 (4) - 13.07.2024 16:20 [22:21:58]1206 (1) - 0 [22:21:58]OFD Sender: Remove packet 1968 [22:21:58]ProducePacketName [22:21:58]name=ofd_packets/00001968 [22:21:58]NVStorageDeleteData [22:21:58]Write to MH i2c: 01 00 00 41 21 62 [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 07 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 07 00 41 21 00 00 00 00 00 09 0D 7F [22:21:58]RasterBufferAndPrint [22:21:58]line [22:21:58]line [22:21:58]line [22:21:58]line [22:21:58]line [22:21:58]written 0, free lines is 3345 [22:21:58]MH_Cut [22:21:58]Write to MH i2c: D1 01 00 48 21 01 3B [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: D1 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: D1 01 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: D1 01 00 48 21 00 3A [22:21:58]Write to MH i2c: 01 00 00 49 21 6A [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:59]OFD Sender: No OFD packet to send [22:21:59]*** Cut start [22:21:59]*** Partial cut [22:21:59]*** CUTSNS_PIN = 1 [22:21:59]*** CUTSNS_PIN = 0 [22:21:59]*** Brake cut motor [22:22:00]Read from MH i2c: 01 [22:22:00]MH_I2C_Read... [22:22:00]*** Stop cut motor [22:22:00]*** Cut end [22:22:00]Read from MH i2c: 01 07 00 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: 01 07 00 49 21 00 00 00 00 00 FF 0F 7F [22:22:00]process_action close_receipt done [22:22:00]requested_data is exist [22:22:00]produce_requested_data [22:22:00]requested_item fm.sn is exist - process it [22:22:00]wFMCommunicate request_size=4 [22:22:00]MH_SAM_APDU [22:22:00]CAPDU: 80 11 00 00 [22:22:00]Write to MH i2c: E2 08 00 4A 21 80 11 00 00 00 00 00 00 E5 [22:22:00]Write i2c OK [22:22:00]MH_I2C_Read... [22:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:00]Read from MH i2c: E2 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 17 00 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 17 00 4A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3B [22:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:22:00]wFMCommunicate OK [22:22:00]requested_item fd.num is exist - process it [22:22:00]SAM_PROTO_GetFieldsCounters [22:22:00]wFMCommunicate request_size=4 [22:22:00]MH_SAM_APDU [22:22:00]CAPDU: 80 13 00 00 [22:22:00]Write to MH i2c: E2 08 00 4B 21 80 13 00 00 00 00 00 00 E8 [22:22:00]Write i2c OK [22:22:00]MH_I2C_Read... [22:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:00]Read from MH i2c: E2 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 62 00 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 62 00 4B 21 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [22:22: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 B0 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:00]wFMCommunicate OK [22:22:00]SAM_PROTO_GetFieldsCounters done [22:22:00]requested_item shift.num is exist - process it [22:22:00]requested_item shift.opened is exist - process it [22:22:00]req_shift_opened [22:22:00]FM_GetShiftState [22:22:00]SAM_PROTO_GetShiftState [22:22:00]wFMCommunicate request_size=4 [22:22:00]MH_SAM_APDU [22:22:00]CAPDU: 80 13 01 00 [22:22:00]Write to MH i2c: E2 08 00 4C 21 80 13 01 00 00 00 00 00 EA [22:22:00]Write i2c OK [22:22:00]MH_I2C_Read... [22:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:00]Read from MH i2c: E2 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 0E 00 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 0E 00 4C 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 75 [22:22:00]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:22:00]wFMCommunicate OK [22:22:00]SAM_PROTO_GetShiftState done [22:22:00]FM_GetShiftState done [22:22:00]req_shift_opened done [22:22:00]requested_item shift.open_date is exist - process it [22:22:00]req_shift_open_date [22:22:00]req_shift_open_date done [22:22:00]produce_requested_data done [22:22:00]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1968,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [22:22:00]process_action_free close_receipt [22:22:00]json_value_free [22:22:00]json_value_free done [22:22:00]process_json_proto returns [22:22:00]Send response to host [22:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1968,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [22:22:00]free response buf [22:22:00]execute_script done [22:22:00]execute_script returns [22:22:00]free content buf [22:22:00]Sock 10.Close socket [22:22:00]Sock 10.Thread stoped [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:47]accept exits with 8 [22:29:47]New connection [22:29:47]New thread 3066834276 created [22:29:47]Thread 3066977636 joined [22:29:47]Waiting for new connection... [22:29:47] Sock 8.Parse request [22:29:47]Sock 8.Check first char [22:29:47]Sock 8.First char is OK [22:29:47]request: POST /json_proto HTTP/1.0 [22:29:47]Method: POST [22:29:47]URL: /json_proto [22:29:47]Method is POST - this is cgi request [22:29:47]url: /json_proto [22:29:47]query_string will be loaded in cgi processing [22:29:47]execute_cgi json_proto POST (null) [22:29:47]execute_cgi path=json_proto method=POST [22:29:47]POST find Content-Length [22:29:47]Host: 172.17.35.133:8080 [22:29:47]Content-Length: 683 [22:29:47]Content-Type: application/json [22:29:47] [22:29:47]POST finish read [22:29:47]Found Content-Length = 683 [22:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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" ] } } [22:29:47]execute_script... [22:29:47]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)1619159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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" ] } } [22:29:47]POST & json_proto [22:29:47]process_json_proto [22:29:47]json parsed OK: [22:29:47]protocol is kg_v1.0 [22:29:47]action value=close_receipt [22:29:47]process_action close_receipt [22:29:47]cmd_close_receipt [22:29:47]MH_GetDate [22:29:47]Write to MH i2c: F0 00 00 4D 21 5D [22:29:47]Write i2c OK [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: F0 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: F0 09 00 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: F0 09 00 4D 21 00 DE FF 92 66 1B 28 2A 66 0E [22:29:47]GetLastDocTimeStamp 1720909319 [22:29:47]current date 1720909790 [22:29:47]FM_GetShiftState [22:29:47]SAM_PROTO_GetShiftState [22:29:47]wFMCommunicate request_size=4 [22:29:47]MH_SAM_APDU [22:29:47]CAPDU: 80 13 01 00 [22:29:47]Write to MH i2c: E2 08 00 4E 21 80 13 01 00 00 00 00 00 EC [22:29:47]Write i2c OK [22:29:47]MH_I2C_Read... [22:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:47]Read from MH i2c: E2 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: E2 0E 00 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: E2 0E 00 4E 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 77 [22:29:47]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:29:47]wFMCommunicate OK [22:29:47]SAM_PROTO_GetShiftState done [22:29:47]FM_GetShiftState done [22:29:47]opened in 1720829379 [22:29:47]opened+sec_in_day 1720915779 [22:29:47]quantity*price = 50021 [22:29:47]sum+1 = 50022 [22:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 138 13.07.2024 22:29 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1969 ФПД: 96201497618517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222950&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1969&fm=96201497618517&tin=02508201610067®Number=0000000000177495&sum=50000 [22:29:48]StoreToDocumentArchive [22:29:48]shift 24 fd 1969 [22:29:48]save to /storage/0024/doc_00001969 [22:29:48]save last doc name /storage/0024/doc_00001969 to /storage/kkm_last_doc_name [22:29:48]save OK [22:29:48]Clear old archive folders... [22:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:29:48]tlvbuf is 01076820 [22:29:48]SAM_PROTO_ClearQueue [22:29:48]wFMCommunicate request_size=4 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 09 00 00 [22:29:48]Write to MH i2c: E2 08 00 5B 21 80 09 00 00 00 00 00 00 EE [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [22:29:48]RAPDU: 90 00 [22:29:48]wFMCommunicate OK [22:29:48]SAM_PROTO_ClearQueue done [22:29:48]KKMCreateOFDPacket [22:29:48]OFDProtocolAddRootSTLVToBuf [22:29:48]FM_MakeSignedData [22:29:48]FM_MakeSignedData [22:29:48]SAM_PROTO_SignData [22:29:48]wFMCommunicate request_size=4 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 0D 01 02 [22:29:48]Write to MH i2c: E2 08 00 5C 21 80 0D 01 02 00 00 00 00 F6 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [22:29:48]RAPDU: 90 00 [22:29:48]wFMCommunicate OK [22:29:48]wFMCommunicate request_size=255 [22:29:48]MH_SAM_APDU [22:29:48]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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 C0 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 8A 00 00 00 F4 03 04 00 DE FF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [22:29:48]Write to MH i2c: E2 02 01 5D 21 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 C0 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 8A 00 00 00 F4 03 04 00 DE FF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 CE [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [22:29:48]RAPDU: 90 00 [22:29:48]wFMCommunicate OK [22:29:48]wFMCommunicate request_size=11 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 0D 02 02 06 57 7E A8 17 A8 55 [22:29:48]Write to MH i2c: E2 0E 00 5E 21 80 0D 02 02 06 00 57 7E A8 17 A8 55 00 00 96 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [22:29:48]RAPDU: 90 00 [22:29:48]wFMCommunicate OK [22:29:48]wFMCommunicate request_size=4 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 0D 03 02 [22:29:48]Write to MH i2c: E2 08 00 5F 21 80 0D 03 02 00 00 00 00 FB [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 0B 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 0B 00 5F 21 00 CB CE 33 F2 F0 7F 23 F5 90 00 41 [22:29:48]RAPDU: CB CE 33 F2 F0 7F 23 F5 90 00 [22:29:48]wFMCommunicate OK [22:29:48]SAM_PROTO_SignData done [22:29:48]FM_MakeSignedData done [22:29:48]CreateOFDProtocolMessage [22:29:48]wFMCommunicate request_size=4 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 11 00 00 [22:29:48]Write to MH i2c: E2 08 00 60 21 80 11 00 00 00 00 00 00 FB [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 17 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 17 00 60 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 51 [22:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:29:48]wFMCommunicate OK [22:29:48]CreateOFDProtocolMessage done [22:29:48]OFDSenderStorePacket 1969 [22:29:48]StoreOFDPacket docnum=1969 [22:29: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 10 01 00 00 4B 96 08 01 8F 79 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 C0 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 8A 00 00 00 F4 03 04 00 DE FF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 57 7E A8 17 A8 55 CB CE 33 F2 F0 7F 23 F5 [22:29:48]CheckFolder [22:29:48]dirname=/storage/ofd_packets [22:29:48]CheckFolder done [22:29:48]ProducePacketName [22:29:48]name=ofd_packets/00001969 [22:29:48]NVStorageSaveData ofd_packets/00001969 [22:29:48]File name is /storage/ofd_packets/00001969 [22:29:48]Write 302 bytes [22:29:48]NVStorageSaveData done [22:29:48]OFDSenderStorePacket done [22:29:48]KKMCreateOFDPacket done [22:29:48]NVStorageSaveData kkm_last_timestamp [22:29:48]File name is /storage/kkm_last_timestamp [22:29:48]Write 4 bytes [22:29:48]NVStorageSaveData done [22:29:48]ExternCall_PrintAddStr [22:29:48]wPrintStart [22:29:48]Write to MH i2c: 01 00 00 61 21 82 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 07 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 FF 0F 97 [22:29:48]RasterBufferAndPrint [22:29:48]line Счет N : (1)1619159 [22:29:48]line ИНН: 02508201610067 [22:29:48]line Контрольно-Кассовый Чек [22:29:48]line ПРОДАЖА [22:29:48]line ТРК (МРК, ГНК) : 12 [22:29:48]line Товар: 2710194210 [22:29:48]line ДТ(л)-К-4 [22:29:48]line 6.890 * 72.60 [22:29:48]line = 500.21 [22:29:48]line НДС 12% НСП 1% [22:29:48]line > о реализуемом товаре [22:29:48]line ОКРУГЛЕНИЕ: -0.21 [22:29:48]line ИТОГО: 500.00 [22:29:48]line Внесено: 500.00 [22:29:48]line СДАЧА: 0.00 [22:29:48]line НСП 1% : 4.43 [22:29:48]line НДС 12% : 53.12 [22:29:48]line Наличными: 500.00 [22:29:48]line Безнал.: 0.00 [22:29:48]line Место: АЗС № 76 "Партнер Нефть" [22:29:48]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [22:29:48]line СНО: Общий режим [22:29:48]line Чек 138 13.07.2024 22:29 [22:29:48]line Смена: 24 ФФД: 1.0 [22:29:48]line ЗНМ: 0300000124 [22:29:48]line РНМ: 0000000000177495 [22:29:48]line Версия ККМ: 001 [22:29:48]line ФМ: 0000000002098592 [22:29:48]line ФД: 1969 [22:29:48]line ФПД: 96201497618517 [22:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222950&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1969&fm=96201497618517&tin=02508201610067®Number=0000000000177495&sum=50000 [22:29:49]OFD Sender: Processing packet 1969 [packets to send 1, broken 0] [22:29:49]ProducePacketName [22:29:49]name=ofd_packets/00001969 [22:29:49]OFD Sender: To server: pG, [22:29:49]CommunicateWithHost lk.salyk.kg:30040 [22:29:49]ConnectInit lk.salyk.kg [22:29:49]written 0, free lines is 4095 [22:29:49]Connected sock=10 [22:29: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 10 01 00 00 4B 96 08 01 8F 79 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 C0 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 8A 00 00 00 F4 03 04 00 DE FF 92 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 57 7E A8 17 A8 55 CB CE 33 F2 F0 7F 23 F5 [22:29: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 DD 52 47 00 13 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 B1 07 00 00 F4 03 04 00 13 AB 92 66 B6 04 01 00 00 DE 7E 52 56 5E A4 40 4C [22:29:49]CommunicateWithHost err = 0 [22:29:49]CheckOFDResponse [22:29:49]1017 (14) - 77093643461234 [22:29:49]1041 (16) - 0000000002098592 [22:29:49]1040 (4) - 1969 [22:29:49]1012 (4) - 13.07.2024 16:28 [22:29:49]1206 (1) - 0 [22:29:49]OFD Sender: Remove packet 1969 [22:29:49]ProducePacketName [22:29:49]name=ofd_packets/00001969 [22:29:49]NVStorageDeleteData [22:29:49]Write to MH i2c: 01 00 00 8C 21 AD [22:29:49]Write i2c OK [22:29:49]MH_I2C_Read... [22:29:49]Read from MH i2c: 01 [22:29:49]MH_I2C_Read... [22:29:49]Read from MH i2c: 01 07 00 [22:29:49]MH_I2C_Read... [22:29:49]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 F1 0C B1 [22:29:49]RasterBufferAndPrint [22:29:49]line [22:29:49]line [22:29:49]line [22:29:49]line [22:29:49]line [22:29:49]written 0, free lines is 3320 [22:29:49]MH_Cut [22:29:49]Write to MH i2c: D1 01 00 93 21 01 86 [22:29:49]Write i2c OK [22:29:49]MH_I2C_Read... [22:29:49]Read from MH i2c: D1 [22:29:49]MH_I2C_Read... [22:29:49]Read from MH i2c: D1 01 00 [22:29:49]MH_I2C_Read... [22:29:49]Read from MH i2c: D1 01 00 93 21 00 85 [22:29:49]Write to MH i2c: 01 00 00 94 21 B5 [22:29:49]Write i2c OK [22:29:49]MH_I2C_Read... [22:29:50]OFD Sender: No OFD packet to send [22:29:50]*** Cut start [22:29:50]*** Partial cut [22:29:50]*** CUTSNS_PIN = 1 [22:29:50]*** CUTSNS_PIN = 0 [22:29:50]*** Brake cut motor [22:29:51]Read from MH i2c: 01 [22:29:51]MH_I2C_Read... [22:29:51]*** Stop cut motor [22:29:51]*** Cut end [22:29:51]Read from MH i2c: 01 07 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: 01 07 00 94 21 00 00 00 00 00 FF 0F CA [22:29:51]process_action close_receipt done [22:29:51]requested_data is exist [22:29:51]produce_requested_data [22:29:51]requested_item fm.sn is exist - process it [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 11 00 00 [22:29:51]Write to MH i2c: E2 08 00 95 21 80 11 00 00 00 00 00 00 30 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 17 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 17 00 95 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 86 [22:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:29:51]wFMCommunicate OK [22:29:51]requested_item fd.num is exist - process it [22:29:51]SAM_PROTO_GetFieldsCounters [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 13 00 00 [22:29:51]Write to MH i2c: E2 08 00 96 21 80 13 00 00 00 00 00 00 33 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 62 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 62 00 96 21 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [22:29: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 B1 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:51]wFMCommunicate OK [22:29:51]SAM_PROTO_GetFieldsCounters done [22:29:51]requested_item shift.num is exist - process it [22:29:51]requested_item shift.opened is exist - process it [22:29:51]req_shift_opened [22:29:51]FM_GetShiftState [22:29:51]SAM_PROTO_GetShiftState [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 13 01 00 [22:29:51]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 0E 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C0 [22:29:51]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:29:51]wFMCommunicate OK [22:29:51]SAM_PROTO_GetShiftState done [22:29:51]FM_GetShiftState done [22:29:51]req_shift_opened done [22:29:51]requested_item shift.open_date is exist - process it [22:29:51]req_shift_open_date [22:29:51]req_shift_open_date done [22:29:51]produce_requested_data done [22:29:51]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1969,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [22:29:51]process_action_free close_receipt [22:29:51]json_value_free [22:29:51]json_value_free done [22:29:51]process_json_proto returns [22:29:51]Send response to host [22:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1969,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [22:29:51]free response buf [22:29:51]execute_script done [22:29:51]execute_script returns [22:29:51]free content buf [22:29:51]Sock 8.Close socket [22:29:51]Sock 8.Thread stoped [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: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:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:39]accept exits with 9 [22:49:39]New connection [22:49:39]New thread 3066977636 created [22:49:39]Thread 3066834276 joined [22:49:39]Waiting for new connection... [22:49:39] Sock 9.Parse request [22:49:39]Sock 9.Check first char [22:49:39]Sock 9.First char is OK [22:49:39]request: POST /json_proto HTTP/1.0 [22:49:39]Method: POST [22:49:39]URL: /json_proto [22:49:39]Method is POST - this is cgi request [22:49:39]url: /json_proto [22:49:39]query_string will be loaded in cgi processing [22:49:39]execute_cgi json_proto POST (null) [22:49:39]execute_cgi path=json_proto method=POST [22:49:39]POST find Content-Length [22:49:39]Host: 172.17.35.133:8080 [22:49:39]Content-Length: 841 [22:49:39]Content-Type: application/json [22:49:39] [22:49:39]POST finish read [22:49:39]Found Content-Length = 841 [22:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619161", "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" : 2.000, "sum" : 132.60, "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" : 132.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:39]execute_script... [22:49:39]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)1619161", "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" : 2.000, "sum" : 132.60, "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" : 132.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:39]POST & json_proto [22:49:39]process_json_proto [22:49:39]json parsed OK: [22:49:39]protocol is kg_v1.0 [22:49:39]action value=close_receipt [22:49:39]process_action close_receipt [22:49:39]cmd_close_receipt [22:49:39]MH_GetDate [22:49:39]Write to MH i2c: F0 00 00 98 21 A8 [22:49:39]Write i2c OK [22:49:39]MH_I2C_Read... [22:49:39]Read from MH i2c: F0 [22:49:39]MH_I2C_Read... [22:49:39]Read from MH i2c: F0 09 00 [22:49:39]MH_I2C_Read... [22:49:39]Read from MH i2c: F0 09 00 98 21 00 87 04 93 66 1B 28 2A 66 08 [22:49:39]GetLastDocTimeStamp 1720909790 [22:49:39]current date 1720910983 [22:49:39]FM_GetShiftState [22:49:39]SAM_PROTO_GetShiftState [22:49:39]wFMCommunicate request_size=4 [22:49:39]MH_SAM_APDU [22:49:39]CAPDU: 80 13 01 00 [22:49:39]Write to MH i2c: E2 08 00 99 21 80 13 01 00 00 00 00 00 37 [22:49:39]Write i2c OK [22:49:39]MH_I2C_Read... [22:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:39]Read from MH i2c: E2 [22:49:39]MH_I2C_Read... [22:49:39]Read from MH i2c: E2 0E 00 [22:49:39]MH_I2C_Read... [22:49:39]Read from MH i2c: E2 0E 00 99 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C2 [22:49:39]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:49:39]wFMCommunicate OK [22:49:39]SAM_PROTO_GetShiftState done [22:49:39]FM_GetShiftState done [22:49:39]opened in 1720829379 [22:49:39]opened+sec_in_day 1720915779 [22:49:39]quantity*price = 13260 [22:49:39]sum+1 = 13261 [22:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 132.60 НСП 1% : 1.17 НДС 12% : 14.08 Наличными: 0.00 Безнал.: 132.60 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 139 13.07.2024 22:49 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1970 ФПД: 195913456846435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224943&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1970&fm=195913456846435&tin=02508201610067®Number=0000000000177495&sum=13260 [22:49:41]StoreToDocumentArchive [22:49:41]shift 24 fd 1970 [22:49:41]save to /storage/0024/doc_00001970 [22:49:41]save last doc name /storage/0024/doc_00001970 to /storage/kkm_last_doc_name [22:49:41]save OK [22:49:41]Clear old archive folders... [22:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:41]tlvbuf is 01022180 [22:49:41]SAM_PROTO_ClearQueue [22:49:41]wFMCommunicate request_size=4 [22:49:41]MH_SAM_APDU [22:49:41]CAPDU: 80 09 00 00 [22:49:41]Write to MH i2c: E2 08 00 A6 21 80 09 00 00 00 00 00 00 39 [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:41]Read from MH i2c: E2 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [22:49:41]RAPDU: 90 00 [22:49:41]wFMCommunicate OK [22:49:41]SAM_PROTO_ClearQueue done [22:49:41]KKMCreateOFDPacket [22:49:41]OFDProtocolAddRootSTLVToBuf [22:49:41]FM_MakeSignedData [22:49:41]FM_MakeSignedData [22:49:41]SAM_PROTO_SignData [22:49:41]wFMCommunicate request_size=4 [22:49:41]MH_SAM_APDU [22:49:41]CAPDU: 80 0D 01 02 [22:49:41]Write to MH i2c: E2 08 00 A7 21 80 0D 01 02 00 00 00 00 41 [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:41]Read from MH i2c: E2 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [22:49:41]RAPDU: 90 00 [22:49:41]wFMCommunicate OK [22:49:41]wFMCommunicate request_size=255 [22:49:41]MH_SAM_APDU [22:49:41]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 D0 07 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CC 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 87 04 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 B2 [22:49:41]Write to MH i2c: E2 02 01 A8 21 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 D0 07 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CC 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 87 04 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 B2 00 00 B5 [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:41]Read from MH i2c: E2 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [22:49:41]RAPDU: 90 00 [22:49:41]wFMCommunicate OK [22:49:41]wFMCommunicate request_size=10 [22:49:41]MH_SAM_APDU [22:49:41]CAPDU: 80 0D 02 02 05 2E A8 00 86 63 [22:49:41]Write to MH i2c: E2 0D 00 A9 21 80 0D 02 02 05 00 2E A8 00 86 63 00 00 0D [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:41]Read from MH i2c: E2 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [22:49:41]RAPDU: 90 00 [22:49:41]wFMCommunicate OK [22:49:41]wFMCommunicate request_size=4 [22:49:41]MH_SAM_APDU [22:49:41]CAPDU: 80 0D 03 02 [22:49:41]Write to MH i2c: E2 08 00 AA 21 80 0D 03 02 00 00 00 00 46 [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:41]Read from MH i2c: E2 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 0B 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 0B 00 AA 21 00 78 CA 24 D1 7B 35 5D C0 90 00 4B [22:49:41]RAPDU: 78 CA 24 D1 7B 35 5D C0 90 00 [22:49:41]wFMCommunicate OK [22:49:41]SAM_PROTO_SignData done [22:49:41]FM_MakeSignedData done [22:49:41]CreateOFDProtocolMessage [22:49:41]wFMCommunicate request_size=4 [22:49:41]MH_SAM_APDU [22:49:41]CAPDU: 80 11 00 00 [22:49:41]Write to MH i2c: E2 08 00 AB 21 80 11 00 00 00 00 00 00 46 [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:41]Read from MH i2c: E2 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 17 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: E2 17 00 AB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9C [22: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 [22:49:41]wFMCommunicate OK [22:49:41]CreateOFDProtocolMessage done [22:49:41]OFDSenderStorePacket 1970 [22:49:41]StoreOFDPacket docnum=1970 [22:49:41]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 BD 34 07 01 A2 C2 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 D0 07 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CC 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 87 04 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 B2 2E A8 00 86 63 78 CA 24 D1 7B 35 5D C0 [22:49:41]CheckFolder [22:49:41]dirname=/storage/ofd_packets [22:49:41]CheckFolder done [22:49:41]ProducePacketName [22:49:41]name=ofd_packets/00001970 [22:49:41]NVStorageSaveData ofd_packets/00001970 [22:49:41]File name is /storage/ofd_packets/00001970 [22:49:41]Write 301 bytes [22:49:41]NVStorageSaveData done [22:49:41]OFDSenderStorePacket done [22:49:41]KKMCreateOFDPacket done [22:49:41]NVStorageSaveData kkm_last_timestamp [22:49:41]File name is /storage/kkm_last_timestamp [22:49:41]Write 4 bytes [22:49:41]NVStorageSaveData done [22:49:41]ExternCall_PrintAddStr [22:49:41]wPrintStart [22:49:41]Write to MH i2c: 01 00 00 AC 21 CD [22:49:41]Write i2c OK [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: 01 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: 01 07 00 [22:49:41]MH_I2C_Read... [22:49:41]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 FF 0F E2 [22:49:41]RasterBufferAndPrint [22:49:41]line Счет N : (1)1619161 [22:49:41]line ИНН: 02508201610067 [22:49:41]line Контрольно-Кассовый Чек [22:49:41]line ПРОДАЖА [22:49:41]line ТРК (МРК, ГНК) : 43 [22:49:41]line Товар: 2710124130 [22:49:41]line Аи-92-К-5 [22:49:41]line 2.000 * 66.30 [22:49:41]line = 132.60 [22:49:41]line НДС 12% НСП 1% [22:49:41]line > о реализуемом товаре [22:49:41]line ИТОГО: 132.60 [22:49:41]line НСП 1% : 1.17 [22:49:41]line НДС 12% : 14.08 [22:49:41]line Наличными: 0.00 [22:49:41]line Безнал.: 132.60 [22:49:41]line Место: АЗС № 76 "Партнер Нефть" [22:49:41]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [22:49:41]line СНО: Общий режим [22:49:41]line Чек 139 13.07.2024 22:49 [22:49:41]line Смена: 24 ФФД: 1.0 [22:49:41]line ЗНМ: 0300000124 [22:49:41]line РНМ: 0000000000177495 [22:49:41]line Версия ККМ: 001 [22:49:41]line Платежная система: АКБ Кыргызстан [22:49:41]line ФМ: 0000000002098592 [22:49:41]line ФД: 1970 [22:49:41]line ФПД: 195913456846435 [22:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224943&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1970&fm=195913456846435&tin=02508201610067®Number=0000000000177495&sum=13260 [22:49:41]OFD Sender: Processing packet 1970 [packets to send 1, broken 0] [22:49:41]ProducePacketName [22:49:41]name=ofd_packets/00001970 [22:49:41]OFD Sender: To server: pG, [22:49:41]CommunicateWithHost lk.salyk.kg:30040 [22:49:41]ConnectInit lk.salyk.kg [22:49:41]written 0, free lines is 4095 [22:49:42]Connected sock=11 [22:49:42]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 BD 34 07 01 A2 C2 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 D0 07 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CC 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 87 04 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 B2 2E A8 00 86 63 78 CA 24 D1 7B 35 5D C0 [22:49:42]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 70 47 00 EF F9 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 07 00 00 F4 03 04 00 BC AF 92 66 B6 04 01 00 00 09 F7 FC 2F F3 19 66 81 [22:49:42]CommunicateWithHost err = 0 [22:49:42]CheckOFDResponse [22:49:42]1017 (14) - 77093643461234 [22:49:42]1041 (16) - 0000000002098592 [22:49:42]1040 (4) - 1970 [22:49:42]1012 (4) - 13.07.2024 16:47 [22:49:42]1206 (1) - 0 [22:49:42]OFD Sender: Remove packet 1970 [22:49:42]ProducePacketName [22:49:42]name=ofd_packets/00001970 [22:49:42]NVStorageDeleteData [22:49:42]Write to MH i2c: 01 00 00 D6 21 F7 [22:49:42]Write i2c OK [22:49:42]MH_I2C_Read... [22:49:42]Read from MH i2c: 01 [22:49:42]MH_I2C_Read... [22:49:42]Read from MH i2c: 01 07 00 [22:49:42]MH_I2C_Read... [22:49:42]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 01 0D 0C [22:49:42]RasterBufferAndPrint [22:49:42]line [22:49:42]line [22:49:42]line [22:49:42]line [22:49:42]line [22:49:42]written 0, free lines is 3335 [22:49:42]MH_Cut [22:49:42]Write to MH i2c: D1 01 00 DD 21 01 D0 [22:49:42]Write i2c OK [22:49:42]MH_I2C_Read... [22:49:42]Read from MH i2c: D1 [22:49:42]MH_I2C_Read... [22:49:42]Read from MH i2c: D1 01 00 [22:49:42]MH_I2C_Read... [22:49:42]Read from MH i2c: D1 01 00 DD 21 00 CF [22:49:42]Write to MH i2c: 01 00 00 DE 21 FF [22:49:42]Write i2c OK [22:49:42]MH_I2C_Read... [22:49:42]OFD Sender: No OFD packet to send [22:49:43]*** Cut start [22:49:43]*** Partial cut [22:49:43]*** CUTSNS_PIN = 1 [22:49:43]*** CUTSNS_PIN = 0 [22:49:43]*** Brake cut motor [22:49:43]Read from MH i2c: 01 [22:49:43]MH_I2C_Read... [22:49:43]*** Stop cut motor [22:49:43]*** Cut end [22:49:43]Read from MH i2c: 01 07 00 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: 01 07 00 DE 21 00 00 00 00 00 FF 0F 14 [22:49:43]process_action close_receipt done [22:49:43]requested_data is exist [22:49:43]produce_requested_data [22:49:43]requested_item fm.sn is exist - process it [22:49:43]wFMCommunicate request_size=4 [22:49:43]MH_SAM_APDU [22:49:43]CAPDU: 80 11 00 00 [22:49:43]Write to MH i2c: E2 08 00 DF 21 80 11 00 00 00 00 00 00 7A [22:49:43]Write i2c OK [22:49:43]MH_I2C_Read... [22:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:43]Read from MH i2c: E2 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: E2 17 00 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: E2 17 00 DF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 D0 [22:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:49:43]wFMCommunicate OK [22:49:43]requested_item fd.num is exist - process it [22:49:43]SAM_PROTO_GetFieldsCounters [22:49:43]wFMCommunicate request_size=4 [22:49:43]MH_SAM_APDU [22:49:43]CAPDU: 80 13 00 00 [22:49:43]Write to MH i2c: E2 08 00 E0 21 80 13 00 00 00 00 00 00 7D [22:49:43]Write i2c OK [22:49:43]MH_I2C_Read... [22:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:43]Read from MH i2c: E2 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: E2 62 00 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: E2 62 00 E0 21 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [22:49: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 B2 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:43]wFMCommunicate OK [22:49:43]SAM_PROTO_GetFieldsCounters done [22:49:43]requested_item shift.num is exist - process it [22:49:43]requested_item shift.opened is exist - process it [22:49:43]req_shift_opened [22:49:43]FM_GetShiftState [22:49:43]SAM_PROTO_GetShiftState [22:49:43]wFMCommunicate request_size=4 [22:49:43]MH_SAM_APDU [22:49:43]CAPDU: 80 13 01 00 [22:49:43]Write to MH i2c: E2 08 00 E1 21 80 13 01 00 00 00 00 00 7F [22:49:43]Write i2c OK [22:49:43]MH_I2C_Read... [22:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:44]Read from MH i2c: E2 [22:49:44]MH_I2C_Read... [22:49:44]Read from MH i2c: E2 0E 00 [22:49:44]MH_I2C_Read... [22:49:44]Read from MH i2c: E2 0E 00 E1 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0A [22:49:44]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:49:44]wFMCommunicate OK [22:49:44]SAM_PROTO_GetShiftState done [22:49:44]FM_GetShiftState done [22:49:44]req_shift_opened done [22:49:44]requested_item shift.open_date is exist - process it [22:49:44]req_shift_open_date [22:49:44]req_shift_open_date done [22:49:44]produce_requested_data done [22:49:44]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1970,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [22:49:44]process_action_free close_receipt [22:49:44]json_value_free [22:49:44]json_value_free done [22:49:44]process_json_proto returns [22:49:44]Send response to host [22:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1970,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [22:49:44]free response buf [22:49:44]execute_script done [22:49:44]execute_script returns [22:49:44]free content buf [22:49:44]Sock 9.Close socket [22:49:44]Sock 9.Thread stoped [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:24]accept exits with 10 [22:57:24]New connection [22:57:24]New thread 3066834276 created [22:57:24]Thread 3066977636 joined [22:57:24]Waiting for new connection... [22:57:24] Sock 10.Parse request [22:57:24]Sock 10.Check first char [22:57:24]Sock 10.First char is OK [22:57:24]request: POST /json_proto HTTP/1.0 [22:57:24]Method: POST [22:57:24]URL: /json_proto [22:57:24]Method is POST - this is cgi request [22:57:24]url: /json_proto [22:57:24]query_string will be loaded in cgi processing [22:57:24]execute_cgi json_proto POST (null) [22:57:24]execute_cgi path=json_proto method=POST [22:57:24]POST find Content-Length [22:57:24]Host: 172.17.35.133:8080 [22:57:24]Content-Length: 688 [22:57:24]Content-Type: application/json [22:57:24] [22:57:24]POST finish read [22:57:24]Found Content-Length = 688 [22:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:24]execute_script... [22:57: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)1619163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:24]POST & json_proto [22:57:24]process_json_proto [22:57:24]json parsed OK: [22:57:24]protocol is kg_v1.0 [22:57:24]action value=close_receipt [22:57:24]process_action close_receipt [22:57:24]cmd_close_receipt [22:57:24]MH_GetDate [22:57:24]Write to MH i2c: F0 00 00 E2 21 F2 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: F0 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: F0 09 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: F0 09 00 E2 21 00 57 06 93 66 1B 28 2A 66 24 [22:57:24]GetLastDocTimeStamp 1720910983 [22:57:24]current date 1720911447 [22:57:24]FM_GetShiftState [22:57:24]SAM_PROTO_GetShiftState [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 13 01 00 [22:57:24]Write to MH i2c: E2 08 00 E3 21 80 13 01 00 00 00 00 00 81 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0E 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0E 00 E3 21 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 0C [22:57:24]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:57:24]wFMCommunicate OK [22:57:24]SAM_PROTO_GetShiftState done [22:57:24]FM_GetShiftState done [22:57:24]opened in 1720829379 [22:57:24]opened+sec_in_day 1720915779 [22:57:24]quantity*price = 100042 [22:57:24]sum+1 = 100044 [22:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 140 13.07.2024 22:57 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1971 ФПД: 205661686618452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225728&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1971&fm=205661686618452&tin=02508201610067®Number=0000000000177495&sum=100000 [22:57:25]StoreToDocumentArchive [22:57:25]shift 24 fd 1971 [22:57:25]save to /storage/0024/doc_00001971 [22:57:25]save last doc name /storage/0024/doc_00001971 to /storage/kkm_last_doc_name [22:57:25]save OK [22:57:25]Clear old archive folders... [22:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:57:25]tlvbuf is 01021CF0 [22:57:25]SAM_PROTO_ClearQueue [22:57:25]wFMCommunicate request_size=4 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 09 00 00 [22:57:25]Write to MH i2c: E2 08 00 F0 21 80 09 00 00 00 00 00 00 83 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]SAM_PROTO_ClearQueue done [22:57:25]KKMCreateOFDPacket [22:57:25]OFDProtocolAddRootSTLVToBuf [22:57:25]FM_MakeSignedData [22:57:25]FM_MakeSignedData [22:57:25]SAM_PROTO_SignData [22:57:25]wFMCommunicate request_size=4 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 0D 01 02 [22:57:25]Write to MH i2c: E2 08 00 F1 21 80 0D 01 02 00 00 00 00 8B [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]wFMCommunicate request_size=255 [22:57:25]MH_SAM_APDU [22:57:25]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 06 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [22:57:25]Write to MH i2c: E2 02 01 F2 21 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 06 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 D1 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 F2 21 00 90 00 87 [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]wFMCommunicate request_size=11 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 0D 02 02 06 BB 0C 57 C6 59 54 [22:57:25]Write to MH i2c: E2 0E 00 F3 21 80 0D 02 02 06 00 BB 0C 57 C6 59 54 00 00 2B [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [22:57:26]RAPDU: 90 00 [22:57:26]wFMCommunicate OK [22:57:26]wFMCommunicate request_size=4 [22:57:26]MH_SAM_APDU [22:57:26]CAPDU: 80 0D 03 02 [22:57:26]Write to MH i2c: E2 08 00 F4 21 80 0D 03 02 00 00 00 00 90 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:26]Read from MH i2c: E2 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: E2 0B 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: E2 0B 00 F4 21 00 DB 99 AB 98 59 EC 5E C1 90 00 AC [22:57:26]RAPDU: DB 99 AB 98 59 EC 5E C1 90 00 [22:57:26]wFMCommunicate OK [22:57:26]SAM_PROTO_SignData done [22:57:26]FM_MakeSignedData done [22:57:26]CreateOFDProtocolMessage [22:57:26]wFMCommunicate request_size=4 [22:57:26]MH_SAM_APDU [22:57:26]CAPDU: 80 11 00 00 [22:57:26]Write to MH i2c: E2 08 00 F5 21 80 11 00 00 00 00 00 00 90 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:26]Read from MH i2c: E2 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: E2 17 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: E2 17 00 F5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 E6 [22:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:57:26]wFMCommunicate OK [22:57:26]CreateOFDProtocolMessage done [22:57:26]OFDSenderStorePacket 1971 [22:57:26]StoreOFDPacket docnum=1971 [22:57: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 10 01 00 00 42 2E 08 01 DB BA 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 06 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 BB 0C 57 C6 59 54 DB 99 AB 98 59 EC 5E C1 [22:57:26]CheckFolder [22:57:26]dirname=/storage/ofd_packets [22:57:26]CheckFolder done [22:57:26]ProducePacketName [22:57:26]name=ofd_packets/00001971 [22:57:26]NVStorageSaveData ofd_packets/00001971 [22:57:26]File name is /storage/ofd_packets/00001971 [22:57:26]Write 302 bytes [22:57:26]NVStorageSaveData done [22:57:26]OFDSenderStorePacket done [22:57:26]KKMCreateOFDPacket done [22:57:26]NVStorageSaveData kkm_last_timestamp [22:57:26]File name is /storage/kkm_last_timestamp [22:57:26]Write 4 bytes [22:57:26]NVStorageSaveData done [22:57:26]ExternCall_PrintAddStr [22:57:26]wPrintStart [22:57:26]Write to MH i2c: 01 00 00 F6 21 17 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 07 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 FF 0F 2C [22:57:26]RasterBufferAndPrint [22:57:26]line Счет N : (1)1619163 [22:57:26]line ИНН: 02508201610067 [22:57:26]line Контрольно-Кассовый Чек [22:57:26]line ПРОДАЖА [22:57:26]line ТРК (МРК, ГНК) : 22 [22:57:26]line Товар: 2710194210 [22:57:26]line ДТ(л)-К-4 [22:57:26]line 13.780 * 72.60 [22:57:26]line = 1000.43 [22:57:26]line НДС 12% НСП 1% [22:57:26]line > о реализуемом товаре [22:57:26]line ОКРУГЛЕНИЕ: -0.43 [22:57:26]line ИТОГО: 1000.00 [22:57:26]line Внесено: 1000.00 [22:57:26]line СДАЧА: 0.00 [22:57:26]line НСП 1% : 8.85 [22:57:26]line НДС 12% : 106.24 [22:57:26]line Наличными: 1000.00 [22:57:26]line Безнал.: 0.00 [22:57:26]line Место: АЗС № 76 "Партнер Нефть" [22:57:26]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [22:57:26]line СНО: Общий режим [22:57:26]line Чек 140 13.07.2024 22:57 [22:57:26]line Смена: 24 ФФД: 1.0 [22:57:26]line ЗНМ: 0300000124 [22:57:26]line РНМ: 0000000000177495 [22:57:26]line Версия ККМ: 001 [22:57:26]line ФМ: 0000000002098592 [22:57:26]line ФД: 1971 [22:57:26]line ФПД: 205661686618452 [22:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225728&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1971&fm=205661686618452&tin=02508201610067®Number=0000000000177495&sum=100000 [22:57:26]OFD Sender: Processing packet 1971 [packets to send 1, broken 0] [22:57:26]ProducePacketName [22:57:26]name=ofd_packets/00001971 [22:57:26]OFD Sender: To server: pG, [22:57:26]CommunicateWithHost lk.salyk.kg:30040 [22:57:26]ConnectInit lk.salyk.kg [22:57:26]written 0, free lines is 4095 [22:57:26]Connected sock=11 [22:57: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 10 01 00 00 42 2E 08 01 DB BA 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 06 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 BB 0C 57 C6 59 54 DB 99 AB 98 59 EC 5E C1 [22:57: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 65 85 47 00 76 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 B3 07 00 00 F4 03 04 00 8D B1 92 66 B6 04 01 00 00 10 FD 09 63 89 B9 47 E7 [22:57:26]CommunicateWithHost err = 0 [22:57:26]CheckOFDResponse [22:57:26]1017 (14) - 77093643461234 [22:57:26]1041 (16) - 0000000002098592 [22:57:26]1040 (4) - 1971 [22:57:26]1012 (4) - 13.07.2024 16:55 [22:57:26]1206 (1) - 0 [22:57:26]OFD Sender: Remove packet 1971 [22:57:26]ProducePacketName [22:57:26]name=ofd_packets/00001971 [22:57:26]NVStorageDeleteData [22:57:26]Write to MH i2c: 01 00 00 21 22 43 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 07 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 07 00 21 22 00 00 00 00 00 EB 0C 41 [22:57:26]RasterBufferAndPrint [22:57:26]line [22:57:26]line [22:57:26]line [22:57:26]line [22:57:26]line [22:57:26]written 0, free lines is 3313 [22:57:26]MH_Cut [22:57:26]Write to MH i2c: D1 01 00 28 22 01 1C [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: D1 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: D1 01 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: D1 01 00 28 22 00 1B [22:57:26]Write to MH i2c: 01 00 00 29 22 4B [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:27]OFD Sender: No OFD packet to send [22:57:27]*** Cut start [22:57:27]*** Partial cut [22:57:27]*** CUTSNS_PIN = 1 [22:57:27]*** CUTSNS_PIN = 0 [22:57:27]*** Brake cut motor [22:57:28]Read from MH i2c: 01 [22:57:28]MH_I2C_Read... [22:57:28]*** Stop cut motor [22:57:28]*** Cut end [22:57:28]Read from MH i2c: 01 07 00 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 FF 0F 60 [22:57:28]process_action close_receipt done [22:57:28]requested_data is exist [22:57:28]produce_requested_data [22:57:28]requested_item fm.sn is exist - process it [22:57:28]wFMCommunicate request_size=4 [22:57:28]MH_SAM_APDU [22:57:28]CAPDU: 80 11 00 00 [22:57:28]Write to MH i2c: E2 08 00 2A 22 80 11 00 00 00 00 00 00 C6 [22:57:28]Write i2c OK [22:57:28]MH_I2C_Read... [22:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:28]Read from MH i2c: E2 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 17 00 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 17 00 2A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 1C [22:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [22:57:28]wFMCommunicate OK [22:57:28]requested_item fd.num is exist - process it [22:57:28]SAM_PROTO_GetFieldsCounters [22:57:28]wFMCommunicate request_size=4 [22:57:28]MH_SAM_APDU [22:57:28]CAPDU: 80 13 00 00 [22:57:28]Write to MH i2c: E2 08 00 2B 22 80 13 00 00 00 00 00 00 C9 [22:57:28]Write i2c OK [22:57:28]MH_I2C_Read... [22:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:28]Read from MH i2c: E2 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 62 00 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 62 00 2B 22 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [22:57: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 B3 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:28]wFMCommunicate OK [22:57:28]SAM_PROTO_GetFieldsCounters done [22:57:28]requested_item shift.num is exist - process it [22:57:28]requested_item shift.opened is exist - process it [22:57:28]req_shift_opened [22:57:28]FM_GetShiftState [22:57:28]SAM_PROTO_GetShiftState [22:57:28]wFMCommunicate request_size=4 [22:57:28]MH_SAM_APDU [22:57:28]CAPDU: 80 13 01 00 [22:57:28]Write to MH i2c: E2 08 00 2C 22 80 13 01 00 00 00 00 00 CB [22:57:28]Write i2c OK [22:57:28]MH_I2C_Read... [22:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:28]Read from MH i2c: E2 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 0E 00 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 0E 00 2C 22 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 56 [22:57:28]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [22:57:28]wFMCommunicate OK [22:57:28]SAM_PROTO_GetShiftState done [22:57:28]FM_GetShiftState done [22:57:28]req_shift_opened done [22:57:28]requested_item shift.open_date is exist - process it [22:57:28]req_shift_open_date [22:57:28]req_shift_open_date done [22:57:28]produce_requested_data done [22:57:28]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1971,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [22:57:28]process_action_free close_receipt [22:57:28]json_value_free [22:57:28]json_value_free done [22:57:28]process_json_proto returns [22:57:28]Send response to host [22:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1971,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [22:57:28]free response buf [22:57:28]execute_script done [22:57:28]execute_script returns [22:57:28]free content buf [22:57:28]Sock 10.Close socket [22:57:28]Sock 10.Thread stoped [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]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]accept exits with 8 [23:08:57]New connection [23:08:57]New thread 3066977636 created [23:08:57]Thread 3066834276 joined [23:08:57]Waiting for new connection... [23:08:57] Sock 8.Parse request [23:08:57]Sock 8.Check first char [23:08:57]Sock 8.First char is OK [23:08:57]request: POST /json_proto HTTP/1.0 [23:08:57]Method: POST [23:08:57]URL: /json_proto [23:08:57]Method is POST - this is cgi request [23:08:57]url: /json_proto [23:08:57]query_string will be loaded in cgi processing [23:08:57]execute_cgi json_proto POST (null) [23:08:57]execute_cgi path=json_proto method=POST [23:08:57]POST find Content-Length [23:08:57]Host: 172.17.35.133:8080 [23:08:57]Content-Length: 645 [23:08:57]Content-Type: application/json [23:08:57] [23:08:57]POST finish read [23:08:57]Found Content-Length = 645 [23:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 8.540, "sum" : 620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:57]execute_script... [23:08: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 : (1)1619164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.60, "quantity" : 8.540, "sum" : 620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:57]POST & json_proto [23:08:57]process_json_proto [23:08:57]json parsed OK: [23:08:57]protocol is kg_v1.0 [23:08:57]action value=close_receipt [23:08:57]process_action close_receipt [23:08:57]cmd_close_receipt [23:08:57]MH_GetDate [23:08:57]Write to MH i2c: F0 00 00 2D 22 3E [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: F0 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: F0 09 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: F0 09 00 2D 22 00 0C 09 93 66 1B 28 2A 66 28 [23:08:57]GetLastDocTimeStamp 1720911448 [23:08:57]current date 1720912140 [23:08:57]FM_GetShiftState [23:08:57]SAM_PROTO_GetShiftState [23:08:57]wFMCommunicate request_size=4 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 13 01 00 [23:08:57]Write to MH i2c: E2 08 00 2E 22 80 13 01 00 00 00 00 00 CD [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 0E 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 0E 00 2E 22 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 58 [23:08:57]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:08:57]wFMCommunicate OK [23:08:57]SAM_PROTO_GetShiftState done [23:08:57]FM_GetShiftState done [23:08:57]opened in 1720829379 [23:08:57]opened+sec_in_day 1720915779 [23:08:57]quantity*price = 62000 [23:08:57]sum+1 = 62001 [23:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 620.00 НСП 1% : 5.49 НДС 12% : 65.84 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 141 13.07.2024 23:09 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1972 ФПД: 143558206995609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230900&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1972&fm=143558206995609&tin=02508201610067®Number=0000000000177495&sum=62000 [23:08:58]StoreToDocumentArchive [23:08:58]shift 24 fd 1972 [23:08:58]save to /storage/0024/doc_00001972 [23:08:58]save last doc name /storage/0024/doc_00001972 to /storage/kkm_last_doc_name [23:08:58]save OK [23:08:58]Clear old archive folders... [23:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:08:58]tlvbuf is 00FDF2A0 [23:08:58]SAM_PROTO_ClearQueue [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 09 00 00 [23:08:58]Write to MH i2c: E2 08 00 3B 22 80 09 00 00 00 00 00 00 CF [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 3B 22 00 90 00 D1 [23:08:58]RAPDU: 90 00 [23:08:58]wFMCommunicate OK [23:08:58]SAM_PROTO_ClearQueue done [23:08:58]KKMCreateOFDPacket [23:08:58]OFDProtocolAddRootSTLVToBuf [23:08:58]FM_MakeSignedData [23:08:58]FM_MakeSignedData [23:08:58]SAM_PROTO_SignData [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 0D 01 02 [23:08:58]Write to MH i2c: E2 08 00 3C 22 80 0D 01 02 00 00 00 00 D7 [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 3C 22 00 90 00 D2 [23:08:58]RAPDU: 90 00 [23:08:58]wFMCommunicate OK [23:08:58]wFMCommunicate request_size=255 [23:08:58]MH_SAM_APDU [23:08:58]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 5C 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0C 09 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 [23:08:58]Write to MH i2c: E2 02 01 3D 22 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 5C 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0C 09 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 00 00 E7 [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [23:08:58]RAPDU: 90 00 [23:08:58]wFMCommunicate OK [23:08:58]wFMCommunicate request_size=11 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 0D 02 02 06 82 90 BF EE BC 99 [23:08:58]Write to MH i2c: E2 0E 00 3E 22 80 0D 02 02 06 00 82 90 BF EE BC 99 00 00 FA [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [23:08:58]RAPDU: 90 00 [23:08:58]wFMCommunicate OK [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 0D 03 02 [23:08:58]Write to MH i2c: E2 08 00 3F 22 80 0D 03 02 00 00 00 00 DC [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 0B 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 0B 00 3F 22 00 9F EE 4D 3B F1 10 E2 E0 90 00 B5 [23:08:58]RAPDU: 9F EE 4D 3B F1 10 E2 E0 90 00 [23:08:58]wFMCommunicate OK [23:08:58]SAM_PROTO_SignData done [23:08:58]FM_MakeSignedData done [23:08:58]CreateOFDProtocolMessage [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 11 00 00 [23:08:58]Write to MH i2c: E2 08 00 40 22 80 11 00 00 00 00 00 00 DC [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 17 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 17 00 40 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 32 [23:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:08:58]wFMCommunicate OK [23:08:58]CreateOFDProtocolMessage done [23:08:58]OFDSenderStorePacket 1972 [23:08:58]StoreOFDPacket docnum=1972 [23:08: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 10 01 00 00 45 94 08 01 AE F9 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 5C 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0C 09 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 82 90 BF EE BC 99 9F EE 4D 3B F1 10 E2 E0 [23:08:58]CheckFolder [23:08:58]dirname=/storage/ofd_packets [23:08:58]CheckFolder done [23:08:58]ProducePacketName [23:08:58]name=ofd_packets/00001972 [23:08:58]NVStorageSaveData ofd_packets/00001972 [23:08:58]File name is /storage/ofd_packets/00001972 [23:08:58]Write 302 bytes [23:08:58]NVStorageSaveData done [23:08:58]OFDSenderStorePacket done [23:08:58]KKMCreateOFDPacket done [23:08:58]NVStorageSaveData kkm_last_timestamp [23:08:58]File name is /storage/kkm_last_timestamp [23:08:58]Write 4 bytes [23:08:58]NVStorageSaveData done [23:08:58]ExternCall_PrintAddStr [23:08:58]wPrintStart [23:08:58]Write to MH i2c: 01 00 00 41 22 63 [23:08:58]OFD Sender: Processing packet 1972 [packets to send 1, broken 0] [23:08:58]ProducePacketName [23:08:58]name=ofd_packets/00001972 [23:08:58]OFD Sender: To server: pG, [23:08:58]CommunicateWithHost lk.salyk.kg:30040 [23:08:58]ConnectInit lk.salyk.kg [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: 01 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: 01 07 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: 01 07 00 41 22 00 00 00 00 00 FF 0F 78 [23:08:58]RasterBufferAndPrint [23:08:58]line Счет N : (1)1619164 [23:08:58]line ИНН: 02508201610067 [23:08:58]line Контрольно-Кассовый Чек [23:08:58]line ПРОДАЖА [23:08:58]line ТРК (МРК, ГНК) : 31 [23:08:58]line Товар: 2710194210 [23:08:58]line ДТ(л)-К-4 [23:08:58]line 8.540 * 72.60 [23:08:58]line = 620.00 [23:08:58]line НДС 12% НСП 1% [23:08:58]line > о реализуемом товаре [23:08:58]line ИТОГО: 620.00 [23:08:58]line НСП 1% : 5.49 [23:08:58]line НДС 12% : 65.84 [23:08:58]line Наличными: 620.00 [23:08:58]line Безнал.: 0.00 [23:08:58]line Место: АЗС № 76 "Партнер Нефть" [23:08:58]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [23:08:58]line СНО: Общий режим [23:08:58]line Чек 141 13.07.2024 23:09 [23:08:58]line Смена: 24 ФФД: 1.0 [23:08:58]line ЗНМ: 0300000124 [23:08:58]line РНМ: 0000000000177495 [23:08:58]line Версия ККМ: 001 [23:08:58]line ФМ: 0000000002098592 [23:08:58]line ФД: 1972 [23:08:58]line ФПД: 143558206995609 [23:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230900&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1972&fm=143558206995609&tin=02508201610067®Number=0000000000177495&sum=62000 [23:08:59]Connected sock=10 [23:08: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 10 01 00 00 45 94 08 01 AE F9 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 5C 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0C 09 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 82 90 BF EE BC 99 9F EE 4D 3B F1 10 E2 E0 [23:08:59]written 0, free lines is 4095 [23:08: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 87 62 47 00 20 99 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 B4 07 00 00 F4 03 04 00 41 B4 92 66 B6 04 01 00 00 A0 4D BC 8B 6D DF 4D A4 [23:08:59]CommunicateWithHost err = 0 [23:08:59]CheckOFDResponse [23:08:59]1017 (14) - 77093643461234 [23:08:59]1041 (16) - 0000000002098592 [23:08:59]1040 (4) - 1972 [23:08:59]1012 (4) - 13.07.2024 17:07 [23:08:59]1206 (1) - 0 [23:08:59]OFD Sender: Remove packet 1972 [23:08:59]ProducePacketName [23:08:59]name=ofd_packets/00001972 [23:08:59]NVStorageDeleteData [23:08:59]Write to MH i2c: 01 00 00 69 22 8B [23:08:59]Write i2c OK [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: 01 [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: 01 07 00 [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: 01 07 00 69 22 00 00 00 00 00 1C 0D BB [23:08:59]RasterBufferAndPrint [23:08:59]line [23:08:59]line [23:08:59]line [23:08:59]line [23:08:59]line [23:08:59]written 0, free lines is 3362 [23:08:59]MH_Cut [23:08:59]Write to MH i2c: D1 01 00 70 22 01 64 [23:08:59]Write i2c OK [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: D1 [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: D1 01 00 [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: D1 01 00 70 22 00 63 [23:08:59]Write to MH i2c: 01 00 00 71 22 93 [23:08:59]Write i2c OK [23:08:59]MH_I2C_Read... [23:08:59]OFD Sender: No OFD packet to send [23:09:00]*** Cut start [23:09:00]*** Partial cut [23:09:00]*** CUTSNS_PIN = 1 [23:09:00]*** CUTSNS_PIN = 0 [23:09:00]*** Brake cut motor [23:09:00]Read from MH i2c: 01 [23:09:00]MH_I2C_Read... [23:09:00]*** Stop cut motor [23:09:01]*** Cut end [23:09:01]Read from MH i2c: 01 07 00 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: 01 07 00 71 22 00 00 00 00 00 FF 0F A8 [23:09:01]process_action close_receipt done [23:09:01]requested_data is exist [23:09:01]produce_requested_data [23:09:01]requested_item fm.sn is exist - process it [23:09:01]wFMCommunicate request_size=4 [23:09:01]MH_SAM_APDU [23:09:01]CAPDU: 80 11 00 00 [23:09:01]Write to MH i2c: E2 08 00 72 22 80 11 00 00 00 00 00 00 0E [23:09:01]Write i2c OK [23:09:01]MH_I2C_Read... [23:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:01]Read from MH i2c: E2 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: E2 17 00 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: E2 17 00 72 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 64 [23:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:09:01]wFMCommunicate OK [23:09:01]requested_item fd.num is exist - process it [23:09:01]SAM_PROTO_GetFieldsCounters [23:09:01]wFMCommunicate request_size=4 [23:09:01]MH_SAM_APDU [23:09:01]CAPDU: 80 13 00 00 [23:09:01]Write to MH i2c: E2 08 00 73 22 80 13 00 00 00 00 00 00 11 [23:09:01]Write i2c OK [23:09:01]MH_I2C_Read... [23:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:01]Read from MH i2c: E2 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: E2 62 00 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: E2 62 00 73 22 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:09: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 B4 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:01]wFMCommunicate OK [23:09:01]SAM_PROTO_GetFieldsCounters done [23:09:01]requested_item shift.num is exist - process it [23:09:01]requested_item shift.opened is exist - process it [23:09:01]req_shift_opened [23:09:01]FM_GetShiftState [23:09:01]SAM_PROTO_GetShiftState [23:09:01]wFMCommunicate request_size=4 [23:09:01]MH_SAM_APDU [23:09:01]CAPDU: 80 13 01 00 [23:09:01]Write to MH i2c: E2 08 00 74 22 80 13 01 00 00 00 00 00 13 [23:09:01]Write i2c OK [23:09:01]MH_I2C_Read... [23:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:01]Read from MH i2c: E2 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: E2 0E 00 [23:09:01]MH_I2C_Read... [23:09:01]Read from MH i2c: E2 0E 00 74 22 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 9E [23:09:01]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:09:01]wFMCommunicate OK [23:09:01]SAM_PROTO_GetShiftState done [23:09:01]FM_GetShiftState done [23:09:01]req_shift_opened done [23:09:01]requested_item shift.open_date is exist - process it [23:09:01]req_shift_open_date [23:09:01]req_shift_open_date done [23:09:01]produce_requested_data done [23:09:01]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1972,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [23:09:01]process_action_free close_receipt [23:09:01]json_value_free [23:09:01]json_value_free done [23:09:01]process_json_proto returns [23:09:01]Send response to host [23:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1972,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [23:09:01]free response buf [23:09:01]execute_script done [23:09:01]execute_script returns [23:09:01]free content buf [23:09:01]Sock 8.Close socket [23:09:01]Sock 8.Thread stoped [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:03]accept exits with 9 [23:24:03]New connection [23:24:03]New thread 3066834276 created [23:24:03]Thread 3066977636 joined [23:24:03]Waiting for new connection... [23:24:03] Sock 9.Parse request [23:24:03]Sock 9.Check first char [23:24:03]Sock 9.First char is OK [23:24:03]request: POST /json_proto HTTP/1.0 [23:24:03]Method: POST [23:24:03]URL: /json_proto [23:24:03]Method is POST - this is cgi request [23:24:03]url: /json_proto [23:24:03]query_string will be loaded in cgi processing [23:24:03]execute_cgi json_proto POST (null) [23:24:03]execute_cgi path=json_proto method=POST [23:24:03]POST find Content-Length [23:24:03]Host: 172.17.35.133:8080 [23:24:03]Content-Length: 678 [23:24:03]Content-Type: application/json [23:24:03] [23:24:03]POST finish read [23:24:03]Found Content-Length = 678 [23:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619165", "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" : 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" ] } } [23:24:03]execute_script... [23:24:03]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)1619165", "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" : 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" ] } } [23:24:03]POST & json_proto [23:24:03]process_json_proto [23:24:03]json parsed OK: [23:24:03]protocol is kg_v1.0 [23:24:03]action value=close_receipt [23:24:03]process_action close_receipt [23:24:03]cmd_close_receipt [23:24:03]MH_GetDate [23:24:03]Write to MH i2c: F0 00 00 75 22 86 [23:24:03]Write i2c OK [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: F0 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: F0 09 00 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: F0 09 00 75 22 00 96 0C 93 66 1B 28 2A 66 FD [23:24:03]GetLastDocTimeStamp 1720912140 [23:24:03]current date 1720913046 [23:24:03]FM_GetShiftState [23:24:03]SAM_PROTO_GetShiftState [23:24:03]wFMCommunicate request_size=4 [23:24:03]MH_SAM_APDU [23:24:03]CAPDU: 80 13 01 00 [23:24:03]Write to MH i2c: E2 08 00 76 22 80 13 01 00 00 00 00 00 15 [23:24:03]Write i2c OK [23:24:03]MH_I2C_Read... [23:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:03]Read from MH i2c: E2 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: E2 0E 00 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: E2 0E 00 76 22 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 A0 [23:24:03]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:24:03]wFMCommunicate OK [23:24:03]SAM_PROTO_GetShiftState done [23:24:03]FM_GetShiftState done [23:24:03]opened in 1720829379 [23:24:03]opened+sec_in_day 1720915779 [23:24:03]quantity*price = 50056 [23:24:03]sum+1 = 50058 [23:24:03]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 СНО: Общий режим Чек 142 13.07.2024 23:24 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1973 ФПД: 222357461660454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232406&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1973&fm=222357461660454&tin=02508201610067®Number=0000000000177495&sum=50000 [23:24:04]StoreToDocumentArchive [23:24:04]shift 24 fd 1973 [23:24:04]save to /storage/0024/doc_00001973 [23:24:04]save last doc name /storage/0024/doc_00001973 to /storage/kkm_last_doc_name [23:24:04]save OK [23:24:04]Clear old archive folders... [23:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:04]tlvbuf is 00FCAD90 [23:24:04]SAM_PROTO_ClearQueue [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 09 00 00 [23:24:04]Write to MH i2c: E2 08 00 83 22 80 09 00 00 00 00 00 00 17 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 83 22 00 90 00 19 [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]SAM_PROTO_ClearQueue done [23:24:04]KKMCreateOFDPacket [23:24:04]OFDProtocolAddRootSTLVToBuf [23:24:04]FM_MakeSignedData [23:24:04]FM_MakeSignedData [23:24:04]SAM_PROTO_SignData [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 01 02 [23:24:04]Write to MH i2c: E2 08 00 84 22 80 0D 01 02 00 00 00 00 1F [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 84 22 00 90 00 1A [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]wFMCommunicate request_size=255 [23:24:04]MH_SAM_APDU [23:24:04]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 8E 00 00 00 F4 03 04 00 96 0C 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 CA [23:24:04]Write to MH i2c: E2 02 01 85 22 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 8E 00 00 00 F4 03 04 00 96 0C 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 CA 00 00 9B [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 85 22 00 90 00 1B [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]wFMCommunicate request_size=10 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 02 02 05 3B A1 83 F3 26 [23:24:04]Write to MH i2c: E2 0D 00 86 22 80 0D 02 02 05 00 3B A1 83 F3 26 00 00 A4 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 03 02 [23:24:04]Write to MH i2c: E2 08 00 87 22 80 0D 03 02 00 00 00 00 24 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 0B 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 0B 00 87 22 00 9D 71 30 7C FD 4B 9D 57 90 00 1B [23:24:04]RAPDU: 9D 71 30 7C FD 4B 9D 57 90 00 [23:24:04]wFMCommunicate OK [23:24:04]SAM_PROTO_SignData done [23:24:04]FM_MakeSignedData done [23:24:04]CreateOFDProtocolMessage [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 11 00 00 [23:24:04]Write to MH i2c: E2 08 00 88 22 80 11 00 00 00 00 00 00 24 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 17 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 17 00 88 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 7A [23:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:24:04]wFMCommunicate OK [23:24:04]CreateOFDProtocolMessage done [23:24:04]OFDSenderStorePacket 1973 [23:24:04]StoreOFDPacket docnum=1973 [23:24: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 0F 01 00 00 61 74 07 01 D8 7A 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 8E 00 00 00 F4 03 04 00 96 0C 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 CA 3B A1 83 F3 26 9D 71 30 7C FD 4B 9D 57 [23:24:04]CheckFolder [23:24:04]dirname=/storage/ofd_packets [23:24:04]CheckFolder done [23:24:04]ProducePacketName [23:24:04]name=ofd_packets/00001973 [23:24:04]NVStorageSaveData ofd_packets/00001973 [23:24:04]File name is /storage/ofd_packets/00001973 [23:24:04]Write 301 bytes [23:24:04]NVStorageSaveData done [23:24:04]OFDSenderStorePacket done [23:24:04]KKMCreateOFDPacket done [23:24:04]NVStorageSaveData kkm_last_timestamp [23:24:04]File name is /storage/kkm_last_timestamp [23:24:04]Write 4 bytes [23:24:04]NVStorageSaveData done [23:24:04]ExternCall_PrintAddStr [23:24:04]wPrintStart [23:24:04]Write to MH i2c: 01 00 00 89 22 AB [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: 01 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: 01 07 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: 01 07 00 89 22 00 00 00 00 00 FF 0F C0 [23:24:04]RasterBufferAndPrint [23:24:04]line Счет N : (1)1619165 [23:24:04]line ИНН: 02508201610067 [23:24:04]line Контрольно-Кассовый Чек [23:24:04]line ПРОДАЖА [23:24:04]line ТРК (МРК, ГНК) : 33 [23:24:04]line Товар: 2710124130 [23:24:04]line Аи-92-К-5 [23:24:04]line 7.550 * 66.30 [23:24:04]line = 500.57 [23:24:04]line НДС 12% НСП 1% [23:24:04]line > о реализуемом товаре [23:24:04]line ОКРУГЛЕНИЕ: -0.57 [23:24:04]line ИТОГО: 500.00 [23:24:04]line Внесено: 500.00 [23:24:04]line СДАЧА: 0.00 [23:24:04]line НСП 1% : 4.43 [23:24:04]line НДС 12% : 53.16 [23:24:04]line Наличными: 500.00 [23:24:04]line Безнал.: 0.00 [23:24:04]line Место: АЗС № 76 "Партнер Нефть" [23:24:04]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [23:24:04]line СНО: Общий режим [23:24:04]line Чек 142 13.07.2024 23:24 [23:24:04]line Смена: 24 ФФД: 1.0 [23:24:04]line ЗНМ: 0300000124 [23:24:04]line РНМ: 0000000000177495 [23:24:04]line Версия ККМ: 001 [23:24:04]line ФМ: 0000000002098592 [23:24:04]line ФД: 1973 [23:24:04]line ФПД: 222357461660454 [23:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232406&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1973&fm=222357461660454&tin=02508201610067®Number=0000000000177495&sum=50000 [23:24:05]OFD Sender: Processing packet 1973 [packets to send 1, broken 0] [23:24:05]ProducePacketName [23:24:05]name=ofd_packets/00001973 [23:24:05]OFD Sender: To server: pG, [23:24:05]CommunicateWithHost lk.salyk.kg:30040 [23:24:05]ConnectInit lk.salyk.kg [23:24:05]written 0, free lines is 4095 [23:24:05]Connected sock=10 [23:24: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 0F 01 00 00 61 74 07 01 D8 7A 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 8E 00 00 00 F4 03 04 00 96 0C 93 66 0E 04 04 00 18 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 07 00 00 35 04 06 00 CA 3B A1 83 F3 26 9D 71 30 7C FD 4B 9D 57 [23:24: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 57 F5 47 00 13 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 B5 07 00 00 F4 03 04 00 CB B7 92 66 B6 04 01 00 00 80 F7 70 41 A4 14 FB BA [23:24:05]CommunicateWithHost err = 0 [23:24:05]CheckOFDResponse [23:24:05]1017 (14) - 77093643461234 [23:24:05]1041 (16) - 0000000002098592 [23:24:05]1040 (4) - 1973 [23:24:05]1012 (4) - 13.07.2024 17:22 [23:24:05]1206 (1) - 0 [23:24:05]OFD Sender: Remove packet 1973 [23:24:05]ProducePacketName [23:24:05]name=ofd_packets/00001973 [23:24:05]NVStorageDeleteData [23:24:05]Write to MH i2c: 01 00 00 B4 22 D6 [23:24:05]Write i2c OK [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: 01 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: 01 07 00 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 EB 0C D4 [23:24:05]RasterBufferAndPrint [23:24:05]line [23:24:05]line [23:24:05]line [23:24:05]line [23:24:05]line [23:24:05]written 0, free lines is 3313 [23:24:05]MH_Cut [23:24:05]Write to MH i2c: D1 01 00 BB 22 01 AF [23:24:05]Write i2c OK [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: D1 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: D1 01 00 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: D1 01 00 BB 22 00 AE [23:24:05]Write to MH i2c: 01 00 00 BC 22 DE [23:24:05]Write i2c OK [23:24:05]MH_I2C_Read... [23:24:06]OFD Sender: No OFD packet to send [23:24:06]*** Cut start [23:24:06]*** Partial cut [23:24:06]*** CUTSNS_PIN = 1 [23:24:06]*** CUTSNS_PIN = 0 [23:24:06]*** Brake cut motor [23:24:07]Read from MH i2c: 01 [23:24:07]MH_I2C_Read... [23:24:07]*** Stop cut motor [23:24:07]*** Cut end [23:24:07]Read from MH i2c: 01 07 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: 01 07 00 BC 22 00 00 00 00 00 FF 0F F3 [23:24:07]process_action close_receipt done [23:24:07]requested_data is exist [23:24:07]produce_requested_data [23:24:07]requested_item fm.sn is exist - process it [23:24:07]wFMCommunicate request_size=4 [23:24:07]MH_SAM_APDU [23:24:07]CAPDU: 80 11 00 00 [23:24:07]Write to MH i2c: E2 08 00 BD 22 80 11 00 00 00 00 00 00 59 [23:24:07]Write i2c OK [23:24:07]MH_I2C_Read... [23:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:07]Read from MH i2c: E2 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 17 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 17 00 BD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AF [23:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:24:07]wFMCommunicate OK [23:24:07]requested_item fd.num is exist - process it [23:24:07]SAM_PROTO_GetFieldsCounters [23:24:07]wFMCommunicate request_size=4 [23:24:07]MH_SAM_APDU [23:24:07]CAPDU: 80 13 00 00 [23:24:07]Write to MH i2c: E2 08 00 BE 22 80 13 00 00 00 00 00 00 5C [23:24:07]Write i2c OK [23:24:07]MH_I2C_Read... [23:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:07]Read from MH i2c: E2 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 62 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 62 00 BE 22 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [23:24: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 B5 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:07]wFMCommunicate OK [23:24:07]SAM_PROTO_GetFieldsCounters done [23:24:07]requested_item shift.num is exist - process it [23:24:07]requested_item shift.opened is exist - process it [23:24:07]req_shift_opened [23:24:07]FM_GetShiftState [23:24:07]SAM_PROTO_GetShiftState [23:24:07]wFMCommunicate request_size=4 [23:24:07]MH_SAM_APDU [23:24:07]CAPDU: 80 13 01 00 [23:24:07]Write to MH i2c: E2 08 00 BF 22 80 13 01 00 00 00 00 00 5E [23:24:07]Write i2c OK [23:24:07]MH_I2C_Read... [23:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:07]Read from MH i2c: E2 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 0E 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 0E 00 BF 22 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 E9 [23:24:07]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:24:07]wFMCommunicate OK [23:24:07]SAM_PROTO_GetShiftState done [23:24:07]FM_GetShiftState done [23:24:07]req_shift_opened done [23:24:07]requested_item shift.open_date is exist - process it [23:24:07]req_shift_open_date [23:24:07]req_shift_open_date done [23:24:07]produce_requested_data done [23:24:07]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1973,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [23:24:07]process_action_free close_receipt [23:24:07]json_value_free [23:24:07]json_value_free done [23:24:07]process_json_proto returns [23:24:07]Send response to host [23:24:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1973,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [23:24:07]free response buf [23:24:07]execute_script done [23:24:07]execute_script returns [23:24:07]free content buf [23:24:07]Sock 9.Close socket [23:24:07]Sock 9.Thread stoped [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]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: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: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:27:56]OFD Sender: No OFD packet to send [23:28:01]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: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:09]accept exits with 8 [23:33:09]New connection [23:33:09]New thread 3066977636 created [23:33:09]Thread 3066834276 joined [23:33:09]Waiting for new connection... [23:33:09] Sock 8.Parse request [23:33:09]Sock 8.Check first char [23:33:09]Sock 8.First char is OK [23:33:09]request: POST /json_proto HTTP/1.0 [23:33:09]Method: POST [23:33:09]URL: /json_proto [23:33:09]Method is POST - this is cgi request [23:33:09]url: /json_proto [23:33:09]query_string will be loaded in cgi processing [23:33:09]execute_cgi json_proto POST (null) [23:33:09]execute_cgi path=json_proto method=POST [23:33:09]POST find Content-Length [23:33:09]Host: 172.17.35.133:8080 [23:33:09]Content-Length: 645 [23:33:09]Content-Type: application/json [23:33:09] [23:33:09]POST finish read [23:33:09]Found Content-Length = 645 [23:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256363", "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 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:09]execute_script... [23:33: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)256363", "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 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:09]POST & json_proto [23:33:09]process_json_proto [23:33:09]json parsed OK: [23:33:09]protocol is kg_v1.0 [23:33:09]action value=close_receipt [23:33:09]process_action close_receipt [23:33:09]cmd_close_receipt [23:33:09]MH_GetDate [23:33:09]Write to MH i2c: F0 00 00 C0 22 D1 [23:33:09]Write i2c OK [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: F0 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: F0 09 00 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: F0 09 00 C0 22 00 B9 0E 93 66 1B 28 2A 66 6D [23:33:09]GetLastDocTimeStamp 1720913046 [23:33:09]current date 1720913593 [23:33:09]FM_GetShiftState [23:33:09]SAM_PROTO_GetShiftState [23:33:09]wFMCommunicate request_size=4 [23:33:09]MH_SAM_APDU [23:33:09]CAPDU: 80 13 01 00 [23:33:09]Write to MH i2c: E2 08 00 C1 22 80 13 01 00 00 00 00 00 60 [23:33:09]Write i2c OK [23:33:09]MH_I2C_Read... [23:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:09]Read from MH i2c: E2 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 0E 00 [23:33:09]MH_I2C_Read... [23:33:09]Read from MH i2c: E2 0E 00 C1 22 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 EB [23:33:09]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:33:09]wFMCommunicate OK [23:33:09]SAM_PROTO_GetShiftState done [23:33:09]FM_GetShiftState done [23:33:09]opened in 1720829379 [23:33:09]opened+sec_in_day 1720915779 [23:33:09]quantity*price = 6000 [23:33:09]sum+1 = 6001 [23:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 143 13.07.2024 23:33 Смена: 24 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1974 ФПД: 237930382442940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233313&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1974&fm=237930382442940&tin=02508201610067®Number=0000000000177495&sum=6000 0 [23:33:10]StoreToDocumentArchive [23:33:10]shift 24 fd 1974 [23:33:10]save to /storage/0024/doc_00001974 [23:33:10]save last doc name /storage/0024/doc_00001974 to /storage/kkm_last_doc_name [23:33:10]save OK [23:33:10]Clear old archive folders... [23:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:33:10]tlvbuf is 00FCA940 [23:33:10]SAM_PROTO_ClearQueue [23:33:10]wFMCommunicate request_size=4 [23:33:10]MH_SAM_APDU [23:33:10]CAPDU: 80 09 00 00 [23:33:10]Write to MH i2c: E2 08 00 CE 22 80 09 00 00 00 00 00 00 62 [23:33:10]Write i2c OK [23:33:10]MH_I2C_Read... [23:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:10]Read from MH i2c: E2 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 03 00 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [23:33:10]RAPDU: 90 00 [23:33:10]wFMCommunicate OK [23:33:10]SAM_PROTO_ClearQueue done [23:33:10]KKMCreateOFDPacket [23:33:10]OFDProtocolAddRootSTLVToBuf [23:33:10]FM_MakeSignedData [23:33:10]FM_MakeSignedData [23:33:10]SAM_PROTO_SignData [23:33:10]wFMCommunicate request_size=4 [23:33:10]MH_SAM_APDU [23:33:10]CAPDU: 80 0D 01 02 [23:33:10]Write to MH i2c: E2 08 00 CF 22 80 0D 01 02 00 00 00 00 6A [23:33:10]Write i2c OK [23:33:10]MH_I2C_Read... [23:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:10]Read from MH i2c: E2 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 03 00 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [23:33:10]RAPDU: 90 00 [23:33:10]wFMCommunicate OK [23:33:10]wFMCommunicate request_size=255 [23:33:10]MH_SAM_APDU [23:33:10]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 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 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 8F 00 00 00 F4 03 04 00 B9 0E 93 66 0E 04 04 00 18 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 [23:33:10]Write to MH i2c: E2 02 01 D0 22 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 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 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 8F 00 00 00 F4 03 04 00 B9 0E 93 66 0E 04 04 00 18 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 14 [23:33:10]Write i2c OK [23:33:10]MH_I2C_Read... [23:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:10]Read from MH i2c: E2 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 03 00 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [23:33:10]RAPDU: 90 00 [23:33:10]wFMCommunicate OK [23:33:10]wFMCommunicate request_size=35 [23:33:10]MH_SAM_APDU [23:33:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B6 07 00 00 35 04 06 00 D8 65 7B ED 41 BC [23:33:10]Write to MH i2c: E2 26 00 D1 22 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B6 07 00 00 35 04 06 00 D8 65 7B ED 41 BC 00 00 C2 [23:33:10]Write i2c OK [23:33:10]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [23:33:11]RAPDU: 90 00 [23:33:11]wFMCommunicate OK [23:33:11]wFMCommunicate request_size=4 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 0D 03 02 [23:33:11]Write to MH i2c: E2 08 00 D2 22 80 0D 03 02 00 00 00 00 6F [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 0B 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 0B 00 D2 22 00 E3 09 71 8A 8E 63 84 3E 90 00 0A [23:33:11]RAPDU: E3 09 71 8A 8E 63 84 3E 90 00 [23:33:11]wFMCommunicate OK [23:33:11]SAM_PROTO_SignData done [23:33:11]FM_MakeSignedData done [23:33:11]CreateOFDProtocolMessage [23:33:11]wFMCommunicate request_size=4 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 11 00 00 [23:33:11]Write to MH i2c: E2 08 00 D3 22 80 11 00 00 00 00 00 00 6F [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 17 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 17 00 D3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 C5 [23:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:33:11]wFMCommunicate OK [23:33:11]CreateOFDProtocolMessage done [23:33:11]OFDSenderStorePacket 1974 [23:33:11]StoreOFDPacket docnum=1974 [23:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [23:33:13]free response buf [23:33:13]execute_script done [23:33:13]execute_script returns [23:33:13]free content buf [23:33:13]Sock 8.Close socket [23:33:13]Sock 8.Thread stoped [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:24]ConnectInit Can't connect to host [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]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:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:00]accept exits with 9 [23:54:00]New connection [23:54:00]New thread 3066834276 created [23:54:00]Thread 3066977636 joined [23:54:00]Waiting for new connection... [23:54:00] Sock 9.Parse request [23:54:00]Sock 9.Check first char [23:54:00]Sock 9.First char is OK [23:54:00]request: POST /json_proto HTTP/1.0 [23:54:00]Method: POST [23:54:00]URL: /json_proto [23:54:00]Method is POST - this is cgi request [23:54:00]url: /json_proto [23:54:00]query_string will be loaded in cgi processing [23:54:00]execute_cgi json_proto POST (null) [23:54:00]execute_cgi path=json_proto method=POST [23:54:00]POST find Content-Length [23:54:00]Host: 172.17.35.133:8080 [23:54:00]Content-Length: 215 [23:54:00]Content-Type: application/json [23:54:00] [23:54:00]POST finish read [23:54:00]Found Content-Length = 215 [23:54:00]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:54:00]execute_script... [23:54:00]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:54:00]POST & json_proto [23:54:00]process_json_proto [23:54:00]json parsed OK: [23:54:00]protocol is kg_v1.0 [23:54:00]action value=get_value [23:54:00]process_action get_value [23:54:00]cmd_get_value [23:54:00]process_action get_value done [23:54:00]requested_data is exist [23:54:00]produce_requested_data [23:54:00]requested_item kkm.sn is exist - process it [23:54:00]requested_item kkm.ver is exist - process it [23:54:00]requested_item fm.sn is exist - process it [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 11 00 00 [23:54:00]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 17 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 17 00 08 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 FB [23:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:54:00]wFMCommunicate OK [23:54:00]requested_item fd.num is exist - process it [23:54:00]SAM_PROTO_GetFieldsCounters [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 13 00 00 [23:54:00]Write to MH i2c: E2 08 00 09 23 80 13 00 00 00 00 00 00 A8 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 62 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 62 00 09 23 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [23:54: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 B6 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:00]wFMCommunicate OK [23:54:00]SAM_PROTO_GetFieldsCounters done [23:54:00]requested_item shift.num is exist - process it [23:54:00]requested_item shift.opened is exist - process it [23:54:00]req_shift_opened [23:54:00]FM_GetShiftState [23:54:00]SAM_PROTO_GetShiftState [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 13 01 00 [23:54:00]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 0E 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 35 [23:54:00]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:54:00]wFMCommunicate OK [23:54:00]SAM_PROTO_GetShiftState done [23:54:00]FM_GetShiftState done [23:54:00]req_shift_opened done [23:54:00]requested_item shift.open_date is exist - process it [23:54:00]req_shift_open_date [23:54:00]req_shift_open_date done [23:54:00]produce_requested_data done [23:54:00]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [23:54:00]process_action_free get_value [23:54:00]json_value_free [23:54:00]json_value_free done [23:54:00]process_json_proto returns [23:54:00]Send response to host [23:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [23:54:00]free response buf [23:54:00]execute_script done [23:54:00]execute_script returns [23:54:00]free content buf [23:54:00]Sock 9.Close socket [23:54:00]Sock 9.Thread stoped [23:54:00]accept exits with 8 [23:54:00]New connection [23:54:00]New thread 3066977636 created [23:54:00]Thread 3066834276 joined [23:54:00]Waiting for new connection... [23:54:00] Sock 8.Parse request [23:54:00]Sock 8.Check first char [23:54:00]Sock 8.First char is OK [23:54:00]request: POST /json_proto HTTP/1.0 [23:54:00]Method: POST [23:54:00]URL: /json_proto [23:54:00]Method is POST - this is cgi request [23:54:00]url: /json_proto [23:54:00]query_string will be loaded in cgi processing [23:54:00]execute_cgi json_proto POST (null) [23:54:00]execute_cgi path=json_proto method=POST [23:54:00]POST find Content-Length [23:54:00]Host: 172.17.35.133:8080 [23:54:00]Content-Length: 331 [23:54:00]Content-Type: application/json [23:54:00] [23:54:00]POST finish read [23:54:00]Found Content-Length = 331 [23:54:00]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:54:00]execute_script... [23:54:01]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:54:01]POST & json_proto [23:54:01]process_json_proto [23:54:01]json parsed OK: [23:54:01]protocol is kg_v1.0 [23:54:01]action value=get_value [23:54:01]process_action get_value [23:54:01]cmd_get_value [23:54:01]process_action get_value done [23:54:01]requested_data is exist [23:54:01]produce_requested_data [23:54:01]requested_item fm.sale.total is exist - process it [23:54:01]SAM_PROTO_GetFMData [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 13 03 00 [23:54:01]Write to MH i2c: E2 08 00 0B 23 80 13 03 00 00 00 00 00 AD [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 0B 23 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 40 [23:54:01]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:01]wFMCommunicate OK [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 17 00 00 [23:54:01]Write to MH i2c: E2 08 00 0C 23 80 17 00 00 00 00 00 00 AF [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 0C 23 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 AC [23:54:01]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:54:01]wFMCommunicate OK [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 17 00 00 [23:54:01]Write to MH i2c: E2 08 00 0D 23 80 17 00 00 00 00 00 00 B0 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 0D 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 DC [23:54:02]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:54:02]wFMCommunicate OK [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 17 00 00 [23:54:02]Write to MH i2c: E2 08 00 0E 23 80 17 00 00 00 00 00 00 B1 [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 0E 23 00 00 EF 03 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 29 [23:54:02]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:54:02]wFMCommunicate OK [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 17 00 00 [23:54:02]Write to MH i2c: E2 08 00 0F 23 80 17 00 00 00 00 00 00 B2 [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 D7 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 D7 00 0F 23 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 95 [23:54:02]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:54:02]wFMCommunicate OK [23:54:02]SAM_PROTO_GetFMData done [23:54:02]requested_item fm.sale_refund.total is exist - process it [23:54:02]requested_item fm.buy.total is exist - process it [23:54:02]requested_item shift.sale.total is exist - process it [23:54:02]SAM_PROTO_GetShiftData [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 13 02 00 [23:54:02]Write to MH i2c: E2 08 00 10 23 80 13 02 00 00 00 00 00 B1 [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 10 23 00 AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [23:54:03]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 11 23 80 17 00 00 00 00 00 00 B4 [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]OFD Sender: No OFD packet to send [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 11 23 00 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 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 90 00 CD [23:54:03]RAPDU: 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 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 90 00 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 12 23 80 17 00 00 00 00 00 00 B5 [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 12 23 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 69 [23:54:03]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 13 23 80 17 00 00 00 00 00 00 B6 [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:04]Read from MH i2c: E2 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 FD 00 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 FD 00 13 23 00 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 90 00 34 [23:54:04]RAPDU: 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 90 00 [23:54:04]wFMCommunicate OK [23:54:04]wFMCommunicate request_size=4 [23:54:04]MH_SAM_APDU [23:54:04]CAPDU: 80 17 00 00 [23:54:04]Write to MH i2c: E2 08 00 14 23 80 17 00 00 00 00 00 00 B7 [23:54:04]Write i2c OK [23:54:04]MH_I2C_Read... [23:54:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:04]Read from MH i2c: E2 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 CC 00 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 CC 00 14 23 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [23:54:04]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:54:04]wFMCommunicate OK [23:54:04]SAM_PROTO_GetShiftData done [23:54:04]requested_item shift.sale.total_cash is exist - process it [23:54:04]requested_item shift.sale_refund.total is exist - process it [23:54:04]requested_item shift.sale_refund.total_cash is exist - process it [23:54:04]requested_item shift.buy.total is exist - process it [23:54:04]requested_item shift.buy.total_cash is exist - process it [23:54:04]produce_requested_data done [23:54:04]produce_requested_data return {"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:54:04]process_action_free get_value [23:54:04]json_value_free [23:54:04]json_value_free done [23:54:04]process_json_proto returns [23:54:04]Send response to host [23:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:54:04]free response buf [23:54:04]execute_script done [23:54:04]execute_script returns [23:54:04]free content buf [23:54:04]Sock 8.Close socket [23:54:04]Sock 8.Thread stoped [23:54:04]accept exits with 9 [23:54:04]New connection [23:54:04]New thread 3066834276 created [23:54:04]Thread 3066977636 joined [23:54:04]Waiting for new connection... [23:54:04] Sock 9.Parse request [23:54:04]Sock 9.Check first char [23:54:04]Sock 9.First char is OK [23:54:04]request: POST /json_proto HTTP/1.0 [23:54:04]Method: POST [23:54:04]URL: /json_proto [23:54:04]Method is POST - this is cgi request [23:54:04]url: /json_proto [23:54:04]query_string will be loaded in cgi processing [23:54:04]execute_cgi json_proto POST (null) [23:54:04]execute_cgi path=json_proto method=POST [23:54:04]POST find Content-Length [23:54:04]Host: 172.17.35.133:8080 [23:54:04]Content-Length: 331 [23:54:04]Content-Type: application/json [23:54:04] [23:54:04]POST finish read [23:54:04]Found Content-Length = 331 [23:54:04]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:54:04]execute_script... [23:54:04]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:54:04]POST & json_proto [23:54:04]process_json_proto [23:54:04]json parsed OK: [23:54:04]protocol is kg_v1.0 [23:54:04]action value=get_value [23:54:04]process_action get_value [23:54:04]cmd_get_value [23:54:04]process_action get_value done [23:54:04]requested_data is exist [23:54:04]produce_requested_data [23:54:04]requested_item fm.sale.total is exist - process it [23:54:04]SAM_PROTO_GetFMData [23:54:04]wFMCommunicate request_size=4 [23:54:04]MH_SAM_APDU [23:54:04]CAPDU: 80 13 03 00 [23:54:04]Write to MH i2c: E2 08 00 15 23 80 13 03 00 00 00 00 00 B7 [23:54:04]Write i2c OK [23:54:04]MH_I2C_Read... [23:54:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:04]Read from MH i2c: E2 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 FD 00 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 FD 00 15 23 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 4A [23:54:04]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:05]wFMCommunicate OK [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 17 00 00 [23:54:05]Write to MH i2c: E2 08 00 16 23 80 17 00 00 00 00 00 00 B9 [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 16 23 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 B6 [23:54:05]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:54:05]wFMCommunicate OK [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 17 00 00 [23:54:05]Write to MH i2c: E2 08 00 17 23 80 17 00 00 00 00 00 00 BA [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 17 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 E6 [23:54:05]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:54:05]wFMCommunicate OK [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 17 00 00 [23:54:05]Write to MH i2c: E2 08 00 18 23 80 17 00 00 00 00 00 00 BB [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 18 23 00 00 EF 03 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 33 [23:54:06]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:54:06]wFMCommunicate OK [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 17 00 00 [23:54:06]Write to MH i2c: E2 08 00 19 23 80 17 00 00 00 00 00 00 BC [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 D7 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 D7 00 19 23 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 9F [23:54:06]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:54:06]wFMCommunicate OK [23:54:06]SAM_PROTO_GetFMData done [23:54:06]requested_item fm.sale_refund.total is exist - process it [23:54:06]requested_item fm.buy.total is exist - process it [23:54:06]requested_item shift.sale.total is exist - process it [23:54:06]SAM_PROTO_GetShiftData [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 13 02 00 [23:54:06]Write to MH i2c: E2 08 00 1A 23 80 13 02 00 00 00 00 00 BB [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 1A 23 00 AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [23:54:06]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 17 00 00 [23:54:07]Write to MH i2c: E2 08 00 1B 23 80 17 00 00 00 00 00 00 BE [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 FD 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 FD 00 1B 23 00 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 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 90 00 D7 [23:54:07]RAPDU: 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 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 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 17 00 00 [23:54:07]Write to MH i2c: E2 08 00 1C 23 80 17 00 00 00 00 00 00 BF [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 FD 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 FD 00 1C 23 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 73 [23:54:07]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 17 00 00 [23:54:07]Write to MH i2c: E2 08 00 1D 23 80 17 00 00 00 00 00 00 C0 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 FD 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 FD 00 1D 23 00 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 90 00 3E [23:54:08]RAPDU: 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 90 00 [23:54:08]wFMCommunicate OK [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 17 00 00 [23:54:08]Write to MH i2c: E2 08 00 1E 23 80 17 00 00 00 00 00 00 C1 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]OFD Sender: No OFD packet to send [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:08]Read from MH i2c: E2 CC 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 CC 00 1E 23 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [23:54:08]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:54:08]wFMCommunicate OK [23:54:08]SAM_PROTO_GetShiftData done [23:54:08]requested_item shift.sale.total_cash is exist - process it [23:54:08]requested_item shift.sale_refund.total is exist - process it [23:54:08]requested_item shift.sale_refund.total_cash is exist - process it [23:54:08]requested_item shift.buy.total is exist - process it [23:54:08]requested_item shift.buy.total_cash is exist - process it [23:54:08]produce_requested_data done [23:54:08]produce_requested_data return {"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:54:08]process_action_free get_value [23:54:08]json_value_free [23:54:08]json_value_free done [23:54:08]process_json_proto returns [23:54:08]Send response to host [23:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:54:08]free response buf [23:54:08]execute_script done [23:54:08]execute_script returns [23:54:08]free content buf [23:54:08]Sock 9.Close socket [23:54:08]Sock 9.Thread stoped [23:54:08]accept exits with 8 [23:54:08]New connection [23:54:08]New thread 3066977636 created [23:54:08]Thread 3066834276 joined [23:54:08]Waiting for new connection... [23:54:08] Sock 8.Parse request [23:54:08]Sock 8.Check first char [23:54:08]Sock 8.First char is OK [23:54:08]request: POST /json_proto HTTP/1.0 [23:54:08]Method: POST [23:54:08]URL: /json_proto [23:54:08]Method is POST - this is cgi request [23:54:08]url: /json_proto [23:54:08]query_string will be loaded in cgi processing [23:54:08]execute_cgi json_proto POST (null) [23:54:08]execute_cgi path=json_proto method=POST [23:54:08]POST find Content-Length [23:54:08]Host: 172.17.35.133:8080 [23:54:08]Content-Length: 275 [23:54:08]Content-Type: application/json [23:54:08] [23:54:08]POST finish read [23:54:08]Found Content-Length = 275 [23:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u043A\u0443\u043B\u043E\u0432\u0430 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:08]execute_script... [23:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u043A\u0443\u043B\u043E\u0432\u0430 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:08]POST & json_proto [23:54:08]process_json_proto [23:54:08]json parsed OK: [23:54:08]protocol is kg_v1.0 [23:54:08]action value=x_report [23:54:08]process_action x_report [23:54:08]cmd_x_report [23:54:08]MH_GetDate [23:54:08]Write to MH i2c: F0 00 00 1F 23 31 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: F0 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: F0 09 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: F0 09 00 1F 23 00 A4 13 93 66 1B 28 2A 66 BD [23:54:08]GetLastDocTimeStamp 1720913593 [23:54:08]current date 1720914852 [23:54:08]FM_GetShiftState [23:54:08]SAM_PROTO_GetShiftState [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 13 01 00 [23:54:08]Write to MH i2c: E2 08 00 20 23 80 13 01 00 00 00 00 00 C0 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 0E 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 0E 00 20 23 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 4B [23:54:08]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:54:08]wFMCommunicate OK [23:54:08]SAM_PROTO_GetShiftState done [23:54:08]FM_GetShiftState done [23:54:08]KKMCreateXReportDocument [23:54:08]Load OK [23:54:08]Malloc new data [23:54:08]MH_GetDate [23:54:08]Write to MH i2c: F0 00 00 21 23 33 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: F0 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: F0 09 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: F0 09 00 21 23 00 A4 13 93 66 1B 28 2A 66 BF [23:54:08]Malloc new data [23:54:08]Malloc new data [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 11 00 00 [23:54:08]Write to MH i2c: E2 08 00 22 23 80 11 00 00 00 00 00 00 BF [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 17 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 17 00 22 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 15 [23:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:54:08]wFMCommunicate OK [23:54:08]SAM_PROTO_GetFieldsCounters [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 13 00 00 [23:54:08]Write to MH i2c: E2 08 00 23 23 80 13 00 00 00 00 00 00 C2 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 62 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 62 00 23 23 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [23:54: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 B6 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:09]wFMCommunicate OK [23:54:09]SAM_PROTO_GetFieldsCounters done [23:54:09]Malloc new data [23:54:09]Malloc new data [23:54:09]Malloc new data [23:54:09]KKMCreateXReportDocument OK [23:54:09]KKMSetXReportData OK [23:54:09]KKMPrepareXReportFMData [23:54:09]SAM_PROTO_GetShiftData [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 13 02 00 [23:54:09]Write to MH i2c: E2 08 00 24 23 80 13 02 00 00 00 00 00 C5 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 24 23 00 AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [23:54:09]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:09]wFMCommunicate OK [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 17 00 00 [23:54:09]Write to MH i2c: E2 08 00 25 23 80 17 00 00 00 00 00 00 C8 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 25 23 00 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 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 90 00 E1 [23:54:10]RAPDU: 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 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 90 00 [23:54:10]wFMCommunicate OK [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 17 00 00 [23:54:10]Write to MH i2c: E2 08 00 26 23 80 17 00 00 00 00 00 00 C9 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 FD 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 FD 00 26 23 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 7D [23:54:10]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [23:54:10]wFMCommunicate OK [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 17 00 00 [23:54:10]Write to MH i2c: E2 08 00 27 23 80 17 00 00 00 00 00 00 CA [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 FD 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 FD 00 27 23 00 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 90 00 48 [23:54:10]RAPDU: 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 90 00 [23:54:11]wFMCommunicate OK [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 17 00 00 [23:54:11]Write to MH i2c: E2 08 00 28 23 80 17 00 00 00 00 00 00 CB [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 CC 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 CC 00 28 23 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AC [23:54:11]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:54:11]wFMCommunicate OK [23:54:11]SAM_PROTO_GetShiftData done [23:54:11]1194 (1195) - счетчики итогов смены [23:54:11] 1134 (4) - 143 - количество чеков со всеми признаками расчетов [23:54:11] 1129 (156) - счетчики операций «приход» [23:54:11] 1135 (4) - 143 - количество чеков по признаку расчетов [23:54:11] 1201 (3) - 123981.40 - общая итоговая сумма в чеках [23:54:11] 1136 (3) - 93903.00 - итоговая сумма в чеках наличными [23:54:11] 1138 (3) - 30078.40 - итоговая сумма в чеках безналичными [23:54:11] 1024 (123) - суммы налогов [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 0% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1006 (12) - суммы НДС [23:54:11] 1010 (1) - 12% - код ставки НДС [23:54:11] 1011 (3) - 13168.17 - сумма НДС по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (12) - суммы НСП [23:54:11] 1014 (1) - 1% - код ставки НСП [23:54:11] 1015 (3) - 1097.22 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 2% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 3% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 5% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1130 (141) - счетчики операций «возврат прихода» [23:54:11] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:11] 1024 (117) - суммы налогов [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 0% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 12% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 2% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 3% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 5% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1131 (141) - счетчики операций «расход» [23:54:11] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:11] 1024 (117) - суммы налогов [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 0% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 12% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 2% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 3% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 5% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1132 (141) - счетчики операций «возврат расхода» [23:54:11] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:11] 1024 (117) - суммы налогов [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 0% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1006 (9) - суммы НДС [23:54:11] 1010 (1) - 12% - код ставки НДС [23:54:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 2% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 3% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 5% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1133 (588) - - счетчики коррекции - не используются [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1194 (04AA) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1134 (046E) [23:54:11]Malloc new data [23:54:11]Processing tag 1129 (0469) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1135 (046F) [23:54:11]Malloc new data [23:54:11]Processing tag 1201 (04B1) [23:54:11]Malloc new data [23:54:11]Processing tag 1136 (0470) [23:54:11]Malloc new data [23:54:11]Processing tag 1138 (0472) [23:54:11]Malloc new data [23:54:11]Processing tag 1024 (0400) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1130 (046A) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1135 (046F) [23:54:12]Malloc new data [23:54:12]Processing tag 1201 (04B1) [23:54:12]Malloc new data [23:54:12]Processing tag 1136 (0470) [23:54:12]Malloc new data [23:54:12]Processing tag 1138 (0472) [23:54:12]Malloc new data [23:54:12]Processing tag 1024 (0400) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1131 (046B) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1135 (046F) [23:54:12]Malloc new data [23:54:12]Processing tag 1201 (04B1) [23:54:12]Malloc new data [23:54:12]Processing tag 1136 (0470) [23:54:12]Malloc new data [23:54:12]Processing tag 1138 (0472) [23:54:12]Malloc new data [23:54:12]Processing tag 1024 (0400) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1132 (046C) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1135 (046F) [23:54:12]Malloc new data [23:54:12]Processing tag 1201 (04B1) [23:54:12]Malloc new data [23:54:12]Processing tag 1136 (0470) [23:54:12]Malloc new data [23:54:12]Processing tag 1138 (0472) [23:54:12]Malloc new data [23:54:12]Processing tag 1024 (0400) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1006 (03EE) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1010 (03F2) [23:54:12]Malloc new data [23:54:12]Processing tag 1011 (03F3) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1007 (03EF) [23:54:12]Load OK [23:54:12]SetTLVBufToDocument [23:54:12]Processing tag 1014 (03F6) [23:54:12]Malloc new data [23:54:12]Processing tag 1015 (03F7) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Processing tag 1133 (046D) [23:54:12]Malloc new data [23:54:12]SetTLVBufToDocument err=0 [23:54:12]SetTLVBufToDocument err=0 [23:54:12]Malloc new data [23:54:12]SAM_PROTO_GetFMData [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 13 03 00 [23:54:12]Write to MH i2c: E2 08 00 29 23 80 13 03 00 00 00 00 00 CB [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 FD 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 FD 00 29 23 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 5E [23:54:13]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:13]wFMCommunicate OK [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 17 00 00 [23:54:13]Write to MH i2c: E2 08 00 2A 23 80 17 00 00 00 00 00 00 CD [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]OFD Sender: No OFD packet to send [23:54:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 FD 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 FD 00 2A 23 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 CA [23:54:13]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:54:13]wFMCommunicate OK [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 17 00 00 [23:54:13]Write to MH i2c: E2 08 00 2B 23 80 17 00 00 00 00 00 00 CE [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:14]Read from MH i2c: E2 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 FD 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 FD 00 2B 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 FA [23:54:14]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:54:14]wFMCommunicate OK [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 17 00 00 [23:54:14]Write to MH i2c: E2 08 00 2C 23 80 17 00 00 00 00 00 00 CF [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:14]Read from MH i2c: E2 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 FD 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 FD 00 2C 23 00 00 EF 03 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 47 [23:54:14]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:54:14]wFMCommunicate OK [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 17 00 00 [23:54:14]Write to MH i2c: E2 08 00 2D 23 80 17 00 00 00 00 00 00 D0 [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:54:15]Read from MH i2c: E2 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 D7 00 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 D7 00 2D 23 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 B3 [23:54:15]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:54:15]wFMCommunicate OK [23:54:15]SAM_PROTO_GetFMData done [23:54:15]FM_GetFMData:85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:16]oper:6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:16]total:D5 0E 0D 05 [23:54:16]Malloc new data [23:54:16]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:54:16]total:80 25 [23:54:16]Malloc new data [23:54:16]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:54:16]total: [23:54:16]Malloc new data [23:54:16]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:54:16]total: [23:54:16]Malloc new data [23:54:16]KKMPrepareXReportFMData err=0 [23:54:16]Х отчет ИНН: 02508201610067 Кассир: Кадыркулова Б. 13.07.2024 23:54 Смена: 10 РНМ: 0000000000177495 ЗНМ: 0300000124 СНО: Общий режим Всего чеков: 143 ИТОГИ ПРИХОД Чеков: 143 Общий итог: 123981.40 Итого наличными: 93903.00 Итого безнал.: 30078.40 НДС 0% : 0.00 НДС 12% : 13168.17 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1097.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 93903.00 НС Приход: 847418.45 НС Возвр.Прихода: 96.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002098592 [23:54:16]StoreToDocumentArchive [23:54:16]MH_GetDate [23:54:16]Write to MH i2c: F0 00 00 2E 23 40 [23:54:16]Write i2c OK [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: F0 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: F0 09 00 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: F0 09 00 2E 23 00 AC 13 93 66 1B 28 2A 66 D4 [23:54:16]shift 10 fd 1720914860 [23:54:16]Create dir for shift 0010 [23:54:16]save to /storage/0010/doc_1720914860 [23:54:16]save last doc name /storage/0010/doc_1720914860 to /storage/kkm_last_doc_name [23:54:16]save OK [23:54:16]Clear old archive folders... [23:54:16]NVStorageSaveData kkm_last_timestamp [23:54:16]File name is /storage/kkm_last_timestamp [23:54:16]Write 4 bytes [23:54:16]NVStorageSaveData done [23:54:16]ExternCall_PrintAddStr [23:54:16]wPrintStart [23:54:16]Write to MH i2c: 01 00 00 2F 23 52 [23:54:16]Write i2c OK [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: 01 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: 01 07 00 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: 01 07 00 2F 23 00 00 00 00 00 FF 0F 67 [23:54:16]RasterBufferAndPrint [23:54:16]line Х отчет [23:54:16]line ИНН: 02508201610067 [23:54:16]line Кассир: Кадыркулова Б. [23:54:16]line 13.07.2024 23:54 [23:54:16]line Смена: 10 [23:54:16]line РНМ: 0000000000177495 [23:54:16]line ЗНМ: 0300000124 [23:54:16]line СНО: Общий режим [23:54:16]line Всего чеков: 143 [23:54:16]line ИТОГИ ПРИХОД [23:54:16]line Чеков: 143 [23:54:16]line Общий итог: 123981.40 [23:54:16]line Итого наличными: 93903.00 [23:54:16]line Итого безнал.: 30078.40 [23:54:16]line НДС 0% : 0.00 [23:54:16]line НДС 12% : 13168.17 [23:54:16]line НСП 0% : 0.00 [23:54:16]line НСП 1,50% : 0.00 [23:54:16]line НСП 0,50% : 0.00 [23:54:16]line НСП 5% : 0.00 [23:54:16]line НСП 3% : 0.00 [23:54:16]line НСП 2% : 0.00 [23:54:16]line НСП 1% : 1097.22 [23:54:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:54:16]line Чеков: 0 [23:54:16]line Общий итог: 0.00 [23:54:16]line Итого наличными: 0.00 [23:54:16]line Итого безнал.: 0.00 [23:54:16]line НДС 0% : 0.00 [23:54:16]line НДС 12% : 0.00 [23:54:16]line НСП 0% : 0.00 [23:54:16]line НСП 1,50% : 0.00 [23:54:16]line НСП 0,50% : 0.00 [23:54:16]line НСП 5% : 0.00 [23:54:16]line НСП 3% : 0.00 [23:54:16]line НСП 2% : 0.00 [23:54:16]line НСП 1% : 0.00 [23:54:16]line ИТОГИ РАСХОД [23:54:16]line Чеков: 0 [23:54:16]line Общий итог: 0.00 [23:54:16]line Итого наличными: 0.00 [23:54:16]line Итого безнал.: 0.00 [23:54:16]line НДС 0% : 0.00 [23:54:16]line НДС 12% : 0.00 [23:54:16]line НСП 0% : 0.00 [23:54:16]line НСП 1,50% : 0.00 [23:54:16]line НСП 0,50% : 0.00 [23:54:16]line НСП 5% : 0.00 [23:54:16]line НСП 3% : 0.00 [23:54:16]line НСП 2% : 0.00 [23:54:16]line НСП 1% : 0.00 [23:54:16]line ИТОГИ ВОЗВРАТ РАСХОДА [23:54:16]line Чеков: 0 [23:54:16]line Общий итог: 0.00 [23:54:16]line Итого наличными: 0.00 [23:54:16]line Итого безнал.: 0.00 [23:54:16]line НДС 0% : 0.00 [23:54:16]line НДС 12% : 0.00 [23:54:16]line НСП 0% : 0.00 [23:54:16]line НСП 1,50% : 0.00 [23:54:16]line НСП 0,50% : 0.00 [23:54:16]line НСП 5% : 0.00 [23:54:16]line НСП 3% : 0.00 [23:54:16]line НСП 2% : 0.00 [23:54:16]line НСП 1% : 0.00 [23:54:16]line Сумма внесений: 0.00 [23:54:16]line Сумма выплат: 0.00 [23:54:16]line Нал. в кассе: 93903.00 [23:54:16]line НС Приход: 847418.45 [23:54:16]line НС Возвр.Прихода: 96.00 [23:54:16]line НС Расход: 0.00 [23:54:16]line НС Возвр.Расхода: 0.00 [23:54:16]line ФМ: 0000000002098592 [23:54:16]written 0, free lines is 4095 [23:54:17]Write to MH i2c: 01 00 00 7A 23 9D [23:54:17]Write i2c OK [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: 01 [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: 01 07 00 [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: 01 07 00 7A 23 00 00 00 00 00 C6 0A 74 [23:54:17]RasterBufferAndPrint [23:54:17]line [23:54:17]line [23:54:17]line [23:54:17]line [23:54:17]line [23:54:17]written 0, free lines is 2794 [23:54:17]MH_Cut [23:54:17]Write to MH i2c: D1 01 00 81 23 01 76 [23:54:17]Write i2c OK [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: D1 [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: D1 01 00 [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: D1 01 00 81 23 00 75 [23:54:17]Write to MH i2c: 01 00 00 82 23 A5 [23:54:17]Write i2c OK [23:54:17]MH_I2C_Read... [23:54:18]*** Cut start [23:54:18]*** Partial cut [23:54:18]*** CUTSNS_PIN = 1 [23:54:18]*** CUTSNS_PIN = 0 [23:54:18]OFD Sender: No OFD packet to send [23:54:18]*** Brake cut motor [23:54:18]Read from MH i2c: 01 [23:54:18]MH_I2C_Read... [23:54:18]*** Stop cut motor [23:54:18]*** Cut end [23:54:18]Read from MH i2c: 01 07 00 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: 01 07 00 82 23 00 00 00 00 00 FF 0F BA [23:54:18]process_action x_report done [23:54:18]requested_data is exist [23:54:18]produce_requested_data [23:54:18]requested_item fd.num is exist - process it [23:54:18]SAM_PROTO_GetFieldsCounters [23:54:18]wFMCommunicate request_size=4 [23:54:18]MH_SAM_APDU [23:54:18]CAPDU: 80 13 00 00 [23:54:18]Write to MH i2c: E2 08 00 83 23 80 13 00 00 00 00 00 00 22 [23:54:18]Write i2c OK [23:54:18]MH_I2C_Read... [23:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:19]Read from MH i2c: E2 [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: E2 62 00 [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: E2 62 00 83 23 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [23:54: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 B6 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:19]wFMCommunicate OK [23:54:19]SAM_PROTO_GetFieldsCounters done [23:54:19]requested_item shift.num is exist - process it [23:54:19]requested_item shift.opened is exist - process it [23:54:19]req_shift_opened [23:54:19]FM_GetShiftState [23:54:19]SAM_PROTO_GetShiftState [23:54:19]wFMCommunicate request_size=4 [23:54:19]MH_SAM_APDU [23:54:19]CAPDU: 80 13 01 00 [23:54:19]Write to MH i2c: E2 08 00 84 23 80 13 01 00 00 00 00 00 24 [23:54:19]Write i2c OK [23:54:19]MH_I2C_Read... [23:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:19]Read from MH i2c: E2 [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: E2 0E 00 [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: E2 0E 00 84 23 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 AF [23:54:19]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:54:19]wFMCommunicate OK [23:54:19]SAM_PROTO_GetShiftState done [23:54:19]FM_GetShiftState done [23:54:19]req_shift_opened done [23:54:19]requested_item shift.open_date is exist - process it [23:54:19]req_shift_open_date [23:54:19]req_shift_open_date done [23:54:19]produce_requested_data done [23:54:19]produce_requested_data return {"fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [23:54:19]process_action_free x_report [23:54:19]json_value_free [23:54:19]json_value_free done [23:54:19]process_json_proto returns [23:54:19]Send response to host [23:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [23:54:19]free response buf [23:54:19]execute_script done [23:54:19]execute_script returns [23:54:19]free content buf [23:54:19]Sock 8.Close socket [23:54:19]Sock 8.Thread stoped [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]accept exits with 9 [23:54:53]New connection [23:54:53]New thread 3066834276 created [23:54:53]Thread 3066977636 joined [23:54:53]Waiting for new connection... [23:54:53] Sock 9.Parse request [23:54:53]Sock 9.Check first char [23:54:53]Sock 9.First char is OK [23:54:53]request: POST /json_proto HTTP/1.0 [23:54:53]Method: POST [23:54:53]URL: /json_proto [23:54:53]Method is POST - this is cgi request [23:54:53]url: /json_proto [23:54:53]query_string will be loaded in cgi processing [23:54:53]execute_cgi json_proto POST (null) [23:54:53]execute_cgi path=json_proto method=POST [23:54:53]POST find Content-Length [23:54:53]Host: 172.17.35.133:8080 [23:54:53]Content-Length: 215 [23:54:53]Content-Type: application/json [23:54:53] [23:54:53]POST finish read [23:54:53]Found Content-Length = 215 [23:54: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" ] } } [23:54:53]execute_script... [23:54: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" ] } } [23:54:53]POST & json_proto [23:54:53]process_json_proto [23:54:53]json parsed OK: [23:54:53]protocol is kg_v1.0 [23:54:53]action value=get_value [23:54:53]process_action get_value [23:54:53]cmd_get_value [23:54:53]process_action get_value done [23:54:53]requested_data is exist [23:54:53]produce_requested_data [23:54:53]requested_item kkm.sn is exist - process it [23:54:53]requested_item kkm.ver is exist - process it [23:54:53]requested_item fm.sn is exist - process it [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 11 00 00 [23:54:53]Write to MH i2c: E2 08 00 85 23 80 11 00 00 00 00 00 00 22 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 17 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 17 00 85 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 78 [23:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:54:53]wFMCommunicate OK [23:54:53]requested_item fd.num is exist - process it [23:54:53]SAM_PROTO_GetFieldsCounters [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 13 00 00 [23:54:53]Write to MH i2c: E2 08 00 86 23 80 13 00 00 00 00 00 00 25 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 62 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 62 00 86 23 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [23:54: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 B6 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:53]wFMCommunicate OK [23:54:53]SAM_PROTO_GetFieldsCounters done [23:54:53]requested_item shift.num is exist - process it [23:54:53]requested_item shift.opened is exist - process it [23:54:53]req_shift_opened [23:54:53]FM_GetShiftState [23:54:53]SAM_PROTO_GetShiftState [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 13 01 00 [23:54:53]Write to MH i2c: E2 08 00 87 23 80 13 01 00 00 00 00 00 27 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 0E 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 0E 00 87 23 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 B2 [23:54:53]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:54:53]wFMCommunicate OK [23:54:53]SAM_PROTO_GetShiftState done [23:54:53]FM_GetShiftState done [23:54:53]req_shift_opened done [23:54:53]requested_item shift.open_date is exist - process it [23:54:53]req_shift_open_date [23:54:53]req_shift_open_date done [23:54:53]produce_requested_data done [23:54:53]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379} [23:54:53]process_action_free get_value [23:54:53]json_value_free [23:54:53]json_value_free done [23:54:53]process_json_proto returns [23:54:53]Send response to host [23:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1974,"shift.num":24,"shift.opened":1,"shift.open_date":1720829379}}} [23:54:53]free response buf [23:54:53]execute_script done [23:54:53]execute_script returns [23:54:53]free content buf [23:54:53]Sock 9.Close socket [23:54:53]Sock 9.Thread stoped [23:54:53]accept exits with 8 [23:54:53]New connection [23:54:53]New thread 3066977636 created [23:54:53]Thread 3066834276 joined [23:54:53]Waiting for new connection... [23:54:53] Sock 8.Parse request [23:54:53]Sock 8.Check first char [23:54:53]Sock 8.First char is OK [23:54:53]request: POST /json_proto HTTP/1.0 [23:54:53]Method: POST [23:54:53]URL: /json_proto [23:54:53]Method is POST - this is cgi request [23:54:53]url: /json_proto [23:54:53]query_string will be loaded in cgi processing [23:54:53]execute_cgi json_proto POST (null) [23:54:53]execute_cgi path=json_proto method=POST [23:54:53]POST find Content-Length [23:54:53]Host: 172.17.35.133:8080 [23:54:53]Content-Length: 331 [23:54:53]Content-Type: application/json [23:54:53] [23:54:53]POST finish read [23:54:53]Found Content-Length = 331 [23:54: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" ] } } [23:54:53]execute_script... [23:54: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" ] } } [23:54:53]POST & json_proto [23:54:53]process_json_proto [23:54:53]json parsed OK: [23:54:53]protocol is kg_v1.0 [23:54:53]action value=get_value [23:54:53]process_action get_value [23:54:53]cmd_get_value [23:54:53]process_action get_value done [23:54:53]requested_data is exist [23:54:53]produce_requested_data [23:54:53]requested_item fm.sale.total is exist - process it [23:54:53]SAM_PROTO_GetFMData [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 13 03 00 [23:54:53]Write to MH i2c: E2 08 00 88 23 80 13 03 00 00 00 00 00 2A [23:54:53]OFD Sender: No OFD packet to send [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 88 23 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 BD [23:54:54]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 17 00 00 [23:54:54]Write to MH i2c: E2 08 00 89 23 80 17 00 00 00 00 00 00 2C [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 89 23 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 29 [23:54: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 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 17 00 00 [23:54:54]Write to MH i2c: E2 08 00 8A 23 80 17 00 00 00 00 00 00 2D [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 8A 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 59 [23:54: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:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 17 00 00 [23:54:54]Write to MH i2c: E2 08 00 8B 23 80 17 00 00 00 00 00 00 2E [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 8B 23 00 00 EF 03 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 A6 [23:54:55]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:54:55]wFMCommunicate OK [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 17 00 00 [23:54:55]Write to MH i2c: E2 08 00 8C 23 80 17 00 00 00 00 00 00 2F [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 D7 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 D7 00 8C 23 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 12 [23:54: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:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_GetFMData done [23:54:55]requested_item fm.sale_refund.total is exist - process it [23:54:55]requested_item fm.buy.total is exist - process it [23:54:55]requested_item shift.sale.total is exist - process it [23:54:55]SAM_PROTO_GetShiftData [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 13 02 00 [23:54:55]Write to MH i2c: E2 08 00 8D 23 80 13 02 00 00 00 00 00 2E [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 8D 23 00 AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [23:54:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:55]wFMCommunicate OK [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 17 00 00 [23:54:55]Write to MH i2c: E2 08 00 8E 23 80 17 00 00 00 00 00 00 31 [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 8E 23 00 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 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 90 00 4A [23:54:56]RAPDU: 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 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 90 00 [23:54:56]wFMCommunicate OK [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 17 00 00 [23:54:56]Write to MH i2c: E2 08 00 8F 23 80 17 00 00 00 00 00 00 32 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 8F 23 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 E6 [23:54:56]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [23:54:56]wFMCommunicate OK [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 17 00 00 [23:54:56]Write to MH i2c: E2 08 00 90 23 80 17 00 00 00 00 00 00 33 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 90 23 00 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 90 00 B1 [23:54:56]RAPDU: 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 90 00 [23:54:56]wFMCommunicate OK [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 17 00 00 [23:54:56]Write to MH i2c: E2 08 00 91 23 80 17 00 00 00 00 00 00 34 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 CC 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 CC 00 91 23 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [23:54:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:54:57]wFMCommunicate OK [23:54:57]SAM_PROTO_GetShiftData done [23:54:57]requested_item shift.sale.total_cash is exist - process it [23:54:57]requested_item shift.sale_refund.total is exist - process it [23:54:57]requested_item shift.sale_refund.total_cash is exist - process it [23:54:57]requested_item shift.buy.total is exist - process it [23:54:57]requested_item shift.buy.total_cash is exist - process it [23:54:57]produce_requested_data done [23:54:57]produce_requested_data return {"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:54:57]process_action_free get_value [23:54:57]json_value_free [23:54:57]json_value_free done [23:54:57]process_json_proto returns [23:54:57]Send response to host [23:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:54:57]free response buf [23:54:57]execute_script done [23:54:57]execute_script returns [23:54:57]free content buf [23:54:57]Sock 8.Close socket [23:54:57]Sock 8.Thread stoped [23:54:57]accept exits with 9 [23:54:57]New connection [23:54:57]New thread 3066834276 created [23:54:57]Thread 3066977636 joined [23:54:57]Waiting for new connection... [23:54:57] Sock 9.Parse request [23:54:57]Sock 9.Check first char [23:54:57]Sock 9.First char is OK [23:54:57]request: POST /json_proto HTTP/1.0 [23:54:57]Method: POST [23:54:57]URL: /json_proto [23:54:57]Method is POST - this is cgi request [23:54:57]url: /json_proto [23:54:57]query_string will be loaded in cgi processing [23:54:57]execute_cgi json_proto POST (null) [23:54:57]execute_cgi path=json_proto method=POST [23:54:57]POST find Content-Length [23:54:57]Host: 172.17.35.133:8080 [23:54:57]Content-Length: 331 [23:54:57]Content-Type: application/json [23:54:57] [23:54:57]POST finish read [23:54:57]Found Content-Length = 331 [23:54:57]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:54:57]execute_script... [23:54:57]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:54:57]POST & json_proto [23:54:57]process_json_proto [23:54:57]json parsed OK: [23:54:57]protocol is kg_v1.0 [23:54:57]action value=get_value [23:54:57]process_action get_value [23:54:57]cmd_get_value [23:54:57]process_action get_value done [23:54:57]requested_data is exist [23:54:57]produce_requested_data [23:54:57]requested_item fm.sale.total is exist - process it [23:54:57]SAM_PROTO_GetFMData [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 13 03 00 [23:54:57]Write to MH i2c: E2 08 00 92 23 80 13 03 00 00 00 00 00 34 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 92 23 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 C7 [23:54:57]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:54:58]wFMCommunicate OK [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 17 00 00 [23:54:58]Write to MH i2c: E2 08 00 93 23 80 17 00 00 00 00 00 00 36 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 93 23 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 33 [23:54:58]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:54:58]wFMCommunicate OK [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 17 00 00 [23:54:58]Write to MH i2c: E2 08 00 94 23 80 17 00 00 00 00 00 00 37 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 94 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 63 [23:54:58]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:54:58]wFMCommunicate OK [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 17 00 00 [23:54:58]Write to MH i2c: E2 08 00 95 23 80 17 00 00 00 00 00 00 38 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]OFD Sender: No OFD packet to send [23:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 95 23 00 00 EF 03 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 B0 [23:54:59]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:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 17 00 00 [23:54:59]Write to MH i2c: E2 08 00 96 23 80 17 00 00 00 00 00 00 39 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 D7 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 D7 00 96 23 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 1C [23:54:59]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:54:59]wFMCommunicate OK [23:54:59]SAM_PROTO_GetFMData done [23:54:59]requested_item fm.sale_refund.total is exist - process it [23:54:59]requested_item fm.buy.total is exist - process it [23:54:59]requested_item shift.sale.total is exist - process it [23:54:59]SAM_PROTO_GetShiftData [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 13 02 00 [23:54:59]Write to MH i2c: E2 08 00 97 23 80 13 02 00 00 00 00 00 38 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 97 23 00 AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [23:55:00]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 98 23 80 17 00 00 00 00 00 00 3B [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 98 23 00 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 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 90 00 54 [23:55:00]RAPDU: 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 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 90 00 [23:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 99 23 80 17 00 00 00 00 00 00 3C [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 99 23 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 F0 [23:55:01]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [23:55:01]wFMCommunicate OK [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 17 00 00 [23:55:01]Write to MH i2c: E2 08 00 9A 23 80 17 00 00 00 00 00 00 3D [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 9A 23 00 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 90 00 BB [23:55:01]RAPDU: 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 90 00 [23:55:01]wFMCommunicate OK [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 17 00 00 [23:55:01]Write to MH i2c: E2 08 00 9B 23 80 17 00 00 00 00 00 00 3E [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 CC 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 CC 00 9B 23 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [23:55:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:02]wFMCommunicate OK [23:55:02]SAM_PROTO_GetShiftData done [23:55:02]requested_item shift.sale.total_cash is exist - process it [23:55:02]requested_item shift.sale_refund.total is exist - process it [23:55:02]requested_item shift.sale_refund.total_cash is exist - process it [23:55:02]requested_item shift.buy.total is exist - process it [23:55:02]requested_item shift.buy.total_cash is exist - process it [23:55:02]produce_requested_data done [23:55:02]produce_requested_data return {"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:55:02]process_action_free get_value [23:55:02]json_value_free [23:55:02]json_value_free done [23:55:02]process_json_proto returns [23:55:02]Send response to host [23:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:55:02]free response buf [23:55:02]execute_script done [23:55:02]execute_script returns [23:55:02]free content buf [23:55:02]Sock 9.Close socket [23:55:02]Sock 9.Thread stoped [23:55:02]accept exits with 8 [23:55:02]New connection [23:55:02]New thread 3066977636 created [23:55:02]Thread 3066834276 joined [23:55:02]Waiting for new connection... [23:55:02] Sock 8.Parse request [23:55:02]Sock 8.Check first char [23:55:02]Sock 8.First char is OK [23:55:02]request: POST /json_proto HTTP/1.0 [23:55:02]Method: POST [23:55:02]URL: /json_proto [23:55:02]Method is POST - this is cgi request [23:55:02]url: /json_proto [23:55:02]query_string will be loaded in cgi processing [23:55:02]execute_cgi json_proto POST (null) [23:55:02]execute_cgi path=json_proto method=POST [23:55:02]POST find Content-Length [23:55:02]Host: 172.17.35.133:8080 [23:55:02]Content-Length: 278 [23:55:02]Content-Type: application/json [23:55:02] [23:55:02]POST finish read [23:55:02]Found Content-Length = 278 [23:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u043A\u0443\u043B\u043E\u0432\u0430 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:02]execute_script... [23:55:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u043A\u0443\u043B\u043E\u0432\u0430 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:02]POST & json_proto [23:55:02]process_json_proto [23:55:02]json parsed OK: [23:55:02]protocol is kg_v1.0 [23:55:02]action value=close_shift [23:55:02]process_action close_shift [23:55:02]cmd_close_shift [23:55:02]MH_GetDate [23:55:02]Write to MH i2c: F0 00 00 9C 23 AE [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 09 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 09 00 9C 23 00 D9 13 93 66 1B 28 2A 66 6F [23:55:02]GetLastDocTimeStamp 1720914852 [23:55:02]current date 1720914905 [23:55:02]FM_GetShiftState [23:55:02]SAM_PROTO_GetShiftState [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 13 01 00 [23:55:02]Write to MH i2c: E2 08 00 9D 23 80 13 01 00 00 00 00 00 3D [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 0E 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 0E 00 9D 23 00 09 00 01 C3 C5 91 66 00 00 00 00 90 00 C8 [23:55:02]RAPDU: 09 00 01 C3 C5 91 66 00 00 00 00 90 00 [23:55:02]wFMCommunicate OK [23:55:02]SAM_PROTO_GetShiftState done [23:55:02]FM_GetShiftState done [23:55:02]KKMCreateCloseShiftDocument [23:55:02]Load OK [23:55:02]Malloc new data [23:55:02]MH_GetDate [23:55:02]Write to MH i2c: F0 00 00 9E 23 B0 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 09 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 09 00 9E 23 00 D9 13 93 66 1B 28 2A 66 71 [23:55:02]Malloc new data [23:55:02]Malloc new data [23:55:02]Malloc new data [23:55:02]Malloc new data [23:55:02]KKMCreateCloseShiftDocument OK [23:55:02]KKMSetCloseShiftData OK [23:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=77 [23:55:02]tlvbuf is 010C1040 [23:55:02]KKMLoadAndSignCloseShiftData [23:55:02]SAM_PROTO_ProcessDocument [23:55:02]wFMCommunicate request_size=9 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 15 01 00 04 05 00 4D 00 [23:55:02]Write to MH i2c: E2 0C 00 9F 23 80 15 01 00 04 00 05 00 4D 00 00 00 9B [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 9F 23 00 90 00 36 [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=23 [23:55:02]MH_SAM_APDU [23:55:02]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:55:02]Write to MH i2c: E2 1A 00 A0 23 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 38 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 A0 23 00 90 00 37 [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=36 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 91 2E 20 [23:55:02]Write to MH i2c: E2 27 00 A1 23 80 15 02 00 1F 00 FD 03 1B 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 91 2E 20 00 00 80 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 A1 23 00 90 00 38 [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=13 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 15 02 00 08 F4 03 04 00 D9 13 93 66 [23:55:02]Write to MH i2c: E2 10 00 A2 23 80 15 02 00 08 00 F4 03 04 00 D9 13 93 66 00 00 35 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 A2 23 00 90 00 39 [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=25 [23:55:02]MH_SAM_APDU [23:55:02]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:55:02]Write to MH i2c: E2 1C 00 A3 23 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 B0 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 A3 23 00 90 00 3A [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 15 03 00 [23:55:02]Write to MH i2c: E2 08 00 A4 23 80 15 03 00 00 00 00 00 48 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 A4 23 00 F2 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 B7 07 00 00 0E 04 04 00 18 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [23:55:03]RAPDU: F2 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 B7 07 00 00 0E 04 04 00 18 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:03]wFMCommunicate OK [23:55:03]SAM_PROTO_ProcessDocument answer len = 1266 [23:55:03]SAM_PROTO_ProcessDocument remain to read = 1018 [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 A5 23 80 17 00 00 00 00 00 00 48 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 A5 23 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 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 90 00 8E [23:55:03]RAPDU: 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 90 00 [23:55:03]wFMCommunicate OK [23:55:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:03]SAM_PROTO_ProcessDocument remain to read = 768 [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 A6 23 80 17 00 00 00 00 00 00 49 [23:55:03]OFD Sender: No OFD packet to send [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 A6 23 00 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 90 00 AB [23:55:04]RAPDU: 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 90 00 [23:55:04]wFMCommunicate OK [23:55:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:04]SAM_PROTO_ProcessDocument remain to read = 518 [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 17 00 00 [23:55:04]Write to MH i2c: E2 08 00 A7 23 80 17 00 00 00 00 00 00 4A [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 A7 23 00 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 90 00 E5 [23:55:04]RAPDU: 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 90 00 [23:55:05]wFMCommunicate OK [23:55:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:05]SAM_PROTO_ProcessDocument remain to read = 268 [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 17 00 00 [23:55:05]Write to MH i2c: E2 08 00 A8 23 80 17 00 00 00 00 00 00 4B [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 A8 23 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 02 [23:55:05]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [23:55:05]wFMCommunicate OK [23:55:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:05]SAM_PROTO_ProcessDocument remain to read = 18 [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 17 00 00 [23:55:05]Write to MH i2c: E2 08 00 A9 23 80 17 00 00 00 00 00 00 4C [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 15 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 15 00 A9 23 00 03 01 00 06 F7 03 00 00 35 04 06 00 C4 04 79 86 EB 09 90 00 50 [23:55:05]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 C4 04 79 86 EB 09 90 00 [23:55:05]wFMCommunicate OK [23:55:05]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [23:55:05]SAM_PROTO_ProcessDocument done [23:55:05]1209 (1) - 1.0 - номер версии ФФД [23:55:05]1041 (16) - 0000000002098592 - номер ФМ [23:55:05]1040 (4) - 1975 - номер ФД [23:55:05]1038 (4) - 24 - номер смены [23:55:05]1118 (4) - 143 - количество кассовых чеков за смену [23:55:05]1111 (4) - 145 - общее количество ФД за смену [23:55:05]1194 (1195) - счетчики итогов смены [23:55:05] 1134 (4) - 143 - количество чеков со всеми признаками расчетов [23:55:05] 1129 (156) - счетчики операций «приход» [23:55:05] 1135 (4) - 143 - количество чеков по признаку расчетов [23:55:05] 1201 (3) - 123981.40 - общая итоговая сумма в чеках [23:55:05] 1136 (3) - 93903.00 - итоговая сумма в чеках наличными [23:55:05] 1138 (3) - 30078.40 - итоговая сумма в чеках безналичными [23:55:05] 1024 (123) - суммы налогов [23:55:05] 1006 (9) - суммы НДС [23:55:05] 1010 (1) - 0% - код ставки НДС [23:55:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:05] 1006 (12) - суммы НДС [23:55:05] 1010 (1) - 12% - код ставки НДС [23:55:05] 1011 (3) - 13168.17 - сумма НДС по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 0% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (12) - суммы НСП [23:55:05] 1014 (1) - 1% - код ставки НСП [23:55:05] 1015 (3) - 1097.22 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 2% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 3% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 5% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 0,50% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 1,50% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1130 (141) - счетчики операций «возврат прихода» [23:55:05] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:05] 1024 (117) - суммы налогов [23:55:05] 1006 (9) - суммы НДС [23:55:05] 1010 (1) - 0% - код ставки НДС [23:55:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:05] 1006 (9) - суммы НДС [23:55:05] 1010 (1) - 12% - код ставки НДС [23:55:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 0% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 1% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 2% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 3% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 5% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 0,50% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 1,50% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1131 (141) - счетчики операций «расход» [23:55:05] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:05] 1024 (117) - суммы налогов [23:55:05] 1006 (9) - суммы НДС [23:55:05] 1010 (1) - 0% - код ставки НДС [23:55:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:05] 1006 (9) - суммы НДС [23:55:05] 1010 (1) - 12% - код ставки НДС [23:55:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 0% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 1% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 2% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 3% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 5% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 0,50% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1007 (9) - суммы НСП [23:55:05] 1014 (1) - 1,50% - код ставки НСП [23:55:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:05] 1132 (141) - счетчики операций «возврат расхода» [23:55:05] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:05] 1024 (117) - суммы налогов [23:55:05] 1006 (9) - суммы НДС [23:55:05] 1010 (1) - 0% - код ставки НДС [23:55:06] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:06] 1006 (9) - суммы НДС [23:55:06] 1010 (1) - 12% - код ставки НДС [23:55:06] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 0% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 1% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 2% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 3% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 5% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 0,50% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1007 (9) - суммы НСП [23:55:06] 1014 (1) - 1,50% - код ставки НСП [23:55:06] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:06] 1133 (588) - - счетчики коррекции - не используются [23:55:06]1077 (6) - 215523497798409 - ФПД [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1209 (04B9) [23:55:06]Malloc new data [23:55:06]Processing tag 1041 (0411) [23:55:06]Processing tag 1040 (0410) [23:55:06]Malloc new data [23:55:06]Processing tag 1038 (040E) [23:55:06]Malloc new data [23:55:06]Processing tag 1118 (045E) [23:55:06]Malloc new data [23:55:06]Processing tag 1111 (0457) [23:55:06]Malloc new data [23:55:06]Processing tag 1194 (04AA) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1134 (046E) [23:55:06]Malloc new data [23:55:06]Processing tag 1129 (0469) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1135 (046F) [23:55:06]Malloc new data [23:55:06]Processing tag 1201 (04B1) [23:55:06]Malloc new data [23:55:06]Processing tag 1136 (0470) [23:55:06]Malloc new data [23:55:06]Processing tag 1138 (0472) [23:55:06]Malloc new data [23:55:06]Processing tag 1024 (0400) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1130 (046A) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1135 (046F) [23:55:06]Malloc new data [23:55:06]Processing tag 1201 (04B1) [23:55:06]Malloc new data [23:55:06]Processing tag 1136 (0470) [23:55:06]Malloc new data [23:55:06]Processing tag 1138 (0472) [23:55:06]Malloc new data [23:55:06]Processing tag 1024 (0400) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1131 (046B) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1135 (046F) [23:55:06]Malloc new data [23:55:06]Processing tag 1201 (04B1) [23:55:06]Malloc new data [23:55:06]Processing tag 1136 (0470) [23:55:06]Malloc new data [23:55:06]Processing tag 1138 (0472) [23:55:06]Malloc new data [23:55:06]Processing tag 1024 (0400) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1132 (046C) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1135 (046F) [23:55:06]Malloc new data [23:55:06]Processing tag 1201 (04B1) [23:55:06]Malloc new data [23:55:06]Processing tag 1136 (0470) [23:55:06]Malloc new data [23:55:06]Processing tag 1138 (0472) [23:55:06]Malloc new data [23:55:06]Processing tag 1024 (0400) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1006 (03EE) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1010 (03F2) [23:55:06]Malloc new data [23:55:06]Processing tag 1011 (03F3) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1007 (03EF) [23:55:06]Load OK [23:55:06]SetTLVBufToDocument [23:55:06]Processing tag 1014 (03F6) [23:55:06]Malloc new data [23:55:06]Processing tag 1015 (03F7) [23:55:06]Malloc new data [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]SetTLVBufToDocument err=0 [23:55:06]Processing tag 1133 (046D) [23:55:06]Malloc new data [23:55:07]SetTLVBufToDocument err=0 [23:55:07]Processing tag 1077 (0435) [23:55:07]Malloc new data [23:55:07]SetTLVBufToDocument err=0 [23:55:07]Malloc new data [23:55:07]SAM_PROTO_GetFMData [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 03 00 [23:55:07]Write to MH i2c: E2 08 00 AA 23 80 13 03 00 00 00 00 00 4C [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 AA 23 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 DF [23:55:07]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:55:07]wFMCommunicate OK [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 17 00 00 [23:55:07]Write to MH i2c: E2 08 00 AB 23 80 17 00 00 00 00 00 00 4E [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 [23:55:07]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 AB 23 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 4B [23:55:08]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:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 AC 23 80 17 00 00 00 00 00 00 4F [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 AC 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 7B [23:55:08]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:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 AD 23 80 17 00 00 00 00 00 00 50 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:09]OFD Sender: No OFD packet to send [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 AD 23 00 00 EF 03 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 C8 [23:55:09]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:55:09]wFMCommunicate OK [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 17 00 00 [23:55:09]Write to MH i2c: E2 08 00 AE 23 80 17 00 00 00 00 00 00 51 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 D7 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 D7 00 AE 23 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 34 [23:55:09]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:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetFMData done [23:55:09]Malloc new data [23:55:09]Malloc new data [23:55:09]Malloc new data [23:55:09]Malloc new data [23:55:09]KKMLoadAndSignCloseShiftData err=0 [23:55:09]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кадыркулова Б. 13.07.2024 23:55 Смена: 24 РНМ: 0000000000177495 ЗНМ: 0300000124 СНО: Общий режим Чеков за смену: 143 ФД за смену: 145 Всего чеков: 143 ИТОГИ ПРИХОД Чеков: 143 Общий итог: 123981.40 Итого наличными: 93903.00 Итого безнал.: 30078.40 НДС 0% : 0.00 НДС 12% : 13168.17 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1097.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 93903.00 НС Приход: 847418.45 НС Возвр.Прихода: 96.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 1975 ФМ: 0000000002098592 ФПД: 215523497798409 [23:55:09]StoreToDocumentArchive [23:55:09]shift 24 fd 1975 [23:55:09]save to /storage/0024/doc_00001975 [23:55:09]save last doc name /storage/0024/doc_00001975 to /storage/kkm_last_doc_name [23:55:09]save OK [23:55:09]Clear old archive folders... [23:55:09]Remove dir /storage/0010 [23:55:09]opendir ok [23:55:09]file . [23:55:09]file .. [23:55:09]file doc_1720914860 [23:55:09]remove file /storage/0010/doc_1720914860 [23:55:09]remove dir /storage/0010 [23:55:09]NVStorageSaveData kkm_registers [23:55:09]File name is /storage/kkm_registers [23:55:09]Write 24 bytes [23:55:09]NVStorageSaveData done [23:55:09]NVStorageSaveData kkm_registers [23:55:09]File name is /storage/kkm_registers [23:55:09]Write 24 bytes [23:55:09]NVStorageSaveData done [23:55:09]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [23:55:09]tlvbuf is 010EB670 [23:55:09]SAM_PROTO_ClearQueue [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 09 00 00 [23:55:09]Write to MH i2c: E2 08 00 AF 23 80 09 00 00 00 00 00 00 44 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 03 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [23:55:10]RAPDU: 90 00 [23:55:10]wFMCommunicate OK [23:55:10]SAM_PROTO_ClearQueue done [23:55:10]KKMCreateOFDPacket [23:55:10]OFDProtocolAddRootSTLVToBuf [23:55:10]FM_MakeSignedData [23:55:10]FM_MakeSignedData [23:55:10]SAM_PROTO_SignData [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 0D 01 02 [23:55:10]Write to MH i2c: E2 08 00 B0 23 80 0D 01 02 00 00 00 00 4C [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 03 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 03 00 B0 23 00 90 00 47 [23:55:10]RAPDU: 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=255 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 0D 02 02 FA 05 00 6A 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 9A D0 B0 D0 B4 D1 8B D1 80 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 91 2E 20 F4 03 04 00 D9 13 93 66 0E 04 04 00 18 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 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D6 04 6E 04 04 00 8F 00 00 00 69 04 A3 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 82 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 D1 17 14 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:55:10]Write to MH i2c: E2 02 01 B1 23 80 0D 02 02 FA 00 05 00 6A 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 9A D0 B0 D0 B4 D1 8B D1 80 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 91 2E 20 F4 03 04 00 D9 13 93 66 0E 04 04 00 18 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 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D6 04 6E 04 04 00 8F 00 00 00 69 04 A3 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 82 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 D1 17 14 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 2D [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 03 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 03 00 B1 23 00 90 00 48 [23:55:10]RAPDU: 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=255 [23:55:10]MH_SAM_APDU [23:55:10]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 0C 00 F6 03 01 00 01 F7 03 03 00 9A AC 01 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 [23:55:10]Write to MH i2c: E2 02 01 B2 23 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 0C 00 F6 03 01 00 01 F7 03 03 00 9A AC 01 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 00 00 12 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 B2 23 00 90 00 49 [23:55:11]RAPDU: 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=255 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 0D 02 02 FA 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 [23:55:11]Write to MH i2c: E2 02 01 B3 23 80 0D 02 02 FA 00 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 00 00 13 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 B3 23 00 90 00 4A [23:55:12]RAPDU: 90 00 [23:55:12]wFMCommunicate OK [23:55:12]wFMCommunicate request_size=255 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 80 0D 02 02 FA 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 [23:55:12]Write to MH i2c: E2 02 01 B4 23 80 0D 02 02 FA 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 00 16 [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 B4 23 00 90 00 4B [23:55:12]RAPDU: 90 00 [23:55:12]wFMCommunicate OK [23:55:12]wFMCommunicate request_size=255 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 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 [23:55:12]Write to MH i2c: E2 02 01 B5 23 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 D8 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 03 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 03 00 B5 23 00 90 00 4C [23:55:13]RAPDU: 90 00 [23:55:13]wFMCommunicate OK [23:55:13]wFMCommunicate request_size=145 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 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 B7 07 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 C4 04 79 86 EB 09 [23:55:13]Write to MH i2c: E2 94 00 B6 23 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 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 B7 07 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 C4 04 79 86 EB 09 00 00 17 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 03 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [23:55:13]RAPDU: 90 00 [23:55:13]wFMCommunicate OK [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 0D 03 02 [23:55:13]Write to MH i2c: E2 08 00 B7 23 80 0D 03 02 00 00 00 00 55 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 0B 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 0B 00 B7 23 00 A6 F0 E8 A8 ED 56 EE E1 90 00 8E [23:55:13]RAPDU: A6 F0 E8 A8 ED 56 EE E1 90 00 [23:55:13]wFMCommunicate OK [23:55:13]SAM_PROTO_SignData done [23:55:13]FM_MakeSignedData done [23:55:13]CreateOFDProtocolMessage [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 11 00 00 [23:55:13]Write to MH i2c: E2 08 00 B8 23 80 11 00 00 00 00 00 00 55 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:13]Read from MH i2c: E2 17 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 17 00 B8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 AB [23:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [23:55:14]wFMCommunicate OK [23:55:14]CreateOFDProtocolMessage done [23:55:14]OFDSenderStorePacket 1975 [23:55:14]StoreOFDPacket docnum=1975 [23:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 7E 05 00 00 3C 3A 76 05 3A BA 5A 05 01 00 05 00 6A 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 9A D0 B0 D0 B4 D1 8B D1 80 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 91 2E 20 F4 03 04 00 D9 13 93 66 0E 04 04 00 18 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 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D6 04 6E 04 04 00 8F 00 00 00 69 04 A3 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 82 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 D1 17 14 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 0C 00 F6 03 01 00 01 F7 03 03 00 9A AC 01 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 B7 07 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 C4 04 79 86 EB 09 A6 F0 E8 A8 ED 56 EE E1 [23:55:14]CheckFolder [23:55:14]dirname=/storage/ofd_packets [23:55:14]CheckFolder done [23:55:14]ProducePacketName [23:55:14]name=ofd_packets/00001975 [23:55:14]NVStorageSaveData ofd_packets/00001975 [23:55:14]File name is /storage/ofd_packets/00001975 [23:55:14]Write 1436 bytes [23:55:14]NVStorageSaveData done [23:55:14]OFDSenderStorePacket done [23:55:14]KKMCreateOFDPacket done [23:55:14]NVStorageSaveData kkm_last_timestamp [23:55:14]File name is /storage/kkm_last_timestamp [23:55:14]Write 4 bytes [23:55:14]NVStorageSaveData done [23:55:14]ExternCall_PrintAddStr [23:55:14]wPrintStart [23:55:14]Write to MH i2c: 01 00 00 B9 23 DC [23:55:14]OFD Sender: No OFD packet to send [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: 01 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: 01 07 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: 01 07 00 B9 23 00 00 00 00 00 FF 0F F1 [23:55:14]RasterBufferAndPrint [23:55:14]line Отчет о закрытии смены [23:55:14]line ФФД: 1.0 [23:55:14]line ИНН: 02508201610067 [23:55:14]line Кассир: Кадыркулова Б. [23:55:14]line 13.07.2024 23:55 [23:55:14]line Смена: 24 [23:55:14]line РНМ: 0000000000177495 [23:55:14]line ЗНМ: 0300000124 [23:55:14]line СНО: Общий режим [23:55:14]line Чеков за смену: 143 [23:55:14]line ФД за смену: 145 [23:55:14]line Всего чеков: 143 [23:55:14]line ИТОГИ ПРИХОД [23:55:14]line Чеков: 143 [23:55:14]line Общий итог: 123981.40 [23:55:14]line Итого наличными: 93903.00 [23:55:14]line Итого безнал.: 30078.40 [23:55:14]line НДС 0% : 0.00 [23:55:14]line НДС 12% : 13168.17 [23:55:14]line НСП 0% : 0.00 [23:55:14]line НСП 1,50% : 0.00 [23:55:14]line НСП 0,50% : 0.00 [23:55:14]line НСП 5% : 0.00 [23:55:14]line НСП 3% : 0.00 [23:55:14]line НСП 2% : 0.00 [23:55:14]line НСП 1% : 1097.22 [23:55:14]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:14]line Чеков: 0 [23:55:14]line Общий итог: 0.00 [23:55:14]line Итого наличными: 0.00 [23:55:14]line Итого безнал.: 0.00 [23:55:14]line НДС 0% : 0.00 [23:55:14]line НДС 12% : 0.00 [23:55:14]line НСП 0% : 0.00 [23:55:14]line НСП 1,50% : 0.00 [23:55:14]line НСП 0,50% : 0.00 [23:55:14]line НСП 5% : 0.00 [23:55:14]line НСП 3% : 0.00 [23:55:14]line НСП 2% : 0.00 [23:55:14]line НСП 1% : 0.00 [23:55:14]line ИТОГИ РАСХОД [23:55:14]line Чеков: 0 [23:55:14]line Общий итог: 0.00 [23:55:14]line Итого наличными: 0.00 [23:55:14]line Итого безнал.: 0.00 [23:55:14]line НДС 0% : 0.00 [23:55:14]line НДС 12% : 0.00 [23:55:14]line НСП 0% : 0.00 [23:55:14]line НСП 1,50% : 0.00 [23:55:14]line НСП 0,50% : 0.00 [23:55:14]line НСП 5% : 0.00 [23:55:14]line НСП 3% : 0.00 [23:55:14]line НСП 2% : 0.00 [23:55:14]line НСП 1% : 0.00 [23:55:14]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:14]line Чеков: 0 [23:55:14]line Общий итог: 0.00 [23:55:14]line Итого наличными: 0.00 [23:55:14]line Итого безнал.: 0.00 [23:55:14]line НДС 0% : 0.00 [23:55:14]line НДС 12% : 0.00 [23:55:14]line НСП 0% : 0.00 [23:55:14]line НСП 1,50% : 0.00 [23:55:14]line НСП 0,50% : 0.00 [23:55:14]line НСП 5% : 0.00 [23:55:14]line НСП 3% : 0.00 [23:55:14]line НСП 2% : 0.00 [23:55:14]line НСП 1% : 0.00 [23:55:14]line Сумма внесений: 0.00 [23:55:14]line Сумма выплат: 0.00 [23:55:14]line Нал. в кассе: 93903.00 [23:55:14]line НС Приход: 847418.45 [23:55:14]line НС Возвр.Прихода: 96.00 [23:55:14]line НС Расход: 0.00 [23:55:14]line НС Возвр.Расхода: 0.00 [23:55:14]line ФД: 1975 [23:55:14]line ФМ: 0000000002098592 [23:55:14]line ФПД: 215523497798409 [23:55:14]written 0, free lines is 4095 [23:55:14]OFD Sender: Processing packet 1975 [packets to send 1, broken 0] [23:55:14]ProducePacketName [23:55:14]name=ofd_packets/00001975 [23:55:14]OFD Sender: To server: pG, [23:55:14]CommunicateWithHost lk.salyk.kg:30040 [23:55:14]ConnectInit lk.salyk.kg [23:55:14]Connected sock=10 [23:55: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 7E 05 00 00 3C 3A 76 05 3A BA 5A 05 01 00 05 00 6A 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 9A D0 B0 D0 B4 D1 8B D1 80 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 91 2E 20 F4 03 04 00 D9 13 93 66 0E 04 04 00 18 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 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D6 04 6E 04 04 00 8F 00 00 00 69 04 A3 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 82 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 D1 17 14 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 0C 00 F6 03 01 00 01 F7 03 03 00 9A AC 01 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 Write to MH i2c: 00 01 00 00 F3 00 03 09 00 24 00 2D EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 [23:55:15]09 00 Write i2c OK [23:55:15]F6 MH_I2C_Read... [23:55:15]03 Read from MH i2c: 01 01 00 [23:55:15]00 MH_I2C_Read... [23:55:15]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 Read from MH i2c: F7 01 03 07 00 00 00 [23:55:15]EF MH_I2C_Read... [23:55:15]03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: F3 01 03 07 00 00 00 09 EE 24 03 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 00 00 00 F6 00 03 9A 01 0B 00 D9 00 [23:55:15]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 RasterBufferAndPrint [23:55:15]03 line [23:55:15]00 line [23:55:15]00 line [23:55:15]EF line [23:55:15]03 line [23:55:15]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 written 0, free lines is 3286 [23:55:15]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 MH_Cut [23:55:15]01 Write to MH i2c: 00 D1 04 01 F7 00 03 10 00 24 00 01 EF 06 03 [23:55:15]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [23:55:15]00 MH_I2C_Read... [23:55:15]06 Read from MH i2c: F7 D1 03 [23:55:15]00 MH_I2C_Read... [23:55:15]00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 Read from MH i2c: 04 D1 00 01 00 00 70 [23:55:15]04 MH_I2C_Read... [23:55:15]00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 Read from MH i2c: 01 D1 00 01 00 00 F3 10 03 24 00 00 00 05 EE [23:55:15]03 Write to MH i2c: 01 09 00 00 00 11 F2 24 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 35 00 [23:55:15]00 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [23:55:15]01 MH_I2C_Read... [23:55:15]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 B7 07 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 C4 04 79 86 EB 09 A6 F0 E8 A8 ED 56 EE E1 [23:55: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 97 F9 47 00 73 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 *** Cut start [23:55:16]36 31 32 33 34 11 *** Partial cut [23:55:16]04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 10 04 04 00 B7 07 00 00 F4 03 04 00 1A BF 92 66 B6 04 01 00 00 CB 99 65 D4 9B F2 89 83 [23:55:16]CommunicateWithHost err = 0 [23:55:16]CheckOFDResponse [23:55:16]*** CUTSNS_PIN = 1 [23:55:16]1017 (14) - 77093643461234 [23:55:16]*** CUTSNS_PIN = 0 [23:55:16]1041 (16) - 0000000002098592 [23:55:16]1040 (4) - 1975 [23:55:16]1012 (4) - 13.07.2024 17:53 [23:55:16]1206 (1) - 0 [23:55:16]OFD Sender: Remove packet 1975 [23:55:16]ProducePacketName [23:55:16]name=ofd_packets/00001975 [23:55:16]NVStorageDeleteData [23:55:16]*** Brake cut motor [23:55:16]Read from MH i2c: 01 [23:55:16]MH_I2C_Read... [23:55:16]*** Stop cut motor [23:55:16]*** Cut end [23:55:16]Read from MH i2c: 01 07 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: 01 07 00 11 24 00 00 00 00 00 FF 0F 4A [23:55:17]process_action close_shift done [23:55:17]requested_data is exist [23:55:17]produce_requested_data [23:55:17]requested_item fd.num is exist - process it [23:55:17]SAM_PROTO_GetFieldsCounters [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 13 00 00 [23:55:17]Write to MH i2c: E2 08 00 12 24 80 13 00 00 00 00 00 00 B2 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]OFD Sender: No OFD packet to send [23:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 62 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 62 00 12 24 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [23:55:17]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:17]wFMCommunicate OK [23:55:17]SAM_PROTO_GetFieldsCounters done [23:55:17]requested_item shift.num is exist - process it [23:55:17]requested_item shift.opened is exist - process it [23:55:17]req_shift_opened [23:55:17]FM_GetShiftState [23:55:17]SAM_PROTO_GetShiftState [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 13 01 00 [23:55:17]Write to MH i2c: E2 08 00 13 24 80 13 01 00 00 00 00 00 B4 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 0E 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 0E 00 13 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BF [23:55:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:17]wFMCommunicate OK [23:55:17]SAM_PROTO_GetShiftState done [23:55:17]FM_GetShiftState done [23:55:17]req_shift_opened done [23:55:17]requested_item shift.open_date is exist - process it [23:55:17]req_shift_open_date [23:55:17]FM_GetShiftState [23:55:17]SAM_PROTO_GetShiftState [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 13 01 00 [23:55:17]Write to MH i2c: E2 08 00 14 24 80 13 01 00 00 00 00 00 B5 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 0E 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 0E 00 14 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C0 [23:55:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:17]wFMCommunicate OK [23:55:17]SAM_PROTO_GetShiftState done [23:55:17]FM_GetShiftState done [23:55:17]req_shift_open_date done [23:55:17]produce_requested_data done [23:55:17]produce_requested_data return {"fd.num":1975,"shift.num":24,"shift.opened":0,"shift.open_date":0} [23:55:17]process_action_free close_shift [23:55:17]json_value_free [23:55:17]json_value_free done [23:55:17]process_json_proto returns [23:55:17]Send response to host [23:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":1975,"shift.num":24,"shift.opened":0,"shift.open_date":0}}} [23:55:17]free response buf [23:55:17]execute_script done [23:55:17]execute_script returns [23:55:17]free content buf [23:55:17]Sock 8.Close socket [23:55:17]Sock 8.Thread stoped [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:21]accept exits with 9 [00:12:21]New connection [00:12:21]New thread 3066834276 created [00:12:21]Thread 3066977636 joined [00:12:21]Waiting for new connection... [00:12:21] Sock 9.Parse request [00:12:21]Sock 9.Check first char [00:12:21]Sock 9.First char is OK [00:12:21]request: POST /json_proto HTTP/1.0 [00:12:21]Method: POST [00:12:21]URL: /json_proto [00:12:21]Method is POST - this is cgi request [00:12:21]url: /json_proto [00:12:21]query_string will be loaded in cgi processing [00:12:21]execute_cgi json_proto POST (null) [00:12:21]execute_cgi path=json_proto method=POST [00:12:21]POST find Content-Length [00:12:21]Host: 172.17.35.133:8080 [00:12:21]Content-Length: 215 [00:12:21]Content-Type: application/json [00:12:21] [00:12:21]POST finish read [00:12:21]Found Content-Length = 215 [00:12:21]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:12:21]execute_script... [00:12:21]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:12:21]POST & json_proto [00:12:21]process_json_proto [00:12:21]json parsed OK: [00:12:21]protocol is kg_v1.0 [00:12:21]action value=get_value [00:12:21]process_action get_value [00:12:21]cmd_get_value [00:12:21]process_action get_value done [00:12:21]requested_data is exist [00:12:21]produce_requested_data [00:12:21]requested_item kkm.sn is exist - process it [00:12:21]requested_item kkm.ver is exist - process it [00:12:21]requested_item fm.sn is exist - process it [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 11 00 00 [00:12:21]Write to MH i2c: E2 08 00 15 24 80 11 00 00 00 00 00 00 B3 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 17 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 17 00 15 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 09 [00:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:12:21]wFMCommunicate OK [00:12:21]requested_item fd.num is exist - process it [00:12:21]SAM_PROTO_GetFieldsCounters [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 13 00 00 [00:12:21]Write to MH i2c: E2 08 00 16 24 80 13 00 00 00 00 00 00 B6 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 62 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 62 00 16 24 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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [00:12:21]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 07 00 00 0E 04 04 00 18 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:21]wFMCommunicate OK [00:12:21]SAM_PROTO_GetFieldsCounters done [00:12:21]requested_item shift.num is exist - process it [00:12:21]requested_item shift.opened is exist - process it [00:12:21]req_shift_opened [00:12:21]FM_GetShiftState [00:12:21]SAM_PROTO_GetShiftState [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 13 01 00 [00:12:21]Write to MH i2c: E2 08 00 17 24 80 13 01 00 00 00 00 00 B8 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 0E 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 0E 00 17 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C3 [00:12:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:21]wFMCommunicate OK [00:12:21]SAM_PROTO_GetShiftState done [00:12:21]FM_GetShiftState done [00:12:21]req_shift_opened done [00:12:21]requested_item shift.open_date is exist - process it [00:12:21]req_shift_open_date [00:12:21]FM_GetShiftState [00:12:21]SAM_PROTO_GetShiftState [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 13 01 00 [00:12:21]Write to MH i2c: E2 08 00 18 24 80 13 01 00 00 00 00 00 B9 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 0E 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 0E 00 18 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C4 [00:12:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:21]wFMCommunicate OK [00:12:21]SAM_PROTO_GetShiftState done [00:12:21]FM_GetShiftState done [00:12:21]req_shift_open_date done [00:12:21]produce_requested_data done [00:12:21]produce_requested_data return {"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1975,"shift.num":24,"shift.opened":0,"shift.open_date":0} [00:12:21]process_action_free get_value [00:12:21]json_value_free [00:12:21]json_value_free done [00:12:21]process_json_proto returns [00:12:21]Send response to host [00:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000124","kkm.ver":"001","fm.sn":"0000000002098592","fd.num":1975,"shift.num":24,"shift.opened":0,"shift.open_date":0}}} [00:12:21]free response buf [00:12:21]execute_script done [00:12:21]execute_script returns [00:12:21]free content buf [00:12:21]Sock 9.Close socket [00:12:21]Sock 9.Thread stoped [00:12:21]accept exits with 8 [00:12:21]New connection [00:12:21]New thread 3066977636 created [00:12:21]Thread 3066834276 joined [00:12:21]Waiting for new connection... [00:12:21] Sock 8.Parse request [00:12:21]Sock 8.Check first char [00:12:21]Sock 8.First char is OK [00:12:21]request: POST /json_proto HTTP/1.0 [00:12:21]Method: POST [00:12:21]URL: /json_proto [00:12:21]Method is POST - this is cgi request [00:12:21]url: /json_proto [00:12:21]query_string will be loaded in cgi processing [00:12:21]execute_cgi json_proto POST (null) [00:12:21]execute_cgi path=json_proto method=POST [00:12:21]POST find Content-Length [00:12:21]Host: 172.17.35.133:8080 [00:12:21]Content-Length: 331 [00:12:21]Content-Type: application/json [00:12:21] [00:12:21]POST finish read [00:12:21]Found Content-Length = 331 [00:12:21]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:12:21]execute_script... [00:12:21]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:12:21]POST & json_proto [00:12:21]process_json_proto [00:12:21]json parsed OK: [00:12:21]protocol is kg_v1.0 [00:12:21]action value=get_value [00:12:21]process_action get_value [00:12:21]cmd_get_value [00:12:21]process_action get_value done [00:12:21]requested_data is exist [00:12:21]produce_requested_data [00:12:21]requested_item fm.sale.total is exist - process it [00:12:21]SAM_PROTO_GetFMData [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 13 03 00 [00:12:21]Write to MH i2c: E2 08 00 19 24 80 13 03 00 00 00 00 00 BC [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 FD 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 FD 00 19 24 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 4F [00:12:22]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:12:22]wFMCommunicate OK [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 17 00 00 [00:12:22]Write to MH i2c: E2 08 00 1A 24 80 17 00 00 00 00 00 00 BE [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 FD 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 FD 00 1A 24 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 BB [00:12:22]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:12:22]wFMCommunicate OK [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 17 00 00 [00:12:22]Write to MH i2c: E2 08 00 1B 24 80 17 00 00 00 00 00 00 BF [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 FD 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 FD 00 1B 24 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 EB [00:12:22]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:12:22]wFMCommunicate OK [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 17 00 00 [00:12:22]Write to MH i2c: E2 08 00 1C 24 80 17 00 00 00 00 00 00 C0 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]OFD Sender: No OFD packet to send [00:12:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 FD 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 FD 00 1C 24 00 00 EF 03 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 38 [00:12:23]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:12:23]wFMCommunicate OK [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 17 00 00 [00:12:23]Write to MH i2c: E2 08 00 1D 24 80 17 00 00 00 00 00 00 C1 [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 D7 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 D7 00 1D 24 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 A4 [00:12:23]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:12:23]wFMCommunicate OK [00:12:23]SAM_PROTO_GetFMData done [00:12:23]requested_item fm.sale_refund.total is exist - process it [00:12:23]requested_item fm.buy.total is exist - process it [00:12:23]requested_item shift.sale.total is exist - process it [00:12:23]SAM_PROTO_GetShiftData [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 13 02 00 [00:12:23]Write to MH i2c: E2 08 00 1E 24 80 13 02 00 00 00 00 00 C0 [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 FD 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 FD 00 1E 24 00 AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:12:23]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8F 00 00 00 69 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 3C 2E BD 70 04 03 00 DC 48 8F 72 04 03 00 60 E5 2D 00 04 7B 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 D1 17 14 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 9A AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:23]wFMCommunicate OK [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 17 00 00 [00:12:23]Write to MH i2c: E2 08 00 1F 24 80 17 00 00 00 00 00 00 C3 [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 1F 24 00 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 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 90 00 DC [00:12:24]RAPDU: 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 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 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 17 00 00 [00:12:24]Write to MH i2c: E2 08 00 20 24 80 17 00 00 00 00 00 00 C4 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 20 24 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 78 [00:12:24]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 17 00 00 [00:12:24]Write to MH i2c: E2 08 00 21 24 80 17 00 00 00 00 00 00 C5 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 21 24 00 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 90 00 43 [00:12:24]RAPDU: 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 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 17 00 00 [00:12:24]Write to MH i2c: E2 08 00 22 24 80 17 00 00 00 00 00 00 C6 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 CC 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 CC 00 22 24 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 [00:12:24]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:24]wFMCommunicate OK [00:12:24]SAM_PROTO_GetShiftData done [00:12:24]requested_item shift.sale.total_cash is exist - process it [00:12:24]requested_item shift.sale_refund.total is exist - process it [00:12:24]requested_item shift.sale_refund.total_cash is exist - process it [00:12:24]requested_item shift.buy.total is exist - process it [00:12:24]requested_item shift.buy.total_cash is exist - process it [00:12:24]produce_requested_data done [00:12:24]produce_requested_data return {"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:12:24]process_action_free get_value [00:12:24]json_value_free [00:12:25]json_value_free done [00:12:25]process_json_proto returns [00:12:25]Send response to host [00:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":847418.45,"fm.sale_refund.total":96.00,"fm.buy.total":0.00,"shift.sale.total":123981.40,"shift.sale.total_cash":93903.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:12:25]free response buf [00:12:25]execute_script done [00:12:25]execute_script returns [00:12:25]free content buf [00:12:25]Sock 8.Close socket [00:12:25]Sock 8.Thread stoped [00:12:25]accept exits with 9 [00:12:25]New connection [00:12:25]New thread 3066834276 created [00:12:25]Thread 3066977636 joined [00:12:25]Waiting for new connection... [00:12:25] Sock 9.Parse request [00:12:25]Sock 9.Check first char [00:12:25]Sock 9.First char is OK [00:12:25]request: POST /json_proto HTTP/1.0 [00:12:25]Method: POST [00:12:25]URL: /json_proto [00:12:25]Method is POST - this is cgi request [00:12:25]url: /json_proto [00:12:25]query_string will be loaded in cgi processing [00:12:25]execute_cgi json_proto POST (null) [00:12:25]execute_cgi path=json_proto method=POST [00:12:25]POST find Content-Length [00:12:25]Host: 172.17.35.133:8080 [00:12:25]Content-Length: 277 [00:12:25]Content-Type: application/json [00:12:25] [00:12:25]POST finish read [00:12:25]Found Content-Length = 277 [00:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_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" ] } } [00:12:25]execute_script... [00:12:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_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" ] } } [00:12:25]POST & json_proto [00:12:25]process_json_proto [00:12:25]json parsed OK: [00:12:25]protocol is kg_v1.0 [00:12:25]action value=open_shift [00:12:25]process_action open_shift [00:12:25]cmd_open_shift [00:12:25]MH_GetDate [00:12:25]Write to MH i2c: F0 00 00 23 24 36 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: F0 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: F0 09 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: F0 09 00 23 24 00 EC 17 93 66 1B 28 2A 66 0E [00:12:25]GetLastDocTimeStamp 1720914905 [00:12:25]current date 1720915948 [00:12:25]FM_GetShiftState [00:12:25]SAM_PROTO_GetShiftState [00:12:25]wFMCommunicate request_size=4 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 13 01 00 [00:12:25]Write to MH i2c: E2 08 00 24 24 80 13 01 00 00 00 00 00 C5 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 0E 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 0E 00 24 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D0 [00:12:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:25]wFMCommunicate OK [00:12:25]SAM_PROTO_GetShiftState done [00:12:25]FM_GetShiftState done [00:12:25]KKMCreateOpenShiftDocument [00:12:25]Load OK [00:12:25]Malloc new data [00:12:25]MH_GetDate [00:12:25]Write to MH i2c: F0 00 00 25 24 38 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: F0 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: F0 09 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: F0 09 00 25 24 00 EC 17 93 66 1B 28 2A 66 10 [00:12:25]Malloc new data [00:12:25]KKMCreateOpenShiftDocument OK [00:12:25]KKMSetOpenShiftData OK [00:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=218 [00:12:25]tlvbuf is 010B1D90 [00:12:25]KKMLoadAndSignOpenShiftData [00:12:25]SAM_PROTO_ProcessDocument [00:12:25]wFMCommunicate request_size=9 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 15 01 00 04 02 00 DA 00 [00:12:25]Write to MH i2c: E2 0C 00 26 24 80 15 01 00 04 00 02 00 DA 00 00 00 AD [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 26 24 00 90 00 BE [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=23 [00:12:25]MH_SAM_APDU [00:12:25]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:12:25]Write to MH i2c: E2 1A 00 27 24 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 C0 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 27 24 00 90 00 BF [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=36 [00:12:25]MH_SAM_APDU [00:12:25]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 [00:12:25]Write to MH i2c: E2 27 00 28 24 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 7D [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 28 24 00 90 00 C0 [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=101 [00:12:25]MH_SAM_APDU [00:12:25]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:12:25]Write to MH i2c: E2 68 00 29 24 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 0A [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 29 24 00 90 00 C1 [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=50 [00:12:25]MH_SAM_APDU [00:12:25]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:12:25]Write to MH i2c: E2 35 00 2A 24 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 4A [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=13 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 15 02 00 08 F4 03 04 00 EC 17 93 66 [00:12:25]Write to MH i2c: E2 10 00 2B 24 80 15 02 00 08 00 F4 03 04 00 EC 17 93 66 00 00 D6 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 2B 24 00 90 00 C3 [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=25 [00:12:25]MH_SAM_APDU [00:12:25]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:12:25]Write to MH i2c: E2 1C 00 2C 24 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 3A [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 2C 24 00 90 00 C4 [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=4 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 15 03 00 [00:12:25]Write to MH i2c: E2 08 00 2D 24 80 15 03 00 00 00 00 00 D2 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:26]Read from MH i2c: E2 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 38 00 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 38 00 2D 24 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 B8 07 00 00 0E 04 04 00 19 00 00 00 35 04 06 00 8F FC 7D 5D 90 BC 90 00 2A [00:12:26]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 B8 07 00 00 0E 04 04 00 19 00 00 00 35 04 06 00 8F FC 7D 5D 90 BC 90 00 [00:12:26]wFMCommunicate OK [00:12:26]SAM_PROTO_ProcessDocument answer len = 51 [00:12:26]SAM_PROTO_ProcessDocument done [00:12:26]SetTLVBufToDocument [00:12:26]Processing tag 1209 (04B9) [00:12:26]Malloc new data [00:12:26]Processing tag 1041 (0411) [00:12:26]Processing tag 1040 (0410) [00:12:26]Malloc new data [00:12:26]Processing tag 1038 (040E) [00:12:26]Malloc new data [00:12:26]Processing tag 1077 (0435) [00:12:26]Malloc new data [00:12:26]SetTLVBufToDocument err=0 [00:12:26]KKMLoadAndSignOpenShiftData store KKM data [00:12:26]KKMLoadAndSignOpenShiftData err=0 [00:12:26]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Женишбекова С. Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 Место: АЗС № 76 "Партнер Нефть" 14.07.2024 00:12 Смена: 25 РНМ: 0000000000177495 ЗНМ: 0300000124 ФД: 1976 ФМ: 0000000002098592 ФПД: 158314597814460 [00:12:26]StoreToDocumentArchive [00:12:26]shift 25 fd 1976 [00:12:26]Create dir for shift 0025 [00:12:26]save to /storage/0025/doc_00001976 [00:12:26]save last doc name /storage/0025/doc_00001976 to /storage/kkm_last_doc_name [00:12:26]save OK [00:12:26]Clear old archive folders... [00:12:26]Remove dir /storage/0024 [00:12:26]opendir ok [00:12:26]file . [00:12:26]file .. [00:12:26]file doc_00001831 [00:12:26]remove file /storage/0024/doc_00001831 [00:12:26]file doc_00001832 [00:12:26]remove file /storage/0024/doc_00001832 [00:12:26]file doc_00001833 [00:12:26]remove file /storage/0024/doc_00001833 [00:12:26]file doc_00001834 [00:12:26]remove file /storage/0024/doc_00001834 [00:12:26]file doc_00001835 [00:12:26]remove file /storage/0024/doc_00001835 [00:12:26]file doc_00001836 [00:12:26]remove file /storage/0024/doc_00001836 [00:12:26]file doc_00001837 [00:12:26]remove file /storage/0024/doc_00001837 [00:12:26]file doc_00001838 [00:12:26]remove file /storage/0024/doc_00001838 [00:12:26]file doc_00001839 [00:12:26]remove file /storage/0024/doc_00001839 [00:12:26]file doc_00001840 [00:12:26]remove file /storage/0024/doc_00001840 [00:12:26]file doc_00001841 [00:12:26]remove file /storage/0024/doc_00001841 [00:12:26]file doc_00001842 [00:12:26]remove file /storage/0024/doc_00001842 [00:12:26]file doc_00001843 [00:12:26]remove file /storage/0024/doc_00001843 [00:12:26]file doc_00001844 [00:12:26]remove file /storage/0024/doc_00001844 [00:12:26]file doc_00001845 [00:12:26]remove file /storage/0024/doc_00001845 [00:12:26]file doc_00001846 [00:12:26]remove file /storage/0024/doc_00001846 [00:12:26]file doc_00001847 [00:12:26]remove file /storage/0024/doc_00001847 [00:12:26]file doc_00001848 [00:12:26]remove file /storage/0024/doc_00001848 [00:12:26]file doc_00001849 [00:12:26]remove file /storage/0024/doc_00001849 [00:12:26]file doc_00001850 [00:12:26]remove file /storage/0024/doc_00001850 [00:12:26]file doc_00001851 [00:12:26]remove file /storage/0024/doc_00001851 [00:12:26]file doc_00001852 [00:12:26]remove file /storage/0024/doc_00001852 [00:12:26]file doc_00001853 [00:12:26]remove file /storage/0024/doc_00001853 [00:12:26]file doc_00001854 [00:12:26]remove file /storage/0024/doc_00001854 [00:12:26]file doc_00001855 [00:12:26]remove file /storage/0024/doc_00001855 [00:12:26]file doc_00001856 [00:12:26]remove file /storage/0024/doc_00001856 [00:12:26]file doc_00001857 [00:12:26]remove file /storage/0024/doc_00001857 [00:12:26]file doc_00001858 [00:12:26]remove file /storage/0024/doc_00001858 [00:12:26]file doc_00001859 [00:12:26]remove file /storage/0024/doc_00001859 [00:12:26]file doc_00001860 [00:12:26]remove file /storage/0024/doc_00001860 [00:12:26]file doc_00001861 [00:12:26]remove file /storage/0024/doc_00001861 [00:12:26]file doc_00001862 [00:12:26]remove file /storage/0024/doc_00001862 [00:12:26]file doc_00001863 [00:12:26]remove file /storage/0024/doc_00001863 [00:12:26]file doc_00001864 [00:12:26]remove file /storage/0024/doc_00001864 [00:12:26]file doc_00001865 [00:12:26]remove file /storage/0024/doc_00001865 [00:12:26]file doc_00001866 [00:12:26]remove file /storage/0024/doc_00001866 [00:12:26]file doc_00001867 [00:12:26]remove file /storage/0024/doc_00001867 [00:12:26]file doc_00001868 [00:12:26]remove file /storage/0024/doc_00001868 [00:12:26]file doc_00001869 [00:12:26]remove file /storage/0024/doc_00001869 [00:12:26]file doc_00001870 [00:12:26]remove file /storage/0024/doc_00001870 [00:12:26]file doc_00001871 [00:12:26]remove file /storage/0024/doc_00001871 [00:12:26]file doc_00001872 [00:12:26]remove file /storage/0024/doc_00001872 [00:12:26]file doc_00001873 [00:12:26]remove file /storage/0024/doc_00001873 [00:12:26]file doc_00001874 [00:12:26]remove file /storage/0024/doc_00001874 [00:12:26]file doc_00001875 [00:12:26]remove file /storage/0024/doc_00001875 [00:12:26]file doc_00001876 [00:12:26]remove file /storage/0024/doc_00001876 [00:12:26]file doc_00001877 [00:12:26]remove file /storage/0024/doc_00001877 [00:12:26]file doc_00001878 [00:12:26]remove file /storage/0024/doc_00001878 [00:12:26]file doc_00001879 [00:12:26]remove file /storage/0024/doc_00001879 [00:12:26]file doc_00001880 [00:12:26]remove file /storage/0024/doc_00001880 [00:12:26]file doc_00001881 [00:12:26]remove file /storage/0024/doc_00001881 [00:12:26]file doc_00001882 [00:12:26]remove file /storage/0024/doc_00001882 [00:12:26]file doc_00001883 [00:12:26]remove file /storage/0024/doc_00001883 [00:12:26]file doc_00001884 [00:12:26]remove file /storage/0024/doc_00001884 [00:12:26]file doc_00001885 [00:12:26]remove file /storage/0024/doc_00001885 [00:12:26]file doc_00001886 [00:12:26]remove file /storage/0024/doc_00001886 [00:12:26]file doc_00001887 [00:12:26]remove file /storage/0024/doc_00001887 [00:12:26]file doc_00001888 [00:12:26]remove file /storage/0024/doc_00001888 [00:12:26]file doc_00001889 [00:12:26]remove file /storage/0024/doc_00001889 [00:12:26]file doc_00001890 [00:12:26]remove file /storage/0024/doc_00001890 [00:12:26]file doc_00001891 [00:12:26]remove file /storage/0024/doc_00001891 [00:12:26]file doc_00001892 [00:12:26]remove file /storage/0024/doc_00001892 [00:12:26]file doc_00001893 [00:12:26]remove file /storage/0024/doc_00001893 [00:12:26]file doc_00001894 [00:12:26]remove file /storage/0024/doc_00001894 [00:12:26]file doc_00001895 [00:12:26]remove file /storage/0024/doc_00001895 [00:12:26]file doc_00001896 [00:12:26]remove file /storage/0024/doc_00001896 [00:12:26]file doc_00001897 [00:12:26]remove file /storage/0024/doc_00001897 [00:12:26]file doc_00001898 [00:12:26]remove file /storage/0024/doc_00001898 [00:12:26]file doc_00001899 [00:12:26]remove file /storage/0024/doc_00001899 [00:12:26]file doc_00001900 [00:12:26]remove file /storage/0024/doc_00001900 [00:12:26]file doc_00001901 [00:12:26]remove file /storage/0024/doc_00001901 [00:12:26]file doc_00001902 [00:12:26]remove file /storage/0024/doc_00001902 [00:12:26]file doc_00001903 [00:12:26]remove file /storage/0024/doc_00001903 [00:12:26]file doc_00001904 [00:12:26]remove file /storage/0024/doc_00001904 [00:12:26]file doc_00001905 [00:12:26]remove file /storage/0024/doc_00001905 [00:12:26]file doc_00001906 [00:12:26]remove file /storage/0024/doc_00001906 [00:12:26]file doc_00001907 [00:12:26]remove file /storage/0024/doc_00001907 [00:12:26]file doc_00001908 [00:12:26]remove file /storage/0024/doc_00001908 [00:12:26]file doc_00001909 [00:12:26]remove file /storage/0024/doc_00001909 [00:12:26]file doc_00001910 [00:12:26]remove file /storage/0024/doc_00001910 [00:12:26]file doc_00001911 [00:12:26]remove file /storage/0024/doc_00001911 [00:12:26]file doc_00001912 [00:12:26]remove file /storage/0024/doc_00001912 [00:12:26]file doc_00001913 [00:12:26]remove file /storage/0024/doc_00001913 [00:12:26]file doc_00001914 [00:12:26]remove file /storage/0024/doc_00001914 [00:12:26]file doc_00001915 [00:12:26]remove file /storage/0024/doc_00001915 [00:12:26]file doc_00001916 [00:12:26]remove file /storage/0024/doc_00001916 [00:12:26]file doc_00001917 [00:12:26]remove file /storage/0024/doc_00001917 [00:12:26]file doc_00001918 [00:12:26]remove file /storage/0024/doc_00001918 [00:12:26]file doc_00001919 [00:12:26]remove file /storage/0024/doc_00001919 [00:12:26]file doc_00001920 [00:12:26]remove file /storage/0024/doc_00001920 [00:12:26]file doc_00001921 [00:12:26]remove file /storage/0024/doc_00001921 [00:12:26]file doc_00001922 [00:12:26]remove file /storage/0024/doc_00001922 [00:12:26]file doc_00001923 [00:12:26]remove file /storage/0024/doc_00001923 [00:12:26]file doc_00001924 [00:12:26]remove file /storage/0024/doc_00001924 [00:12:26]file doc_00001925 [00:12:26]remove file /storage/0024/doc_00001925 [00:12:26]file doc_00001926 [00:12:26]remove file /storage/0024/doc_00001926 [00:12:26]file doc_00001927 [00:12:26]remove file /storage/0024/doc_00001927 [00:12:26]file doc_00001928 [00:12:26]remove file /storage/0024/doc_00001928 [00:12:26]file doc_00001929 [00:12:26]remove file /storage/0024/doc_00001929 [00:12:26]file doc_00001930 [00:12:26]remove file /storage/0024/doc_00001930 [00:12:26]file doc_00001931 [00:12:26]remove file /storage/0024/doc_00001931 [00:12:26]file doc_00001932 [00:12:26]remove file /storage/0024/doc_00001932 [00:12:26]file doc_00001933 [00:12:26]remove file /storage/0024/doc_00001933 [00:12:26]file doc_00001934 [00:12:26]remove file /storage/0024/doc_00001934 [00:12:26]file doc_00001935 [00:12:26]remove file /storage/0024/doc_00001935 [00:12:26]file doc_00001936 [00:12:26]remove file /storage/0024/doc_00001936 [00:12:26]file doc_00001937 [00:12:26]remove file /storage/0024/doc_00001937 [00:12:26]file doc_00001938 [00:12:26]remove file /storage/0024/doc_00001938 [00:12:26]file doc_00001939 [00:12:26]remove file /storage/0024/doc_00001939 [00:12:26]file doc_00001940 [00:12:26]remove file /storage/0024/doc_00001940 [00:12:26]file doc_00001941 [00:12:26]remove file /storage/0024/doc_00001941 [00:12:26]file doc_00001942 [00:12:26]remove file /storage/0024/doc_00001942 [00:12:26]file doc_00001943 [00:12:26]remove file /storage/0024/doc_00001943 [00:12:26]file doc_00001944 [00:12:26]remove file /storage/0024/doc_00001944 [00:12:26]file doc_00001945 [00:12:26]remove file /storage/0024/doc_00001945 [00:12:26]file doc_00001946 [00:12:26]remove file /storage/0024/doc_00001946 [00:12:26]file doc_00001947 [00:12:26]remove file /storage/0024/doc_00001947 [00:12:26]file doc_00001948 [00:12:26]remove file /storage/0024/doc_00001948 [00:12:26]file doc_00001949 [00:12:26]remove file /storage/0024/doc_00001949 [00:12:26]file doc_00001950 [00:12:26]remove file /storage/0024/doc_00001950 [00:12:26]file doc_00001951 [00:12:26]remove file /storage/0024/doc_00001951 [00:12:26]file doc_00001952 [00:12:26]remove file /storage/0024/doc_00001952 [00:12:26]file doc_00001953 [00:12:26]remove file /storage/0024/doc_00001953 [00:12:26]file doc_00001954 [00:12:26]remove file /storage/0024/doc_00001954 [00:12:26]file doc_00001955 [00:12:26]remove file /storage/0024/doc_00001955 [00:12:26]file doc_00001956 [00:12:26]remove file /storage/0024/doc_00001956 [00:12:26]file doc_00001957 [00:12:26]remove file /storage/0024/doc_00001957 [00:12:26]file doc_00001958 [00:12:26]remove file /storage/0024/doc_00001958 [00:12:26]file doc_00001959 [00:12:26]remove file /storage/0024/doc_00001959 [00:12:26]file doc_00001960 [00:12:26]remove file /storage/0024/doc_00001960 [00:12:26]file doc_00001961 [00:12:26]remove file /storage/0024/doc_00001961 [00:12:26]file doc_00001962 [00:12:26]remove file /storage/0024/doc_00001962 [00:12:26]file doc_00001963 [00:12:26]remove file /storage/0024/doc_00001963 [00:12:26]file doc_00001964 [00:12:26]remove file /storage/0024/doc_00001964 [00:12:26]file doc_00001965 [00:12:26]remove file /storage/0024/doc_00001965 [00:12:26]file doc_00001966 [00:12:26]remove file /storage/0024/doc_00001966 [00:12:26]file doc_00001967 [00:12:26]remove file /storage/0024/doc_00001967 [00:12:26]file doc_00001968 [00:12:26]remove file /storage/0024/doc_00001968 [00:12:26]file doc_00001969 [00:12:26]remove file /storage/0024/doc_00001969 [00:12:26]file doc_00001970 [00:12:26]remove file /storage/0024/doc_00001970 [00:12:26]file doc_00001971 [00:12:26]remove file /storage/0024/doc_00001971 [00:12:26]file doc_00001972 [00:12:26]remove file /storage/0024/doc_00001972 [00:12:26]file doc_00001973 [00:12:26]remove file /storage/0024/doc_00001973 [00:12:26]file doc_00001974 [00:12:26]remove file /storage/0024/doc_00001974 [00:12:26]file doc_00001975 [00:12:26]remove file /storage/0024/doc_00001975 [00:12:26]remove dir /storage/0024 [00:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=269 [00:12:26]tlvbuf is 010B6E40 [00:12:26]SAM_PROTO_ClearQueue [00:12:26]wFMCommunicate request_size=4 [00:12:26]MH_SAM_APDU [00:12:26]CAPDU: 80 09 00 00 [00:12:26]Write to MH i2c: E2 08 00 2E 24 80 09 00 00 00 00 00 00 C4 [00:12:26]Write i2c OK [00:12:26]MH_I2C_Read... [00:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:26]Read from MH i2c: E2 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 03 00 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 03 00 2E 24 00 90 00 C6 [00:12:26]RAPDU: 90 00 [00:12:26]wFMCommunicate OK [00:12:26]SAM_PROTO_ClearQueue done [00:12:26]KKMCreateOFDPacket [00:12:26]OFDProtocolAddRootSTLVToBuf [00:12:26]FM_MakeSignedData [00:12:26]FM_MakeSignedData [00:12:26]SAM_PROTO_SignData [00:12:26]wFMCommunicate request_size=4 [00:12:26]MH_SAM_APDU [00:12:26]CAPDU: 80 0D 01 02 [00:12:27]Write to MH i2c: E2 08 00 2F 24 80 0D 01 02 00 00 00 00 CC [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 03 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [00:12:27]RAPDU: 90 00 [00:12:27]wFMCommunicate OK [00:12:27]wFMCommunicate request_size=255 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 0D 02 02 FA 02 00 0D 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 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 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 EC 17 93 66 0E 04 04 00 19 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 B8 07 00 00 11 04 10 00 30 30 30 [00:12:27]Write to MH i2c: E2 02 01 30 24 80 0D 02 02 FA 00 02 00 0D 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 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 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 EC 17 93 66 0E 04 04 00 19 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 B8 07 00 00 11 04 10 00 30 30 30 00 00 69 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 03 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [00:12:27]RAPDU: 90 00 [00:12:27]wFMCommunicate OK [00:12:27]wFMCommunicate request_size=28 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 0D 02 02 17 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 8F FC 7D 5D 90 BC [00:12:27]Write to MH i2c: E2 1F 00 31 24 80 0D 02 02 17 00 30 30 30 30 30 30 32 30 39 38 35 39 32 35 04 06 00 8F FC 7D 5D 90 BC 00 00 80 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 03 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [00:12:27]RAPDU: 90 00 [00:12:27]wFMCommunicate OK [00:12:27]wFMCommunicate request_size=4 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 0D 03 02 [00:12:27]Write to MH i2c: E2 08 00 32 24 80 0D 03 02 00 00 00 00 D1 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 0B 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 0B 00 32 24 00 1A 8E 0D 22 55 91 96 91 90 00 B6 [00:12:27]RAPDU: 1A 8E 0D 22 55 91 96 91 90 00 [00:12:27]wFMCommunicate OK [00:12:27]SAM_PROTO_SignData done [00:12:27]FM_MakeSignedData done [00:12:27]CreateOFDProtocolMessage [00:12:27]wFMCommunicate request_size=4 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 11 00 00 [00:12:27]Write to MH i2c: E2 08 00 33 24 80 11 00 00 00 00 00 00 D1 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 17 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 17 00 33 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 27 [00:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:12:27]wFMCommunicate OK [00:12:27]CreateOFDProtocolMessage done [00:12:27]OFDSenderStorePacket 1976 [00:12:27]StoreOFDPacket docnum=1976 [00:12:27]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 69 64 19 01 AE F6 5A 02 01 00 02 00 0D 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 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 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 EC 17 93 66 0E 04 04 00 19 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 B8 07 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 8F FC 7D 5D 90 BC 1A 8E 0D 22 55 91 96 91 [00:12:27]CheckFolder [00:12:27]dirname=/storage/ofd_packets [00:12:27]CheckFolder done [00:12:27]ProducePacketName [00:12:27]name=ofd_packets/00001976 [00:12:27]NVStorageSaveData ofd_packets/00001976 [00:12:27]File name is /storage/ofd_packets/00001976 [00:12:27]Write 319 bytes [00:12:27]NVStorageSaveData done [00:12:27]OFDSenderStorePacket done [00:12:27]KKMCreateOFDPacket done [00:12:27]NVStorageSaveData kkm_last_timestamp [00:12:27]File name is /storage/kkm_last_timestamp [00:12:27]Write 4 bytes [00:12:27]NVStorageSaveData done [00:12:27]ExternCall_PrintAddStr [00:12:27]wPrintStart [00:12:27]Write to MH i2c: 01 00 00 34 24 58 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: 01 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: 01 07 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 FF 0F 6D [00:12:27]RasterBufferAndPrint [00:12:27]line Отчет об открытии смены [00:12:27]line ФФД: 1.0 [00:12:27]line ИНН: 02508201610067 [00:12:27]line Кассир: Женишбекова С. [00:12:27]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [00:12:27]line Место: АЗС № 76 "Партнер Нефть" [00:12:27]line 14.07.2024 00:12 [00:12:27]line Смена: 25 [00:12:27]line РНМ: 0000000000177495 [00:12:27]line ЗНМ: 0300000124 [00:12:27]line ФД: 1976 [00:12:27]line ФМ: 0000000002098592 [00:12:27]line ФПД: 158314597814460 [00:12:27]written 0, free lines is 4095 [00:12:27]OFD Sender: Processing packet 1976 [packets to send 1, broken 0] [00:12:27]ProducePacketName [00:12:27]name=ofd_packets/00001976 [00:12:27]OFD Sender: To server: pG, [00:12:27]CommunicateWithHost lk.salyk.kg:30040 [00:12:27]ConnectInit lk.salyk.kg [00:12:27]Write to MH i2c: 01 00 00 46 24 6A [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: 01 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: 01 07 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 57 0E D6 [00:12:27]RasterBufferAndPrint [00:12:27]line [00:12:27]line [00:12:27]line [00:12:27]line [00:12:27]line [00:12:27]written 0, free lines is 3683 [00:12:27]MH_Cut [00:12:27]Write to MH i2c: D1 01 00 4D 24 01 43 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: D1 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: D1 01 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: D1 01 00 4D 24 00 42 [00:12:27]Write to MH i2c: 01 00 00 4E 24 72 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:28]*** Cut start [00:12:28]*** Partial cut [00:12:28]*** CUTSNS_PIN = 1 [00:12:28]*** CUTSNS_PIN = 0 [00:12:28]*** Brake cut motor [00:12:28]recv_with_timeout no data received [00:12:29]Read from MH i2c: 01 [00:12:29]MH_I2C_Read... [00:12:29]*** Stop cut motor [00:12:29]*** Cut end [00:12:29]Read from MH i2c: 01 07 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [00:12:29]process_action open_shift done [00:12:29]requested_data is exist [00:12:29]produce_requested_data [00:12:29]requested_item fd.num is exist - process it [00:12:29]SAM_PROTO_GetFieldsCounters [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 13 00 00 [00:12:29]Write to MH i2c: E2 08 00 4F 24 80 13 00 00 00 00 00 00 EF [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 62 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 62 00 4F 24 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 B8 07 00 00 0E 04 04 00 19 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 F3 [00:12: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 B8 07 00 00 0E 04 04 00 19 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:12:29]wFMCommunicate OK [00:12:29]SAM_PROTO_GetFieldsCounters done [00:12:29]requested_item shift.num is exist - process it [00:12:29]requested_item shift.opened is exist - process it [00:12:29]req_shift_opened [00:12:29]FM_GetShiftState [00:12:29]SAM_PROTO_GetShiftState [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 13 01 00 [00:12:29]Write to MH i2c: E2 08 00 50 24 80 13 01 00 00 00 00 00 F1 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 0E 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 0E 00 50 24 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 F9 [00:12:29]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:12:29]wFMCommunicate OK [00:12:29]SAM_PROTO_GetShiftState done [00:12:29]FM_GetShiftState done [00:12:29]req_shift_opened done [00:12:29]requested_item shift.open_date is exist - process it [00:12:29]req_shift_open_date [00:12:29]req_shift_open_date done [00:12:29]produce_requested_data done [00:12:29]produce_requested_data return {"fd.num":1976,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948} [00:12:29]process_action_free open_shift [00:12:29]json_value_free [00:12:29]json_value_free done [00:12:29]process_json_proto returns [00:12:29]Send response to host [00:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":1976,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948}}} [00:12:29]free response buf [00:12:29]execute_script done [00:12:29]execute_script returns [00:12:29]free content buf [00:12:29]Sock 9.Close socket [00:12:29]Sock 9.Thread stoped [00:12:29]accept exits with 8 [00:12:29]New connection [00:12:29]New thread 3066977636 created [00:12:29]Thread 3066834276 joined [00:12:29]Waiting for new connection... [00:12:29] Sock 8.Parse request [00:12:29]Sock 8.Check first char [00:12:29]Sock 8.First char is OK [00:12:29]request: POST /json_proto HTTP/1.0 [00:12:29]Method: POST [00:12:29]URL: /json_proto [00:12:29]Method is POST - this is cgi request [00:12:29]url: /json_proto [00:12:29]query_string will be loaded in cgi processing [00:12:29]execute_cgi json_proto POST (null) [00:12:29]execute_cgi path=json_proto method=POST [00:12:29]POST find Content-Length [00:12:29]Host: 172.17.35.133:8080 [00:12:29]Content-Length: 331 [00:12:29]Content-Type: application/json [00:12:29] [00:12:29]POST finish read [00:12:29]Found Content-Length = 331 [00:12:29]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:12:29]execute_script... [00:12:29]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:12:29]POST & json_proto [00:12:29]process_json_proto [00:12:29]json parsed OK: [00:12:29]protocol is kg_v1.0 [00:12:29]action value=get_value [00:12:29]process_action get_value [00:12:29]cmd_get_value [00:12:29]process_action get_value done [00:12:29]requested_data is exist [00:12:29]produce_requested_data [00:12:29]requested_item fm.sale.total is exist - process it [00:12:29]SAM_PROTO_GetFMData [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 13 03 00 [00:12:29]Write to MH i2c: E2 08 00 51 24 80 13 03 00 00 00 00 00 F4 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 FD 00 51 24 00 BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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 87 [00:12:29]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 86 07 00 00 69 04 9F 00 6F 04 04 00 84 07 00 00 B1 04 04 00 D5 0E 0D 05 70 04 04 00 9C 40 24 04 72 04 03 00 39 CE E8 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 39 52 89 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 5E 70 0B 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:12:29]wFMCommunicate OK [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 17 00 00 [00:12:29]Write to MH i2c: E2 08 00 52 24 80 17 00 00 00 00 00 00 F6 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 52 24 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 F3 [00:12:30]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:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 17 00 00 [00:12:30]Write to MH i2c: E2 08 00 53 24 80 17 00 00 00 00 00 00 F7 [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 FD 00 53 24 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 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 [00:12:30]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:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 17 00 00 [00:12:30]Write to MH i2c: E2 08 00 54 24 80 17 00 00 00 00 00 00 F8 [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 FD 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 FD 00 54 24 00 00 EF 03 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 70 [00:12:31]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:12:31]wFMCommunicate OK [00:12:31]wFMCommunicate request_size=4 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 17 00 00 [00:12:31]Write to MH i2c: E2 08 00 55 24 80 17 00 00 00 00 00 00 F9 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:12:31]Read from MH i2c: E2 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 D7 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: E2 D7 00 55 24 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 DC [00:12:31]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:12:31]wFMCommunicate OK [00:12:31]SAM_PROTO_GetFMData done [00:12:31]requested_item fm.sale_refund.total is exist - process it [00:12:31]requested_item fm.buy.total is exist - process it [00:12:31]requested_item shift.sale.total is exist - process it [00:12:31]SAM_PROTO_GetShiftData [00:12:31]wFMCommunicate request_size=4 [00:12:31]MH_SAM_APDU [00:12:31]CAPDU: 80 13 02 00 [00:12:31]Write to MH i2c: E2 08 00 56 24 80 13 02 00 00 00 00 00 F8 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 FD 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 FD 00 56 24 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 6B [00:12:32]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:12:32]wFMCommunicate OK [00:12:32]wFMCommunicate request_size=4 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 17 00 00 [00:12:32]Write to MH i2c: E2 08 00 57 24 80 17 00 00 00 00 00 00 FB [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 FD 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 FD 00 57 24 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 03 [00:12:32]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 ConnectInit Can't take IP for lk.salyk.kg [00:12:33]F6 CommunicateWithHost connect error [00:12:33]03 CommunicateWithHost err = -1 [00:12:33]01 OFD Sender: Server communicate error [00:12:33]00 04 F7 03 00 00 EF 03 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:12:33]wFMCommunicate OK [00:12:33]wFMCommunicate request_size=4 [00:12:33]MH_SAM_APDU [00:12:33]CAPDU: 80 17 00 00 [00:12:33]Write to MH i2c: E2 08 00 58 24 80 17 00 00 00 00 00 00 FC [00:12:33]Write i2c OK [00:12:33]MH_I2C_Read... [00:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:33]Read from MH i2c: E2 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 FD 00 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 FD 00 58 24 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 CE [00:12:33]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:12:33]wFMCommunicate OK [00:12:33]wFMCommunicate request_size=4 [00:12:33]MH_SAM_APDU [00:12:33]CAPDU: 80 17 00 00 [00:12:33]Write to MH i2c: E2 08 00 59 24 80 17 00 00 00 00 00 00 FD [00:12:33]Write i2c OK [00:12:33]MH_I2C_Read... [00:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:33]Read from MH i2c: E2 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 FD 00 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 FD 00 59 24 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 6F [00:12:34]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:12:34]wFMCommunicate OK [00:12:34]wFMCommunicate request_size=4 [00:12:34]MH_SAM_APDU [00:12:34]CAPDU: 80 17 00 00 [00:12:34]Write to MH i2c: E2 08 00 5A 24 80 17 00 00 00 00 00 00 FE [00:12:34]Write i2c OK [00:12:34]MH_I2C_Read... [00:12:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:34]Read from MH i2c: E2 [00:12:34]MH_I2C_Read... [00:12:34]Read from MH i2c: E2 BD 00 [00:12:34]MH_I2C_Read... [00:12:34]Read from MH i2c: E2 BD 00 5A 24 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 E4 [00:12:34]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:12:34]wFMCommunicate OK [00:12:34]SAM_PROTO_GetShiftData done [00:12:34]requested_item shift.sale.total_cash is exist - process it [00:12:34]requested_item shift.sale_refund.total is exist - process it [00:12:34]requested_item shift.sale_refund.total_cash is exist - process it [00:12:34]requested_item shift.buy.total is exist - process it [00:12:34]requested_item shift.buy.total_cash is exist - process it [00:12:34]produce_requested_data done [00:12:34]produce_requested_data return {"fm.sale.total":847418.45,"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:12:34]process_action_free get_value [00:12:34]json_value_free [00:12:34]json_value_free done [00:12:34]process_json_proto returns [00:12:34]Send response to host [00:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":847418.45,"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:12:34]free response buf [00:12:34]execute_script done [00:12:34]execute_script returns [00:12:34]free content buf [00:12:34]Sock 8.Close socket [00:12:34]Sock 8.Thread stoped [00:12:38]OFD Sender: Processing packet 1976 [packets to send 1, broken 0] [00:12:38]ProducePacketName [00:12:38]name=ofd_packets/00001976 [00:12:38]OFD Sender: To server: pG, [00:12:38]CommunicateWithHost lk.salyk.kg:30040 [00:12:38]ConnectInit lk.salyk.kg [00:12:43]ConnectInit Can't take IP for lk.salyk.kg [00:12:43]CommunicateWithHost connect error [00:12:43]CommunicateWithHost err = -1 [00:12:43]OFD Sender: Server communicate error [00:12:48]OFD Sender: Processing packet 1976 [packets to send 1, broken 0] [00:12:48]ProducePacketName [00:12:48]name=ofd_packets/00001976 [00:12:48]OFD Sender: To server: pG, [00:12:48]CommunicateWithHost lk.salyk.kg:30040 [00:12:48]ConnectInit lk.salyk.kg [00:12:53]ConnectInit Can't take IP for lk.salyk.kg [00:12:53]CommunicateWithHost connect error [00:12:53]CommunicateWithHost err = -1 [00:12:53]OFD Sender: Server communicate error [00:12:58]OFD Sender: Processing packet 1976 [packets to send 1, broken 0] [00:12:58]ProducePacketName [00:12:58]name=ofd_packets/00001976 [00:12:58]OFD Sender: To server: pG, [00:12:58]CommunicateWithHost lk.salyk.kg:30040 [00:12:58]ConnectInit lk.salyk.kg [00:12:58]Connected sock=8 [00:12: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 21 01 00 00 69 64 19 01 AE F6 5A 02 01 00 02 00 0D 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 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 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 EC 17 93 66 0E 04 04 00 19 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 B8 07 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 8F FC 7D 5D 90 BC 1A 8E 0D 22 55 91 96 91 [00:12: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 CA 7C 47 00 7D 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 B8 07 00 00 F4 03 04 00 40 C3 92 66 B6 04 01 00 00 AA 16 16 35 E0 31 59 6C [00:12:58]CommunicateWithHost err = 0 [00:12:58]CheckOFDResponse [00:12:58]1017 (14) - 77093643461234 [00:12:58]1041 (16) - 0000000002098592 [00:12:58]1040 (4) - 1976 [00:12:58]1012 (4) - 13.07.2024 18:11 [00:12:58]1206 (1) - 0 [00:12:58]OFD Sender: Remove packet 1976 [00:12:58]ProducePacketName [00:12:58]name=ofd_packets/00001976 [00:12:58]NVStorageDeleteData [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:01]recv_with_timeout no data received [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:56]recv_with_timeout no data received [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:07]recv_with_timeout no data received [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:37]recv_with_timeout no data received [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:05]ConnectInit Can't connect to host [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:34]recv_with_timeout no data received [00:30:39]OFD Sender: No OFD packet to send [00:30:40]accept exits with 9 [00:30:40]New connection [00:30:40]New thread 3066834276 created [00:30:40]Thread 3066977636 joined [00:30:40]Waiting for new connection... [00:30:40] Sock 9.Parse request [00:30:40]Sock 9.Check first char [00:30:40]Sock 9.First char is OK [00:30:40]request: POST /json_proto HTTP/1.0 [00:30:40]Method: POST [00:30:40]URL: /json_proto [00:30:40]Method is POST - this is cgi request [00:30:40]url: /json_proto [00:30:40]query_string will be loaded in cgi processing [00:30:40]execute_cgi json_proto POST (null) [00:30:40]execute_cgi path=json_proto method=POST [00:30:40]POST find Content-Length [00:30:40]Host: 172.17.35.133:8080 [00:30:40]Content-Length: 1277 [00:30:40]Content-Type: application/json [00:30:40] [00:30:40]POST finish read [00:30:40]Found Content-Length = 1277 [00:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256365", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.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" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:40]execute_script... [00:30:40]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)256365", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.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" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:40]POST & json_proto [00:30:40]process_json_proto [00:30:40]json parsed OK: [00:30:40]protocol is kg_v1.0 [00:30:40]action value=close_receipt [00:30:40]process_action close_receipt [00:30:40]cmd_close_receipt [00:30:40]MH_GetDate [00:30:40]Write to MH i2c: F0 00 00 5B 24 6E [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: F0 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: F0 09 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: F0 09 00 5B 24 00 34 1C 93 66 1B 28 2A 66 93 [00:30:40]GetLastDocTimeStamp 1720915948 [00:30:40]current date 1720917044 [00:30:40]FM_GetShiftState [00:30:40]SAM_PROTO_GetShiftState [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 13 01 00 [00:30:40]Write to MH i2c: E2 08 00 5C 24 80 13 01 00 00 00 00 00 FD [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 0E 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 0E 00 5C 24 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 05 [00:30:40]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:30:40]wFMCommunicate OK [00:30:40]SAM_PROTO_GetShiftState done [00:30:40]FM_GetShiftState done [00:30:40]opened in 1720915948 [00:30:40]opened+sec_in_day 1721002348 [00:30:40]quantity*price = 11000 [00:30:40]sum+1 = 11001 [00:30:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 84.00 = 84.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 0.00 Безнал.: 194.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 1 14.07.2024 00:30 Смена: 25 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000002098592 ФД: 1977 ФПД: 63868249626505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003044&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1977&fm=63868249626505&tin=02508201610067®Number=0000000000177495&sum=19400 0 [00:30:41]StoreToDocumentArchive [00:30:41]shift 25 fd 1977 [00:30:41]save to /storage/0025/doc_00001977 [00:30:41]save last doc name /storage/0025/doc_00001977 to /storage/kkm_last_doc_name [00:30:41]save OK [00:30:41]Clear old archive folders... [00:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=444 [00:30:41]tlvbuf is 0102CB80 [00:30:41]SAM_PROTO_ClearQueue [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 09 00 00 [00:30:41]Write to MH i2c: E2 08 00 69 24 80 09 00 00 00 00 00 00 FF [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 69 24 00 90 00 01 [00:30:41]RAPDU: 90 00 [00:30:41]wFMCommunicate OK [00:30:41]SAM_PROTO_ClearQueue done [00:30:41]KKMCreateOFDPacket [00:30:41]OFDProtocolAddRootSTLVToBuf [00:30:41]FM_MakeSignedData [00:30:41]FM_MakeSignedData [00:30:41]SAM_PROTO_SignData [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 0D 01 02 [00:30:41]Write to MH i2c: E2 08 00 6A 24 80 0D 01 02 00 00 00 00 07 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 6A 24 00 90 00 02 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=255 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 0D 02 02 FA 03 00 BC 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 [00:30:42]Write to MH i2c: E2 02 01 6B 24 80 0D 02 02 FA 00 03 00 BC 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 00 00 FF [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=203 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 0D 02 02 C6 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 1C 93 66 0E 04 04 00 19 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 B9 07 00 00 35 04 06 00 3A 16 7C 54 D7 89 [00:30:42]Write to MH i2c: E2 CE 00 6C 24 80 0D 02 02 C6 00 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 1C 93 66 0E 04 04 00 19 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 B9 07 00 00 35 04 06 00 3A 16 7C 54 D7 89 00 00 22 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=4 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 0D 03 02 [00:30:42]Write to MH i2c: E2 08 00 6D 24 80 0D 03 02 00 00 00 00 0C [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 0B 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 0B 00 6D 24 00 35 93 53 31 4E 18 EF 29 90 00 D7 [00:30:42]RAPDU: 35 93 53 31 4E 18 EF 29 90 00 [00:30:42]wFMCommunicate OK [00:30:42]SAM_PROTO_SignData done [00:30:42]FM_MakeSignedData done [00:30:42]CreateOFDProtocolMessage [00:30:42]wFMCommunicate request_size=4 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 11 00 00 [00:30:42]Write to MH i2c: E2 08 00 6E 24 80 11 00 00 00 00 00 00 0C [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 17 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 17 00 6E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 62 [00:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:30:42]wFMCommunicate OK [00:30:42]CreateOFDProtocolMessage done [00:30:42]OFDSenderStorePacket 1977 [00:30:42]StoreOFDPacket docnum=1977 [00:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 D0 01 00 00 13 CB C8 01 A8 95 5A 03 01 00 03 00 BC 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 1C 93 66 0E 04 04 00 19 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 B9 07 00 00 35 04 06 00 3A 16 7C 54 D7 89 35 93 53 31 4E 18 EF 29 [00:30:42]CheckFolder [00:30:42]dirname=/storage/ofd_packets [00:30:42]CheckFolder done [00:30:42]ProducePacketName [00:30:42]name=ofd_packets/00001977 [00:30:42]NVStorageSaveData ofd_packets/00001977 [00:30:42]File name is /storage/ofd_packets/00001977 [00:30:42]Write 494 bytes [00:30:42]NVStorageSaveData done [00:30:42]OFDSenderStorePacket done [00:30:42]KKMCreateOFDPacket done [00:30:42]NVStorageSaveData kkm_last_timestamp [00:30:42]File name is /storage/kkm_last_timestamp [00:30:42]Write 4 bytes [00:30:42]NVStorageSaveData done [00:30:42]ExternCall_PrintAddStr [00:30:42]wPrintStart [00:30:42]Write to MH i2c: 01 00 00 6F 24 93 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: 01 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: 01 07 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: 01 07 00 6F 24 00 00 00 00 00 FF 0F A8 [00:30:42]RasterBufferAndPrint [00:30:42]line Счет N : (3)256365 [00:30:42]line ИНН: 02508201610067 [00:30:42]line Контрольно-Кассовый Чек [00:30:42]line ПРОДАЖА [00:30:42]line Товар: 4870202521254 [00:30:42]line Чай холодный MAXI черный со вкусом клубн [00:30:42]line 1.000 * 110.00 [00:30:42]line = 110.00 [00:30:42]line НДС 12% НСП 1% [00:30:42]line > о реализуемом товаре [00:30:42]line Товар: 4870001571030 [00:30:42]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [00:30:42]line 1.000 * 84.00 [00:30:42]line = 84.00 [00:30:42]line НДС 12% НСП 1% [00:30:42]line > о реализуемом товаре [00:30:42]line ИТОГО: 194.00 [00:30:42]line НСП 1% : 1.71 [00:30:42]line НДС 12% : 20.60 [00:30:42]line Наличными: 0.00 [00:30:42]line Безнал.: 194.00 [00:30:42]line Место: АЗС № 76 "Партнер Нефть" [00:30:42]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [00:30:42]line СНО: Общий режим [00:30:42]line Чек 1 14.07.2024 00:30 [00:30:42]line Смена: 25 ФФД: 1.0 [00:30:42]line ЗНМ: 0300000124 [00:30:42]line РНМ: 0000000000177495 [00:30:42]line Версия ККМ: 001 [00:30:42]line Платежная система: АКБ Кыргызстан [00:30:42]line ФМ: 0000000002098592 [00:30:42]line ФД: 1977 [00:30:42]line ФПД: 63868249626505 [00:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003044&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1977&fm=63868249626505&tin=02508201610067®Number=0000000000177495&sum=19400 [00:30:42]line 0 [00:30:42]written 0, free lines is 4095 [00:30:43]OFD Sender: Processing packet 1977 [packets to send 1, broken 0] [00:30:43]ProducePacketName [00:30:43]name=ofd_packets/00001977 [00:30:43]OFD Sender: To server: pG, [00:30:43]CommunicateWithHost lk.salyk.kg:30040 [00:30:43]ConnectInit lk.salyk.kg [00:30:43]Write to MH i2c: 01 00 00 A1 24 C5 [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: 01 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: 01 07 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 78 0C 50 [00:30:43]RasterBufferAndPrint [00:30:43]line [00:30:43]line [00:30:43]line [00:30:43]line [00:30:43]line [00:30:43]written 0, free lines is 3198 [00:30:43]MH_Cut [00:30:43]Write to MH i2c: D1 01 00 A8 24 01 9E [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: D1 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: D1 01 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: D1 01 00 A8 24 00 9D [00:30:43]Write to MH i2c: 01 00 00 A9 24 CD [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:44]*** Cut start [00:30:44]*** Partial cut [00:30:44]*** CUTSNS_PIN = 1 [00:30:44]*** CUTSNS_PIN = 0 [00:30:44]*** Brake cut motor [00:30:44]Read from MH i2c: 01 [00:30:44]MH_I2C_Read... [00:30:44]*** Stop cut motor [00:30:44]*** Cut end [00:30:44]Read from MH i2c: 01 07 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: 01 07 00 A9 24 00 00 00 00 00 FF 0F E2 [00:30:44]process_action close_receipt done [00:30:44]requested_data is exist [00:30:44]produce_requested_data [00:30:44]requested_item fm.sn is exist - process it [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 11 00 00 [00:30:44]Write to MH i2c: E2 08 00 AA 24 80 11 00 00 00 00 00 00 48 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 17 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 17 00 AA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 9E [00:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:30:44]wFMCommunicate OK [00:30:44]requested_item fd.num is exist - process it [00:30:44]SAM_PROTO_GetFieldsCounters [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 13 00 00 [00:30:44]Write to MH i2c: E2 08 00 AB 24 80 13 00 00 00 00 00 00 4B [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 62 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 62 00 AB 24 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 B9 07 00 00 0E 04 04 00 19 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:30: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 B9 07 00 00 0E 04 04 00 19 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_GetFieldsCounters done [00:30:45]requested_item shift.num is exist - process it [00:30:45]requested_item shift.opened is exist - process it [00:30:45]req_shift_opened [00:30:45]FM_GetShiftState [00:30:45]SAM_PROTO_GetShiftState [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 13 01 00 [00:30:45]Write to MH i2c: E2 08 00 AC 24 80 13 01 00 00 00 00 00 4D [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0E 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0E 00 AC 24 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 55 [00:30:45]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_GetShiftState done [00:30:45]FM_GetShiftState done [00:30:45]req_shift_opened done [00:30:45]requested_item shift.open_date is exist - process it [00:30:45]req_shift_open_date [00:30:45]req_shift_open_date done [00:30:45]produce_requested_data done [00:30:45]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1977,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948} [00:30:45]process_action_free close_receipt [00:30:45]json_value_free [00:30:45]json_value_free done [00:30:45]process_json_proto returns [00:30:45]Send response to host [00:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1977,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948}}} [00:30:45]free response buf [00:30:45]execute_script done [00:30:45]execute_script returns [00:30:45]free content buf [00:30:45]Sock 9.Close socket [00:30:45]Sock 9.Thread stoped [00:30:48]ConnectInit Can't take IP for lk.salyk.kg [00:30:48]CommunicateWithHost connect error [00:30:48]CommunicateWithHost err = -1 [00:30:48]OFD Sender: Server communicate error [00:30:53]OFD Sender: Processing packet 1977 [packets to send 1, broken 0] [00:30:53]ProducePacketName [00:30:53]name=ofd_packets/00001977 [00:30:53]OFD Sender: To server: pG, [00:30:53]CommunicateWithHost lk.salyk.kg:30040 [00:30:53]ConnectInit lk.salyk.kg [00:30:58]ConnectInit Can't take IP for lk.salyk.kg [00:30:58]CommunicateWithHost connect error [00:30:58]CommunicateWithHost err = -1 [00:30:58]OFD Sender: Server communicate error [00:31:03]OFD Sender: Processing packet 1977 [packets to send 1, broken 0] [00:31:03]ProducePacketName [00:31:03]name=ofd_packets/00001977 [00:31:03]OFD Sender: To server: pG, [00:31:03]CommunicateWithHost lk.salyk.kg:30040 [00:31:03]ConnectInit lk.salyk.kg [00:31:03]Connected sock=9 [00:31: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 D0 01 00 00 13 CB C8 01 A8 95 5A 03 01 00 03 00 BC 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 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 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 34 1C 93 66 0E 04 04 00 19 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 B9 07 00 00 35 04 06 00 3A 16 7C 54 D7 89 35 93 53 31 4E 18 EF 29 [00:31: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 50 E5 47 00 5A 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 B9 07 00 00 F4 03 04 00 7E C7 92 66 B6 04 01 00 00 C6 3E 3C 72 09 5A D3 CE [00:31:03]CommunicateWithHost err = 0 [00:31:03]CheckOFDResponse [00:31:03]1017 (14) - 77093643461234 [00:31:03]1041 (16) - 0000000002098592 [00:31:03]1040 (4) - 1977 [00:31:03]1012 (4) - 13.07.2024 18:29 [00:31:03]1206 (1) - 0 [00:31:03]OFD Sender: Remove packet 1977 [00:31:03]ProducePacketName [00:31:03]name=ofd_packets/00001977 [00:31:03]NVStorageDeleteData [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:47]accept exits with 10 [00:31:47]New connection [00:31:47]New thread 3066977636 created [00:31:47]Thread 3066834276 joined [00:31:47]Waiting for new connection... [00:31:47] Sock 10.Parse request [00:31:47]Sock 10.Check first char [00:31:47]Sock 10.First char is OK [00:31:47]request: POST /json_proto HTTP/1.0 [00:31:47]Method: POST [00:31:47]URL: /json_proto [00:31:47]Method is POST - this is cgi request [00:31:47]url: /json_proto [00:31:47]query_string will be loaded in cgi processing [00:31:47]execute_cgi json_proto POST (null) [00:31:47]execute_cgi path=json_proto method=POST [00:31:47]POST find Content-Length [00:31:47]Host: 172.17.35.133:8080 [00:31:47]Content-Length: 1091 [00:31:47]Content-Type: application/json [00:31:47] [00:31:47]POST finish read [00:31:47]Found Content-Length = 1091 [00:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)256366", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 905.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:47]execute_script... [00:31:47]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)256366", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 905.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:47]POST & json_proto [00:31:47]process_json_proto [00:31:47]json parsed OK: [00:31:47]protocol is kg_v1.0 [00:31:47]action value=close_receipt [00:31:47]process_action close_receipt [00:31:47]cmd_close_receipt [00:31:47]MH_GetDate [00:31:47]Write to MH i2c: F0 00 00 AD 24 C0 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 09 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 09 00 AD 24 00 77 1C 93 66 1B 28 2A 66 28 [00:31:47]GetLastDocTimeStamp 1720917044 [00:31:47]current date 1720917111 [00:31:47]FM_GetShiftState [00:31:47]SAM_PROTO_GetShiftState [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 13 01 00 [00:31:47]Write to MH i2c: E2 08 00 AE 24 80 13 01 00 00 00 00 00 4F [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 0E 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 0E 00 AE 24 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 57 [00:31:47]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:31:47]wFMCommunicate OK [00:31:47]SAM_PROTO_GetShiftState done [00:31:47]FM_GetShiftState done [00:31:47]opened in 1720915948 [00:31:47]opened+sec_in_day 1721002348 [00:31:47]quantity*price = 40500 [00:31:47]sum+1 = 40501 [00:31:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 3.000 * 115.00 = 345.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46196798 Сигареты Mevius Revo 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 905.00 НСП 1% : 8.00 НДС 12% : 96.11 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 2 14.07.2024 00:31 Смена: 25 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1978 ФПД: 82314633777881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003151&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1978&fm=82314633777881&tin=02508201610067®Number=0000000000177495&sum=90500 0 [00:31:49]StoreToDocumentArchive [00:31:49]shift 25 fd 1978 [00:31:49]save to /storage/0025/doc_00001978 [00:31:49]save last doc name /storage/0025/doc_00001978 to /storage/kkm_last_doc_name [00:31:49]save OK [00:31:49]Clear old archive folders... [00:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=479 [00:31:49]tlvbuf is 0102CBA0 [00:31:49]SAM_PROTO_ClearQueue [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 09 00 00 [00:31:49]Write to MH i2c: E2 08 00 BB 24 80 09 00 00 00 00 00 00 51 [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 03 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 03 00 BB 24 00 90 00 53 [00:31:49]RAPDU: 90 00 [00:31:49]wFMCommunicate OK [00:31:49]SAM_PROTO_ClearQueue done [00:31:49]KKMCreateOFDPacket [00:31:49]OFDProtocolAddRootSTLVToBuf [00:31:49]FM_MakeSignedData [00:31:49]FM_MakeSignedData [00:31:49]SAM_PROTO_SignData [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 0D 01 02 [00:31:49]Write to MH i2c: E2 08 00 BC 24 80 0D 01 02 00 00 00 00 59 [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 03 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 03 00 BC 24 00 90 00 54 [00:31:49]RAPDU: 90 00 [00:31:49]wFMCommunicate OK [00:31:49]wFMCommunicate request_size=255 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 0D 02 02 FA 03 00 DF 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 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 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 [00:31:49]Write to MH i2c: E2 02 01 BD 24 80 0D 02 02 FA 00 03 00 DF 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 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 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 00 00 CF [00:31:49]OFD Sender: No OFD packet to send [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 03 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 03 00 BD 24 00 90 00 55 [00:31:49]RAPDU: 90 00 [00:31:49]wFMCommunicate OK [00:31:49]wFMCommunicate request_size=238 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 0D 02 02 E9 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 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 77 1C 93 66 0E 04 04 00 19 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 BA 07 00 00 35 04 06 00 4A DD 5E 81 92 D9 [00:31:49]Write to MH i2c: E2 F1 00 BE 24 80 0D 02 02 E9 00 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 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 77 1C 93 66 0E 04 04 00 19 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 BA 07 00 00 35 04 06 00 4A DD 5E 81 92 D9 00 00 17 [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:50]Read from MH i2c: E2 03 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [00:31:50]RAPDU: 90 00 [00:31:50]wFMCommunicate OK [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 0D 03 02 [00:31:50]Write to MH i2c: E2 08 00 BF 24 80 0D 03 02 00 00 00 00 5E [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 0B 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 0B 00 BF 24 00 FB E8 C4 79 D1 D7 AF C1 90 00 97 [00:31:50]RAPDU: FB E8 C4 79 D1 D7 AF C1 90 00 [00:31:50]wFMCommunicate OK [00:31:50]SAM_PROTO_SignData done [00:31:50]FM_MakeSignedData done [00:31:50]CreateOFDProtocolMessage [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 11 00 00 [00:31:50]Write to MH i2c: E2 08 00 C0 24 80 11 00 00 00 00 00 00 5E [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 17 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 17 00 C0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 B4 [00:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:31:50]wFMCommunicate OK [00:31:50]CreateOFDProtocolMessage done [00:31:50]OFDSenderStorePacket 1978 [00:31:50]StoreOFDPacket docnum=1978 [00:31: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 F3 01 00 00 D3 95 EB 01 9B 5E 5A 03 01 00 03 00 DF 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 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 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 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 77 1C 93 66 0E 04 04 00 19 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 BA 07 00 00 35 04 06 00 4A DD 5E 81 92 D9 FB E8 C4 79 D1 D7 AF C1 [00:31:50]CheckFolder [00:31:50]dirname=/storage/ofd_packets [00:31:50]CheckFolder done [00:31:50]ProducePacketName [00:31:50]name=ofd_packets/00001978 [00:31:50]NVStorageSaveData ofd_packets/00001978 [00:31:50]File name is /storage/ofd_packets/00001978 [00:31:50]Write 529 bytes [00:31:50]NVStorageSaveData done [00:31:50]OFDSenderStorePacket done [00:31:50]KKMCreateOFDPacket done [00:31:50]NVStorageSaveData kkm_last_timestamp [00:31:50]File name is /storage/kkm_last_timestamp [00:31:50]Write 4 bytes [00:31:50]NVStorageSaveData done [00:31:50]ExternCall_PrintAddStr [00:31:50]wPrintStart [00:31:50]Write to MH i2c: 01 00 00 C1 24 E5 [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: 01 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: 01 07 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: 01 07 00 C1 24 00 00 00 00 00 FF 0F FA [00:31:50]RasterBufferAndPrint [00:31:50]line Счет N : (3)256366 [00:31:50]line ИНН: 02508201610067 [00:31:50]line Контрольно-Кассовый Чек [00:31:50]line ПРОДАЖА [00:31:50]line Товар: 4650063110756 [00:31:50]line Масло Gazpromneft Super 10w40 1л [00:31:50]line 1.000 * 405.00 [00:31:50]line = 405.00 [00:31:50]line НДС 12% НСП 1% [00:31:50]line > о реализуемом товаре [00:31:50]line Товар: 2000036240010 [00:31:50]line Кофе Латте (GABB TRADE) [00:31:50]line 3.000 * 115.00 [00:31:50]line = 345.00 [00:31:50]line НДС 12% НСП 1% [00:31:50]line > о реализуемом товаре [00:31:50]line Товар: 46196798 [00:31:50]line Сигареты Mevius Revo [00:31:50]line 1.000 * 155.00 [00:31:50]line = 155.00 [00:31:50]line НДС 12% НСП 1% [00:31:50]line > о реализуемом товаре [00:31:50]line ИТОГО: 905.00 [00:31:50]line НСП 1% : 8.00 [00:31:50]line НДС 12% : 96.11 [00:31:50]line Наличными: 905.00 [00:31:50]line Безнал.: 0.00 [00:31:50]line Место: АЗС № 76 "Партнер Нефть" [00:31:50]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [00:31:50]line СНО: Общий режим [00:31:50]line Чек 2 14.07.2024 00:31 [00:31:50]line Смена: 25 ФФД: 1.0 [00:31:50]line ЗНМ: 0300000124 [00:31:50]line РНМ: 0000000000177495 [00:31:50]line Версия ККМ: 001 [00:31:50]line ФМ: 0000000002098592 [00:31:50]line ФД: 1978 [00:31:50]line ФПД: 82314633777881 [00:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003151&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1978&fm=82314633777881&tin=02508201610067®Number=0000000000177495&sum=90500 [00:31:50]line 0 [00:31:50]written 0, free lines is 4095 [00:31:50]OFD Sender: Processing packet 1978 [packets to send 1, broken 0] [00:31:50]ProducePacketName [00:31:50]name=ofd_packets/00001978 [00:31:50]OFD Sender: To server: pG, [00:31:50]CommunicateWithHost lk.salyk.kg:30040 [00:31:50]ConnectInit lk.salyk.kg [00:31:50]Connected sock=8 [00:31:50]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 F3 01 00 00 D3 95 EB 01 9B 5E 5A 03 01 00 03 00 DF 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 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 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 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 77 1C 93 66 0E 04 04 00 19 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 BA 07 00 00 35 04 06 00 4A DD 5E 81 92 D9 FB E8 C4 79 D1 D7 AF C1 [00:31:50]Write to MH i2c: 01 00 00 F6 24 1A [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: 01 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: 01 07 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: 01 07 00 F6 24 00 00 00 00 00 3B 0C 68 [00:31:50]RasterBufferAndPrint [00:31:50]line [00:31:50]line [00:31:50]line [00:31:50]line [00:31:50]line [00:31:50]written 0, free lines is 3139 [00:31:50]MH_Cut [00:31:50]Write to MH i2c: D1 01 00 FD 24 01 F3 [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: D1 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: D1 01 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: D1 01 00 FD 24 00 F2 [00:31:50]Write to MH i2c: 01 00 00 FE 24 22 [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31: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 AA 15 47 00 3C D6 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 BA 07 00 00 F4 03 04 00 AD C7 92 66 B6 04 01 00 00 79 D3 C3 78 BC D1 4A 3B [00:31:50]CommunicateWithHost err = 0 [00:31:50]CheckOFDResponse [00:31:50]1017 (14) - 77093643461234 [00:31:50]1041 (16) - 0000000002098592 [00:31:50]1040 (4) - 1978 [00:31:50]1012 (4) - 13.07.2024 18:30 [00:31:50]1206 (1) - 0 [00:31:50]OFD Sender: Remove packet 1978 [00:31:50]ProducePacketName [00:31:50]name=ofd_packets/00001978 [00:31:50]NVStorageDeleteData [00:31:51]OFD Sender: No OFD packet to send [00:31:51]*** Cut start [00:31:51]*** Partial cut [00:31:51]*** CUTSNS_PIN = 1 [00:31:51]*** CUTSNS_PIN = 0 [00:31:51]*** Brake cut motor [00:31:52]Read from MH i2c: 01 [00:31:52]MH_I2C_Read... [00:31:52]*** Stop cut motor [00:31:52]*** Cut end [00:31:52]Read from MH i2c: 01 07 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 FF 0F 37 [00:31:52]process_action close_receipt done [00:31:52]requested_data is exist [00:31:52]produce_requested_data [00:31:52]requested_item fm.sn is exist - process it [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 11 00 00 [00:31:52]Write to MH i2c: E2 08 00 FF 24 80 11 00 00 00 00 00 00 9D [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 17 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 17 00 FF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 F3 [00:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:31:52]wFMCommunicate OK [00:31:52]requested_item fd.num is exist - process it [00:31:52]SAM_PROTO_GetFieldsCounters [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 13 00 00 [00:31:52]Write to MH i2c: E2 08 00 00 25 80 13 00 00 00 00 00 00 A1 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 62 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 62 00 00 25 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 BA 07 00 00 0E 04 04 00 19 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:31: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 BA 07 00 00 0E 04 04 00 19 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:52]wFMCommunicate OK [00:31:52]SAM_PROTO_GetFieldsCounters done [00:31:52]requested_item shift.num is exist - process it [00:31:52]requested_item shift.opened is exist - process it [00:31:52]req_shift_opened [00:31:52]FM_GetShiftState [00:31:52]SAM_PROTO_GetShiftState [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 13 01 00 [00:31:52]Write to MH i2c: E2 08 00 01 25 80 13 01 00 00 00 00 00 A3 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 0E 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 0E 00 01 25 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 AB [00:31:52]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:31:52]wFMCommunicate OK [00:31:52]SAM_PROTO_GetShiftState done [00:31:52]FM_GetShiftState done [00:31:52]req_shift_opened done [00:31:52]requested_item shift.open_date is exist - process it [00:31:52]req_shift_open_date [00:31:52]req_shift_open_date done [00:31:52]produce_requested_data done [00:31:52]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1978,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948} [00:31:52]process_action_free close_receipt [00:31:52]json_value_free [00:31:52]json_value_free done [00:31:52]process_json_proto returns [00:31:52]Send response to host [00:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1978,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948}}} [00:31:52]free response buf [00:31:52]execute_script done [00:31:52]execute_script returns [00:31:52]free content buf [00:31:52]Sock 10.Close socket [00:31:52]Sock 10.Thread stoped [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:04]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:07]recv_with_timeout no data received [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:40]recv_with_timeout no data received [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]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:45:58]ConnectInit Can't connect to host [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:08]recv_with_timeout no data received [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: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:18]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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: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:50:57]recv_with_timeout no data received [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:15]accept exits with 9 [00:51:15]New connection [00:51:15]New thread 3066834276 created [00:51:15]Thread 3066977636 joined [00:51:15]Waiting for new connection... [00:51:15] Sock 9.Parse request [00:51:15]Sock 9.Check first char [00:51:15]Sock 9.First char is OK [00:51:15]request: POST /json_proto HTTP/1.0 [00:51:15]Method: POST [00:51:15]URL: /json_proto [00:51:15]Method is POST - this is cgi request [00:51:15]url: /json_proto [00:51:15]query_string will be loaded in cgi processing [00:51:15]execute_cgi json_proto POST (null) [00:51:15]execute_cgi path=json_proto method=POST [00:51:15]POST find Content-Length [00:51:15]Host: 172.17.35.133:8080 [00:51:15]Content-Length: 683 [00:51:15]Content-Type: application/json [00:51:15] [00:51:15]POST finish read [00:51:15]Found Content-Length = 683 [00:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1619173", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:15]execute_script... [00:51:15]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)1619173", "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" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:15]POST & json_proto [00:51:15]process_json_proto [00:51:15]json parsed OK: [00:51:15]protocol is kg_v1.0 [00:51:15]action value=close_receipt [00:51:15]process_action close_receipt [00:51:15]cmd_close_receipt [00:51:15]MH_GetDate [00:51:15]Write to MH i2c: F0 00 00 02 25 16 [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 09 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 09 00 02 25 00 06 21 93 66 1B 28 2A 66 12 [00:51:15]GetLastDocTimeStamp 1720917111 [00:51:15]current date 1720918278 [00:51:15]FM_GetShiftState [00:51:15]SAM_PROTO_GetShiftState [00:51:15]wFMCommunicate request_size=4 [00:51:15]MH_SAM_APDU [00:51:15]CAPDU: 80 13 01 00 [00:51:15]Write to MH i2c: E2 08 00 03 25 80 13 01 00 00 00 00 00 A5 [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:15]Read from MH i2c: E2 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: E2 0E 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: E2 0E 00 03 25 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 AD [00:51:15]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:51:15]wFMCommunicate OK [00:51:15]SAM_PROTO_GetShiftState done [00:51:15]FM_GetShiftState done [00:51:15]opened in 1720915948 [00:51:15]opened+sec_in_day 1721002348 [00:51:15]quantity*price = 100046 [00:51:15]sum+1 = 100048 [00:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 СНО: Общий режим Чек 3 14.07.2024 00:51 Смена: 25 ФФД: 1.0 ЗНМ: 0300000124 РНМ: 0000000000177495 Версия ККМ: 001 ФМ: 0000000002098592 ФД: 1979 ФПД: 145036307325363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T005118&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1979&fm=145036307325363&tin=02508201610067®Number=0000000000177495&sum=100000 [00:51:16]StoreToDocumentArchive [00:51:16]shift 25 fd 1979 [00:51:16]save to /storage/0025/doc_00001979 [00:51:16]save last doc name /storage/0025/doc_00001979 to /storage/kkm_last_doc_name [00:51:16]save OK [00:51:16]Clear old archive folders... [00:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:16]tlvbuf is 01076D60 [00:51:16]SAM_PROTO_ClearQueue [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 09 00 00 [00:51:16]Write to MH i2c: E2 08 00 10 25 80 09 00 00 00 00 00 00 A7 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]SAM_PROTO_ClearQueue done [00:51:16]KKMCreateOFDPacket [00:51:16]OFDProtocolAddRootSTLVToBuf [00:51:16]FM_MakeSignedData [00:51:16]FM_MakeSignedData [00:51:16]SAM_PROTO_SignData [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 01 02 [00:51:16]Write to MH i2c: E2 08 00 11 25 80 0D 01 02 00 00 00 00 AF [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=255 [00:51:16]MH_SAM_APDU [00:51:16]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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 06 21 93 66 0E 04 04 00 19 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 BB 07 00 00 35 04 06 00 83 [00:51:16]Write to MH i2c: E2 02 01 12 25 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 06 21 93 66 0E 04 04 00 19 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 BB 07 00 00 35 04 06 00 83 00 00 35 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=10 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 02 02 05 E8 E5 93 E1 B3 [00:51:16]Write to MH i2c: E2 0D 00 13 25 80 0D 02 02 05 00 E8 E5 93 E1 B3 00 00 B0 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 03 02 [00:51:16]Write to MH i2c: E2 08 00 14 25 80 0D 03 02 00 00 00 00 B4 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 0B 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 0B 00 14 25 00 11 F0 B9 A6 33 89 6A E5 90 00 20 [00:51:16]RAPDU: 11 F0 B9 A6 33 89 6A E5 90 00 [00:51:16]wFMCommunicate OK [00:51:16]SAM_PROTO_SignData done [00:51:16]FM_MakeSignedData done [00:51:16]CreateOFDProtocolMessage [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 11 00 00 [00:51:16]Write to MH i2c: E2 08 00 15 25 80 11 00 00 00 00 00 00 B4 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 17 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 17 00 15 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 0A [00:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:51:16]wFMCommunicate OK [00:51:16]CreateOFDProtocolMessage done [00:51:16]OFDSenderStorePacket 1979 [00:51:16]StoreOFDPacket docnum=1979 [00:51: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 0F 01 00 00 DC B8 07 01 B4 92 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 06 21 93 66 0E 04 04 00 19 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 BB 07 00 00 35 04 06 00 83 E8 E5 93 E1 B3 11 F0 B9 A6 33 89 6A E5 [00:51:16]CheckFolder [00:51:16]dirname=/storage/ofd_packets [00:51:16]CheckFolder done [00:51:16]ProducePacketName [00:51:16]name=ofd_packets/00001979 [00:51:16]NVStorageSaveData ofd_packets/00001979 [00:51:16]File name is /storage/ofd_packets/00001979 [00:51:16]Write 301 bytes [00:51:16]NVStorageSaveData done [00:51:16]OFDSenderStorePacket done [00:51:16]KKMCreateOFDPacket done [00:51:16]NVStorageSaveData kkm_last_timestamp [00:51:16]File name is /storage/kkm_last_timestamp [00:51:16]Write 4 bytes [00:51:16]NVStorageSaveData done [00:51:16]ExternCall_PrintAddStr [00:51:16]wPrintStart [00:51:16]Write to MH i2c: 01 00 00 16 25 3B [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: 01 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: 01 07 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [00:51:16]RasterBufferAndPrint [00:51:16]line Счет N : (1)1619173 [00:51:16]line ИНН: 02508201610067 [00:51:16]line Контрольно-Кассовый Чек [00:51:16]line ПРОДАЖА [00:51:16]line ТРК (МРК, ГНК) : 33 [00:51:16]line Товар: 2710124130 [00:51:16]line Аи-92-К-5 [00:51:16]line 15.090 * 66.30 [00:51:16]line = 1000.47 [00:51:16]line НДС 12% НСП 1% [00:51:16]line > о реализуемом товаре [00:51:16]line ОКРУГЛЕНИЕ: -0.47 [00:51:16]line ИТОГО: 1000.00 [00:51:16]line Внесено: 1000.00 [00:51:16]line СДАЧА: 0.00 [00:51:16]line НСП 1% : 8.85 [00:51:16]line НДС 12% : 106.24 [00:51:16]line Наличными: 1000.00 [00:51:16]line Безнал.: 0.00 [00:51:16]line Место: АЗС № 76 "Партнер Нефть" [00:51:16]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056,72.552224 [00:51:16]line СНО: Общий режим [00:51:16]line Чек 3 14.07.2024 00:51 [00:51:16]line Смена: 25 ФФД: 1.0 [00:51:16]line ЗНМ: 0300000124 [00:51:16]line РНМ: 0000000000177495 [00:51:16]line Версия ККМ: 001 [00:51:16]line ФМ: 0000000002098592 [00:51:16]line ФД: 1979 [00:51:16]line ФПД: 145036307325363 [00:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T005118&type=1&operation_type=1&fn_number=0000000002098592&fd_number=1979&fm=145036307325363&tin=02508201610067®Number=0000000000177495&sum=100000 [00:51:17]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [00:51:17]ProducePacketName [00:51:17]name=ofd_packets/00001979 [00:51:17]OFD Sender: To server: pG, [00:51:17]CommunicateWithHost lk.salyk.kg:30040 [00:51:17]ConnectInit lk.salyk.kg [00:51:17]written 0, free lines is 4095 [00:51:17]Write to MH i2c: 01 00 00 41 25 66 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 D6 0C 4F [00:51:17]RasterBufferAndPrint [00:51:17]line [00:51:17]line [00:51:17]line [00:51:17]line [00:51:17]line [00:51:17]written 0, free lines is 3292 [00:51:17]MH_Cut [00:51:17]Write to MH i2c: D1 01 00 48 25 01 3F [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: D1 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: D1 01 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: D1 01 00 48 25 00 3E [00:51:17]Write to MH i2c: 01 00 00 49 25 6E [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:18]*** Cut start [00:51:18]*** Partial cut [00:51:18]*** CUTSNS_PIN = 1 [00:51:18]*** CUTSNS_PIN = 0 [00:51:18]*** Brake cut motor [00:51:18]Read from MH i2c: 01 [00:51:18]MH_I2C_Read... [00:51:18]*** Stop cut motor [00:51:18]*** Cut end [00:51:18]Read from MH i2c: 01 07 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [00:51:18]process_action close_receipt done [00:51:18]requested_data is exist [00:51:18]produce_requested_data [00:51:18]requested_item fm.sn is exist - process it [00:51:18]wFMCommunicate request_size=4 [00:51:18]MH_SAM_APDU [00:51:18]CAPDU: 80 11 00 00 [00:51:18]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:18]Read from MH i2c: E2 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 17 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 3F [00:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 38 35 39 32 90 00 [00:51:18]wFMCommunicate OK [00:51:18]requested_item fd.num is exist - process it [00:51:18]SAM_PROTO_GetFieldsCounters [00:51:18]wFMCommunicate request_size=4 [00:51:18]MH_SAM_APDU [00:51:18]CAPDU: 80 13 00 00 [00:51:18]Write to MH i2c: E2 08 00 4B 25 80 13 00 00 00 00 00 00 EC [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 62 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 62 00 4B 25 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 BB 07 00 00 0E 04 04 00 19 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [00:51: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 BB 07 00 00 0E 04 04 00 19 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:19]wFMCommunicate OK [00:51:19]SAM_PROTO_GetFieldsCounters done [00:51:19]requested_item shift.num is exist - process it [00:51:19]requested_item shift.opened is exist - process it [00:51:19]req_shift_opened [00:51:19]FM_GetShiftState [00:51:19]SAM_PROTO_GetShiftState [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 13 01 00 [00:51:19]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:19]Read from MH i2c: E2 0E 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 EC 17 93 66 00 00 00 00 90 00 F6 [00:51:19]RAPDU: 09 00 01 EC 17 93 66 00 00 00 00 90 00 [00:51:19]wFMCommunicate OK [00:51:19]SAM_PROTO_GetShiftState done [00:51:19]FM_GetShiftState done [00:51:19]req_shift_opened done [00:51:19]requested_item shift.open_date is exist - process it [00:51:19]req_shift_open_date [00:51:19]req_shift_open_date done [00:51:19]produce_requested_data done [00:51:19]produce_requested_data return {"fm.sn":"0000000002098592","fd.num":1979,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948} [00:51:19]process_action_free close_receipt [00:51:19]json_value_free [00:51:19]json_value_free done [00:51:19]process_json_proto returns [00:51:19]Send response to host [00:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002098592","fd.num":1979,"shift.num":25,"shift.opened":1,"shift.open_date":1720915948}}} [00:51:19]free response buf [00:51:19]execute_script done [00:51:19]execute_script returns [00:51:19]free content buf [00:51:19]Sock 9.Close socket [00:51:19]Sock 9.Thread stoped [00:51:22]ConnectInit Can't take IP for lk.salyk.kg [00:51:22]CommunicateWithHost connect error [00:51:22]CommunicateWithHost err = -1 [00:51:22]OFD Sender: Server communicate error [00:51:27]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [00:51:27]ProducePacketName [00:51:27]name=ofd_packets/00001979 [00:51:27]OFD Sender: To server: pG, [00:51:27]CommunicateWithHost lk.salyk.kg:30040 [00:51:27]ConnectInit lk.salyk.kg [00:51:32]ConnectInit Can't take IP for lk.salyk.kg [00:51:32]CommunicateWithHost connect error [00:51:32]CommunicateWithHost err = -1 [00:51:32]OFD Sender: Server communicate error [00:51:37]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [00:51:37]ProducePacketName [00:51:37]name=ofd_packets/00001979 [00:51:37]OFD Sender: To server: pG, [00:51:37]CommunicateWithHost lk.salyk.kg:30040 [00:51:37]ConnectInit lk.salyk.kg [00:51:42]ConnectInit Can't take IP for lk.salyk.kg [00:51:42]CommunicateWithHost connect error [00:51:42]CommunicateWithHost err = -1 [00:51:42]OFD Sender: Server communicate error [00:51:47]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [00:51:47]ProducePacketName [00:51:47]name=ofd_packets/00001979 [00:51:47]OFD Sender: To server: pG, [00:51:47]CommunicateWithHost lk.salyk.kg:30040 [00:51:47]ConnectInit lk.salyk.kg [00:51:52]ConnectInit Can't take IP for lk.salyk.kg [00:51:52]CommunicateWithHost connect error [00:51:52]CommunicateWithHost err = -1 [00:51:52]OFD Sender: Server communicate error [00:51:57]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [00:51:57]ProducePacketName [00:51:57]name=ofd_packets/00001979 [00:51:57]OFD Sender: To server: pG, [00:51:57]CommunicateWithHost lk.salyk.kg:30040 [00:51:57]ConnectInit lk.salyk.kg [00:52:02]ConnectInit Can't take IP for lk.salyk.kg [00:52:02]CommunicateWithHost connect error [00:52:02]CommunicateWithHost err = -1 [00:52:02]OFD Sender: Server communicate error [00:52:07]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [00:52:07]ProducePacketName [00:52:07]name=ofd_packets/00001979 [00:52:07]OFD Sender: To server: pG, [00:52:07]CommunicateWithHost lk.salyk.kg:30040 [00:52:07]ConnectInit lk.salyk.kg [00:52:07]Connected sock=9 [00:52: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 0F 01 00 00 DC B8 07 01 B4 92 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 06 21 93 66 0E 04 04 00 19 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 BB 07 00 00 35 04 06 00 83 E8 E5 93 E1 B3 11 F0 B9 A6 33 89 6A E5 [00:52: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 2E EA 47 00 EF 48 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 BB 07 00 00 F4 03 04 00 6E CC 92 66 B6 04 01 00 00 D4 E2 F8 F2 41 E7 93 58 [00:52:07]CommunicateWithHost err = 0 [00:52:07]CheckOFDResponse [00:52:07]1017 (14) - 77093643461234 [00:52:07]1041 (16) - 0000000002098592 [00:52:07]1040 (4) - 1979 [00:52:07]1012 (4) - 13.07.2024 18:50 [00:52:07]1206 (1) - 0 [00:52:07]OFD Sender: Remove packet 1979 [00:52:07]ProducePacketName [00:52:07]name=ofd_packets/00001979 [00:52:07]NVStorageDeleteData [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send